/* ==================== 闁稿繈鍔岄惇顒勫冀瀹勬壆纭€ ==================== */
/* ==================== CSS 闁告瑦锕㈤崳铏光偓瑙勭煯缁?==================== */
:root {
    /* 濞戞捁顕у杈╂嫬閸愵厼顥?*/
    --gold: #ffd700;
    --accent-blue: #667eea;
    --accent-purple: #764ba2;
    --danger: #ff6b6b;
    --success: #4caf50;
    --warning: #ff9800;
    --info: #2196f3;
    
    /* 闁革箑妫滈～?*/
    --radius-card: 14px;
    --radius-item: 8px;
    --radius-sm: 6px;
    
    /* 闂傚倻顥愮粣?*/
    --gap-card: 16px;
    --padding-card: 18px;
    
    /* 闂傚啯娼欐總?*/
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25);
    
    /* 閺夆晛娲﹀ù?*/
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* 婵烇綀绮炬竟濠冪▔婵犳凹鏆柛娆愶耿閸ｈ櫣鎲伴崱娆愮０ */
body.theme-dark {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #e8e8f0;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* 婵炴潙鎳撴竟濠冪▔婵犳凹鏆柛娆愶耿閸ｈ櫣鎲伴崱娆愮０ */
body.theme-light {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #333333;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --border-color: rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆厾绠掗柤纭咁嚋缁辨瑦顪€濡鍚囬柨?==================== */
body.theme-dark {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e8e8f0;
}
body.theme-dark .auth-card,
body.theme-dark .info-card,
body.theme-dark .dashboard-header,
body.theme-dark .server-status {
    background: rgba(30, 30, 60, 0.8);
    border-color: rgba(255, 215, 0, 0.2);
}
body.theme-dark .form-group input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}
body.theme-dark .card-header h2 { color: var(--gold); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
body.theme-dark .guide-text { color: rgba(255, 255, 255, 0.85); }
body.theme-dark .loading-text { color: rgba(255, 255, 255, 0.65); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆厾銈柤?==================== */
body.theme-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}
body.theme-light .auth-card,
body.theme-light .info-card,
body.theme-light .dashboard-header,
body.theme-light .server-status {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body.theme-light .form-group input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #333;
}
body.theme-light .card-header h2 { color: #333; }
body.theme-light .guide-text { color: rgba(0, 0, 0, 0.8); }
body.theme-light .loading-text { color: rgba(0, 0, 0, 0.55); }
body.theme-light .header-left h1 {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.theme-light .user-info, body.theme-light .current-time { color: rgba(0,0,0,0.6); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆厽锛夐柦鈧?==================== */
body.theme-sunset {
    background: linear-gradient(135deg, var(--danger) 0%, #feca57 50%, #ff9ff3 100%);
    color: #fff;
}
body.theme-sunset .auth-card,
body.theme-sunset .info-card,
body.theme-sunset .dashboard-header,
body.theme-sunset .server-status {
    background: rgba(60, 30, 40, 0.75);
    border-color: rgba(255, 255, 255, 0.3);
}
body.theme-sunset .form-group input {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
body.theme-sunset .card-header h2 { color: #fff; }
body.theme-sunset .guide-text { color: rgba(255, 255, 255, 0.95); }
body.theme-sunset .loading-text { color: rgba(255, 255, 255, 0.6); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆厽宕虫繛?==================== */
body.theme-ocean {
    background: linear-gradient(135deg, #006994 0%, #00a8cc 50%, #005f73 100%);
    color: #e0f7fa;
}
body.theme-ocean .auth-card,
body.theme-ocean .info-card,
body.theme-ocean .dashboard-header,
body.theme-ocean .server-status {
    background: rgba(0, 50, 80, 0.75);
    border-color: rgba(255, 255, 255, 0.2);
}
body.theme-ocean .form-group input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
body.theme-ocean .card-header h2 { color: #fff; }
body.theme-ocean .guide-text { color: rgba(255, 255, 255, 0.9); }
body.theme-ocean .loading-text { color: rgba(255, 255, 255, 0.5); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆兙浜紒?==================== */
body.theme-sky {
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 50%, #B0E0E6 100%);
    color: #1a3a5c;
}
body.theme-sky .auth-card,
body.theme-sky .info-card,
body.theme-sky .dashboard-header,
body.theme-sky .server-status {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
body.theme-sky .form-group input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a3a5c;
}
body.theme-sky .card-header h2 { color: #1a3a5c; }
body.theme-sky .guide-text { color: rgba(26, 58, 92, 0.85); }
body.theme-sky .loading-text { color: rgba(26, 58, 92, 0.4); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆叏绱熼柡?==================== */
body.theme-forest {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    color: #e8f5e9;
}
body.theme-forest .auth-card,
body.theme-forest .info-card,
body.theme-forest .dashboard-header,
body.theme-forest .server-status {
    background: rgba(20, 60, 50, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}
body.theme-forest .form-group input {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
body.theme-forest .card-header h2 { color: #a5d6a7; }
body.theme-forest .guide-text { color: rgba(255, 255, 255, 0.9); }
body.theme-forest .loading-text { color: rgba(255, 255, 255, 0.5); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮樺彉绱堕柤?==================== */
body.theme-purple {
    background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%);
    color: #f3e5f5;
}
body.theme-purple .auth-card,
body.theme-purple .info-card,
body.theme-purple .dashboard-header,
body.theme-purple .server-status {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
body.theme-purple .form-group input {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
body.theme-purple .card-header h2 { color: #ce93d8; }
body.theme-purple .guide-text { color: rgba(255, 255, 255, 0.9); }
body.theme-purple .loading-text { color: rgba(255, 255, 255, 0.5); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮樿京鐒介柤?==================== */
body.theme-pink {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #880e4f;
}
body.theme-pink .auth-card,
body.theme-pink .info-card,
body.theme-pink .dashboard-header,
body.theme-pink .server-status {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
body.theme-pink .form-group input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #880e4f;
}
body.theme-pink .card-header h2 { color: #c2185b; }
body.theme-pink .guide-text { color: rgba(136, 14, 79, 0.85); }
body.theme-pink .loading-text { color: rgba(136, 14, 79, 0.4); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮樺磭顩遍柛妤佺濠€鍛村礂?==================== */
body.theme-cyberpunk {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a0a2e 50%, #0d1b2a 100%);
    color: #00ffff;
}
body.theme-cyberpunk .auth-card,
body.theme-cyberpunk .info-card,
body.theme-cyberpunk .dashboard-header,
body.theme-cyberpunk .server-status {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.05);
}
body.theme-cyberpunk .form-group input {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.4);
    color: #00ffff;
}
body.theme-cyberpunk .card-header h2 { color: #ff00ff; text-shadow: 0 0 10px rgba(255, 0, 255, 0.5); }
body.theme-cyberpunk .guide-text { color: rgba(0, 255, 255, 0.85); }
body.theme-cyberpunk .loading-text { color: rgba(0, 255, 255, 0.4); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆厾鈧剟宕?==================== */
body.theme-aurora {
    background: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 30%, #2d1b4e 60%, #1a3a5c 100%);
    color: #e0f7fa;
}
body.theme-aurora .auth-card,
body.theme-aurora .info-card,
body.theme-aurora .dashboard-header,
body.theme-aurora .server-status {
    background: rgba(20, 40, 60, 0.75);
    border-color: rgba(100, 255, 218, 0.25);
}
body.theme-aurora .form-group input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
    color: #fff;
}
body.theme-aurora .card-header h2 { color: #64ffda; }
body.theme-aurora .guide-text { color: rgba(255, 255, 255, 0.9); }
body.theme-aurora .loading-text { color: rgba(255, 255, 255, 0.5); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆剙纾靛?==================== */
body.theme-midnight {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #111111 100%);
    color: #cccccc;
}
body.theme-midnight .auth-card,
body.theme-midnight .info-card,
body.theme-midnight .dashboard-header,
body.theme-midnight .server-status {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}
body.theme-midnight .form-group input {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ddd;
}
body.theme-midnight .card-header h2 { color: #fff; }
body.theme-midnight .guide-text { color: rgba(255, 255, 255, 0.75); }
body.theme-midnight .loading-text { color: rgba(255, 255, 255, 0.3); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆厼蝎闁?==================== */
body.theme-matcha {
    background: linear-gradient(135deg, #d4e4c4 0%, #a8c686 50%, #8ba870 100%);
    color: #2d3a1f;
}
body.theme-matcha .auth-card,
body.theme-matcha .info-card,
body.theme-matcha .dashboard-header,
body.theme-matcha .server-status {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
body.theme-matcha .form-group input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2d3a1f;
}
body.theme-matcha .card-header h2 { color: #4a6741; }
body.theme-matcha .guide-text { color: rgba(45, 58, 31, 0.85); }
body.theme-matcha .loading-text { color: rgba(45, 58, 31, 0.4); }

/* ==================== 闁煎啿鏈▍娆戞啑閸涙番鍋?==================== */
.bg-stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent);
    background-size: 200px 200px;
    /* animation: twinkle 5s ease-in-out infinite; 鐎规瓕灏欓々锕傛偨椤帞绀夐柤鍝勫€诲〒绋U */
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
body.theme-light .bg-stars,
body.theme-sunset .bg-stars,
body.theme-ocean .bg-stars,
body.theme-sky .bg-stars,
body.theme-pink .bg-stars,
body.theme-matcha .bg-stars { opacity: 0.15; }

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.bg-glow {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.08) 0%, transparent 50%);
    /* animation: glow 20s ease-in-out infinite; 鐎规瓕灏欓々锕傛偨椤帞绀夐柤鍝勫€诲〒绋U */
    pointer-events: none;
    z-index: 0;
}

@keyframes glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* ==================== 婵炴垵鐗婃导鍛村箵閹邦喓浠?==================== */
.flash-container {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.flash {
    padding: 12px 24px;
    border-radius: var(--radius-item);
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    transition: opacity 0.5s ease;
}
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.flash-success { background: rgba(76, 175, 80, 0.3); border: 1px solid rgba(76, 175, 80, 0.5); color: #a5d6a7; }
.flash-error { background: rgba(244, 67, 54, 0.3); border: 1px solid rgba(244, 67, 54, 0.5); color: #ef9a9a; }
.flash-warning { background: rgba(255, 152, 0, 0.3); border: 1px solid rgba(255, 152, 0, 0.5); color: #ffcc80; }
.flash-info { background: rgba(33, 150, 243, 0.3); border: 1px solid rgba(33, 150, 243, 0.5); color: #90caf9; }

/* ==================== 闁谎嗩嚙缂?婵炲鍔岄崬鑺ャ亜?==================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.auth-card {
    border-radius: var(--radius-card);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.auth-header { text-align: center; margin-bottom: 36px; }
.logo { font-size: 56px; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.subtitle { color: rgba(255, 255, 255, 0.5); font-size: 14px; }
body.theme-light .subtitle { color: rgba(0, 0, 0, 0.5); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 500; }
.form-group input {
    padding: 14px 18px;
    border-radius: var(--radius-item);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}
.form-group input:focus {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}
.form-group input::placeholder { color: rgba(255, 255, 255, 0.3); }
body.theme-light .form-group input::placeholder { color: rgba(0, 0, 0, 0.5); }

/* ==================== 闁圭顦甸幐?==================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-item);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }
.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-small:hover { background: rgba(255, 255, 255, 0.2); }
.btn-outline { background: transparent; }

.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-footer p { font-size: 14px; }
.auth-footer a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ==================== 濞寸媭浜ｉ妴鍐级?==================== */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border: 1px solid;
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    overflow: visible;
    position: relative;
    z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo { font-size: 32px; }
.header-left h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.user-info { font-size: 14px; }
.current-time { font-size: 14px; font-family: monospace; opacity: 0.6; }

/* 閻犲浂鍘肩紞宥呂熼鍕暯 */
.quote-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    font-style: italic;
}
.quote-icon { font-size: 24px; }
.quote-text { font-size: 15px; }

/* 闁哄牆绉存慨鐔煎闯閵娧冃﹂柟?*/
.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid;
    border-radius: var(--radius-item);
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}
.status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.status-online { background: #4caf50; box-shadow: 0 0 10px #4caf50; }
.status-offline { background: #f44336; box-shadow: 0 0 10px #f44336; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== 闁告绱曟晶鏍磾閹寸偟澹?==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.info-card {
    background: linear-gradient(135deg, #1e1e3c 0%, #141432 100%);
    border: 2px solid rgba(255,215,0,0.25);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    position: relative;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
body.theme-light .info-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    border-image: linear-gradient(135deg, rgba(102,126,234,0.4), rgba(118,75,162,0.3), rgba(78,205,196,0.4)) 1;
    box-shadow: 
        0 8px 32px rgba(102,126,234,0.15),
        inset 0 1px 0 rgba(255,255,255,1);
}
.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.15s; }
.info-card:nth-child(4) { animation-delay: 0.2s; }
.info-card:nth-child(5) { animation-delay: 0.25s; }
.info-card:nth-child(6) { animation-delay: 0.3s; }
.info-card:nth-child(7) { animation-delay: 0.35s; }
.info-card:nth-child(8) { animation-delay: 0.4s; }
.info-card:nth-child(9) { animation-delay: 0.45s; }
.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        0 0 40px rgba(255,215,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border-image: linear-gradient(135deg, rgba(255,215,0,0.6), rgba(255,107,107,0.5), rgba(78,205,196,0.6)) 1;
}
body.theme-light .info-card:hover {
    box-shadow: 
        0 20px 60px rgba(102,126,234,0.25),
        0 0 40px rgba(118,75,162,0.15),
        inset 0 1px 0 rgba(255,255,255,1);
}

/* 闁告帒妫涚划宥夊冀閸ヮ剦鏆?*/
.group-title {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 12px;
    margin: 8px 0 4px 0;
    border-left: 3px solid var(--gold);
    line-height: 1.4;
}
body.theme-light .group-title {
    color: rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
    .group-title {
        margin: 12px 0 6px 0;
        font-size: 13px;
    }
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,215,0,0.15);
    background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(30,30,60,0.9));
    position: relative;
}
.card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--danger), #4ecdc4, var(--gold));
    background-size: 300% 100%;
    /* animation: headerGlow 3s linear infinite; 鐎规瓕灏欓々锕傛偨椤帞绀夐柤鍝勫€诲〒绋U闁?0+闁告绱曟晶鏍触鐏炵偓顦ч柛鏂诲妿閺佺偓寰勯鍥ｅ亾濡ゅ嫮銈繝褎鍔х槐?*/
}
@keyframes headerGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
body.theme-light .card-header { 
    border-bottom-color: rgba(0, 0, 0, 0.08); 
    background: linear-gradient(135deg, rgba(102,126,234,0.08), transparent);
}
.card-icon { 
    font-size: 28px; 
    filter: drop-shadow(0 2px 8px rgba(255,215,0,0.4));
}
.card-header h2 { 
    font-size: 17px; 
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
body.theme-light .card-header h2 {
    color: #667eea;
    text-shadow: none;
}
.card-body { padding: 14px 18px; }

/* 闁告绱曟晶鏍箮濡搫缍岄柛鏃傚枙閸?*/
.card-body {
    overflow: hidden;
    max-height: 5000px;
    opacity: 1;
    transition: 
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        padding 0.35s ease;
}
.info-card.collapsed .card-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: none; /* 閻庣懓鑻崣蹇旂▔瀹ュ棜顩柡灞炬惈缁辨繈鎳為崒婊勯槣CPU */
}
.card-header { cursor: pointer; user-select: none; }
.card-header::after {
    content: '闁?;
    margin-left: auto;
    font-size: 12px;
    opacity: 0.5;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-card.collapsed .card-header::after {
    transform: rotate(-90deg);
}

/* 闁活澀绲婚崜宕囩博椤栨艾骞㈤柣妤€娲ら惈宥咁嚕閳ь剟宕濋妸褎鏆板褏鍋涘?*/
@media (min-width: 769px) {
    .info-card {
        transition: 
            transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.4s ease,
            border-image 0.4s ease;
    }
    .info-card.collapsed {
        transform: scale(0.98);
    }
    .info-card.collapsed:hover {
        transform: scale(1) translateY(-4px);
    }
}

/* 闁告绱曟晶鏍ㄧ▔婵犳凹鏆柤?*/
.card-tasks .card-header { background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), transparent); }
.card-candles .card-header { background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent); }
.card-big-candles .card-header { background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), transparent); }
.card-magic .card-header { background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent); }
.card-spirit .card-header { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent); }
.card-season .card-header { background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), transparent); }
.card-wings .card-header { background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), transparent); }
.card-announce .card-header { background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), transparent); }
.card-activity .card-header { background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), transparent); }

/* ==================== 闁告劕鎳庨鎰板冀瀹勬壆纭€ ==================== */
.card-body p {
    margin: 4px 0;
    line-height: 1.3;
}
.guide-text {
    font-size: 14px;
    line-height: 1.15;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
}
/* 闂傚懏鍔樺Λ灞炬交閻愮數鏁鹃柣銊ュ瀹曡尙鎮板畝瀣闁告垵绻愰惃顖滅矚妤︽鏀?*/
.guide-text br + br {
    display: none;
}
.guide-text br {
    line-height: 1.15;
}

/* 闁稿繈鍔屽ù姗€宕楁径宀冣偓鍐磼閻旀椿鍚€缂佹瘱鍐ㄦ閻㈩垰鍟惇?*/
.wing-stats-compact {
    font-size: 14px;
    line-height: 1.4;
}
.wing-total {
    font-weight: bold;
    margin-bottom: 8px;
}
.wing-maps-title {
    margin-bottom: 6px;
}
.wing-map-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
}
.wing-map-item {
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
}
body.theme-light .wing-map-item {
    background: rgba(0,0,0,0.05);
}
.wing-source {
    font-size: 12px;
    opacity: 0.6;
}

/* 濞寸姴锕ュΛ鈺呭及鎼淬垺锛夊ù鐘侯嚙婵喓妲愯閸ｅ墽鏁崘銊ф拱 */
.task-list-compact {
    font-size: 14px;
    line-height: 1.3;
}
.task-date-group {
    margin-bottom: 6px;
}
.task-date {
    font-weight: bold;
    margin-bottom: 2px;
}
.task-item {
    padding: 1px 0;
    padding-left: 8px;
}

/* 閻庢冻缍€婵☆厽娼诲☉妯侯唺缂佹瘱鍐ㄦ閻㈩垰鍟惇?*/
.season-progress-compact {
    font-size: 14px;
    line-height: 1.3;
}
.season-row {
    padding: 1px 0;
}

/* 濞戞梹鍔曞▍鎺懳熼埄鍐ㄧ彲闁?& 濞戞梹鍔樺銊︽償閹捐櫕鍊ゆ鐐舵硾瀹曢亶鎮?*/
.music-section, .instrument-section {
    margin-bottom: 12px;
}
.instrument-section {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
body.theme-light .instrument-section {
    border-top-color: rgba(0,0,0,0.1);
}
.section-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #e94560;
}
.music-result-compact {
    max-height: 150px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.3;
    margin-top: 8px;
}
.music-result-compact .guide-text {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 0;
}

/* 闂婎剦鍋婇悵顕€寮▎鎴旀煠缂佹瘱鍐ㄦ闁哄秴鍢茬槐?*/
.height-guide {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
}
.height-guide strong {
    color: #e94560;
}

/* 闂婎剦鍋婇悵顕€宕ｉ崒婊冨季閻炴稏鍔岃ぐ鑼喆閸℃顕?*/
.height-chart {
    margin-bottom: 16px;
}
.height-chart-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 12px;
    color: #e94560;
}
.height-bars {
    height: 200px;
    font-size: 0;
    text-align: center;
    white-space: nowrap;
}
.height-bar-item {
    display: inline-block;
    width: 5.5%;
    height: 100%;
    vertical-align: bottom;
    text-align: center;
}
.height-bar {
    display: block;
    margin: 0 auto;
    width: 80%;
    max-width: 20px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
    min-height: 4px;
}
.height-bar:hover {
    transform: scaleY(1.05);
    filter: brightness(1.2);
}
.height-bar-label {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.8;
    line-height: 1.2;
}
.bar-negative0 { background: linear-gradient(to top, #d50000, #ff1744); }
.bar-0 { background: linear-gradient(to top, #ff1744, #ff5252); }
.bar-1 { background: linear-gradient(to top, #ff5252, #ff9800); }
.bar-2 { background: linear-gradient(to top, #ff9800, #ffc107); }
.bar-3 { background: linear-gradient(to top, #ffc107, #ffeb3b); }
.bar-4 { background: linear-gradient(to top, #ffeb3b, #cddc39); }
.bar-5 { background: linear-gradient(to top, #cddc39, #8bc34a); }
.bar-6 { background: linear-gradient(to top, #8bc34a, #4caf50); }
.bar-7 { background: linear-gradient(to top, #4caf50, #00bcd4); }
.bar-8 { background: linear-gradient(to top, #00bcd4, #2196f3); }
.bar-9 { background: linear-gradient(to top, #2196f3, #3f51b5); }
.bar-10 { background: linear-gradient(to top, #3f51b5, #9c27b0); }
.bar-11 { background: linear-gradient(to top, #9c27b0, #e91e63); }
.bar-12 { background: linear-gradient(to top, #e91e63, #795548); }
.bar-13 { background: linear-gradient(to top, #795548, #607d8b); }
.bar-14 { background: linear-gradient(to top, #607d8b, #9e9e9e); }

.height-detail {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}
body.theme-light .height-detail {
    border-top-color: rgba(0,0,0,0.1);
}
.height-detail-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}
.height-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    margin-bottom: 10px;
}
.height-detail-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}
.height-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.height-tips {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
    padding-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.1);
}
body.theme-light .height-tips {
    border-top-color: rgba(0,0,0,0.1);
}

/* 闁绘凹鍠氶妶顓㈠绩閼姐倖娈?- 闁活厼鍟块崕姘媴瀹ュ洨鏋傞柛?*/
.sacrifice-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.sacrifice-tab {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: inherit;
    border-radius: var(--radius-item);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}
body.theme-light .sacrifice-tab {
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
}
.sacrifice-tab.active {
    background: linear-gradient(135deg, #e94560, var(--danger));
    border-color: #e94560;
    color: white;
}
.sacrifice-map-title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
    color: #e94560;
}
.sacrifice-map-desc {
    font-size: 12px;
    text-align: center;
    opacity: 0.7;
    margin-bottom: 12px;
}
.sacrifice-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-item);
    margin-bottom: 10px;
}
body.theme-light .sacrifice-grid {
    background: rgba(0,0,0,0.02);
}
.sacrifice-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.sacrifice-stone {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}
.sacrifice-stone.stage2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.4);
}
.sacrifice-stone.stage3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.4);
}
.sacrifice-path {
    font-size: 18px;
    color: #e94560;
    font-weight: bold;
}
.sacrifice-tips {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
    padding: 8px 12px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: var(--radius-item);
}
.sacrifice-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
body.theme-light .sacrifice-summary {
    border-top-color: rgba(0,0,0,0.1);
}
.summary-item {
    text-align: center;
}
.summary-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #e94560;
}
.summary-label {
    font-size: 12px;
    opacity: 0.7;
}

/* 闁绘凹鍠氶妶顓㈠绩閼姐倖娈ｉ柛銉ュ⒔婢?*/
.sacrifice-image-container {
    text-align: center;
}
.sacrifice-image {
    max-width: 100%;
    border-radius: var(--radius-item);
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.sacrifice-image:hover {
    transform: scale(1.02);
}
.sacrifice-image-tall {
    max-height: 600px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .sacrifice-image-tall {
        max-height: 500px;
    }
}
.sacrifice-image-tip {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 8px;
}
.sacrifice-source {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.5;
    font-style: italic;
}

/* 閻犵儤鍨靛ù妯兼崉椤栨粌娈犻柛銉ュ⒔婢?*/
.runmap-img-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.runmap-img-tab {
    flex: 1;
    min-width: 70px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: inherit;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}
body.theme-light .runmap-img-tab {
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
}
.runmap-img-tab.active {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-color: #4ecdc4;
    color: white;
}
.runmap-image-container {
    text-align: center;
}
.runmap-image {
    max-width: 100%;
    border-radius: var(--radius-item);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.runmap-image-tip {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 8px;
}
.runmap-source {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.5;
    font-style: italic;
}

/* 闁绘凹鍠氶妶顓㈠绩閼姐倖娈ｉ柛銉ュ⒔婢ф牠宕氶崶銊ュ簥 */
.sacrifice-img-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.sacrifice-img-tab {
    flex: 1;
    min-width: 70px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: inherit;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}
body.theme-light .sacrifice-img-tab {
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
}
.sacrifice-img-tab.active {
    background: linear-gradient(135deg, #e94560, var(--danger));
    border-color: #e94560;
    color: white;
}

@media (max-width: 768px) {
    .height-bars {
        height: 180px;
        overflow-x: auto !important;
        overflow-y: hidden;
        white-space: nowrap !important;
        text-align: left;
        padding: 0 10px 10px 10px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        box-sizing: border-box;
    }
    .height-bar-item {
        width: 32px !important;
        min-width: 32px;
        display: inline-block !important;
    }
    .height-bar {
        width: 20px;
        max-width: 20px;
    }
    .height-bar-label {
        font-size: 12px;
        white-space: nowrap;
    }
    .height-detail-grid {
        grid-template-columns: 1fr;
    }
}
.guide-image {
    width: 100%;
    border-radius: var(--radius-item);
    margin-top: 12px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.guide-image:hover { transform: scale(1.02); }
.error-text { color: #ef9a9a; font-size: 14px; }
.loading-text { font-size: 14px; font-style: italic; }

/* 闁稿繐顦遍懓鍐焻婢跺顏ラ柛?*/
.wing-selector { margin-bottom: 16px; }
.wing-selector select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-item);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}
body.theme-light .wing-selector select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #333;
}
.wing-result { min-height: 60px; }

/* ==================== 閹煎瓨娲熼崕?==================== */
.dashboard-footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    opacity: 0.5;
}

/* ==================== 闁告繂绉寸花鎻掝嚕?==================== */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .header-right { justify-content: center; }
    .card-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 32px 24px; }
}

/* ==================== 闁哄被鍎撮妤冩偘閵娿儱绀?==================== */
.query-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.query-input {
    padding: 10px 14px;
    border-radius: var(--radius-item);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.query-input:focus {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}
body.theme-light .query-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #333;
}
.query-result {
    min-height: 60px;
}
.card-wings-query .card-header { background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), transparent); }
.card-height .card-header { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent); }

/* 闁哄倹婢樺畷閬嶆偋閸パ佷粓闂侇喓鍔嶇粭搴ㄥ矗濡灝顥?*/
.card-debris .card-header { background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent); }
.card-tomorrow .card-header { background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), transparent); }
.card-tokens .card-header { background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), transparent); }
.card-schedule .card-header { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent); }
.card-wing-stats .card-header { background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), transparent); }
.card-sacrifice .card-header { background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), transparent); }
.card-grandma .card-header { background: linear-gradient(135deg, rgba(139, 195, 74, 0.2), transparent); }

/* ==================== 闁瑰吋绮庨崒銊ヮ浖?==================== */
.search-input {
    padding: 8px 14px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 14px;
    outline: none;
    width: 160px;
    transition: all 0.3s;
}
.search-input:focus {
    width: 200px;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}
body.theme-light .search-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #333;
}

/* ==================== 闁稿﹥甯熼鎼佸籍閸洘妗ㄩ柡?==================== */
.countdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-item);
}
body.theme-light .countdown-item {
    background: rgba(0, 0, 0, 0.03);
}
.countdown-label {
    font-size: 14px;
}
.countdown-time {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}
.card-countdown .card-header { background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent); }
.card-calculator .card-header { background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), transparent); }

/* ==================== 濞戞挸顭烽。浠嬫晬濮橆剙甯ㄩ梺?==================== */
body.theme-sky {
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 30%, #F7DC6F 70%, #F1948A 100%);
    color: #2c3e50;
}
body.theme-sky .auth-card,
body.theme-sky .info-card,
body.theme-sky .dashboard-header,
body.theme-sky .server-status {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
body.theme-sky .form-group input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}
body.theme-sky .card-header h2 { color: #2c3e50; }
body.theme-sky .guide-text { color: rgba(44, 62, 80, 0.85); }
body.theme-sky .loading-text { color: rgba(44, 62, 80, 0.5); }
body.theme-sky .header-left h1 {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.theme-sky .user-info, body.theme-sky .current-time { color: rgba(44,62,80,0.6); }
body.theme-sky .search-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}
body.theme-sky .countdown-item { background: rgba(255, 255, 255, 0.5); }
body.theme-sky .countdown-time { color: #e74c3c; }
body.theme-sky .query-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}

/* ==================== 婵絽绻戝Λ鈺冪驳閹冪厒 ==================== */
.card-checkin .card-header { background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), transparent); }
.checkin-status { text-align: center; }

/* ==================== 闁稿繐顦遍懓鍐╂交濞戞ê顔?==================== */
.card-wing-track .card-header { background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), transparent); }

/* ==================== 闁衡偓閹増顥戝?==================== */
.card-favorites .card-header { background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent); }
.favorites-list { max-height: 300px; overflow-y: auto; }
.favorite-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-item);
    border-left: 3px solid #ffc107;
}
body.theme-light .favorite-item,
body.theme-sky .favorite-item { background: rgba(0, 0, 0, 0.03); }
.favorite-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.favorite-content { font-size: 12px; opacity: 0.7; margin-bottom: 4px; }
.favorite-time { font-size: 12px; opacity: 0.5; }

/* ==================== 闁伙絾鐟ㄩ埢鍫ュ级?==================== */
.card-message .card-header { background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent); }
.messages-list { max-height: 300px; overflow-y: auto; margin-top: 10px; }
.message-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-item);
}
body.theme-light .message-item,
body.theme-sky .message-item { background: rgba(0, 0, 0, 0.03); }
.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.message-user { font-weight: 600; font-size: 14px; }
.message-time { font-size: 12px; opacity: 0.5; }
.message-content { font-size: 14px; line-height: 1.6; }

/* ==================== 闁告劕鎳庨鎰尵鐠囨彃骞㈤柣妤€娲ら妵鏃堟焾閵婏妇鐟ら柛娆愵焾婢?==================== */
.card-spirit-tree .card-header { background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), transparent); }
.card-wiki .card-header { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent); }
.card-music .card-header { background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent); }
.card-spot .card-header { background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), transparent); }
.card-route .card-header { background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), transparent); }

/* 濞戞挸顑嗘刊娲焻婢跺顏ユ俊妤€妫欓悧鍗烆嚕?*/
.query-input select, select.query-input {
    padding: 8px 12px;
    border-radius: var(--radius-item);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}
body.theme-light select.query-input,
body.theme-sky select.query-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* ==================== 閻犳劧绠戣ぐ璺ㄧ不閿涘嫭鍊?==================== */
.card-account .card-header { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent); }

/* ==================== 闁绘壕鏅涢宥夊箳閹烘洦鏀芥慨?==================== */
.card-rank .card-header { background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent); }
.rank-list { margin-top: 8px; }
.rank-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.theme-light .rank-item,
body.theme-sky .rank-item { border-bottom-color: rgba(0,0,0,0.05); }

/* ==================== FAQ ==================== */
.card-faq .card-header { background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), transparent); }
.faq-list { max-height: 350px; overflow-y: auto; }
.faq-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-item);
    cursor: pointer;
    transition: background 0.2s;
}
.faq-item:hover { background: rgba(255, 255, 255, 0.1); }
body.theme-light .faq-item,
body.theme-sky .faq-item { background: rgba(0, 0, 0, 0.03); }
body.theme-light .faq-item:hover,
body.theme-sky .faq-item:hover { background: rgba(0, 0, 0, 0.06); }
.faq-q { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.faq-a { font-size: 14px; opacity: 0.8; display: none; line-height: 1.6; }

/* ==================== 濮掓稒鍨甸惈鍡樼┍椤旂⒈妲?==================== */
.card-fix .card-header { background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), transparent); }

/* ==================== 闁稿繐顦垫禍锝夊礃妞嬪海鍙€閻?==================== */
.card-trivia .card-header { background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent); }

/* ==================== 闁告帒妫涚悮顐﹀冀閸モ晩鍔?==================== */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    background: rgba(20, 20, 45, 0.97);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255,215,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    backdrop-filter: none;
}
.tab-btn {
    padding: 12px 28px;
    border-radius: var(--radius-card);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.tab-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}
.tab-btn:hover::before { left: 100%; }
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255,215,0,0.3);
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--gold), #ff8c00, var(--danger));
    background-size: 200% 200%;
    animation: tabGradient 3s ease infinite;
    color: #1a1a2e;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 
        0 6px 25px rgba(255, 140, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}
@keyframes tabGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
body.theme-light .tab-nav {`n    background: rgba(255,255,255,0.97);`n    border-color: rgba(102,126,234,0.2);`n    box-shadow: 0 4px 16px rgba(102,126,234,0.15);`n}
body.theme-light .tab-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
body.theme-light .tab-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(102,126,234,0.3);
}
body.theme-light .tab-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), #f093fb);
    background-size: 200% 200%;
    animation: tabGradient 3s ease infinite;
    color: #fff;
    box-shadow: 
        0 6px 25px rgba(102, 126, 234, 0.5),
        0 0 20px rgba(118, 75, 162, 0.3);
}
body.theme-sky .tab-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2c3e50;
}
body.theme-sky .tab-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ==================== 濞戞挸锕ｇ槐鍓佹偘閵娿儱绀?==================== */
.upload-form {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-item);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}
body.theme-light .upload-form,
body.theme-sky .upload-form {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}
.upload-form .query-input {
    width: 100%;
    margin-bottom: 8px;
}
.upload-form textarea.query-input {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}
.uploaded-option {
    color: var(--gold);
}

/* ==================== 闁告绱曟晶鏍绩閹増顥戦柟绋款樀閹?==================== */
.fav-btn {
    margin-left: 8px;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.fav-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}
body.theme-light .fav-btn,
body.theme-sky .fav-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}
body.theme-light .fav-btn:hover,
body.theme-sky .fav-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

/* 闁衡偓閹増顥戝銈囨嚀瑜版煡鎮欓悷鏉挎瘖闁哄秴鍢茬槐?*/
.favorite-item {
    cursor: pointer;
    transition: all 0.2s;
}
.favorite-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--gold);
}
body.theme-light .favorite-item:hover,
body.theme-sky .favorite-item:hover {
    background: rgba(255, 215, 0, 0.15);
}
.favorite-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gold);
}
body.theme-light .favorite-name,
body.theme-sky .favorite-name {
    color: #f39c12;
}

/* ==================== 闂佸鍨婚幆鏃堟煥椤旂偓纾?==================== */
.piano-keyboard {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.piano-key {
    width: 36px;
    height: 80px;
    background: linear-gradient(180deg, #fff, #eee);
    border: 1px solid #999;
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.1s;
}
.piano-key:active, .piano-key.active {
    background: linear-gradient(180deg, var(--gold), #ffaa00);
    transform: translateY(2px);
}
.piano-key.high {
    background: linear-gradient(180deg, #fffacd, #eee8aa);
}

/* ==================== 婵炴挸鎳庡畷鐔煎冀瀹勬壆纭€ ==================== */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-item);
    cursor: pointer;
    font-size: 14px;
}
.checklist-item.inline {
    display: inline-flex;
    width: auto;
    margin: 2px;
}
.checklist-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ==================== 缂備胶鍠曢鍛娿亜?==================== */
.stat-item {
    padding: 6px 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ==================== 闁搞儱澧芥晶鏍ㄦ櫠?==================== */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.photo-item {
    border-radius: var(--radius-item);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
}
.photo-desc {
    padding: 4px 6px;
    font-size: 12px;
    opacity: 0.7;
}

/* 闁哄倹婢樺畷閬嶆偋閸パ佷粓闂侇喓鍔嶇粭搴ㄥ矗濡灝顥?*/
.card-instrument .card-header { background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent); }
.card-height .card-header { background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), transparent); }
.card-random-outfit .card-header { background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), transparent); }
.card-calendar .card-header { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent); }
.card-daily-check .card-header { background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), transparent); }
.card-candle-stat .card-header { background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent); }
.card-sacrifice-record .card-header { background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), transparent); }
.card-wing-list .card-header { background: linear-gradient(135deg, rgba(0, 150, 136, 0.2), transparent); }
.card-friends .card-header { background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent); }
.card-outfits .card-header { background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), transparent); }
.card-playtime .card-header { background: linear-gradient(135deg, rgba(96, 125, 139, 0.2), transparent); }
.card-fire-reminder .card-header { background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), transparent); }
.card-photo-wall .card-header { background: linear-gradient(135deg, rgba(121, 85, 72, 0.2), transparent); }
.card-guide-post .card-header { background: linear-gradient(135deg, rgba(63, 81, 181, 0.2), transparent); }

/* ==================== 闁稿繐顦垫禍锝嗙▕閹邦剚鐝?==================== */
.instrument-selector {
    margin-bottom: 12px;
    text-align: center;
}
.sky-instrument {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.sky-row {
    display: flex;
    gap: 6px;
}
.sky-key {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-item);
    border: 2px solid rgba(255,255,255,0.3);
    background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.1s;
}
.sky-key:hover {
    background: linear-gradient(180deg, rgba(255,215,0,0.3), rgba(255,215,0,0.1));
    border-color: rgba(255,215,0,0.5);
}
.sky-key.active {
    background: linear-gradient(180deg, var(--gold), #ffaa00);
    color: #333;
    transform: scale(0.95);
}
body.theme-light .sky-key,
body.theme-sky .sky-key {
    background: linear-gradient(180deg, #fff, #eee);
    border-color: #ccc;
    color: #333;
}

/* ==================== 缂佺媴绱曢幃濠囧川濮椻偓濞间即寮?==================== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.stat-box {
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: var(--radius-item);
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.stat-box small {
    font-size: 12px;
    opacity: 0.7;
    font-weight: normal;
}
.admin-user-list {
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.admin-user-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}
.admin-user-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.card-admin .card-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), transparent);
}

/* ==================== 闁告繂绉寸花鎻掝嚕韫囥儳绐楅柟闈涱儐濠р偓闂侇偄鍊块崢?==================== */
@media (max-width: 768px) {
    /* 闁轰胶绻濈紞瀣暜閸愩劎婀?*/
    .dashboard {
        padding: 12px;
        max-width: 100%;
    }
    .main-container {
        padding: 0;
    }
    
    /* 濠㈣埖鎸抽崕?*/
    .dashboard-header {
        flex-direction: column;
        padding: 14px 16px;
        gap: 12px;
    }
    .header-left {
        width: 100%;
        justify-content: center;
    }
    .header-left h1 {
        font-size: 18px;
    }
    .header-logo {
        font-size: 24px;
    }
    .header-right {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .user-info {
        font-size: 12px;
    }
    .current-time {
        font-size: 12px;
    }
    .search-input {
        width: 120px;
        font-size: 12px;
    }
    .search-input:focus {
        width: 150px;
    }
    
    /* 閻犲浂鍘肩紞宥呂熼鍕暯 */
    .quote-banner {
        padding: 12px 16px;
        font-size: 14px;
    }
    .quote-text {
        font-size: 14px;
    }
    
    /* 闁哄牆绉存慨鐔煎闯閵娧冃﹂柟?*/
    .server-status {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    /* Tab閻庝絻澹堥崺?*/
    .tab-nav {
        gap: 6px;
        margin-bottom: 14px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: space-between;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    .tab-nav::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    /* 闁告绱曟晶鏍磾閹寸偟澹愰柨娑欑婢ф粓寮甸崫鍕闁?*/
    .card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 16px;
    }
    .info-card {
        border-radius: var(--radius-card);
    }
    .card-header {
        padding: 12px 16px;
    }
    .card-header h2 {
        font-size: 15px;
    }
    .card-icon {
        font-size: 20px;
    }
    .card-body {
        padding: 14px 16px;
    }
    
    /* 閻炴稏鍔屽畷?*/
    .query-form {
        flex-direction: column;
        gap: 8px;
    }
    .query-input {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }
    .btn {
        font-size: 14px;
        padding: 8px 14px;
    }
    .btn-small {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 闁圭娲ゅ畷锟犲棘閸パ呮憻 */
    .guide-text {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 闁搞儱澧芥晶?*/
    .guide-image {
        max-width: 100%;
        border-radius: var(--radius-item);
    }
    
    /* 闁稿繐顦垫禍锝嗙▕閹邦剚鐝ら梺娆惧枤濞?*/
    .sky-key {
        width: 32px;
        height: 36px;
        font-size: 12px;
    }
    .sky-row {
        gap: 4px;
    }
    
    /* 闂佸鍨婚幆鏃堟煥椤旂偓纾?*/
    .piano-key {
        width: 28px;
        height: 60px;
        font-size: 12px;
    }
    
    /* 缂佺媴绱曢幃濠囧川濡偐鍩犻悹?*/
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .stat-box {
        padding: 8px;
        font-size: 15px;
    }
    .stat-box small {
        font-size: 12px;
    }
    
    /* 闁搞儱澧芥晶鏍ㄦ櫠?*/
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .photo-item img {
        height: 150px;
    }
    
    /* 婵炴挸鎳庡畷?*/
    .checklist-item {
        font-size: 12px;
        padding: 6px 8px;
    }
    .checklist-item.inline {
        margin: 1px;
    }
    
    /* 闁衡偓閹増顥?濠靛倽妫勫鍝ョ驳婢跺﹤鐏欓悶?*/
    .favorite-item {
        padding: 10px;
        font-size: 14px;
    }
    .favorite-name {
        font-size: 14px;
    }
    
    /* 闁伙絾鐟ㄩ埢鍫ュ级?*/
    .message-item {
        padding: 10px;
        font-size: 14px;
    }
    
    /* 闁圭儤甯熼、鎴濐潡?*/
    .rank-list {
        font-size: 14px;
    }
    
    /* 缂佺媴绱曢幃濠囧川濡吋鏆忛柟鏉戝槻閸亞鎮?*/
    .admin-user-item {
        font-size: 12px;
        padding: 8px;
    }
    .admin-user-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* 闁稿﹥甯熼鎼佸籍?*/
    .countdown-item {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* 缂備胶鍠曢鍛娿亜?*/
    .stat-item {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    /* 濞戞挸锕ｇ槐鍓佹偘閵娿儱绀?*/
    .upload-form textarea {
        font-size: 14px;
    }
    
    /* 闁谎嗩嚙缂嶅秴鈻旈妸銉ユ杸濡?*/
    .auth-card {
        margin: 20px 12px;
        padding: 28px 20px;
    }
    .auth-card h1, .auth-card h2 {
        font-size: 20px;
    }
    .auth-header {
        margin-bottom: 24px;
    }
    .logo {
        font-size: 44px;
        margin-bottom: 12px;
    }
    .subtitle {
        font-size: 12px;
    }
    .form-group input {
        font-size: 16px;
        padding: 12px;
    }
    .form-group label {
        font-size: 14px;
    }
    .auth-form {
        gap: 16px;
    }
}

/* 閻忓繐绻愰惈鍡涘箥鐎ｎ偅绨氶柨?=480px闁?*/
@media (max-width: 480px) {
    .header-left h1 {
        font-size: 16px;
    }
    .tab-btn {
        padding: 8px 6px;
        font-size: 12px;
    }
    .sky-key {
        width: 28px;
        height: 32px;
        font-size: 12px;
    }
    .card-header h2 {
        font-size: 14px;
    }
    .guide-text {
        font-size: 12px;
    }
}

/* 婵☆垼浜滈惈鍡涘箥鐎ｎ偅绨氬ù鍏济€?*/
@media (max-width: 768px) and (orientation: landscape) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 闂侇偅姘ㄩ弫銈夊传瀹ュ懐瀹夌€殿喖绻嬬槐顓㈠礌?*/
img {
    max-width: 100%;
    height: auto;
}
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}
select, input, textarea {
    max-width: 100%;
}
/* 闂傚啫寮堕娑樜熼鍕€绘繝濠冭壘婵?*/
.dashboard, .main-container, .card-grid, .info-card {
    overflow-x: hidden;
}
/* 閻熸瑱闄勯幊婊呮媼閹屾У濞村吋锚鐎?*/
@media (hover: none) and (pointer: coarse) {
    .info-card:hover {
        transform: none;
        box-shadow: none;
    }
    .tab-btn:hover {
        transform: none;
    }
    .btn:active {
        transform: scale(0.97);
    }
}

/* ==================== 闂婎剦鍋婇悵顔济圭€ｎ喖娅ょ紓浣规尰閻?==================== */
.height-result {
    background: rgba(255,215,0,0.1);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: var(--radius-item);
    padding: 16px;
    text-align: center;
}
.height-grade {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 8px;
}
.height-raw {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}
.height-rarity {
    font-size: 14px;
    color: var(--danger);
    margin-bottom: 8px;
}
.height-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.height-formula {
    font-size: 12px;
    opacity: 0.5;
    font-family: monospace;
}
.card-height-calc .card-header {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), transparent);
}

/* ==================== 闁搞儱澧芥晶鏍圭€ｎ參鐓╁Δ?==================== */
.card-height-photo .card-header {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent);
}
#heightPhotoCanvas {
    border: 2px solid rgba(255,255,255,0.2);
    display: block;
    margin: 0 auto;
}
input[type="file"] {
    padding: 8px;
    font-size: 14px;
}

/* ==================== 闁告绱曟晶鏍箮濡搫缍岄柡浣哥墛閻?==================== */
.info-card {
    transition: all 0.3s ease;
}
.info-card .card-header {
    cursor: pointer;
    user-select: none;
    position: relative;
}
.info-card .card-header::after {
    content: '闁?;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}
.info-card.collapsed .card-header::after {
    transform: translateY(-50%) rotate(-90deg);
}
.info-card .card-body {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.info-card.collapsed .card-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}
.info-card.collapsed {
    margin-bottom: 0;
}
/* 闁衡偓閹増顥戦柟绋款樀閹歌櫕绋夊鍛殯闁告繂绉垫慨宀勫矗?*/
.favorite-btn {
    position: relative;
    z-index: 10;
}

/* ==================== 闁哄拋鍨抽崑锝嗙瑹鐎ｎ亝绂?==================== */
.spot-image-container {
    position: relative;
    border-radius: var(--radius-item);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.spot-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-item);
}
.spot-image-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-card);
    font-size: 12px;
}

/* ==================== 婵絽绻戝Λ鈺傜鐠囨彃顫ら柟鍨尭瀹曡鲸鏅堕悙鎻掔箒 ==================== */
.checkin-stats {
    margin-bottom: 15px;
}
.checkin-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.checkin-count {
    font-weight: bold;
    color: var(--gold);
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--danger));
    border-radius: 4px;
    transition: width 0.3s ease;
}
.checkin-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.badge {
    background: rgba(255,215,0,0.15);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: var(--radius-item);
    font-size: 12px;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    font-size: 14px;
}
.checklist-item.task-done span {
    text-decoration: line-through;
    opacity: 0.5;
}
.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.checkin-reward {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,107,107,0.2));
    border-radius: var(--radius-item);
    padding: 12px;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--gold);
}
.checkin-history {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.history-dot {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    margin: 3px;
    font-size: 12px;
}
.history-dot.dot-complete {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}
.history-dot.dot-incomplete {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
}
.history-dot.dot-today {
    border: 2px solid var(--gold);
}

/* ==================== 濞寸姴锕ュΛ鈺傜鐠囨彃顫ら柛銉ュ⒔婢?==================== */
.task-image-container {
    position: relative;
    border-radius: var(--radius-item);
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.task-image-container:hover {
    transform: scale(1.02);
}
.task-image {
    width: 100%;
    height: auto;
    display: block;
}
.task-image-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* ==================== 濠靛倽妫勫鍝ョ不閿涘嫭鍊炲褏鍋涘?==================== */
.friend-group-title {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
    font-weight: bold;
}
.friend-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: var(--radius-item);
    font-size: 12px;
    margin-right: 4px;
}
.friend-badge.fire {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
}
.friend-badge.birthday {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}
.friend-badge.height {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
}
.friend-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.friend-actions button {
    padding: 2px 8px;
    font-size: 12px;
}

/* ============================================================
   闁靛棙鍔曢崣蹇涙閵忋垻娉曢柛鏍ㄧ墪椤ゅ啫顕ｉ幁鎺嗗亾?
   ============================================================ */

/* ---------- 1. 闁告柣鍔嶉埀顑跨劍缁侊箓宕濋妸銊ュ壒闁哄拋鍨界槐娆忣啅閼碱剦娲ｉ柣顫妼婵晠鎮芥导娆戠闁煎搫鍊诲〒绋U闁?---------- */
body.theme-dark {
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a3e);
    background-size: 400% 400%;
    /* animation: gradientFlow 15s ease infinite; 鐎规瓕灏欓々锕傛偨?*/
}
body.theme-light {
    background: linear-gradient(-45deg, #f5f7fa, #c3cfe2, #e0c3fc, #8ec5fc);
    background-size: 400% 400%;
    /* animation: gradientFlow 20s ease infinite; 鐎规瓕灏欓々锕傛偨?*/
}
body.theme-sunset {
    background: linear-gradient(-45deg, var(--danger), #feca57, #ff9ff3, #f368e0);
    background-size: 400% 400%;
    /* animation: gradientFlow 12s ease infinite; 鐎规瓕灏欓々锕傛偨?*/
}
body.theme-ocean {
    background: linear-gradient(-45deg, #006994, #00a8cc, #005f73, #0a9396);
    background-size: 400% 400%;
    /* animation: gradientFlow 18s ease infinite; 鐎规瓕灏欓々锕傛偨?*/
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 闁煎啿鏈▍娆徝归鐓幮楅柛蹇擃槺閹棝鏁嶉崼婵嗗殥缂佸倷鑳堕弫銈夊礉閵娧勬毎闁挎稑鐭佹俊顓㈡儑娑撳摉U闁?*/
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    /* animation: floatOrb 20s ease-in-out infinite; 鐎规瓕灏欓々锕傛偨?*/
}
body::before {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--gold), transparent);
    top: -100px; left: -100px;
}
body::after {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #4ecdc4, transparent);
    bottom: -100px; right: -100px;
    animation-delay: -10s;
}
body.theme-light::before { background: radial-gradient(circle, var(--accent-blue), transparent); opacity: 0.2; }
body.theme-light::after { background: radial-gradient(circle, var(--accent-purple), transparent); opacity: 0.2; }
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ---------- 2. 闁告绱曟晶鏍偝閼姐倖瀚呴柟椋庡枑閳ь兛绀侀·鍐嚕?---------- */
.info-card {
    position: relative;
}
/* 闁告绱曟晶鏍с€掗幇顒€缍侀弶鍫ｎ潐椤㈠宕楁径瀣珡 */
.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-card);
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.2), 
        rgba(255,255,255,0.05), 
        rgba(255,215,0,0.15),
        rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.info-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255,215,0,0.4), 
        rgba(255,255,255,0.1), 
        rgba(78,205,196,0.3),
        rgba(255,255,255,0.1));
}
body.theme-light .info-card::before {
    background: linear-gradient(135deg, 
        rgba(102,126,234,0.3), 
        rgba(255,255,255,0.5), 
        rgba(118,75,162,0.2),
        rgba(255,255,255,0.5));
}

/* 闁告绱曟晶鏍箖椤掍浇鐧侀柛娆愬灥閸?*/
.info-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.4),
        0 0 30px rgba(255,215,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
}
body.theme-light .info-card:hover {
    box-shadow: 
        0 20px 60px rgba(102,126,234,0.2),
        0 0 30px rgba(118,75,162,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* 闁告绱曟晶鏍ㄥ緞閹绢喖鍔ユ繛鎾村姇瑜板鎲楅崨娣仒闁?*/
.card-header {
    position: relative;
    overflow: hidden;
}
.card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold), #ff8c00);
    opacity: 0.8;
}
body.theme-light .card-header::before {
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
}

/* ---------- 3. 闁哄秴娲。浠嬪棘閸パ呮憻婵炴挻鍔曡ぐ?---------- */
.header-left h1 {
    position: relative;
}
.card-header h2 {
    color: var(--gold);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
body.theme-light .card-header h2 {
    color: #667eea;
    text-shadow: none;
}

/* ---------- 4. 閻庝絻澹堥崺鍛村冀閸モ晩鍔紓鍥ч鐎?---------- */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-card);
    border: 1px solid rgba(255,255,255,0.1);
    overflow-x: auto;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: inherit;
    border-radius: var(--radius-item);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}
.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255,140,0,0.4);
    font-weight: 600;
}
body.theme-light .tab-nav {`n    background: rgba(255,255,255,0.97);`n    border-color: rgba(102,126,234,0.2);`n    box-shadow: 0 4px 16px rgba(102,126,234,0.15);`n}
body.theme-light .tab-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* ---------- 5. 闁圭顦甸幐宕囩礃鎼粹€愁嚙濠⒀呭仜瀹?---------- */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn:active::after {
    width: 300px; height: 300px;
    transition: 0s;
}
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--gold), #ff8c00, var(--danger));
    background-size: 200% 200%;
    /* animation: btnGradient 3s ease infinite; 鐎规瓕灏欓々锕傛偨椤帞绀夐柤鍝勫€诲〒绋U */
}
@keyframes btnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- 6. 婵犲﹥鑹炬慨鈺呭级閿涘嫮娉曢柛?---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), #ff8c00);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8c00, var(--danger));
}
body.theme-light ::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
body.theme-light ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
}

/* ---------- 7. 闁搞儱澧芥晶鏍箖椤掍浇鐧侀柡浣哥墛閻?---------- */
.sacrifice-image, .runmap-image {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sacrifice-image:hover, .runmap-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.2);
}

/* ---------- 8. 閺夊牊鎸搁崣鍡楊浖閸℃瑧娉曢柛?---------- */
.form-group input, .query-input {
    position: relative;
    transition: all 0.3s ease;
}
.form-group input:focus, .query-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,215,0,0.15);
}

/* ---------- 9. 濞寸媭浜ｉ妴鍐级閸喓浠堥梺顔哄妼椤ゅ啫顕?---------- */
.dashboard-header {
    position: relative;
    overflow: hidden;
}
.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,215,0,0.1), transparent);
    pointer-events: none;
}

/* ---------- 10. 閻犲浂鍘肩紞宥呂熼鍕暯濠⒀呭仜瀹?---------- */
.quote-banner {
    position: relative;
    overflow: hidden;
}
.quote-banner::before {
    content: '"';
    position: absolute;
    top: -20px; right: 20px;
    font-size: 100px;
    opacity: 0.1;
    font-family: Georgia, serif;
}

/* ---------- 11. 闁告绱曟晶鏍礂閵夈儲绨氶柛鏂诲妿閺佺偓鏅堕悙鎻掔箒 ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 12. 濞戞挸顭烽。浠嬪礆閸ャ劌搴婇柟绋款樀閹?---------- */
.theme-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.theme-btn:hover {
    transform: scale(1.15) rotate(15deg);
    border-color: var(--gold);
}
.theme-btn.active {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255,215,0,0.5);
}

/* ---------- 13. 闁衡偓閹増顥戦柟绋款樀閹告娊宕濋妸锔芥珡 ---------- */
.favorite-btn {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.favorite-btn:hover {
    transform: scale(1.2);
}
.favorite-btn.active {
    animation: heartBeat 0.6s ease;
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ---------- 14. 闁稿﹥甯熼鎼佸籍閼稿灚娈堕悗娑欘殘缁躲劑宕?---------- */
.countdown-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

/* ---------- 15. 缂佸顕ф慨鈺冪博椤栨瑧鍠橀柛?---------- */
@media (max-width: 768px) {
    .dashboard { padding: 12px; }
    .dashboard-header { padding: 12px 16px; flex-direction: column; gap: 10px; }
    .header-left h1 { font-size: 18px; }
    .card-grid { grid-template-columns: 1fr; gap: 10px; }
    .info-card:hover {
        transform: translateY(-3px);
    }
    .category-tab { padding: 8px 12px; font-size: 14px; }
}

/* ============================================================
   闁靛棙鍔楅鍥ㄧ瀹€鍕枆婵炲牏鏁哥欢銊╁礌?- 閻庢冻缂氱弧鍕嚊?025闁绘粓顣﹂崬鐞擨閻犱焦宕橀鍝ユ惥鐎ｎ亜鈼㈤柕?
   ============================================================ */

/* ---------- 1. 闁哄绀侀崢婊兠规担椋庣Ъ闁煎啿鏈▍娆撴晬?濞戞搩浜滈崢婊堟偠閸愯法绀?---------- */
.bg-aurora {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-aurora::before,
.bg-aurora::after,
.bg-aurora span {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    /* animation: auroraFloat 25s ease-in-out infinite; 鐎规瓕灏欓々锕傛偨椤帞绀夐柤鍝勫€诲〒绋U */
}
.bg-aurora::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--danger), var(--gold), transparent);
    top: -150px; left: -100px;
    animation-delay: 0s;
}
.bg-aurora::after {
    width: 450px; height: 450px;
    background: radial-gradient(circle, #4ecdc4, #44a08d, transparent);
    bottom: -150px; right: -100px;
    animation-delay: -8s;
}
.bg-aurora span {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #a855f7, #6366f1, transparent);
    top: 40%; left: 50%;
    animation-delay: -16s;
}
@keyframes auroraFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -60px) scale(1.15); }
    50% { transform: translate(-40px, 80px) scale(0.9); }
    75% { transform: translate(60px, 40px) scale(1.05); }
}
body.theme-light .bg-aurora::before { opacity: 0.25; }
body.theme-light .bg-aurora::after { opacity: 0.25; }
body.theme-light .bg-aurora span { opacity: 0.2; }

/* ---------- 2. 濡ゅ倹顭囨鍥偝閼姐倖瀚呴柟椋庡枑閳ь兛绀佸畷閬嶆偋閸ラ绀?025闁哄秴娲ら崳顖炴晬?---------- */
.info-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
body.theme-light .info-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* 闁告绱曟晶鏍ㄣ亜閸洖鍔ユ繛鎾村姇瑜板宕楁径瀣€?*/
.info-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.5), 
        rgba(255, 107, 107, 0.5), 
        transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.info-card:hover::after {
    opacity: 1;
}

/* ---------- 3. 闁瑰吋绮庨崒銊ヮ浖閸℃瑧娉曢柛?---------- */
.search-input {
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 180px;
}
.search-input:focus {
    width: 240px;
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1), 0 4px 20px rgba(0,0,0,0.2);
}
.search-input::placeholder { color: rgba(255,255,255,0.4); }
body.theme-light .search-input {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}
body.theme-light .search-input:focus {
    background: rgba(255,255,255,0.9);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
body.theme-light .search-input::placeholder { color: rgba(0,0,0,0.5); }

/* ---------- 4. 闁轰焦婢橀悺?KPI閻忕偞娲滈妵姘辩礃鎼粹€愁嚙 ---------- */
.kpi-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), #ff8c00, var(--danger));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    filter: drop-shadow(0 2px 8px rgba(255, 140, 0, 0.3));
}
.kpi-label {
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kpi-trend-up { color: #4caf50; font-size: 14px; }
.kpi-trend-down { color: #f44336; font-size: 14px; }

/* ---------- 5. 闁告梻濮惧ù鍥殽閵婏妇浠搁悘鐐茬箰婵晠鎮?---------- */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--radius-item);
}
@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- 6. 鐎垫壆鏅悵?闁哄秴娲ㄩ椋庣礃鎼粹€愁嚙 ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-item);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.badge-gold {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.2));
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.3);
}
.badge-green {
    background: linear-gradient(135deg, rgba(76,175,80,0.2), rgba(56,142,60,0.2));
    color: #4caf50;
    border: 1px solid rgba(76,175,80,0.3);
}
.badge-red {
    background: linear-gradient(135deg, rgba(244,67,54,0.2), rgba(211,47,47,0.2));
    color: #f44336;
    border: 1px solid rgba(244,67,54,0.3);
}
.badge-blue {
    background: linear-gradient(135deg, rgba(33,150,243,0.2), rgba(25,118,210,0.2));
    color: #2196f3;
    border: 1px solid rgba(33,150,243,0.3);
}
.badge-purple {
    background: linear-gradient(135deg, rgba(156,39,176,0.2), rgba(123,31,162,0.2));
    color: #9c27b0;
    border: 1px solid rgba(156,39,176,0.3);
}

/* ---------- 7. 閺夆晜绋戠€规娊寮堕敍鍕硶闁?---------- */
.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d, var(--gold));
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ---------- 8. 鐎规悶鍎遍崣鍧楀箵閹邦喓浠涚紓鍥ч鐎?---------- */
[data-tooltip] {
    position: relative;
}
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    animation: tooltipFadeIn 0.2s ease;
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- 9. 闁告绱曟晶鏍炊閻愵剛鍨奸柟顕呭墯鐠囩偤宕濋妸褎鏆?---------- */
.card-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.info-card:hover .card-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* ---------- 10. 闁告帒妫濆▓褏鐥捄銊ф硶闁?---------- */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.15), 
        transparent);
    margin: 12px 0;
}
body.theme-light hr {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0,0,0,0.1), 
        transparent);
}

/* ---------- 11. 闂侇偄顦懙鎴﹀棘閸パ呮憻缂傚洤楠哥€?---------- */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: inherit;
}

/* ---------- 12. 闁搞儱澧芥晶鏍偓鍦嚀濞呮帡宕烽崱姘兼健闂傚啯娼欐總?---------- */
.sacrifice-image, .runmap-image, .task-image {
    border-radius: var(--radius-card);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
}

/* ---------- 13. 闁圭顦甸幐宕囩磼閸曨垱锛熼悹鐑樼箑缁鳖參宕?---------- */
.btn + .btn {
    margin-left: 6px;
}

/* ---------- 14. 缂佸矁娅ｆ慨鎼佸箑娴ｈ櫣娉曢柛?---------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: emptyFloat 3s ease-in-out infinite;
}
@keyframes emptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.empty-state-text {
    font-size: 14px;
    color: inherit;
}

/* ---------- 15. 缂佸顕ф慨鈺冪博椤栨繄绠诲☉鎾亾婵縿鍎扮槐顓㈠礌?---------- */
@media (max-width: 768px) {
    .search-input { width: 140px; }
    .search-input:focus { width: 160px; }
    .tab-btn { min-width: 70px; padding: 10px 12px; font-size: 12px; }
    .kpi-number { font-size: 24px; }
    .bg-aurora::before, .bg-aurora::after, .bg-aurora span {
        filter: blur(60px);
    }
}

/* ============================================================
   闁靛棙鍔曢崣蹇涙閵忊€愁杹闁哄牐娅ｉ顒勬焻閸岀偛甯抽柕?
   ============================================================ */
@media (max-width: 768px) {
    /* ---------- 闁稿繈鍔岄惇?---------- */
    body { font-size: 14px; }
    
    /* ---------- 濞寸媭浜ｉ妴鍐级?---------- */
    .dashboard {
        padding: 10px;
        max-width: 100%;
    }
    .dashboard-header {
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .header-left {
        justify-content: center;
    }
    .header-left h1 {
        font-size: 18px;
        text-align: center;
    }
    .header-logo { font-size: 24px; }
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .user-info { font-size: 12px; }
    .current-time { font-size: 12px; }
    .search-input {
        width: 100%;
        max-width: 200px;
    }
    .search-input:focus { width: 100%; max-width: 250px; }
    
    /* ---------- 閻庝絻澹堥崺鍛村冀閸モ晩鍔?---------- */
    .tab-nav {
        padding: 6px;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tab-nav::-webkit-scrollbar { display: none; }
    .tab-btn {
        flex: 0 0 auto;
        min-width: auto;
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* ---------- 闁告绱曟晶鏍磾閹寸偟澹?---------- */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* ---------- 闁告绱曟晶?---------- */
    .info-card {
        border-radius: var(--radius-card);
    }
    .card-header {
        padding: 12px 14px;
        gap: 8px;
    }
    .card-icon { font-size: 22px; }
    .card-header h2 { font-size: 15px; }
    .card-body {
        padding: 12px 14px;
    }
    .fav-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
        margin-right: 16px;
    }
    
    /* ---------- 闁圭顦甸幐?---------- */
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .btn-small {
        padding: 6px 12px;
        font-size: 12px;
    }
    .btn-block { padding: 14px; }
    
    /* ---------- 閺夊牊鎸搁崣鍡楊浖?---------- */
    .form-group input,
    .query-input {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
    }
    .query-form {
        flex-direction: column;
    }
    .query-form .query-input {
        width: 100%;
    }
    
    /* ---------- 闁搞儱澧芥晶?---------- */
    .sacrifice-image,
    .runmap-image,
    .task-image {
        max-width: 100%;
        border-radius: var(--radius-item);
    }
    .sacrifice-image-tall {
        max-height: 450px;
    }
    
    /* ---------- 闁搞儱澧芥晶鏍礆閸ャ劌搴婇柡宥呮川椤?---------- */
    .sacrifice-img-tabs,
    .runmap-img-tabs {
        gap: 4px;
    }
    .sacrifice-img-tab,
    .runmap-img-tab {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 50px;
    }
    
    /* ---------- 閻犲浂鍘肩紞宥呂熼鍕暯 ---------- */
    .quote-banner {
        padding: 12px 16px;
        font-size: 14px;
    }
    .quote-icon { font-size: 20px; }
    .quote-text { font-size: 14px; }
    
    /* ---------- 闁哄牆绉存慨鐔煎闯閵娧冃﹂柟?---------- */
    .server-status {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    /* ---------- 闁哄倸娲ら悺褔宕橀崨顓у晣 ---------- */
    .guide-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* ---------- 閺夆晜绋戠€规娊寮?---------- */
    .progress-bar {
        height: 6px;
    }
    
    /* ---------- 鐎垫壆鏅悵?---------- */
    .badge {
        padding: 2px 8px;
        font-size: 12px;
    }
    
    /* ---------- 閻炴稏鍔嶉悧?---------- */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* ---------- 婵☆垪鍓濋埀顑跨劍椤?鐎殿喖婀遍悰?---------- */
    .modal, .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* ---------- 闁谎嗩嚙缂?婵炲鍔岄崬鑺ャ亜?---------- */
    .auth-container {
        padding: 20px;
    }
    .auth-card {
        padding: 24px 20px;
        border-radius: var(--radius-card);
    }
    .auth-header h1 { font-size: 24px; }
    .logo { font-size: 48px; }
    
    /* ---------- 闂婎剦鍋婇悵顕€寮绘潏鈺佇﹂柛?---------- */
    .height-bars {
        height: 150px;
        overflow-x: auto !important;
        overflow-y: hidden;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 10px 10px;
    }
    
    /* ---------- 濞戞梹鍔曞▍鎺懳熼埄鍐ㄧ彲闁?---------- */
    .instrument-key {
        min-width: 30px;
        height: 60px;
        font-size: 12px;
    }
    
    /* ---------- 闁衡偓閹増顥戦柛鎺擃殙閵?---------- */
    .favorite-item {
        padding: 10px;
        font-size: 14px;
    }
    
    /* ---------- 闁伙絾鐟ㄩ埢鍫ュ级?---------- */
    .message-item {
        padding: 10px;
        font-size: 14px;
    }
    
    /* ---------- 濠靛倽妫勫鍝ョ不閿涘嫭鍊?---------- */
    .friend-item {
        padding: 10px;
        font-size: 14px;
    }
    .friend-actions button {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* ---------- 缂佸矁娅ｆ慨鎼佸箑?---------- */
    .empty-state {
        padding: 30px 15px;
    }
    .empty-state-icon { font-size: 36px; }
    .empty-state-text { font-size: 14px; }
    
    /* ---------- 闁煎啿鏈▍娆撳几娴ｇ甯?---------- */
    .bg-aurora::before {
        width: 300px;
        height: 300px;
    }
    .bg-aurora::after {
        width: 280px;
        height: 280px;
    }
    .bg-aurora span {
        width: 250px;
        height: 250px;
    }
}

/* 閻℃帒鎳庨惃顒備沪韫囨挾顔庨梺顐㈠€块崢?*/
@media (max-width: 480px) {
    .dashboard { padding: 8px; }
    .card-header { padding: 10px 12px; }
    .card-body { padding: 10px 12px; }
    .card-header h2 { font-size: 14px; }
    .card-icon { font-size: 20px; }
    .tab-btn { padding: 8px 12px; font-size: 12px; }
    .btn { padding: 8px 14px; font-size: 12px; }
    .guide-text { font-size: 12px; }
    .sacrifice-image-tall { max-height: 400px; }
    .header-left h1 { font-size: 16px; }
}

/* ============================================================
   闁靛棙鍔曢崣蹇曚沪閳ь剟骞€瑜戦崗妯诲濡搫顕?- 缂佸倷鑳堕弫銈夊箥閳ь剟寮垫径濠傂楅柟顑胯兌缁躲劑宕犻弽銊︽珡闁哄鍤庨埀?
   ============================================================ */
*, *::before, *::after {
    animation: none !important;
    transition: none !important;
}

/* 婵炵繝鑳堕弲鐘虫償閿旇法鍠橀柛?*/
html {
    scroll-behavior: auto; /* 缂佸倷鑳堕弫銈夌嵁閾忣偆鎷ㄦ繝濠冭壘婵晠鏁嶇仦钘夋閻忓繑鍘U */
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll; /* 鐎殿喖鎼崺妤呭及閸撗佷粵婵犲﹥鑹炬慨鈺呭级閳藉懐绀夐梺顒€鐏濋崢銈咁煥濮橆剙袟闁哄啫鐖奸崳鎼佸箳?*/
}

/* 濞村吋锚鐎垫彃顭ㄥ顒€袟闁诡儸鍡楀幋 */
body {
    will-change: scroll-position;
    overflow-x: hidden;
    /* 闁告垵绻愰惃顖氼煥濮橆剙袟闁哄啫澧庡▓鎴︽煂瀹ュ洨甯?*/
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 闁告绱曟晶鏍箑瑜戦崗妯诲濡搫顕х€规瓕灏欎簺闂?- transform/translateZ/contain 濞村吋鑹鹃閬嶆嚊鐎涙ɑ鐎悗娑欘殕鑶╃紒?*/

/* 闁搞儱澧芥晶鏍ㄥ濡搫顕?- content-visibility鐎规瓕灏欎簺闂傚嫨鍊х槐婵嬫焼閸喖甯抽柛銉ュ⒔婢ф牠宕濋悩鐑樼グ鐎殿喖鍊搁悥?*/
img {
    loading: lazy;
    decoding: async;
}

/* 婵犲﹥鑹炬慨鈺呭籍閸撲緡娲ｉ柣顫姂濡叉崘銇愰崡鐐村婵☆垽绱曠涵锕傛晬鐏炶棄娅ら悘蹇斿灴閸ｅ摜绱?*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 濞村吋锚鐎垫彃袙濞戞艾绠甸柣鐘插暞閺呫儵寮稿鎰婵犲﹥鑹炬慨鈺呭籍閼稿灚浠橀柤鐗堫殕閳ь儸鍡楀幋闁?*/
.info-card {
    backdrop-filter: none; /* 缂佸倷鑳堕弫銈呅掑☉姘闁荤姴鍠涚槐婵囧緞瑜嶇粻娆撳箵閹邦剙纾虫繝濠冭壘婵晠骞€瑜戦崗?*/
    -webkit-backdrop-filter: none;
}

/* 婵犲﹥鑹炬慨鈺呭籍閹壆绠诲☉鎾亾婵縿鍎扮槐顓㈠礌?*/
body.is-scrolling .info-card {
    box-shadow: none !important; /* 婵犲﹥鑹炬慨鈺呭籍閸撲緡娲ｉ柣顫姂濡叉崘銇愰幉瀣闁告垵绻愰惃顖炴煂瀹ュ洨甯?*/
}

/* 闁告绱曟晶鏍с€掗崣澶屽帬濞村吋锚鐎垫彃顔忛懠顑晠姊?*/

/* ============================================================
   闁靛棙鍔欏銈夊箑娴ｇ儤娅曢梻鍫涘灮缁躲劑宕?- 闁哄啰濮存慨鈺呮偨娴兼瑧绀夊ù锝呴拤PU闁告濮烽弫銈夊Υ?
   ============================================================ */

/* 闁告绱曟晶鏍垝閹规劕姣€閺夊牐顫夐、?*/
.info-card {
    border: 1px solid rgba(255, 215, 0, 0.15);
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.85), rgba(20, 20, 45, 0.9));
    border-radius: var(--radius-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 闁告绱曟晶鏍ㄥ緞閹绢喖鍔ョ紓鍥ч鐎?*/
.card-header {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    padding: 14px 18px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.card-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--gold);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* 闁圭顦甸幐宕囩礃鎼粹€愁嚙 */
.btn-primary {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #1a1a2e;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-item);
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    border-radius: var(--radius-item);
    padding: 8px 16px;
}

/* 閺夊牊鎸搁崣鍡楊浖閸℃瑧娉曢柛?*/
.query-input, input, select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-item);
    padding: 8px 12px;
    color: #fff;
    outline: none;
}

.query-input:focus, input:focus, select:focus, textarea:focus {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* 婵犲﹥鑹炬慨鈺呭级閿涘嫮娉曢柛?*/
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* 闁哄秴娲ㄩ閿嬨亜閻㈢數娉曢柛?*/
.tab-btn.active {
    background: linear-gradient(135deg, var(--gold), #ff8c00);
    color: #1a1a2e;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 2px 15px rgba(255, 140, 0, 0.4);
}

/* 濞存粠鍠涙竟濠冪▔婵犳凹鏆梺顐㈠€块崢?*/
body.theme-light .info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.98));
    border: 1px solid rgba(102, 126, 234, 0.15);
}
body.theme-light .card-header h2 {
    color: #667eea;
}
body.theme-light .query-input,
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

/* ============================================================
   闁靛棙鍔栨晶婊堝嫉閾忚浼傞柟顑棗鍘村ù鍏济€?- 缂佸倷鑳堕弫銈夊礉閵娧勬毎闂傚啫寮堕娑㈡⒒椤忓棗鍓ㄩ柕?
   ============================================================ */
@media (max-width: 768px) {
    /* 缂佸倷鑳堕弫銈夊箥閳ь剟寮垫繅涓糞闁告柣鍔庨弫?*/
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* 缂佸倷鑳堕弫銈夋嚄鐏炵偓鐝繛缈犵婵晠宕濋妸褎鏆?*/
    body.theme-dark,
    body.theme-light,
    body.theme-sunset,
    body.theme-ocean {
        animation: none !important;
        background-size: 100% 100% !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊几娴ｇ甯ㄩ柤鍐叉湰濞?*/
    .bg-aurora {
        display: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊及閻斿憡袝闂傚偆浜為崕?*/
    .bg-stars {
        animation: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊礂婢跺顎炴繛鎼枛婵?*/
    .bg-glow {
        animation: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊础閿涘嫬顣婚柛蹇嬪劚濠р偓闁告柣鍔庨弫?*/
    .info-card {
        animation: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊础閿涘嫬顣婚柟顕呭墯鐠囩偤寮崼鐔轰函闁挎稑鐗婃晶婊堝嫉閻戞姊鹃柡鍫濃€渙ver闁?*/
    .info-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊础閿涘嫬顣诲鑸垫尦閸庢挳宕楁径瀣珡婵炵繝绀佹慨?*/
    .card-header::before {
        animation: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈団偓浣冨閸╁懘骞愭径鎰唉婵炴挻鍔曡ぐ澶愬礉閵娧勬毎 */
    .tab-btn.active {
        animation: none !important;
        background-size: 100% 100% !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊箰婢舵劖灏︽繛鎾村姇瑜板宕濋妸褎鏆?*/
    .btn-primary {
        animation: none !important;
        background-size: 100% 100% !important;
    }
    
    /* 缂佸倷鑳堕弫銈嗘交濞戞ê顔婇柡澶涚節濡垶宕?*/
    .progress-bar-fill::after {
        animation: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈夊炊閻愵剛鍨奸柟顕呭墯鐠囩偤宕濋妸褎鏆?*/
    .info-card:hover .card-icon {
        transform: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈囩矚閾忕懓笑闁诡兛鐒︾拠鐐哄礉?*/
    .empty-state-icon {
        animation: none !important;
    }
    
    /* 缂佸倷鑳堕弫顥瞣go婵炴惌鍠栨慨?*/
    .logo {
        animation: none !important;
    }
    
    /* 缂佸倷鑳堕弫銈夋偐閼哥鍋撴担鍝勪化闁兼潙顦崯?*/
    .status-dot {
        animation: none !important;
    }
    
    /* 缂佺姭鍋撻柛鏍ㄧ墪瀹曢亶鎮ч崶顒佇憸?*/
    .info-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    /* 缂佺姭鍋撻柛鏍ㄧ墳閸庢寮?*/
    body::before, body::after {
        display: none !important;
    }
}

/* 閻忓繐锕崳鎼佹偨閵婏箑鐓曢柣銊ュ閸ｈ櫣浜搁幋婵喰楅柣銏ｎ嚙娴滃憡绺?*/
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 闁瑰吋绮庨崒銊ヮ嚈妤︽鍞?*/
.search-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.search-suggestion-item:hover {
    background: rgba(255,255,255,0.1);
}

/* ==================== 鍏憡妯箙 ==================== */
.announce-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 0 auto 12px;
    max-width: 1200px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: var(--bg-card, rgba(30, 30, 60, 0.9));
    border-radius: var(--radius-card, 14px);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.announce-banner[hidden] {
    display: none !important;
}
.announce-icon {
    flex-shrink: 0;
    font-size: 16px;
}
.announce-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-word;
}
.announce-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.announce-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}
/* 娴呰壊涓婚閫傞厤 */
body.theme-light .announce-banner {
    background: var(--bg-card, rgba(255, 255, 255, 0.95));
    border-color: rgba(102, 126, 234, 0.35);
}
body.theme-light .announce-text {
    color: rgba(0, 0, 0, 0.8);
}
body.theme-light .announce-close {
    color: rgba(0, 0, 0, 0.5);
}
body.theme-light .announce-close:hover {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.05);
}
/* 绉诲姩绔€傞厤 */
@media (max-width: 768px) {
    .announce-banner {
        margin: 0 10px 10px;
        padding: 8px 12px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    .announce-text {
        order: 3;
        flex-basis: 100%;
        margin-top: 4px;
    }
}
/* ==================== 回到顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(255,215,0,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.5);
}
.back-to-top[hidden] {
    display: none !important;
}

/* ==================== 键盘焦点可见 ==================== */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ==================== 主题化滚动条 ==================== */
/* 深色主题 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,215,0,0.35);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,215,0,0.55);
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,215,0,0.35) rgba(255,255,255,0.06);
}
/* 浅色主题 */
body.theme-light ::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.06);
}
body.theme-light ::-webkit-scrollbar-thumb {
    background: rgba(102,126,234,0.4);
}
body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: rgba(102,126,234,0.6);
}
body.theme-light * {
    scrollbar-color: rgba(102,126,234,0.4) rgba(0,0,0,0.06);
}