/**
 * 花蜜影视 v2 - 精致现代化样式系统
 * 优雅简约 | 高端质感 | 极致体验
 */

/* ========== CSS变量系统 ========== */
:root {
    /* 主色调 - 优雅蓝 */
    --primary: #5b8def;
    --primary-rgb: 91, 141, 239;
    --primary-light: #8bb0f4;
    --primary-dark: #4070dc;
    --primary-50: rgba(91, 141, 239, 0.08);
    --primary-100: rgba(91, 141, 239, 0.15);
    --primary-200: rgba(91, 141, 239, 0.25);
    
    /* 强调色 - 玫瑰金 */
    --accent: #e879a9;
    --accent-light: #f5a3c4;
    --accent-dark: #d65d91;
    
    /* 成功/警告/错误 */
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
    
    /* 灰色系 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    
    /* 通用表面 */
    --surface: #ffffff;
    --border: #e5e7eb;
    
    /* 背景渐变 - 更淡雅 */
    --bg-gradient: linear-gradient(165deg, 
        #f0f7ff 0%,
        #fafcff 35%,
        #fdf8fc 65%,
        #fffbf5 100%
    );
    
    /* 卡片背景 - 精致玻璃拟态 */
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.95);
    --glass-shadow: 
        0 4px 24px rgba(91, 141, 239, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    --glass-shadow-hover: 
        0 12px 40px rgba(91, 141, 239, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    
    /* 文字颜色 - 更精致的层次 */
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #8896ab;
    --text-light: #b8c4d4;
    
    /* 圆角系统 */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* 间距系统 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    
    /* 动画系统 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --transition: all var(--duration-normal) var(--ease-out);
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 键盘导航可见焦点环 */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    /* 系统字体栈 - 优先使用各平台原生字体，无需加载外部字体 */
    font-family: 
        /* iOS/macOS */
        -apple-system, 
        BlinkMacSystemFont, 
        /* Windows */
        "Segoe UI", 
        /* Android */
        Roboto,
        /* 中文字体 - 苹方(iOS/macOS) */
        "PingFang SC", 
        /* 中文字体 - 冬青黑体(macOS) */
        "Hiragino Sans GB", 
        /* 中文字体 - 雅黑(Windows) */
        "Microsoft YaHei", 
        /* 中文字体 - 思源黑体(Android/Linux) */
        "Noto Sans SC",
        /* 通用后备 */
        "Helvetica Neue",
        Arial,
        sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh; /* iOS Safari: 动态视口高度，排除地址栏 */
    overscroll-behavior-x: none; /* 防止水平过度滚动 */
    
    /* 字体渲染优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* 移动端优化 */
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    
    /* 选择颜色 */
    --selection-bg: rgba(91, 141, 239, 0.2);
}

::selection {
    background: var(--selection-bg);
    color: var(--text-primary);
}

/* 隐藏水平溢出的包裹层（不在body上设overflow-x:hidden，避免破坏iOS sticky） */
.container {
    overflow-x: clip; /* 比 hidden 更好，不创建BFC */
}

/* 优雅的背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse 50% 30% at 10% 0%, rgba(91, 141, 239, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 25% at 90% 10%, rgba(232, 121, 169, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 60% 35% at 50% 100%, rgba(91, 141, 239, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    will-change: transform; /* iOS Safari: 防止fixed伪元素滚动时闪烁 */
}

/* ========== 容器 ========== */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }
}

/* ========== 链接样式 ========== */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(91, 141, 239, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(91, 141, 239, 0.4);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(91, 141, 239, 0.25);
}

.brand-icon i {
    color: white;
    font-size: 1rem;
}

.navbar-brand svg,
.navbar-brand > i {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* 导航链接 */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin-left: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 12px rgba(91, 141, 239, 0.35);
}

/* VIP导航入口 */
.nav-vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    font-weight: 600;
}
.nav-vip:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.nav-vip i {
    margin-right: 4px;
}

/* 搜索框 */
.search-box {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.search-box input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) 44px;
    border: 1.5px solid rgba(91, 141, 239, 0.12);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 450;
    transition: var(--transition);
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-50);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-box .search-btn {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--duration-fast);
    z-index: 1;
    padding: 0;
}

.search-box .search-btn:hover {
    color: var(--primary);
}

.search-box .search-btn i {
    position: static;
    transform: none;
    pointer-events: none;
}

/* 用户操作区 */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 桌面端导航图标链接 */
.nav-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.nav-action-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}
.nav-action-link i {
    font-size: 1.1rem;
}

.nav-actions .username-text {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 用户下拉菜单 */
.user-dropdown-wrap {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: var(--space-2) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--duration-fast), transform var(--duration-fast), visibility var(--duration-fast);
    z-index: 1000;
}

.user-dropdown-wrap:hover .user-dropdown,
.user-dropdown-wrap:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--duration-fast), color var(--duration-fast);
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.user-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-2) 0;
}

.user-dropdown-logout:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端侧边菜单 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: min(280px, 85vw);
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.mobile-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xs);
    box-shadow: none;
}

.mobile-brand .brand-icon i {
    font-size: 0.875rem;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.125rem;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.3);
}

/* 移动端用户信息 */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-user-detail {
    flex: 1;
}

.mobile-username {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mobile-vip-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* 移动端VIP等级分级样式 */
.mobile-vip-monthly {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.mobile-vip-yearly {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}
.mobile-vip-lifetime {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.mobile-normal-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gray-200);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* 移动端导航 */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) 0;
    overscroll-behavior: contain; /* 防止滚动穿透到body */
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-item i {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: var(--primary-50);
    color: var(--primary);
}

.mobile-nav-item:hover i,
.mobile-nav-item.active i {
    color: var(--primary);
}

.mobile-nav-vip {
    color: var(--warning);
}

.mobile-nav-vip i {
    color: var(--warning);
}

/* 移动端菜单底部 */
.mobile-menu-footer {
    padding: var(--space-4) var(--space-5);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.mobile-footer-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.mobile-footer-link:hover {
    color: var(--primary);
}

.mobile-footer-link i {
    width: 20px;
    text-align: center;
}

.mobile-logout {
    color: var(--error);
}

.mobile-logout:hover {
    color: var(--error);
    opacity: 0.8;
}

.w-full {
    width: 100%;
}

/* ========== 按钮系统 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 550;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
}

/* 主要按钮 */
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 
        0 2px 8px rgba(91, 141, 239, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 
        0 4px 16px rgba(91, 141, 239, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* 强调按钮 */
.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 
        0 2px 8px rgba(232, 121, 169, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-accent:hover {
    background: var(--accent-dark);
    box-shadow: 
        0 4px 16px rgba(232, 121, 169, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* 玻璃按钮 */
.btn-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid rgba(91, 141, 239, 0.12);
}

.btn-glass:hover {
    background: white;
    border-color: rgba(91, 141, 239, 0.2);
    box-shadow: var(--glass-shadow);
}

/* 轮廓按钮 */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-50);
}

/* 按钮尺寸 */
.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1.0625rem;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ========== 卡片系统 ========== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: 
        transform var(--duration-normal) var(--ease-out),
        box-shadow var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--glass-shadow-hover);
    }
}

/* 视频卡片 */
a.video-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-card {
    position: relative;
    cursor: pointer;
}

.video-card .thumbnail {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.video-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out), opacity 0.3s ease;
}

/* 懒加载图片: 骨架屏 shimmer 动画 */
.video-card .thumbnail img[data-src] {
    opacity: 0;
}
.video-card .thumbnail img:not([data-src]) {
    opacity: 1;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.video-card .thumbnail {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
/* 图片加载完成后停止骨架动画 */
.video-card .thumbnail:has(img:not([data-src])) {
    animation: none;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

@media (hover: hover) {
    .video-card:hover .thumbnail img {
        transform: scale(1.06);
    }
}

.video-card .thumbnail::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.65) 0%, 
        rgba(0, 0, 0, 0.1) 40%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

@media (hover: hover) {
    .video-card:hover .thumbnail::after {
        opacity: 1;
    }
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 
        opacity var(--duration-normal) var(--ease-out),
        transform var(--duration-normal) var(--ease-bounce);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-card .play-icon svg,
.video-card .play-icon i {
    width: 22px;
    height: 22px;
    color: var(--primary-dark);
    margin-left: 3px;
}

@media (hover: hover) {
    .video-card:hover .play-icon {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.video-card .info {
    padding: var(--space-4);
}

.video-card .title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.video-card .meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 450;
}

.video-card .tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border-radius: var(--radius-xs);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 2;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 视频网格 ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-5);
    padding: var(--space-5) 0;
}

@media (min-width: 640px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
        gap: var(--space-6);
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .video-card .info {
        padding: var(--space-3);
    }
    
    .video-card .title {
        font-size: 0.875rem;
    }
}

/* ========== Hero区域 ========== */
.hero {
    text-align: center;
    padding: var(--space-12) var(--space-5) var(--space-10);
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 750;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
    line-height: 1.15;
    animation: fadeInUp 0.7s var(--ease-out);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    font-weight: 450;
    letter-spacing: -0.01em;
    animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 56px);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 750;
    color: var(--primary-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: var(--space-1);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 分类标签 ========== */
.category-tabs {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-5) 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: var(--space-2) var(--space-5);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(91, 141, 239, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
    color: var(--primary-dark);
}

.category-tab.active {
    background: var(--primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(91, 141, 239, 0.35);
}

/* videos.php 分类导航 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-6) 0 var(--space-4);
}

.category-item {
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(91, 141, 239, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.category-item:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.category-item.active {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

/* 搜索区域 */
.search-section {
    padding: var(--space-4) 0;
}

.search-form {
    display: flex;
    gap: var(--space-3);
    max-width: 480px;
}

.search-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid rgba(91, 141, 239, 0.15);
    border-radius: var(--radius-md);
    background: white;
    font-size: 1rem; /* ≥16px 防止 iOS Safari 聚焦缩放 */
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.search-btn {
    padding: var(--space-3) var(--space-5);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 550;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-info {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--primary-50);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-info a {
    color: var(--primary);
    margin-left: var(--space-3);
    font-weight: 500;
}

/* 视频列表区域 */
.video-section {
    padding: var(--space-4) 0;
}

.video-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 450;
}

/* ========== 区块标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    padding-top: var(--space-5);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-title svg,
.section-title i {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.section-more {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 550;
    transition: var(--transition);
}

.section-more:hover {
    gap: var(--space-2);
    color: var(--primary-dark);
}

.section-more svg,
.section-more i {
    width: 16px;
    height: 16px;
}

/* ========== 模态框系统 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; /* inset:0 的展开写法，兼容旧版Android WebView */
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity var(--duration-normal) var(--ease-out),
        visibility var(--duration-normal) var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    max-height: 90dvh; /* iOS Safari: 动态视口高度 */
    overflow: hidden;
    overflow-y: auto; /* 允许模态框内容滚动，防止小屏截断 */
    transform: scale(0.95) translateY(10px);
    transition: transform var(--duration-normal) var(--ease-bounce);
    overscroll-behavior: contain;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-6) 0;
}

.modal-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(91, 141, 239, 0.08);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.modal-body {
    padding: var(--space-6);
}

/* 表单样式 */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 550;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem; /* ≥16px 防止 iOS Safari 聚焦缩放 */
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    background: white;
    font-weight: 450;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* 模态框标签切换 */
.modal-tabs {
    display: flex;
    gap: var(--space-2);
    padding: 0 var(--space-6);
    margin-top: var(--space-4);
}

.modal-tab {
    flex: 1;
    padding: var(--space-3);
    border: none;
    background: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.modal-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.modal-tab:hover:not(.active) {
    color: var(--text-secondary);
}

/* 表单面板 */
.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
    animation: fadeIn var(--duration-normal) var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-10) 0;
}

.page-btn,
.page-num {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 550;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover,
.page-num:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.page-btn.active,
.page-num.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(91, 141, 239, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    user-select: none;
}

/* ========== 页脚 ========== */
.footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(91, 141, 239, 0.08);
    padding: var(--space-10) 0 var(--space-6);
    margin-top: var(--space-12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(91, 141, 239, 0.06);
    margin-bottom: var(--space-6);
}

.footer-main {
    padding-right: var(--space-6);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-brand i {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    transition: var(--transition);
    padding: 2px 0;
}

.footer-link:hover {
    color: var(--primary);
}

/* Footer VIP链接突出 */
.footer-vip {
    color: #f59e0b !important;
    font-weight: 600;
}
.footer-vip:hover {
    color: #fbbf24 !important;
}
.footer-vip i {
    margin-right: 4px;
    font-size: 0.8em;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.footer-dot {
    opacity: 0.4;
}

/* ========== 播放器容器 ========== */
.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f0f0f;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* Plyr播放器样式修复 */
.player-wrapper #player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-wrapper .plyr,
.player-wrapper .plyr--video,
.player-wrapper video {
    width: 100%;
    height: 100%;
}

.player-wrapper .plyr--video .plyr__controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.player-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1rem;
}

/* 视频页面布局 */
.video-page {
    padding: var(--space-6) 0;
}

.video-page .container {
    max-width: 1200px;
}

.player-section {
    margin-bottom: var(--space-6);
}

.episode-list {
    margin-top: var(--space-5);
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.episode-list h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.episode-item {
    padding: var(--space-2) var(--space-4);
    background: white;
    border: 1px solid rgba(91, 141, 239, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.episode-item:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.episode-item.active {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

/* 视频信息卡片 */
.video-info-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

@media (max-width: 768px) {
    .video-info-card {
        grid-template-columns: 100px 1fr;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    .video-poster {
        max-width: none;
        margin: 0;
    }
    
    .video-details h1 {
        font-size: 1.15rem;
        margin-bottom: var(--space-1);
    }
}

.video-poster img {
    width: 100%;
    border-radius: var(--radius-md);
}

.video-details h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.video-status {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item svg,
.meta-item i {
    width: 16px;
    height: 16px;
}

a.meta-link {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s;
}
a.meta-link:hover {
    color: var(--primary);
}

.video-crew {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.video-crew strong {
    color: var(--text-primary);
    font-weight: 550;
}

.video-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin: var(--space-5) 0;
}

.btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(232, 121, 169, 0.1);
    color: var(--accent);
    border: 1.5px solid rgba(232, 121, 169, 0.2);
    border-radius: var(--radius-md);
    font-weight: 550;
    cursor: pointer;
    transition: var(--transition);
}

.btn-favorite:hover {
    background: rgba(232, 121, 169, 0.15);
}

.btn-favorite.favorited {
    background: var(--accent);
    color: white;
    border-color: transparent;
}

.btn-favorite svg,
.btn-favorite i {
    width: 18px;
    height: 18px;
}

.video-desc {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.video-desc h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.video-desc p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ========== VIP徽章 ========== */
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
}

.vip-badge svg,
.vip-badge i {
    width: 14px;
    height: 14px;
}

/* VIP分级样式 - 月度VIP */
.vip-badge-monthly {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
}

/* VIP分级样式 - 年度SVIP */
.vip-badge-yearly {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

/* VIP分级样式 - 永久VIP */
.vip-badge-lifetime {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
    animation: vip-glow 2s ease-in-out infinite alternate;
}

@keyframes vip-glow {
    from { box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35); }
    to { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5); }
}

/* ========== 加载动画 ========== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-50);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--space-3) var(--space-6);
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transition: all var(--duration-normal) var(--ease-bounce);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: #f59e0b;
}

/* Toast 移动端居中且不超出屏幕 */
@media (max-width: 480px) {
    .toast {
        max-width: calc(100vw - 32px);
        font-size: 0.85rem;
        padding: var(--space-3) var(--space-5);
    }
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-5);
}

.empty-state svg,
.empty-state i {
    width: 72px;
    height: 72px;
    color: var(--text-light);
    margin-bottom: var(--space-5);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}

/* ========== 历史记录 ========== */
.user-section {
    padding: var(--space-6) 0;
}

.user-section .section-header {
    padding-top: 0;
}

.user-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.375rem;
    font-weight: 700;
}

.user-section .section-header h2 svg,
.user-section .section-header h2 i {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.user-section .count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 450;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.history-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.history-item:hover {
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
}

.history-poster {
    position: relative;
    width: 100px;
    flex-shrink: 0;
}

.history-poster img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-meta {
    display: flex;
    gap: var(--space-3);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========== 响应式调整 ========== */
@media (max-width: 1024px) {
    /* 显示汉堡菜单 */
    .menu-toggle {
        display: flex;
    }
    
    /* 隐藏桌面端导航 */
    .nav-links {
        display: none;
    }
    
    .navbar .container {
        gap: var(--space-3);
    }
    
    /* 调整搜索框 */
    .search-box {
        flex: 1;
        max-width: 280px;
    }
    
    /* 用户区域右对齐 */
    .nav-actions {
        margin-left: auto;
    }
    
    /* 隐藏部分按钮文字 */
    .nav-actions .register-btn {
        display: none;
    }
    
    .nav-actions .vip-text {
        display: none;
    }
    
    .nav-actions .admin-btn span {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-5: 16px;
        --space-6: 20px;
    }
    
    .navbar .container {
        height: 56px;
        gap: var(--space-2);
    }
    
    /* 品牌名缩短 */
    .navbar-brand .brand-text {
        display: none;
    }
    
    /* 隐藏桌面端收藏/历史图标 */
    .nav-action-link {
        display: none;
    }

    /* 隐藏桌面端用户下拉 */
    .user-dropdown {
        display: none;
    }
    
    /* 搜索框调整 */
    .search-box {
        flex: 1;
        max-width: 180px;
        min-width: 120px;
    }
    
    .search-box input {
        padding: var(--space-2) var(--space-3) var(--space-2) 36px;
        font-size: 1rem; /* ≥16px 防止 iOS Safari 聚焦缩放 */
    }
    
    .search-box .search-btn {
        width: 36px;
    }

    .search-box .search-btn i {
        font-size: 0.875rem;
    }
    
    /* 隐藏用户名 */
    .nav-actions .username-text {
        display: none;
    }
    
    .nav-actions .user-btn {
        padding: var(--space-2);
    }
    
    .hero {
        padding: var(--space-8) var(--space-4);
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-6);
    }
    
    .modal {
        max-width: 100%;
        margin: var(--space-3);
        max-height: calc(100dvh - 24px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-main {
        padding-right: 0;
    }
    
    .footer-col {
        align-items: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    .history-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .episode-grid {
        gap: var(--space-1);
    }
    
    .episode-item {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8125rem;
    }
}

/* ========== 用户页面通用样式 ========== */
.user-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
}

.user-page-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.user-page-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 32px rgba(91, 141, 239, 0.3);
}

.user-page-icon.history-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.user-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.user-page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.user-page-header p strong {
    color: var(--primary);
    font-weight: 600;
}

.user-page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-4);
}

.btn-danger-outline {
    border-color: var(--error);
    color: var(--error);
}

.btn-danger-outline:hover {
    background: var(--error);
    color: white;
}

/* 空状态卡片 */
.empty-state-card {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: var(--space-4);
}

.empty-state-card h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* 收藏网格 */
.favorite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.favorite-item {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.favorite-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-200);
}

.favorite-link {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    color: inherit;
    text-decoration: none;
}

.favorite-poster {
    position: relative;
    width: 100px;
    min-width: 100px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
}

.favorite-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.favorite-item:hover .favorite-poster img {
    transform: scale(1.05);
}

.favorite-play {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

@media (hover: hover) {
    .favorite-item:hover .favorite-play {
        opacity: 1;
    }
}

.favorite-play i {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(91, 141, 239, 0.4);
}

.favorite-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.favorite-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.favorite-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.favorite-remove {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

@media (hover: hover) {
    .favorite-item:hover .favorite-remove {
        opacity: 1;
    }
}

.favorite-remove:hover {
    background: var(--error);
    transform: scale(1.1);
}

.favorite-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* 历史记录网格 */
.history-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.history-date-group {
    margin-bottom: var(--space-4);
}

.history-date-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    padding-left: var(--space-1);
}

.history-date-label i {
    color: var(--primary);
}

.history-item {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

@media (hover: hover) {
    .history-item:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-200);
    }
}

.history-link {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3);
    color: inherit;
    text-decoration: none;
}

.history-poster {
    position: relative;
    width: 160px;
    min-width: 160px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
}

.history-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

@media (hover: hover) {
    .history-item:hover .history-poster img {
        transform: scale(1.05);
    }
}

.history-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.history-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.history-play {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

@media (hover: hover) {
    .history-item:hover .history-play {
        opacity: 1;
    }
}

.history-play i {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(91, 141, 239, 0.4);
}

.history-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.history-episode,
.history-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.history-episode {
    color: var(--primary);
}

.history-remove {
    position: absolute;
    top: 50%;
    right: var(--space-3);
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

@media (hover: hover) {
    .history-item:hover .history-remove {
        opacity: 1;
    }
}

.history-remove:hover {
    background: var(--error);
    color: white;
}

.history-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* 用户页面移动端适配 */
@media (max-width: 768px) {
    .user-page {
        padding: var(--space-4) var(--space-3);
    }
    
    .user-page-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    .user-page-header h1 {
        font-size: 1.5rem;
    }
    
    .favorite-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .favorite-remove {
        opacity: 1;
    }
    
    .history-poster {
        width: 120px;
        min-width: 120px;
    }
    
    .history-link {
        gap: var(--space-3);
    }
    
    .history-remove {
        opacity: 1;
        top: var(--space-2);
        right: var(--space-2);
        transform: none;
    }
    
    /* 移动端删除按钮扩大触摸区域 */
    .favorite-remove,
    .history-remove {
        width: 36px;
        height: 36px;
        padding: 4px;
        box-sizing: content-box;
    }
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(91, 141, 239, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(91, 141, 239, 0.5);
}

.back-to-top:active {
    transform: translateY(-4px) scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(91, 141, 239, 0.25);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 141, 239, 0.4);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 141, 239, 0.25) transparent;
}

/* ========== 实用工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-4); }
.mt-3 { margin-top: var(--space-6); }
.mt-4 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mb-3 { margin-bottom: var(--space-6); }
.mb-4 { margin-bottom: var(--space-8); }

.py-1 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-2 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-3 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-4 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.px-1 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-2 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-3 { padding-left: var(--space-6); padding-right: var(--space-6); }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: var(--space-2); }
.gap-2 { gap: var(--space-4); }
.gap-3 { gap: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--glass-shadow); }
.shadow-lg { box-shadow: var(--glass-shadow-hover); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== iOS安全区域 ========== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
    }
    
    .toast {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
    
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    /* 横屏刘海屏: 侧边菜单安全区域 */
    .mobile-menu {
        padding-left: env(safe-area-inset-left);
    }
    
    /* 返回顶部按钮安全区域 */
    .back-to-top {
        bottom: calc(24px + env(safe-area-inset-bottom));
        right: calc(24px + env(safe-area-inset-right));
    }
}

/* ========== 全局触摸优化（消除300ms点击延迟）========== */
button, a, .btn, input, select, textarea, [data-action] {
    touch-action: manipulation;
}

/* ========== iOS/Safari 视频播放优化 ========== */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari特有样式 */
    .player-wrapper {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* ========== 平板设备优化 (iPad等) ========== */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== Android设备字体优化 ========== */
@supports not (-webkit-touch-callout: none) {
    @media (hover: none) and (pointer: coarse) {
        /* Android触屏设备 */
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* 增大触摸目标 */
        .btn-sm {
            min-height: 40px;
            min-width: 40px;
        }
        
        .nav-link {
            min-height: 44px;
            display: flex;
            align-items: center;
        }
    }
}

/* ========== 触屏设备: 确保删除按钮始终可见（平板横屏等） ========== */
@media (hover: none) and (pointer: coarse) {
    .favorite-remove,
    .history-remove {
        opacity: 1;
    }
    
    .favorite-play,
    .history-play {
        opacity: 0.7;
    }
}

/* ========== 公告栏 ========== */
.announcement-bar {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
    background-size: 200% 100%;
    animation: announcement-gradient 3s ease 3;
    border-bottom: 1px solid #fcd34d;
    padding: var(--space-2) 0;
    position: relative;
    z-index: 101;
}

@keyframes announcement-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.announcement-icon {
    color: #d97706;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.announcement-text a {
    color: #b45309;
    text-decoration: underline;
}

.announcement-close {
    background: none;
    border: none;
    color: #92400e;
    cursor: pointer;
    padding: var(--space-2);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.announcement-close:hover {
    opacity: 1;
}

/* ========== iOS 视频播放器优化 ========== */
/* 防止iOS全屏接管 */
.plyr video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* 触摸高亮禁用（仅播放器区域） */
.player-wrapper,
.player-wrapper * {
    -webkit-tap-highlight-color: transparent;
}

/* 禁止长按弹出菜单（仅视频相关元素，不影响用户正常操作） */
.player-wrapper img, .player-wrapper a, .player-wrapper button {
    -webkit-touch-callout: none;
}

/* ========== 减少动画（无障碍） ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .navbar,
    .footer,
    .modal-overlay,
    .toast {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========== VIP推广横幅 ========== */
.vip-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-6);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.vip-promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.vip-promo-content {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex: 1;
    position: relative;
    z-index: 1;
}

.vip-promo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.vip-promo-icon i {
    font-size: 1.75rem;
    color: #1a1a2e;
}

.vip-promo-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: var(--space-1);
}

.vip-promo-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.vip-promo-features {
    display: flex;
    gap: var(--space-4);
    margin-left: auto;
}

.vip-promo-features span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.vip-promo-features i {
    color: #4ade80;
    font-size: 0.75rem;
}

.btn-vip-promo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.btn-vip-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    color: #1a1a2e;
}

.btn-vip-promo i {
    transition: transform 0.3s ease;
}

.btn-vip-promo:hover i {
    transform: translateX(4px);
}

/* VIP推广响应式 */
@media (max-width: 992px) {
    .vip-promo-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-5);
    }
    
    .vip-promo-content {
        flex-direction: column;
    }
    
    .vip-promo-features {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-vip-promo {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .vip-promo-icon {
        width: 52px;
        height: 52px;
    }
    
    .vip-promo-icon i {
        font-size: 1.5rem;
    }
    
    .vip-promo-text h3 {
        font-size: 1.1rem;
    }
    
    .vip-promo-features {
        gap: var(--space-3);
    }
    
    .vip-promo-features span {
        font-size: 0.8rem;
    }
}
