/* ============================================================
   Xiao998's Page — Frutiger Aero 主题
   天空 / 玻璃 / 高光气泡 / 拟物按钮 / WMP11 风播放器
   主题色由后台设置，通过 --aero-* CSS 变量全局联动
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--aero-font);
    color: var(--aero-ink);
    background-color: var(--aero-bg-top);
    /* 天空渐变：由主题色派生 */
    background-image:
        radial-gradient(1100px 520px at 82% -8%, var(--aero-sun), transparent 62%),
        radial-gradient(900px 480px at -8% 4%, var(--aero-secondary), transparent 55%),
        linear-gradient(180deg, var(--aero-bg-top) 0%, var(--aero-bg-mid) 52%, var(--aero-bg-bottom) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.65;
}

a { color: var(--aero-primary-deep); text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 3px solid var(--aero-glow);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- 场景：太阳光晕 + 漂浮气泡 ---------- */
.scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.sunflare {
    position: absolute; top: -220px; right: -160px; width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,248,214,.55) 22%, transparent 62%);
    border-radius: 50%;
    filter: blur(2px);
}

.bubble {
    position: absolute; bottom: -90px;
    width: 44px; height: 44px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.28) 34%, rgba(255,255,255,.06) 68%, transparent 72%);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: inset 0 -6px 10px rgba(255,255,255,.25);
    animation: floatUp 16s linear infinite;
}
.b1 { left: 6%;  width: 34px; height: 34px; animation-duration: 19s; animation-delay: -3s; }
.b2 { left: 16%; width: 18px; height: 18px; animation-duration: 14s; animation-delay: -8s; }
.b3 { left: 34%; width: 58px; height: 58px; animation-duration: 24s; animation-delay: -12s; }
.b4 { left: 55%; width: 26px; height: 26px; animation-duration: 17s; animation-delay: -1s; }
.b5 { left: 74%; width: 46px; height: 46px; animation-duration: 21s; animation-delay: -16s; }
.b6 { left: 90%; width: 20px; height: 20px; animation-duration: 13s; animation-delay: -6s; }

@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: .9; }
    50%  { transform: translateY(-52vh) translateX(26px); }
    92%  { opacity: .9; }
    100% { transform: translateY(-108vh) translateX(-14px); opacity: 0; }
}

/* ---------- 玻璃面板 ---------- */
.glass {
    position: relative;
    background: linear-gradient(158deg, var(--aero-glass-bright) 0%, var(--aero-glass) 46%, rgba(255,255,255,.24) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: var(--aero-radius);
    box-shadow:
        0 12px 34px rgba(10,61,92,.16),
        0 2px 6px rgba(10,61,92,.08),
        inset 0 1px 0 rgba(255,255,255,.95),
        inset 0 -16px 28px rgba(255,255,255,.22);
}
/* 顶部镜面高光带（Aero 经典反光） */
.glass::before {
    content: "";
    position: absolute; left: 7%; right: 7%; top: 0; height: 42%;
    background: radial-gradient(120% 95% at 50% -18%, rgba(255,255,255,.66), rgba(255,255,255,0) 62%);
    border-radius: inherit;
    pointer-events: none;
}

/* ---------- 顶部导航 ---------- */
.topbar {
    position: sticky; top: 14px; z-index: 50;
    width: min(1080px, calc(100% - 32px));
    margin: 14px auto 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 22px;
    border-radius: 999px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--aero-ink); font-weight: 700; font-size: 17px; letter-spacing: .4px; }

.brand-orb {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    background: radial-gradient(circle at 30% 26%, #fff 0%, rgba(255,255,255,.9) 12%, var(--aero-primary-light) 34%, var(--aero-primary) 62%, var(--aero-primary-deep) 100%);
    box-shadow: 0 4px 12px var(--aero-glow), inset 0 -3px 6px rgba(0,0,0,.16), inset 0 3px 5px rgba(255,255,255,.8);
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
    padding: 7px 16px; border-radius: 999px;
    color: var(--aero-ink-soft); font-size: 14.5px; font-weight: 600;
    transition: background .18s, color .18s, box-shadow .18s;
}
.nav-link:hover, .nav-link.on {
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
    color: var(--aero-primary-deep);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 3px 10px var(--aero-glow-soft);
}
.nav-admin { border: 1px solid rgba(255,255,255,.7); }

.btn-plain { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---------- 主容器 ---------- */
.wrap {
    position: relative; z-index: 1;
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    display: flex; flex-direction: column; gap: 44px;
    padding: 30px 0 130px;
}

/* ---------- Hero 欢迎区 ---------- */
.hero { padding-top: 6px; }

.hero-welcome { padding: 40px 46px; text-align: center; }

.eyebrow {
    display: inline-block;
    padding: 4px 14px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
    border: 1px solid rgba(255,255,255,.85);
    color: var(--aero-primary-deep);
    font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
    box-shadow: 0 3px 10px var(--aero-glow-soft);
}

.hero-title {
    margin: 16px auto 10px;
    max-width: 720px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800; letter-spacing: .5px; line-height: 1.45;
    background: linear-gradient(180deg, var(--aero-primary-deep) 0%, var(--aero-primary) 58%, var(--aero-secondary) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub { color: var(--aero-ink-soft); font-size: 15px; }

.hero-actions { margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 拟物光泽按钮 ---------- */
.btn-aero {
    position: relative; display: inline-block;
    padding: 12px 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.75);
    background: linear-gradient(180deg, var(--aero-primary-light) 0%, var(--aero-primary) 48%, var(--aero-primary-deep) 100%);
    color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
    box-shadow: 0 7px 18px var(--aero-glow), inset 0 2px 3px rgba(255,255,255,.85), inset 0 -4px 8px rgba(0,0,0,.22);
    overflow: hidden;
    transition: transform .15s, filter .15s, box-shadow .15s;
}
/* 顶部高光盖 */
.btn-aero::before {
    content: ""; position: absolute; top: 6%; left: 10%; right: 10%; height: 42%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.08));
    pointer-events: none;
}
.btn-aero:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 24px var(--aero-glow), inset 0 2px 3px rgba(255,255,255,.85), inset 0 -4px 8px rgba(0,0,0,.22); }
.btn-aero:active { transform: translateY(1px); }

.btn-small { padding: 8px 20px; font-size: 13.5px; }
.btn-mini  { padding: 4px 12px; font-size: 12.5px; border-radius: 999px; }

.btn-ghost {
    display: inline-block; padding: 11px 26px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
    border: 1px solid rgba(255,255,255,.9);
    color: var(--aero-ink); font-weight: 600; font-size: 15px; cursor: pointer;
    box-shadow: 0 5px 14px rgba(10,61,92,.12), inset 0 2px 2px rgba(255,255,255,.9);
    transition: transform .15s, box-shadow .15s;
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--aero-glow-soft), inset 0 2px 2px rgba(255,255,255,.9); }

.btn-danger {
    display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7);
    background: linear-gradient(180deg, #FFA3B8, var(--aero-danger));
    color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    box-shadow: 0 4px 10px rgba(233,92,122,.35), inset 0 2px 2px rgba(255,255,255,.7);
}
.btn-danger:hover { filter: brightness(1.06); }

/* ---------- 轮播 ---------- */
.carousel { padding: 10px; }

.carousel-stage {
    position: relative; height: 400px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-secondary));
}

.slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity .9s ease;
    display: flex; align-items: flex-end;
}
.slide.on { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.slide-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(8,40,60,.62) 100%);
}

.slide-caption {
    position: relative; z-index: 1;
    padding: 30px 36px; color: #fff; max-width: 640px;
}
.slide-title { font-size: 26px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.4); margin-bottom: 6px; }
.slide-subtitle { font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.4); margin-bottom: 14px; }
.slide-empty .slide-caption { color: var(--aero-ink); text-shadow: none; }
.slide-empty .slide-title { text-shadow: none; }
.slide-empty .slide-subtitle { text-shadow: none; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8);
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
    color: var(--aero-primary-deep); font-size: 24px; line-height: 1; cursor: pointer;
    box-shadow: 0 5px 14px rgba(10,61,92,.18), inset 0 2px 2px rgba(255,255,255,.95);
    z-index: 5;
    transition: transform .15s, box-shadow .15s;
}
.carousel-btn:hover { box-shadow: 0 8px 20px var(--aero-glow-soft), inset 0 2px 2px rgba(255,255,255,.95); }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }
.carousel-btn:active { transform: translateY(-50%) scale(.94); }

.carousel-dots {
    position: absolute; left: 0; right: 0; bottom: 12px;
    display: flex; gap: 8px; justify-content: center; z-index: 5;
}
.dot {
    width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.9); cursor: pointer;
    background: rgba(255,255,255,.45);
    transition: width .25s, background .25s;
}
.dot.on { width: 30px; background: #fff; }

/* ---------- 区块标题 ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.section-title {
    margin-top: 8px; font-size: 25px; font-weight: 800; letter-spacing: .5px;
    color: var(--aero-ink);
    text-shadow: 0 1px 0 rgba(255,255,255,.9);
}

/* ---------- 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card { padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px var(--aero-glow-soft), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -16px 28px rgba(255,255,255,.28); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.date-pill, .views-pill {
    padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.45));
    border: 1px solid rgba(255,255,255,.8);
    color: var(--aero-ink-soft);
}

.card-title { font-size: 17.5px; font-weight: 700; line-height: 1.4; }
.card-title a { color: var(--aero-ink); }
.card-title a:hover { color: var(--aero-primary-deep); }

.card-excerpt { color: var(--aero-ink-soft); font-size: 13.5px; flex: 1; }

.card-more { font-size: 13.5px; font-weight: 700; color: var(--aero-primary-deep); }
.card-more:hover { text-decoration: underline; }

/* ---------- 空状态 ---------- */
.empty { padding: 34px; text-align: center; color: var(--aero-ink-soft); }
.empty-icon { font-size: 30px; display: block; margin-bottom: 8px; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.pager-item {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; font-weight: 700; font-size: 13.5px;
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.5));
    border: 1px solid rgba(255,255,255,.9);
    color: var(--aero-ink-soft);
    box-shadow: 0 3px 8px rgba(10,61,92,.1), inset 0 1px 1px rgba(255,255,255,.95);
}
.pager-item.current {
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-primary));
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    box-shadow: 0 4px 12px var(--aero-glow), inset 0 2px 2px rgba(255,255,255,.7);
}
.pager-item:not(.current):hover { color: var(--aero-primary-deep); transform: translateY(-1px); }

/* ---------- 留言板 ---------- */
.gb-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }

.gb-list { display: flex; flex-direction: column; gap: 16px; }
.gb-list .pager { margin-top: 4px; }

.gb-bubble { display: flex; gap: 12px; align-items: flex-start; }

.gb-avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-primary));
    border: 2px solid rgba(255,255,255,.9);
    color: #fff; font-weight: 800; font-size: 16px;
    box-shadow: 0 4px 10px var(--aero-glow), inset 0 2px 2px rgba(255,255,255,.8);
}

.gb-body {
    position: relative; flex: 1;
    padding: 14px 18px; border-radius: 18px;
    background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.55));
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 6px 16px rgba(10,61,92,.1), inset 0 1px 0 rgba(255,255,255,.95);
}
/* 气泡小尾巴 */
.gb-body::before {
    content: ""; position: absolute; left: -7px; top: 18px;
    width: 13px; height: 13px;
    background: rgba(255,255,255,.85);
    border-left: 1px solid rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.85);
    transform: rotate(45deg);
}
.gb-bubble.alt .gb-body {
    background: linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
}
.gb-bubble.alt .gb-body::before { background: rgba(255,255,255,.72); }

.gb-meta { display: flex; align-items: baseline; gap: 10px; }
.gb-name { font-weight: 800; font-size: 14px; color: var(--aero-primary-deep); }
.gb-time { font-size: 12px; color: var(--aero-ink-soft); }
.gb-content { margin-top: 4px; font-size: 14px; color: var(--aero-ink); word-break: break-word; }

.gb-form-wrap { padding: 24px; position: sticky; top: 96px; }
.gb-form-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; }

.gb-form { display: flex; flex-direction: column; gap: 8px; }

.field-label { font-size: 13px; font-weight: 700; color: var(--aero-ink-soft); margin-top: 6px; }

.field {
    width: 100%; padding: 10px 14px; border-radius: 13px;
    border: 1px solid rgba(255,255,255,.95);
    background: rgba(255,255,255,.7);
    font-family: inherit; font-size: 14px; color: var(--aero-ink);
    box-shadow: inset 0 2px 5px rgba(10,61,92,.09), 0 1px 0 rgba(255,255,255,.9);
    transition: border-color .15s, box-shadow .15s;
}
.field:focus { outline: none; border-color: var(--aero-primary); box-shadow: 0 0 0 4px var(--aero-glow-soft), inset 0 2px 5px rgba(10,61,92,.09); }
textarea.field { resize: vertical; }
.field-short { width: 120px; }

.gb-form .btn-aero { margin-top: 12px; align-self: flex-start; }

/* ---------- 面包屑 / 文章页 ---------- */
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; padding: 10px 20px; border-radius: 999px; font-size: 13.5px; color: var(--aero-ink-soft); align-self: flex-start; }
.crumb-here { color: var(--aero-primary-deep); font-weight: 700; }

.post { padding: 34px 40px; }
.post-head { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.post-title { font-size: 28px; font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.post-content { font-size: 15.5px; line-height: 1.9; color: var(--aero-ink); word-break: break-word; }
.post-admin { margin-top: 22px; }

.comments { display: flex; flex-direction: column; gap: 18px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment { padding: 18px 22px; display: flex; gap: 12px; align-items: flex-start; border-radius: 18px; }
.comments .gb-form-wrap { position: static; }

/* ---------- 页脚 ---------- */
.footer { position: relative; z-index: 1; padding: 0 16px 26px; }
.footer-inner { padding: 16px 24px; text-align: center; font-size: 13px; color: var(--aero-ink-soft); border-radius: 999px; }

/* ---------- 气泡播放器（标志性元素） ---------- */
.player { position: fixed; right: 24px; bottom: 24px; z-index: 90; }

.player-orb {
    position: relative; width: 68px; height: 68px; border-radius: 50%;
    margin-left: auto; cursor: pointer;
    background: radial-gradient(circle at 30% 24%, #fff 0%, rgba(255,255,255,.95) 10%, var(--aero-primary-light) 32%, var(--aero-primary) 60%, var(--aero-primary-deep) 100%);
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 8px 22px var(--aero-glow), inset 0 -6px 12px rgba(0,0,0,.2), inset 0 5px 8px rgba(255,255,255,.85);
    animation: orbBreathe 3.4s ease-in-out infinite;
    display: flex; align-items: center; justify-content: center;
    transition: transform .18s;
}
.player-orb:hover { transform: scale(1.06); }
.player-orb:active { transform: scale(.95); }

@keyframes orbBreathe {
    0%, 100% { box-shadow: 0 8px 22px var(--aero-glow), inset 0 -6px 12px rgba(0,0,0,.2), inset 0 5px 8px rgba(255,255,255,.85); }
    50%      { box-shadow: 0 8px 34px var(--aero-glow), 0 0 0 12px var(--aero-glow-soft), inset 0 -6px 12px rgba(0,0,0,.2), inset 0 5px 8px rgba(255,255,255,.85); }
}

.player.playing .player-orb { animation: orbBreathe 2s ease-in-out infinite; }

.orb-gloss {
    position: absolute; top: 8%; left: 14%; right: 14%; height: 34%; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.05));
    pointer-events: none;
}
.orb-icon { color: #fff; font-size: 26px; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,.35); position: relative; }

.player-panel {
    position: absolute; right: 0; bottom: 86px;
    width: 320px; padding: 20px;
    border-radius: 26px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    animation: panelIn .3s ease;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.player-head { display: flex; gap: 14px; align-items: center; }

.player-cover { width: 76px; height: 76px; flex: none; position: relative; }

.cover-disc {
    width: 76px; height: 76px; border-radius: 50%;
    background:
        radial-gradient(circle, var(--aero-primary) 0 11%, transparent 12%),
        repeating-radial-gradient(circle, #F2FAFD 0 2px, #D6ECF6 2px 4px);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 5px 14px rgba(10,61,92,.22), inset 0 2px 3px rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.player.playing .cover-disc { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 光盘高光扫过 */
.cover-disc::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.65) 0%, transparent 42%);
    pointer-events: none;
}
.disc-hole {
    width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff, var(--aero-primary-deep));
    box-shadow: 0 0 0 3px rgba(255,255,255,.55);
    position: relative; z-index: 2;
}
/* 有封面时覆盖在光盘纹路上 */
.disc-cover {
    position: absolute; inset: 0; border-radius: 50%;
    object-fit: cover; z-index: 1;
}
.cover-reflection {
    position: absolute; top: 100%; left: 0; right: 0; height: 30px; margin-top: 2px;
    background: radial-gradient(circle, var(--aero-primary) 0 11%, transparent 12%),
                repeating-radial-gradient(circle, #F2FAFD 0 2px, #D6ECF6 2px 4px);
    background-size: 76px 76px; background-position: center top; background-repeat: no-repeat;
    border-radius: 50%;
    transform: scaleY(-1); opacity: .28;
    -webkit-mask-image: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.9));
    mask-image: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.9));
    pointer-events: none;
}

.player-meta { flex: 1; min-width: 0; }
.player-title { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 12px; color: var(--aero-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.icon-btn {
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.85); cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
    color: var(--aero-primary-deep); font-size: 15px; font-weight: 800;
    box-shadow: 0 3px 8px rgba(10,61,92,.14), inset 0 2px 2px rgba(255,255,255,.95);
}
.icon-btn:hover { filter: brightness(1.03); }

/* 可视化频谱 */
.viz { width: 100%; height: 44px; display: block; margin: 10px 0 6px; }

/* 进度条 */
.player-progress {
    position: relative; height: 14px; cursor: pointer;
}
.player-progress::before {
    content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 6px; border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
    box-shadow: inset 0 1px 3px rgba(10,61,92,.2), 0 1px 0 rgba(255,255,255,.9);
}
.progress-fill {
    position: absolute; top: 5px; left: 0; height: 6px; width: 0; border-radius: 999px;
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-primary-deep));
    box-shadow: 0 1px 4px var(--aero-glow);
}
.progress-knob {
    position: absolute; top: 1px; width: 14px; height: 14px; border-radius: 50%;
    left: 0; transform: translateX(-50%);
    background: radial-gradient(circle at 32% 28%, #fff 0%, var(--aero-primary-light) 40%, var(--aero-primary) 100%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 2px 6px rgba(10,61,92,.35), inset 0 1px 1px rgba(255,255,255,.9);
    opacity: 0; transition: opacity .15s;
}
.player-progress:hover .progress-knob { opacity: 1; }

.player-time { display: flex; justify-content: space-between; font-size: 11px; color: var(--aero-ink-soft); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* 控制按钮 */
.player-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; }

.ctrl-btn {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255,255,255,.85);
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
    color: var(--aero-primary-deep); font-size: 16px; font-weight: 800;
    box-shadow: 0 3px 10px rgba(10,61,92,.16), inset 0 2px 2px rgba(255,255,255,.95);
    transition: transform .12s;
}
.ctrl-btn:hover { transform: translateY(-2px); }
.ctrl-btn:active { transform: scale(.92); }

.ctrl-main {
    width: 52px; height: 52px; font-size: 20px;
    background: radial-gradient(circle at 30% 24%, #fff 0%, var(--aero-primary-light) 30%, var(--aero-primary) 62%, var(--aero-primary-deep) 100%);
    color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.35);
    box-shadow: 0 6px 16px var(--aero-glow), inset 0 3px 4px rgba(255,255,255,.8), inset 0 -4px 7px rgba(0,0,0,.22);
}

.vol-wrap { display: flex; align-items: center; gap: 6px; flex: 1; margin-left: 2px; }
.vol-icon { font-size: 13px; opacity: .85; }
.vol {
    -webkit-appearance: none; appearance: none;
    flex: 1; height: 6px; border-radius: 999px; cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
    box-shadow: inset 0 1px 3px rgba(10,61,92,.2);
}
.vol::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff, var(--aero-primary) 90%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 2px 5px rgba(10,61,92,.35);
}
.vol::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9);
    background: radial-gradient(circle at 32% 28%, #fff, var(--aero-primary) 90%);
    box-shadow: 0 2px 5px rgba(10,61,92,.35);
}

/* 播放列表抽屉 */
.playlist {
    list-style: none; margin-top: 12px; max-height: 190px; overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,.7);
    padding-top: 8px;
    scrollbar-width: thin;
}
.playlist[hidden] { display: none; }

.pl-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 12px; cursor: pointer;
    font-size: 13px;
    transition: background .15s;
}
.pl-item:hover { background: rgba(255,255,255,.6); }
.pl-item.on {
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-primary));
    color: #fff;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 2px 8px var(--aero-glow-soft);
}
.pl-index { width: 20px; text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; flex: none; }
.pl-item.on .pl-index { color: #fff; }
.pl-title { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-artist { color: var(--aero-ink-soft); font-size: 11.5px; max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item.on .pl-artist { color: rgba(255,255,255,.85); }
.pl-empty { padding: 14px; text-align: center; font-size: 12.5px; color: var(--aero-ink-soft); }

/* 歌单底部上传入口 */
.playlist-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.7);
}

/* ---------- 一起听 ---------- */
.ctrl-together { font-size: 15px; }
.ctrl-together.on {
    background: radial-gradient(circle at 30% 24%, #fff 0%, var(--aero-primary-light) 30%, var(--aero-primary) 62%, var(--aero-primary-deep) 100%);
    color: #fff;
    box-shadow: 0 6px 16px var(--aero-glow), inset 0 3px 4px rgba(255,255,255,.8), inset 0 -4px 7px rgba(0,0,0,.22);
}
.ctrl-btn.dim { opacity: .4; pointer-events: none; }

.together {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.7);
}
.together[hidden] { display: none; }

.together-head {
    display: flex; align-items: baseline; gap: 6px;
    font-size: 14px; font-weight: 800; margin-bottom: 10px;
}
.together-users { font-size: 12px; color: var(--aero-ink-soft); font-weight: 600; }

.together-body { display: flex; flex-direction: column; gap: 10px; }
.together-body[hidden] { display: none; }

.tg-join { display: flex; gap: 8px; align-items: center; }
.tg-code-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.tg-code-line { font-size: 13.5px; color: var(--aero-ink-soft); }
.tg-code {
    font-size: 20px; font-weight: 800; letter-spacing: .18em;
    background: linear-gradient(180deg, var(--aero-primary-deep), var(--aero-primary));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tg-role { font-size: 12.5px; color: var(--aero-ink-soft); }
.tg-link { font-size: 11.5px; color: var(--aero-primary-deep); word-break: break-all; }
.tg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tg-msg { margin-top: 8px; font-size: 12.5px; color: var(--aero-danger); min-height: 1em; }

/* ---------- 提示 Toast ---------- */
.toast {
    position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
    z-index: 200;
    padding: 12px 26px; border-radius: 999px;
    font-size: 14px; font-weight: 700;
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 8px 22px rgba(10,61,92,.2), inset 0 2px 2px rgba(255,255,255,.95);
    animation: toastIn .35s ease, toastOut .5s ease 4s forwards;
    max-width: calc(100vw - 40px);
}
.toast-ok {
    background: linear-gradient(180deg, #DFF7E8, #BCEBCE);
    color: #1E6B3C;
}
.toast-err {
    background: linear-gradient(180deg, #FFE3E9, #FFC9D4);
    color: #A22A47;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -16px); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------- 登录页 ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrap { position: relative; z-index: 1; width: min(400px, calc(100% - 40px)); }
.login-card { padding: 38px 34px; text-align: center; }
.login-orb {
    width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    background: radial-gradient(circle at 30% 24%, #fff 0%, var(--aero-primary-light) 30%, var(--aero-primary) 62%, var(--aero-primary-deep) 100%);
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 8px 24px var(--aero-glow), inset 0 -6px 12px rgba(0,0,0,.2), inset 0 5px 8px rgba(255,255,255,.85);
    position: relative; overflow: hidden;
}
.login-title { font-size: 24px; font-weight: 800; }
.login-sub { color: var(--aero-ink-soft); font-size: 13.5px; margin: 4px 0 18px; }
.login-card .gb-form { text-align: left; }
.login-back { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--aero-ink-soft); }
.login-back:hover { color: var(--aero-primary-deep); }

/* ---------- 后台布局 ---------- */
.admin-wrap {
    position: relative; z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 60px;
    display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: start;
}

.admin-side { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }

.side-link {
    padding: 11px 16px; border-radius: 14px;
    font-size: 14px; font-weight: 700; color: var(--aero-ink-soft);
    transition: background .15s, color .15s, box-shadow .15s;
}
.side-link:hover { background: rgba(255,255,255,.55); color: var(--aero-primary-deep); }
.side-link.on {
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-primary));
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.75), 0 4px 12px var(--aero-glow);
}

.admin-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.admin-title { font-size: 26px; font-weight: 800; text-shadow: 0 1px 0 rgba(255,255,255,.9); }

.notice {
    padding: 14px 20px; border-radius: 16px;
    background: linear-gradient(180deg, #FFF3D6, #FFE7AE);
    border: 1px solid rgba(255,255,255,.9);
    color: #7A5A12; font-size: 14px;
}

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.stat-card { padding: 20px; text-align: center; }
.stat-num {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(180deg, var(--aero-primary-deep), var(--aero-primary));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--aero-ink-soft); font-weight: 700; }

.panel { padding: 24px 26px; }
.panel-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.panel-sub { margin-top: 26px; }

.tip-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--aero-ink-soft); }
.tip-list li::before { content: "· "; color: var(--aero-primary); font-weight: 800; }

.admin-form { display: flex; flex-direction: column; gap: 8px; }
.admin-form .field { max-width: 640px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.form-actions form { display: inline; }

.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--aero-ink-soft); margin-top: 6px; }
.check-line input { width: 16px; height: 16px; accent-color: var(--aero-primary); }

.field-hint { font-size: 12.5px; color: var(--aero-ink-soft); margin-top: 6px; }

/* 表格 */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
    text-align: left; padding: 10px 12px;
    color: var(--aero-ink-soft); font-size: 12.5px; letter-spacing: .05em;
    border-bottom: 2px solid rgba(255,255,255,.85);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.6); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.45); }
.row-off td { opacity: .5; }
.td-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.td-actions form { display: inline; }
.td-text { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 54px; height: 34px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(10,61,92,.15); }

/* 主题色选择 */
.theme-pick { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 2px; }
.color-input {
    width: 74px; height: 46px; border: none; border-radius: 14px; cursor: pointer;
    background: transparent; padding: 0;
    box-shadow: 0 4px 12px rgba(10,61,92,.2), inset 0 1px 1px rgba(255,255,255,.9);
}
.preset-row { display: flex; gap: 10px; flex-wrap: wrap; }
.preset {
    padding: 8px 16px; border-radius: 999px; cursor: pointer;
    border: 2px solid rgba(255,255,255,.9);
    color: #fff; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.3);
    box-shadow: 0 4px 10px rgba(10,61,92,.18), inset 0 2px 2px rgba(255,255,255,.6);
    transition: transform .12s;
}
.preset:hover { transform: translateY(-2px); }
.preset.on { outline: 3px solid var(--aero-primary-deep); outline-offset: 2px; }

/* ---------- 语言切换器 ---------- */
.lang-select {
    margin-left: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.85);
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
    color: var(--aero-primary-deep);
    font-family: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(10,61,92,.1), inset 0 1px 1px rgba(255,255,255,.95);
    max-width: 130px;
}
.login-langs { margin-top: 14px; }
.login-langs .lang-select { margin: 0; }

/* ---------- EQ 均衡器 ---------- */
.ctrl-eq { font-size: 12.5px; font-weight: 800; letter-spacing: .5px; }
.ctrl-eq.on {
    background: radial-gradient(circle at 30% 24%, #fff 0%, var(--aero-primary-light) 30%, var(--aero-primary) 62%, var(--aero-primary-deep) 100%);
    color: #fff;
    box-shadow: 0 6px 16px var(--aero-glow), inset 0 3px 4px rgba(255,255,255,.8), inset 0 -4px 7px rgba(0,0,0,.22);
}

.eq-panel {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.7);
}
.eq-panel[hidden] { display: none; }

.eq-reset-btn {
    width: auto; height: auto; padding: 3px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.eq-sliders { display: flex; flex-direction: column; gap: 7px; }

.eq-band { display: flex; align-items: center; gap: 10px; }
.eq-label {
    flex: none; width: 42px;
    font-size: 11px; font-weight: 800; color: var(--aero-ink-soft);
    font-variant-numeric: tabular-nums;
}
.eq-slider {
    -webkit-appearance: none; appearance: none;
    flex: 1; height: 8px; border-radius: 999px; cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55));
    box-shadow: inset 0 1px 3px rgba(10,61,92,.2);
}
.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff, var(--aero-primary) 90%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: 0 2px 5px rgba(10,61,92,.35);
}
.eq-slider::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9);
    background: radial-gradient(circle at 32% 28%, #fff, var(--aero-primary) 90%);
    box-shadow: 0 2px 5px rgba(10,61,92,.35);
}
.eq-val {
    flex: none; width: 30px; text-align: right;
    font-size: 11px; font-weight: 800; color: var(--aero-primary-deep);
    font-variant-numeric: tabular-nums;
}

.eq-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.eq-preset {
    padding: 4px 12px; border-radius: 999px; cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
    border: 1px solid rgba(255,255,255,.9);
    color: var(--aero-ink-soft); font-size: 12px; font-weight: 700; font-family: inherit;
    box-shadow: 0 3px 8px rgba(10,61,92,.1), inset 0 1px 1px rgba(255,255,255,.95);
    transition: transform .12s, color .12s;
}
.eq-preset:hover { transform: translateY(-1px); color: var(--aero-primary-deep); }
.eq-preset.on {
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-primary));
    color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.75), 0 4px 12px var(--aero-glow);
}
.eq-panel.eq-disabled .eq-sliders, .eq-panel.eq-disabled .eq-presets { opacity: .4; pointer-events: none; }

/* ---------- 文字设定页语言选择 ---------- */
.texts-lang-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.texts-lang-on {
    background: linear-gradient(180deg, var(--aero-primary-light), var(--aero-primary)) !important;
    color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.25);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.75), 0 4px 12px var(--aero-glow) !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-wrap { grid-template-columns: 1fr; }
    .admin-side { position: static; flex-direction: row; overflow-x: auto; }
    .side-link { white-space: nowrap; }
}

@media (max-width: 640px) {
    .wrap { gap: 32px; padding-top: 16px; }
    .topbar { padding: 8px 14px; flex-wrap: wrap; gap: 6px; }
    .brand-name { font-size: 14.5px; }
    .nav { flex-wrap: wrap; max-width: 100%; }
    .nav-link { padding: 6px 10px; font-size: 13px; }
    .lang-select { max-width: 104px; font-size: 12px; padding: 5px 8px; }
    .hero-welcome { padding: 28px 22px; }
    .carousel-stage { height: 260px; }
    .carousel-btn.prev { left: 6px; }
    .carousel-btn.next { right: 6px; }
    .news-grid { grid-template-columns: 1fr; }
    .gb-layout { grid-template-columns: 1fr; }
    .gb-form-wrap { position: static; }
    .post { padding: 24px 20px; }
    .post-title { font-size: 22px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .player { right: 14px; bottom: 14px; }
    .player-orb { width: 60px; height: 60px; }
    .player-panel { width: min(320px, calc(100vw - 28px)); bottom: 80px; }
    .toast { top: 74px; }
}

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 无障碍：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
    .player.playing .cover-disc { animation: none; }
    .player-orb { animation: none; }
}
