/* ==========================================================================
   唯爱导航系统 · 科幻毛玻璃主题
   作者：林傲LEO（https://leo.ss · QQ：458578）
   唯爱云网络科技工作室 https://www.viy.cn 版权所有，未经允许禁止转载
   ========================================================================== */

/* ---------- 主题变量 ---------- */
:root {
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;

    --neon-cyan: #4de2ff;
    --neon-blue: #4f8bff;
    --neon-violet: #9a7bff;
    --neon-pink: #ff5fb3;

    --topbar-h: 58px;
}

/* 深色（默认 科幻） */
:root,
[data-theme="dark"] {
    --text: #e9f1ff;
    --text-strong: #ffffff;
    --muted: #9fb1d8;
    --glass: rgba(20, 30, 66, 0.34);
    --glass-strong: rgba(18, 27, 60, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(77, 226, 255, 0.10);
    --shadow: 0 12px 40px rgba(2, 6, 23, 0.45);
    --track: rgba(255, 255, 255, 0.18);
    --card-grad: linear-gradient(135deg, rgba(77, 226, 255, 0.16), rgba(154, 123, 255, 0.10));
    --bg-mask: rgba(4, 7, 20, 0.55);
    color-scheme: dark;
}

/* 浅色（明亮毛玻璃） */
[data-theme="light"] {
    --text: #22304d;
    --text-strong: #0e1830;
    --muted: #5f6f92;
    --glass: rgba(255, 255, 255, 0.55);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.85);
    --glass-hover: rgba(77, 150, 255, 0.10);
    --shadow: 0 14px 44px rgba(60, 90, 170, 0.18);
    --track: rgba(30, 50, 100, 0.18);
    --card-grad: linear-gradient(135deg, rgba(77, 150, 255, 0.10), rgba(154, 123, 255, 0.08));
    --bg-mask: rgba(240, 244, 255, 0.5);
    color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: #04060f;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background .4s ease, color .4s ease;
}
[data-theme="light"] body { background: #dfe8fb; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
img { display: block; }

/* ---------- 动态背景层 ---------- */
.bg-layer {
    position: fixed; inset: 0; z-index: -3;
    background-size: cover; background-position: center;
    transition: opacity .5s ease;
}
body[data-bg="gradient"] .bg-layer,
.bg-layer { animation: bgShift 24s ease-in-out infinite alternate; }

body[data-preset="aurora"] .bg-layer {
    background:
        radial-gradient(42rem 30rem at 12% 8%, rgba(77, 226, 255, .28), transparent 60%),
        radial-gradient(40rem 28rem at 88% 12%, rgba(154, 123, 255, .30), transparent 60%),
        radial-gradient(46rem 34rem at 50% 100%, rgba(79, 139, 255, .22), transparent 60%),
        linear-gradient(160deg, #050a1e 0%, #0a1233 45%, #120c2e 100%);
}
body[data-preset="nebula"] .bg-layer {
    background:
        radial-gradient(40rem 30rem at 18% 20%, rgba(255, 95, 179, .24), transparent 62%),
        radial-gradient(42rem 30rem at 85% 15%, rgba(154, 123, 255, .34), transparent 62%),
        radial-gradient(50rem 36rem at 50% 105%, rgba(60, 40, 140, .45), transparent 65%),
        linear-gradient(160deg, #0c0618 0%, #170a33 50%, #05091c 100%);
}
body[data-preset="cyber"] .bg-layer {
    background:
        radial-gradient(42rem 30rem at 10% 15%, rgba(0, 255, 200, .20), transparent 60%),
        radial-gradient(40rem 28rem at 90% 85%, rgba(77, 226, 255, .24), transparent 60%),
        linear-gradient(160deg, #04120f 0%, #071d2b 55%, #020a14 100%);
}
body[data-preset="abyss"] .bg-layer {
    background:
        radial-gradient(44rem 32rem at 20% 10%, rgba(70, 110, 255, .22), transparent 62%),
        radial-gradient(46rem 34rem at 80% 90%, rgba(0, 190, 255, .18), transparent 62%),
        linear-gradient(200deg, #020617 0%, #061434 60%, #02070f 100%);
}
body[data-preset="sunset"] .bg-layer {
    background:
        radial-gradient(40rem 30rem at 16% 18%, rgba(255, 150, 90, .22), transparent 60%),
        radial-gradient(42rem 30rem at 86% 12%, rgba(255, 95, 179, .22), transparent 60%),
        radial-gradient(50rem 36rem at 50% 108%, rgba(120, 70, 200, .34), transparent 65%),
        linear-gradient(170deg, #140818 0%, #231033 55%, #070a1f 100%);
}
body[data-bg="image"] .bg-layer {
    background-image: linear-gradient(var(--bg-mask), var(--bg-mask)), var(--bg-image);
    animation: none;
}

/* 亮色模式渐变预设（与深色同色系、整体转亮） */
[data-theme="light"] body[data-preset="aurora"] .bg-layer {
    background:
        radial-gradient(42rem 30rem at 12% 8%, rgba(77, 190, 255, .35), transparent 60%),
        radial-gradient(40rem 28rem at 88% 12%, rgba(154, 123, 255, .28), transparent 60%),
        radial-gradient(46rem 34rem at 50% 100%, rgba(79, 139, 255, .22), transparent 60%),
        linear-gradient(160deg, #e8f2ff 0%, #d5e4ff 45%, #e2d9fb 100%);
}
[data-theme="light"] body[data-preset="nebula"] .bg-layer {
    background:
        radial-gradient(40rem 30rem at 18% 20%, rgba(255, 130, 195, .30), transparent 62%),
        radial-gradient(42rem 30rem at 85% 15%, rgba(154, 123, 255, .30), transparent 62%),
        radial-gradient(50rem 36rem at 50% 105%, rgba(120, 95, 220, .25), transparent 65%),
        linear-gradient(160deg, #f3e9fb 0%, #e6dcfa 50%, #dfe6fb 100%);
}
[data-theme="light"] body[data-preset="cyber"] .bg-layer {
    background:
        radial-gradient(42rem 30rem at 10% 15%, rgba(0, 220, 180, .26), transparent 60%),
        radial-gradient(40rem 28rem at 90% 85%, rgba(77, 200, 255, .28), transparent 60%),
        linear-gradient(160deg, #e2f7f2 0%, #d9eefb 55%, #d5e6f5 100%);
}
[data-theme="light"] body[data-preset="abyss"] .bg-layer {
    background:
        radial-gradient(44rem 32rem at 20% 10%, rgba(90, 130, 255, .28), transparent 62%),
        radial-gradient(46rem 34rem at 80% 90%, rgba(0, 190, 255, .22), transparent 62%),
        linear-gradient(200deg, #e3eafb 0%, #d2dffa 60%, #dbe9f7 100%);
}
[data-theme="light"] body[data-preset="sunset"] .bg-layer {
    background:
        radial-gradient(40rem 30rem at 16% 18%, rgba(255, 160, 100, .30), transparent 60%),
        radial-gradient(42rem 30rem at 86% 12%, rgba(255, 120, 190, .26), transparent 60%),
        radial-gradient(50rem 36rem at 50% 108%, rgba(150, 110, 230, .24), transparent 65%),
        linear-gradient(170deg, #fbeadd 0%, #f6ddf0 55%, #e0ddfa 100%);
}
/* 亮色模式下减弱背景动画，避免色相旋转影响浅色观感 */
[data-theme="light"] body[data-bg="gradient"] .bg-layer { animation: none; }
/* 昼夜背景：亮色模式使用专用浅色背景图（未设置时沿用深色图，由模板保证变量存在） */
[data-theme="light"] body[data-bg="image"] .bg-layer {
    background-image: linear-gradient(var(--bg-mask), var(--bg-mask)), var(--bg-image-light, var(--bg-image));
}

@keyframes bgShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(18deg) brightness(1.08); }
}

#fx-particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
#fx-cursor {
    position: fixed; top: 0; left: 0; width: 340px; height: 340px;
    margin: -170px 0 0 -170px; z-index: -1; pointer-events: none;
    background: radial-gradient(circle, rgba(77, 226, 255, .14), rgba(154, 123, 255, .06) 45%, transparent 68%);
    transition: opacity .3s ease; opacity: 0;
}

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

/* ---------- 顶部状态条 ---------- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 14px;
    padding: 0 20px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
}
.brand {
    display: flex; align-items: center; gap: 9px;
    font-weight: 800; font-size: 17px; letter-spacing: .5px;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand .logo-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan), 0 0 26px rgba(77, 226, 255, .5);
    animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .6; } }

/* ---------- 双主题 Logo ---------- */
/* 浅色主题下隐藏 dark 版，其余情况（含 dark 主题）隐藏 light 版 */
.logo-img-light { display: none; }
[data-theme="light"] .logo-img-light { display: inline-block; }
[data-theme="light"] .logo-img-dark { display: none; }

/* 顶栏小 Logo（高度固定宽度自适应，横版 Logo 不压扁） */
.brand .brand-logo {
    height: 30px; width: auto; max-width: 140px; object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 0 8px rgba(77, 226, 255, .45));
}

/* Hero 居中醒目大 Logo */
.hero-logo {
    display: flex; justify-content: center; margin-bottom: 18px;
}
.hero-logo img {
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(77, 226, 255, .55)) drop-shadow(0 6px 26px rgba(154, 123, 255, .35));
    animation: logoFloat 4.5s ease-in-out infinite;
}
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
[data-theme="light"] .hero-logo img {
    filter: drop-shadow(0 0 14px rgba(30, 107, 255, .35)) drop-shadow(0 6px 22px rgba(138, 59, 255, .25));
}
@media (prefers-reduced-motion: reduce) { .hero-logo img { animation: none; } }

.topbar-center { flex: 1; display: flex; justify-content: center; align-items: center; gap: 12px; min-width: 0; }
.clock {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 13.5px; color: var(--muted);
    white-space: nowrap;
}
.clock b { color: var(--text-strong); font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.clock .week { color: var(--neon-cyan); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.weather {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    font-size: 13px; white-space: nowrap;
}
.weather .w-icon { font-size: 16px; }
.weather .w-city { color: var(--muted); }
.weather .w-temp { font-weight: 700; color: var(--text-strong); }
.engine-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px; font-size: 12px; color: var(--muted);
    border: 1px solid var(--glass-border); background: var(--glass);
    white-space: nowrap;
}
.engine-badge::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: #3dffb0; box-shadow: 0 0 8px #3dffb0;
}
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--glass-border); background: var(--glass);
    color: var(--text); transition: .25s;
}
.icon-btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 14px rgba(77, 226, 255, .35); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- 主容器 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: calc(var(--topbar-h) + 26px); padding-bottom: 30px; }

/* ---------- Hero 大标题（Logo 覆盖模式，失效回退文字标题） ---------- */
.hero { text-align: center; padding: 30px 0 18px; animation: fadeUp .7s ease both; }
.hero-h1 {
    font-size: clamp(30px, 5.4vw, 52px);
    font-weight: 900; letter-spacing: 3px; line-height: 1.2;
    background: linear-gradient(92deg, #fff 0%, var(--neon-cyan) 30%, var(--neon-violet) 62%, var(--neon-pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 0 42px rgba(77, 226, 255, .25);
}
[data-theme="light"] .hero-h1 {
    background: linear-gradient(92deg, #0e1830, #1e6bff 45%, #8a3bff 100%);
    -webkit-background-clip: text; background-clip: text;
}
/* Logo 已展示时保留 h1 供 SEO/无障碍，但视觉隐藏 */
.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* 覆盖式大 Logo：自适应宽度、完整展现、醒目悬浮 */
.hero-cover { display: flex; justify-content: center; margin-bottom: 6px; padding: 0 6px; }
.hero-cover img {
    width: min(430px, 78vw); max-width: 100%; height: auto; object-fit: contain;
}
.hero-slogan {
    margin-top: 8px; font-size: clamp(13px, 2vw, 16px); color: var(--muted); letter-spacing: 2px;
}
.hero .deco {
    margin: 16px auto 0; width: 140px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-violet), transparent);
}

/* ---------- 首页底部访客小统计条 ---------- */
.stats-mini {
    display: flex; align-items: center; justify-content: center; gap: 4px 18px; flex-wrap: wrap;
    margin: 10px auto 14px; padding: 8px 20px; border-radius: 999px;
    width: fit-content; max-width: 100%;
    font-size: 12px; color: var(--muted);
}
.stats-mini .sm-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.stats-mini .sm-item i { font-style: normal; font-size: 12px; }
.stats-mini .sm-item b { color: var(--neon-cyan); font-family: var(--mono); font-weight: 700; }

/* ---------- 公告 ---------- */
.notice {
    display: flex; align-items: center; gap: 12px;
    margin: 20px auto 8px; max-width: 760px;
    padding: 11px 18px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    overflow: hidden; animation: fadeUp .7s .1s ease both;
}
.notice .n-tag {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
    color: #03101d; background: linear-gradient(90deg, var(--neon-cyan), #7df5c8);
}
.notice .n-track { flex: 1; overflow: hidden; position: relative; height: 22px; }
.notice .n-inner {
    position: absolute; white-space: nowrap; font-size: 13.5px; color: var(--text);
    line-height: 22px;
    animation: marquee 22s linear infinite;
}
.notice:hover .n-inner { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- 工具条：分类快切 + 过滤 + 最热 ---------- */
.toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
    margin: 22px 0 18px;
}
.toolbar-btns { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
    padding: 7px 16px; border-radius: 999px; font-size: 13px;
    border: 1px solid var(--glass-border); background: var(--glass);
    color: var(--muted); transition: .22s;
}
.chip:hover, .chip.active {
    color: #04101f; font-weight: 700;
    background: linear-gradient(90deg, var(--neon-cyan), #7df5c8);
    border-color: transparent; box-shadow: 0 6px 18px rgba(77, 226, 255, .3);
}
.filter-box { position: relative; flex: none; }
.filter-box .fb-ico {
    position: absolute; left: 12px; top: 50%; translate: 0 -50%;
    width: 15px; height: 15px; color: var(--muted); pointer-events: none;
}
/* 移动端放大镜切换钮：PC 端隐藏 */
.filter-toggle {
    display: none; width: 37px; height: 37px; border-radius: 999px;
    align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid var(--glass-border); background: var(--glass); color: var(--muted);
    transition: .22s;
}
.filter-toggle svg { width: 16px; height: 16px; }
.filter-toggle:active { color: var(--neon-cyan); border-color: var(--neon-cyan); }
#filterInput {
    width: 210px; padding: 9px 14px 9px 34px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--text); font-size: 13px; outline: none; transition: .25s;
}
#filterInput::placeholder { color: var(--muted); }
#filterInput:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(77, 226, 255, .15); width: 240px; }
.btn-hot {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 8px 15px; border-radius: 999px; font-size: 13px; cursor: pointer;
    border: 1px solid var(--glass-border); background: var(--glass); color: var(--muted);
    transition: .22s;
}
.btn-hot:hover { color: var(--neon-cyan); border-color: rgba(77, 226, 255, .5); }
.btn-hot .flame { font-size: 14px; filter: grayscale(1); transition: .2s; }
.btn-hot.active { color: #1a0b00; font-weight: 700; border-color: transparent; background: linear-gradient(90deg, #ffd34d, #ff8a3d); box-shadow: 0 6px 18px rgba(255, 150, 60, .35); }
.btn-hot.active .flame { filter: none; }

/* ---------- 分类区块 ---------- */
.cat-section { margin-bottom: 34px; scroll-margin-top: calc(var(--topbar-h) + 16px); animation: fadeUp .6s ease both; }
.cat-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.cat-head .bar { width: 5px; height: 20px; border-radius: 4px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
    box-shadow: 0 0 12px rgba(77, 226, 255, .5);
}
.cat-head h2 { font-size: 19px; font-weight: 800; color: var(--text-strong); letter-spacing: 1px; }
.cat-head .count { font-size: 12px; color: var(--muted); border: 1px solid var(--glass-border); padding: 2px 9px; border-radius: 999px; }

/* ---------- 导航卡片（一行一个横向卡片） ---------- */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-card {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 15px 18px; border-radius: var(--radius);
    background: var(--card-grad), var(--glass);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
    min-height: 74px;
}
.nav-card::before {
    content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
    background: linear-gradient(130deg, rgba(77, 226, 255, .55), transparent 40%, rgba(154, 123, 255, .55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: .45; transition: opacity .3s;
}
.nav-card::after {
    content: ""; position: absolute; top: -60%; left: -70%; width: 55%; height: 220%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .14), transparent);
    transform: rotate(8deg); transition: left .6s ease;
}
.nav-card:hover {
    transform: translateY(-6px);
    border-color: rgba(77, 226, 255, .55);
    box-shadow: 0 16px 44px rgba(5, 16, 45, .5), 0 0 22px rgba(77, 226, 255, .22);
}
.nav-card:hover::before { opacity: 1; }
.nav-card:hover::after { left: 130%; }

.card-icon {
    flex: none; width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(77, 226, 255, .22), rgba(154, 123, 255, .22));
    border: 1px solid var(--glass-border); font-size: 24px;
}
.card-icon img { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; }
.card-icon .letter {
    font-weight: 900; font-size: 19px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-body { min-width: 0; flex: 1; }
.card-body h3 { font-size: 15.5px; font-weight: 800; color: var(--text-strong); margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body p { font-size: 12.5px; color: var(--muted); line-height: 1.45;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 长描述跑马灯：JS 检测溢出后启用（双份内容无缝循环），短文本保持静止省略 */
.card-body p.mq { text-overflow: clip; letter-spacing: .2px;
    /* 两端渐隐柔边，滚动更精致 */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.card-body p .mq-in { display: inline-flex; white-space: nowrap; will-change: transform;
    animation: mqSlide var(--mq-t, 14s) linear infinite; }
.card-body p .mq-in > span { padding-right: 56px; flex: none; }
.nav-card:hover .mq-in { animation-play-state: paused; }
@keyframes mqSlide { to { transform: translateX(-50%); } }
.card-side { flex: none; color: var(--muted); transition: .25s; }
.card-side .go-arrow { font-size: 18px; }
.nav-card:hover .card-side { color: var(--neon-cyan); transform: translateX(4px); }
.hot-badge {
    position: absolute; top: 9px; right: 10px;
    font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    color: #2a1200; background: linear-gradient(90deg, #ffb347, #ff6a3d);
    box-shadow: 0 3px 10px rgba(255, 130, 60, .4);
}
.card-empty { color: var(--muted); font-size: 13px; padding: 6px 2px; }

/* ---------- 随机一言条 ---------- */
.yiyan-bar {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 11px 16px; border-radius: 999px;
    cursor: pointer; transition: border-color .25s;
}
.yiyan-bar:hover { border-color: rgba(77, 226, 255, .45); }
.yiyan-bar .yy-tag {
    flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
    color: var(--neon-cyan); border: 1px solid rgba(77, 226, 255, .35);
    background: rgba(77, 226, 255, .08);
}
[data-theme="light"] .yiyan-bar .yy-tag { color: #1e6bff; border-color: rgba(30,107,255,.3); background: rgba(30,107,255,.08); }
.yiyan-bar .yy-icon { font-size: 15px; flex: none; }
.yiyan-bar .yy-text {
    flex: 1; min-width: 0; font-size: 13.5px; color: var(--text);
    white-space: nowrap; overflow: hidden;
}
/* 内层文字：超长时 JS 驱动横向滚动展示（手机端完整阅读） */
.yiyan-bar .yy-text-inner { display: inline-block; white-space: nowrap; transition: opacity .3s; will-change: transform; }
.yiyan-bar .yy-text-inner.fading { opacity: 0; }
.yiyan-bar .yy-refresh {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; color: var(--muted);
    border: 1px solid var(--glass-border); transition: .25s;
}
.yiyan-bar .yy-refresh:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); transform: rotate(180deg); }
.yiyan-bar .yy-refresh svg { width: 13px; height: 13px; }

/* ---------- 工具箱（插件聚合选项卡） ---------- */
.toolbox {
    margin-top: 8px; padding: 22px; border-radius: 22px;
    background: var(--card-grad), var(--glass);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border); position: relative;
    /* 注意：不可加 overflow:hidden，否则绝对定位的工具下拉列表会被裁剪 */
}
.toolbox::before {
    content: "✦"; position: absolute; right: 18px; top: 6px; font-size: 70px;
    background: linear-gradient(135deg, var(--neon-violet), var(--neon-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .18;
    pointer-events: none;
}
.toolbox-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbox-head .ico { font-size: 24px; }
.toolbox-head h2 { font-size: 19px; font-weight: 800; color: var(--text-strong); }
.toolbox-head span { font-size: 12px; color: var(--muted); }

/* 工具导航：下拉选择式（节省版面） */
.tool-nav { position: relative; z-index: 30; margin-bottom: 16px; }
.tool-nav-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 700;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.05);
    color: var(--text-strong); transition: .22s;
}
[data-theme="light"] .tool-nav-btn { background: rgba(255,255,255,.6); }
.tool-nav-btn:hover { border-color: var(--neon-cyan); box-shadow: 0 0 14px rgba(77,226,255,.18); }
.tool-nav-btn .tnb-cur { display: flex; align-items: center; gap: 9px; }
.tool-nav-btn .tnb-cur i { font-style: normal; font-size: 17px; }
.tool-nav-btn .tnb-arrow { width: 16px; height: 16px; color: var(--muted); transition: transform .25s; }
.tool-nav.open .tnb-arrow { transform: rotate(180deg); }
/* 下拉浮层：absolute 顶层悬浮（JS 挂到 <body> 末尾，用文档坐标定位），滚轮/触摸直接滚动列表 */
.tool-nav-list {
    display: none; position: absolute; z-index: 2000;
    flex-direction: column; gap: 13px; padding: 14px; border-radius: 16px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
    max-height: min(70vh, 560px); overflow-y: auto;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
    scrollbar-width: thin; scrollbar-color: rgba(127,145,190,.4) transparent;
}
.tool-nav-list::-webkit-scrollbar { width: 5px; }
.tool-nav-list::-webkit-scrollbar-track { background: transparent; }
.tool-nav-list::-webkit-scrollbar-thumb { background: rgba(127,145,190,.4); border-radius: 99px; }
/* 浮层已移到 body 下，用 body 上的 class 控制显示（不依赖父子选择器） */
body.tool-nav-open .tool-nav-list { display: flex; animation: fadeUp .22s ease; }
/* 下拉遮罩：点击任意空白处关闭 */
.tool-nav-mask {
    display: none; position: fixed; inset: 0; z-index: 1990;
    background: rgba(2, 6, 18, .30);
}
[data-theme="light"] .tool-nav-mask { background: rgba(255, 255, 255, .25); }
body.tool-nav-open .tool-nav-mask { display: block; }

/* ========== 手机端：下拉浮层固定高度 + 2-3列网格 + 内置滚动条 ========== */
@media (max-width: 768px) {
    body.tool-nav-open .tool-nav-list { animation: fadeUp .22s ease; }
    .tool-nav-list {
        /* 浮层位置仍由 JS 用文档坐标算（贴按钮下方/上方），这里只约束尺寸与滚动 */
        max-height: 46vh !important;   /* 固定高度：约容纳 2-3 行网格，超出必出滚动条 */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 12px;
        gap: 10px;
        /* 手机端显示内置滚动条 */
        scrollbar-width: thin;
        scrollbar-color: rgba(77, 226, 255, .55) rgba(255, 255, 255, .06);
    }
    .tool-nav-list::-webkit-scrollbar { width: 6px; display: block; }
    .tool-nav-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, .06); border-radius: 99px; }
    .tool-nav-list::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
        border-radius: 99px;
    }
    /* 分组标签更紧凑 */
    .tt-group { gap: 6px; }
    .tt-label { font-size: 11px; padding: 0; }
    .tt-label::after { min-width: 12px; }
    /* 工具项 2-3 列网格（类似选择框选项排列） */
    .tt-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    @media (min-width: 480px) {
        .tt-items { grid-template-columns: repeat(3, 1fr); }
    }
    .tool-tab {
        padding: 8px 10px; font-size: 12px; gap: 5px;
        justify-content: center; text-align: center;
    }
    .tool-tab i { font-size: 14px; }
    .tool-tab span { overflow: hidden; text-overflow: ellipsis; }
}
.tt-group { display: flex; flex-direction: column; gap: 8px; }
.tt-label {
    display: flex; align-items: center; gap: 9px; padding: 0 2px;
    font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--text-strong);
    white-space: nowrap;
}
.tt-label::after {
    content: ""; flex: 1; height: 1px; min-width: 20px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}
.tt-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tool-tab {
    display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0;
    padding: 9px 12px; border-radius: 11px; font-size: 13px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.04);
    color: var(--text); transition: .22s; white-space: nowrap; overflow: hidden;
}
[data-theme="light"] .tool-tab { background: rgba(255,255,255,.55); }
.tool-tab i { font-style: normal; font-size: 15px; }
.tool-tab:hover { border-color: var(--neon-cyan); transform: translateY(-1px); }
.tool-tab.active {
    border-color: transparent; color: #04101f; font-weight: 700;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
    box-shadow: 0 6px 18px rgba(77, 226, 255, .35);
}

/* 面板切换动画 */
.tool-panel { display: none; position: relative; z-index: 1; }
.tool-panel.active { display: block; animation: fadeUp .35s ease; }

/* 通用工具表单 */
.tool-form { display: flex; gap: 10px; }
.tool-form.col { flex-direction: column; }
.tool-form input {
    flex: 1; padding: 10px 14px; border-radius: 12px;
    background: rgba(0,0,0,.18); border: 1px solid var(--glass-border);
    color: var(--text); font-size: 14px; outline: none;
    transition: border-color .2s;
}
[data-theme="light"] .tool-form input { background: rgba(255,255,255,.7); }
.tool-form input:focus { border-color: var(--neon-violet); }

/* 工具结果区 */
.tool-result { margin-top: 14px; }
.tool-result:empty { display: none; }
.tool-loading {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 26px 0; color: var(--muted); font-size: 13.5px;
}
.tool-loading::before {
    content: ""; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid var(--track); border-top-color: var(--neon-cyan);
    animation: spin .8s linear infinite;
}
.tool-error {
    padding: 14px 16px; border-radius: 12px; font-size: 13px;
    border: 1px solid rgba(255, 130, 150, .35); color: #ff9db0;
    background: rgba(255, 95, 130, .08);
}
[data-theme="light"] .tool-error { color: #c2304e; background: rgba(255, 95, 130, .10); }
/* 空状态占位：等待用户点击触发 */
.tool-empty {
    display: flex; align-items: center; justify-content: center;
    padding: 34px 16px; color: var(--muted); font-size: 13.5px;
    border: 1px dashed var(--glass-border); border-radius: 12px;
}

/* ==========================================================================
   公祭日默哀模式（全站灰调 + 蜡烛挂件）
   ========================================================================== */
body.mourning {
    filter: grayscale(100%) brightness(0.92);
    transition: filter .8s ease;
}
/* 蜡烛挂件：右上角固定（顶栏下方），醒目不挡操作 */
.mourning-candle {
    position: fixed; top: calc(var(--topbar-h) + 14px); right: 16px; z-index: 9998;
    width: 54px; height: 90px; pointer-events: none;
    filter: none; /* 挂件本身不灰化，保持烛光 */
}
body.mourning .mourning-candle { filter: none; }
.mourning-candle .candle-body {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 22px; height: 52px; border-radius: 4px 4px 6px 6px;
    background: linear-gradient(180deg, #fff8e7 0%, #f5e6c4 60%, #e8d5a8 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.mourning-candle .candle-wick {
    position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%);
    width: 2px; height: 6px; background: #3a2e1a;
}
.mourning-candle .candle-flame {
    position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%);
    width: 16px; height: 26px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at center 70%,
        #fff9d8 0%, #ffe89a 25%, #ffb84d 55%, #ff8a3d 85%, transparent 100%);
    box-shadow: 0 0 18px 6px rgba(255, 180, 80, .55), 0 0 40px 14px rgba(255, 150, 60, .25);
    /* 先点燃（1.8s 火焰从无到有），点燃后进入摇曳循环 */
    animation: candleIgnite 1.8s cubic-bezier(.2,.7,.3,1) both,
               candleFlicker 1.4s ease-in-out 1.8s infinite;
    transform-origin: 50% 100%;
}
/* 点燃：火星闪现 → 火苗蹿起 → 稳定 */
@keyframes candleIgnite {
    0%   { transform: translateX(-50%) scale(0); opacity: 0; }
    18%  { transform: translateX(-50%) scale(.25, .12); opacity: .55; }
    34%  { transform: translateX(-50%) scale(1.25, 1.35); opacity: 1; }
    52%  { transform: translateX(-50%) scale(.75, .8); opacity: .85; }
    70%  { transform: translateX(-50%) scale(1.12, 1.08); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
@keyframes candleFlicker {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(-1.5deg); opacity: 1; }
    25%      { transform: translateX(-52%) scale(1.06, .96) rotate(1deg); opacity: .92; }
    50%      { transform: translateX(-48%) scale(.96, 1.08) rotate(-2deg); opacity: 1; }
    75%      { transform: translateX(-51%) scale(1.04, .98) rotate(2.5deg); opacity: .95; }
}
/* 光晕脉动（随点燃渐亮） */
.mourning-candle .candle-glow {
    position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%);
    width: 90px; height: 90px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 100, .28) 0%, transparent 68%);
    animation: candleGlowIn 1.8s ease-out both,
               candleGlow 2.6s ease-in-out 1.8s infinite;
}
@keyframes candleGlowIn {
    0%  { opacity: 0; transform: translateX(-50%) scale(.2); }
    60% { opacity: 1; transform: translateX(-50%) scale(1.25); }
    100%{ opacity: .8; transform: translateX(-50%) scale(1); }
}
@keyframes candleGlow {
    0%, 100% { opacity: .8; transform: translateX(-50%) scale(1); }
    50%      { opacity: .5; transform: translateX(-50%) scale(1.14); }
}
/* 默哀横幅（顶部，可关） */
.mourning-banner {
    position: fixed; top: calc(var(--topbar-h) + 10px); left: 50%; transform: translateX(-50%);
    z-index: 9997; padding: 9px 22px; border-radius: 999px;
    background: rgba(20, 22, 28, .82); color: #d8d8d8;
    border: 1px solid rgba(255,255,255,.14);
    font-size: 13px; letter-spacing: 1px;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    animation: mourningFadeIn 1.2s ease;
    pointer-events: none; white-space: nowrap;
}
@keyframes mourningFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================================================
   节日特效挂件（右上角 / 右下角，不影响布局）
   ========================================================================== */
/* 挂件通用容器 */
.festival-widget {
    position: fixed; z-index: 9998; pointer-events: none;
    animation: widgetFadeIn 1s ease;
}
@keyframes widgetFadeIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* 挂件位置：右上角（顶栏下方，醒目可见） */
.fw-top-right { top: calc(var(--topbar-h) + 14px); right: 16px; }

/* ---------- 通用：漂浮动画 ---------- */
.fw-float { animation: fwFloat 3.2s ease-in-out infinite; }
@keyframes fwFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-10px) rotate(2deg); }
}

/* ---------- 中秋节：月亮 + 兔子 + 月饼 ---------- */
.fw-moon {
    width: 66px; height: 66px; border-radius: 50%;
    background: radial-gradient(circle at 34% 32%, #fffbe8 0%, #ffeaa8 38%, #ffd76e 68%, #f5b93d 100%);
    box-shadow: 0 0 30px 8px rgba(255, 214, 110, .45), 0 0 70px 20px rgba(255, 200, 100, .18);
    position: relative;
    animation: moonGlow 3.5s ease-in-out infinite;
}
.fw-moon::before, .fw-moon::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(240, 190, 90, .35);
}
.fw-moon::before { width: 12px; height: 12px; top: 18px; left: 20px; }
.fw-moon::after  { width: 8px; height: 8px; top: 38px; left: 40px; }
@keyframes moonGlow {
    0%, 100% { box-shadow: 0 0 30px 8px rgba(255,214,110,.45), 0 0 70px 20px rgba(255,200,100,.18); }
    50%      { box-shadow: 0 0 40px 12px rgba(255,214,110,.6), 0 0 90px 28px rgba(255,200,100,.28); }
}
/* 兔子（CSS 绘制） */
.fw-rabbit {
    position: relative; width: 40px; height: 40px; margin-top: -8px;
    animation: fwFloat 2.6s ease-in-out infinite;
}
.fw-rabbit::before { /* 身体 */
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 26px; height: 22px; border-radius: 50% 50% 46% 46%;
    background: #fff;
    box-shadow: inset -2px -3px 0 rgba(0,0,0,.06);
}
.fw-rabbit::after { /* 耳朵 */
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 7px; height: 18px; border-radius: 50% 50% 40% 40%;
    background: #fff;
    box-shadow: 9px 0 0 #fff;
    margin-left: -4px;
}
/* 月饼 */
.fw-mooncake {
    width: 34px; height: 20px; border-radius: 6px;
    background: linear-gradient(180deg, #d99a3d 0%, #b8722a 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.25);
    position: relative;
    animation: fwFloat 3s ease-in-out infinite .4s;
}
.fw-mooncake::before {
    content: '福'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #7a4a12; font-weight: bold;
}

/* ---------- 国庆节：国旗 + 星星 ---------- */
.fw-flag {
    width: 72px; height: 48px; border-radius: 4px;
    background: linear-gradient(180deg, #ee1c25 0%, #d01118 100%);
    box-shadow: 0 4px 14px rgba(238, 28, 37, .4);
    position: relative; overflow: hidden;
    animation: flagWave 2.8s ease-in-out infinite;
    transform-origin: left center;
}
.fw-flag::before { /* 大星 */
    content: '★'; position: absolute; top: 4px; left: 6px;
    font-size: 16px; color: #ffde00;
    text-shadow: 0 0 6px rgba(255, 222, 0, .8);
}
.fw-flag::after { /* 小星群 */
    content: '★★★★'; position: absolute; top: 6px; left: 28px;
    font-size: 7px; color: #ffde00; letter-spacing: 1px;
    text-shadow: 0 0 4px rgba(255, 222, 0, .8);
}
@keyframes flagWave {
    0%, 100% { transform: perspective(200px) rotateY(-6deg) skewY(0deg); }
    50%      { transform: perspective(200px) rotateY(6deg) skewY(1.5deg); }
}
/* 漂浮星星 */
.fw-stars { position: absolute; inset: 0; overflow: visible; }
.fw-star {
    position: absolute; color: #ffde00;
    animation: starTwinkle 1.8s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255, 222, 0, .9);
}
@keyframes starTwinkle {
    0%, 100% { opacity: .3; transform: scale(.7); }
    50%      { opacity: 1; transform: scale(1.2); }
}

/* ---------- 春节：灯笼 + 福字 ---------- */
.fw-lantern {
    width: 50px; height: 62px; position: relative;
    animation: lanternSwing 3.4s ease-in-out infinite;
    transform-origin: top center;
}
.fw-lantern::before { /* 灯身 */
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 40px; border-radius: 50% / 46%;
    background: radial-gradient(ellipse at 35% 30%, #ff6b5e 0%, #e62e1f 55%, #c01a0e 100%);
    box-shadow: 0 0 22px 5px rgba(255, 80, 60, .45), inset 0 -4px 8px rgba(0,0,0,.2);
}
.fw-lantern::after { /* 提绳 + 穗 */
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 2px; height: 10px; background: #8a6d1f;
    box-shadow: 0 48px 0 0 #d4af37, 0 54px 0 1px #d4af37, 0 58px 0 2px #c89b2e;
}
.fw-lantern .lantern-text {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 40px; display: flex; align-items: center; justify-content: center;
    color: #ffe08a; font-size: 18px; font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
@keyframes lanternSwing {
    0%, 100% { transform: rotate(-4deg); }
    50%      { transform: rotate(4deg); }
}

/* ---------- 圣诞节：雪花 + 圣诞树 ---------- */
.fw-tree {
    width: 0; height: 0; position: relative;
    border-left: 22px solid transparent; border-right: 22px solid transparent;
    border-bottom: 36px solid #1e7a3c;
    filter: drop-shadow(0 4px 10px rgba(30, 122, 60, .4));
    animation: fwFloat 3.6s ease-in-out infinite;
}
.fw-tree::before {
    content: ''; position: absolute; top: 14px; left: -16px;
    border-left: 16px solid transparent; border-right: 16px solid transparent;
    border-bottom: 26px solid #26924a;
}
.fw-tree::after {
    content: '⭐'; position: absolute; top: -14px; left: -8px;
    font-size: 14px;
    animation: starTwinkle 1.6s ease-in-out infinite;
}
/* 雪花容器（JS 动态生成多片） */
.fw-snowflakes { position: absolute; inset: -20px; overflow: visible; }
.fw-snow {
    position: absolute; color: #fff; font-size: 12px;
    animation: snowFall linear infinite;
    text-shadow: 0 0 6px rgba(255,255,255,.8);
}
@keyframes snowFall {
    0%   { transform: translateY(-10px) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(90px) rotate(360deg); opacity: 0; }
}

/* ---------- 儿童节：气球 ---------- */
.fw-balloon {
    width: 34px; height: 42px; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    position: relative;
    animation: balloonRise 4s ease-in-out infinite;
    box-shadow: inset -4px -6px 0 rgba(0,0,0,.08);
}
.fw-balloon::after { /* 线 */
    content: ''; position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
    width: 1px; height: 28px; background: rgba(0,0,0,.3);
}
@keyframes balloonRise {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-14px) rotate(3deg); }
}

/* ---------- 祝福语彩蛋（遮罩浮层 + 全屏居中艺术大字 + 全屏礼花，点击空白退出） ---------- */
/* 遮罩：拦截页面点击，点击空白处即落在遮罩上退出，不会误触页面链接 */
.blessing-mask {
    position: fixed; inset: 0; z-index: 99997;
    background: rgba(6, 8, 16, .48);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    cursor: pointer;
    animation: blessingMaskIn .5s ease;
}
.blessing-mask.fade { opacity: 0; transition: opacity .85s ease; }
@keyframes blessingMaskIn { from { opacity: 0; } to { opacity: 1; } }
.blessing-inline {
    position: fixed; inset: 0; z-index: 99999; /* 必须高于礼花画布(99998)，否则被拖影层盖住文字 */
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 4vw 8vh; /* 视觉上略偏上更居中 */
    pointer-events: none; /* 不拦截任何点击 */
    text-align: center;
}
.blessing-inline.hide {
    opacity: 0; transition: opacity .85s ease; /* 与礼花画布同步淡出 */
}
/* 艺术字大标题：书法体 + 渐变流光 + 两侧节日元素，从远到近从小放大 */
.blessing-inline-title {
    display: flex; align-items: center; justify-content: center; gap: .22em;
    font-family: 'STXingkai', 'STKaiti', 'KaiTi', 'DFKai-SB', 'TW-Kai', serif; /* 艺术书法字体 */
    font-size: clamp(42px, 9.5vw, 92px); font-weight: 900; letter-spacing: .06em;
    background: linear-gradient(90deg, #ffd76e, #ff8fb3, #8ab8ff, #8affd8, #ffd76e);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 200, 100, .5)) drop-shadow(0 3px 12px rgba(0,0,0,.6));
    margin-bottom: 18px; white-space: nowrap;
    animation: blessingInlineIn .95s cubic-bezier(.34,1.56,.64,1), blessingShine 2.6s linear infinite;
}
.blessing-inline-title .bi-elem {
    font-size: .58em; flex: none;
    -webkit-text-fill-color: currentColor; /* 表情不受文字渐变裁剪影响 */
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 210, 120, .65));
    animation: fwFloat 2.4s ease-in-out infinite;
}
.blessing-inline-title .bi-elem:last-child { animation-delay: -1.2s; }
.blessing-inline-title .bi-name {
    background: inherit; background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* 从远到近、从小放大：远处模糊小点 → 过冲放大 → 稳定 */
@keyframes blessingInlineIn {
    0%   { opacity: 0; transform: translateY(34px) scale(.22); filter: blur(9px); }
    55%  { opacity: 1; transform: translateY(-6px) scale(1.07); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.blessing-inline-text {
    display: inline-block; max-width: min(92vw, 680px);
    font-size: clamp(13px, 2.6vw, 17px); color: #fff; letter-spacing: 1.5px; line-height: 1.65;
    padding: 14px 26px; border-radius: 18px;
    background: rgba(10, 12, 24, .55);
    border: 1px solid rgba(255, 214, 110, .35);
    box-shadow: 0 0 24px rgba(255, 180, 90, .18), inset 0 0 18px rgba(255, 200, 120, .08);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
    animation: blessingPop .8s cubic-bezier(.34,1.56,.64,1) .25s backwards;
}
/* 三行清晰排版：站点名 / 祝福语 / 站点地址 */
.blessing-inline-text .bl-site {
    font-weight: 700; letter-spacing: 4px; color: #ffd76e;
    margin-bottom: 8px; font-size: 1.02em;
}
.blessing-inline-text .bl-wish { line-height: 1.75; }
.blessing-inline-text .bl-domain {
    margin-top: 8px; font-size: .84em; letter-spacing: 3px;
    color: #ffe9b0; opacity: .9;
}
@keyframes blessingShine { to { background-position: 300% 0; } }
@keyframes blessingPop {
    0%   { transform: scale(.3); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* 退出提示悬浮小字：靠下位置，呼吸灯效果 */
.blessing-inline-tip {
    position: fixed; bottom: 7vh; left: 50%; transform: translateX(-50%);
    font-size: 12px; letter-spacing: 4px; white-space: nowrap;
    color: rgba(255, 255, 255, .8); text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
    animation: tipBreath 2.2s ease-in-out infinite;
}
@keyframes tipBreath { 0%, 100% { opacity: .4; } 50% { opacity: .95; } }
/* 礼花画布同步淡出（与文字同时消失） */
#fireworkCanvas { transition: opacity .85s ease; }
#fireworkCanvas.fade { opacity: 0; }

/* ---------- 顶栏音乐按钮 + 控制小浮窗 ---------- */
.music-btn.spin svg { animation: musicSpin 3s linear infinite; transform-origin: 50% 50%; }
@keyframes musicSpin { to { transform: rotate(360deg); } }
.music-btn.on { color: var(--neon-cyan); box-shadow: 0 0 10px rgba(98, 231, 255, .35); }
.music-pop {
    position: fixed; top: calc(var(--topbar-h) + 8px); right: 12px; z-index: 2100;
    min-width: 168px; padding: 12px;
    background: var(--glass-bg-strong, rgba(16, 20, 36, .92));
    border: 1px solid var(--panel-border, rgba(255, 255, 255, .14));
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    animation: musicPopIn .22s ease;
}
@keyframes musicPopIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.music-pop-title {
    font-size: 12px; letter-spacing: 1px; color: var(--text-dim, rgba(255,255,255,.65));
    text-align: center; margin: 0 auto 9px; white-space: nowrap;
    max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.music-pop-btns { display: flex; gap: 8px; }
.music-pop-btn {
    flex: 1; padding: 7px 0; border-radius: 9px; cursor: pointer;
    font-size: 12.5px; letter-spacing: 1px;
    color: var(--text-strong, #fff);
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--panel-border, rgba(255, 255, 255, .14));
    transition: all .2s ease;
}
.music-pop-btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.music-pop-btn.on {
    background: linear-gradient(135deg, rgba(98,231,255,.2), rgba(167,139,250,.2));
    border-color: var(--neon-cyan); color: var(--neon-cyan);
}
@media (max-width: 640px) {
    .music-pop { right: 8px; min-width: 150px; padding: 10px; }
}
/* ---------- Logo 旁节日小元素：纯 CSS 生成动画（不用 emoji，精致不糊） ---------- */
.brand-emblem {
    position: relative; width: 22px; height: 22px; margin-left: 7px;
    display: inline-block; flex: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
}
.brand-emblem i, .brand-emblem b, .brand-emblem u, .brand-emblem s { position: absolute; display: block; }
.brand-emblem i::before, .brand-emblem i::after, .brand-emblem b::before, .brand-emblem b::after,
.brand-emblem u::before, .brand-emblem u::after { content: ''; position: absolute; display: block; }

/* 五星红旗飘动（国庆/建党/建军） */
.fe-flag i { left: 3px; top: 2px; width: 1.6px; height: 18px; background: #d8b878; border-radius: 1px; }
.fe-flag b {
    left: 5px; top: 2px; width: 15px; height: 10px;
    background: linear-gradient(135deg, #ff4d54, #d61f2c);
    border-radius: 1.5px; transform-origin: left center;
    animation: feFlagWave 1.3s ease-in-out infinite;
}
.fe-flag u { left: 7px; top: 4px; width: 4px; height: 4px; background: #ffde59; clip-path: polygon(50% 0, 62% 36%, 100% 36%, 69% 58%, 81% 95%, 50% 71%, 19% 95%, 31% 58%, 0 36%, 38% 36%); }
@keyframes feFlagWave { 0%, 100% { transform: skewY(-5deg) scaleX(1); } 50% { transform: skewY(5deg) scaleX(.9); } }

/* 小鞭炮（春节） */
.fe-cracker s { left: 11px; top: 0; width: 1px; height: 5px; background: #d8b878; }
.fe-cracker i, .fe-cracker b { width: 5px; height: 11px; top: 5px; background: linear-gradient(180deg, #ff5a5a, #c81e23); border-radius: 2px; }
.fe-cracker i { left: 6px; transform: rotate(-14deg); }
.fe-cracker b { left: 12px; transform: rotate(14deg); }
.fe-cracker i::before, .fe-cracker b::before { top: 2px; left: 0; width: 100%; height: 1.5px; background: #ffde59; }
.fe-cracker u { left: 10px; top: 0; width: 3px; height: 3px; border-radius: 50%; background: #ffd76e; animation: feSpark .5s ease-in-out infinite alternate; }
@keyframes feSpark { from { transform: scale(.6); opacity: .5; box-shadow: 0 0 2px #ffd76e; } to { transform: scale(1.3); opacity: 1; box-shadow: 0 0 6px #ffd76e; } }

/* 灯笼轻摆（元宵） */
.fe-lantern i {
    left: 5px; top: 5px; width: 13px; height: 10px;
    background: radial-gradient(circle at 35% 30%, #ff7a6e, #d61f2c);
    border-radius: 46%; transform-origin: top center;
    animation: feSway 2.2s ease-in-out infinite;
}
.fe-lantern i::before { left: 3.5px; top: -2.5px; width: 6px; height: 2.5px; background: #ffde59; border-radius: 1px; }
.fe-lantern i::after { left: 3.5px; bottom: -2.5px; width: 6px; height: 2px; background: #ffde59; border-radius: 1px; }
.fe-lantern u { left: 10.5px; top: 16px; width: 1.5px; height: 5px; background: #ff8f6e; }
@keyframes feSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* 星光闪烁（元旦） */
.fe-sparkle i {
    left: 6px; top: 5px; width: 11px; height: 11px; background: #ffd76e;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: feTwinkle 1.4s ease-in-out infinite;
}
.fe-sparkle b {
    left: 14px; top: 1px; width: 6px; height: 6px; background: #fff3c4;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: feTwinkle 1.4s ease-in-out .5s infinite;
}
@keyframes feTwinkle { 0%, 100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }

/* 月亮闪动（中秋） */
.fe-moon i {
    left: 5px; top: 4px; width: 13px; height: 13px; border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #fff3c4, #ffd76e 70%, #f0b93e);
    animation: feMoonGlow 2.4s ease-in-out infinite;
}
.fe-moon i::after { left: 2.5px; top: 3px; width: 2px; height: 2px; border-radius: 50%; background: rgba(230, 180, 80, .55); box-shadow: 4px 4px 0 rgba(230, 180, 80, .4), 1px 6px 0 rgba(230, 180, 80, .35); }
@keyframes feMoonGlow { 0%, 100% { box-shadow: 0 0 4px 1px rgba(255, 215, 110, .5); } 50% { box-shadow: 0 0 12px 3px rgba(255, 215, 110, .85); } }

/* 菊花（重阳）：中心+8 花瓣（box-shadow 点阵），缓慢旋转 */
.fe-flower i {
    left: 9px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #ffd76e;
    box-shadow: 0 -7px 0 0 #e8a0d0, 0 7px 0 0 #e8a0d0, 7px 0 0 0 #e8a0d0, -7px 0 0 0 #e8a0d0,
        5px 5px 0 0 #d88aff, -5px 5px 0 0 #d88aff, 5px -5px 0 0 #d88aff, -5px -5px 0 0 #d88aff;
    animation: feSpinSlow 8s linear infinite;
}
@keyframes feSpinSlow { to { transform: rotate(360deg); } }

/* 心跳爱心（情人节/520/七夕/女神/母亲节） */
.fe-heart i {
    left: 6.5px; top: 7px; width: 10px; height: 10px;
    background: linear-gradient(135deg, #ff7ba3, #ff4d7e);
    transform: rotate(45deg); transform-origin: center;
    animation: feHeartbeat 1.1s ease-in-out infinite;
}
.fe-heart i::before, .fe-heart i::after { width: 10px; height: 10px; border-radius: 50%; background: inherit; }
.fe-heart i::before { left: -5px; top: 0; }
.fe-heart i::after { left: 0; top: -5px; }
@keyframes feHeartbeat { 0%, 100% { transform: rotate(45deg) scale(1); } 25% { transform: rotate(45deg) scale(1.18); } 45% { transform: rotate(45deg) scale(.96); } }

/* 气球浮动（儿童节） */
.fe-balloon i {
    left: 6px; top: 3px; width: 11px; height: 13px;
    background: radial-gradient(circle at 35% 28%, #ffb3c8, #ff5f8f);
    border-radius: 50% 50% 50% 50% / 46% 46% 54% 54%;
    animation: feFloatY 2s ease-in-out infinite;
}
.fe-balloon i::after { left: 4.5px; bottom: -2.5px; border-left: 1.5px solid transparent; border-right: 1.5px solid transparent; border-bottom: 3px solid #ff5f8f; }
.fe-balloon u { left: 10.5px; top: 17px; width: 1px; height: 5px; background: rgba(255, 255, 255, .6); }
@keyframes feFloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* 生日蛋糕（作者生日） */
.fe-cake i { left: 4px; top: 12px; width: 15px; height: 7px; background: linear-gradient(180deg, #ffd9a0, #e8a86a); border-radius: 2px 2px 3px 3px; }
.fe-cake i::before { left: 0; top: -2.5px; width: 100%; height: 3.5px; background: #fff0dd; border-radius: 3px 3px 2px 2px; }
.fe-cake u { left: 10.5px; top: 6px; width: 2px; height: 5px; background: #ff8fb3; }
.fe-cake u::after { left: -1px; top: -3.5px; width: 4px; height: 4px; border-radius: 50% 50% 50% 0; background: #ffd76e; transform: rotate(-45deg); animation: feSpark .5s ease-in-out infinite alternate; }

/* 圣诞树（圣诞/平安夜） */
.fe-tree s { left: 10px; top: 17px; width: 3px; height: 4px; background: #8a5a3a; }
.fe-tree i, .fe-tree b, .fe-tree u { left: 50%; border-left: solid transparent; border-right: solid transparent; border-bottom: solid #2f9e5f; }
.fe-tree i { top: 3px; margin-left: -4px; border-left-width: 4px; border-right-width: 4px; border-bottom-width: 6px; border-bottom-color: #37b56c; }
.fe-tree b { top: 7px; margin-left: -6px; border-left-width: 6px; border-right-width: 6px; border-bottom-width: 7px; }
.fe-tree u { top: 12px; margin-left: -7.5px; border-left-width: 7.5px; border-right-width: 7.5px; border-bottom-width: 7px; border-bottom-color: #278a51; }

/* 粽子（端午） */
.fe-zongzi i {
    left: 5px; top: 6px; border-left: 6.5px solid transparent; border-right: 6.5px solid transparent;
    border-bottom: 12px solid #2f9e5f; border-radius: 2px;
    animation: feFloatY 2.4s ease-in-out infinite;
}
.fe-zongzi b { left: 6.5px; top: 11px; width: 10px; height: 1.6px; background: #ffde59; transform: rotate(-18deg); border-radius: 1px; }

/* 铅笔（教师节） */
.fe-pencil i { left: 9px; top: 4px; width: 4px; height: 13px; background: linear-gradient(180deg, #ffd76e, #f0a93e); border-radius: 1px; transform: rotate(32deg); animation: feWobble 2.2s ease-in-out infinite; transform-origin: center; }
.fe-pencil i::before { left: 0; top: -4px; border-left: 2px solid transparent; border-right: 2px solid transparent; border-bottom: 4.5px solid #f5d7b0; }
.fe-pencil i::after { left: 0; bottom: -3px; width: 4px; height: 3px; background: #ff8fb3; border-radius: 0 0 1.5px 1.5px; }
@keyframes feWobble { 0%, 100% { transform: rotate(26deg); } 50% { transform: rotate(38deg); } }

/* 领带（父亲节） */
.fe-tie i { left: 8.5px; top: 3px; width: 6px; height: 5px; background: linear-gradient(135deg, #5f8dff, #3f6fd8); border-radius: 1.5px; }
.fe-tie b {
    left: 7.5px; top: 7px; width: 8px; height: 12px;
    background: linear-gradient(180deg, #5f8dff, #3355b8);
    clip-path: polygon(0 0, 100% 0, 65% 100%, 50% 88%, 35% 100%);
    transform-origin: top center; animation: feSway 2.6s ease-in-out infinite;
}

/* 绿叶摇摆（植树节/节气） */
.fe-leaf i {
    left: 5px; top: 6px; width: 12px; height: 8px;
    background: linear-gradient(135deg, #57d9a3, #2f9e5f);
    border-radius: 0 60% 0 60%; transform-origin: bottom left;
    animation: feSway 2.4s ease-in-out infinite;
}
.fe-leaf i::after { left: 1px; top: 3.5px; width: 9px; height: 1px; background: rgba(255, 255, 255, .5); transform: rotate(-8deg); }

/* 腊八粥碗（热气上升） */
.fe-bowl i { left: 4px; top: 11px; width: 15px; height: 8px; background: linear-gradient(180deg, #c98a5a, #8a5a3a); border-radius: 2px 2px 8px 8px; }
.fe-bowl i::before { left: 1px; top: -2px; width: 13px; height: 3px; background: #e8c9a0; border-radius: 50%; }
.fe-bowl b, .fe-bowl u { width: 1.5px; height: 5px; background: rgba(255, 255, 255, .75); border-radius: 2px; animation: feSteam 1.6s ease-in infinite; }
.fe-bowl b { left: 8px; top: 3px; }
.fe-bowl u { left: 13px; top: 3px; animation-delay: .7s; }
@keyframes feSteam { 0% { transform: translateY(2px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-4px); opacity: 0; } }

/* 购物袋（双十一） */
.fe-bag i { left: 5px; top: 8px; width: 13px; height: 10px; background: linear-gradient(135deg, #ff9a3d, #ff7a1a); border-radius: 2px 2px 4px 4px; transform-origin: top center; animation: feSway 2.6s ease-in-out infinite; }
.fe-bag i::before { left: 3px; top: -4px; width: 5px; height: 5px; border: 1.6px solid #ff9a3d; border-bottom: none; border-radius: 5px 5px 0 0; }

/* 笑脸（愚人节） */
.fe-grin i { left: 5px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd76e); animation: feWobble 2.4s ease-in-out infinite; transform-origin: center; }
.fe-grin i::before { left: 3px; top: 4px; width: 2px; height: 2px; border-radius: 50%; background: #4a3a1a; box-shadow: 5px 0 0 #4a3a1a; }
.fe-grin i::after { left: 3px; top: 7.5px; width: 7px; height: 3.5px; border: 1.4px solid #4a3a1a; border-top: none; border-left-color: transparent; border-right-color: transparent; border-radius: 0 0 8px 8px; }

/* 齿轮转动（劳动节） */
.fe-gear i, .fe-gear b { left: 6px; top: 5px; width: 11px; height: 11px; animation: feSpinSlow 5s linear infinite; }
.fe-gear i::before { left: 4px; top: 0; width: 3px; height: 11px; background: #b8c4d8; border-radius: 1px; }
.fe-gear i::after { left: 0; top: 4px; width: 11px; height: 3px; background: #b8c4d8; border-radius: 1px; }
.fe-gear b::before { left: 4px; top: 0; width: 3px; height: 11px; background: #b8c4d8; border-radius: 1px; transform: rotate(45deg); }
.fe-gear b::after { left: 0; top: 4px; width: 11px; height: 3px; background: #b8c4d8; border-radius: 1px; transform: rotate(45deg); }
.fe-gear u { left: 9.5px; top: 8.5px; width: 4px; height: 4px; border-radius: 50%; background: #8a9ab8; }
/* 礼花画布 */
#fireworkCanvas { position: fixed; inset: 0; z-index: 99998; pointer-events: none; }

/* ---------- 屏幕特效飘落炫彩文字（节日具象化：国庆快乐/新年快乐等） ---------- */
.fx-fall-text {
    font-weight: 900; letter-spacing: 2px; white-space: nowrap;
    background: linear-gradient(90deg, #ffd76e, #ff8fb3, #8ab8ff, #8affd8, #ffd76e);
    background-size: 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 200, 120, .55)) drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
    animation: fxTextShine 2.4s linear infinite;
}
@keyframes fxTextShine { to { background-position: 300% 0; } }
/* 春节小对联：红底金字，庄重喜庆 */
.fx-couplet {
    font-weight: 800; letter-spacing: 3px; white-space: nowrap;
    color: #ffe08a; background: linear-gradient(180deg, #e62e1f, #c01a0e);
    border: 1px solid rgba(255, 224, 138, .55); border-radius: 8px;
    padding: 5px 12px;
    box-shadow: 0 0 14px rgba(230, 46, 31, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

/* ---------- 小挂件通用尺寸 ---------- */
.fw-widget-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fw-label {
    font-size: 11px; color: var(--muted); letter-spacing: 1px;
    background: var(--glass); border: 1px solid var(--glass-border);
    padding: 3px 10px; border-radius: 999px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    white-space: nowrap;
}

/* 手机端挂件缩小 */
@media (max-width: 640px) {
    .fw-top-right { top: calc(var(--topbar-h) + 10px); right: 10px; }
    .fw-moon { width: 50px; height: 50px; }
    .fw-flag { width: 56px; height: 38px; }
    .fw-lantern { width: 40px; height: 50px; }
    .fw-lantern::before { width: 34px; height: 32px; }
    .fw-lantern .lantern-text { width: 34px; height: 32px; font-size: 14px; }
    .mourning-candle { top: calc(var(--topbar-h) + 10px); right: 10px; transform: scale(.85); transform-origin: top right; }
    .mourning-banner { font-size: 11px; padding: 7px 16px; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
    .blessing-inline-title { letter-spacing: 2px; white-space: normal; flex-wrap: wrap; font-size: clamp(30px, 11vw, 46px); margin-bottom: 12px; }
    .blessing-inline { padding-bottom: 12vh; }
    .blessing-inline-text { letter-spacing: 1px; line-height: 1.6; }
    .fx-couplet { letter-spacing: 2px; padding: 4px 9px; }
}

.sign-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.sign-btn {
    padding: 8px 4px; border-radius: 11px; text-align: center; font-size: 13px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.04);
    transition: .2s; color: var(--text);
}
[data-theme="light"] .sign-btn { background: rgba(255,255,255,.55); }
.sign-btn:hover, .sign-btn.active {
    border-color: var(--neon-violet); color: var(--text-strong);
    box-shadow: 0 0 14px rgba(154, 123, 255, .35); transform: translateY(-2px);
}
.btn-primary {
    padding: 10px 22px; border-radius: 12px; font-size: 14px; font-weight: 700;
    color: #04101f; background: linear-gradient(90deg, var(--neon-violet), var(--neon-pink));
    box-shadow: 0 8px 22px rgba(154, 123, 255, .35); transition: .22s; white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(154, 123, 255, .5); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }

/* 一言大面板 */
.yiyan-stage { text-align: center; padding: 18px 10px 8px; }
.yiyan-big {
    font-size: 17px; line-height: 1.9; color: var(--text-strong);
    max-width: 640px; margin: 0 auto 18px; min-height: 60px;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .3s;
}
.yiyan-big.fading { opacity: 0; }
.yiyan-big::before, .yiyan-big::after { color: var(--neon-violet); font-size: 22px; }
.yiyan-big::before { content: "「 "; }
.yiyan-big::after { content: " 」"; }

/* 蓝奏云结果 */
.lzy-card {
    padding: 16px; border-radius: 14px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.05);
}
[data-theme="light"] .lzy-card { background: rgba(255,255,255,.6); }
.lzy-card .f-name {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: var(--text-strong);
    word-break: break-all;
}
.lzy-card .f-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 14px; font-size: 12.5px; color: var(--muted); }
.lzy-card .f-meta b { color: var(--neon-cyan); font-weight: 600; }
.lzy-dl {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 800; color: #04101f;
    background: linear-gradient(90deg, var(--neon-cyan), #7df5c8);
    box-shadow: 0 8px 22px rgba(77, 226, 255, .35); transition: .22s;
    border: 0; cursor: pointer; font-family: inherit;
}
.lzy-dl:hover { transform: translateY(-2px); }

/* 网易云结果 */
.wyy-song {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; border-radius: 11px; text-align: left;
    border: 1px solid transparent; transition: .2s; color: var(--text);
}
.wyy-song:hover { border-color: var(--glass-border); background: rgba(255,255,255,.05); }
[data-theme="light"] .wyy-song:hover { background: rgba(255,255,255,.6); }
.wyy-song .no { width: 22px; flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wyy-song .s-name { flex: 1; min-width: 0; font-size: 13.5px; }
.wyy-song .s-name b { color: var(--text-strong); font-weight: 600; }
.wyy-song .s-name span { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wyy-song .s-fee { flex: none; font-size: 10px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--neon-pink); color: var(--neon-pink); }
.wyy-detail { padding: 16px; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); }
[data-theme="light"] .wyy-detail { background: rgba(255,255,255,.6); }
.wyy-top { display: flex; gap: 14px; margin-bottom: 14px; }
.wyy-top img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.wyy-top .w-name { font-size: 16px; font-weight: 800; color: var(--text-strong); word-break: break-all; }
.wyy-top .w-sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.wyy-audio { width: 100%; height: 36px; margin-bottom: 12px; border-radius: 10px; }
.wyy-levels { display: flex; flex-direction: column; gap: 7px; }
.wyy-level {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 13px; border-radius: 10px; font-size: 12.5px;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,.12); transition: .2s;
}
[data-theme="light"] .wyy-level { background: rgba(255,255,255,.55); }
.wyy-level:hover { border-color: var(--neon-cyan); }
.wyy-level .lv { font-weight: 700; color: var(--neon-cyan); min-width: 58px; }
.wyy-level .sz { color: var(--muted); font-family: var(--mono); font-size: 11.5px; flex: 1; }
.wyy-level a { color: var(--neon-cyan); font-weight: 700; }
.wyy-level .wyy-dl {
    color: var(--neon-cyan); font-weight: 700; font-size: 12.5px; font-family: inherit;
    background: none; border: 0; cursor: pointer; padding: 4px 8px; border-radius: 7px; transition: .2s;
}
.wyy-level .wyy-dl:hover { background: rgba(77, 226, 255, .12); }
.wyy-back { margin-bottom: 10px; font-size: 12.5px; color: var(--neon-cyan); }

/* Whois 结果（参考 who.cx 排版） */
.whois-status-row {
    display: flex; flex-wrap: wrap; gap: 0;
    border-radius: 12px; overflow: hidden; margin-bottom: 14px;
    border: 1px solid var(--glass-border);
}
.whois-status-row .ws {
    flex: 1; min-width: 120px; padding: 11px 14px; font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.05); color: var(--muted);
    border-right: 1px solid var(--glass-border);
}
[data-theme="light"] .whois-status-row .ws { background: rgba(255,255,255,.55); }
.whois-status-row .ws:last-child { border-right: none; }
.whois-status-row .ws b { color: var(--text-strong); font-weight: 700; }
.whois-status-row .ws.registered b { color: #ff9db0; }
.whois-status-row .ws.available b { color: #7df5c8; }
.whois-card {
    padding: 20px 22px; border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(8, 14, 34, .55);
}
[data-theme="light"] .whois-card { background: rgba(255,255,255,.72); }
.whois-row { display: flex; gap: 12px; padding: 7px 0; font-size: 13.5px; line-height: 1.65; }
.whois-row .k { flex: none; width: 62px; text-align: right; color: var(--muted); }
.whois-row .v { flex: 1; min-width: 0; color: var(--text-strong); word-break: break-all; font-weight: 600; }
.whois-row .v a { color: var(--neon-cyan); }
.whois-row .v .tag-age {
    display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px;
    font-size: 11px; color: #04101f; font-weight: 700;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
}
.whois-raw {
    margin-top: 14px; padding: 16px; border-radius: 14px;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,.22);
    max-height: 260px; overflow: auto;
    font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--muted);
    white-space: pre-wrap; word-break: break-all;
}
[data-theme="light"] .whois-raw { background: rgba(255,255,255,.6); }
.whois-raw-title { margin-top: 16px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--text-strong); }

/* 随机视频 */
.xjj-stage { text-align: center; }
.xjj-box {
    max-width: 420px; margin: 0 auto; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--glass-border); background: #04060f;
    aspect-ratio: 9 / 16; max-height: 62vh;
    display: flex; align-items: center; justify-content: center;
}
.xjj-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.xjj-empty { color: var(--muted); font-size: 13.5px; padding: 20px; }
.xjj-slow { color: var(--muted); font-size: 12.5px; padding: 10px 14px; line-height: 1.6; }
.xjj-actions { margin-top: 14px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(4, 8, 22, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.modal-mask.show { display: flex; animation: fadeIn .2s ease; }
.modal {
    position: relative; width: 100%; max-width: 430px;
    padding: 26px 24px 22px; border-radius: 22px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0,0,0,.5);
    animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
    max-height: 86vh; overflow-y: auto;
}
@keyframes pop { from { transform: translateY(18px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-close {
    position: absolute; right: 14px; top: 12px; width: 32px; height: 32px;
    border-radius: 50%; display: grid; place-items: center; color: var(--muted);
    border: 1px solid var(--glass-border); transition: .2s; font-size: 16px;
}
.modal-close:hover { color: var(--neon-pink); border-color: var(--neon-pink); transform: rotate(90deg); }
.modal h3 { font-size: 19px; font-weight: 800; color: var(--text-strong); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.modal .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

.copy-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    padding: 12px 14px; border-radius: 13px; border: 1px dashed var(--track);
    background: rgba(255,255,255,.05);
}
[data-theme="light"] .copy-row { background: rgba(255,255,255,.65); }
.copy-row .val { flex: 1; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text-strong); user-select: all; }
.btn-copy {
    padding: 7px 16px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: #04101f;
    background: linear-gradient(90deg, var(--neon-cyan), #7df5c8);
}
.qr-box { text-align: center; margin: 6px 0 16px; }
.qr-box img { width: 210px; height: 210px; object-fit: contain; margin: 0 auto; border-radius: 14px;
    background: #fff; padding: 10px; border: 1px solid var(--glass-border); }
.qr-box .tip { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.btn-action {
    display: block; width: 100%; text-align: center; padding: 12px; border-radius: 13px;
    font-size: 14.5px; font-weight: 800; color: #04101f;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
    box-shadow: 0 8px 22px rgba(79, 139, 255, .35);
}
.btn-action.pink { background: linear-gradient(90deg, var(--neon-pink), var(--neon-violet)); }
.modal .note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }

/* 星座弹窗内容 */
.horo-date { font-size: 12.5px; color: var(--neon-cyan); margin-bottom: 14px; }
.score-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.score-item { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); }
[data-theme="light"] .score-item { background: rgba(255,255,255,.6); }
.score-item .lab { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.stars { color: #ffc94d; font-size: 13px; letter-spacing: 1px; }
.stars .off { color: var(--track); }
.horo-text { font-size: 13.5px; line-height: 1.75; color: var(--text); margin-bottom: 12px; }
.horo-block { margin-bottom: 12px; }
.horo-block h4 { font-size: 13px; color: var(--neon-violet); margin-bottom: 4px; }
.lucky-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.lucky-grid div {
    text-align: center; padding: 10px 6px; border-radius: 12px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); font-size: 12.5px;
}
[data-theme="light"] .lucky-grid div { background: rgba(255,255,255,.6); }
.lucky-grid b { display: block; margin-top: 4px; color: var(--text-strong); font-size: 13.5px; }
.horo-summary {
    padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.7;
    background: linear-gradient(135deg, rgba(77,226,255,.1), rgba(154,123,255,.08));
    border: 1px solid var(--glass-border);
}
.modal-loading { text-align: center; padding: 30px 0; color: var(--muted); font-size: 14px; }
.spinner {
    width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 12px;
    border: 3px solid var(--track); border-top-color: var(--neon-violet);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 留言反馈表单 */
.msg-form .mf-field { margin-bottom: 13px; }
.msg-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-strong); margin-bottom: 6px; }
.msg-form label .req { color: #ff6b81; font-style: normal; margin-left: 2px; }
.msg-form label .opt { font-size: 11px; font-weight: 400; font-style: normal; color: var(--muted); margin-left: 6px; }
.msg-form input[type="text"],
.msg-form input[type="email"],
.msg-form textarea {
    width: 100%; padding: 10px 13px; border-radius: 11px; font-size: 13.5px; color: var(--text);
    background: rgba(255,255,255,.05); border: 1px solid var(--track); outline: none;
    transition: border-color .2s, box-shadow .2s; resize: vertical; font-family: inherit;
}
[data-theme="light"] .msg-form input[type="text"],
[data-theme="light"] .msg-form input[type="email"],
[data-theme="light"] .msg-form textarea { background: rgba(255,255,255,.7); }
.msg-form input:focus, .msg-form textarea:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 3px rgba(77,226,255,.15); }
.msg-form .mf-help { margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.msg-form .mf-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.msg-form .mf-tip { margin-top: 10px; min-height: 16px; text-align: center; font-size: 12.5px; }
.msg-form .mf-tip.err { color: #ff6b81; }
.msg-form .btn-action:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 右侧悬浮客服栏 ---------- */
.dock {
    position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 200;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .32s ease, opacity .28s ease;
}
/* 手机滑动隐藏 / 手动收起：整栏滑出右侧 */
body.dock-scrolling .dock,
body.dock-collapsed .dock { transform: translateX(130%); opacity: 0; pointer-events: none; }
/* 收起后贴右缘的展开小箭头 */
.dock-tab {
    position: fixed; right: 0; top: 50%; translate: 0 -50%; z-index: 200;
    width: 26px; height: 54px; border-radius: 12px 0 0 12px;
    display: none; place-items: center; cursor: pointer;
    background: var(--glass-strong); color: var(--muted);
    border: 1px solid var(--glass-border); border-right: none;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transition: color .2s, width .2s;
}
.dock-tab:hover { color: var(--neon-cyan); width: 30px; }
body.dock-collapsed .dock-tab { display: grid; }
/* 收起箭头按钮弱化显示，hover 恢复 */
.dock-fold { opacity: .55; font-size: 15px; }
.dock-fold:hover { opacity: 1; }
.dock-btn {
    position: relative; width: 50px; height: 50px; border-radius: 16px;
    display: grid; place-items: center; font-size: 21px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    transition: .25s;
}
.dock-btn:hover { transform: translateX(-5px) scale(1.06); border-color: var(--neon-cyan); box-shadow: 0 8px 24px rgba(77,226,255,.3); }
.dock-btn .tip {
    position: absolute; right: 60px; top: 50%; translate: 0 -50%;
    white-space: nowrap; font-size: 12px; padding: 5px 10px; border-radius: 8px;
    background: var(--glass-strong); border: 1px solid var(--glass-border);
    opacity: 0; pointer-events: none; transition: .2s;
}
.dock-btn:hover .tip { opacity: 1; right: 64px; }
.dock-btn.qq { color: #12B7F5; }
.dock-btn.wx { color: #3ddc68; }
.dock-btn.group { color: #ffb02e; }
.dock-btn.msg { color: #ff6b81; }
.dock-btn.top { font-size: 17px; opacity: .75; }

/* ---------- 底部 ---------- */
footer {
    margin-top: 20px; padding: 26px 20px 30px; text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
footer .run { font-family: var(--mono); font-size: 13px; color: var(--text-strong); margin-bottom: 8px; }
footer .run b { color: var(--neon-cyan); }
footer .meta { font-size: 12.5px; color: var(--muted); line-height: 1.9; }
footer .meta-line { margin: 2px 0; }
footer .meta-line a { margin: 0 8px; }
footer .meta-line a:first-child { margin-left: 0; }
footer .meta a:hover { color: var(--neon-cyan); }
footer .police-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }

/* ---------- 内置浏览器遮罩已废弃：改由 /inapp 独立引导页承载（见 view/index/inapp.html） ---------- */

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 40px; translate: -50% 20px; z-index: 4000;
    padding: 11px 22px; border-radius: 999px; font-size: 13.5px;
    background: var(--glass-strong); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s;
}
.toast.show { opacity: 1; translate: -50% 0; }
.toast.ok { color: #7df5c8; } .toast.err { color: #ff8da8; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 昼夜字体与链接适配：夜间高亮发光，日间加深加暗 ---------- */
/* 深色模式：链接与标题高亮 */
.nav-card .card-body h3 { transition: color .2s, text-shadow .2s; }
.nav-card:hover .card-body h3 { color: var(--neon-cyan); text-shadow: 0 0 12px rgba(77, 226, 255, .45); }
.meta a { color: var(--neon-cyan); }
.meta a:hover { text-shadow: 0 0 10px rgba(77, 226, 255, .6); }
/* 浅色模式：文字链接加深加暗，保证白底可读性 */
[data-theme="light"] .nav-card:hover .card-body h3 { color: #1a4fd6; text-shadow: none; }
[data-theme="light"] .meta a { color: #1a4fd6; font-weight: 600; }
[data-theme="light"] .meta a:hover { text-shadow: none; color: #0f3aa8; }
[data-theme="light"] .card-side .go-arrow { color: #3a5db8; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .dock { right: 12px; gap: 8px; }
    .dock-btn { width: 44px; height: 44px; font-size: 18px; border-radius: 14px; }
    .dock-btn .tip { display: none; }
    .engine-badge { display: none; }
}
@media (max-width: 640px) {
    /* 顶栏防重叠：收缩各元素、隐藏次要信息 */
    .topbar { padding: 0 10px; gap: 6px; }
    /* 时钟绝对居中：不受左右两侧宽度影响（右侧入口删除后仍保持屏幕正中） */
    .topbar-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex: none; width: auto; max-width: 56vw; overflow: hidden; gap: 8px; white-space: nowrap; }
    .topbar-right { margin-left: auto; } /* 中间块脱离文档流后，右侧按钮组仍贴右 */
    /* 手机端取消标题旁 Logo（公告上方大 Logo 不受影响），并限制品牌区宽度，
       保证长站名 + 节日小元素也不会与居中时钟重叠（超出直接裁切兜底） */
    .brand { font-size: 14px; gap: 6px; max-width: 30vw; min-width: 0; overflow: hidden; }
    .brand .brand-logo { display: none; }
    .brand .brand-emblem { width: 16px; height: 16px; margin-left: 4px; }
    .clock { font-size: 12px; gap: 6px; }
    .clock b { font-size: 13px; letter-spacing: .5px; }
    .clock .clock-date, .clock .week { display: none; }
    .weather { padding: 4px 9px; font-size: 11.5px; gap: 5px; }
    .weather .w-city { display: none; }
    .weather .w-icon { font-size: 14px; }
    .icon-btn { width: 32px; height: 32px; }
    .wrap { padding: 0 13px; }
    .hero { padding-top: 20px; }
    /* 超小屏天气极致紧凑（保留显示：图标+温度），避免与品牌区重叠 */
    @media (max-width: 480px) {
        .weather { padding: 3px 6px; font-size: 10.5px; gap: 3px; }
        .weather .w-icon { font-size: 12px; }
        .topbar-center { gap: 5px; max-width: 52vw; }
        .brand { max-width: 28vw; }
    }
    .hero-cover img { width: min(320px, 82vw); }
    /* 底部访客条：内容多时允许换行，避免IP项被裁剪 */
    .stats-mini { flex-wrap: wrap; gap: 4px 12px; padding: 7px 14px; font-size: 10.5px; }
    .stats-mini .sm-item i { font-size: 10.5px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nav-card { padding: 12px; gap: 9px; min-height: 72px; }
    .card-icon { width: 40px; height: 40px; }
    .card-icon img { width: 26px; height: 26px; }
    .card-body h3 { font-size: 14px; font-weight: 750; }
    /* 手机端描述字号统一：跑马灯内外一致，避免大小参差的观感 */
    .card-body p, .card-body p.mq, .card-body p .mq-in { font-size: 11.5px; line-height: 1.45; }
    .sign-grid { grid-template-columns: repeat(4, 1fr); }
    .notice { border-radius: 16px; }
    .yiyan-bar .yy-tag { font-size: 11px; padding: 2px 8px; }
    .yiyan-bar .yy-tag .yy-tag-day { display: none; }
    /* 手机端工具条：搜索折叠为放大镜，点击展开输入框；最热/友链紧凑胶囊 */
    .toolbar { gap: 8px; flex-wrap: nowrap; margin: 16px 0 14px; }
    .toolbar-btns { gap: 7px; }
    .btn-hot { padding: 8px 12px; font-size: 12px; gap: 4px; }
    .btn-hot .flame { font-size: 12px; }
    .filter-box { display: flex; align-items: center; }
    .filter-box .fb-ico { display: none; }
    .filter-box .filter-toggle { display: inline-flex; flex: none; }
    #filterInput {
        width: 0; padding: 9px 0; border-color: transparent; background: transparent;
        opacity: 0; transition: width .28s ease, opacity .2s, padding .28s;
    }
    .filter-box.open { flex: 1 1 auto; min-width: 0; }
    .filter-box.open .filter-toggle { color: var(--neon-cyan); border-color: rgba(77,226,255,.55); }
    .filter-box.open #filterInput {
        width: 100%; padding: 9px 4px 9px 10px; opacity: 1;
        background: var(--glass); border: 1px solid var(--glass-border); border-left: none;
        border-radius: 0 999px 999px 0; margin-left: -1px;
    }
    .filter-box.open .filter-toggle { border-radius: 999px 0 0 999px; border-right: none; }
    .lucky-grid { grid-template-columns: repeat(3, 1fr); }
    .score-row { grid-template-columns: 1fr 1fr; }
    .modal { padding: 22px 18px 18px; }
    /* 工具箱窄屏细化 */
    .toolbox { padding: 16px 14px; border-radius: 18px; }
    .toolbox-head h2 { font-size: 17px; }
    .toolbox-head span { font-size: 11px; }
    .tool-tab { padding: 8px 13px; font-size: 12px; }
    .tool-tab i { font-size: 13px; }
    .tool-form { flex-wrap: wrap; }
    .tool-form input { min-width: 0; flex: 1 1 100%; }
    .tool-form .btn-primary { flex: 1 1 100%; }
    .yiyan-big { font-size: 15px; }
    .whois-status-row .ws { min-width: 50%; border-bottom: 1px solid var(--glass-border); }
    .whois-card { padding: 14px; }
    .whois-row .k { width: 54px; font-size: 12.5px; }
    .whois-row { font-size: 12.5px; }
    .wyy-top img { width: 60px; height: 60px; }
    .xjj-box { max-width: 320px; }
    .yiyan-bar { padding: 9px 13px; }
    .yiyan-bar .yy-text { font-size: 12.5px; }
}
@media (max-width: 380px) {
    .card-grid { grid-template-columns: 1fr; }
    .whois-status-row .ws { min-width: 100%; border-right: none; }
    .sign-grid { grid-template-columns: repeat(3, 1fr); }
    /* 超窄屏：品牌区再收，保证与居中时钟至少 6px 间隙 */
    .brand { max-width: 27vw; font-size: 13px; }
    .brand .brand-emblem { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= 工具箱扩展组件 ================= */
/* 幽灵按钮（次要操作） */
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.05);
    color: var(--text); transition: .22s; text-decoration: none;
}
[data-theme="light"] .btn-ghost { background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--neon-cyan); transform: translateY(-1px); }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* 复制行（标签+值+复制按钮） */
.copy-line {
    display: flex; align-items: center; gap: 8px; margin-top: 8px;
    padding: 8px 12px; border-radius: 11px;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,.14);
}
[data-theme="light"] .copy-line { background: rgba(255,255,255,.6); }
.copy-line .cl-label { flex: none; font-size: 12px; color: var(--muted); }
.copy-line .cl-val {
    flex: 1; min-width: 0; font-size: 12.5px; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: ui-monospace, Consolas, monospace;
}
.wyy-copy-block { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--glass-border); }
.wyy-copy-block .wc-title { font-size: 13px; font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }

/* 舔狗日记 */
.yiyan-big.tg { color: var(--neon-pink, #ff5fb3); }
[data-theme="light"] .yiyan-big.tg { color: #d63a86; }

/* 八字精批 */
.bzjp-grid { display: grid; grid-template-columns: 1fr 1.4fr 90px; gap: 10px; }
.bzjp-grid.five { grid-template-columns: 1fr 0.7fr 0.7fr 1.3fr auto; }
.tool-form select {
    padding: 10px 12px; border-radius: 12px; outline: none; font-size: 13.5px;
    background: rgba(0,0,0,.18); border: 1px solid var(--glass-border); color: var(--text);
}
[data-theme="light"] .tool-form select { background: rgba(255,255,255,.7); }
.bzjp-card, .beian-card {
    padding: 16px; border-radius: 14px;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,.16);
}
[data-theme="light"] .bzjp-card, [data-theme="light"] .beian-card { background: rgba(255,255,255,.72); }
.ba-head { font-size: 15px; font-weight: 800; color: var(--text-strong); margin-bottom: 6px; }
.ba-domain { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.ba-none { text-align: center; padding: 10px 0; font-size: 13.5px; color: var(--muted); }
/* 备案信息：每字段独立一行，宽标签左对齐竖排 */
.beian-grid { display: flex; flex-direction: column; gap: 2px; }
.beian-row {
    display: flex; align-items: baseline; gap: 14px;
    padding: 9px 2px; font-size: 13.5px; line-height: 1.6;
    border-bottom: 1px dashed var(--glass-border);
}
.beian-row:last-child { border-bottom: 0; }
.beian-row .bk { flex: none; width: 82px; color: var(--muted); font-size: 12.5px; }
.beian-row .bv { flex: 1; min-width: 0; color: var(--text-strong); font-weight: 600; word-break: break-all; }
@media (max-width: 480px) {
    .beian-row { flex-direction: column; gap: 3px; padding: 8px 2px; }
    .beian-row .bk { width: auto; }
}
.bz-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.bazi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.bazi-col {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px; border-radius: 11px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.05);
}
[data-theme="light"] .bazi-col { background: rgba(255,255,255,.55); }
.bazi-col .bc-l { font-size: 11px; color: var(--muted); }
.bazi-col .bc-v { font-size: 17px; font-weight: 800; color: var(--neon-cyan); letter-spacing: 2px; }
[data-theme="light"] .bazi-col .bc-v { color: #1a4fd6; }
.wuxing-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wuxing-row .wx {
    padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,.05);
}
[data-theme="light"] .wuxing-row .wx { background: rgba(255,255,255,.55); }
.wuxing-row .wx b { color: var(--neon-cyan); }
[data-theme="light"] .wuxing-row .wx b { color: #1a4fd6; }
.bz-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bz-tag {
    padding: 4px 12px; border-radius: 999px; font-size: 12px;
    background: linear-gradient(90deg, rgba(77,226,255,.16), rgba(154,123,255,.14));
    border: 1px solid var(--glass-border); color: var(--text);
}
.bz-sec { margin-top: 10px; }
.bz-sec-t { font-size: 13px; font-weight: 700; color: var(--neon-violet); margin-bottom: 3px; }
.bz-sec-c { font-size: 13px; line-height: 1.7; color: var(--text); }

/* 二维码 */
.qr-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.qr-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
.qr-frame {
    padding: 14px; border-radius: 16px; background: #fff;
    box-shadow: 0 10px 34px rgba(77, 226, 255, .18);
}
.qr-img { display: block; border-radius: 6px; }
.qr-actions { display: flex; gap: 10px; }

/* 随机图片（电脑壁纸/美女图片） */
.pic-stage { display: flex; flex-direction: column; gap: 12px; }
.pic-box {
    position: relative; min-height: 200px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,.16);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
[data-theme="light"] .pic-box { background: rgba(255,255,255,.5); }
.pic-img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.pic-id {
    position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(6px);
}

/* 短视频去水印 */
.zyqsy-card {
    display: flex; gap: 12px; padding: 12px; border-radius: 14px;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,.16); margin-bottom: 12px;
}
[data-theme="light"] .zyqsy-card { background: rgba(255,255,255,.72); }
.zq-cover { width: 84px; height: 112px; object-fit: cover; border-radius: 10px; flex: none; }
.zq-title { font-size: 14px; font-weight: 700; color: var(--text-strong); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zq-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.zq-platform {
    padding: 1px 8px; border-radius: 6px; font-size: 11px;
    background: linear-gradient(90deg, rgba(77,226,255,.2), rgba(154,123,255,.18)); color: var(--text);
}
.zq-video { width: 100%; max-height: 420px; border-radius: 14px; background: #000; margin-bottom: 12px; }
.zq-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.zq-images img { width: 100%; border-radius: 10px; }
.zq-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 360 图床 */
.upload-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 22px 14px; border-radius: 13px; cursor: pointer; font-size: 13.5px;
    border: 1.5px dashed var(--glass-border); color: var(--muted);
    transition: .22s; text-align: center; word-break: break-all;
}
.upload-btn:hover { border-color: var(--neon-cyan); color: var(--text); }
.tc360-card { display: flex; flex-direction: column; gap: 8px; }
.tc360-preview { width: 100%; max-height: 300px; object-fit: contain; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,.14); }

@media (max-width: 640px) {
    .bzjp-grid, .bzjp-grid.five { grid-template-columns: 1fr 1fr; }
    .bzjp-grid.five .btn-primary { grid-column: 1 / -1; }
    .bazi-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .bazi-col .bc-v { font-size: 14px; }
    .zyqsy-card { flex-direction: column; }
    .zq-cover { width: 100%; height: auto; max-height: 180px; }
    .zq-images { grid-template-columns: repeat(2, 1fr); }
    .pic-img { max-height: 320px; }
}
