
/* 各品牌色调变量 */
:root {
    --oscars-primary: #F4C430;
    --cannes-primary: #1A5F9F;
    --grammy-primary: #C4A035;
    --golden-primary: #D4AF37;
    --emmy-primary: #8B4513;
    --gvf-primary: #D4AF37;
    --gtmc-primary: #C4A035;
    --miss-world-primary: #4169E1;
    --vangogh-primary: #4A90A4;
}


/* GVF - 全球综艺盛典投票系统主样式
 * 轻奢高级感设计 - 莫兰迪色系 + 烫金装饰 + 丝绒肌理
 */

/* ==================== 莫兰迪色系定义 ==================== */
:root {
    --morandi-beige: #E8DDD4;      /* 米色背景 */
    --morandi-blush: #D4C4B7;      /* 藕粉色 */
    --morandi-sage: #A8B5A0;       /* 鼠尾草绿 */
    --morandi-blue: #9CA8B8;       /* 莫兰迪蓝 */
    --morandi-rose: #C9A8A5;       /* 玫瑰粉 */
    --morandi-gold: #C4A962;       /* 莫兰迪金 */
    --morandi-charcoal: #4A4A4A;   /* 深灰 */
    --morandi-cream: #F5F0E8;      /* 奶油色 */
    --morandi-lavender: #B8A9C9;   /* 薰衣草紫 */

    /* 烫金装饰 */
    --gold-linear: linear-gradient(135deg, #D4AF37 0%, #F4E4BA 25%, #D4AF37 50%, #C4A962 75%, #D4AF37 100%);
    --gold-solid: #D4AF37;
    --gold-light: #F4E4BA;
    --gold-dark: #C4A962;

    /* 丝绒效果 */
    --velvet-dark: #1A1A1A;
    --velvet-overlay: rgba(0, 0, 0, 0.6);
    --velvet-gradient: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);

    /* 字体 */
    --font-primary: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;

    /* 阴影和光效 */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.2);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.12);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ==================== 侧边栏样式 ==================== */
.side-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 100px;
}

/* 左侧热门艺人列表 —— 整体缩小以匹配右侧选手模块 */
.side-artist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.side-artist-item:hover {
    background: rgba(196, 169, 98, 0.15);
    transform: translateX(3px);
}

.side-artist-rank {
    font-size: 15px;
    font-weight: bold;
    width: 22px;
    text-align: center;
    color: var(--morandi-gold);
    flex-shrink: 0;
}

.side-artist-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--morandi-gold);
    flex-shrink: 0;
}

.side-artist-info {
    flex: 1;
    min-width: 0;
}

.side-artist-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--morandi-cream);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-artist-votes {
    font-size: 11px;
    color: var(--morandi-gold);
}

/* 右侧热门选手列表 */
.side-contestant-item {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.side-contestant-item:hover {
    background: rgba(196, 169, 98, 0.15);
    transform: translateX(3px);
}

.side-contestant-rank {
    font-size: 15px;
    font-weight: bold;
    color: var(--morandi-gold);
    display: flex;
    align-items: center;
    width: 22px;
    flex-shrink: 0;
}

.side-contestant-info {
    flex: 1;
    min-width: 0;
}

.side-contestant-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--morandi-cream);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-contestant-talent {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.side-contestant-city {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.side-contestant-video {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.3s;
}

.side-contestant-video:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .side-column {
        position: static;
    }
}

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--morandi-beige);
    background-image: 
        /* 丝绒肌理效果 */
        radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(156, 168, 184, 0.08) 0%, transparent 50%),
        /* 烫金质感渐变层 */
        linear-gradient(135deg, rgba(255,215,0,0.05) 0%, rgba(212,175,55,0.08) 50%, rgba(255,215,0,0.05) 100%);
    color: var(--morandi-charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== 烫金线条装饰 ==================== */
.gold-border {
    border: 1px solid;
    border-image: var(--gold-linear) 1;
}

.gold-border-bottom {
    border-bottom: 2px solid;
    border-image: var(--gold-linear) 1;
}

.gold-line {
    height: 2px;
    background: var(--gold-linear);
    margin: 20px 0;
}

.gold-text {
    background: var(--gold-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* ==================== 丝绒背景 ==================== */
.velvet-bg {
    background: var(--velvet-dark);
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    color: var(--morandi-cream);
}

.velvet-overlay {
    position: relative;
}

.velvet-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--velvet-gradient);
    pointer-events: none;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(16px);
    padding: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

/* 顶部烫金细线装饰 */
.navbar::before {
    content: '';
    display: block;
    height: 2px;
    background: var(--gold-linear);
    width: 100%;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    flex-wrap: nowrap;
    gap: 16px;
}

.navbar-container .nav-links {
    flex: 0 1 auto;
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.navbar-container .auth-buttons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    background: var(--gold-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(245, 240, 232, 0.82);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-linear);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--morandi-gold);
}

.nav-links a.gold-text {
    color: var(--morandi-gold);
}

/* 充值按钮特殊样式 */
.nav-links .btn-recharge {
    background: var(--gold-linear);
    color: #1A1A1A !important;
    padding: 6px 18px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px rgba(212,175,55,0.35);
    transition: all 0.3s;
}
.nav-links .btn-recharge:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212,175,55,0.5);
}
.nav-links .btn-recharge::after { display: none; }

/* 防止导航栏元素换行的响应式处理 */
@media (max-width: 1200px) {
    .navbar-container .nav-links {
        gap: 16px;
    }
    .nav-links a {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 16px;
        gap: 12px;
    }
    .navbar-container .nav-links {
        gap: 12px;
    }
    .nav-links a {
        font-size: 13px;
        padding: 6px 0;
    }
}

.lang-switch {
    display: flex;
    gap: 4px;
    flex-direction: row;
}

.lang-btn {
    padding: 4px 8px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: transparent;
    color: rgba(245, 240, 232, 0.75);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    border-radius: 2px;
    letter-spacing: 0;
    min-width: 28px;
}

.lang-btn.active, .lang-btn:hover {
    background: var(--morandi-gold);
    color: #1A1A1A;
    border-color: var(--morandi-gold);
    box-shadow: 0 2px 12px rgba(212,175,55,0.3);
}

/* 登录/注册按钮在深色导航栏上的适配 */
.auth-buttons .btn-secondary {
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(245, 240, 232, 0.8);
    background: transparent;
}
.auth-buttons .btn-secondary:hover {
    border-color: var(--morandi-gold);
    color: var(--morandi-gold);
    background: rgba(212,175,55,0.08);
}
.auth-buttons .btn-primary {
    background: var(--gold-linear);
    color: #1A1A1A;
}

/* 搜索框在深色导航栏上完美融合 */
.search-bar-wrapper {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(212,175,55,0.35) !important;
}
.search-bar-wrapper:focus-within {
    background: rgba(255,255,255,0.12) !important;
    border-color: var(--morandi-gold) !important;
}

/* ==================== Hero区域 ==================== */
.hero {
    min-height: 680px;
    background: var(--velvet-dark);
    background-image: 
        linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 6vw, 64px);
    font-weight: 700;
    color: var(--morandi-cream);
    margin-bottom: 20px;
    letter-spacing: clamp(3px, 1.2vw, 8px);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(13px, 2.5vw, 28px);
    color: var(--morandi-gold);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: clamp(2px, 0.8vw, 4px);
}

.hero-subtitle-en {
    font-size: 18px;
    color: var(--morandi-blue);
    opacity: 0.9;
    letter-spacing: 6px;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.hero-decoration::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 181, 160, 0.1) 0%, transparent 70%);
}

/* ==================== 金色分割线 ==================== */
.gold-divider {
    height: 4px;
    background: var(--gold-linear);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.gold-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: clamp(12px, 1.4vw, 16px);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold-linear);
    color: white;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--morandi-charcoal);
    border: 1px solid var(--morandi-gold);
}

.btn-secondary:hover {
    background: var(--morandi-gold);
    color: white;
}

.btn-gold {
    background: var(--gold-linear);
    color: white;
    font-size: 18px;
    padding: 16px 50px;
    letter-spacing: 2px;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

/* ==================== 卡片样式 ==================== */
.card {
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-linear);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--morandi-charcoal);
    margin-bottom: 15px;
    font-weight: 600;
}

.card-text {
    color: var(--morandi-charcoal);
    opacity: 0.8;
    line-height: 1.7;
    font-size: 15px;
}

/* ==================== 艺人卡片 ==================== */
.artist-card {
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.artist-card:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-8px);
}

.artist-cover {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.artist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artist-card:hover .artist-cover img {
    transform: scale(1.05);
}

.artist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--velvet-gradient);
    color: white;
}

.artist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--morandi-gold);
    object-fit: cover;
    position: absolute;
    top: -40px;
    right: 20px;
    box-shadow: var(--shadow-soft);
}

.artist-info {
    padding: 25px;
    padding-top: 20px;
}

.artist-name {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--morandi-charcoal);
    margin-bottom: 5px;
    font-weight: 600;
}

.artist-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--morandi-beige);
    color: var(--morandi-charcoal);
    font-size: 12px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.artist-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--morandi-beige);
}

.artist-stat {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--morandi-gold);
}

.stat-label {
    font-size: 12px;
    color: var(--morandi-charcoal);
    opacity: 0.7;
}

/* ==================== 排行榜 ==================== */
.ranking-section {
    padding: 80px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    text-align: center;
    color: var(--morandi-charcoal);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--morandi-gold);
    font-size: 18px;
    margin-bottom: 60px;
    letter-spacing: 4px;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.ranking-tab {
    padding: 12px 30px;
    background: white;
    border: 1px solid var(--morandi-beige);
    color: var(--morandi-charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.ranking-tab.active, .ranking-tab:hover {
    background: var(--morandi-gold);
    color: white;
    border-color: var(--morandi-gold);
    box-shadow: var(--shadow-gold);
}

.ranking-list {
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--morandi-beige);
    transition: background 0.3s ease;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: var(--morandi-cream);
}

.ranking-rank {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    width: 60px;
    color: var(--morandi-charcoal);
}

.ranking-item:nth-child(1) .ranking-rank {
    color: var(--morandi-gold);
    font-size: 40px;
    text-shadow: var(--glow-gold);
}

.ranking-item:nth-child(2) .ranking-rank {
    color: var(--morandi-rose);
}

.ranking-item:nth-child(3) .ranking-rank {
    color: var(--morandi-lavender);
}

.ranking-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 20px;
    border: 2px solid var(--morandi-gold);
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--morandi-charcoal);
    margin-bottom: 5px;
}

.ranking-category {
    font-size: 14px;
    color: var(--morandi-charcoal);
    opacity: 0.7;
}

.ranking-votes {
    text-align: right;
}

.vote-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--morandi-gold);
}

.vote-label {
    font-size: 12px;
    color: var(--morandi-charcoal);
    opacity: 0.7;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    /* Hero 区域移动端：压缩顶部留白，改为顶部对齐 */
    .hero {
        min-height: unset !important;
        height: auto !important;
        align-items: flex-start !important;
        padding-top: 0 !important;
    }
    .hero-content {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
        width: 100%;
    }

    .hero-title {
        font-size: clamp(24px, 7vw, 36px) !important;
        letter-spacing: clamp(2px, 1vw, 4px) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(12px, 3.5vw, 18px) !important;
        letter-spacing: clamp(1px, 0.5vw, 2px) !important;
    }
    
    .nav-links {
        display: none;
    }

    /* 导航栏容器移动端适配 */
    .navbar-container {
        padding: 0 12px;
        height: 54px;
        gap: 8px;
        overflow: hidden;
    }

    /* logo 缩小 */
    .logo img {
        height: 32px !important;
    }

    /* lang-switch 缩小 */
    .lang-switch {
        gap: 2px !important;
    }
    .lang-btn {
        padding: 3px 7px !important;
        font-size: 11px !important;
        min-width: unset !important;
    }

    /* 登录/注册按钮在移动端强制缩小 */
    .auth-buttons {
        margin-left: 6px !important;
        flex-shrink: 0;
    }
    .auth-buttons .btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
        border-radius: 3px !important;
    }
    .auth-buttons .btn + .btn {
        margin-left: 4px !important;
    }

    /* 搜索框在移动端隐藏或缩小 */
    .oscar-search {
        display: none !important;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .ranking-item {
        padding: 15px;
    }
    
    .ranking-rank {
        font-size: 24px;
        width: 40px;
    }
    
    .ranking-avatar {
        width: 50px;
        height: 50px;
        margin: 0 15px;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ==================== 深色主题适配（综艺界奥运会风格） ==================== */

/* 深色背景下 body 默认文字适配 */
body {
    background: #111111;
    color: var(--morandi-cream);
}

/* 艺人卡片深色适配 */
.artist-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--morandi-cream);
}
.artist-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,175,55,0.35);
}
.artist-name {
    color: var(--morandi-cream);
}
.artist-category {
    background: rgba(255,255,255,0.08);
    color: rgba(245,240,232,0.7);
}
.artist-stats {
    border-top-color: rgba(255,255,255,0.08);
}
.stat-label {
    color: rgba(255,255,255,0.5);
}

/* 排行榜条目深色适配 */
.ranking-item:hover {
    background: rgba(212,175,55,0.06);
}
.ranking-name {
    color: var(--morandi-cream);
}
.ranking-category {
    color: rgba(255,255,255,0.5);
}
.vote-label {
    color: rgba(255,255,255,0.5);
}

/* section-title 深色下的颜色 */
.section-title {
    color: var(--morandi-cream);
}

/* 分割线深色版本 */
.gold-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(212,175,55,0.5) 30%, #D4AF37 50%, rgba(212,175,55,0.5) 70%, transparent 100%);
}

/* 页脚深色适配 */
footer {
    background: #080808 !important;
    border-top: 1px solid rgba(212,175,55,0.15);
}

/* ==================== 导航下拉菜单 ==================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    padding: 10px 0;
    display: inline-block;
}

/* 增加触摸区域的容错性 - 在菜单和触发器之间建立不可见的连接区域 */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 9998;
    pointer-events: auto;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    min-width: 180px;
    list-style: none;
    padding: 8px 0;
    z-index: 9999;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    /* 防止触摸时的闪烁 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(212,175,55,0.3);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    color: rgba(245,240,232,0.82) !important;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border-radius: 0;
    /* 增大触摸区域 */
    min-height: 44px;
    line-height: 20px;
    display: flex;
    align-items: center;
}

.nav-dropdown-menu li a::after { display: none !important; }

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a:active {
    background: rgba(212,175,55,0.12);
    color: var(--morandi-gold) !important;
    padding-left: 24px;
}

/* 桌面端：hover 触发 */
@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
        animation: dropFadeIn 0.2s ease;
    }
}

/* 触摸设备：点击触发 */
@media (hover: none) and (pointer: coarse) {
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
        animation: dropFadeIn 0.2s ease;
    }
}

/* 通用：active 状态也显示菜单 */
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
    animation: dropFadeIn 0.2s ease;
}

@keyframes dropFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 导航栏 gap 缩小，避免撑满 */
.nav-links {
    gap: 22px !important;
}

.nav-links > li > a,
.nav-links > li > .nav-dropdown-toggle {
    font-size: 14px !important;
}


/* 全局深色模式增强 */
html, body {
    background-color: #0e0e0e;
    color: var(--morandi-cream);
}

/* 导航栏新入口高亮 */
.nav-links a[href*="skit-zone"]:hover,
.nav-links a[href*="vote-by-region"]:hover,
.nav-links a[href*="artist-preferences"]:hover {
    color: var(--morandi-gold) !important;
}

/* 快捷入口卡片统一过渡 */
.quick-entry-card {
    display: block;
    padding: 18px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}
.quick-entry-card:hover {
    background: rgba(212,175,55,0.10);
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.10);
}

/* 分类标签通用 */
.category-badge-gold {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 16px;
    font-size: 11px;
    color: var(--morandi-gold);
    letter-spacing: 1px;
}

/* 投票按钮统一样式（无依赖） */
.btn-vote-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--gold-linear);
    color: #1a1a1a;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    transition: all 0.3s;
}
.btn-vote-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.30);
}

/* 地区标签 flag-chip */
.flag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    font-size: 12px;
    color: rgba(245,240,232,0.7);
}

/* 实时动态点 */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #ff4444;
}
.live-indicator::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4444;
    animation: livePulse 1.2s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* 艺人偏好管理页面 - 步骤进度条 */
.pref-progress {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
}
.pref-step {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(245,240,232,0.35);
    border-bottom: 2px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}
.pref-step.active {
    color: var(--morandi-gold);
    border-bottom-color: var(--morandi-gold);
}
.pref-step.done {
    color: rgba(212,175,55,0.6);
    border-bottom-color: rgba(212,175,55,0.3);
}

/* 服饰定制高亮 border */
.couture-highlight {
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 14px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212,175,55,0.07) 0%, rgba(0,0,0,0) 100%);
}

/* 排行榜奖牌色 */
.medal-gold   { color: #FFD700; }
.medal-silver { color: #C0C0C0; }
.medal-bronze { color: #CD7F32; }

/* 视频举报按钮 */
.btn-report {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255,80,80,0.3);
    border-radius: 6px;
    color: rgba(255,100,100,0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-report:hover {
    background: rgba(255,80,80,0.10);
    border-color: rgba(255,80,80,0.6);
    color: #ff6464;
}

/* 分类树多级展开 */
.sub-category-tree {
    padding-left: 16px;
    border-left: 2px solid rgba(212,175,55,0.15);
    margin: 8px 0;
}
.sub-cat-item {
    padding: 6px 12px;
    font-size: 13px;
    color: rgba(245,240,232,0.6);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.sub-cat-item:hover, .sub-cat-item.active {
    background: rgba(212,175,55,0.10);
    color: var(--morandi-gold);
}

/* 支付档位按钮 */
.payment-tier-btn {
    padding: 20px 16px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.payment-tier-btn:hover, .payment-tier-btn.selected {
    background: rgba(212,175,55,0.12);
    border-color: var(--morandi-gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}
.payment-tier-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--morandi-gold);
}
.payment-tier-votes {
    font-size: 13px;
    color: rgba(245,240,232,0.6);
    margin-top: 4px;
}

/* 烫金线性装饰条 */
.gold-stripe {
    height: 2px;
    background: var(--gold-linear);
    width: 100%;
}
.gold-stripe-v {
    width: 2px;
    background: var(--gold-linear);
}

/* 城市应援官模板增强 */
.ambassador-city-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(212,175,55,0.08);
    border-radius: 10px;
    border: 1px solid rgba(212,175,55,0.15);
}
.ambassador-city-stat .stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--morandi-gold);
}
.ambassador-city-stat .stat-text {
    font-size: 12px;
    color: rgba(245,240,232,0.5);
}

/* 应援粉丝等级福利图标 */
.fan-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.fan-tier-1 { background: rgba(212,175,55,0.20); color: #FFD700; border: 1px solid rgba(212,175,55,0.35); }
.fan-tier-2 { background: rgba(192,192,192,0.15); color: #C0C0C0; border: 1px solid rgba(192,192,192,0.3); }
.fan-tier-3 { background: rgba(205,127,50,0.15); color: #CD7F32; border: 1px solid rgba(205,127,50,0.3); }

/* 响应式优化 */
@media (max-width: 900px) {
    .pref-layout { grid-template-columns: 1fr !important; }
    .page-body { grid-template-columns: 1fr !important; }
    .artists-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   GVF 完整移动端响应式适配方案
   断点体系：
     ≤768px  → 平板竖屏 / 大屏手机
     ≤480px  → 手机横屏 / 标准手机
     ≤375px  → 小屏手机 (iPhone SE / 375px机型)
   ============================================================ */

/* ---------- 断点1：768px ---------- */
@media (max-width: 768px) {

    /* ===== 全局字号 & 间距基准 ===== */
    html { font-size: 15px; }

    /* ===== Section 通用间距收缩 ===== */
    .ranking-section,
    section.ranking-section {
        padding: 24px 14px !important;
    }
    .section-title { font-size: 22px !important; letter-spacing: 3px !important; }
    .section-subtitle { font-size: 11px !important; letter-spacing: 5px !important; }

    /* ===== 三栏布局 → 单列 ===== */
    /* 首页三列 grid 改为单列堆叠 */
    div[style*="grid-template-columns: 240px 1fr 240px"],
    div[style*="grid-template-columns: 280px 1fr 280px"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    /* 左/右侧列取消sticky，全宽显示 */
    .side-column {
        position: static !important;
        width: 100% !important;
        padding: 12px !important;
    }
    /* 侧栏默认折叠——只显示3条，"查看更多"展开 */
    .side-artists-list .side-artist-item:nth-child(n+4),
    .side-contestants-list .side-contestant-item:nth-child(n+4) {
        display: none;
    }
    /* 中间主列全宽 */
    .main-column {
        width: 100% !important;
    }

    /* ===== 艺人大卡片网格 → 2列 ===== */
    .artists-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .artist-card { border-radius: 10px !important; }
    .artist-info { padding: 10px !important; }
    .artist-name { font-size: 13px !important; }
    .artist-category { font-size: 11px !important; }
    .stat-value { font-size: 16px !important; }
    .stat-label { font-size: 10px !important; }

    /* ===== 新闻卡片 → 1列 ===== */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .news-card { padding: 16px !important; border-radius: 10px !important; }

    /* ===== 按钮 ===== */
    .btn {
        padding: 8px 18px !important;
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }
    .btn-gold {
        font-size: 14px !important;
        padding: 12px 28px !important;
        letter-spacing: 2px !important;
    }
    .btn-vote-primary { width: 100% !important; justify-content: center !important; }

    /* ===== 导航栏 ===== */
    .navbar-container {
        padding: 0 12px !important;
        height: 54px !important;
        gap: 6px !important;
    }
    .nav-links { display: none !important; }
    .logo img { height: 32px !important; }
    .oscar-search { display: none !important; }
    .lang-switch { gap: 2px !important; }
    .lang-btn {
        padding: 3px 7px !important;
        font-size: 11px !important;
        min-width: unset !important;
    }
    .auth-buttons { margin-left: 6px !important; }
    .auth-buttons .btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
        letter-spacing: 0 !important;
    }
    .auth-buttons .btn + .btn { margin-left: 4px !important; }

    /* ===== Hero ===== */
    .hero {
        min-height: unset !important;
        height: auto !important;
        align-items: flex-start !important;
        padding-top: 0 !important;
    }
    .hero-content {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
        width: 100% !important;
    }
    .hero-title {
        font-size: clamp(22px, 7vw, 34px) !important;
        letter-spacing: clamp(2px, 1vw, 4px) !important;
        line-height: 1.2 !important;
    }
    .hero-subtitle {
        font-size: clamp(11px, 3.2vw, 16px) !important;
        letter-spacing: clamp(1px, 0.5vw, 2px) !important;
    }
    .hero-actions { gap: 10px !important; flex-wrap: wrap !important; justify-content: center !important; }

    /* ===== 排行榜页 ===== */
    .ranking-item { padding: 12px !important; }
    .ranking-rank { font-size: 20px !important; width: 36px !important; }
    .ranking-avatar { width: 44px !important; height: 44px !important; margin: 0 10px !important; }
    .ranking-name { font-size: 14px !important; }
    .ranking-votes { font-size: 12px !important; }

    /* ===== 表格类通用 ===== */
    table { font-size: 12px !important; }
    th, td { padding: 8px 6px !important; }

    /* ===== 弹窗/模态框 ===== */
    .modal-content,
    .vote-modal-content {
        width: 92vw !important;
        margin: 0 auto !important;
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }
}

/* ---------- 断点2：480px ---------- */
@media (max-width: 480px) {

    /* ===== 全局字号基准 ===== */
    html { font-size: 14px; }

    /* ===== Section 间距进一步收缩 ===== */
    .ranking-section,
    section.ranking-section {
        padding: 18px 10px !important;
    }
    .section-title { font-size: 18px !important; letter-spacing: 2px !important; }

    /* ===== 艺人大卡片 → 2列紧凑 ===== */
    .artists-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .artist-cover { height: 120px !important; }
    .artist-name { font-size: 12px !important; }

    /* ===== 新闻卡片图文 ===== */
    .news-card { padding: 12px !important; }
    .news-card h3, .news-card .news-title { font-size: 14px !important; line-height: 1.4 !important; }

    /* ===== Hero ===== */
    .hero-title {
        font-size: 26px !important;
        letter-spacing: 3px !important;
    }
    .hero-subtitle {
        font-size: 12px !important;
        letter-spacing: 2px !important;
    }
    .hero-stats { gap: 16px !important; }
    .hero-stat-value { font-size: 22px !important; }
    .hero-stat-label { font-size: 10px !important; }

    /* ===== 侧栏折叠显示2条 ===== */
    .side-artists-list .side-artist-item:nth-child(n+3),
    .side-contestants-list .side-contestant-item:nth-child(n+3) {
        display: none;
    }
    .side-artist-img { width: 34px !important; height: 34px !important; }

    /* ===== 按钮全宽 ===== */
    .hero-actions .btn-gold { width: 100% !important; text-align: center !important; }

    /* ===== 导航更紧凑 ===== */
    .navbar-container { padding: 0 8px !important; }
    .logo img { height: 28px !important; }

    /* ===== 底部 ticker/滚动条 ===== */
    .ticker-name { font-size: 12px !important; }
    .ticker-votes { font-size: 11px !important; }
    .live-ranking-ticker { padding: 8px 10px !important; }
}

/* ---------- 断点3：375px（小屏手机）---------- */
@media (max-width: 375px) {

    html { font-size: 13px; }

    .ranking-section,
    section.ranking-section {
        padding: 14px 8px !important;
    }
    .section-title { font-size: 16px !important; letter-spacing: 2px !important; }

    /* 艺人卡片 → 2列更紧凑 */
    .artists-grid { gap: 8px !important; }
    .artist-cover { height: 100px !important; }
    .artist-name { font-size: 11px !important; }
    .artist-info { padding: 8px !important; }

    /* hero 文字 */
    .hero-title { font-size: 22px !important; letter-spacing: 2px !important; }
    .hero-subtitle { font-size: 11px !important; }

    /* 侧栏仅显示2条（与480px相同，确保小屏不溢出） */
    .side-artist-img { width: 30px !important; height: 30px !important; }
    .side-artist-name { font-size: 12px !important; }
    .side-artist-votes { font-size: 10px !important; }
    .side-artist-rank { font-size: 13px !important; }

    /* 按钮极小屏 */
    .btn { font-size: 11px !important; padding: 6px 14px !important; }
    .auth-buttons .btn { padding: 3px 7px !important; font-size: 10px !important; }
    .lang-btn { padding: 2px 5px !important; font-size: 10px !important; }

    /* 排行榜 */
    .ranking-avatar { width: 36px !important; height: 36px !important; margin: 0 6px !important; }
    .ranking-rank { font-size: 16px !important; width: 28px !important; }
    .ranking-name { font-size: 12px !important; }
}

/* ---------- 横屏适配 ---------- */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vw !important;
        padding-top: 10px !important;
    }
    .hero-title { font-size: 20px !important; }
    .artists-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---------- 高分辨率移动端（Retina）辅助 ---------- */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    .side-artist-img,
    .ranking-avatar { image-rendering: -webkit-optimize-contrast; }
}

/* ===== 旧480px规则保留（合并至上方，此处仅保留未覆盖项）===== */
@media (max-width: 480px) {
    .artists-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .btn-vote-primary { width: 100%; justify-content: center; }
    .hero-title {
        font-size: 26px !important;
        letter-spacing: 3px !important;
        line-height: 1.25 !important;
    }
    .hero-subtitle {
        font-size: 12px !important;
        letter-spacing: 2px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .btn.btn-secondary,
    .btn.btn-primary {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    .lang-btn {
        padding: 3px 7px !important;
        font-size: 11px !important;
    }

    /* logo 缩小 */
    .logo img {
        height: 30px !important;
    }

    /* 立即投票 / 排行榜按钮 */
    .btn-gold {
        font-size: 14px !important;
        padding: 12px 28px !important;
        letter-spacing: 2px !important;
    }
}

/* ============================================================
   汉堡菜单按钮 + 移动端侧拉抽屉导航
   ============================================================ */

/* 汉堡按钮 —— 默认隐藏，768px以下显示 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s;
}
.hamburger-btn:hover { background: rgba(212,175,55,0.22); }
.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* 激活态 X */
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger-btn { display: flex !important; }
}

/* ---- 遮罩层 ---- */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 8888;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.mobile-drawer-overlay.show { display: block; }

/* ---- 抽屉本体 ---- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -105%;
    width: min(300px, 82vw);
    height: 100%;
    height: 100dvh;
    background: #161616;
    border-left: 1px solid rgba(212,175,55,0.2);
    z-index: 8999;
    display: flex;
    flex-direction: column;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: -8px 0 32px rgba(0,0,0,0.5);
}
.mobile-drawer.open { right: 0; }

/* 抽屉顶部 */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px;
    border-bottom: 1px solid rgba(212,175,55,0.12);
    flex-shrink: 0;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
}
.mobile-drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
}
.mobile-drawer-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* 抽屉导航滚动区 */
.mobile-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer-nav::-webkit-scrollbar { width: 0; }

/* 抽屉链接 */
.drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: rgba(245,240,232,0.82);
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.15s, color 0.15s;
}
.drawer-link:hover,
.drawer-link:active { background: rgba(212,175,55,0.1); color: #d4af37; }
.drawer-link.drawer-sub {
    padding-left: 28px;
    font-size: 13px;
    color: rgba(245,240,232,0.6);
}
.drawer-link.drawer-sub:hover { color: rgba(212,175,55,0.85); }

/* 分组标题 */
.drawer-group-title {
    padding: 10px 18px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(212,175,55,0.45);
    text-transform: uppercase;
}

/* 抽屉底部语言切换 */
.mobile-drawer-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(212,175,55,0.12);
    padding: 12px 18px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.mobile-drawer-lang {
    display: flex;
    gap: 8px;
}
.mobile-drawer-lang button {
    flex: 1;
    padding: 7px 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-drawer-lang button.active,
.mobile-drawer-lang button:hover {
    background: rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.4);
    color: #d4af37;
}

/* ============================================================
   GVF 移动端完整适配 v3 - 20260417
   包含: 底部TabBar + Hero压缩 + 内容区响应式 + Footer重排
   ============================================================ */

/* ====== 底部导航 TabBar ====== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 56px;
    background: rgba(15, 12, 8, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}
.mobile-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex: 1;
    min-width: 0;
    padding: 4px 2px;
    text-decoration: none;
    color: rgba(245, 240, 232, 0.5);
    transition: color 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-tab-item:active { transform: scale(0.92); }
.nav-tab-item.active { color: #d4af37; }
.nav-tab-icon {
    font-size: 20px;
    line-height: 1;
    width: 22px;
    text-align: center;
}
.nav-tab-label {
    font-size: 9px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-weight: 500;
}

/* Hero区域 - 大幅压缩 */
@media (max-width: 768px) {
    .hero {
        min-height: 20vh !important;
        max-height: 30vh !important;
        padding: 70px 14px 18px !important;
    }
    .hero-title {
        font-size: clamp(18px, 6vw, 28px) !important;
        letter-spacing: 2px !important;
        margin-bottom: 6px !important;
    }
    .hero-subtitle {
        font-size: clamp(10px, 2.5vw, 13px) !important;
        letter-spacing: 1px !important;
    }
    
    /* 快捷入口网格 - 移动端横向滚动（一屏展示全部23个入口） */
    section[style*="background:rgba(255,255,255,0.02);border-bottom:1px solid rgba(212,175,55,0.10)"] {
        padding: 16px 0 !important;
    }
    .quick-links-grid {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding: 4px 12px 14px 12px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap !important;
        grid-template-columns: unset !important;
    }
    .quick-links-grid::-webkit-scrollbar { display: none; }
    
    .quick-link-card {
        flex-shrink: 0 !important;
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        padding: 10px 4px !important;
        border-radius: 10px !important;
        scroll-snap-align: start;
        transition: transform 0.2s, background 0.2s, border-color 0.2s !important;
    }
    .quick-link-card:active { transform: scale(0.94) !important; }

    /* 娱乐大厅艺人区 */
    .entertainment-hall {
        padding: 36px 12px !important;
    }
    
    /* 排名区双栏改单栏 */
    .ranking-section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }
    
    /* 新闻网格 */
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }
    .news-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    
    /* Section标题 */
    .section-title {
        font-size: 17px !important;
    }
    .section-subtitle {
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }
    
    /* 金色分割线 */
    .gold-divider {
        margin: 16px auto !important;
        width: 50px !important;
    }
    
    /* 搜索框移动端 - 隐藏文字标签，只保留图标，避免和三道杠挤压 */
    .oscar-search { margin-left: 4px !important; margin-right: 0 !important; }
    .oscar-search-capsule-label { display: none !important; }  /* 隐藏"搜索艺人"文字 */
    .oscar-search-capsule { padding: 0 10px 0 8px !important; gap: 3px !important; width: 36px !important; height: 34px !important; border-radius: 50% !important; justify-content: center !important; }
    .oscar-search-panel.open { width: calc(100vw - 90px) !important; }
    .oscar-search-dropdown { width: calc(100vw - 30px) !important; }

    /* 三道杠按钮微调，不和搜索重叠 */
    .hamburger-btn { 
        width: 38px !important; 
        height: 38px !important;
        margin-left: 6px !important;
        flex-shrink: 0 !important;
    }

    /* Footer三栏变单栏 + 为TabBar留空间 */
    footer {
        padding: 28px 14px 16px !important;
        margin-bottom: 66px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
    
    /* 所有section区域给TabBar留出底部安全距离（防止遮挡） */
    section {
        padding-bottom: 16px !important;
    }
    section[style*="grid-template-columns"] {
        padding-bottom: 70px !important;
    }
    
    /* 排名区也加底距 */
    .ranking-section {
        padding-bottom: 20px !important;
        margin-bottom: 60px !important;
    }
    /* 旧footer兼容（已替换为新三栏布局） */
    footer > div[style*="grid-template-columns: 1fr"],
    .footer-grid {
        gap: 18px !important;
    }
    
    /* 二维码区域居中缩小 */
    footer img[src*="qrcode"], footer img[alt*="QR"], footer img[src*="qr"] {
        width: 110px !important;
        height: 110px !important;
    }
    
    /* 底部热榜隐藏（和TabBar冲突） */
    #bottom-ranking,
    .bottom-ranking-section {
        display: none !important;
    }

    /* 聊天按钮上移 */
    #chat-button {
        bottom: 64px !important;
    }

    /* 显示底部TabBar */
    .mobile-bottom-nav {
        display: block !important;
    }
}

/* 超小屏适配 (iPhone SE等) */
@media (max-width: 375px) {
    .nav-tab-icon { font-size: 17px; }
    .nav-tab-label { font-size: 8px; }
    .mobile-bottom-nav { height: 50px; }
    .hero-title { font-size: 20px !important; }
    section[style*="grid-template-columns:repeat(auto-fill,minmax(150px"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ============================================================
   GVF 视频播放页面横屏增强（全局规则）
   用于 gvf_tv_fullscreen / plyr_video_player 等视频页
   ============================================================ */

/* 横屏时隐藏底部TabBar和导航栏，给视频让路 */
@media (max-width: 768px) and (orientation: landscape) {
    /* 隐藏底部导航栏 */
    .mobile-bottom-nav { display: none !important; }

    /* 隐藏顶部导航栏（视频页横屏时） */
    body.landscape-mode .navbar,
    body.landscape-mode .hamburger-btn,
    body.landscape-mode .gvf-logo-bar,
    body.plyr-landscape-mode .navbar,
    body.plyr-landscape-mode .hamburger-btn,
    body.plyr-landscape-mode .gvf-logo-bar {
        display: none !important;
    }

    /* 隐藏侧边栏/抽屉 */
    body.landscape-mode .sidebar,
    body.landscape-mode .mobile-drawer,
    body.plyr-landscape-mode .mobile-drawer {
        display: none !important;
    }

    /* ⚠️ 修复20260421：横屏模式不再锁定整个页面body
       之前 html,body{position:fixed} 导致所有按钮点击失效！
       现改为仅对播放器容器生效，不影响其他页面交互 */
    .plyr--full-ui {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 100vw !important; height: 100vh !important;
        z-index: 9999 !important;
        background: #000 !important;
    }

    /* footer隐藏或缩小 */
    footer {
        padding: 8px !important;
        margin: 0 !important;
    }
}

/* video标签通用内联播放属性（防止iOS弹原生全屏） */
video[playsinline] {
    -webkit-playsinline: true;
    plays-inline: true;
}
