/* actress.css */

/* 紫粉色主题变量 */
:root {
    --primary-purple: #8b5cf6;
    --primary-pink: #ec4899;
    --deep-purple: #6366f1;
    --light-pink: #f472b6;
    --dark-bg: #0f0f23;
    --glass-bg: rgba(15, 15, 35, 0.8);
    --text-white: #ffffff;
    --text-light: #e2e8f0;
    --gradient-sexy: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #6366f1 100%);
    --gradient-hot: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    --shadow-neon: 0 0 30px rgba(139, 92, 246, 0.4);
    --shadow-pink: 0 0 25px rgba(236, 72, 153, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 性感背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(ellipse 800px 600px at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse 600px 400px at 80% 70%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
            linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 15px;
}
.header-left {
    position: relative;   /* 👈 这一步必不可少 */
    top: 40px;            /* ✅ 控制向下偏移的距离 */
    margin-left: -550px;  /* ✅ 如果你真想左移那么多 */
    display: flex;
    align-items: center;
}

/* ✅ 适配移动端（修复大括号） */
@media (max-width: 768px) {
    .header-left {
        top: 20px;
        margin-left: 30px;
        justify-content: flex-start;
    }

    .header-left .header-title h1 {
        font-size: 18px;
    }
}


.header-left .header-title {
    text-decoration: none;
    color: var(--text-white);
    transition: color 0.2s ease;
    left: 110px;
}

.header-left .header-title:hover {
    color: var(--primary-pink);
}

.header-left .header-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-left: 0;
}

.search-bar.desktop form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar.desktop input[type="text"] {
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-white);
    background: var(--glass-bg);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
    width: 200px;
}

.search-bar.desktop input[type="text"]:focus {
    border-color: var(--primary-pink);
    box-shadow: var(--shadow-pink);
    width: 250px;
}

.search-bar.desktop button {
    background: var(--gradient-hot);
    color: var(--text-white);
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar.desktop button:hover {
    background: var(--primary-pink);
    transform: scale(1.05);
}

.search-bar.desktop button i {
    font-size: 16px;
}

.search-bar.mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.search-bar.mobile button {
    background: var(--gradient-hot);
    color: var(--text-white);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-pink);
}

.search-bar.mobile button:hover {
    background: var(--primary-pink);
    transform: scale(1.1);
}

.search-bar.mobile button i {
    font-size: 20px;
}

.search-bar.mobile input[type="text"] {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 15px;
    right: 15px;
    padding: 10px 40px 10px 40px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-white);
    background: var(--glass-bg);
    outline: none;
    box-shadow: var(--shadow-neon);
    z-index: 1000;
}

.search-bar.mobile.active input[type="text"] {
    display: block;
}

.sort-toggle {
    display: flex;
    gap: 10px;
    margin-left: 0;
}

.sort-toggle label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.sort-toggle input[type="checkbox"] {
    accent-color: var(--primary-pink);
}

.shop-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
}

.shop-card {
    display: none;
    flex: 1;
    max-width: 25%;
    min-width: 250px;
    aspect-ratio: 3/4;
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.shop-card.active {
    display: block;
}

.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 1;
}

.shop-card:hover .overlay {
    transform: translateY(0);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-sexy);
    opacity: 0.1;
    z-index: -1;
}

.overlay .title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    background: var(--gradient-sexy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay .info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.overlay .info i {
    font-size: 16px;
}

.overlay .pr {
    color: var(--primary-pink);
    font-size: 14px;
    margin-bottom: 8px;
}

.overlay .foreign-ok {
    color: var(--light-pink);
    font-size: 14px;
    margin-bottom: 8px;
}

.overlay .fee-link-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 5px;
    justify-content: space-between;
}

.overlay .fee {
    background: var(--gradient-hot);
    color: var(--text-white);
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 5px;
    flex: 1;
    text-align: left; /* 靠左对齐 */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 30px;
    transition: transform 0.2s ease;
    white-space: nowrap; /* 单行显示 */
    overflow: hidden; /* 超出隐藏 */
    text-overflow: ellipsis; /* 超长显示省略号 */
}

.overlay .fee:hover {
    transform: scale(1.05);
}

.overlay .link-container {
    flex: 0 0 auto;
}

.overlay .link-container a,
.overlay .link-container button {
    background: var(--primary-purple);
    color: var(--text-white);
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    min-height: 30px;
    line-height: 1;
    border: none;
    cursor: pointer;
}

.overlay .link-container a:hover,
.overlay .link-container button:hover {
    background: var(--deep-purple);
    transform: scale(1.05);
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    margin-bottom: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: none;
    background: var(--glass-bg);
    color: var(--text-white);
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    min-width: 80px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.pagination button:hover:not(:disabled) {
    background: var(--gradient-hot);
    color: var(--text-white);
    transform: scale(1.05);
}

.pagination button:disabled {
    background: rgba(15, 15, 35, 0.3);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(139, 92, 246, 0.1);
    cursor: not-allowed;
}

.pagination input[type="number"] {
    padding: 6px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-white);
    background: var(--glass-bg);
    outline: none;
    width: 60px;
    text-align: center;
}

.pagination input[type="number"]::-webkit-inner-spin-button,
.pagination input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.pagination .page-info {
    font-size: 14px;
    color: var(--text-light);
}

.header-right a.return-home {
    background: var(--gradient-hot);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-right a.return-home:hover {
    background: var(--primary-pink);
    transform: scale(1.05);
}

.header-right a.return-home i {
    font-size: 0.875rem;
}

.no-results {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 16px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }

    header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .header-left .header-title h1 {
        font-size: 20px;
    }

    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .header-right a.return-home {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .header-right a.return-home i {
        font-size: 0.75rem;
    }

    .header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-left: 0;
        width: 100%;
    }

    .sort-toggle {
        gap: 8px;
        margin-left: 0;
    }

    .search-bar.desktop {
        display: none;
    }

    .search-bar.mobile {
        display: block;
    }

    .sort-toggle label {
        font-size: 13px;
    }

    .shop-list {
        gap: 10px;
    }

    .shop-card {
        max-width: 50%;
        min-width: 150px;
        min-height: 200px;
    }

    .overlay .title {
        font-size: 16px;
    }

    .overlay .info,
    .overlay .pr,
    .overlay .foreign-ok {
        font-size: 12px;
    }

    .overlay .info i {
        font-size: 14px;
    }

    .overlay .fee-link-row {
        gap: 3px;
    }

    .overlay .fee {
        font-size: 0.75rem;
        padding: 0.4rem;
        min-height: 24px;
        white-space: nowrap; /* 单行显示 */
        overflow: hidden; /* 超出隐藏 */
        text-overflow: ellipsis; /* 超长省略号 */
    }

    .overlay .link-container a {
        font-size: 0.75rem;
        padding: 0.4rem;
        min-height: 24px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination button,
    .pagination input[type="number"],
    .pagination .page-info {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 60px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 12px;
    }

    .header-left .header-title h1 {
        font-size: 22px;
    }

    .header-right a.return-home {
        padding: 0.4375rem 0.6875rem;
        font-size: 0.8125rem;
    }

    .header-right a.return-home i {
        font-size: 0.8125rem;
    }

    .sort-toggle label {
        font-size: 13px;
    }

    .shop-card {
        max-width: 33.33%;
        min-width: 200px;
        min-height: 300px;
    }

    .overlay .title {
        font-size: 18px;
    }

    .overlay .info,
    .overlay .pr,
    .overlay .foreign-ok {
        font-size: 13px;
    }

    .overlay .info i {
        font-size: 15px;
    }

    .overlay .fee {
        font-size: 0.8rem;
        padding: 0.45rem;
        min-height: 28px;
    }

    .overlay .link-container a {
        font-size: 0.8rem;
        padding: 0.45rem;
        min-height: 28px;
    }

    .pagination {
        gap: 9px;
    }

    .pagination button,
    .pagination input[type="number"],
    .pagination .page-info {
        padding: 7px 11px;
        font-size: 13px;
    }
}


#floating-logo {
    position: absolute;
    top: 20px;
    left: 170px; /* ✅ 默认：桌面端正常位置 */
    z-index: 9999;
    transition: all 0.3s ease;
}

#floating-logo img {
    width: 250px;
    height: auto;
    transition: all 0.3s ease;
}

/* ✅ 向下滚动时缩小 logo + 下移 */
#floating-logo.shrinked {
    top: 120px;
}

#floating-logo.shrinked img {
    width: 100px;
}

/* ✅ 移动端重新设定位置 */
@media (max-width: 768px) {
    #floating-logo {
        left: 110px;  /* 手机上贴边显示，不会挤出屏幕 */
        top: 30px;
    }

    #floating-logo img {
        width: 160px;  /* 适配手机尺寸 */
    }

    #floating-logo.shrinked {
        top: 70px;     /* 缩小时也往下移一些 */
    }

    #floating-logo.shrinked img {
        width: 80px;
    }
}