/**
 * Salkun 影院质感主题（Dark Cinema）
 * 全站统一样式层：设计令牌 + 组件样式 + RTL 适配
 * 由原「霓虹赛博朋克主题」升级而来：变量名保持不变，仅收敛取值，避免影响既有引用
 */

/* ==================== CSS变量定义 ==================== */
:root {
    /* 品牌与语义色：暖琥珀主色 + 冷青副色，取代原多色霓虹 */
    --brand:        #e0a94a;
    --brand-strong: #f2c169;
    --brand-deep:   #b8863a;
    --brand-soft:   rgba(224, 169, 74, 0.14);
    --accent:       #2fb8c6;
    --accent-soft:  rgba(47, 184, 198, 0.14);
    --ok:     #34c98a;
    --warn:   #e5a13a;
    --danger: #e05263;

    /* 背景与面板层级 */
    --bg-base:   #0b0e14;
    --bg-elev-1: #11151d;
    --bg-elev-2: #161b24;
    --surface-1: rgba(20, 24, 33, 0.92);
    --surface-2: rgba(26, 31, 42, 0.94);
    --surface-3: rgba(34, 40, 52, 0.96);
    --line:        rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* 间距节奏（4 的倍数，供列表/卡片/面板统一使用） */
    --sp-2xs: 4px;
    --sp-xs:  6px;
    --sp-sm:  8px;
    --sp-md:  12px;
    --sp-lg:  16px;
    --sp-xl:  24px;
    --sp-2xl: 32px;

    /* 层级 */
    --z-base:   1;
    --z-sticky: 20;
    --z-nav:    60;
    --z-modal:  900;
    --z-toast:  1000;

    /* 兼容旧变量名：原霓虹变量全部收敛到品牌色/语义色 */
    --neon-cyan:    #e0a94a;
    --neon-magenta: #9c3243;
    --neon-purple:  #b8863a;
    --neon-pink:    #b23a4a;
    --neon-blue:    #c98b2e;
    --neon-green:   #34c98a;
    --neon-yellow:  #f0c05a;
    --neon-orange:  #d99a3c;

    /* 渐变：收敛为单色系，不再彩虹 */
    --neon-gradient: linear-gradient(135deg,
        rgba(224, 169, 74, 0.12) 0%,
        rgba(201, 139, 46, 0.10) 50%,
        rgba(47, 184, 198, 0.08) 100%);

    --neon-gradient-dark: linear-gradient(135deg,
        rgba(11, 14, 20, 0.96) 0%,
        rgba(14, 18, 26, 0.94) 50%,
        rgba(17, 21, 29, 0.96) 100%);

    --cyber-gradient: linear-gradient(135deg,
        #e0a94a 0%,
        #d99a3c 50%,
        #c98b2e 100%);

    /* 磨砂面板：取代原霓虹玻璃 */
    --glass-bg:        rgba(20, 24, 33, 0.88);
    --glass-bg-light:  rgba(26, 31, 42, 0.92);
    --glass-bg-dark:   rgba(8, 10, 15, 0.72);
    --glass-border:    rgba(255, 255, 255, 0.10);
    --glass-shadow:    0 7px 26px rgba(0, 0, 0, 0.45);

    /* 文字层级 */
    --text-primary:   #e9edf3;
    --text-secondary: rgba(233, 237, 243, 0.62);
    --text-tertiary:  rgba(233, 237, 243, 0.42);
    --text-light:     #ffffff;
    --text-light-secondary: rgba(255, 255, 255, 0.8);

    /* 圆角：更克制的影院质感 */
    --radius-xs: 5px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 22px;

    /* 阴影：中性投影为主，品牌辉光只留一处 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 18px 48px rgba(0, 0, 0, 0.52);
    --shadow-glow: 0 0 24px rgba(224, 169, 74, 0.22);

    /* 动效 */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.42s cubic-bezier(0.4, 0, 0.2, 1);

    /* 字体：维吾尔语字形优先，再回退到系统中西文字体 */
    --font-ui: 'Microsoft Uighur', 'UKIJ Tor', 'Alkatip Basma Tom', 'Noto Naskh Arabic',
               'Segoe UI', 'Microsoft YaHei', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* 深色模式变量 */
[data-theme="dark"], .dark-mode {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.62);
    --glass-bg: rgba(14, 18, 26, 0.90);
    --glass-bg-light: rgba(22, 27, 36, 0.95);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 7px 26px rgba(0, 0, 0, 0.52);
}

/* 深色背景页面自动适配（含以旧内联渐变作背景的页面） */
body[style*="background: linear-gradient(135deg, #0b0e14"],
body[style*="background: linear-gradient(135deg, #0b0e14"],
body[style*="background: linear-gradient(145deg, #0b0c15"],
body[style*="background: linear-gradient(180deg, rgba(30, 20, 50"],
body[style*="background: var(--bg-primary)"],
.page,
#home-page,
#duanju-page,
#recommend-page,
#ranking-page,
#profile-page {
    --glass-bg: rgba(14, 18, 26, 0.85);
    --glass-bg-light: rgba(22, 27, 36, 0.90);
    --glass-border: rgba(255, 255, 255, 0.10);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.68);
}

/* ==================== 基础重置 ==================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 霓虹卡片样式 ==================== */
.crystal-card,
.glass-effect,
.card,
.modal-content,
.setting-modal,
.profile-info,
.info-item,
.vip-package-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(224, 169, 74, 0.1) !important;
    transition: all var(--transition-normal) !important;
}

.crystal-card:hover,
.glass-effect:hover,
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow) !important;
    border-color: rgba(224, 169, 74, 0.5) !important;
}

/* ==================== 按钮样式 ==================== */
.btn,
button,
.sign-in-btn,
.vip-btn,
.nav-item {
    background: linear-gradient(135deg, rgba(224, 169, 74, 0.2) 0%, rgba(201, 139, 46, 0.2) 100%) !important;
    backdrop-filter: blur(10px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(150%) !important;
    border: 1px solid rgba(224, 169, 74, 0.4) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-normal) !important;
    cursor: pointer;
}

.btn:hover,
button:hover,
.sign-in-btn:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md), 0 0 20px rgba(224, 169, 74, 0.3) !important;
    border-color: var(--neon-cyan) !important;
}

.btn:active,
button:active {
    transform: scale(0.97);
}

/* 主要按钮 - 霓虹青色渐变 */
.btn-primary,
.btn-confirm {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(224, 169, 74, 0.4), 0 0 40px rgba(224, 169, 74, 0.2) !important;
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(224, 169, 74, 0.5), 0 0 60px rgba(224, 169, 74, 0.3) !important;
}

/* 成功按钮 */
.btn-success {
    background: linear-gradient(135deg, var(--neon-green) 0%, #2aa873 100%) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(52, 201, 138, 0.4) !important;
}

/* 危险按钮 */
.btn-danger,
.btn-cancel {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-magenta) 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(178, 58, 74, 0.4) !important;
}

/* ==================== 输入框样式 ==================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,
select,
.form-control,
.input-field {
    background: rgba(14, 18, 26, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(224, 169, 74, 0.1) !important;
    color: var(--text-primary) !important;
    transition: all var(--transition-normal) !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    outline: none !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 2px rgba(224, 169, 74, 0.3), 0 0 20px rgba(224, 169, 74, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* 深色模式输入框 */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background: rgba(14, 18, 26, 0.9) !important;
    color: white !important;
}

/* ==================== 导航栏样式 ==================== */
.top-nav,
.navbar,
.header {
    background: linear-gradient(180deg, rgba(11, 14, 20, 0.95) 0%, rgba(20, 24, 33, 0.9) 100%) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-bottom: 1px solid rgba(224, 169, 74, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* 底部导航栏 */
.bottom-nav {
    background: linear-gradient(180deg, 
        rgba(14, 18, 26, 0.98) 0%, 
        rgba(8, 10, 15, 0.99) 100%) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-top: 1px solid rgba(224, 169, 74, 0.3) !important;
    box-shadow: 0 -4px 30px rgba(224, 169, 74, 0.15) !important;
}

[data-theme="dark"] .bottom-nav,
.dark-mode .bottom-nav {
    background: linear-gradient(180deg, 
        rgba(7, 9, 13, 0.98) 0%, 
        rgba(5, 6, 9, 0.99) 100%) !important;
    border-top: 1px solid rgba(224, 169, 74, 0.25) !important;
}

/* ==================== 卡片网格布局 ==================== */
.movie-card,
.video-card,
.item-card {
    background: linear-gradient(145deg, 
        rgba(20, 24, 33, 0.9) 0%, 
        rgba(11, 14, 20, 0.95) 100%) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(224, 169, 74, 0.1) !important;
    overflow: hidden;
    transition: all var(--transition-normal) !important;
}

.movie-card:hover,
.video-card:hover,
.item-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow) !important;
    border-color: var(--neon-cyan) !important;
}

/* ==================== 弹窗样式 ==================== */
.modal,
.modal-overlay,
.popup-ad-modal,
.vip-gift-modal,
#vip-upgrade-modal {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal-content,
.popup-ad-content,
.vip-gift-content,
.setting-modal {
    background: linear-gradient(145deg, 
        rgba(14, 18, 26, 0.98) 0%, 
        rgba(20, 24, 33, 0.95) 100%) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    border-radius: var(--radius-2xl) !important;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(224, 169, 74, 0.15), 0 0 120px rgba(201, 139, 46, 0.1) !important;
}

[data-theme="dark"] .modal-content,
[data-theme="dark"] .popup-ad-content,
.dark-mode .modal-content,
.dark-mode .popup-ad-content {
    background: linear-gradient(145deg, 
        rgba(7, 9, 13, 0.98) 0%, 
        rgba(11, 14, 20, 0.95) 100%) !important;
    border: 1px solid rgba(224, 169, 74, 0.25) !important;
}

/* ==================== VIP相关样式 ==================== */
.vip-badge,
.vip-tag {
    background: linear-gradient(135deg, #e8bb4e 0%, #d99a3c 50%, #e8bb4e 100%) !important;
    background-size: 200% auto !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: var(--radius-xs) !important;
    box-shadow: 0 2px 10px rgba(232, 187, 78, 0.5), 0 0 20px rgba(232, 187, 78, 0.3) !important;
    animation: vipShine 2s linear infinite !important;
}

@keyframes vipShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.vip-package-card {
    position: relative;
    overflow: hidden;
}

.vip-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cyber-gradient);
    background-size: 200% auto;
    animation: borderGlow 3s linear infinite;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes borderGlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.vip-package-card.selected {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 2px rgba(224, 169, 74, 0.4), var(--shadow-lg), 0 0 40px rgba(224, 169, 74, 0.2) !important;
}

/* ==================== 支付方式卡片 ==================== */
.pay-type-card {
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.8) 0%, rgba(14, 18, 26, 0.9) 100%) !important;
    border: 2px solid rgba(224, 169, 74, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    transition: all var(--transition-normal) !important;
}

.pay-type-card:hover {
    border-color: rgba(224, 169, 74, 0.4) !important;
    box-shadow: 0 0 20px rgba(224, 169, 74, 0.2) !important;
}

.pay-type-card.selected {
    border-color: var(--neon-cyan) !important;
    background: linear-gradient(145deg, rgba(224, 169, 74, 0.1) 0%, rgba(201, 139, 46, 0.05) 100%) !important;
    box-shadow: 0 0 0 2px rgba(224, 169, 74, 0.3), 0 0 30px rgba(224, 169, 74, 0.15) !important;
}

/* ==================== 排行榜样式 ==================== */
.ranking-item {
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.8) 0%, rgba(14, 18, 26, 0.9) 100%) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-normal) !important;
}

.ranking-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(224, 169, 74, 0.15) !important;
    border-color: rgba(224, 169, 74, 0.4) !important;
}

.ranking-item.top-1 {
    background: linear-gradient(135deg, rgba(232, 187, 78, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%) !important;
    border-color: rgba(232, 187, 78, 0.4) !important;
    box-shadow: 0 0 20px rgba(232, 187, 78, 0.2) !important;
}

.ranking-item.top-2 {
    background: linear-gradient(135deg, rgba(190, 198, 208, 0.15) 0%, rgba(168, 175, 184, 0.1) 100%) !important;
    border-color: rgba(190, 198, 208, 0.4) !important;
    box-shadow: 0 0 20px rgba(190, 198, 208, 0.15) !important;
}

.ranking-item.top-3 {
    background: linear-gradient(135deg, rgba(186, 124, 66, 0.15) 0%, rgba(160, 104, 54, 0.1) 100%) !important;
    border-color: rgba(186, 124, 66, 0.4) !important;
    box-shadow: 0 0 20px rgba(186, 124, 66, 0.15) !important;
}

/* ==================== Tab切换样式 ==================== */
.tab-item,
.tab-btn,
.nav-tab {
    background: transparent !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-secondary) !important;
    transition: all var(--transition-normal) !important;
}

.tab-item.active,
.tab-btn.active,
.nav-tab.active {
    background: linear-gradient(135deg, rgba(224, 169, 74, 0.2) 0%, rgba(201, 139, 46, 0.15) 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(224, 169, 74, 0.2), inset 0 0 10px rgba(224, 169, 74, 0.1) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
}

/* ==================== 进度条样式 ==================== */
.progress-bar,
.slider {
    background: rgba(224, 169, 74, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.progress-bar-fill,
.slider-fill {
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-purple) 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 10px rgba(224, 169, 74, 0.5) !important;
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(8, 10, 15, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(224, 169, 74, 0.3) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    box-shadow: 0 0 15px rgba(201, 139, 46, 0.4) !important;
}

/* ==================== 动画效果 ==================== */
@keyframes neonPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: var(--shadow-lg);
    }
    50% {
        opacity: 0.8;
        box-shadow: var(--shadow-xl), var(--shadow-glow);
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glitchFlicker {
    0%, 100% {
        opacity: 1;
        transform: translate(0);
    }
    92% {
        opacity: 1;
        transform: translate(0);
    }
    93% {
        opacity: 0.8;
        transform: translate(-2px, 1px);
    }
    94% {
        opacity: 1;
        transform: translate(2px, -1px);
    }
    95% {
        opacity: 0.9;
        transform: translate(-1px, 2px);
    }
    96% {
        opacity: 1;
        transform: translate(1px, -2px);
    }
    97% {
        opacity: 1;
        transform: translate(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: var(--shadow-xl), var(--shadow-glow);
    }
}

/* 霓虹脉冲效果 */
.neon-pulse {
    animation: neonPulse 2s ease-in-out infinite;
}

/* 浮动效果 */
.float-animation {
    animation: floatUp 3s ease-in-out infinite;
}

/* 发光脉冲效果 */
.glow-animation {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ==================== 页面背景与基础元素 ==================== */
body {
    background-color: var(--bg-base);
    background-image: linear-gradient(160deg,
        #0b0e14 0%,
        #10141c 45%,
        #0c1017 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
}

[data-theme="dark"] body,
.dark-mode body {
    background-color: var(--bg-base);
    background-image: linear-gradient(160deg,
        #070910 0%,
        #0b0e14 50%,
        #0f131b 100%);
    background-attachment: fixed;
}

/* 动态背景氛围（极淡品牌光晕，取代原三色霓虹光斑） */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 70% 50% at 12% 6%, rgba(224, 169, 74, 0.07) 0%, transparent 62%),
        radial-gradient(ellipse 60% 45% at 88% 94%, rgba(47, 184, 198, 0.06) 0%, transparent 62%);
    pointer-events: none;
    z-index: -1;
}

/* 细网格背景（降噪，仅作质感底纹） */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    z-index: -1;
}

/* 基础排版层级 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    line-height: 1.35;
    letter-spacing: 0.2px;
}

a {
    color: var(--brand-strong);
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

/* ==================== 后台管理特殊样式 ==================== */
.sidebar,
.admin-sidebar {
    background: linear-gradient(180deg, 
        rgba(11, 14, 20, 0.98) 0%, 
        rgba(7, 9, 13, 0.99) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(224, 169, 74, 0.2) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .admin-sidebar,
.dark-mode .sidebar,
.dark-mode .admin-sidebar {
    background: linear-gradient(180deg, 
        rgba(7, 9, 13, 0.98) 0%, 
        rgba(5, 6, 9, 0.99) 100%) !important;
    border-right: 1px solid rgba(224, 169, 74, 0.15) !important;
}

.admin-card,
.stat-card,
.dashboard-card {
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.9) 0%, rgba(14, 18, 26, 0.95) 100%) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all var(--transition-normal) !important;
}

.admin-card:hover,
.stat-card:hover,
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(224, 169, 74, 0.15) !important;
    border-color: rgba(224, 169, 74, 0.4) !important;
}

/* ==================== 表格样式 ==================== */
table,
.table {
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.8) 0%, rgba(14, 18, 26, 0.9) 100%) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
}

.table th {
    background: linear-gradient(135deg, rgba(224, 169, 74, 0.15) 0%, rgba(201, 139, 46, 0.1) 100%) !important;
    color: var(--neon-cyan) !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(224, 169, 74, 0.3) !important;
}

.table td,
.table th {
    border-bottom: 1px solid rgba(224, 169, 74, 0.1) !important;
    padding: 12px 16px;
}

.table tr:hover td {
    background: rgba(224, 169, 74, 0.05) !important;
}

/* ==================== 标签样式 ==================== */
.tag,
.badge,
.label {
    background: linear-gradient(135deg, rgba(224, 169, 74, 0.15) 0%, rgba(201, 139, 46, 0.1) 100%) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.tag-success {
    background: linear-gradient(135deg, rgba(52, 201, 138, 0.2) 0%, rgba(0, 200, 100, 0.1) 100%) !important;
    border-color: rgba(52, 201, 138, 0.4) !important;
    color: var(--neon-green) !important;
    box-shadow: 0 0 10px rgba(52, 201, 138, 0.2) !important;
}

.tag-warning {
    background: linear-gradient(135deg, rgba(229, 161, 58, 0.2) 0%, rgba(255, 150, 0, 0.1) 100%) !important;
    border-color: rgba(229, 161, 58, 0.4) !important;
    color: var(--neon-yellow) !important;
    box-shadow: 0 0 10px rgba(229, 161, 58, 0.2) !important;
}

.tag-danger {
    background: linear-gradient(135deg, rgba(178, 58, 74, 0.2) 0%, rgba(178, 58, 74, 0.1) 100%) !important;
    border-color: rgba(178, 58, 74, 0.4) !important;
    color: var(--neon-pink) !important;
    box-shadow: 0 0 10px rgba(178, 58, 74, 0.2) !important;
}

.tag-info {
    background: linear-gradient(135deg, rgba(224, 169, 74, 0.2) 0%, rgba(201, 139, 46, 0.1) 100%) !important;
    border-color: rgba(224, 169, 74, 0.4) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 10px rgba(224, 169, 74, 0.2) !important;
}

/* ==================== 头像样式 ==================== */
.avatar,
.user-avatar,
.avatar-img {
    border-radius: 50% !important;
    border: 2px solid rgba(224, 169, 74, 0.4) !important;
    box-shadow: var(--shadow-md), 0 0 15px rgba(224, 169, 74, 0.2) !important;
    transition: all var(--transition-normal) !important;
}

.avatar:hover,
.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(224, 169, 74, 0.4) !important;
    border-color: var(--neon-cyan) !important;
}

/* ==================== 开关按钮样式 ==================== */
.switch,
.toggle-switch {
    width: 50px;
    height: 28px;
    background: rgba(20, 24, 33, 0.8) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.switch::after,
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #3a3f4a 0%, #2b303a 100%) !important;
    border-radius: 50% !important;
    top: 2px;
    left: 2px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm) !important;
}

.switch.active,
.toggle-switch.active {
    background: linear-gradient(135deg, rgba(224, 169, 74, 0.3) 0%, rgba(52, 201, 138, 0.2) 100%) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(224, 169, 74, 0.3) !important;
}

.switch.active::after,
.toggle-switch.active::after {
    left: 24px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-green) 100%) !important;
    box-shadow: 0 0 10px rgba(224, 169, 74, 0.5) !important;
}

/* ==================== 工具提示 ==================== */
.tooltip,
[data-tooltip] {
    position: relative;
}

.tooltip::after,
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: linear-gradient(135deg, rgba(14, 18, 26, 0.95) 0%, rgba(20, 24, 33, 0.9) 100%) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    color: var(--neon-cyan) !important;
    padding: 8px 12px;
    border-radius: var(--radius-sm) !important;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 0 15px rgba(224, 169, 74, 0.2) !important;
}

.tooltip:hover::after,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ==================== 加载动画 ==================== */
.loading,
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(224, 169, 74, 0.2);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(224, 169, 74, 0.2) !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== 空状态样式 ==================== */
.empty-state,
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
    :root {
        --radius-lg: 12px;
        --radius-xl: 14px;
        --radius-2xl: 18px;
    }
    
    .crystal-card,
    .glass-effect,
    .modal-content {
        border-radius: var(--radius-lg) !important;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    body {
        background: white !important;
    }
    
    .crystal-card,
    .glass-effect,
    .modal-content {
        background: white !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ==================== 深色主题页面增强 ==================== */
/* 针对template.php等深色背景页面 */
.top-nav.glass-effect,
.top-nav {
    background: linear-gradient(180deg, 
        rgba(11, 14, 20, 0.98) 0%, 
        rgba(7, 9, 13, 0.95) 100%) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border-bottom: 1px solid rgba(224, 169, 74, 0.2) !important;
}

/* 个人中心页面增强 */
#profile-page,
.profile-section,
.profile-info {
    background: linear-gradient(135deg, 
        rgba(11, 14, 20, 0.7) 0%, 
        rgba(20, 24, 33, 0.5) 100%) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    padding-bottom: 100px !important; /* 为底部导航栏留出空间 */
}

.info-item {
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.8) 0%, rgba(14, 18, 26, 0.9) 100%) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.info-item:hover {
    background: linear-gradient(145deg, rgba(28, 33, 44, 0.9) 0%, rgba(26, 31, 42, 0.95) 100%) !important;
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(224, 169, 74, 0.15), 0 0 30px rgba(224, 169, 74, 0.1) !important;
    border-color: rgba(224, 169, 74, 0.4) !important;
}

/* 电影卡片增强 */
.movie-card,
.video-card {
    background: linear-gradient(145deg, 
        rgba(20, 24, 33, 0.9) 0%, 
        rgba(14, 18, 26, 0.95) 100%) !important;
    backdrop-filter: blur(12px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(224, 169, 74, 0.1) !important;
}

.movie-card:hover {
    background: linear-gradient(145deg, 
        rgba(28, 33, 44, 0.95) 0%, 
        rgba(26, 31, 42, 0.98) 100%) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(224, 169, 74, 0.2),
        0 0 60px rgba(201, 139, 46, 0.1),
        inset 0 1px 0 rgba(224, 169, 74, 0.15) !important;
    transform: translateY(-6px) scale(1.03);
}

/* VIP套餐卡片增强 */
.vip-package-card {
    background: linear-gradient(145deg, 
        rgba(224, 169, 74, 0.08) 0%, 
        rgba(201, 139, 46, 0.05) 100%) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    box-shadow: 0 4px 25px rgba(224, 169, 74, 0.1) !important;
}

.vip-package-card:hover {
    background: linear-gradient(145deg, 
        rgba(224, 169, 74, 0.15) 0%, 
        rgba(201, 139, 46, 0.1) 100%) !important;
    box-shadow: 0 8px 40px rgba(224, 169, 74, 0.2), 0 0 50px rgba(201, 139, 46, 0.15) !important;
    border-color: var(--neon-cyan) !important;
}

/* 排行榜样式增强 */
#ranking-page .ranking-item {
    background: linear-gradient(145deg, 
        rgba(20, 24, 33, 0.85) 0%, 
        rgba(14, 18, 26, 0.9) 100%) !important;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
}

/* 登录页面增强 */
.login-container,
.login-box,
.login-card {
    background: linear-gradient(145deg, 
        rgba(14, 18, 26, 0.95) 0%, 
        rgba(20, 24, 33, 0.9) 100%) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(224, 169, 74, 0.15),
        0 0 120px rgba(201, 139, 46, 0.1),
        inset 0 1px 0 rgba(224, 169, 74, 0.1) !important;
}

/* 登录按钮增强 */
.login-btn,
.oauth-btn {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%) !important;
    box-shadow: 0 4px 20px rgba(224, 169, 74, 0.4), 0 0 40px rgba(224, 169, 74, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #000 !important;
    font-weight: 600 !important;
}

.login-btn:hover,
.oauth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(224, 169, 74, 0.5), 0 0 60px rgba(224, 169, 74, 0.3) !important;
}

/* 后台管理页面增强 */
.admin-container,
.admin-content,
.main-content {
    background: linear-gradient(135deg, 
        rgba(11, 14, 20, 0.98) 0%, 
        rgba(10, 15, 30, 0.95) 100%) !important;
}

/* 统计卡片增强 */
.stat-card,
.stat-box {
    background: linear-gradient(145deg, 
        rgba(20, 24, 33, 0.9) 0%, 
        rgba(14, 18, 26, 0.95) 100%) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(224, 169, 74, 0.2) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(224, 169, 74, 0.1) !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(224, 169, 74, 0.2) !important;
    border-color: rgba(224, 169, 74, 0.4) !important;
}

/* 霓虹按钮效果 */
.crystal-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(224, 169, 74, 0.15) 0%, 
        rgba(201, 139, 46, 0.1) 100%) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
}

.crystal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(224, 169, 74, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.crystal-btn:hover::before {
    left: 100%;
}

/* 设置弹窗增强 */
.setting-modal {
    background: linear-gradient(145deg, 
        rgba(14, 18, 26, 0.98) 0%, 
        rgba(20, 24, 33, 0.95) 100%) !important;
    border: 1px solid rgba(224, 169, 74, 0.3) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(224, 169, 74, 0.15) !important;
}

/* 搜索框增强 */
.search-input,
.search-box input {
    background: rgba(14, 18, 26, 0.8) !important;
    border: 1px solid rgba(224, 169, 74, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(224, 169, 74, 0.1) !important;
    color: var(--text-primary) !important;
}

.search-input:focus,
.search-box input:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 
        0 0 0 2px rgba(224, 169, 74, 0.2),
        0 0 20px rgba(224, 169, 74, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* 分类导航增强 */
.category-nav,
.nav-tabs {
    background: rgba(14, 18, 26, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    border: 1px solid rgba(224, 169, 74, 0.15) !important;
}

.category-item,
.nav-tab {
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.category-item.active,
.nav-tab.active {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%) !important;
    box-shadow: 0 4px 15px rgba(224, 169, 74, 0.3), 0 0 30px rgba(224, 169, 74, 0.15) !important;
    color: #000 !important;
    font-weight: 600 !important;
}

/* VIP标签彩虹动画 */
.vip-badge,
.vip-tag,
.nav-vip-tag {
    background: linear-gradient(90deg, 
        #e8bb4e, #d99a3c, #e8bb4e) !important;
    background-size: 200% auto !important;
    animation: shimmer 2s linear infinite !important;
    color: #000 !important;
    font-weight: 700 !important;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* 播放器控制栏增强 */
.player-controls {
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(7, 9, 13, 0.9) 100%) !important;
    backdrop-filter: blur(10px) !important;
}

/* 选集列表增强 */
.episode-list,
.playlist {
    background: rgba(14, 18, 26, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(224, 169, 74, 0.15) !important;
}

.episode-item {
    background: rgba(20, 24, 33, 0.6) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
}

.episode-item:hover {
    background: rgba(224, 169, 74, 0.1) !important;
    border-color: rgba(224, 169, 74, 0.3) !important;
    box-shadow: 0 0 15px rgba(224, 169, 74, 0.15) !important;
}

.episode-item.active {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%) !important;
    color: #000 !important;
    font-weight: 600 !important;
    box-shadow: 0 0 20px rgba(224, 169, 74, 0.3) !important;
}

/* 精致的悬停效果 */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(224, 169, 74, 0.2) !important;
}

/* 发光边框效果 */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
        var(--brand-strong),
        var(--brand),
        var(--brand-deep),
        var(--brand-strong));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientRotate 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 页面切换动画增强 */
.page {
    animation: pageEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 焦点状态增强 */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    box-shadow: 0 0 10px rgba(224, 169, 74, 0.3) !important;
}

/* 禁用状态 */
:disabled,
.disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    filter: grayscale(0.5);
}

/* 选中文字样式 */
::selection {
    background: rgba(224, 169, 74, 0.3);
    color: white;
}

/* ==================== 头像呼吸光环效果 ==================== */
.avatar-glow-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-glow-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--neon-cyan),
        var(--neon-purple),
        var(--neon-pink),
        var(--neon-cyan)
    );
    animation: avatarGlowRotate 3s linear infinite;
    z-index: -1;
    opacity: 0.9;
}

.avatar-glow-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        var(--neon-cyan),
        var(--neon-purple),
        var(--neon-pink),
        var(--neon-cyan)
    );
    animation: avatarGlowRotate 3s linear infinite reverse;
    z-index: -2;
    opacity: 0.6;
    filter: blur(10px);
}

.profile-avatar-with-glow {
    border: 3px solid transparent;
    background-clip: padding-box;
    animation: avatarBreathing 2s ease-in-out infinite;
}

@keyframes avatarGlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes avatarBreathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ==================== 昵称霓虹渐变效果 ==================== */
.glitch-name {
    position: relative;
    display: inline-block;
}

.glitch-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        90deg,
        var(--neon-cyan) 0%,
        var(--neon-purple) 25%,
        var(--neon-pink) 50%,
        var(--neon-cyan) 75%,
        var(--neon-purple) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s linear infinite;
    text-shadow: 0 0 30px rgba(224, 169, 74, 0.5);
}

.glitch-name::before,
.glitch-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-name::before {
    color: var(--neon-cyan);
    animation: glitchTop 0.3s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-text-fill-color: var(--neon-cyan);
}

.glitch-name::after {
    color: var(--neon-pink);
    animation: glitchBottom 0.3s ease-in-out infinite reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-text-fill-color: var(--neon-pink);
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, -1px); }
    40% { transform: translate(2px, 1px); }
    60% { transform: translate(-1px, -2px); }
    80% { transform: translate(1px, 2px); }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 1px); }
    40% { transform: translate(-2px, -1px); }
    60% { transform: translate(1px, 2px); }
    80% { transform: translate(-1px, -2px); }
}

/* ==================== 邀请按钮呼吸效果 ==================== */
.invite-breathing-btn {
    animation: inviteBreathing 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.invite-breathing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(224, 169, 74, 0.5),
        transparent
    );
    animation: inviteShine 2s ease-in-out infinite;
}

@keyframes inviteBreathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(224, 169, 74, 0.3), 0 0 40px rgba(224, 169, 74, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(224, 169, 74, 0.5), 0 0 60px rgba(201, 139, 46, 0.2);
    }
}

@keyframes inviteShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* 邀请按钮悬停效果 */
.invite-breathing-btn:hover {
    animation: none;
    transform: scale(1.08);
    box-shadow: 0 8px 40px rgba(224, 169, 74, 0.6), 0 0 80px rgba(201, 139, 46, 0.3);
}

/* ===== RTL / ئۇيغۇرچە يۆنىلىش ===== */
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .bottom-nav,
html[dir="rtl"] .nav-item { direction: rtl; }
html[dir="rtl"] input:not([type="checkbox"]):not([type="radio"]),
html[dir="rtl"] textarea { direction: rtl; text-align: right; }
html[dir="rtl"] .source-item { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .force-update-message { text-align: right; }
html[dir="rtl"] .avatar-menu { left: auto; right: 10px; }
