/* ====== 温特科技 · 极光冰蓝（Aurora Ice）主题 ======
 * 前台：左侧竖向导航 + 主视觉 Hero + 横向宽卡片
 * 后台（admin.php / admin_panel.php）：沿用同一套变量与玻璃组件类
 */

:root {
    /* —— 玻璃组件（前台 + 后台共用）—— */
    --glass-bg: rgba(255, 255, 255, 0.10);
    --glass-bg-dark: rgba(10, 16, 34, 0.52);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-border-dark: rgba(255, 255, 255, 0.10);
    --glass-shadow: 0 14px 44px rgba(4, 10, 28, 0.30);
    --glass-shadow-lg: 0 28px 80px rgba(4, 10, 28, 0.42);

    /* —— 品牌色 —— */
    --accent: #007AFF;
    --accent-gradient: linear-gradient(135deg, #007AFF, #5856D6, #AF52DE);
    --accent-soft: rgba(0, 122, 255, 0.12);

    /* —— 极光冰蓝专用色 —— */
    --ice: #7fe3ff;
    --ice-deep: #3aa7ff;
    --ice-aurora: linear-gradient(135deg, #7fe3ff 0%, #5b8cff 50%, #b98bff 100%);
    --ice-soft: rgba(127, 227, 255, 0.14);

    /* —— 文本 —— */
    --text: #eaf4ff;
    --text-light: rgba(224, 238, 255, 0.66);

    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-ios: cubic-bezier(0.36, 0.66, 0.04, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #050a18;
    color: var(--text);
    transition: background 0.8s var(--transition), color 0.5s var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 后台页面（无 .winter-app）统一暗色玻璃风格，保证可读性 */
body:not(.winter-app) {
    --text: #ffffff;
    --text-light: rgba(255, 255, 255, 0.72);
    --glass-bg: rgba(30, 34, 60, 0.42);
    --glass-border: rgba(255, 255, 255, 0.12);
    color: var(--text);
    background: #0b1026;
}

/* ====== 壁纸层 ====== */
#wallpaper-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 1.4s var(--transition);
}

#wallpaper-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(3px) saturate(120%);
    -webkit-backdrop-filter: blur(3px) saturate(120%);
    transition: background 0.8s;
}

body.dark-mode #wallpaper-layer::after {
    background: rgba(4, 8, 20, 0.52);
    backdrop-filter: blur(4px) saturate(140%);
    -webkit-backdrop-filter: blur(4px) saturate(140%);
}

/* ====== 流星雨画布（浅色 / 深色双模式）====== */
#meteor-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    display: none;
}

/* ====== 毛玻璃通用类 ====== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
}

.glass-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 11px 22px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: transform 0.35s var(--transition-spring), background 0.35s var(--transition), box-shadow 0.35s var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}
.glass-btn:active { transform: scale(0.96); }

/* ====== 开屏动画 ====== */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, #0d2044 0%, #070d22 55%, #04060f 100%);
    overflow: hidden;
    transition: opacity 0.9s var(--transition-ios), transform 0.9s var(--transition-spring);
}
#splash-screen::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 22% 28%, rgba(127, 227, 255, 0.28), transparent 45%),
        radial-gradient(circle at 78% 62%, rgba(91, 140, 255, 0.26), transparent 45%),
        radial-gradient(circle at 50% 92%, rgba(185, 139, 255, 0.22), transparent 50%);
    animation: splashBgDrift 8s ease-in-out infinite alternate;
}
@keyframes splashBgDrift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-3%, 2%); }
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: splashIn 1.1s var(--transition-spring) both;
}
@keyframes splashIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo {
    width: 96px; height: 96px;
    margin: 0 auto 22px;
    background: rgba(127, 227, 255, 0.14);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(180, 235, 255, 0.35);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(127, 227, 255, 0.2);
    animation: logoFloat 2.6s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
}
.splash-logo i {
    font-size: 42px;
    color: var(--ice);
    animation: logoSpin 12s linear infinite;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes logoGlow {
    0%, 100% { box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(127, 227, 255, 0.2); }
    50% { box-shadow: 0 18px 60px rgba(90, 160, 255, 0.5), inset 0 0 36px rgba(180, 235, 255, 0.28); }
}

.splash-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff, #a8dcff 60%, #c9b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2.4s ease-in-out infinite;
}
@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 2px 20px rgba(127, 227, 255, 0.25)); }
    50% { filter: drop-shadow(0 2px 40px rgba(127, 227, 255, 0.6)); }
}
.splash-subtitle {
    font-size: 11px;
    letter-spacing: 9px;
    opacity: 0.6;
    margin-bottom: 44px;
    text-indent: 9px;
}

.splash-loader {
    width: 220px; height: 5px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}
.splash-loader-bar {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--ice), rgba(185, 139, 255, 0.7));
    border-radius: 3px;
    animation: splashLoad 2.4s var(--transition) forwards;
    box-shadow: 0 0 12px rgba(127, 227, 255, 0.7);
}
@keyframes splashLoad {
    0% { width: 0; }
    60% { width: 78%; }
    100% { width: 100%; }
}

.splash-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}
.splash-particles .orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 227, 255, 0.16), transparent 65%);
    animation: orbFloat linear infinite;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    50% { opacity: 0.5; }
    100% { transform: translate(var(--tx, 40px), var(--ty, -40px)) scale(1.2); opacity: 0.15; }
}

#splash-screen.hide {
    opacity: 0;
    transform: scale(1.12);
    pointer-events: none;
}

/* ============================================================
 *  前台 · 应用外壳（左侧竖向导航 + 主内容）
 * ============================================================ */
#app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    animation: shellIn 0.9s var(--transition-spring) both;
}
@keyframes shellIn {
    0% { opacity: 0; transform: translateY(36px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— 极光装饰层 —— */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.aurora-ribbon {
    position: absolute;
    width: 62vw;
    height: 42vh;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.42;
    mix-blend-mode: screen;
}
.aurora-ribbon.r1 {
    top: -14vh; left: -10vw;
    background: radial-gradient(ellipse at center, rgba(127, 227, 255, 0.85), transparent 70%);
    animation: auroraDrift1 16s ease-in-out infinite alternate;
}
.aurora-ribbon.r2 {
    top: 26vh; left: 32vw;
    background: radial-gradient(ellipse at center, rgba(120, 160, 255, 0.75), transparent 70%);
    animation: auroraDrift2 21s ease-in-out infinite alternate;
}
.aurora-ribbon.r3 {
    bottom: -18vh; right: -12vw;
    background: radial-gradient(ellipse at center, rgba(185, 139, 255, 0.7), transparent 70%);
    animation: auroraDrift3 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(9vw, 7vh) scale(1.18); }
}
@keyframes auroraDrift2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-11vw, -6vh) scale(0.92); }
}
@keyframes auroraDrift3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-8vw, -9vh) scale(1.22); }
}
body:not(.dark-mode) .aurora-ribbon { opacity: 0.30; mix-blend-mode: normal; }

/* —— 左侧竖向导航 —— */
.side-rail {
    flex: 0 0 236px;
    width: 236px;
    align-self: flex-start;
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    padding: 24px 18px 18px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.side-rail::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--ice-aurora);
}

.rail-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px 22px;
    border-bottom: 1px solid var(--glass-border);
}
.rail-logo {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #06121f;
    background: var(--ice-aurora);
    box-shadow: 0 8px 24px rgba(91, 140, 255, 0.42);
    animation: railLogoPulse 4s ease-in-out infinite;
}
@keyframes railLogoPulse {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.08) rotate(8deg); }
}
.rail-name {
    display: flex;
    flex-direction: column;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.5px;
}
.rail-name em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2.4px;
    opacity: 0.55;
    margin-top: 2px;
}

.rail-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
}
.rail-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.35s var(--transition-spring);
}
.rail-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: 0.9;
}
.rail-link::after {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 0;
    border-radius: 3px;
    background: var(--ice-aurora);
    transform: translateY(-50%);
    transition: height 0.35s var(--transition-spring);
}
.rail-link:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text);
    transform: translateX(3px);
}
.rail-link.active {
    background: var(--ice-soft);
    color: var(--ice);
    box-shadow: inset 0 0 0 1px rgba(127, 227, 255, 0.28);
}
.rail-link.active::after { height: 22px; }

.rail-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}
.rail-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: 13px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s var(--transition-spring);
}
.rail-btn i { color: var(--ice); }
.rail-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}
.rail-visitors {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--ice-soft);
}
.rail-visitors i { color: var(--ice); }
.rail-visitors span { color: var(--text); font-variant-numeric: tabular-nums; }

/* —— 主内容区 —— */
.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* —— Hero 主视觉 —— */
.hero {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--glass-shadow-lg);
    animation: heroIn 0.9s var(--transition-spring) 0.1s both;
}
@keyframes heroIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.9s var(--transition), background 0.9s var(--transition);
    transform: scale(1.02);
}
.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 8, 20, 0.05) 0%, rgba(4, 8, 20, 0.55) 62%, rgba(4, 8, 20, 0.82) 100%),
        linear-gradient(120deg, rgba(6, 16, 36, 0.55), transparent 60%);
}
body:not(.dark-mode) .hero-veil {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(12, 24, 48, 0.42) 62%, rgba(12, 24, 48, 0.7) 100%),
        linear-gradient(120deg, rgba(20, 40, 80, 0.35), transparent 60%);
}
.hero-copy {
    position: relative;
    z-index: 2;
    padding: 40px 44px 46px;
    color: #fff;
    max-width: 780px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #d9f3ff;
    background: rgba(127, 227, 255, 0.16);
    border: 1px solid rgba(127, 227, 255, 0.34);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 16px;
}
.hero-tag i { color: var(--ice); animation: logoSpin 14s linear infinite; }
.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.hero-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 20px;
    max-width: 560px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-meta i { color: var(--ice); }
.hero-meta b { color: #fff; font-variant-numeric: tabular-nums; }

.hero-dots {
    position: absolute;
    right: 30px; bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: all 0.35s var(--transition-spring);
}
.hero-dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--ice);
    box-shadow: 0 0 12px rgba(127, 227, 255, 0.75);
}

/* —— 通用面板 —— */
.panel {
    animation: panelIn 0.75s var(--transition-spring) both;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.panel-head h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.panel-head h2 i {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #06121f;
    background: var(--ice-aurora);
    box-shadow: 0 7px 20px rgba(91, 140, 255, 0.34);
}
.panel-hint {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--text-light);
}
.live-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #34C759;
    margin-left: auto;
    animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.45); }
    50% { box-shadow: 0 0 0 9px rgba(52, 199, 89, 0); }
}

/* —— 下载：横向宽卡片 —— */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.dl-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.45s var(--transition-spring), box-shadow 0.45s var(--transition-spring), border-color 0.45s var(--transition-spring);
    animation: cardIn 0.6s var(--transition-spring) both;
}
@keyframes cardIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.dl-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 227, 255, 0.14), transparent);
    transition: left 0.75s;
    z-index: 1;
}
.dl-card:hover::before { left: 100%; }
.dl-card:hover {
    transform: translateY(-6px);
    border-color: rgba(127, 227, 255, 0.5);
    box-shadow: 0 24px 60px rgba(4, 10, 28, 0.42);
}
.dl-card:active { transform: translateY(-2px) scale(0.99); }

.dl-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    color: #06121f;
    background: var(--ice-aurora);
    box-shadow: 0 8px 22px rgba(91, 140, 255, 0.4);
    transition: transform 0.4s var(--transition-spring);
    position: relative;
    z-index: 2;
}
.dl-card:hover .dl-icon { transform: scale(1.1) rotate(-6deg); }
.dl-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}
.dl-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dl-desc {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dl-go {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ice);
    background: var(--ice-soft);
    border: 1px solid rgba(127, 227, 255, 0.28);
    transition: all 0.4s var(--transition-spring);
    position: relative;
    z-index: 2;
}
.dl-card:hover .dl-go {
    background: var(--ice);
    color: #06121f;
    transform: translateX(4px) rotate(-12deg);
}
.dl-badge {
    position: absolute;
    top: 12px; right: 14px;
    padding: 3px 10px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: #06121f;
    background: var(--ice);
    box-shadow: 0 4px 14px rgba(127, 227, 255, 0.45);
    z-index: 3;
}
.dl-file {
    margin-top: 6px;
    font-size: 11px;
    color: var(--ice);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
}

/* —— 快捷跳转：紧凑卡片 —— */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.quick-card {
    position: relative;
    padding: 20px;
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: transform 0.45s var(--transition-spring), box-shadow 0.45s var(--transition-spring), border-color 0.45s var(--transition-spring);
    animation: cardIn 0.6s var(--transition-spring) both;
}
.quick-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(185, 139, 255, 0.5);
    box-shadow: 0 22px 54px rgba(4, 10, 28, 0.42);
}
.quick-card:active { transform: translateY(-2px) scale(0.99); }
.quick-icon {
    width: 46px; height: 46px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #06121f;
    background: linear-gradient(135deg, #b98bff, #7fe3ff);
    box-shadow: 0 8px 20px rgba(185, 139, 255, 0.36);
    margin-bottom: 14px;
    transition: transform 0.4s var(--transition-spring);
}
.quick-card:hover .quick-icon { transform: scale(1.1) rotate(6deg); }
.quick-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}
.quick-desc {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.55;
    position: relative;
    z-index: 2;
}

/* —— 公告 —— */
.notice-body {
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.notice-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--ice-aurora);
}
.notice-body a { color: var(--ice); }

/* —— 页脚 —— */
.site-foot {
    padding: 18px 24px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 12.5px;
    color: var(--text-light);
}

/* ====== 音乐播放器（底部悬浮胶囊）====== */
.music-dock {
    position: fixed;
    bottom: 26px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-radius: 40px;
    z-index: 200;
    animation: playerSlideUp 0.7s var(--transition-spring) 0.75s both;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
}
@keyframes playerSlideUp {
    0% { opacity: 0; transform: translateX(-50%) translateY(70px) scale(0.9); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 168px;
}
.player-cover {
    width: 42px; height: 42px;
    border-radius: 13px;
    background: var(--ice-aurora);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06121f;
    font-size: 16px;
    animation: coverSpin 5s linear infinite paused;
    box-shadow: 0 4px 14px rgba(91, 140, 255, 0.4);
    flex-shrink: 0;
    position: relative;
}
.player-cover.playing { animation-play-state: running; }
@keyframes coverSpin { to { transform: rotate(360deg); } }
.player-text { overflow: hidden; }
.player-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.player-artist {
    font-size: 11px;
    color: var(--text-light);
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-controls button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s var(--transition-spring);
    font-size: 13px;
}
.player-controls button:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.16);
}
#play-btn {
    width: 44px !important;
    height: 44px !important;
    background: var(--ice) !important;
    color: #06121f !important;
    font-size: 15px !important;
    box-shadow: 0 6px 18px rgba(127, 227, 255, 0.45);
}
#play-btn:hover { transform: scale(1.12); background: #a8ecff !important; }
.now-playing .player-cover::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(127, 227, 255, 0.45);
    animation: ringExpand 1.8s ease-out infinite;
}
@keyframes ringExpand {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ====== 壁纸选择器 ====== */
#wallpaper-picker {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 8, 20, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}
.wallpaper-picker-content {
    width: 92%;
    max-width: 760px;
    max-height: 82vh;
    border-radius: var(--radius-xl);
    padding: 26px;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.45s var(--transition-spring);
    border: 1px solid var(--glass-border);
    background: rgba(14, 22, 44, 0.86);
    color: #fff;
}
.picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.picker-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
}
.picker-header button {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-spring);
}
.picker-header button:hover {
    background: rgba(255, 59, 48, 0.28);
    transform: rotate(90deg);
    color: #FF3B30;
}
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.wallpaper-item {
    aspect-ratio: 16/9;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border: 3px solid transparent;
    transition: transform 0.4s var(--transition-spring), border-color 0.4s var(--transition-spring), box-shadow 0.4s var(--transition-spring);
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.wallpaper-item:hover {
    transform: scale(1.07) translateY(-3px);
    border-color: var(--ice);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}
.wallpaper-item.active {
    border-color: var(--ice);
    box-shadow: 0 0 0 4px rgba(127, 227, 255, 0.28);
}
.wallpaper-item .wp-label {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10px;
    text-align: center;
}
.wallpaper-item.meteor-wp {
    outline: 2px solid rgba(127, 227, 255, 0.65);
    box-shadow: 0 0 22px rgba(127, 227, 255, 0.4);
}
.wallpaper-item.meteor-wp::before {
    content: '☄ 流星雨';
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    color: #06121f;
    background: var(--ice-aurora);
    padding: 3px 9px;
    border-radius: 9px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(91, 140, 255, 0.45);
}
.wallpaper-item.dark-wp::after {
    content: '🌙';
    position: absolute;
    top: 6px; right: 6px;
    font-size: 12px;
    z-index: 2;
}

/* ====== Toast ====== */
.toast {
    position: fixed;
    top: 84px; left: 50%;
    transform: translateX(-50%);
    padding: 13px 26px;
    border-radius: 16px;
    background: rgba(10, 18, 36, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: toastIn 0.4s var(--transition-spring);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 90%;
    text-align: center;
}
@keyframes toastIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(-24px) scale(0.85); }
    60% { transform: translateX(-50%) translateY(4px) scale(1.03); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.toast.hidden { display: none; }
.toast.success { border-left: 5px solid #34C759; }
.toast.error { border-left: 5px solid #FF3B30; }
.toast.info { border-left: 5px solid var(--ice); }

/* ====== 工具类 ====== */
.hidden { display: none !important; }
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ====== 滚动入场 ====== */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s var(--transition-spring), transform 0.8s var(--transition-spring);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ====== Ripple ====== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleAnim 0.65s linear;
    pointer-events: none;
    z-index: 5;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================================
 *  后台（admin.php / admin_panel.php）组件
 * ============================================================ */
#admin-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.admin-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.admin-panel {
    position: relative;
    width: 92%;
    max-width: 740px;
    max-height: 86vh;
    border-radius: var(--radius-xl);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45);
    animation: modalIn 0.45s var(--transition-spring);
    border: 1px solid var(--glass-border);
}
@keyframes modalIn {
    0% { opacity: 0; transform: scale(0.82) translateY(40px); }
    60% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.08);
}
.admin-header h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.close-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s var(--transition-spring);
}
.close-btn:hover {
    background: rgba(255, 59, 48, 0.28);
    transform: rotate(90deg);
    color: #FF3B30;
}

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 13px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: all 0.35s var(--transition-spring);
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ice);
    box-shadow: 0 0 0 4px rgba(127, 227, 255, 0.16);
    background: rgba(255, 255, 255, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* 后台列表项输入框 / 下拉框 */
.admin-container .field-row input[type="text"],
.admin-container .field-row input[type="password"],
.admin-container .field-row select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.13);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}
.admin-container .field-row input:focus,
.admin-container .field-row select:focus {
    border-color: var(--ice);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 3px rgba(127, 227, 255, 0.14);
}
.admin-container input::placeholder,
.admin-container textarea::placeholder { color: rgba(255, 255, 255, 0.42); }

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.stat-card {
    padding: 22px 16px;
    border-radius: 18px;
    text-align: center;
    transition: all 0.4s var(--transition-spring);
    animation: cardIn 0.5s var(--transition-spring) both;
}
.stat-card:hover { transform: scale(1.05) translateY(-4px); }
.stat-icon {
    font-size: 30px;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-value {
    font-size: 30px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* 按钮 */
.add-btn, .save-btn {
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 14px;
}
.save-btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.32);
}
.save-btn:hover { background: #0066DD; transform: translateY(-2px); }
.danger-btn {
    width: 100%;
    padding: 13px;
    margin-top: 16px;
    justify-content: center;
    background: rgba(255, 59, 48, 0.14);
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.3);
    border-radius: 14px;
    font-weight: 600;
}
.danger-btn:hover { background: rgba(255, 59, 48, 0.26); }

/* 登录弹窗 */
#login-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.login-box {
    position: relative;
    width: 90%;
    max-width: 390px;
    border-radius: var(--radius-xl);
    padding: 38px 30px;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45);
    animation: modalIn 0.5s var(--transition-spring);
    text-align: center;
    border: 1px solid var(--glass-border);
}
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #7fe3ff, #5856D6, #AF52DE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-logo i {
    font-size: 26px;
    -webkit-text-fill-color: var(--ice);
}
.login-box h3 {
    margin-bottom: 26px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}
.login-btn {
    width: 100%;
    padding: 14px;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.32);
}
.login-btn:hover { background: #0066DD; transform: translateY(-2px); }

/* ====== 滚动条美化 ====== */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.38); }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    #app-shell { padding: 18px; gap: 18px; }
    .side-rail { flex-basis: 200px; width: 200px; }
    .hero-title { font-size: 34px; }
}

@media (max-width: 768px) {
    #app-shell {
        flex-direction: column;
        padding: 12px;
        gap: 16px;
    }
    .side-rail {
        position: static;
        width: 100%;
        height: auto;
        flex-basis: auto;
        padding: 16px;
    }
    .rail-nav {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        margin-top: 14px;
    }
    .rail-link { flex: 1 1 auto; padding: 10px 13px; font-size: 13px; }
    .rail-link::after { display: none; }
    .rail-foot { flex-direction: row; align-items: center; }
    .rail-btn { width: auto; flex: 1; }
    .rail-visitors { flex: 1; justify-content: center; }
    .hero { min-height: 320px; border-radius: var(--radius-lg); }
    .hero-copy { padding: 26px 22px 30px; }
    .hero-title { font-size: 27px; }
    .hero-desc { font-size: 13.5px; }
    .dl-grid { grid-template-columns: 1fr; gap: 12px; }
    .quick-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .music-dock { bottom: 14px; padding: 8px 13px; gap: 10px; border-radius: 30px; }
    .player-info { min-width: 96px; }
    .player-title { max-width: 56px; }
    .wallpaper-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .splash-title { font-size: 30px; letter-spacing: 3px; }
    .site-foot { padding: 14px; }
}