/* ============================================
   東京高級派對 - 主页样式表
   ============================================ */

/* 基础重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    background: #0a0a0b;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 防止移动端缩放，但允许正常滚动 */
body, html {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 可选择的文本元素 */
.cast-display-name,
.cast-real-info,
.feature-description,
.hero-description {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ============================================
   背景装饰系统
   ============================================ */

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.03;
    background:
            radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(244, 228, 188, 0.08) 0%, transparent 60%);
    background-size: 100% 100%, 80% 80%, 120% 120%;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
        opacity: 0.03;
    }
    50% {
        background-position: 10% 10%, 90% 90%, 60% 40%;
        opacity: 0.05;
    }
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M40 40l20-20v40l-20-20z'/%3E%3Cpath d='M40 40l-20-20v40l20-20z'/%3E%3Cpath d='M20 40l20-20h-40l20 20z'/%3E%3Cpath d='M60 40l20-20h-40l20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* ============================================
   导航栏系统
   ============================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #c9a96e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #0a0a0b;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, #d4af37, #f4e4bc, #d4af37, #c9a96e);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    animation: logoShimmer 3s ease-in-out infinite;
    margin: 0;
}

.logo-sub {
    font-size: 12px;
    color: rgba(212, 175, 55, 0.7);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-toggle {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(244, 228, 188, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    padding: 10px 16px;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.language-toggle:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(244, 228, 188, 0.15));
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

/* ============================================
   主横幅区域
   ============================================ */

.hero-banner {
    min-height: 85vh; /* ← 改成 min-height */
    padding: 6rem 1.5rem; /* ← 添加上下 padding */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(26, 26, 46, 0.7)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="80" cy="60" r="1" fill="%23d4af37" opacity="0.05"/><circle cx="50" cy="90" r="1" fill="%23d4af37" opacity="0.08"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;  /* ← 关键：避免被裁切 */
    margin-top: 80px;
}


.hero-content {
    max-width: 900px;
    padding: 0 32px;
    z-index: 2;
    line-height: 1.6; /* ← 避免英文堆叠 */
    word-break: break-word;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(244, 228, 188, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    padding: 12px 24px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
    color: #d4af37;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.hero-title {
    margin-bottom: 28px;
}

.title-main {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 25%, #f4e4bc 50%, #d4af37 75%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    animation: titleGlow 4s ease-in-out infinite;
}

.title-sub {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(212, 175, 55, 0.8);
    letter-spacing: 0.3em;
    font-weight: 400;
}

@keyframes titleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 350;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
    font-family: 'Noto Serif JP', serif;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #d4af37;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-icon {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 500;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   服务特色区域
   ============================================ */

.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(16, 16, 24, 0.9), rgba(10, 10, 10, 0.95));
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    font-family: 'Noto Serif JP', serif;
}

.title-icon {
    font-size: 1.2em;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.feature-card {
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: block;
    animation: featureFloat 4s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: -1s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: -2s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: -3s; }
.feature-card:nth-child(5) .feature-icon { animation-delay: -4s; }

@keyframes featureFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 16px;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.05em;
}

.feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================
   检索筛选区域
   ============================================ */

.search-filter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 24, 0.9));
    position: relative;
}

.search-filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

/* 搜索栏 */
.search-bar-container {
    max-width: 600px;
    width: 100%;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-input-wrapper:focus-within {
    border-color: #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.search-input {
    width: 100%;
    padding: 20px 70px 20px 28px;
    background: transparent;
    border: none;
    color: #d4af37;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    ime-mode: active;
}

.search-input::placeholder {
    color: rgba(212, 175, 55, 0.5);
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border: none;
    border-radius: 50%;
    color: #0a0a0b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.search-submit:hover {
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 搜索下拉框 */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.suggestion-item {
    padding: 16px 28px;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.suggestion-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #ffffff;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* 筛选器 */
.filter-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    width: 100%;
}

.filter-tab-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.rank-filter-group {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.rank-filter-group.show {
    display: flex;
    max-height: 300px;
    opacity: 1;
}

.filter-tab-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 0.1em;
}

.filter-tabs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.filter-tab.active {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border-color: #d4af37;
    color: #0a0a0b;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.2rem;
}

.rank-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.clear-filters {
    margin-top: 20px;
    transition: all 0.3s ease;
}

.clear-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid #dc3545;
    border-radius: 25px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.clear-button:hover {
    background: #dc3545;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* ============================================
   佳人一览区域
   ============================================ */

.cast-gallery-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(16, 16, 24, 0.9), rgba(10, 10, 10, 0.95));
}

.cast-gallery-section .section-container {
    transition: opacity 0.5s ease;
}

/* 空状态 */
.empty-gallery {
    text-align: center;
    padding: 120px 20px;
}

.empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 32px;
}

.empty-title {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Noto Serif JP', serif;
}

.empty-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.empty-return-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: #0a0a0b;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.empty-return-btn:hover {
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

/* 佳人网格 - 电脑4列，手机3列 */
.cast-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

/* 佳人卡片 */
.cast-card {
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-height: 420px;
}

.cast-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.cast-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 卡片顶部装饰 */
.card-top-decoration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.1));
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.card-number {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #51cf66;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #51cf66;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* 照片区域 */
.cast-photo-section {
    padding: 16px;
    padding-bottom: 0;
}

.photo-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
}

.cast-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.cast-card:hover .cast-photo {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.no-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(212, 175, 55, 0.4);
    font-size: 0.8rem;
    height: 100%;
}

.no-photo-placeholder i {
    font-size: 2rem;
}

/* 照片覆盖层 */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.cast-card:hover .photo-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #0a0a0b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.overlay-content i {
    font-size: 2rem;
}

/* 信息区域 */
.cast-info-section {
    padding: 16px;
}

/* 类型标识 */
.type-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 姓名信息 */
.name-info {
    margin-bottom: 16px;
}

.cast-display-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    font-family: 'Noto Serif JP', serif;
    line-height: 1.2;
}

.cast-real-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.age-info {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

/* 佳人详细信息 */
.cast-details {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 12px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.75rem;
}

.detail-value {
    font-weight: 600;
    font-size: 0.75rem;
}

.grade-badge {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: #0a0a0b;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.code-badge {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.service-period {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.period-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.period-date {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

.start-date {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.15), rgba(64, 192, 87, 0.1));
    color: #51cf66;
    border-color: rgba(81, 207, 102, 0.2);
}

.end-date {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(255, 140, 200, 0.1));
    color: #ff6b9d;
    border-color: rgba(255, 107, 157, 0.2);
}

.period-separator {
    color: #d4af37;
    font-weight: bold;
    font-size: 12px;
}

/* 预约按钮 */
.booking-action {
    text-align: center;
    margin-top: 12px;
}

.booking-btn {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: #0a0a0b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 0.8rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.booking-btn:hover {
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
}

.grade-badge {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    color: #0a0a0b;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.code-badge {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.service-period {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.period-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.period-date {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.start-date {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.15), rgba(64, 192, 87, 0.1));
    color: #51cf66;
    border-color: rgba(81, 207, 102, 0.2);
}

.end-date {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(255, 140, 200, 0.1));
    color: #ff6b9d;
    border-color: rgba(255, 107, 157, 0.2);
}

.period-separator {
    color: #d4af37;
    font-weight: bold;
    font-size: 14px;
}

/* 预约按钮 */
.booking-action {
    text-align: center;
    margin-top: 16px;
}

.booking-btn {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: #0a0a0b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.9rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.booking-btn:hover {
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ============================================
   保障信息区域
   ============================================ */

.guarantee-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(16, 16, 24, 0.9));
    position: relative;
}

.guarantee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.guarantee-item {
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.guarantee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.guarantee-item:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    animation: guaranteeFloat 4s ease-in-out infinite;
}

.guarantee-item:nth-child(2) .guarantee-icon { animation-delay: -1.5s; }
.guarantee-item:nth-child(3) .guarantee-icon { animation-delay: -3s; }

@keyframes guaranteeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

.guarantee-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 12px;
    font-family: 'Noto Serif JP', serif;
}

.guarantee-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================
   分页
   ============================================ */

.pagination-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.98));
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-numbers-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn,
.page-number {
    padding: 12px 20px;
    background: linear-gradient(145deg, #1a1a1c, #0f0f10);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    min-width: 44px;
    justify-content: center;
}

.pagination-btn:hover,
.page-number:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: #ffffff;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.page-number.current-page {
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border-color: #d4af37;
    color: #0a0a0b;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.page-ellipsis {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
    font-weight: bold;
}

/* ============================================
   页脚
   ============================================ */

.main-footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(10, 10, 10, 0.95));
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 80px 0 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-section {
    padding: 20px;
}

.footer-title {
    font-size: 1.4rem;
    color: #d4af37;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-family: 'Noto Serif JP', serif;
}

.rules-list {
    list-style: none;
    line-height: 1.9;
}

.rules-list li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 300;
}

.contact-item i {
    color: #d4af37;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 40px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-main {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.footer-logo-sub {
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.7);
    letter-spacing: 0.3em;
    font-weight: 300;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 300;
}

/* ============================================
   加载遮罩
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #f4e4bc;
    animation-duration: 1s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #c9a96e;
    animation-duration: 0.8s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #d4af37;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ============================================
   动画效果
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 语言切换过渡 */
[data-zh], [data-en] {
    transition: opacity 0.2s ease;
}

/* 筛选器状态切换动画 */
.filter-tab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab.switching {
    transform: scale(0.95);
    opacity: 0.7;
}

/* ============================================
   响应式设计 - 修复手机端布局
   ============================================ */

@media (max-width: 1200px) {
    .cast-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .guarantee-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    /* 手机端强制3列等宽布局 */
    .cast-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 16px 0;
    }

    .cast-card {
        border-radius: 16px;
        min-height: 320px;
        font-size: 12px;
    }

    .header {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 16px;
        height: 50px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-links {
        display: none;
    }

    .logo-text {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .logo-sub {
        font-size: 9px;
        margin-top: -1px;
    }

    .hero-banner {
        position: relative; /* 关键：为了定位下面的 indicator */
    }

    .scroll-indicator {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        padding-top: 8px;
    }


    .hero-content {
        padding: 0 16px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 11px;
    }

    .features-section,
    .search-filter-section,
    .cast-gallery-section,
    .guarantee-section,
    .pagination-section {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guarantee-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-tabs {
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .search-input {
        padding: 14px 50px 14px 16px;
        font-size: 14px;
    }

    .search-submit {
        width: 42px;
        height: 42px;
        right: 6px;
    }

    /* 手机端卡片优化 */
    .photo-frame {
        height: 120px;
        border-radius: 10px;
    }

    .cast-photo-section {
        padding: 10px;
        padding-bottom: 0;
    }

    .cast-info-section {
        padding: 10px;
    }

    .cast-display-name {
        font-size: 0.9rem;
        margin-bottom: 4px;
        line-height: 1.1;
    }

    .cast-real-info {
        font-size: 0.7rem;
        gap: 4px;
    }

    .real-name {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .age-info {
        padding: 2px 6px;
        font-size: 0.6rem;
        border-radius: 8px;
    }

    .type-indicator {
        padding: 4px 8px;
        font-size: 0.65rem;
        margin-bottom: 8px;
        border-radius: 12px;
        gap: 4px;
    }

    .detail-item {
        margin-bottom: 6px;
        font-size: 0.7rem;
    }

    .detail-label {
        font-size: 0.65rem;
    }

    .detail-value {
        font-size: 0.65rem;
    }

    .grade-badge,
    .code-badge {
        padding: 2px 6px;
        font-size: 0.6rem;
        border-radius: 8px;
    }

    .period-date {
        padding: 2px 6px;
        font-size: 0.6rem;
        border-radius: 6px;
    }

    .booking-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        border-radius: 16px;
        gap: 4px;
    }

    .booking-btn i {
        font-size: 0.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .pagination-container {
        flex-direction: column;
        gap: 12px;
    }

    .page-numbers-container {
        order: 2;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-btn,
    .page-number {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 8px;
    }

    .nav-container {
        padding: 0 8px;
        height: auto;
        min-height: 45px;
        flex-direction: column;
        gap: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .logo-section {
        gap: 6px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-sub {
        font-size: 8px;
    }

    .hero-content {
        padding: 0 8px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .search-input {
        padding: 10px 40px 10px 12px;
        font-size: 12px;
    }

    .search-submit {
        width: 34px;
        height: 34px;
        right: 4px;
    }

    /* 手机端超紧凑3列布局 - 同比例缩小所有元素 */
    .cast-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 8px 0;
    }

    .cast-card {
        min-height: 240px;
        border-radius: 10px;
        font-size: 10px;
        border-width: 1px;
    }

    .card-top-decoration {
        padding: 6px 8px;
        font-size: 9px;
    }

    .card-number {
        font-size: 8px;
    }

    .card-status {
        font-size: 7px;
        gap: 2px;
    }

    .status-dot {
        width: 4px;
        height: 4px;
    }

    .photo-frame {
        height: 80px;
        border-radius: 6px;
    }

    .cast-photo-section {
        padding: 6px;
        padding-bottom: 0;
    }

    .cast-info-section {
        padding: 6px;
    }

    .cast-display-name {
        font-size: 11px;
        margin-bottom: 2px;
        line-height: 1.1;
        /* 防止英文名称过长 */
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cast-real-info {
        font-size: 8px;
        gap: 2px;
        margin-bottom: 6px;
    }

    .real-name {
        font-size: 8px;
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .age-info {
        padding: 1px 3px;
        font-size: 7px;
        border-radius: 4px;
        white-space: nowrap;
        border-width: 1px;
    }

    .type-indicator {
        padding: 2px 5px;
        font-size: 7px;
        margin-bottom: 4px;
        border-radius: 8px;
        gap: 2px;
        /* 防止文字溢出 */
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cast-details {
        padding-top: 4px;
        margin-bottom: 6px;
    }

    .detail-item {
        margin-bottom: 3px;
        font-size: 8px;
        gap: 1px;
    }

    .detail-label {
        font-size: 7px;
        color: rgba(255, 255, 255, 0.6);
        /* 缩短标签文字 */
        max-width: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .detail-value {
        font-size: 7px;
        /* 防止数值过长 */
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .service-period {
        align-items: flex-start;
    }

    .service-period .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .period-info {
        gap: 2px;
        flex-wrap: wrap;
        width: 100%;
    }

    .period-date {
        padding: 1px 3px;
        font-size: 6px;
        border-radius: 3px;
        border-width: 1px;
        white-space: nowrap;
    }

    .period-separator {
        font-size: 6px;
    }

    .grade-badge,
    .code-badge {
        padding: 1px 3px;
        font-size: 6px;
        border-radius: 4px;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .booking-action {
        margin-top: 4px;
    }

    .booking-btn {
        padding: 4px 6px;
        font-size: 8px;
        border-radius: 10px;
        gap: 2px;
        height: 24px;
        /* 防止按钮文字过长 */
        max-width: 100%;
        overflow: hidden;
    }

    .booking-btn i {
        font-size: 8px;
    }

    .booking-btn span {
        max-width: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .no-photo-placeholder {
        gap: 4px;
        font-size: 7px;
    }

    .no-photo-placeholder i {
        font-size: 16px;
    }

    .photo-overlay .overlay-content {
        gap: 4px;
        font-size: 7px;
    }

    .photo-overlay .overlay-content i {
        font-size: 16px;
    }

    /* 手机端分页按钮优化 - 确保显示 */
    .pagination-container {
        flex-direction: row;
        gap: 6px;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap; /* 防止换行 */
        padding: 0 8px;
    }

    .page-numbers-container {
        gap: 4px;
        order: 0;
        flex: 1;
        justify-content: center;
        overflow-x: auto;
        max-width: calc(100vw - 120px); /* 为前后按钮留空间 */
    }

    .prev-btn {
        order: -1;
        flex-shrink: 0;
        min-width: 40px;
        padding: 6px 8px;
    }

    .next-btn {
        order: 1;
        flex-shrink: 0;
        min-width: 40px;
        padding: 6px 8px;
    }

    .pagination-btn,
    .page-number {
        padding: 6px 8px;
        font-size: 10px;
        border-radius: 16px;
        min-width: 28px;
        gap: 2px;
        flex-shrink: 0;
    }

    .pagination-btn span {
        display: none; /* 隐藏文字，只显示图标 */
    }

    .pagination-btn i {
        font-size: 12px;
    }

    .page-ellipsis {
        padding: 0 4px;
        font-size: 10px;
    }
}

.no-photo-placeholder i {
    font-size: 16px;
}

.photo-overlay .overlay-content {
    gap: 4px;
    font-size: 7px;
}

.photo-overlay .overlay-content i {
    font-size: 16px;
}

.pagination-btn,
.page-number {
    padding: 5px 8px;
    font-size: 10px;
}
display-name {
     font-size: 0.8rem;
     margin-bottom: 3px;
 }

.cast-real-info {
    font-size: 0.65rem;
    gap: 3px;
    flex-direction: column;
    align-items: flex-start;
}

.real-name {
    max-width: none;
    font-size: 0.65rem;
}

.age-info {
    padding: 1px 4px;
    font-size: 0.55rem;
    align-self: flex-start;
}

.type-indicator {
    padding: 3px 6px;
    font-size: 0.6rem;
    margin-bottom: 6px;
    border-radius: 10px;
}

.cast-details {
    padding-top: 8px;
    margin-bottom: 8px;
}

.detail-item {
    margin-bottom: 4px;
    font-size: 0.65rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.detail-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    font-size: 0.6rem;
}

.service-period .period-info {
    gap: 4px;
    flex-wrap: wrap;
}

.period-date {
    padding: 1px 4px;
    font-size: 0.55rem;
    border-radius: 4px;
}

.grade-badge,
.code-badge {
    padding: 1px 4px;
    font-size: 0.55rem;
    border-radius: 6px;
}

.booking-action {
    margin-top: 8px;
}

.booking-btn {
    padding: 5px 8px;
    font-size: 0.65rem;
    border-radius: 12px;
    gap: 3px;
}

.booking-btn i {
    font-size: 0.65rem;
}

.pagination-btn,
.page-number {
    padding: 6px 10px;
    font-size: 0.75rem;
}


/* 超小屏幕优化 - 保持3列但进一步缩小 */
@media (max-width: 320px) {
    .cast-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 6px 0;
    }

    .cast-card {
        min-height: 200px;
        border-radius: 8px;
        font-size: 9px;
    }

    .card-top-decoration {
        padding: 4px 6px;
    }

    .card-number {
        font-size: 7px;
    }

    .card-status {
        font-size: 6px;
        gap: 1px;
    }

    .status-dot {
        width: 3px;
        height: 3px;
    }

    .photo-frame {
        height: 60px;
        border-radius: 5px;
    }

    .cast-photo-section {
        padding: 4px;
        padding-bottom: 0;
    }

    .cast-info-section {
        padding: 4px;
    }

    .cast-display-name {
        font-size: 9px;
        margin-bottom: 1px;
    }

    .cast-real-info {
        font-size: 7px;
        gap: 1px;
        margin-bottom: 4px;
    }

    .real-name {
        font-size: 7px;
        max-width: 40px;
    }

    .age-info {
        padding: 0px 2px;
        font-size: 6px;
        border-radius: 3px;
    }

    .type-indicator {
        padding: 1px 3px;
        font-size: 6px;
        margin-bottom: 3px;
        border-radius: 6px;
        gap: 1px;
    }

    .cast-details {
        padding-top: 3px;
        margin-bottom: 4px;
    }

    .detail-item {
        margin-bottom: 2px;
        font-size: 7px;
    }

    .detail-label {
        font-size: 6px;
        max-width: 30px;
    }

    .detail-value {
        font-size: 6px;
        max-width: 50px;
    }

    .period-date {
        padding: 0px 2px;
        font-size: 5px;
        border-radius: 2px;
    }

    .grade-badge,
    .code-badge {
        padding: 0px 2px;
        font-size: 5px;
        border-radius: 3px;
    }

    .booking-btn {
        padding: 3px 4px;
        font-size: 7px;
        border-radius: 8px;
        gap: 1px;
        height: 20px;
    }

    .booking-btn i {
        font-size: 7px;
    }

    .booking-btn span {
        max-width: 25px;
    }

    .no-photo-placeholder {
        gap: 2px;
        font-size: 6px;
    }

    .no-photo-placeholder i {
        font-size: 12px;
    }

    .photo-overlay .overlay-content {
        gap: 2px;
        font-size: 6px;
    }

    .photo-overlay .overlay-content i {
        font-size: 12px;
    }

    .filter-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .nav-container {
        padding: 4px 8px;
    }

    /* 320px 分页按钮进一步优化 */
    .pagination-container {
        gap: 4px;
        padding: 0 4px;
    }

    .page-numbers-container {
        gap: 2px;
        max-width: calc(100vw - 100px); /* 为前后按钮留更多空间 */
    }

    .prev-btn,
    .next-btn {
        min-width: 32px;
        padding: 4px 6px;
    }

    .pagination-btn,
    .page-number {
        padding: 4px 6px;
        font-size: 9px;
        border-radius: 12px;
        min-width: 24px;
        gap: 1px;
    }

    .pagination-btn i {
        font-size: 10px;
    }

    .page-ellipsis {
        padding: 0 2px;
        font-size: 9px;
    }
}

/* 语言切换时的特殊处理 - 防止英文文字溢出 */
.cast-card[data-lang="en"] .cast-display-name,
.cast-card[data-lang="en"] .real-name,
.cast-card[data-lang="en"] .detail-label,
.cast-card[data-lang="en"] .booking-btn span {
    font-size: 90%; /* 英文稍微小一点 */
    letter-spacing: -0.2px; /* 紧凑字母间距 */
}

@media (max-width: 768px) {
    .cast-card[data-lang="en"] .cast-display-name {
        font-size: 0.85rem;
    }

    .cast-card[data-lang="en"] .detail-label {
        font-size: 0.6rem;
        max-width: 35px;
    }

    .cast-card[data-lang="en"] .booking-btn span {
        font-size: 0.65rem;
        max-width: 35px;
    }
}

@media (max-width: 480px) {
    .cast-card[data-lang="en"] .cast-display-name {
        font-size: 10px;
        max-width: 90%;
    }

    .cast-card[data-lang="en"] .detail-label {
        font-size: 6px;
        max-width: 25px;
    }

    .cast-card[data-lang="en"] .booking-btn span {
        font-size: 7px;
        max-width: 20px;
    }

    .cast-card[data-lang="en"] .type-indicator {
        font-size: 6px;
    }
}

/* 防止长文本破坏布局的全局规则 */
.cast-card * {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 确保所有文本元素都有合适的最大宽度 */
.cast-card .cast-display-name,
.cast-card .real-name,
.cast-card .detail-label,
.cast-card .detail-value,
.cast-card .booking-btn span,
.cast-card .type-indicator span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 确保分页按钮在所有屏幕尺寸都可见 */
.pagination-section {
    min-height: 80px;
    display: flex;
    align-items: center;
}

.pagination-container {
    width: 100%;
    max-width: 100vw;
    overflow-x: visible;
}

/* 分页按钮的最小尺寸保证 */
.pagination-btn,
.page-number {
    min-height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .pagination-btn,
    .page-number {
        min-height: 28px;
    }
}

@media (max-width: 320px) {
    .pagination-btn,
    .page-number {
        min-height: 24px;
    }
}

/* 确保分页在极小屏幕上的可见性 */
@media (max-width: 280px) {
    .pagination-container {
        flex-direction: column;
        gap: 8px;
    }

    .page-numbers-container {
        order: 1;
        max-width: 100%;
    }

    .prev-btn {
        order: 0;
    }

    .next-btn {
        order: 2;
    }
}

/* 大屏幕优化 */
@media (min-width: 1920px) {
    .cast-gallery {
        grid-template-columns: repeat(5, 1fr);
        gap: 40px;
    }

    .section-container {
        max-width: 1600px;
    }
}

/* 4K屏幕 */
@media (min-width: 2560px) {
    .cast-gallery {
        grid-template-columns: repeat(6, 1fr);
    }

    .section-container {
        max-width: 2200px;
    }
}

/* ============================================
   滚动条和选择样式
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37, #c9a96e);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
}

::selection {
    background: rgba(212, 175, 55, 0.25);
    color: #ffffff;
}

/* ============================================
   性能优化
   ============================================ */

.cast-photo,
.feature-icon,
.guarantee-icon {
    will-change: transform;
}

.filter-tabs {
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.cast-card,
.feature-card,
.guarantee-item {
    contain: layout style;
}

/* ============================================
   无障碍支持
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    .cast-card,
    .filter-tab,
    .pagination-btn,
    .page-number,
    .feature-card,
    .guarantee-item {
        border-color: #d4af37 !important;
    }
}

/* 触摸设备优化 */
.touch-device .cast-card:hover {
    transform: none;
}

.touch-device .filter-tab:hover {
    transform: none;
}

/* 打印样式 */
@media print {
    .bg-decoration,
    .bg-pattern,
    .search-filter-section,
    .pagination-section,
    .loading-overlay {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .cast-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* 安全区域适配 (iPhone X+) */
@supports (padding: max(0px)) {
    .nav-container,
    .section-container,
    .footer-container {
        padding-left: max(32px, env(safe-area-inset-left));
        padding-right: max(32px, env(safe-area-inset-right));
    }

    .header {
        padding-top: env(safe-area-inset-top);
    }
}

/* 隐藏类 */
.hidden {
    display: none;
}

/* 大屏幕优化 */
@media (min-width: 1920px) {
    .cast-gallery {
        grid-template-columns: repeat(5, 1fr);
        gap: 40px;
    }

    .section-container {
        max-width: 1600px;
    }
}

/* 4K屏幕 */
@media (min-width: 2560px) {
    .cast-gallery {
        grid-template-columns: repeat(6, 1fr);
    }

    .section-container {
        max-width: 2200px;
    }
}

/* ============================================
   滚动条和选择样式
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37, #c9a96e);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
}

::selection {
    background: rgba(212, 175, 55, 0.25);
    color: #ffffff;
}

/* ============================================
   性能优化
   ============================================ */

.cast-photo,
.feature-icon,
.guarantee-icon {
    will-change: transform;
}

.filter-tabs {
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.cast-card,
.feature-card,
.guarantee-item {
    contain: layout style;
}

/* ============================================
   无障碍支持
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    .cast-card,
    .filter-tab,
    .pagination-btn,
    .page-number,
    .feature-card,
    .guarantee-item {
        border-color: #d4af37 !important;
    }
}

/* 触摸设备优化 */
.touch-device .cast-card:hover {
    transform: none;
}

.touch-device .filter-tab:hover {
    transform: none;
}

/* 打印样式 */
@media print {
    .bg-decoration,
    .bg-pattern,
    .search-filter-section,
    .pagination-section,
    .loading-overlay {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .cast-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}

/* 安全区域适配 (iPhone X+) */
@supports (padding: max(0px)) {
    .nav-container,
    .section-container,
    .footer-container {
        padding-left: max(32px, env(safe-area-inset-left));
        padding-right: max(32px, env(safe-area-inset-right));
    }

    .header {
        padding-top: env(safe-area-inset-top);
    }
}

/* 隐藏类 */
.hidden {
    display: none;
}

.cast-gallery {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* 汉堡菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(244, 228, 188, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(244, 228, 188, 0.15));
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* 移动端样式 */
@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: block;
    }

    /* 导航容器调整 */
    .nav-container {
        padding: 8px 16px;
        height: auto;
        min-height: 50px;
    }

    .nav-controls {
        position: relative;
        width: 100%;
    }

    /* 隐藏导航链接，改为下拉菜单 */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.98);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 12px;
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        margin-top: 8px;
        backdrop-filter: blur(20px);
        z-index: 1001;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    /* 显示状态 */
    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    /* 移动端导航链接样式 */
    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
        background: linear-gradient(145deg, #1a1a1c, #0f0f10);
        border: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-link:hover {
        background: rgba(212, 175, 55, 0.1);
        border-color: rgba(212, 175, 55, 0.3);
    }

    /* 语言切换和汉堡菜单并排 */
    .nav-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .language-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 下拉动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 桌面端样式 */
.powered-by {
    margin-top: 15px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.powered-by-link {
    color: #999;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.powered-by-link:hover {
    color: #fff;
    text-decoration: underline;
    transform: translateY(-1px);
}

.powered-by-link:before {
    content: "⚡";
    font-size: 0.9em;
    opacity: 0.7;
}

/* 平板端样式 */
@media screen and (max-width: 768px) {
    .powered-by {
        margin-top: 12px;
        padding-top: 8px;
    }

    .powered-by-link {
        font-size: 0.8em;
        gap: 4px;
    }

    .powered-by-link:before {
        font-size: 0.85em;
    }
}

/* 手机端样式 */
@media screen and (max-width: 480px) {
    .powered-by {
        margin-top: 10px;
        padding-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .powered-by-link {
        color: #aaa;
        font-size: 0.75em;
        gap: 3px;
        padding: 4px 8px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.02);
    }

    .powered-by-link:hover {
        color: #ddd;
        background: rgba(255, 255, 255, 0.05);
        transform: none; /* 移除手机端的向上移动效果 */
    }

    .powered-by-link:before {
        content: "⚡";
        font-size: 0.8em;
        opacity: 0.6;
    }

    /* 手机端触摸友好 */
    .powered-by-link:active {
        background: rgba(255, 255, 255, 0.08);
        transform: scale(0.98);
    }
}

/* 小屏幕手机端 */
@media screen and (max-width: 360px) {
    .powered-by {
        margin-top: 8px;
        padding-top: 5px;
    }

    .powered-by-link {
        font-size: 0.7em;
        gap: 2px;
        padding: 3px 6px;
    }

    .powered-by-link:before {
        font-size: 0.75em;
    }
}