/* ============================================
   多主题设计系统
   日间模式 | 夜间模式 | 炫酷模式
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   主题切换器 - 改进版抽屉式设计
   ============================================ */

/* 触发按钮 */
.theme-toggle-trigger {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.theme-toggle-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.theme-toggle-trigger:active {
    transform: rotate(90deg) scale(0.95);
}

body[data-theme="ios"] .theme-toggle-trigger {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 32px rgba(40, 60, 110, 0.16);
}

/* 抽屉容器 */
.theme-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-drawer.active {
    pointer-events: auto;
    opacity: 1;
}

/* 遮罩层 */
.theme-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-drawer.active .theme-drawer-overlay {
    opacity: 1;
}

/* 抽屉内容 */
.theme-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-light);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow-y: auto;
}

.theme-drawer.active .theme-drawer-content {
    transform: translateX(0);
}

/* iOS 26 液态抽屉 */
body[data-theme="ios"] .theme-drawer-content {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(250, 252, 255, 0.28) 100%);
    backdrop-filter: blur(100px) saturate(220%) brightness(105%);
    -webkit-backdrop-filter: blur(100px) saturate(220%) brightness(105%);
    border-left: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        -8px 0 48px -8px rgba(0, 0, 0, 0.12),
        0 0 0 0.5px rgba(255, 255, 255, 0.6);
}

body[data-theme="cool"] .theme-drawer-content {
    background: rgba(13, 13, 30, 0.95);
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: -4px 0 48px rgba(0, 255, 255, 0.2);
}

body[data-theme="cs"] .theme-drawer-content {
    background: linear-gradient(145deg, rgba(20, 26, 35, 0.98), rgba(14, 18, 26, 0.98));
    border-left: 1px solid rgba(245, 130, 32, 0.3);
}

/* 抽屉头部 */
.theme-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.theme-drawer-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.theme-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-drawer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* 主题选项列表 */
.theme-drawer-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 主题选项卡片 */
.theme-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    border-color: var(--primary-blue);
    background: var(--bg-elevated);
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.theme-option.active {
    border-color: var(--primary-blue);
    background: rgba(0, 122, 255, 0.08);
}

.theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* 主题预览 */
.theme-preview {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.preview-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.preview-bar {
    height: 6px;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.6;
}

.preview-bar.bar-1 {
    width: 80%;
}

.preview-bar.bar-2 {
    width: 60%;
}

/* 各主题预览配色 */
.theme-preview-light {
    background: #F5F5F7;
    color: #007AFF;
}

.theme-preview-dark {
    background: #1D1D1F;
    color: #0071E3;
}

.theme-preview-cool {
    background: linear-gradient(135deg, #050510 0%, #0D0D1E 100%);
    color: #00FFFF;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.3);
}

.theme-preview-cs {
    background: linear-gradient(135deg, #0E1117 0%, #141922 100%);
    color: #F58220;
    box-shadow: 0 0 16px rgba(245, 130, 32, 0.2);
}

.theme-preview-ios {
    background: linear-gradient(145deg, rgba(242, 246, 255, 0.92), rgba(232, 236, 245, 0.94));
    color: rgba(0, 122, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.theme-preview-vaporwave {
    background: linear-gradient(135deg, #FF6EC7 0%, #7C3AED 50%, #06B6D4 100%);
    color: #FF10F0;
    box-shadow: 0 0 20px rgba(255, 16, 240, 0.5);
    position: relative;
    overflow: hidden;
}

.theme-preview-samurai {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A0505 100%);
    color: #DC143C;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.4);
}

.theme-preview-ocean {
    background: linear-gradient(135deg, #001f3f 0%, #0074D9 100%);
    color: #40E0D0;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
}

.theme-preview-tokyo {
    background: linear-gradient(135deg, #0D0D1A 0%, #1A0D1F 100%);
    color: #FF1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

.theme-preview-matrix {
    background: #000000;
    color: #00FF41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.theme-preview-terminal {
    background: #000000;
    color: #FF6600;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
    border: 1px solid rgba(255, 102, 0, 0.3);
}

/* 主题信息 */
.theme-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 主题图标 */
.theme-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CS图标小尺寸 */
.cs-icon-small {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #F58220;
}

.cs-crosshair-small {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 130, 32, 0.5);
}

.cs-crosshair-small::before,
.cs-crosshair-small::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.cs-crosshair-small::before {
    width: 120%;
    height: 2px;
}

.cs-crosshair-small::after {
    width: 2px;
    height: 120%;
}

/* iOS图标小尺寸 */
.ios-icon-small {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(210, 230, 255, 0.65));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 8px rgba(30, 50, 90, 0.15);
    position: relative;
}

.ios-icon-small::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.8), rgba(88, 172, 255, 0.75));
}

.theme-btn[data-theme="cs"] {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.35), rgba(255, 200, 112, 0.28));
    color: #F58220;
    font-size: 0;
    padding: 0;
}

.theme-btn[data-theme="cs"]:hover {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.55), rgba(255, 200, 112, 0.45));
}

.theme-btn[data-theme="cs"].active {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.7), rgba(255, 200, 112, 0.55));
    box-shadow: 0 0 0 2px rgba(245, 130, 32, 0.55);
}

.theme-btn[data-theme="cs"].active .cs-bullet {
    animation-duration: 1s;
    box-shadow: 0 0 14px rgba(245, 130, 32, 0.8), 0 0 28px rgba(245, 130, 32, 0.5);
}

.theme-btn[data-theme="ios"] {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: rgba(20, 40, 70, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 18px rgba(25, 45, 80, 0.08);
}

.theme-btn[data-theme="ios"]:hover {
    color: rgba(0, 122, 255, 0.9);
    box-shadow: 0 10px 24px rgba(25, 45, 80, 0.12);
}

.theme-btn[data-theme="ios"].active {
    color: rgba(0, 122, 255, 0.95);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.35), 0 12px 26px rgba(20, 40, 70, 0.12);
}

.theme-btn .cs-icon {
    position: relative;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.theme-btn .cs-crosshair {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(245, 130, 32, 0.6),
        inset 0 0 8px rgba(255, 200, 112, 0.35);
    animation: csCrosshairIdle 3.4s ease-in-out infinite;
}

.theme-btn .cs-crosshair::before,
.theme-btn .cs-crosshair::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140%;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor 45%, currentColor 55%, transparent);
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.theme-btn .cs-crosshair::after {
    width: 2px;
    height: 140%;
    background: linear-gradient(180deg, transparent, currentColor 45%, currentColor 55%, transparent);
}

.theme-btn .cs-bullet {
    position: absolute;
    right: -4px;
    top: 50%;
    width: 10px;
    height: 4px;
    background: linear-gradient(90deg, rgba(245, 130, 32, 0.9), rgba(255, 231, 176, 0.9));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(245, 130, 32, 0.7);
    transform: translateY(-50%);
    animation: csBulletPulse 1.6s ease-in-out infinite;
}

.theme-btn .cs-bullet::after {
    content: '';
    position: absolute;
    inset: -4px 60% -4px -40%;
    background: linear-gradient(90deg, rgba(255, 200, 112, 0.5), transparent);
    filter: blur(4px);
}

@keyframes csBulletPulse {

    0%,
    100% {
        transform: translateY(-50%) scaleX(1);
        opacity: 0.8;
    }

    40% {
        transform: translate(-2px, -50%) scaleX(1.2);
        opacity: 1;
    }

    70% {
        transform: translateY(-50%) scaleX(0.9);
        opacity: 0.65;
    }
}

@keyframes csCrosshairIdle {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(245, 130, 32, 0.6), inset 0 0 8px rgba(255, 200, 112, 0.35);
    }

    45% {
        transform: scale(0.94);
        box-shadow: 0 0 14px rgba(245, 130, 32, 0.7), inset 0 0 10px rgba(255, 200, 112, 0.45);
    }
}

.ios-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(210, 230, 255, 0.65));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.45),
        0 4px 10px rgba(30, 50, 90, 0.15);
    position: relative;
}

.ios-icon::before,
.ios-icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.8), rgba(88, 172, 255, 0.75));
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.18);
}

.ios-icon::before {
    inset: 4px;
}

.ios-icon::after {
    inset: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 216, 255, 0.75));
}

body[data-theme="ios"] .theme-btn.active .ios-icon {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.55),
        0 6px 14px rgba(30, 50, 90, 0.2);
}

/* ============================================
   日间模式 - 白色+淡蓝色
   ============================================ */
body[data-theme="light"] {
    --primary-blue: #007AFF;
    --primary-dark: #0051D5;
    --success-green: #34C759;
    --danger-red: #FF3B30;

    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #F9F9FB;

    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-tertiary: #86868B;
    --text-input: #1D1D1F;

    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============================================
   夜间模式 - 纯黑暗色
   ============================================ */
body[data-theme="dark"] {
    --primary-blue: #0071E3;
    --primary-dark: #0077ED;
    --success-green: #30D158;
    --danger-red: #FF3B30;

    --bg-primary: #000000;
    --bg-secondary: #161617;
    --bg-card: #1D1D1F;
    --bg-elevated: #2C2C2E;

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-tertiary: #6E6E73;
    --text-input: #FFFFFF;

    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================
   炫酷模式 - 极致赛博朋克风格
   ============================================ */
body[data-theme="cool"] {
    --primary-blue: #00FFFF;
    --primary-dark: #00F0FF;
    --success-green: #00FF66;
    --danger-red: #FF0055;

    --bg-primary: #050510;
    --bg-secondary: #0D0D1E;
    --bg-card: #151530;
    --bg-elevated: #1A1A40;

    --text-primary: #FFFFFF;
    --text-secondary: #C0C0FF;
    --text-tertiary: #8080C0;
    --text-input: #FFFFFF;

    --border-light: rgba(0, 255, 255, 0.3);
    --border-medium: rgba(0, 255, 255, 0.6);

    --shadow-sm: 0 0 15px rgba(0, 255, 255, 0.4);
    --shadow-md: 0 0 30px rgba(0, 255, 255, 0.5);
    --shadow-lg: 0 0 50px rgba(0, 255, 255, 0.6);

    --neon-cyan: #00FFFF;
    --neon-pink: #FF0088;
    --neon-purple: #CC00FF;
    --neon-green: #00FF66;
    --neon-yellow: #FFFF00;
}

/* ============================================
   CS战术模式 - CS2霓虹战术风
   ============================================ */
body[data-theme="cs"] {
    --primary-blue: #F58220;
    --primary-dark: #D06A00;
    --success-green: #5EE856;
    --danger-red: #FF4D4F;

    --bg-primary: #0E1117;
    --bg-secondary: #141922;
    --bg-card: rgba(20, 26, 35, 0.92);
    --bg-elevated: rgba(29, 37, 48, 0.88);

    --text-primary: #E6EDF7;
    --text-secondary: #9BA9C1;
    --text-tertiary: #5C6C84;
    --text-input: #F4F7FB;

    --border-light: rgba(245, 130, 32, 0.16);
    --border-medium: rgba(245, 130, 32, 0.32);

    --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.65);

    --cs-highlight: rgba(245, 130, 32, 0.35);
    --cs-highlight-strong: rgba(245, 130, 32, 0.55);
    --cs-ambient: rgba(27, 65, 90, 0.45);
}

/* ============================================
   iOS 26 液态玻璃（Liquid Glass）- visionOS风格
   灵感来源：透明度、流动性、景深、光影
   ============================================ */
body[data-theme="ios"] {
    --primary-blue: rgb(0, 122, 255);
    --primary-dark: rgb(0, 100, 220);
    --success-green: rgb(52, 199, 89);
    --danger-red: rgb(255, 69, 58);

    /* 液态玻璃背景 - 极致透明 */
    --bg-primary: linear-gradient(145deg, rgba(245, 248, 255, 0.4), rgba(235, 242, 252, 0.5));
    --bg-secondary: rgba(255, 255, 255, 0.35);
    --bg-card: rgba(255, 255, 255, 0.25);
    --bg-elevated: rgba(255, 255, 255, 0.45);

    /* 高对比度文字 - 确保可读性 */
    --text-primary: rgba(0, 0, 0, 0.92);
    --text-secondary: rgba(0, 0, 0, 0.65);
    --text-tertiary: rgba(0, 0, 0, 0.45);
    --text-input: rgba(0, 0, 0, 0.92);

    /* 极细边框 + 光晕 */
    --border-light: rgba(255, 255, 255, 0.8);
    --border-medium: rgba(255, 255, 255, 0.5);

    /* 柔和立体阴影 - 景深感 */
    --shadow-sm: 0 4px 24px -4px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(255, 255, 255, 0.6);
    --shadow-md: 0 12px 48px -8px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(255, 255, 255, 0.7);
    --shadow-lg: 0 24px 72px -12px rgba(0, 0, 0, 0.15), 0 0 0 0.5px rgba(255, 255, 255, 0.8);

    /* 液态玻璃光学特性 */
    --ios-glass-glow: rgba(255, 255, 255, 0.9);
    --ios-glass-outline: rgba(255, 255, 255, 0.95);
    --ios-glass-highlight: rgba(255, 255, 255, 1);
    --ios-glass-reflection: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(240, 245, 255, 0.3));
}

/* ============================================
   蒸汽波 - Vaporwave 复古未来主义
   ============================================ */
body[data-theme="vaporwave"] {
    --primary-blue: #FF10F0;
    --primary-dark: #D600C7;
    --success-green: #00FFAA;
    --danger-red: #FF006E;

    --bg-primary: #1A0B2E;
    --bg-secondary: #240E3D;
    --bg-card: #2D1B4E;
    --bg-elevated: #3D2B5E;

    --text-primary: #FF10F0;
    --text-secondary: #B794F6;
    --text-tertiary: #8B7FB8;
    --text-input: #FFB3E6;

    --border-light: rgba(255, 16, 240, 0.3);
    --border-medium: rgba(255, 16, 240, 0.5);

    --shadow-sm: 0 0 20px rgba(255, 16, 240, 0.3);
    --shadow-md: 0 0 40px rgba(255, 16, 240, 0.4);
    --shadow-lg: 0 0 60px rgba(255, 16, 240, 0.5);

    --vaporwave-pink: #FF6EC7;
    --vaporwave-purple: #7C3AED;
    --vaporwave-cyan: #06B6D4;
    --vaporwave-sunset: linear-gradient(180deg, #FF6EC7 0%, #FFA500 50%, #FF1493 100%);
}

/* ============================================
   赛博武士 - Cyber Samurai 刀光剑影
   ============================================ */
body[data-theme="samurai"] {
    --primary-blue: #DC143C;
    --primary-dark: #B01030;
    --success-green: #00FF88;
    --danger-red: #FF0033;

    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-card: #1A0505;
    --bg-elevated: #250808;

    --text-primary: #FFE8E8;
    --text-secondary: #FFB8B8;
    --text-tertiary: #CC8888;
    --text-input: #FFFFFF;

    --border-light: rgba(220, 20, 60, 0.3);
    --border-medium: rgba(220, 20, 60, 0.5);

    --shadow-sm: 0 0 20px rgba(220, 20, 60, 0.4);
    --shadow-md: 0 0 40px rgba(220, 20, 60, 0.5);
    --shadow-lg: 0 0 60px rgba(220, 20, 60, 0.6);

    --samurai-red: #DC143C;
    --samurai-blood: #8B0000;
    --samurai-glow: rgba(220, 20, 60, 0.8);
}

/* ============================================
   深海探索 - Deep Ocean 宁静深邃
   ============================================ */
body[data-theme="ocean"] {
    --primary-blue: #40E0D0;
    --primary-dark: #20B0A0;
    --success-green: #7FFFD4;
    --danger-red: #FF6B9D;

    --bg-primary: #001f3f;
    --bg-secondary: #002f5f;
    --bg-card: #003f6f;
    --bg-elevated: #004f8f;

    --text-primary: #E0FFFF;
    --text-secondary: #B0E0E6;
    --text-tertiary: #80C0D0;
    --text-input: #FFFFFF;

    --border-light: rgba(64, 224, 208, 0.3);
    --border-medium: rgba(64, 224, 208, 0.5);

    --shadow-sm: 0 0 20px rgba(64, 224, 208, 0.2);
    --shadow-md: 0 0 40px rgba(64, 224, 208, 0.3);
    --shadow-lg: 0 0 60px rgba(64, 224, 208, 0.4);

    --ocean-turquoise: #40E0D0;
    --ocean-deep: #0074D9;
    --ocean-light: #7FDBFF;
}

/* ============================================
   霓虹东京 - Neon Tokyo 东京夜雨
   ============================================ */
body[data-theme="tokyo"] {
    --primary-blue: #00BFFF;
    --primary-dark: #0099CC;
    --success-green: #00FF88;
    --danger-red: #FF1493;

    --bg-primary: #0D0D1A;
    --bg-secondary: #15152A;
    --bg-card: #1D1D3A;
    --bg-elevated: #25254A;

    --text-primary: #FFE0FF;
    --text-secondary: #D8B4FE;
    --text-tertiary: #B088D0;
    --text-input: #FFFFFF;

    --border-light: rgba(255, 20, 147, 0.3);
    --border-medium: rgba(255, 20, 147, 0.5);

    --shadow-sm: 0 0 20px rgba(255, 20, 147, 0.3);
    --shadow-md: 0 0 40px rgba(255, 20, 147, 0.4);
    --shadow-lg: 0 0 60px rgba(255, 20, 147, 0.5);

    --tokyo-pink: #FF1493;
    --tokyo-blue: #00BFFF;
    --tokyo-purple: #DA70D6;
}

/* ============================================
   黑客帝国 - Matrix 数字雨
   ============================================ */
body[data-theme="matrix"] {
    --primary-blue: #00FF41;
    --primary-dark: #00CC33;
    --success-green: #00FF41;
    --danger-red: #FF4444;

    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-card: #0F0F0F;
    --bg-elevated: #1A1A1A;

    --text-primary: #00FF41;
    --text-secondary: #00CC33;
    --text-tertiary: #008822;
    --text-input: #00FF41;

    --border-light: rgba(0, 255, 65, 0.3);
    --border-medium: rgba(0, 255, 65, 0.5);

    --shadow-sm: 0 0 20px rgba(0, 255, 65, 0.3);
    --shadow-md: 0 0 40px rgba(0, 255, 65, 0.4);
    --shadow-lg: 0 0 60px rgba(0, 255, 65, 0.5);

    --matrix-green: #00FF41;
    --matrix-dark-green: #008822;
}

/* ============================================
   金融终端 - Financial Terminal Bloomberg风格
   ============================================ */
body[data-theme="terminal"] {
    --primary-blue: #FF6600;
    --primary-dark: #CC5500;
    --success-green: #00FF00;
    --danger-red: #FF0000;

    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-card: #0F0F0F;
    --bg-elevated: #1A1A1A;

    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-tertiary: #888888;
    --text-input: #FFFFFF;

    --border-light: rgba(255, 102, 0, 0.3);
    --border-medium: rgba(255, 102, 0, 0.5);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);

    --terminal-orange: #FF6600;
    --terminal-green: #00FF00;
    --terminal-red: #FF0000;
}

/* 多层背景渐变动画 */
body[data-theme="cool"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 255, 255, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255, 0, 136, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(204, 0, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(0, 255, 102, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
    animation: megaGlow 8s ease-in-out infinite;
}

@keyframes megaGlow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    25% {
        opacity: 0.8;
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.95) rotate(-5deg);
    }

    75% {
        opacity: 0.9;
        transform: scale(1.05) rotate(3deg);
    }
}

/* 扫描线效果 */
body[data-theme="cool"]::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.05) 2px,
            rgba(0, 255, 255, 0.05) 4px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: scanLine 8s linear infinite;
}

/* iOS 26 液态玻璃背景 - 流动光影 */
body[data-theme="ios"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* 主渐变 - 液态流动感 */
        linear-gradient(135deg,
            rgba(220, 235, 255, 0.5) 0%,
            rgba(255, 230, 250, 0.3) 25%,
            rgba(230, 245, 255, 0.4) 50%,
            rgba(250, 240, 255, 0.3) 75%,
            rgba(235, 245, 255, 0.45) 100%),
        /* 动态光斑 - 模拟光线穿透 */
        radial-gradient(ellipse 800px 600px at 10% 15%, rgba(140, 200, 255, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 700px 700px at 90% 20%, rgba(255, 160, 220, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 900px 500px at 50% 85%, rgba(160, 220, 255, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 600px 800px at 75% 50%, rgba(200, 180, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
    animation: liquidGlassFlow 25s ease-in-out infinite alternate;
}

/* 液态流动动画 */
@keyframes liquidGlassFlow {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }

    33% {
        opacity: 0.9;
        transform: scale(1.03) rotate(1deg);
        filter: hue-rotate(2deg);
    }

    66% {
        opacity: 0.85;
        transform: scale(1.05) rotate(-1deg);
        filter: hue-rotate(-2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
}

/* 玻璃光学反射层 - vibrancy效果 */
body[data-theme="ios"]::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        /* 高光反射 */
        radial-gradient(circle 600px at 15% 15%, rgba(255, 255, 255, 0.85) 0%, transparent 35%),
        radial-gradient(circle 500px at 85% 18%, rgba(255, 255, 255, 0.7) 0%, transparent 40%),
        radial-gradient(circle 700px at 50% 75%, rgba(255, 255, 255, 0.6) 0%, transparent 45%),
        radial-gradient(circle 400px at 30% 60%, rgba(240, 250, 255, 0.5) 0%, transparent 40%);
    mix-blend-mode: overlay;
    opacity: 0.7;
    pointer-events: none;
    z-index: -2;
    animation: glassReflection 18s ease-in-out infinite;
}

/* 玻璃反射动画 */
@keyframes glassReflection {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(0, 0) scale(1);
    }

    50% {
        opacity: 0.85;
        transform: translate(8px, -8px) scale(1.02);
    }
}

@keyframes scanLine {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(20px);
    }
}

/* CS战术模式背景 */
body[data-theme="cs"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(245, 130, 32, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 78% 18%, rgba(23, 101, 158, 0.18) 0%, transparent 48%),
        radial-gradient(circle at 60% 68%, rgba(245, 130, 32, 0.12) 0%, transparent 55%),
        linear-gradient(140deg, rgba(9, 12, 18, 0.82), rgba(12, 16, 23, 0.96));
    pointer-events: none;
    z-index: -2;
}

body[data-theme="cs"]::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle, rgba(245, 130, 32, 0.1) 0%, transparent 55%);
    background-size: 24px 24px, 24px 24px, 360px 360px;
    mix-blend-mode: lighten;
    opacity: 0.22;
    pointer-events: none;
    z-index: -2;
}

body[data-theme="cs"] .container::before {
    content: '';
    position: absolute;
    top: 48px;
    right: 64px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(245, 130, 32, 0.25);
    border-radius: 50%;
    box-shadow:
        0 0 25px rgba(245, 130, 32, 0.18),
        inset 0 0 25px rgba(27, 65, 90, 0.35);
    background:
        radial-gradient(circle at center, rgba(245, 130, 32, 0.1) 0%, transparent 80%),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

body[data-theme="cs"] .container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 15% 35%, rgba(245, 130, 32, 0.6), transparent),
        radial-gradient(1px 1px at 32% 62%, rgba(255, 200, 112, 0.6), transparent),
        radial-gradient(1px 1px at 64% 28%, rgba(245, 130, 32, 0.6), transparent),
        radial-gradient(1px 1px at 82% 52%, rgba(255, 200, 112, 0.6), transparent);
    opacity: 0.55;
    animation: csParticleDrift 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes csParticleDrift {

    0%,
    100% {
        transform: translate(-1%, -1%) scale(1);
        opacity: 0.45;
    }

    30% {
        transform: translate(1.5%, 2%) scale(1.05);
        opacity: 0.75;
    }

    65% {
        transform: translate(-1.5%, 1%) scale(0.97);
        opacity: 0.5;
    }
}

/* ============================================
   蒸汽波背景 - 复古网格 + 日落渐变
   ============================================ */
body[data-theme="vaporwave"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(255, 110, 199, 0.3) 0%,
            rgba(124, 58, 237, 0.4) 35%,
            rgba(255, 165, 0, 0.3) 65%,
            rgba(255, 20, 147, 0.4) 100%);
    pointer-events: none;
    z-index: -2;
}

/* 复古网格地面 */
body[data-theme="vaporwave"]::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image:
        linear-gradient(0deg, rgba(255, 16, 240, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 16, 240, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
    animation: vaporwaveGrid 20s linear infinite;
}

@keyframes vaporwaveGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 40px;
    }
}

/* 蒸汽波扫描线 */
body[data-theme="vaporwave"] .container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 16, 240, 0.03) 2px,
            rgba(255, 16, 240, 0.03) 4px);
    pointer-events: none;
    opacity: 0.8;
    z-index: 10;
}

/* 蒸汽波故障效果装饰 */
body[data-theme="vaporwave"] .container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(255, 110, 199, 0.8), transparent),
        radial-gradient(2px 2px at 65% 45%, rgba(124, 58, 237, 0.8), transparent),
        radial-gradient(2px 2px at 85% 65%, rgba(6, 182, 212, 0.8), transparent),
        radial-gradient(2px 2px at 35% 75%, rgba(255, 16, 240, 0.8), transparent);
    animation: vaporwaveStars 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
    z-index: 5;
}

@keyframes vaporwaveStars {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(0, 0);
    }

    50% {
        opacity: 0.9;
        transform: translate(5px, -5px);
    }
}

/* ============================================
   赛博武士背景 - 血红刀光
   ============================================ */
body[data-theme="samurai"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 5, 5, 0.98) 100%);
    pointer-events: none;
    z-index: -2;
}

/* 刀光扫过效果 */
body[data-theme="samurai"]::after {
    content: '';
    position: fixed;
    top: -100%;
    left: -10%;
    width: 3px;
    height: 200%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(220, 20, 60, 0.8) 30%,
            rgba(255, 255, 255, 0.9) 50%,
            rgba(220, 20, 60, 0.8) 70%,
            transparent 100%);
    box-shadow:
        0 0 20px rgba(220, 20, 60, 0.8),
        0 0 40px rgba(220, 20, 60, 0.6);
    transform: rotate(25deg);
    animation: samuraiSlash 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

/* 赛博武士装饰粒子 */
body[data-theme="samurai"] .container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 25% 35%, rgba(220, 20, 60, 0.9), transparent),
        radial-gradient(1px 1px at 75% 55%, rgba(220, 20, 60, 0.8), transparent),
        radial-gradient(1px 1px at 45% 65%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 85% 25%, rgba(220, 20, 60, 0.85), transparent);
    animation: samuraiParticles 6s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.5;
    z-index: 5;
}

@keyframes samuraiParticles {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(0, 0);
    }

    50% {
        opacity: 0.8;
        transform: translate(3px, -3px);
    }
}

@keyframes samuraiSlash {
    0% {
        left: -10%;
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    8% {
        left: 110%;
        opacity: 0.6;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

/* ============================================
   深海探索背景 - 波光粼粼
   ============================================ */
body[data-theme="ocean"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0, 31, 63, 1) 0%,
            rgba(0, 47, 95, 1) 30%,
            rgba(0, 63, 111, 1) 60%,
            rgba(0, 79, 143, 1) 100%);
    pointer-events: none;
    z-index: -2;
}

/* 水波纹效果 */
body[data-theme="ocean"]::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(127, 255, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 116, 217, 0.12) 0%, transparent 50%);
    animation: oceanWaves 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

@keyframes oceanWaves {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(20px, -10px) scale(1.1);
        opacity: 1;
    }
}

/* 深海气泡效果 */
body[data-theme="ocean"] .container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 4px at 20% 80%, rgba(64, 224, 208, 0.6), transparent),
        radial-gradient(circle 6px at 50% 85%, rgba(127, 255, 212, 0.5), transparent),
        radial-gradient(circle 3px at 75% 90%, rgba(64, 224, 208, 0.7), transparent),
        radial-gradient(circle 5px at 35% 75%, rgba(0, 116, 217, 0.5), transparent),
        radial-gradient(circle 4px at 85% 70%, rgba(127, 219, 255, 0.6), transparent);
    animation: oceanBubbles 12s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
    z-index: 5;
}

@keyframes oceanBubbles {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* ============================================
   霓虹东京背景 - 城市夜景
   ============================================ */
body[data-theme="tokyo"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(13, 13, 26, 1) 0%,
            rgba(26, 13, 31, 1) 50%,
            rgba(13, 13, 26, 1) 100%);
    pointer-events: none;
    z-index: -2;
}

/* 霓虹光柱效果 */
body[data-theme="tokyo"]::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 0%, rgba(255, 20, 147, 0.1) 10%, transparent 10%, transparent 20%, rgba(0, 191, 255, 0.1) 30%, transparent 30%, transparent 40%, rgba(218, 112, 214, 0.08) 50%, transparent 50%);
    background-size: 100% 100%;
    animation: tokyoNeon 3s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes tokyoNeon {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.6;
    }
}

/* 霓虹东京雨滴效果 */
body[data-theme="tokyo"] .container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, transparent 0%, rgba(255, 20, 147, 0.1) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 191, 255, 0.1) 100%);
    background-size: 3px 100%, 5px 100%;
    background-position: 20% 0, 65% 0;
    background-repeat: no-repeat;
    animation: tokyoRain 3s linear infinite;
    pointer-events: none;
    opacity: 0.4;
    z-index: 5;
}

@keyframes tokyoRain {
    0% {
        background-position: 20% -100%, 65% -100%;
    }

    100% {
        background-position: 20% 200%, 65% 200%;
    }
}

/* ============================================
   黑客帝国背景 - 数字代码雨
   ============================================ */
body[data-theme="matrix"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000000;
    pointer-events: none;
    z-index: -2;
}

/* CRT扫描线 */
body[data-theme="matrix"]::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.02) 2px,
            rgba(0, 255, 65, 0.02) 4px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: matrixScan 8s linear infinite;
}

@keyframes matrixScan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* 黑客帝国代码流粒子 */
body[data-theme="matrix"] .container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 65, 0.15) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 65, 0.12) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 65, 0.1) 100%);
    background-size: 2px 100%, 3px 100%, 2px 100%;
    background-position: 15% 0, 55% 0, 85% 0;
    background-repeat: no-repeat;
    animation: matrixCode 4s linear infinite;
    pointer-events: none;
    opacity: 0.6;
    z-index: 5;
}

@keyframes matrixCode {
    0% {
        background-position: 15% -100%, 55% -100%, 85% -100%;
        opacity: 0.6;
    }

    100% {
        background-position: 15% 200%, 55% 200%, 85% 200%;
        opacity: 0.3;
    }
}

/* ============================================
   金融终端背景 - 纯黑专业
   ============================================ */
body[data-theme="terminal"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000000;
    pointer-events: none;
    z-index: -2;
}

/* 数据网格线 */
body[data-theme="terminal"]::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 102, 0, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 102, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* 金融终端顶部状态条 */
body[data-theme="terminal"] .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6600 0%, #FF8833 50%, #FF6600 100%);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
    animation: terminalPulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes terminalPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* iOS装饰性玻璃元素 - 优化版 */
body[data-theme="ios"] .container::before {
    content: '';
    position: absolute;
    inset: 60px 60px auto auto;
    width: 320px;
    height: 320px;
    border-radius: 48px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(240, 245, 255, 0.4) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 32px 64px -16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(180, 200, 230, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
    animation: iosFloat1 15s ease-in-out infinite;
}

@keyframes iosFloat1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10px, -15px) rotate(3deg);
    }
}

body[data-theme="ios"] .container::after {
    content: '';
    position: absolute;
    inset: 120px auto auto 80px;
    width: 260px;
    height: 260px;
    border-radius: 40px;
    background:
        linear-gradient(135deg, rgba(250, 250, 255, 0.5) 0%, rgba(245, 240, 255, 0.35) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(200, 210, 240, 0.12);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
    animation: iosFloat2 18s ease-in-out infinite;
}

@keyframes iosFloat2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-12px, 10px) rotate(-2deg);
    }
}

/* 闪电粒子效果 */
body[data-theme="cool"] .container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, var(--neon-cyan), transparent),
        radial-gradient(2px 2px at 60% 70%, var(--neon-pink), transparent),
        radial-gradient(1px 1px at 50% 50%, var(--neon-purple), transparent),
        radial-gradient(1px 1px at 80% 10%, var(--neon-green), transparent),
        radial-gradient(2px 2px at 90% 60%, var(--neon-yellow), transparent),
        radial-gradient(1px 1px at 33% 90%, var(--neon-cyan), transparent),
        radial-gradient(2px 2px at 10% 80%, var(--neon-pink), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        background-position: 0% 0%;
        opacity: 0.6;
    }

    25% {
        background-position: 100% 25%;
        opacity: 0.8;
    }

    50% {
        background-position: 50% 100%;
        opacity: 0.4;
    }

    75% {
        background-position: 0% 75%;
        opacity: 0.7;
    }
}

/* ============================================
   全局样式
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Header
   ============================================ */
header {
    text-align: center;
    padding: 80px 32px 64px;
    margin: 32px 0 48px;
    background: var(--bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 炫酷模式Header特效 - 极致增强 */
body[data-theme="cool"] header {
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.5),
        0 0 100px rgba(255, 0, 136, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.4);
    animation: headerPulse 3s ease-in-out infinite;
    border: 2px solid rgba(0, 255, 255, 0.5);
}

@keyframes headerPulse {

    0%,
    100% {
        box-shadow:
            0 0 60px rgba(0, 255, 255, 0.5),
            0 0 100px rgba(255, 0, 136, 0.3);
    }

    50% {
        box-shadow:
            0 0 80px rgba(0, 255, 255, 0.8),
            0 0 120px rgba(255, 0, 136, 0.5);
    }
}

/* 多彩光线扫描 */
body[data-theme="cool"] header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--neon-cyan) 20%,
            var(--neon-purple) 40%,
            var(--neon-pink) 60%,
            var(--neon-green) 80%,
            transparent 100%);
    animation: rainbowScan 2s linear infinite;
    filter: blur(2px);
    box-shadow: 0 0 20px currentColor;
}

@keyframes rainbowScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

/* 边框霓虹动画 */
body[data-theme="cool"] header::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--neon-cyan),
            var(--neon-purple),
            var(--neon-pink),
            var(--neon-green),
            var(--neon-cyan));
    background-size: 400% 400%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 4s ease infinite;
    filter: blur(10px);
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

header h1 {
    font-size: 56px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

/* 标题超强特效 */
body[data-theme="cool"] header h1 {
    background: linear-gradient(135deg,
            var(--neon-cyan) 0%,
            var(--neon-purple) 25%,
            var(--neon-pink) 50%,
            var(--neon-green) 75%,
            var(--neon-cyan) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        rainbowText 3s linear infinite,
        textPulse 2s ease-in-out infinite,
        textFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 0, 136, 0.6));
}

body[data-theme="cs"] header {
    background: linear-gradient(145deg, rgba(20, 26, 36, 0.96), rgba(13, 17, 24, 0.96));
    border: 1px solid rgba(245, 130, 32, 0.28);
    box-shadow:
        0 18px 45px rgba(4, 6, 10, 0.6),
        inset 0 0 24px rgba(10, 14, 20, 0.45);
}

body[data-theme="cs"] header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(245, 130, 32, 0.8), transparent);
    box-shadow: 0 0 18px rgba(245, 130, 32, 0.5);
    opacity: 0.85;
}

body[data-theme="cs"] header::after {
    content: '';
    position: absolute;
    bottom: 18px;
    right: 24px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(245, 130, 32, 0.25);
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 24px rgba(245, 130, 32, 0.18);
    pointer-events: none;
}

body[data-theme="cs"] header h1 {
    background: linear-gradient(135deg, #ffd28a 0%, #f58220 60%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 18px rgba(245, 130, 32, 0.25);
}

body[data-theme="cs"] header p {
    color: rgba(233, 240, 255, 0.72);
    letter-spacing: 0.2px;
}

/* iOS 26 液态玻璃 Header - 悬浮式 */
body[data-theme="ios"] header {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(248, 252, 255, 0.28) 50%,
            rgba(255, 255, 255, 0.35) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 32px 80px -16px rgba(0, 0, 0, 0.1),
        0 16px 48px -12px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.75),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 2px rgba(200, 220, 250, 0.15);
    backdrop-filter: blur(100px) saturate(220%) brightness(105%);
    -webkit-backdrop-filter: blur(100px) saturate(220%) brightness(105%);
    margin: 48px 0 64px;
    position: relative;
    overflow: visible;
}

/* 玻璃反射光效 */
body[data-theme="ios"] header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 0%, rgba(240, 250, 255, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 40%);
    opacity: 0.8;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* 顶部高光线 */
body[data-theme="ios"] header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.95) 25%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.95) 75%,
            transparent 100%);
    border-radius: 0 0 100% 100%;
    filter: blur(1.5px);
    opacity: 0.9;
    pointer-events: none;
}

body[data-theme="ios"] header h1 {
    color: rgba(0, 0, 0, 0.92);
    position: relative;
    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

body[data-theme="ios"] header p {
    color: rgba(0, 0, 0, 0.68);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

@keyframes rainbowText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes textPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(255, 0, 136, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 1)) drop-shadow(0 0 60px rgba(255, 0, 136, 0.9));
    }
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

header p {
    font-size: 21px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.2px;
}

/* ============================================
   搜索区域
   ============================================ */
.search-section {
    margin-bottom: 48px;
}

body[data-theme="ios"] .search-section {
    margin-bottom: 56px;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.search-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

body[data-theme="cool"] .search-box {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

body[data-theme="cool"] .search-box:focus-within {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    border-color: var(--neon-cyan);
}

/* iOS 26 液态搜索框 - 悬浮式 */
body[data-theme="ios"] .search-box {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(250, 252, 255, 0.28) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 16px 48px -8px rgba(0, 0, 0, 0.08),
        0 8px 24px -6px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(200, 220, 250, 0.12);
    backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 聚焦时液态扩散效果 */
body[data-theme="ios"] .search-box:focus-within {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.48) 0%,
            rgba(245, 250, 255, 0.38) 100%);
    border-color: rgba(0, 122, 255, 0.6);
    box-shadow:
        0 24px 72px -12px rgba(0, 122, 255, 0.18),
        0 12px 36px -8px rgba(0, 122, 255, 0.12),
        0 0 0 3px rgba(0, 122, 255, 0.08),
        0 0 0 0.5px rgba(0, 122, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(0, 122, 255, 0.05);
    transform: translateY(-2px) scale(1.005);
    backdrop-filter: blur(100px) saturate(220%) brightness(108%);
    -webkit-backdrop-filter: blur(100px) saturate(220%) brightness(108%);
}

#itemSearch {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    background: var(--bg-elevated);
    color: var(--text-input);
    outline: none;
    font-weight: 400;
    transition: all 0.2s;
}

#itemSearch::placeholder {
    color: var(--text-tertiary);
}

#itemSearch:focus {
    background: var(--bg-elevated);
}

body[data-theme="light"] #itemSearch:focus {
    background: #F0F0F5;
}

/* iOS 26 液态输入框 */
body[data-theme="ios"] #itemSearch {
    background: rgba(255, 255, 255, 0.55);
    color: rgba(0, 0, 0, 0.92);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.03),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.9);
    border: 0.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    transition: all 0.3s ease;
}

body[data-theme="ios"] #itemSearch:focus {
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 0 0 2px rgba(0, 122, 255, 0.06),
        inset 0 1px 3px rgba(0, 122, 255, 0.04),
        inset 0 0 0 0.5px rgba(0, 122, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(0, 122, 255, 0.4);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
}

body[data-theme="ios"] #itemSearch::placeholder {
    color: rgba(0, 0, 0, 0.38);
}

#searchBtn {
    padding: 14px 32px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

#searchBtn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

#searchBtn:active {
    transform: scale(0.98);
}

/* iOS 26 液态按钮 - 悬浮玻璃 */
body[data-theme="ios"] #searchBtn {
    background:
        linear-gradient(135deg,
            rgba(0, 122, 255, 0.95) 0%,
            rgba(64, 156, 255, 0.92) 100%);
    box-shadow:
        0 16px 48px -8px rgba(0, 122, 255, 0.35),
        0 8px 24px -6px rgba(0, 122, 255, 0.25),
        0 0 0 0.5px rgba(255, 255, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(0, 80, 180, 0.15);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 8px rgba(0, 122, 255, 0.3);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body[data-theme="ios"] #searchBtn:hover {
    background:
        linear-gradient(135deg,
            rgba(0, 110, 230, 0.98) 0%,
            rgba(50, 140, 240, 0.95) 100%);
    box-shadow:
        0 24px 64px -10px rgba(0, 122, 255, 0.45),
        0 12px 32px -8px rgba(0, 122, 255, 0.35),
        0 0 0 0.5px rgba(255, 255, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 -1px 2px rgba(0, 80, 180, 0.18);
    transform: translateY(-2px) scale(1.01);
}

body[data-theme="ios"] #searchBtn:active {
    background:
        linear-gradient(135deg,
            rgba(0, 100, 210, 1) 0%,
            rgba(40, 130, 230, 0.98) 100%);
    transform: translateY(0) scale(0.99);
    box-shadow:
        0 8px 24px -6px rgba(0, 122, 255, 0.3),
        inset 0 2px 4px rgba(0, 60, 140, 0.25);
}

/* 炫酷模式按钮超强特效 */
body[data-theme="cool"] #searchBtn {
    background: linear-gradient(135deg,
            var(--neon-cyan) 0%,
            var(--neon-purple) 50%,
            var(--neon-pink) 100%);
    background-size: 200% 200%;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.8),
        0 0 60px rgba(204, 0, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation:
        buttonRainbow 3s linear infinite,
        buttonPulse 1.5s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

@keyframes buttonRainbow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.8),
            0 0 60px rgba(204, 0, 255, 0.6);
        transform: scale(1);
    }

    50% {
        box-shadow:
            0 0 40px rgba(0, 255, 255, 1),
            0 0 80px rgba(204, 0, 255, 0.9);
        transform: scale(1.02);
    }
}

/* 多重光泽扫过 */
body[data-theme="cool"] #searchBtn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: megaShine 2s linear infinite;
}

@keyframes megaShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* 能量波纹 */
body[data-theme="cool"] #searchBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 70%);
    transform: translate(-50%, -50%);
    animation: energyWave 2s ease-out infinite;
}

@keyframes energyWave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

body[data-theme="cool"] #searchBtn:hover {
    box-shadow:
        0 0 50px rgba(0, 255, 255, 1),
        0 0 100px rgba(204, 0, 255, 0.9);
    transform: scale(1.05) translateY(-2px);
}

body[data-theme="cs"] #searchBtn,
body[data-theme="cs"] #selectItemBtn {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.9), rgba(255, 200, 112, 0.9));
    border: 1px solid rgba(245, 130, 32, 0.45);
    color: #121722;
    box-shadow:
        0 10px 20px rgba(245, 130, 32, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

body[data-theme="cs"] #searchBtn:hover,
body[data-theme="cs"] #selectItemBtn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 28px rgba(245, 130, 32, 0.42),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

body[data-theme="cs"] #searchBtn:active,
body[data-theme="cs"] #selectItemBtn:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(245, 130, 32, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

body[data-theme="ios"] #selectItemBtn {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.95) 0%, rgba(64, 156, 255, 0.92) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow:
        0 16px 48px -8px rgba(0, 122, 255, 0.35),
        0 0 0 0.5px rgba(255, 255, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body[data-theme="ios"] #selectItemBtn:hover {
    background: linear-gradient(135deg, rgba(0, 110, 230, 0.98) 0%, rgba(50, 140, 240, 0.95) 100%);
    box-shadow:
        0 20px 60px -10px rgba(0, 122, 255, 0.45),
        0 0 0 0.5px rgba(255, 255, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* ============================================
   饰品选择器
   ============================================ */
.item-selector {
    max-width: 800px;
    margin: 24px auto 0;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

body[data-theme="cs"] .item-selector {
    background: linear-gradient(150deg, rgba(22, 28, 38, 0.94), rgba(14, 18, 26, 0.94));
    border: 1px solid rgba(245, 130, 32, 0.28);
    box-shadow:
        0 16px 32px rgba(4, 6, 10, 0.55),
        inset 0 0 24px rgba(10, 14, 20, 0.45);
}

.item-selector label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 15px;
}

/* iOS 26 液态选择器 */
body[data-theme="ios"] .item-selector {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(250, 252, 255, 0.28) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 16px 48px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(80px) saturate(200%) brightness(105%);
}

body[data-theme="ios"] .item-selector label {
    color: rgba(0, 0, 0, 0.75);
}

body[data-theme="ios"] #itemDropdown {
    background: rgba(255, 255, 255, 0.55);
    color: rgba(0, 0, 0, 0.92);
    border: 0.5px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.03),
        inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}

body[data-theme="ios"] #itemDropdown:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow:
        0 0 0 2px rgba(0, 122, 255, 0.06),
        inset 0 1px 3px rgba(0, 122, 255, 0.04),
        inset 0 -1px 0 rgba(255, 255, 255, 1);
}

#itemDropdown {
    width: calc(70% - 8px);
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 16px;
    background: var(--bg-elevated);
    color: var(--text-input);
    margin-right: 12px;
    outline: none;
    transition: all 0.2s;
}

#itemDropdown:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

body[data-theme="cs"] #itemDropdown {
    border-color: rgba(245, 130, 32, 0.35);
    background: linear-gradient(145deg, rgba(19, 25, 33, 0.97), rgba(13, 17, 25, 0.98));
    color: #f6f8fb;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

body[data-theme="cs"] #itemDropdown:focus {
    border-color: rgba(245, 130, 32, 0.8);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.25), inset 0 0 12px rgba(245, 130, 32, 0.15);
}

body[data-theme="cs"] #itemDropdown,
body[data-theme="cs"] #itemDropdown option {
    color: #f6f8fb;
    background-color: #1a212b;
}

@supports selector(select::-ms-value) {
    body[data-theme="cs"] #itemDropdown {
        color: #f6f8fb;
        background-color: #1a212b;
    }
}

#selectItemBtn {
    width: 30%;
    padding: 14px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#selectItemBtn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

#selectItemBtn:disabled {
    background: var(--bg-elevated);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* ============================================
   卡片布局
   ============================================ */
.results-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 48px;
}

body[data-theme="ios"] .results-section {
    gap: 24px;
}

.price-data-card,
.prediction-card,
.recommendations {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

.price-data-card:hover,
.prediction-card:hover,
.recommendations:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* 炫酷模式卡片超强特效 */
body[data-theme="cool"] .price-data-card,
body[data-theme="cool"] .prediction-card,
body[data-theme="cool"] .recommendations {
    border: 2px solid;
    border-image: linear-gradient(135deg,
            var(--neon-cyan),
            var(--neon-purple),
            var(--neon-pink),
            var(--neon-green)) 1;
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.4),
        0 0 80px rgba(204, 0, 255, 0.3),
        inset 0 0 40px rgba(0, 255, 255, 0.05);
    animation: cardGlow 4s ease-in-out infinite;
    position: relative;
}

@keyframes cardGlow {

    0%,
    100% {
        box-shadow:
            0 0 40px rgba(0, 255, 255, 0.4),
            0 0 80px rgba(204, 0, 255, 0.3);
    }

    50% {
        box-shadow:
            0 0 60px rgba(0, 255, 255, 0.6),
            0 0 100px rgba(204, 0, 255, 0.5);
    }
}

/* 卡片边框动画 */
body[data-theme="cool"] .price-data-card::before,
body[data-theme="cool"] .prediction-card::before,
body[data-theme="cool"] .recommendations::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--neon-cyan),
            var(--neon-purple),
            var(--neon-pink),
            var(--neon-green),
            var(--neon-cyan));
    background-size: 400% 400%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
    animation: borderFlow 6s linear infinite;
    filter: blur(8px);
}

@keyframes borderFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

body[data-theme="cool"] .price-data-card:hover,
body[data-theme="cool"] .prediction-card:hover,
body[data-theme="cool"] .recommendations:hover {
    box-shadow:
        0 0 60px rgba(0, 255, 255, 0.8),
        0 0 120px rgba(204, 0, 255, 0.6);
    transform: translateY(-8px) scale(1.02);
    border-image: linear-gradient(135deg,
            var(--neon-pink),
            var(--neon-cyan),
            var(--neon-green),
            var(--neon-purple)) 1;
}

/* CS战术模式卡片质感 */
body[data-theme="cs"] .price-data-card,
body[data-theme="cs"] .prediction-card,
body[data-theme="cs"] .recommendations {
    background: linear-gradient(150deg, rgba(26, 32, 42, 0.96), rgba(15, 19, 27, 0.98));
    border: 1px solid var(--cs-highlight);
    box-shadow:
        0 18px 32px rgba(4, 6, 10, 0.7),
        inset 0 0 32px rgba(10, 14, 20, 0.55);
    overflow: hidden;
}

body[data-theme="cs"] .price-data-card::before,
body[data-theme="cs"] .prediction-card::before,
body[data-theme="cs"] .recommendations::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 40%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(245, 130, 32, 0.28) 0%, transparent 65%);
    transform: rotate(18deg);
    opacity: 0.85;
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

body[data-theme="cs"] .price-data-card:hover,
body[data-theme="cs"] .prediction-card:hover,
body[data-theme="cs"] .recommendations:hover {
    border-color: var(--cs-highlight-strong);
    box-shadow:
        0 22px 42px rgba(4, 6, 10, 0.75),
        inset 0 0 32px rgba(245, 130, 32, 0.08);
    transform: translateY(-4px);
}

body[data-theme="cs"] .prediction-card::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(245, 130, 32, 0.08) 40%, rgba(255, 210, 138, 0.18) 60%, transparent 100%);
    opacity: 0.75;
    transform: skewX(-12deg);
    animation: csScan 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes csScan {
    0% {
        transform: translateX(-40%) skewX(-12deg);
        opacity: 0;
    }

    12% {
        opacity: 0.85;
    }

    40% {
        transform: translateX(220%) skewX(-12deg);
        opacity: 0.6;
    }

    100% {
        transform: translateX(220%) skewX(-12deg);
        opacity: 0;
    }
}

body[data-theme="cs"] .price-data-card>*,
body[data-theme="cs"] .prediction-card>*,
body[data-theme="cs"] .recommendations>* {
    position: relative;
    z-index: 1;
}

/* iOS 26 液态玻璃卡片 - 极致透明 + vibrancy */
body[data-theme="ios"] .price-data-card,
body[data-theme="ios"] .prediction-card,
body[data-theme="ios"] .recommendations {
    background:
        /* 极透明渐变 - 液态质感 */
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(250, 252, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.3) 100%);
    /* 极细边框 - 0.5px */
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    /* 多层景深阴影 */
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.08),
        0 8px 32px -8px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 0.95),
        inset 0 -1px 1px rgba(200, 220, 250, 0.1);
    /* 超强毛玻璃 + vibrancy */
    backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    /* 悬浮感 */
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

/* 玻璃光学反射边框 */
body[data-theme="ios"] .price-data-card::before,
body[data-theme="ios"] .prediction-card::before,
body[data-theme="ios"] .recommendations::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    /* 光学反射渐变 */
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(240, 250, 255, 0.2) 30%,
            transparent 50%,
            rgba(250, 240, 255, 0.2) 70%,
            rgba(255, 255, 255, 0.5) 100%);
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* 悬停时液态流动效果 */
body[data-theme="ios"] .price-data-card:hover,
body[data-theme="ios"] .prediction-card:hover,
body[data-theme="ios"] .recommendations:hover {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(250, 252, 255, 0.32) 50%,
            rgba(255, 255, 255, 0.38) 100%);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 28px 80px -12px rgba(0, 0, 0, 0.12),
        0 12px 48px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.85),
        inset 0 1px 2px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(200, 220, 250, 0.15);
    transform: translateY(-6px) scale(1.005);
    backdrop-filter: blur(100px) saturate(220%) brightness(108%);
    -webkit-backdrop-filter: blur(100px) saturate(220%) brightness(108%);
}

/* 顶部光泽高光 */
body[data-theme="ios"] .price-data-card::after,
body[data-theme="ios"] .prediction-card::after,
body[data-theme="ios"] .recommendations::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.95) 20%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.95) 80%,
            transparent 100%);
    border-radius: 0 0 100% 100%;
    filter: blur(1px);
    opacity: 0.85;
    pointer-events: none;
}

.price-data-card {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 32px;
}

.prediction-card {
    grid-column: 2;
    grid-row: 1;
    padding: 28px;
}

.recommendations {
    grid-column: 2;
    grid-row: 2;
    padding: 28px;
}

.price-data-card h2,
.prediction-card h2,
.recommendations h2 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

body[data-theme="cs"] .price-data-card h2,
body[data-theme="cs"] .prediction-card h2,
body[data-theme="cs"] .recommendations h2,
body[data-theme="cs"] .market-overview h2,
body[data-theme="cs"] .category-board h2 {
    position: relative;
    color: #ffd28a;
    letter-spacing: 0.6px;
    text-shadow: 0 6px 18px rgba(245, 130, 32, 0.35);
}

body[data-theme="cs"] .price-data-card h2::after,
body[data-theme="cs"] .prediction-card h2::after,
body[data-theme="cs"] .recommendations h2::after,
body[data-theme="cs"] .market-overview h2::after,
body[data-theme="cs"] .category-board h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 58px;
    height: 3px;
    background: linear-gradient(90deg, rgba(245, 130, 32, 0.9), rgba(255, 200, 112, 0.6));
    box-shadow: 0 0 12px rgba(245, 130, 32, 0.6);
    border-radius: 999px;
}

/* ============================================
   价格信息
   ============================================ */
.price-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.current-price,
.price-change {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-elevated);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.current-price:hover,
.price-change:hover {
    transform: scale(1.02);
}

body[data-theme="light"] .current-price:hover,
body[data-theme="light"] .price-change:hover {
    background: #F0F0F5;
}

body[data-theme="dark"] .current-price:hover,
body[data-theme="dark"] .price-change:hover {
    background: #3A3A3C;
}

/* 炫酷模式价格卡超强特效 */
body[data-theme="cool"] .current-price,
body[data-theme="cool"] .price-change {
    background:
        linear-gradient(135deg,
            rgba(0, 255, 255, 0.15) 0%,
            rgba(204, 0, 255, 0.15) 100%);
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    animation: priceCardPulse 2s ease-in-out infinite;
}

@keyframes priceCardPulse {

    0%,
    100% {
        border-color: rgba(0, 255, 255, 0.5);
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.4),
            inset 0 0 30px rgba(0, 255, 255, 0.1);
    }

    50% {
        border-color: rgba(255, 0, 136, 0.8);
        box-shadow:
            0 0 50px rgba(255, 0, 136, 0.6),
            inset 0 0 50px rgba(255, 0, 136, 0.2);
    }
}

/* CS战术模式价格卡 */
body[data-theme="cs"] .current-price,
body[data-theme="cs"] .price-change {
    background: linear-gradient(160deg, rgba(24, 31, 42, 0.92), rgba(16, 20, 27, 0.98));
    border: 1px solid var(--cs-highlight);
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.55),
        inset 0 0 24px rgba(245, 130, 32, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body[data-theme="cs"] .current-price::after,
body[data-theme="cs"] .price-change::after {
    content: '';
    position: absolute;
    inset: -40% 40% 40% -40%;
    background: radial-gradient(circle at center, rgba(245, 130, 32, 0.18) 0%, transparent 70%);
    opacity: 0.8;
    transform: rotate(18deg);
    pointer-events: none;
}

body[data-theme="cs"] .current-price:hover,
body[data-theme="cs"] .price-change:hover {
    border-color: var(--cs-highlight-strong);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.6),
        inset 0 0 24px rgba(245, 130, 32, 0.1);
}

/* iOS 26 液态价格卡片 - 极透明玻璃 */
body[data-theme="ios"] .current-price,
body[data-theme="ios"] .price-change {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(252, 254, 255, 0.35) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 12px 40px -8px rgba(0, 0, 0, 0.08),
        0 6px 20px -6px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(200, 220, 250, 0.12);
    backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 悬停时玻璃增亮 */
body[data-theme="ios"] .current-price:hover,
body[data-theme="ios"] .price-change:hover {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(250, 254, 255, 0.45) 100%);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.1),
        0 10px 32px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    transform: scale(1.02) translateY(-3px);
    backdrop-filter: blur(90px) saturate(220%) brightness(108%);
    -webkit-backdrop-filter: blur(90px) saturate(220%) brightness(108%);
}

/* 多层能量波纹 */
body[data-theme="cool"] .current-price::after,
body[data-theme="cool"] .price-change::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 0, 136, 0.3) 0%, transparent 50%);
    animation: megaPulse 3s ease-in-out infinite;
}

@keyframes megaPulse {

    0%,
    100% {
        transform: scale(0.7) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 1;
    }
}

/* 闪烁粒子 */
body[data-theme="cool"] .current-price::before,
body[data-theme="cool"] .price-change::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(1px 1px at 90% 60%, white, transparent);
    background-size: 100% 100%;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 40px;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
}

/* 炫酷模式价格数字超强发光 */
body[data-theme="cool"] .price {
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px rgba(0, 255, 255, 1),
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 80px rgba(0, 255, 255, 0.4),
        0 0 120px rgba(0, 255, 255, 0.2);
    animation:
        megaNumberGlow 2s ease-in-out infinite,
        numberFloat 3s ease-in-out infinite;
    filter: brightness(1.2);
}

@keyframes megaNumberGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(0, 255, 255, 1),
            0 0 20px rgba(0, 255, 255, 0.8),
            0 0 40px rgba(0, 255, 255, 0.6);
    }

    50% {
        text-shadow:
            0 0 20px rgba(0, 255, 255, 1),
            0 0 40px rgba(0, 255, 255, 1),
            0 0 80px rgba(0, 255, 255, 0.8),
            0 0 120px rgba(204, 0, 255, 0.6);
    }
}

@keyframes numberFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.change {
    font-size: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.change.positive {
    color: var(--success-green);
}

.change.negative {
    color: var(--danger-red);
}

/* 涨跌超强发光特效 */
body[data-theme="cool"] .change.positive {
    color: var(--neon-green);
    text-shadow:
        0 0 10px rgba(0, 255, 102, 1),
        0 0 20px rgba(0, 255, 102, 0.8),
        0 0 40px rgba(0, 255, 102, 0.6),
        0 0 80px rgba(0, 255, 102, 0.4);
    animation:
        greenGlow 1.5s ease-in-out infinite,
        numberBounce 2s ease-in-out infinite;
}

body[data-theme="cool"] .change.negative {
    color: var(--neon-pink);
    text-shadow:
        0 0 10px rgba(255, 0, 136, 1),
        0 0 20px rgba(255, 0, 136, 0.8),
        0 0 40px rgba(255, 0, 136, 0.6),
        0 0 80px rgba(255, 0, 136, 0.4);
    animation:
        redGlow 1.5s ease-in-out infinite,
        numberBounce 2s ease-in-out infinite;
}

@keyframes greenGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(0, 255, 102, 1),
            0 0 20px rgba(0, 255, 102, 0.8);
        filter: brightness(1);
    }

    50% {
        text-shadow:
            0 0 20px rgba(0, 255, 102, 1),
            0 0 40px rgba(0, 255, 102, 1),
            0 0 80px rgba(0, 255, 102, 0.8);
        filter: brightness(1.3);
    }
}

@keyframes redGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(255, 0, 136, 1),
            0 0 20px rgba(255, 0, 136, 0.8);
        filter: brightness(1);
    }

    50% {
        text-shadow:
            0 0 20px rgba(255, 0, 136, 1),
            0 0 40px rgba(255, 0, 136, 1),
            0 0 80px rgba(255, 0, 136, 0.8);
        filter: brightness(1.3);
    }
}

@keyframes numberBounce {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    25% {
        transform: scale(1.1) translateY(-5px);
    }

    75% {
        transform: scale(0.95) translateY(2px);
    }
}

.change.positive::before {
    content: '▲';
    font-size: 20px;
}

.change.negative::before {
    content: '▼';
    font-size: 20px;
}

/* ============================================
   图表样式
   ============================================ */
.price-chart {
    margin-top: 28px;
}

.metric-section {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-header {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

body[data-theme="ios"] .metric-grid {
    gap: 20px;
}

.market-overview {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body[data-theme="ios"] .market-overview,
body[data-theme="ios"] .category-board {
    gap: 24px;
}

body[data-theme="ios"] .market-overview,
body[data-theme="ios"] .category-board {
    padding: 6px 0;
}

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.overview-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

body[data-theme="ios"] .overview-header h2,
body[data-theme="ios"] .board-header h2 {
    color: rgba(0, 0, 0, 0.88);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.overview-update {
    font-size: 13px;
    color: var(--text-tertiary);
}

body[data-theme="ios"] .overview-update {
    color: rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.overview-message {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.category-board {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.board-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.board-note {
    font-size: 13px;
    color: var(--text-tertiary);
}

body[data-theme="ios"] .board-note {
    color: rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.board-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

body[data-theme="ios"] .board-subtitle {
    color: rgba(0, 0, 0, 0.7);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.board-group-section,
.board-detail-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.board-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.board-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.board-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.board-change {
    font-size: 16px;
    font-weight: 600;
}

.board-change.positive {
    color: var(--success-green);
}

.board-change.negative {
    color: var(--danger-red);
}

.board-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.board-meta span {
    display: flex;
    justify-content: space-between;
}

.board-strength {
    font-size: 12px;
    color: var(--text-tertiary);
}

.board-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 122, 255, 0.15);
}

.metric-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 108px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value.positive {
    color: var(--success-green);
}

.metric-value.negative {
    color: var(--danger-red);
}

.metric-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: auto;
}

body[data-theme="cool"] .metric-card {
    background: rgba(21, 21, 48, 0.85);
    border-color: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
}

body[data-theme="cool"] .metric-card:hover {
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.12);
}

body[data-theme="cool"] .metric-value {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

body[data-theme="cool"] .overview-message {
    background: rgba(21, 21, 48, 0.85);
    border-color: rgba(0, 255, 255, 0.12);
    color: var(--text-secondary);
}

body[data-theme="cool"] .board-card {
    background: rgba(21, 21, 48, 0.85);
    border-color: rgba(0, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
}

body[data-theme="cool"] .board-card:hover {
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.15);
}

body[data-theme="cool"] .board-tag {
    background: rgba(0, 255, 255, 0.08);
    color: var(--neon-cyan);
    border-color: rgba(0, 255, 255, 0.2);
}

body[data-theme="cool"] .metric-value.positive {
    color: var(--neon-green);
}

body[data-theme="cool"] .metric-value.negative {
    color: var(--neon-pink);
}

body[data-theme="cs"] .metric-card {
    background: linear-gradient(150deg, rgba(28, 34, 45, 0.95), rgba(16, 21, 29, 0.96));
    border-color: var(--cs-highlight);
    box-shadow:
        0 12px 24px rgba(4, 6, 10, 0.6),
        inset 0 0 18px rgba(10, 14, 20, 0.4);
}

body[data-theme="cs"] .metric-card:hover {
    box-shadow:
        0 16px 30px rgba(4, 6, 10, 0.7),
        inset 0 0 22px rgba(245, 130, 32, 0.08);
}

body[data-theme="cs"] .metric-value {
    color: #FFC066;
    text-shadow: 0 0 8px rgba(245, 130, 32, 0.35);
}

body[data-theme="cs"] .metric-value.positive {
    color: #5ee856;
    text-shadow: 0 0 6px rgba(94, 232, 86, 0.3);
}

body[data-theme="cs"] .metric-value.negative {
    color: #ff6b6d;
    text-shadow: 0 0 6px rgba(255, 107, 109, 0.25);
}

body[data-theme="cs"] .overview-message {
    background: linear-gradient(145deg, rgba(23, 29, 39, 0.92), rgba(17, 21, 29, 0.92));
    border-color: rgba(245, 130, 32, 0.25);
    color: var(--text-secondary);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.35);
}

body[data-theme="cs"] .board-card {
    background: linear-gradient(145deg, rgba(23, 30, 40, 0.95), rgba(15, 19, 27, 0.95));
    border-color: rgba(245, 130, 32, 0.22);
    box-shadow:
        0 14px 28px rgba(4, 6, 10, 0.6),
        inset 0 0 18px rgba(10, 14, 20, 0.4);
}

body[data-theme="cs"] .board-card:hover {
    box-shadow:
        0 18px 34px rgba(4, 6, 10, 0.68),
        inset 0 0 20px rgba(245, 130, 32, 0.08);
    border-color: rgba(245, 130, 32, 0.35);
}

body[data-theme="cs"] .board-tag {
    background: rgba(245, 130, 32, 0.18);
    border-color: rgba(245, 130, 32, 0.35);
    color: #FFC066;
}

/* iOS 26 液态小卡片 - 轻盈玻璃 */
body[data-theme="ios"] .metric-card {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(252, 254, 255, 0.32) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 12px 40px -8px rgba(0, 0, 0, 0.08),
        0 6px 20px -6px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(200, 220, 250, 0.1);
    backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body[data-theme="ios"] .metric-card:hover {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.52) 0%,
            rgba(250, 254, 255, 0.42) 100%);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 16px 52px -10px rgba(0, 0, 0, 0.1),
        0 8px 28px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.01);
    backdrop-filter: blur(85px) saturate(220%) brightness(108%);
    -webkit-backdrop-filter: blur(85px) saturate(220%) brightness(108%);
}

body[data-theme="ios"] .metric-value {
    color: rgba(0, 0, 0, 0.92);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

body[data-theme="ios"] .overview-message,
body[data-theme="ios"] .board-card {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(252, 254, 255, 0.32) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 12px 40px -8px rgba(0, 0, 0, 0.08),
        0 6px 20px -6px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body[data-theme="ios"] .board-card:hover {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.52) 0%,
            rgba(250, 254, 255, 0.42) 100%);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 16px 52px -10px rgba(0, 0, 0, 0.1),
        0 8px 28px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

/* 液态标签 - 玻璃徽章 */
body[data-theme="ios"] .board-tag {
    background:
        linear-gradient(135deg,
            rgba(0, 122, 255, 0.18) 0%,
            rgba(64, 156, 255, 0.15) 100%);
    border: 0.5px solid rgba(0, 122, 255, 0.45);
    color: rgb(0, 122, 255);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow:
        0 4px 12px rgba(0, 122, 255, 0.12),
        0 0 0 0.5px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 8px rgba(0, 122, 255, 0.2);
}

/* ============================================
   预测按钮
   ============================================ */
.predict-button {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.predict-button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.predict-button:active {
    transform: scale(0.98);
}

.prediction-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    min-width: 126px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 71, 71, 0.35);
    background: var(--bg-elevated);
    color: #ff4d4f;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.cancel-button:hover {
    color: #ff1f28;
    border-color: rgba(255, 71, 71, 0.6);
    background: linear-gradient(145deg, rgba(255, 240, 240, 0.85), rgba(255, 230, 230, 0.86));
    box-shadow: var(--shadow-md);
}

.cancel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cancel-button.armed {
    color: #FF9500;
    border-color: rgba(255, 149, 0, 0.6);
    background: rgba(255, 214, 10, 0.12);
}

body[data-theme="cs"] .predict-button {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.95) 0%, rgba(252, 211, 77, 0.95) 100%);
    color: #11141B;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow:
        0 10px 24px rgba(245, 130, 32, 0.35),
        inset 0 -3px 0 rgba(0, 0, 0, 0.35);
}

body[data-theme="cs"] .predict-button:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 16px 30px rgba(245, 130, 32, 0.45),
        inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}

body[data-theme="cs"] .predict-button:active {
    transform: translateY(1px) scale(0.99);
    box-shadow:
        0 6px 18px rgba(245, 130, 32, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body[data-theme="cs"] .cancel-button {
    border: 1px solid rgba(245, 130, 32, 0.45);
    background: linear-gradient(145deg, rgba(27, 34, 44, 0.96), rgba(16, 21, 30, 0.95));
    color: #F9A44A;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.45),
        inset 0 0 16px rgba(245, 130, 32, 0.08);
}

body[data-theme="cs"] .cancel-button:hover {
    color: #FFC069;
    border-color: rgba(245, 130, 32, 0.65);
    background: linear-gradient(145deg, rgba(30, 38, 49, 0.98), rgba(19, 24, 32, 0.98));
}

body[data-theme="cs"] .cancel-button.armed {
    color: #FFCF5A;
    border-color: rgba(255, 214, 10, 0.6);
    background: rgba(255, 173, 20, 0.12);
}

body[data-theme="ios"] .predict-button {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.92), rgba(88, 172, 255, 0.92));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 26px 52px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body[data-theme="ios"] .predict-button:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 32px 60px rgba(0, 122, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body[data-theme="ios"] .predict-button:active {
    transform: translateY(1px) scale(0.99);
}

body[data-theme="ios"] .cancel-button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.35);
    color: rgba(0, 122, 255, 0.85);
    box-shadow:
        0 16px 32px rgba(40, 60, 110, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body[data-theme="ios"] .cancel-button:hover {
    color: rgba(0, 122, 255, 0.95);
    box-shadow:
        0 20px 40px rgba(40, 60, 110, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-theme="ios"] .cancel-button.armed {
    color: rgba(255, 69, 58, 0.9);
    border-color: rgba(255, 69, 58, 0.45);
    background: rgba(255, 255, 255, 0.48);
}

body[data-theme="cool"] .cancel-button {
    border-color: rgba(255, 71, 71, 0.35);
    background: rgba(10, 18, 46, 0.9);
    box-shadow:
        0 0 12px rgba(255, 59, 59, 0.25),
        inset 0 0 12px rgba(255, 59, 59, 0.08);
}

body[data-theme="cool"] .cancel-button:hover {
    color: #ff5c5c;
    border-color: rgba(255, 99, 130, 0.7);
    background: linear-gradient(135deg, rgba(60, 6, 58, 0.9), rgba(90, 8, 64, 0.92));
}

body[data-theme="cool"] .cancel-button.armed {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.6);
    background: rgba(255, 214, 10, 0.08);
}

body[data-theme="ios"] .predict-button {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.92), rgba(88, 172, 255, 0.92));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 26px 52px rgba(0, 122, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body[data-theme="ios"] .predict-button:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 32px 60px rgba(0, 122, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body[data-theme="ios"] .predict-button:active {
    transform: translateY(1px) scale(0.99);
}

body[data-theme="ios"] .cancel-button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.35);
    color: rgba(0, 122, 255, 0.85);
    box-shadow:
        0 16px 32px rgba(40, 60, 110, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

body[data-theme="ios"] .cancel-button:hover {
    color: rgba(0, 122, 255, 0.95);
    box-shadow:
        0 20px 40px rgba(40, 60, 110, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body[data-theme="ios"] .cancel-button.armed {
    color: rgba(255, 69, 58, 0.9);
    border-color: rgba(255, 69, 58, 0.45);
    background: rgba(255, 255, 255, 0.48);
}

/* 炫酷模式按钮 */
body[data-theme="cool"] .predict-button {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

body[data-theme="cool"] .predict-button:hover {
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.8);
}

/* ============================================
   加载动画
   ============================================ */
.loading {
    text-align: center;
    padding: 48px;
}

.loading-tip {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

body[data-theme="ios"] .loading-tip {
    color: rgba(0, 0, 0, 0.62);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

body[data-theme="cool"] .spinner {
    border: 3px solid rgba(0, 217, 255, 0.2);
    border-top: 3px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

body[data-theme="cs"] .spinner {
    border: 3px solid rgba(18, 25, 34, 0.85);
    border-top: 3px solid rgba(245, 130, 32, 0.85);
    box-shadow:
        0 0 14px rgba(245, 130, 32, 0.4),
        0 0 28px rgba(18, 25, 34, 0.9);
}

/* iOS 26 液态Spinner */
body[data-theme="ios"] .spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgb(0, 122, 255);
    box-shadow:
        0 0 24px rgba(0, 122, 255, 0.3),
        0 0 48px rgba(0, 122, 255, 0.15);
    backdrop-filter: blur(20px);
}

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

.loading-progress {
    margin-top: 20px;
    text-align: left;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 12%;
    min-width: 6%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-dark));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: width 0.4s ease, opacity 0.4s ease;
    position: relative;
    overflow: visible;
}

.progress-text {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

body[data-theme="cool"] .progress-track {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.25);
}

body[data-theme="cool"] .progress-bar {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.55);
}

body[data-theme="cool"] .progress-text {
    color: var(--text-secondary);
}

body[data-theme="cs"] .progress-track {
    background: rgba(19, 25, 33, 0.88);
    border-color: rgba(245, 130, 32, 0.35);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

body[data-theme="cs"] .progress-bar {
    background: linear-gradient(90deg, rgba(245, 130, 32, 0.95), rgba(255, 200, 112, 0.95));
    box-shadow:
        0 2px 10px rgba(245, 130, 32, 0.55),
        0 0 16px rgba(245, 130, 32, 0.45);
}

body[data-theme="cs"] .progress-text {
    color: rgba(255, 200, 112, 0.96);
    letter-spacing: 0.3px;
}

body[data-theme="cs"] .progress-bar::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: repeating-linear-gradient(90deg,
            rgba(255, 231, 176, 0.4) 0px,
            rgba(255, 231, 176, 0.4) 12px,
            rgba(245, 130, 32, 0.2) 12px,
            rgba(245, 130, 32, 0.2) 24px);
    opacity: 0.45;
    border-radius: 999px;
    animation: csProgressScan 1.4s linear infinite;
    pointer-events: none;
}

body[data-theme="cs"] .progress-bar::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe3a0 0%, #f58220 55%, rgba(245, 130, 32, 0.05) 90%);
    box-shadow:
        0 0 12px rgba(245, 130, 32, 0.65),
        0 0 24px rgba(245, 130, 32, 0.45);
    transform: translateY(-50%);
    animation: csProgressBullet 0.8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes csProgressScan {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(24px);
    }
}

@keyframes csProgressBullet {
    0% {
        transform: translateY(-50%) scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-50%) scale(1.05);
        opacity: 1;
    }
}

/* ============================================
   预测结果
   ============================================ */
.prediction-result {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 24px;
    margin: 20px auto 0;
    line-height: 1.7;
    white-space: pre-wrap;
    font-size: 15px;
    max-height: 500px;
    min-height: 300px;
    overflow-y: auto;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.prediction-text {
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 15px;
}

.prediction-summary-card {
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    margin-bottom: 18px;
}

.prediction-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-mode {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(100, 200, 255, 0.12);
    color: #64c8ff;
}

.summary-text {
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.key-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.key-metric {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

.metric-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}

.risk-flag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.risk-flag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(100, 200, 255, 0.18);
    color: #64c8ff;
}

.risk-flag.risk-high {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

.risk-flag.risk-medium {
    background: rgba(255, 171, 64, 0.18);
    color: #ffab40;
}

.risk-flag.risk-low {
    background: rgba(100, 200, 255, 0.18);
    color: #64c8ff;
}

.data-note-block {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--border-light);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 12px;
}

.data-note-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.data-note-block ul {
    margin: 0;
    padding-left: 16px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.prediction-preview {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary-blue);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.prediction-actions button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.prediction-toast {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    background: rgba(100, 200, 255, 0.18);
    color: #64c8ff;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.prediction-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.prediction-toast.warning {
    background: rgba(255, 171, 64, 0.2);
    color: #ffab40;
}

.quality-notice {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-primary);
}

body[data-theme="cs"] .quality-notice {
    background: rgba(245, 130, 32, 0.14);
    border-color: rgba(245, 130, 32, 0.35);
    box-shadow: inset 0 0 18px rgba(10, 14, 20, 0.4);
}

body[data-theme="cs"] .risk-notice {
    background: linear-gradient(150deg, rgba(21, 27, 36, 0.92), rgba(13, 18, 26, 0.92));
    border: 1px solid rgba(245, 130, 32, 0.25);
    color: rgba(233, 240, 255, 0.85);
    box-shadow: inset 0 0 18px rgba(10, 14, 20, 0.35);
}

/* iOS 26 液态提示框 */
body[data-theme="ios"] .quality-notice {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 250, 240, 0.35) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.78);
    box-shadow:
        0 12px 40px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 200, 100, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(70px) saturate(200%) brightness(105%);
}

body[data-theme="ios"] .risk-notice {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(245, 250, 255, 0.32) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.8);
    box-shadow:
        0 12px 40px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(0, 122, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(70px) saturate(200%) brightness(105%);
}

.quality-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.quality-mode {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.quality-detail,
.quality-hint {
    color: var(--text-secondary);
    font-size: 13px;
}

.quality-hint {
    margin-top: 4px;
}

.risk-notice {
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.risk-notice .risk-list {
    margin: 6px 0 0 18px;
    padding: 0;
    list-style: disc;
    font-weight: 400;
    color: var(--text-secondary);
}

body[data-theme="cool"] .prediction-result {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--border-medium);
}

body[data-theme="cs"] .prediction-result {
    background: linear-gradient(160deg, rgba(23, 29, 39, 0.92), rgba(15, 20, 28, 0.94));
    border-color: rgba(245, 130, 32, 0.25);
    box-shadow:
        inset 0 0 24px rgba(10, 14, 20, 0.5),
        0 18px 40px rgba(4, 6, 10, 0.55);
}

/* iOS 26 液态预测结果 */
body[data-theme="ios"] .prediction-result {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(250, 252, 255, 0.28) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.85);
    box-shadow:
        0 16px 48px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.7),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(80px) saturate(200%) brightness(105%);
}

.prediction-result::-webkit-scrollbar {
    width: 8px;
}

.prediction-result::-webkit-scrollbar-track {
    background: transparent;
}

.prediction-result::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

body[data-theme="cool"] .prediction-result::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
}

.prediction-result::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   技术分析面板
   ============================================ */
.tech-indicators-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}

.tech-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tech-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-score {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(100, 200, 255, 0.15);
    color: #64c8ff;
}

.tech-score.bullish {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.tech-score.bearish {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

.tech-score.neutral {
    background: rgba(255, 171, 64, 0.15);
    color: #ffab40;
}

/* 综合信号条 */
.tech-composite-signal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin-bottom: 10px;
}

.signal-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.signal-bar-wrapper {
    flex: 1;
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}


.signal-bar-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -2px;
    width: 2px;
    height: calc(100% + 4px);
    background: rgba(255, 255, 255, 0.3);
}

.signal-bar {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.signal-bar.bullish {
    background: linear-gradient(90deg, rgba(52, 199, 89, 0.3), #34c759);
}

.signal-bar.bearish {
    background: linear-gradient(270deg, rgba(255, 82, 82, 0.3), #ff5252);
}

.signal-bar.neutral {
    background: linear-gradient(90deg, rgba(255, 171, 64, 0.3), #ffab40);
}

.signal-value {
    font-size: 12px;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

.signal-value.bullish {
    color: #34c759;
}

.signal-value.bearish {
    color: #ff5252;
}

.signal-value.neutral {
    color: #ffab40;
}

.signal-level {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 56px;
}

.signal-level.bullish {
    color: #34c759;
}

.signal-level.bearish {
    color: #ff5252;
}

.signal-level.neutral {
    color: #ffab40;
}

/* 结论 - 醒目 */
.tech-conclusion {
    font-size: 13px;
    color: var(--text-primary);
    padding: 8px 12px;
    background: rgba(100, 200, 255, 0.06);
    border-left: 2px solid var(--primary-blue);
    border-radius: 6px;
    margin-bottom: 12px;
}

/* 指标网格 - 横向排列，自动换行 */
.tech-indicators-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

/* 指标卡片 - 横向紧凑，标签和值同行 */
.tech-indicator-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s ease;
}

.tech-indicator-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tech-indicator-card.bullish {
    border-color: rgba(52, 199, 89, 0.3);
    background: rgba(52, 199, 89, 0.08);
}

.tech-indicator-card.bearish {
    border-color: rgba(255, 82, 82, 0.3);
    background: rgba(255, 82, 82, 0.08);
}

.tech-indicator-card.neutral {
    border-color: rgba(255, 171, 64, 0.2);
}

.indicator-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.indicator-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.tech-indicator-card.bullish .indicator-value {
    color: #34c759;
}

.tech-indicator-card.bearish .indicator-value {
    color: #ff5252;
}

.indicator-hint {
    display: none;
    /* 隐藏hint节省空间 */
}

/* 多空信号列表 */
.tech-signals-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.signals-group {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
}

.signals-group.bullish {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.signals-group.bearish {
    background: rgba(255, 82, 82, 0.12);
    color: #ff5252;
}

/* iOS 主题 */
body[data-theme="ios"] .tech-indicators-panel {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.40) 0%,
            rgba(250, 252, 255, 0.30) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 24px -4px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
}

body[data-theme="ios"] .tech-panel-title,
body[data-theme="ios"] .indicator-value,
body[data-theme="ios"] .tech-conclusion {
    color: rgba(0, 0, 0, 0.85);
}

body[data-theme="ios"] .tech-composite-signal {
    background: rgba(0, 0, 0, 0.04);
}

/* CS主题 */
body[data-theme="cs"] .tech-indicators-panel {
    background: linear-gradient(160deg, rgba(23, 29, 39, 0.92), rgba(15, 20, 28, 0.94));
    border-color: rgba(245, 130, 32, 0.2);
    box-shadow:
        inset 0 0 12px rgba(10, 14, 20, 0.35),
        0 8px 24px rgba(4, 6, 10, 0.4);
}

body[data-theme="cs"] .tech-conclusion {
    background: rgba(245, 130, 32, 0.08);
    border-left-color: rgba(245, 130, 32, 0.7);
}

/* Cool主题 */
body[data-theme="cool"] .tech-indicators-panel {
    background: rgba(0, 217, 255, 0.04);
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.1);
}

/* ============================================
   浏览历史
   ============================================ */
.section-note {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    font-style: italic;
}

body[data-theme="ios"] .section-note {
    color: rgba(0, 0, 0, 0.58);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* ============================================
   页脚
   ============================================ */
footer {
    text-align: center;
    margin-top: 64px;
    padding: 32px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 48px;
    transition: all 0.3s;
}

/* iOS 26 液态Footer */
body[data-theme="ios"] footer {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(250, 252, 255, 0.25) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 16px 48px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="ios"] footer p:first-child {
    color: rgba(0, 0, 0, 0.85);
}

body[data-theme="cool"] footer {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

footer p {
    margin-bottom: 8px;
}

footer p:first-child {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* ============================================
   多普勒选择器
   ============================================ */
.doppler-selector {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doppler-selector label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

#dopplerStyleDropdown {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-input);
    outline: none;
    font-size: 14px;
    transition: all 0.2s;
}

#dopplerStyleDropdown:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* ============================================
   全局滚动条
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

body[data-theme="cool"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   蒸汽波 Header 和卡片样式
   ============================================ */
body[data-theme="vaporwave"] header {
    background: linear-gradient(135deg, rgba(255, 110, 199, 0.2) 0%, rgba(124, 58, 237, 0.25) 100%);
    border: 2px solid rgba(255, 16, 240, 0.5);
    box-shadow:
        0 0 40px rgba(255, 16, 240, 0.5),
        inset 0 0 30px rgba(255, 110, 199, 0.2);
}

body[data-theme="vaporwave"] header h1 {
    background: linear-gradient(135deg, #FF6EC7 0%, #7C3AED 50%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 16, 240, 0.8));
    animation: vaporwaveTitle 3s linear infinite;
}

@keyframes vaporwaveTitle {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 16, 240, 0.8));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.9));
    }
}

body[data-theme="vaporwave"] .price-data-card,
body[data-theme="vaporwave"] .prediction-card,
body[data-theme="vaporwave"] .recommendations {
    background: linear-gradient(135deg, rgba(45, 27, 78, 0.9) 0%, rgba(36, 14, 61, 0.95) 100%);
    border: 2px solid rgba(255, 16, 240, 0.4);
    box-shadow:
        0 0 30px rgba(255, 16, 240, 0.3),
        inset 0 0 20px rgba(124, 58, 237, 0.1);
}

body[data-theme="vaporwave"] .metric-value.positive {
    color: #00FFAA;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.8);
}

body[data-theme="vaporwave"] .metric-value.negative {
    color: #FF006E;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.8);
}

/* ============================================
   赛博武士 Header 和卡片样式
   ============================================ */
body[data-theme="samurai"] header {
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.95) 0%, rgba(20, 10, 10, 0.9) 100%);
    border: 2px solid rgba(220, 20, 60, 0.5);
    box-shadow:
        0 0 40px rgba(220, 20, 60, 0.4),
        inset 0 0 30px rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

body[data-theme="samurai"] header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.9), transparent);
    animation: samuraiScanTop 3s ease-in-out infinite;
}

@keyframes samuraiScanTop {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

body[data-theme="samurai"] header h1 {
    color: #DC143C;
    text-shadow:
        0 0 20px rgba(220, 20, 60, 0.8),
        0 0 40px rgba(220, 20, 60, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

body[data-theme="samurai"] .price-data-card,
body[data-theme="samurai"] .prediction-card,
body[data-theme="samurai"] .recommendations {
    background: linear-gradient(135deg, rgba(26, 5, 5, 0.9) 0%, rgba(20, 10, 10, 0.92) 100%);
    border: 1px solid rgba(220, 20, 60, 0.5);
    box-shadow:
        0 0 30px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(139, 0, 0, 0.2);
}

body[data-theme="samurai"] .metric-value.positive {
    color: #00FF88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

body[data-theme="samurai"] .metric-value.negative {
    color: #FF0033;
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.8);
}

/* ============================================
   深海探索 Header 和卡片样式
   ============================================ */
body[data-theme="ocean"] header {
    background: linear-gradient(135deg, rgba(0, 63, 111, 0.85) 0%, rgba(0, 79, 143, 0.8) 100%);
    border: 2px solid rgba(64, 224, 208, 0.4);
    box-shadow:
        0 0 40px rgba(64, 224, 208, 0.3),
        inset 0 0 30px rgba(0, 116, 217, 0.2);
}

body[data-theme="ocean"] header h1 {
    color: #40E0D0;
    text-shadow:
        0 0 20px rgba(64, 224, 208, 0.8),
        0 0 40px rgba(64, 224, 208, 0.4);
}

body[data-theme="ocean"] .price-data-card,
body[data-theme="ocean"] .prediction-card,
body[data-theme="ocean"] .recommendations {
    background: linear-gradient(135deg, rgba(0, 63, 111, 0.8) 0%, rgba(0, 79, 143, 0.75) 100%);
    border: 2px solid rgba(64, 224, 208, 0.3);
    box-shadow:
        0 0 30px rgba(64, 224, 208, 0.2),
        inset 0 0 20px rgba(0, 116, 217, 0.15);
}

body[data-theme="ocean"] .metric-value {
    color: #7FDBFF;
    text-shadow: 0 0 10px rgba(127, 219, 255, 0.5);
}

/* ============================================
   霓虹东京 Header 和卡片样式
   ============================================ */
body[data-theme="tokyo"] header {
    background: linear-gradient(135deg, rgba(29, 29, 58, 0.9) 0%, rgba(37, 37, 74, 0.85) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #FF1493 0%, #00BFFF 50%, #DA70D6 100%) 1;
    box-shadow:
        0 0 40px rgba(255, 20, 147, 0.4),
        0 0 60px rgba(0, 191, 255, 0.3);
}

body[data-theme="tokyo"] header h1 {
    background: linear-gradient(135deg, #FF1493 0%, #00BFFF 50%, #DA70D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
}

body[data-theme="tokyo"] .price-data-card,
body[data-theme="tokyo"] .prediction-card,
body[data-theme="tokyo"] .recommendations {
    background: linear-gradient(135deg, rgba(29, 29, 58, 0.85) 0%, rgba(37, 37, 74, 0.8) 100%);
    border: 2px solid rgba(255, 20, 147, 0.4);
    box-shadow:
        0 0 30px rgba(255, 20, 147, 0.3),
        0 0 50px rgba(0, 191, 255, 0.2);
}

/* ============================================
   黑客帝国 Header 和卡片样式
   ============================================ */
body[data-theme="matrix"] header {
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid rgba(0, 255, 65, 0.5);
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.4),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
}

body[data-theme="matrix"] header h1 {
    color: #00FF41;
    text-shadow:
        0 0 20px rgba(0, 255, 65, 1),
        0 0 40px rgba(0, 255, 65, 0.6);
    animation: matrixGlow 2s ease-in-out infinite;
}

@keyframes matrixGlow {

    0%,
    100% {
        text-shadow:
            0 0 20px rgba(0, 255, 65, 1),
            0 0 40px rgba(0, 255, 65, 0.6);
    }

    50% {
        text-shadow:
            0 0 30px rgba(0, 255, 65, 1),
            0 0 60px rgba(0, 255, 65, 0.8);
    }
}

body[data-theme="matrix"] .price-data-card,
body[data-theme="matrix"] .prediction-card,
body[data-theme="matrix"] .recommendations {
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgba(0, 255, 65, 0.4);
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
}

body[data-theme="matrix"] .metric-value {
    color: #00FF41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
    font-family: 'Courier New', monospace;
}

/* ============================================
   金融终端 Header 和卡片样式
   ============================================ */
body[data-theme="terminal"] header {
    background: #0A0A0A;
    border: 1px solid rgba(255, 102, 0, 0.4);
    border-top: 3px solid #FF6600;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 102, 0, 0.2);
}

body[data-theme="terminal"] header h1 {
    color: #FFFFFF;
    text-shadow: none;
    font-weight: 700;
    letter-spacing: -0.5px;
}

body[data-theme="terminal"] header p {
    color: #FF6600;
}

body[data-theme="terminal"] .price-data-card,
body[data-theme="terminal"] .prediction-card,
body[data-theme="terminal"] .recommendations {
    background: #0F0F0F;
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-left: 3px solid #FF6600;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 102, 0, 0.1);
}

body[data-theme="terminal"] .metric-value {
    color: #FF6600;
    font-family: 'Courier New', 'Consolas', monospace;
    font-weight: 700;
}

body[data-theme="terminal"] .metric-value.positive {
    color: #00FF00;
}

body[data-theme="terminal"] .metric-value.negative {
    color: #FF0000;
}

/* ============================================
   骨架屏加载效果
   ============================================ */

/* 骨架屏动画 */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* 骨架屏基础样式 */
.skeleton-line {
    background: linear-gradient(90deg,
            var(--bg-elevated) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            var(--bg-elevated) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

body[data-theme="cool"] .skeleton-line {
    background: linear-gradient(90deg,
            rgba(21, 21, 48, 0.8) 0%,
            rgba(0, 255, 255, 0.1) 50%,
            rgba(21, 21, 48, 0.8) 100%);
}

body[data-theme="cs"] .skeleton-line {
    background: linear-gradient(90deg,
            rgba(23, 29, 39, 0.9) 0%,
            rgba(245, 130, 32, 0.1) 50%,
            rgba(23, 29, 39, 0.9) 100%);
}

/* iOS 26 液态骨架屏 */
body[data-theme="ios"] .skeleton-line {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(240, 250, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.25) 100%);
    background-size: 200% 100%;
}

/* 骨架屏卡片容器 */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    animation: skeleton-pulse 2s ease-in-out infinite;
}

body[data-theme="cool"] .skeleton-card {
    border: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

body[data-theme="cs"] .skeleton-card {
    background: linear-gradient(150deg, rgba(26, 32, 42, 0.96), rgba(15, 19, 27, 0.98));
    border: 1px solid rgba(245, 130, 32, 0.3);
}

body[data-theme="ios"] .skeleton-card {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(250, 252, 255, 0.22) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 16px 48px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(80px) saturate(200%) brightness(105%);
}

/* 骨架屏头部 */
.skeleton-header {
    margin-bottom: 24px;
}

.skeleton-title {
    width: 150px;
    height: 24px;
}

/* 骨架屏价格卡片 */
.skeleton-price-card {
    grid-column: 1;
    grid-row: 1 / 3;
}

.skeleton-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.skeleton-price-box {
    background: var(--bg-elevated);
    border-radius: 14px;
    padding: 28px 20px;
    border: 1px solid var(--border-light);
}

body[data-theme="cs"] .skeleton-price-box {
    background: linear-gradient(160deg, rgba(24, 31, 42, 0.92), rgba(16, 20, 27, 0.98));
    border: 1px solid rgba(245, 130, 32, 0.25);
}

body[data-theme="ios"] .skeleton-price-box {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(252, 254, 255, 0.3) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(60px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(60px) saturate(200%) brightness(105%);
}

.skeleton-label {
    width: 80px;
    height: 14px;
    margin-bottom: 12px;
}

.skeleton-value {
    width: 120px;
    height: 36px;
}

/* 骨架屏指标卡片 */
.skeleton-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.skeleton-metric-card {
    height: 120px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    animation: skeleton-pulse 2s ease-in-out infinite;
}

body[data-theme="cool"] .skeleton-metric-card {
    background: rgba(21, 21, 48, 0.85);
    border-color: rgba(0, 255, 255, 0.15);
}

body[data-theme="cs"] .skeleton-metric-card {
    background: linear-gradient(150deg, rgba(28, 34, 45, 0.95), rgba(16, 21, 29, 0.96));
    border-color: rgba(245, 130, 32, 0.25);
}

body[data-theme="ios"] .skeleton-metric-card {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(252, 254, 255, 0.28) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(70px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(70px) saturate(200%) brightness(105%);
}

/* 骨架屏市场概览 */
.skeleton-market-overview {
    margin-top: 36px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    animation: skeleton-pulse 2s ease-in-out infinite;
}

body[data-theme="cool"] .skeleton-market-overview {
    border: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

body[data-theme="cs"] .skeleton-market-overview {
    background: linear-gradient(150deg, rgba(26, 32, 42, 0.96), rgba(15, 19, 27, 0.98));
    border: 1px solid rgba(245, 130, 32, 0.3);
}

body[data-theme="ios"] .skeleton-market-overview {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.32) 0%,
            rgba(250, 252, 255, 0.22) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 16px 48px -8px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(255, 255, 255, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(80px) saturate(200%) brightness(105%);
    -webkit-backdrop-filter: blur(80px) saturate(200%) brightness(105%);
}

.skeleton-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* 响应式骨架屏 */
@media (max-width: 768px) {
    .skeleton-price-grid {
        grid-template-columns: 1fr;
    }

    .skeleton-metrics {
        grid-template-columns: 1fr;
    }

    .skeleton-metric-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   新主题按钮和细节样式
   ============================================ */

/* 蒸汽波按钮 */
body[data-theme="vaporwave"] #searchBtn,
body[data-theme="vaporwave"] #selectItemBtn,
body[data-theme="vaporwave"] .predict-button {
    background: linear-gradient(135deg, #FF6EC7 0%, #7C3AED 50%, #06B6D4 100%);
    border: 2px solid rgba(255, 16, 240, 0.6);
    box-shadow:
        0 0 30px rgba(255, 16, 240, 0.5),
        inset 0 0 20px rgba(124, 58, 237, 0.3);
    color: white;
    text-shadow: 0 0 10px rgba(255, 16, 240, 0.8);
    animation: vaporwaveButtonPulse 2s ease-in-out infinite;
}

@keyframes vaporwaveButtonPulse {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(255, 16, 240, 0.5),
            inset 0 0 20px rgba(124, 58, 237, 0.3);
    }

    50% {
        box-shadow:
            0 0 50px rgba(255, 16, 240, 0.7),
            inset 0 0 30px rgba(124, 58, 237, 0.4);
    }
}

body[data-theme="vaporwave"] .current-price,
body[data-theme="vaporwave"] .price-change {
    background: linear-gradient(135deg, rgba(61, 43, 94, 0.85) 0%, rgba(45, 27, 78, 0.9) 100%);
    border: 2px solid rgba(255, 16, 240, 0.4);
    box-shadow:
        0 0 25px rgba(255, 16, 240, 0.3),
        inset 0 0 15px rgba(124, 58, 237, 0.2);
}

body[data-theme="vaporwave"] .price {
    color: #FF10F0;
    text-shadow:
        0 0 15px rgba(255, 16, 240, 1),
        0 0 30px rgba(255, 16, 240, 0.6);
}

/* 赛博武士按钮 */
body[data-theme="samurai"] #searchBtn,
body[data-theme="samurai"] #selectItemBtn,
body[data-theme="samurai"] .predict-button {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.9) 0%, rgba(139, 0, 0, 0.95) 100%);
    border: 2px solid rgba(220, 20, 60, 0.6);
    box-shadow:
        0 0 30px rgba(220, 20, 60, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

body[data-theme="samurai"] .current-price,
body[data-theme="samurai"] .price-change {
    background: linear-gradient(135deg, rgba(37, 8, 8, 0.9) 0%, rgba(26, 5, 5, 0.95) 100%);
    border: 1px solid rgba(220, 20, 60, 0.5);
    box-shadow:
        0 0 25px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(139, 0, 0, 0.2);
}

body[data-theme="samurai"] .price {
    color: #DC143C;
    text-shadow:
        0 0 20px rgba(220, 20, 60, 0.9),
        0 0 40px rgba(220, 20, 60, 0.5);
}

/* 深海探索按钮 */
body[data-theme="ocean"] #searchBtn,
body[data-theme="ocean"] #selectItemBtn,
body[data-theme="ocean"] .predict-button {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.3) 0%, rgba(0, 116, 217, 0.4) 100%);
    border: 2px solid rgba(64, 224, 208, 0.5);
    box-shadow:
        0 0 30px rgba(64, 224, 208, 0.4),
        inset 0 0 20px rgba(0, 116, 217, 0.2);
    color: white;
    text-shadow: 0 0 10px rgba(64, 224, 208, 0.8);
}

body[data-theme="ocean"] .current-price,
body[data-theme="ocean"] .price-change {
    background: linear-gradient(135deg, rgba(0, 79, 143, 0.7) 0%, rgba(0, 63, 111, 0.75) 100%);
    border: 2px solid rgba(64, 224, 208, 0.3);
    box-shadow:
        0 0 25px rgba(64, 224, 208, 0.25),
        inset 0 0 20px rgba(0, 116, 217, 0.15);
}

body[data-theme="ocean"] .price {
    color: #40E0D0;
    text-shadow:
        0 0 15px rgba(64, 224, 208, 0.9),
        0 0 30px rgba(64, 224, 208, 0.5);
}

/* 霓虹东京按钮 */
body[data-theme="tokyo"] #searchBtn,
body[data-theme="tokyo"] #selectItemBtn,
body[data-theme="tokyo"] .predict-button {
    background: linear-gradient(135deg, #FF1493 0%, #DA70D6 100%);
    border: 2px solid rgba(255, 20, 147, 0.6);
    box-shadow:
        0 0 30px rgba(255, 20, 147, 0.5),
        0 0 50px rgba(218, 112, 214, 0.3);
    color: white;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.9);
}

body[data-theme="tokyo"] .current-price,
body[data-theme="tokyo"] .price-change {
    background: linear-gradient(135deg, rgba(37, 37, 74, 0.85) 0%, rgba(29, 29, 58, 0.9) 100%);
    border: 2px solid rgba(255, 20, 147, 0.4);
    box-shadow:
        0 0 25px rgba(255, 20, 147, 0.3),
        0 0 40px rgba(0, 191, 255, 0.2);
}

body[data-theme="tokyo"] .price {
    background: linear-gradient(90deg, #FF1493 0%, #00BFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 20, 147, 0.9));
}

/* 黑客帝国按钮 */
body[data-theme="matrix"] #searchBtn,
body[data-theme="matrix"] #selectItemBtn,
body[data-theme="matrix"] .predict-button {
    background: rgba(0, 255, 65, 0.15);
    border: 2px solid rgba(0, 255, 65, 0.6);
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.4),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    color: #00FF41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 1);
    font-family: 'Courier New', monospace;
}

body[data-theme="matrix"] .current-price,
body[data-theme="matrix"] .price-change {
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgba(0, 255, 65, 0.4);
    box-shadow:
        0 0 25px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.05);
}

body[data-theme="matrix"] .price {
    color: #00FF41;
    text-shadow:
        0 0 20px rgba(0, 255, 65, 1),
        0 0 40px rgba(0, 255, 65, 0.6);
    font-family: 'Courier New', monospace;
    animation: matrixFlicker 0.15s infinite;
}

@keyframes matrixFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.97;
    }
}

/* 金融终端按钮 */
body[data-theme="terminal"] #searchBtn,
body[data-theme="terminal"] #selectItemBtn,
body[data-theme="terminal"] .predict-button {
    background: #FF6600;
    border: 1px solid rgba(255, 102, 0, 0.6);
    box-shadow:
        0 4px 16px rgba(255, 102, 0, 0.3),
        inset 0 1px 0 rgba(255, 153, 0, 0.3);
    color: #000000;
    text-shadow: none;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
}

body[data-theme="terminal"] #searchBtn:hover,
body[data-theme="terminal"] #selectItemBtn:hover,
body[data-theme="terminal"] .predict-button:hover {
    background: #FF7700;
    box-shadow:
        0 6px 20px rgba(255, 102, 0, 0.4),
        inset 0 1px 0 rgba(255, 153, 0, 0.4);
}

body[data-theme="terminal"] .current-price,
body[data-theme="terminal"] .price-change {
    background: #0F0F0F;
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-top: 2px solid #FF6600;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 102, 0, 0.1);
}

body[data-theme="terminal"] .price {
    color: #FF6600;
    text-shadow: none;
    font-family: 'Courier New', 'Consolas', monospace;
    font-weight: 700;
}

body[data-theme="terminal"] .change.positive {
    color: #00FF00;
}

body[data-theme="terminal"] .change.negative {
    color: #FF0000;
}

/* ============================================
   新主题小组件统一样式
   ============================================ */

/* 蒸汽波小卡片 */
body[data-theme="vaporwave"] .metric-card,
body[data-theme="vaporwave"] .board-card {
    background: linear-gradient(135deg, rgba(61, 43, 94, 0.8) 0%, rgba(45, 27, 78, 0.85) 100%);
    border: 1px solid rgba(255, 16, 240, 0.3);
    box-shadow: 0 0 20px rgba(255, 16, 240, 0.2);
}

/* 赛博武士小卡片 */
body[data-theme="samurai"] .metric-card,
body[data-theme="samurai"] .board-card {
    background: linear-gradient(135deg, rgba(37, 8, 8, 0.85) 0%, rgba(26, 5, 5, 0.9) 100%);
    border: 1px solid rgba(220, 20, 60, 0.4);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.25);
}

/* 深海探索小卡片 */
body[data-theme="ocean"] .metric-card,
body[data-theme="ocean"] .board-card {
    background: linear-gradient(135deg, rgba(0, 79, 143, 0.7) 0%, rgba(0, 63, 111, 0.75) 100%);
    border: 1px solid rgba(64, 224, 208, 0.3);
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.2);
}

/* 霓虹东京小卡片 */
body[data-theme="tokyo"] .metric-card,
body[data-theme="tokyo"] .board-card {
    background: linear-gradient(135deg, rgba(37, 37, 74, 0.8) 0%, rgba(29, 29, 58, 0.85) 100%);
    border: 1px solid rgba(255, 20, 147, 0.3);
    box-shadow:
        0 0 20px rgba(255, 20, 147, 0.25),
        0 0 30px rgba(0, 191, 255, 0.15);
}

/* 黑客帝国小卡片 */
body[data-theme="matrix"] .metric-card,
body[data-theme="matrix"] .board-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

body[data-theme="matrix"] .metric-label,
body[data-theme="matrix"] h2,
body[data-theme="matrix"] .board-title {
    font-family: 'Courier New', monospace;
}

/* 金融终端小卡片 */
body[data-theme="terminal"] .metric-card,
body[data-theme="terminal"] .board-card {
    background: #0F0F0F;
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-left: 2px solid #FF6600;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 102, 0, 0.08);
}

body[data-theme="terminal"] h2,
body[data-theme="terminal"] .metric-label {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ============================================
   输入框和表单元素
   ============================================ */

/* 蒸汽波输入 */
body[data-theme="vaporwave"] #itemSearch,
body[data-theme="vaporwave"] #itemDropdown {
    background: rgba(45, 27, 78, 0.7);
    border: 2px solid rgba(255, 16, 240, 0.3);
    color: #FFB3E6;
    box-shadow:
        inset 0 0 15px rgba(124, 58, 237, 0.2),
        0 0 20px rgba(255, 16, 240, 0.2);
}

body[data-theme="vaporwave"] #itemSearch::placeholder {
    color: rgba(183, 148, 246, 0.5);
}

body[data-theme="vaporwave"] #itemSearch:focus,
body[data-theme="vaporwave"] #itemDropdown:focus {
    border-color: rgba(255, 16, 240, 0.6);
    box-shadow:
        0 0 30px rgba(255, 16, 240, 0.4),
        inset 0 0 20px rgba(124, 58, 237, 0.3);
}

/* 赛博武士输入 */
body[data-theme="samurai"] #itemSearch,
body[data-theme="samurai"] #itemDropdown {
    background: rgba(26, 5, 5, 0.8);
    border: 1px solid rgba(220, 20, 60, 0.4);
    color: #FFE8E8;
    box-shadow:
        inset 0 0 15px rgba(139, 0, 0, 0.3),
        0 0 20px rgba(220, 20, 60, 0.2);
}

body[data-theme="samurai"] #itemSearch:focus,
body[data-theme="samurai"] #itemDropdown:focus {
    border-color: rgba(220, 20, 60, 0.7);
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.4);
}

/* 深海探索输入 */
body[data-theme="ocean"] #itemSearch,
body[data-theme="ocean"] #itemDropdown {
    background: rgba(0, 63, 111, 0.6);
    border: 1px solid rgba(64, 224, 208, 0.3);
    color: #E0FFFF;
    box-shadow:
        inset 0 0 15px rgba(0, 116, 217, 0.2),
        0 0 20px rgba(64, 224, 208, 0.15);
}

body[data-theme="ocean"] #itemSearch:focus,
body[data-theme="ocean"] #itemDropdown:focus {
    border-color: rgba(64, 224, 208, 0.6);
    box-shadow: 0 0 25px rgba(64, 224, 208, 0.3);
}

/* 霓虹东京输入 */
body[data-theme="tokyo"] #itemSearch,
body[data-theme="tokyo"] #itemDropdown {
    background: rgba(29, 29, 58, 0.7);
    border: 2px solid rgba(255, 20, 147, 0.3);
    color: #FFE0FF;
    box-shadow:
        inset 0 0 15px rgba(218, 112, 214, 0.2),
        0 0 20px rgba(255, 20, 147, 0.2);
}

body[data-theme="tokyo"] #itemSearch:focus,
body[data-theme="tokyo"] #itemDropdown:focus {
    border-color: rgba(255, 20, 147, 0.6);
    box-shadow:
        0 0 30px rgba(255, 20, 147, 0.4),
        0 0 40px rgba(0, 191, 255, 0.3);
}

/* 黑客帝国输入 */
body[data-theme="matrix"] #itemSearch,
body[data-theme="matrix"] #itemDropdown {
    background: rgba(15, 15, 15, 0.9);
    border: 2px solid rgba(0, 255, 65, 0.4);
    color: #00FF41;
    box-shadow:
        inset 0 0 15px rgba(0, 255, 65, 0.1),
        0 0 20px rgba(0, 255, 65, 0.2);
    font-family: 'Courier New', monospace;
}

body[data-theme="matrix"] #itemSearch::placeholder {
    color: rgba(0, 204, 51, 0.5);
}

body[data-theme="matrix"] #itemSearch:focus,
body[data-theme="matrix"] #itemDropdown:focus {
    border-color: rgba(0, 255, 65, 0.7);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
}

/* 金融终端输入 */
body[data-theme="terminal"] #itemSearch,
body[data-theme="terminal"] #itemDropdown {
    background: #0F0F0F;
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-bottom: 2px solid #FF6600;
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.1);
    font-family: 'Courier New', 'Consolas', monospace;
}

body[data-theme="terminal"] #itemSearch:focus,
body[data-theme="terminal"] #itemDropdown:focus {
    border-bottom-color: #FF8833;
    box-shadow:
        0 2px 0 #FF6600,
        inset 0 0 0 1px rgba(255, 102, 0, 0.15);
}

/* ============================================
   市场情绪仪表盘样式
   ============================================ */
.sentiment-dashboard {
    margin-top: 36px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.dashboard-version {
    font-size: 12px;
    color: var(--text-tertiary);
    background: rgba(0, 122, 255, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.sentiment-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: center;
}

/* 情绪仪表盘 */
.sentiment-gauge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-container {
    position: relative;
    width: 200px;
    height: 140px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-bg {
    stroke: var(--bg-elevated);
    stroke-linecap: round;
}

.gauge-fill {
    stroke: var(--primary-blue);
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    text-align: center;
}

.gauge-score {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.gauge-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* 情绪详情卡片 */
.sentiment-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sentiment-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

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

.card-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.card-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 评分构成 */
.sentiment-breakdown {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-light);
}

.breakdown-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.breakdown-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.breakdown-item {
    text-align: center;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.breakdown-item-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.breakdown-item-value {
    font-size: 18px;
    font-weight: 700;
}

.breakdown-item-value.positive {
    color: var(--success-green);
}

.breakdown-item-value.negative {
    color: var(--danger-red);
}

/* 情绪建议 */
.sentiment-recommendation {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary-blue);
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 1024px) {
    .sentiment-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sentiment-details {
        grid-template-columns: 1fr;
    }

    .breakdown-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sentiment-dashboard {
        padding: 24px;
    }

    .gauge-container {
        width: 180px;
        height: 120px;
    }

    .gauge-score {
        font-size: 32px;
    }

    .breakdown-items {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1200px) {
    .results-section {
        grid-template-columns: 1fr;
    }

    .price-data-card {
        grid-row: 1;
    }

    .prediction-card {
        grid-row: 2;
    }

    .recommendations {
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .theme-toggle-trigger {
        top: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .theme-drawer-content {
        max-width: 100%;
    }

    .theme-drawer-list {
        padding: 12px;
    }

    .theme-option {
        padding: 14px;
    }

    .theme-preview {
        width: 56px;
        height: 56px;
    }

    .theme-name {
        font-size: 15px;
    }

    .theme-desc {
        font-size: 12px;
    }

    header {
        padding: 48px 20px 40px;
        margin: 24px 0 32px;
    }

    header h1 {
        font-size: 38px;
    }

    header p {
        font-size: 17px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #itemDropdown {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    #searchBtn,
    #selectItemBtn {
        width: 100%;
    }

    .item-selector {
        padding: 20px;
    }

    .results-section {
        gap: 16px;
        display: flex;
        flex-direction: column;
    }

    .price-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .price-data-card,
    .prediction-card,
    .recommendations {
        padding: 22px;
        width: 100%;
        max-width: none;
    }

    .price-data-card {
        grid-row: 1;
    }

    .prediction-card {
        grid-row: 2;
    }

    .recommendations {
        grid-row: 3;
    }

    .market-overview,
    .category-board {
        margin-top: 24px;
    }

    .metric-section {
        gap: 14px;
    }

    .price {
        font-size: 32px;
    }

    .change {
        font-size: 24px;
    }

    .metric-grid,
    .board-grid,
    .board-group-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .metric-card,
    .board-card {
        padding: 18px;
    }

    .overview-header,
    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .theme-toggle-trigger {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
    }

    .theme-drawer-header {
        padding: 20px;
    }

    .theme-drawer-header h3 {
        font-size: 20px;
    }

    .theme-option {
        padding: 12px;
    }

    .theme-preview {
        width: 52px;
        height: 52px;
    }

    .theme-icon {
        font-size: 20px;
    }

    header {
        padding: 40px 18px 32px;
    }

    header h1 {
        font-size: 30px;
    }

    .price-data-card,
    .prediction-card,
    .recommendations {
        padding: 18px;
    }

    .price {
        font-size: 28px;
    }

    .change {
        font-size: 22px;
    }

    .metric-card,
    .board-card {
        padding: 16px;
    }

    .overview-header h2,
    .board-header h2 {
        font-size: 18px;
    }

    .metric-header {
        font-size: 16px;
    }

    .insights-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .board-note,
    .overview-update {
        font-size: 12px;
    }

    .board-subtitle {
        font-size: 14px;
    }

    .metric-value {
        font-size: 20px;
    }

    .metric-hint,
    .board-strength {
        font-size: 11px;
    }

    #itemDropdown {
        margin-bottom: 10px;
    }
}

/* ============================================
   辅助类
   ============================================ */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select {
    cursor: pointer;
}

input,
select,
textarea {
    color: var(--text-input);
}

/* ============================================
   登录 / 注册 / 后台 管理
   ============================================ */
.auth-bar {
    margin: 24px 0 32px;
    padding: 18px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(18, 22, 33, 0.55);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body[data-theme="light"] .auth-bar {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

.auth-status-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .auth-status-text {
    color: rgba(0, 0, 0, 0.7);
}

.auth-role-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    margin-left: 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(255, 171, 64, 0.15);
    color: #ffab40;
    border: 1px solid rgba(255, 171, 64, 0.4);
}

.auth-bar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-usage-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    font-size: 0.85rem;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.45);
}

.auth-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #4f8cff, #6f6bff);
    box-shadow: 0 8px 18px rgba(79, 140, 255, 0.4);
}

.auth-btn.ghost {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    background: transparent;
}

.auth-btn.danger {
    background: rgba(255, 84, 84, 0.2);
    border: 1px solid rgba(255, 84, 84, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-link-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 9px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-link-btn:hover {
    border-color: #7dd3fc;
    color: #7dd3fc;
}

.auth-backdrop,
.admin-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.auth-backdrop.active,
.admin-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: min(420px, 90vw);
    border-radius: 24px;
    background: rgba(18, 20, 35, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1001;
    padding: 28px;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal-content {
    position: relative;
}

.auth-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
}

.auth-modal-header h3 {
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.auth-modal-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-tabs {
    display: flex;
    margin: 24px 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.auth-tab.active {
    background: linear-gradient(135deg, #4f8cff, #6f6bff);
    color: #fff;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.auth-form.active {
    display: flex;
}

.auth-form label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-form input {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.auth-submit-btn {
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.auth-tip {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.auth-message {
    min-height: 24px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.auth-message.error {
    color: #ff8787;
}

.auth-message.success {
    color: #4ade80;
}

.admin-panel {
    position: fixed;
    top: 50%;
    right: 32px;
    transform: translateY(-50%) translateX(130%);
    width: min(460px, 92vw);
    background: rgba(9, 12, 28, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.55);
    padding: 24px;
    z-index: 1002;
    transition: transform 0.25s ease;
}

.admin-panel.active {
    transform: translateY(-50%) translateX(0);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.admin-panel-close {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.admin-panel-toolbar {
    display: flex;
    gap: 12px;
    margin: 18px 0;
}

.admin-panel-toolbar input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    padding: 10px 14px;
    color: #fff;
}

.admin-action-btn {
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    color: #0f172a;
    padding: 10px 16px;
    cursor: pointer;
}

.admin-panel-body {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-card {
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-role-select {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(7, 11, 28, 0.7);
    color: #fff;
    padding: 8px 12px;
    appearance: none;
}

.admin-role-select option {
    color: #0f172a;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-mini-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-mini-btn.danger {
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
}

.admin-mini-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.admin-placeholder {
    text-align: center;
    padding: 32px 16px;
    color: rgba(255, 255, 255, 0.65);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    cursor: pointer;
}

.history-pagination {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.history-page-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.history-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    position: relative;
    transition: border 0.2s ease, background 0.2s ease;
}

.history-card.static {
    cursor: default;
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.history-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.history-card-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.history-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.history-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(125, 211, 252, 0.18);
    color: #7dd3fc;
}

.history-badge.subtle {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.history-badge.warning {
    background: rgba(255, 171, 64, 0.2);
    color: #ffab40;
}

.history-badge.danger {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
}

.history-card-summary {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-height: 64px;
    overflow: hidden;
    white-space: pre-line;
    transition: max-height 0.25s ease, opacity 0.25s ease;
}

.history-card.expanded .history-card-summary {
    max-height: 1200px;
}

.history-card-toggle {
    align-self: flex-start;
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.history-card-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.history-card.static .history-card-toggle {
    display: none;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-6px);
}

.history-detail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) scale(0.95);
    width: min(640px, 94vw);
    max-height: 85vh;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 14, 30, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1004;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-detail-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.history-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 18, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1003;
}

.history-detail-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.history-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.history-detail-header h3 {
    margin: 0;
}

.history-detail-header p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.history-detail-close {
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.history-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-detail-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-line;
    line-height: 1.6;
}

.history-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 24px 0;
}

.history-hot-placeholder {
    margin-top: 24px;
}

.role-settings-modal,
.history-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(520px, 92vw);
    background: rgba(11, 15, 32, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 1003;
    max-height: 80vh;
    overflow: hidden;
}

.role-settings-modal.active,
.history-modal.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.history-modal .history-card {
    cursor: pointer;
}

.role-modal-backdrop,
.history-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 20, 0.65);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.role-modal-backdrop.active,
.history-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.role-settings-body,
.history-modal-body {
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 12px;
}

.role-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.role-settings-row label {
    font-weight: 600;
}

.role-settings-row input {
    width: 120px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 8px;
}

@media (max-width: 768px) {
    .auth-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-panel {
        right: 16px;
        width: calc(100% - 32px);
    }

    .history-hot-placeholder {
        margin-top: 16px;
    }
}

.role-settings-header,
.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.role-settings-close,
.history-modal-close {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.role-settings-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.history-modal-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}