/* ==========================================================================
   恰融游创 · 前台设计系统 —— Neumorphism / Soft UI
   --------------------------------------------------------------------------
   光源方向固定：高光在左上 (-X/-Y)，暗部在右下 (+X/+Y)。
   全站不允许出现：纯黑/纯白背景、渐变、border >= 2px、rounded-none、
   按钮 translate 位移、hover 放大阴影。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
    /* 表面 */
    --n-bg: #e0e5ec;              /* 主背景，全站唯一底色 */
    --n-bg-raised: #f0f0f3;       /* 抬升表面：输入区、内嵌面板 */
    --n-shade: #b8bcc2;           /* 暗阴影 */
    --n-tint: #ffffff;            /* 亮阴影（仅用于阴影，不作背景） */

    /* 强调色
       纯色 #6d5dfc 只用作填充背景；#4ecdc4 / #ff6b6b / #ffe66d 这类亮色直接做文字
       会在 #e0e5ec 上掉到 2.4–3.6:1，破规范自己要求的 AA，
       因此文字一律走下面的 -deep 变体（均 >= 4.5:1，实测值见括号）。 */
    --n-accent: #6d5dfc;
    --n-accent-deep: #4b3fd6;     /* 5.56:1 */
    --n-coral-deep: #b91c1c;      /* 5.11:1 */
    --n-teal-deep: #0f6e63;       /* 4.84:1 */
    --n-amber-deep: #7d5f0e;      /* 4.72:1 */

    /* 文字 */
    --n-text: #333333;            /* 9.98:1 */
    --n-text-muted: #5a6472;      /* 4.74:1 —— 规范给的 #6b7280 只有 3.83:1，不达标 */
    --n-text-faint: #5a6472;      /* 与 muted 同级：再浅就掉出 AA，宁可不区分也不牺牲可读性 */

    /* 不跟着表面走的附加色。
       这几条以前是写在规则里的 rgba 字面量，深色主题下会直接看不见（白线画在白底上、
       黑遮罩压在黑底上），所以先全部提成令牌，深色那套在下面单独给值。 */
    --n-line: rgba(184, 188, 194, .5);      /* 分割线 */
    --n-ring: rgba(109, 93, 252, .55);      /* 键盘焦点环 */
    --n-ring-soft: rgba(109, 93, 252, .4);
    --n-mark: rgba(109, 93, 252, .22);      /* 选中文本的底色 */
    --n-scrim: rgba(120, 128, 143, .38);    /* 弹窗遮罩 */
    --n-tint-hi: rgba(255, 255, 255, .75);  /* 强调色按钮外侧那道亮阴影 */
    --n-thumb: rgba(75, 63, 214, .45);      /* 开关圆钮的投影 */
    --n-pulse: rgba(15, 110, 99, .45);
    --n-pulse-0: rgba(15, 110, 99, 0);

    /* 强调色填充**上面**的字。不能复用 --n-tint：那是阴影色，
       深色主题里它是深灰，白字变深灰字压在紫色上就掉出 AA 了。 */
    --n-on-accent: #ffffff;

    --n-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    /* 阴影 —— 外凸 */
    --n-out-sm: 4px 4px 8px var(--n-shade), -4px -4px 8px var(--n-tint);
    --n-out: 6px 6px 12px var(--n-shade), -6px -6px 12px var(--n-tint);
    --n-out-md: 8px 8px 16px var(--n-shade), -8px -8px 16px var(--n-tint);
    --n-out-lg: 12px 12px 24px var(--n-shade), -12px -12px 24px var(--n-tint);

    /* 阴影 —— 内凹 */
    --n-in-xs: inset 2px 2px 4px var(--n-shade), inset -2px -2px 4px var(--n-tint);
    --n-in-sm: inset 4px 4px 8px var(--n-shade), inset -4px -4px 8px var(--n-tint);
    --n-in: inset 6px 6px 12px var(--n-shade), inset -6px -6px 12px var(--n-tint);
    --n-in-md: inset 8px 8px 16px var(--n-shade), inset -8px -8px 16px var(--n-tint);

    /* 圆角（全部柔和曲率，无直角） */
    --n-r-sm: 12px;
    --n-r: 16px;
    --n-r-lg: 24px;
    --n-r-xl: 32px;
    --n-r-pill: 999px;

    /* 动效：Smooth Molding */
    --n-t: 300ms ease-in-out;

    /* 尺度 */
    --n-max: 1200px;
    --n-max-text: 760px;
    --n-gutter: 20px;
    --n-nav-h: 72px;

    /* 字体 */
    --n-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
              "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    --n-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas,
              "Liberation Mono", monospace;
}

/* ---------- 1b. 深色（「黑」）主题 ----------
   切换方式只有一个：<html data-theme="dark">，由 assets/js/theme.js 按本机存的偏好加上。
   刻意**不**跟随系统的 prefers-color-scheme：这是一次视觉改版而不是无障碍默认值，
   自动跟系统会让玩家以为站点在随机变，而且后台截图和教程对不上。

   新拟物在深色下靠的是「同色系一深一浅两道阴影」，所以 --n-shade 往黑走、--n-tint 往灰走，
   凹陷与凸起的读法完全不变。每个文字色都在 #23262c 上重算过（亮色那套里 -deep 变体是
   「压暗」，这里必须反过来「提亮」，否则 #4b3fd6 在 #23262c 上只有 1.6:1）：
     #e8ebf0 ≈ 12.7:1   #a9b2c0 ≈ 7.1:1   #a79bff ≈ 6.3:1   #ff9a9a ≈ 7.5:1
     #5fd6c5 ≈ 8.6:1    #f2c977 ≈ 9.7:1   #ffffff / #6d5dfc ≈ 4.5:1（按钮 .95rem，走 AA 下限）
   --------------------------------------------------------------------- */
html[data-theme="dark"] {
    --n-bg: #23262c;
    --n-bg-raised: #2b2f37;
    --n-shade: #131519;
    --n-tint: #343a44;

    --n-accent: #6d5dfc;
    --n-accent-deep: #a79bff;
    --n-coral-deep: #ff9a9a;
    --n-teal-deep: #5fd6c5;
    --n-amber-deep: #f2c977;

    --n-text: #e8ebf0;
    --n-text-muted: #a9b2c0;
    --n-text-faint: #a9b2c0;

    --n-line: rgba(255, 255, 255, .11);
    --n-ring: rgba(167, 155, 255, .62);
    --n-ring-soft: rgba(167, 155, 255, .45);
    --n-mark: rgba(167, 155, 255, .3);
    --n-scrim: rgba(0, 0, 0, .62);
    --n-tint-hi: rgba(62, 68, 80, .8);
    --n-thumb: rgba(0, 0, 0, .45);
    --n-pulse: rgba(95, 214, 197, .4);
    --n-pulse-0: rgba(95, 214, 197, 0);

    /* 下拉箭头是内嵌 SVG，颜色写死在 data-uri 里，只能整条换掉 */
    --n-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9b2c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* 头衔原色在 #23262c 上只有 1.9–3.0:1，必须提亮。
   往白混是「单调变亮」，混得越多离深色背景越远，所以这一条对任意后台填的颜色都成立。
   下面四个数不是估的：在浏览器里把 color-mix 的结果画进 1×1 canvas 取像素再算对比度，
   #92400e→#cc9e89 6.37:1、#1d4ed8→#8aabf1 6.62:1、#06684a→#8cb1a0 6.43:1、#9f1239→#d79197 6.05:1。
   老浏览器不认 color-mix 时这条声明整条作废、退回上面的原色：偶尔偏暗，不会白屏。 */
html[data-theme="dark"] .tag {
    color: color-mix(in oklab, var(--tag-c, #a9b2c0) 50%, #ffffff);
}

/* ---------- 2. 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

*:where(html) { -webkit-text-size-adjust: 100%; }

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--n-bg);
    color: var(--n-text);
    font-family: var(--n-font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--n-mark); color: var(--n-text); }

:focus-visible {
    outline: 3px solid var(--n-ring);
    outline-offset: 3px;
}

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 20px;
    background: var(--n-bg);
    border-radius: var(--n-r);
    box-shadow: var(--n-out);
    font-weight: 500;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- 3. 排版 ---------- */
.h-hero  { font-size: clamp(2.1rem, 6.4vw, 3.6rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.h-1     { font-size: clamp(1.7rem, 4.4vw, 2.35rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.h-2     { font-size: clamp(1.35rem, 3.2vw, 1.7rem); font-weight: 600; line-height: 1.3; }
.h-3     { font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.lead    { font-size: 1.02rem; color: var(--n-text-muted); max-width: 62ch; }
.muted   { color: var(--n-text-muted); }
.faint   { color: var(--n-text-faint); }
.mono    { font-family: var(--n-mono); letter-spacing: -.02em; }
.prose   { max-width: var(--n-max-text); }
.prose p + p { margin-top: 1em; }


/* ---------- 4. 布局 ---------- */
.shell {
    width: 100%;
    max-width: var(--n-max);
    margin-inline: auto;
    padding-inline: var(--n-gutter);
}

.section { padding-block: clamp(48px, 9vw, 88px); }
.section--tight { padding-block: clamp(32px, 5vw, 48px); }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(24px, 4vw, 40px);
}
.section-head__title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-head__title .icon { font-size: 1.45rem; color: var(--n-accent-deep); }
.section-head__sub { color: var(--n-text-muted); font-size: .95rem; margin-top: 4px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.stack    { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.row--between { justify-content: space-between; }
.spacer { flex: 1 1 auto; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 5. 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    background: var(--n-bg);
    color: var(--n-text);
    border-radius: var(--n-r);
    font-size: .95rem;
    font-weight: 500;
    box-shadow: var(--n-out);
    transition: box-shadow var(--n-t), color var(--n-t), opacity var(--n-t);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn:hover  { box-shadow: var(--n-out-sm); }                 /* Hover Shadowing */
.btn:active { box-shadow: var(--n-in-sm); }                  /* Extrude to Intrude */
.btn[disabled], .btn[aria-disabled="true"] {
    opacity: .5;
    box-shadow: var(--n-out-sm);
    cursor: not-allowed;
    pointer-events: none;
}

.btn--sm { padding: 9px 17px; font-size: .85rem; border-radius: var(--n-r-sm); }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; border-radius: var(--n-r-lg); }
.btn--block { width: 100%; }

.btn--accent {
    background: var(--n-accent);
    color: var(--n-on-accent);
    box-shadow: 6px 6px 12px var(--n-shade), -6px -6px 12px var(--n-tint-hi);
}
.btn--accent:hover  { box-shadow: 4px 4px 8px var(--n-shade), -4px -4px 8px var(--n-tint-hi); }
.btn--accent:active { box-shadow: var(--n-in-sm); }

.btn--danger { color: var(--n-coral-deep); }

.btn--icon {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--n-r-pill);
    font-size: 1.05rem;
}
.btn--icon.btn--sm { width: 34px; height: 34px; font-size: .9rem; }

/*  segmented / pill 切换  */
.pill-group {
    display: inline-flex;
    gap: 6px;
    padding: 8px;
    background: var(--n-bg);
    border-radius: var(--n-r-pill);
    box-shadow: var(--n-in-sm);
}
.pill {
    padding: 8px 18px;
    border-radius: var(--n-r-pill);
    font-size: .88rem;
    font-weight: 500;
    color: var(--n-text-muted);
    box-shadow: var(--n-out-sm);
    transition: box-shadow var(--n-t), color var(--n-t), background var(--n-t);
}
.pill:hover  { box-shadow: var(--n-out-sm); color: var(--n-text); }
.pill:active { box-shadow: var(--n-in-xs); }
.pill[aria-pressed="true"], .pill.is-active {
    color: var(--n-accent-deep);
    box-shadow: var(--n-in-xs);
    font-weight: 600;
}

/* ---------- 6. 卡片 ---------- */
.card {
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    padding: clamp(20px, 3.4vw, 30px);
    transition: box-shadow var(--n-t);
}

/* 凹陷容器：用于承载内容分区，不嵌套卡片 */
.well {
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in);
    padding: clamp(18px, 3vw, 26px);
}

/* ---------- 7. 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--n-text-muted);
}
.field__hint { font-size: .78rem; color: var(--n-text-faint); }
.field__error { font-size: .78rem; color: var(--n-coral-deep); min-height: 1.1em; }

.input, .textarea, .select {
    width: 100%;
    padding: 14px 18px;
    background: var(--n-bg);
    border: 0;
    border-radius: var(--n-r);
    color: var(--n-text);
    font-size: .95rem;
    box-shadow: var(--n-in);                              /* 深凹陷 */
    transition: box-shadow var(--n-t);
}
.input::placeholder, .textarea::placeholder { color: var(--n-text-faint); }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    box-shadow: var(--n-in-xs);                           /* focus 时通道打开，凹陷变浅 */
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.select {
    appearance: none;
    padding-right: 44px;
    background-image: var(--n-arrow);
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.input:disabled, .textarea:disabled { opacity: .55; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 48px; }
.input-group__icon {
    position: absolute;
    left: 18px;
    font-size: 1rem;
    color: var(--n-text-faint);
    pointer-events: none;
}

/* 开关 */
.switch { position: relative; display: inline-block; width: 56px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
    position: absolute;
    inset: 0;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-in-sm);
    transition: box-shadow var(--n-t), background var(--n-t);
}
.switch__thumb {
    position: absolute;
    top: 4px; left: 4px;
    width: 24px; height: 24px;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    transition: box-shadow var(--n-t), background var(--n-t);
}
.switch input:checked + .switch__track { background: var(--n-accent); }
.switch input:checked + .switch__track .switch__thumb {
    left: 28px;
    background: var(--n-on-accent);
    box-shadow: 2px 2px 5px var(--n-thumb);
}
.switch input:focus-visible + .switch__track { box-shadow: var(--n-in-sm), 0 0 0 3px var(--n-ring-soft); }

/* ---------- 8. 徽标 / 标签 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    font-size: .78rem;
    font-weight: 500;
    color: var(--n-text-muted);
    white-space: nowrap;
}
.badge--inset { box-shadow: var(--n-in-xs); }
.badge--live   { color: var(--n-teal-deep); }
.badge--warn   { color: var(--n-amber-deep); }
.badge--off    { color: var(--n-coral-deep); }

/* 头衔标签的颜色是后台随便填的十六进制，走 --tag-c 而不是内联 color，
   这样两套主题才能各自加工同一个色：浅色原样用，深色往白里提亮。 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: var(--n-r-sm);
    box-shadow: var(--n-in-xs);
    font-size: .74rem;
    color: var(--tag-c, var(--n-text-muted));
}

.dot {
    width: 9px; height: 9px;
    border-radius: var(--n-r-pill);
    background: var(--n-teal-deep);
    flex: none;
}
.dot--pulse { animation: n-pulse 2400ms ease-in-out infinite; }
.dot--off { background: var(--n-text-faint); }

@keyframes n-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--n-pulse); }
    70%      { box-shadow: 0 0 0 8px var(--n-pulse-0); }
}

/* ---------- 9. 头像 / 图标座 ---------- */
.tile {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    flex: none;
    border-radius: var(--n-r);
    background: var(--n-bg);
    box-shadow: var(--n-out);
    font-size: 1.4rem;
    color: var(--n-accent-deep);
    transition: box-shadow var(--n-t);
}
.tile--lg { width: 72px; height: 72px; border-radius: var(--n-r-lg); font-size: 1.8rem; }
.tile--sm { width: 42px; height: 42px; border-radius: var(--n-r-sm); font-size: 1.05rem; }
.tile--accent { background: var(--n-accent); color: var(--n-on-accent); }
.feature:hover .tile { box-shadow: var(--n-out-sm); }

.avatar {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    flex: none;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    font-weight: 600;
    font-size: 1rem;
    color: var(--n-accent-deep);
    overflow: hidden;
}
.avatar--lg { width: 76px; height: 76px; font-size: 1.7rem; box-shadow: var(--n-out); }

/* 真头像用同一个 .avatar 形状，只是里面换成裁切填满的图 */
img.avatar { object-fit: cover; display: block; }

/* ---------- 10. 顶部导航 ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--n-bg);
    padding: 14px 0;
    transition: box-shadow var(--n-t), padding var(--n-t);
}
.nav.is-stuck {
    box-shadow: var(--n-out);
    padding: 8px 0;
}
.nav__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: var(--n-max);
    margin-inline: auto;
    padding-inline: var(--n-gutter);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--n-r-sm);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    color: var(--n-accent-deep);
    font-size: 1.1rem;
    transition: box-shadow var(--n-t);
}
.brand:hover .brand__mark { box-shadow: var(--n-in-xs); }

.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--n-r-pill);
    font-size: .92rem;
    font-weight: 500;
    color: var(--n-text-muted);
    transition: box-shadow var(--n-t), color var(--n-t);
}
.nav__link:hover  { color: var(--n-text); box-shadow: var(--n-out-sm); }
.nav__link:active { box-shadow: var(--n-in-xs); }
.nav__link.is-active {
    color: var(--n-accent-deep);
    font-weight: 600;
    box-shadow: var(--n-in-xs);
}
.nav__aside { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__burger { display: none; }

@media (max-width: 900px) {
    .nav__burger { display: inline-grid; }
    .nav__links {
        position: fixed;
        inset: var(--n-nav-h) 12px auto 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px;
        margin: 0;
        background: var(--n-bg);
        border-radius: var(--n-r-lg);
        box-shadow: var(--n-out-lg);
        transform-origin: top center;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--n-t), visibility var(--n-t);
        z-index: 95;
    }
    .nav__links.is-open { opacity: 1; visibility: visible; }
    .nav__link { padding: 14px 18px; border-radius: var(--n-r); font-size: 1rem; }
}

/* 用户菜单 */
.usermenu { position: relative; }
.usermenu__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    transition: box-shadow var(--n-t);
}
.usermenu__trigger:hover  { box-shadow: var(--n-out-sm); color: var(--n-text); }
.usermenu__trigger:active { box-shadow: var(--n-in-xs); }
.usermenu__name { font-size: .9rem; font-weight: 500; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 244px;
    padding: 10px;
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    opacity: 0;
    visibility: hidden;
    transform: scale(.97);
    transition: opacity var(--n-t), visibility var(--n-t);
    z-index: 96;
}
.usermenu__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.usermenu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-xs);
}
.usermenu__item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 13px;
    border-radius: var(--n-r-sm);
    font-size: .9rem;
    color: var(--n-text-muted);
    text-align: left;
    transition: box-shadow var(--n-t), color var(--n-t);
}
.usermenu__item:hover { color: var(--n-text); box-shadow: var(--n-out-sm); }
.usermenu__item:active { box-shadow: var(--n-in-xs); }
.usermenu__item--danger { color: var(--n-coral-deep); }
.usermenu__sep { height: 1px; margin: 8px 6px; background: var(--n-line); }

/* ---------- 11. 页脚 ---------- */
.footer {
    margin-top: auto;
    background: var(--n-bg-raised);
    box-shadow: var(--n-in-xs);
    padding: clamp(36px, 6vw, 60px) 0 24px;
}
.footer__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer__title { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { font-size: .88rem; color: var(--n-text-muted); transition: color var(--n-t); width: fit-content; }
.footer__list a:hover { color: var(--n-accent-deep); }
.footer__bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--n-line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--n-text-faint);
}

/* ---------- 12. Toast ---------- */
.toasts {
    position: fixed;
    z-index: 200;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: var(--n-bg);
    border-radius: var(--n-r);
    box-shadow: var(--n-out-md);
    font-size: .9rem;
    pointer-events: auto;
    opacity: 0;
    transition: opacity var(--n-t);
}
.toast.is-in { opacity: 1; }
.toast .icon { font-size: 1.1rem; }
.toast--success .icon { color: var(--n-teal-deep); }
.toast--error   .icon { color: var(--n-coral-deep); }
.toast--warn    .icon { color: var(--n-amber-deep); }
.toast--info    .icon { color: var(--n-accent-deep); }

/* ---------- 13. Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--n-t), visibility var(--n-t);
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__scrim {
    position: absolute;
    inset: 0;
    background: var(--n-scrim);
    backdrop-filter: blur(3px);
}
.modal__box {
    position: relative;
    width: min(640px, 100%);
    max-height: min(86vh, 800px);
    overflow-y: auto;
    background: var(--n-bg);
    border-radius: var(--n-r-xl);
    box-shadow: var(--n-out-lg);
    padding: clamp(22px, 4vw, 34px);
}
.modal__box--wide { width: min(880px, 100%); }
.modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    color: var(--n-text-muted);
    font-size: .95rem;
    transition: box-shadow var(--n-t);
    z-index: 2;
}
.modal__close:hover  { box-shadow: var(--n-out-sm); color: var(--n-text); }
.modal__close:active { box-shadow: var(--n-in-xs); }

/* ---------- 14. 状态块 ---------- */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: clamp(36px, 6vw, 60px) 20px;
    text-align: center;
    color: var(--n-text-muted);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in);
}
.empty .icon { font-size: 2rem; color: var(--n-text-faint); }

/* ==========================================================================
   15. 首页
   ========================================================================== */
.hero {
    padding: clamp(36px, 7vw, 76px) 0 clamp(28px, 5vw, 48px);
    display: grid;
    gap: clamp(28px, 5vw, 52px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
}
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; } }

.hero__status { margin-bottom: 22px; }
.hero__title { margin-bottom: 18px; }
.hero__title em { font-style: normal; color: var(--n-accent-deep); }
.hero__sub { font-size: 1.05rem; color: var(--n-text-muted); max-width: 46ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 30px;
    font-size: .85rem;
    color: var(--n-text-faint);
}

/* 右侧：凹陷的控制盘，展示服务器信息 */
.hero-panel {
    background: var(--n-bg);
    border-radius: var(--n-r-xl);
    box-shadow: var(--n-in-md);
    padding: clamp(22px, 3.6vw, 34px);
}
.hero-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}
.hero-panel__label { font-size: .8rem; color: var(--n-text-faint); margin-bottom: 6px; }
.kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
}
.kv + .kv { border-top: 1px solid var(--n-line); }
.kv__k { font-size: .86rem; color: var(--n-text-muted); }
.kv__v { font-weight: 600; font-size: .95rem; }

.ip-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--n-bg);
    border-radius: var(--n-r);
    box-shadow: var(--n-in);
    margin-top: 22px;
}
.ip-chip__value {
    font-family: var(--n-mono);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--n-teal-deep);
    overflow-wrap: anywhere;
}

/* 公告条 */
.notice {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    background: var(--n-bg);
    border-radius: var(--n-r);
    box-shadow: var(--n-in-sm);
    font-size: .9rem;
    color: var(--n-text-muted);
    margin-bottom: 26px;
}
.notice .icon { color: var(--n-amber-deep); font-size: 1.05rem; flex: none; }

/* 消息流 */
.feed { display: flex; flex-direction: column; gap: 16px; }
.msg {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: clamp(18px, 2.6vw, 24px);
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    transition: box-shadow var(--n-t);
}
.msg:hover { box-shadow: var(--n-out); }
.msg__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.msg__title { font-size: 1.04rem; font-weight: 600; }
.msg__meta { font-size: .78rem; color: var(--n-text-muted); margin-left: auto; white-space: nowrap; }
.msg__body {
    font-size: .92rem;
    color: var(--n-text-muted);
    line-height: 1.7;
    max-width: 66ch;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
@media (max-width: 520px) {
    .msg { grid-template-columns: 1fr; }
    .msg__meta { margin-left: 0; }
}

/* 功能入口卡 */
.feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(20px, 3vw, 28px);
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    transition: box-shadow var(--n-t);
    cursor: pointer;
    text-align: left;
    width: 100%;
}
a.feature { display: flex; }
.feature:hover  { box-shadow: var(--n-out); }
.feature:active { box-shadow: var(--n-in-sm); }
.feature__body { flex: 1 1 auto; min-width: 0; }
.feature__title { font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; }
.feature__desc { font-size: .89rem; color: var(--n-text-muted); margin-bottom: 14px; }
.feature__go {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    flex: none;
    border-radius: var(--n-r-pill);
    box-shadow: var(--n-out-sm);
    color: var(--n-accent-deep);
    font-size: .85rem;
    transition: box-shadow var(--n-t);
}
.feature:hover .feature__go { box-shadow: var(--n-in-xs); }

/* AI 引导条 */
.ai-prompt {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    background: var(--n-bg);
    border-radius: var(--n-r-xl);
    box-shadow: var(--n-out-md);
    padding: clamp(22px, 3.4vw, 32px);
}
@media (max-width: 720px) {
    .ai-prompt { grid-template-columns: 1fr; text-align: left; }
}

/* 我们的目标：主视觉右侧，取代原来的服务器信息面板 */
.goals { display: flex; flex-direction: column; gap: 18px; }
.goal {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}
.goal__num {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    flex: none;
    border-radius: var(--n-r-pill);
    box-shadow: var(--n-in-xs);
    font-size: .82rem;
    font-weight: 700;
    color: var(--n-accent-deep);
}
.goal__t { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; line-height: 1.45; }
.goal__d { font-size: .88rem; color: var(--n-text-muted); max-width: 44ch; }
@media (max-width: 520px) {
    .goal { grid-template-columns: auto minmax(0, 1fr); }
    .goal .tile { display: none; }
}

/* 每日祝福 */
.blessing {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    background: var(--n-bg);
    border-radius: var(--n-r-pill);
    box-shadow: var(--n-in-sm);
    font-size: .9rem;
    color: var(--n-text-muted);
    margin-bottom: 18px;
}
.blessing .icon { color: var(--n-amber-deep); font-size: 1.05rem; flex: none; }

/* 赞助我们 */
.sponsor {
    background: var(--n-bg);
    border-radius: var(--n-r-xl);
    box-shadow: var(--n-out-md);
    padding: clamp(24px, 4vw, 38px);
}
.sponsor__head {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.sponsor__head .icon { color: var(--n-coral-deep); }
.sponsor__note { font-size: .95rem; color: var(--n-text-muted); max-width: 62ch; line-height: 1.75; }
.sponsor__list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.sponsor__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-sm);
    flex-wrap: wrap;
}
.sponsor__k { font-size: .86rem; color: var(--n-text-muted); min-width: 6.5em; }
.sponsor__row .mono { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* 软登录门槛提示条 */
.gate-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out);
    margin-bottom: 22px;
}
.gate-bar > .icon { color: var(--n-accent-deep); font-size: 1.2rem; flex: none; }

/* ==========================================================================
   16. 最佳成员
   ========================================================================== */
.member {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px 20px;
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    cursor: pointer;
    text-align: left;
    transition: box-shadow var(--n-t);
}
.member:hover  { box-shadow: var(--n-out); }
.member:active { box-shadow: var(--n-in-sm); }
.member__rank {
    position: absolute;
    top: -10px; left: 18px;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    display: grid;
    place-items: center;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    font-size: .82rem;
    font-weight: 700;
    color: var(--n-text-muted);
}
.member--1 .member__rank { color: var(--n-amber-deep); }
.member--2 .member__rank { color: var(--n-teal-deep); }
.member--3 .member__rank { color: var(--n-coral-deep); }
.member__top { display: flex; align-items: center; gap: 14px; }
.member__name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.member__role { font-size: .82rem; color: var(--n-text-muted); }
.member__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    box-shadow: var(--n-in-xs);
    margin-top: auto;
}
.member__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--n-text-muted);
    padding: 5px 10px;
    border-radius: var(--n-r-sm);
    background: var(--n-bg);
}
.level {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    padding: 4px 9px;
    border-radius: var(--n-r-pill);
    box-shadow: var(--n-in-xs);
    font-size: .72rem;
    font-weight: 700;
    color: var(--n-accent-deep);
}

/* 进度条（贡献值） */
.meter { height: 12px; border-radius: var(--n-r-pill); box-shadow: var(--n-in-xs); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: var(--n-r-pill); background: var(--n-accent); }

/* ==========================================================================
   17. 社区 / QQ 群
   ========================================================================== */
.group-list { display: flex; flex-direction: column; gap: 14px; }
.group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--n-bg);
    border-radius: var(--n-r);
    box-shadow: var(--n-out);
    transition: box-shadow var(--n-t);
}
.group:hover  { box-shadow: var(--n-out-sm); }
.group:active { box-shadow: var(--n-in-xs); }
.group__meta { flex: 1 1 auto; min-width: 0; }
.group__name { font-weight: 600; font-size: .98rem; }
.group__desc { font-size: .82rem; color: var(--n-text-muted); overflow-wrap: anywhere; }
.rules {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-sm);
    font-size: .84rem;
    color: var(--n-text-muted);
}
.rules .icon { color: var(--n-coral-deep); flex: none; margin-top: 3px; }

/* ==========================================================================
   18. MC 服务器页
   ========================================================================== */
.srv {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(22px, 3vw, 30px);
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    text-align: center;
    align-items: center;
    cursor: pointer;
    transition: box-shadow var(--n-t);
}
.srv:hover  { box-shadow: var(--n-out); }
.srv:active { box-shadow: var(--n-in-sm); }
.srv__name { font-size: 1.1rem; font-weight: 600; }
.srv__status { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; }
.srv__players { font-size: .8rem; color: var(--n-text-faint); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 14px;
}
.stat {
    padding: 20px 16px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-sm);
    text-align: center;
}
.stat__v { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat__k { font-size: .78rem; color: var(--n-text-muted); margin-top: 4px; }

/* ==========================================================================
   19. 作品 / 小世界
   ========================================================================== */
.work {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    overflow: hidden;
    transition: box-shadow var(--n-t);
}
.work:hover  { box-shadow: var(--n-out); }
.work__cover {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: var(--n-bg-raised);
    box-shadow: var(--n-in-sm);
    font-size: 2.2rem;
    color: var(--n-accent-deep);
    border-radius: var(--n-r);
    margin: 14px;
}
.work__body { padding: 0 clamp(18px, 2.6vw, 26px) clamp(20px, 2.6vw, 26px); display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.work__title { font-size: 1.08rem; font-weight: 600; }
.work__desc { font-size: .88rem; color: var(--n-text-muted); }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline__item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding-bottom: 26px;
}
.timeline__mark {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    color: var(--n-accent-deep);
    font-size: 1.15rem;
}
.timeline__body { padding-top: 6px; }

/* ==========================================================================
   20. 登录 / 注册
   ========================================================================== */
.auth {
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: clamp(24px, 6vw, 64px) var(--n-gutter);
}
.auth__card {
    width: min(460px, 100%);
    background: var(--n-bg);
    border-radius: var(--n-r-xl);
    box-shadow: var(--n-out-lg);
    padding: clamp(26px, 5vw, 42px);
}
.auth__head { text-align: center; margin-bottom: 28px; }
.auth__form { display: flex; flex-direction: column; gap: 18px; }
.auth__foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--n-line);
    text-align: center;
    font-size: .87rem;
    color: var(--n-text-muted);
}
.auth__paused { text-align: center; padding: 8px 0 4px; }

/* ==========================================================================
   21. 个人中心
   ========================================================================== */
.account {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
}
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }

.account__nav { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 96px; }
@media (max-width: 860px) { .account__nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; } }
.account__tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--n-r);
    font-size: .93rem;
    font-weight: 500;
    color: var(--n-text-muted);
    white-space: nowrap;
    transition: box-shadow var(--n-t), color var(--n-t);
}
.account__tab:hover  { color: var(--n-text); box-shadow: var(--n-out-sm); }
.account__tab:active { box-shadow: var(--n-in-xs); }
.account__tab.is-active { color: var(--n-accent-deep); box-shadow: var(--n-in-sm); font-weight: 600; }

.pane { display: none; }
.pane.is-active { display: block; }

.def-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.def-row + .def-row { border-top: 1px solid var(--n-line); }

.hist { display: flex; flex-direction: column; gap: 12px; }
.hist__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-xs);
    font-size: .87rem;
    flex-wrap: wrap;
}

/* 金币榜单的序号：和行本身一样是凹下去的一小块，靠形状而不是颜色分主次 */
.rank {
    width: 30px; height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--n-r-sm);
    box-shadow: var(--n-out-sm);
    font-weight: 700;
    font-size: .82rem;
    color: var(--n-text-muted);
}

/* 个人中心里「封面照」的预览位：16:9 的凹槽，没传时里面放一句提示 */
.cover-slot {
    width: min(280px, 100%);
    aspect-ratio: 16 / 9;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--n-r-sm);
    box-shadow: var(--n-in-sm);
    overflow: hidden;
    font-size: .8rem;
}
img.cover-fill { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   22. 管理层页（照设计稿重做：上浅色大标题区 + 下深色带照片卡）
   --------------------------------------------------------------------------
   这一页刻意不做新拟物，全部规则收在 .tm-* 命名空间里，站其余页面一点不受影响。
   本地令牌集中定义在 .tm 上，深色带上的每个文字色都单独算过对比度：
     #ffffff / #241d1b ≈ 15:1   #b9b2ae / #241d1b ≈ 7.6:1
     #ffffff / #c8102e ≈  5.9:1  #14161c / #c9d8f5 ≈ 13:1
   版式的三条硬约束（上一版就是没守住才跟效果图差很多）：
     1. 分组标题留在浅色区，浅色→深色的分界线切在「标题」与「卡片」之间；
        所以右侧大图底缘必须停在标题之上，否则标题会压到别人上传的照片上失去对比度。
     2. 卡片尺寸用 clamp 写死，不用 1fr 平摊 —— 1fr 在宽屏上会把两张卡撑成 400×530 的巨块。
     3. 大卡的名字在卡片**上方**（效果图如此），所以压底渐变也必须朝上（.tm-card::after），
        不然换一张亮底封面照，白字就会糊在照片里。
   ========================================================================== */
.tm {
    --tm-light: #dfe2e8;
    --tm-ink: #14161c;
    --tm-ink-soft: #4a4f5c;
    --tm-dark: #241d1b;
    --tm-dark-2: #2f2725;
    --tm-mute: #b9b2ae;
    --tm-red: #c8102e;
    --tm-red-deep: #8c0b20;
    --tm-red-lite: #ff5d78;
    --tm-blue: #1f6feb;
    --tm-blue-lite: #7aa7ff;
    --tm-blue-block: #c9d8f5;
}
.tm-stage {
    position: relative;
    background: var(--tm-light);
    overflow: hidden;
}
.tm > .shell { position: relative; z-index: 3; }

/* ---------- 浅色上半：左侧文字，右侧出血大图 ---------- */
.tm-hero { position: relative; padding: clamp(34px, 5.5vh, 66px) 0 0; }
.tm-hero__text {
    position: relative;
    z-index: 2;
    max-width: min(56%, 62ch);
    padding: 0 var(--n-gutter);
}
.tm-title {
    margin: 0;
    font-size: clamp(1.95rem, 3.4vw, 3.1rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--tm-ink);
}
/* 签名：没有引入任何外部字体，所以用「倾斜 + 细笔画 + 蓝色」去接近手写的观感，
   而不是假装能拿到某款手写体 */
.tm-sign {
    display: inline-block;
    margin-left: 12px;
    font-size: clamp(1.1rem, 1.9vw, 1.6rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: .04em;
    color: var(--tm-blue);
    transform: rotate(-4deg);
}
.tm-sub {
    margin: 13px 0 0;
    font-size: clamp(.9rem, 1.1vw, 1.02rem);
    color: var(--tm-ink-soft);
}
.tm-chips { display: flex; gap: 7px; margin-top: 18px; }
.tm-chip {
    width: 14px; height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(20, 22, 28, .28);
}
.tm-chip.is-on { background: var(--tm-blue); border-color: var(--tm-blue); }

/* 左侧竖排红字：纯装饰，读屏器跳过它 */
.tm-wm {
    position: absolute;
    left: 5px; top: 88px;
    height: 280px;
    overflow: hidden;
    writing-mode: vertical-rl;
    white-space: nowrap;
    font-size: .7rem;
    letter-spacing: .34em;
    color: rgba(200, 16, 46, .34);
    pointer-events: none;
    z-index: 1;
}

/* 右侧出血大图：底缘停在分组标题之上，这样标题永远落在干净的浅色上，
   不会一半压在别人上传的照片上失去对比度 */
.tm-portrait {
    position: absolute;
    right: 0; top: 0; bottom: 86px;
    width: min(46%, 860px);
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.tm-portrait .tm-photo {
    width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 100%),
                       linear-gradient(to bottom, #000 0, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 26%, #000 100%),
                linear-gradient(to bottom, #000 0, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.tm-portrait .tm-photo > img { object-position: top center; }

/* 分组标题：和下面的卡片列共用同一套栅格与留白，所以天然对齐 */
.tm-labels {
    position: relative;
    z-index: 2;
    max-width: var(--n-max);
    margin: clamp(26px, 4.5vh, 54px) auto 0;
    padding: 0 var(--n-gutter);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 34px;
}
.tm-label {
    margin: 0;
    padding-left: 11px;
    border-left: 3px solid var(--tm-blue);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--tm-ink);
}

/* ---------- 深色带 ---------- */
.tm-band {
    position: relative;
    z-index: 2;
    background: var(--tm-dark);
    padding: 20px var(--n-gutter) 34px;
}
.tm-cols {
    max-width: var(--n-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

/* 左：大卡。尺寸写死而不是 1fr 平摊 —— 上一版用 1fr，宽屏下两张卡被撑成 400×530 的巨块 */
.tm-big { display: flex; flex-wrap: wrap; gap: 14px; }
.tm-card {
    position: relative;
    width: clamp(180px, 15.5vw, 252px);
    aspect-ratio: 3 / 4;
    flex: none;
    overflow: hidden;
    background: var(--tm-dark-2);
    color: #fff;
    isolation: isolate;
}
/* 顶部压一层渐变：效果图的名字在卡片上方，而照片是别人上传的，
   亮底照片会让白字直接消失，所以遮罩必须在名字那一侧 */
.tm-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(8, 9, 12, .72) 0, rgba(8, 9, 12, .22) 34%, transparent 60%);
    z-index: 2;
}
.tm-card__txt { position: absolute; left: 16px; right: 12px; top: 14px; z-index: 3; }
.tm-card__name {
    font-size: clamp(1.15rem, 1.75vw, 1.6rem);
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.tm-card__role { margin-top: 3px; font-size: .76rem; color: #cfe0ff; }

/* 右：窄卡，尺寸同样写死 */
.tm-mini { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-tile {
    display: flex;
    flex-direction: column;
    width: clamp(104px, 8.6vw, 132px);
    flex: none;
    background: var(--tm-dark-2);
    color: #fff;
    overflow: hidden;
}
.tm-tile__head { padding: 8px 9px 6px; }
.tm-tile__head b { display: block; font-size: .9rem; font-weight: 800; }
.tm-tile__head span { display: block; margin-top: 2px; font-size: .64rem; color: var(--tm-mute); }
.tm-tile__quote {
    padding: 7px 9px;
    background: var(--tm-blue-block);
    color: var(--tm-ink);
    font-size: .7rem;
    line-height: 1.5;
}

/* 照片区统一用一个 .tm-photo 容器装：里面两层（模糊底色 + 清晰前景）必须重叠，
   所以两层都绝对定位。窄卡和大卡的区别只在容器怎么摆。 */
.tm-photo { position: relative; overflow: hidden; background: var(--tm-dark-2); }
.tm-card .tm-photo { position: absolute; inset: 0; z-index: 1; }
.tm-tile .tm-photo { aspect-ratio: 4 / 5; }
.tm-tile .tm-photo > img, .tm-tile .tm-photo > span { position: absolute; inset: 0; }
.tm-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-blur {
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.15);
    transform: scale(1.22);
}
.tm-sharp { object-fit: contain; padding: 14%; }
.tm-ph {
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #3b4252 0%, #2b3040 100%);
}
.tm-ph b { font-size: 2rem; font-weight: 900; color: rgba(255, 255, 255, .82); }

/* ---------- 红色横幅引用：压在左列大卡的下沿上 ---------- */
.tm-banner {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(100%, calc(var(--n-max) * .56));
    margin: -46px auto 0;
    padding: 13px 20px;
    background: linear-gradient(90deg, var(--tm-red-deep) 0%, var(--tm-red) 62%, #e0294a 100%);
    border-left: 6px solid var(--tm-red-lite);
    color: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
}
.tm-banner .avatar { width: 50px; height: 50px; font-size: 1.05rem; border-radius: 50%; }
.tm-banner__name { font-size: .92rem; font-weight: 800; }
.tm-banner__quote { margin: 4px 0 0; font-size: .92rem; color: #ffe9ec; }

.tm-foot {
    max-width: var(--n-max);
    margin: 22px auto 0;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #7d736f;
}
.tm-none {
    padding: 18px 4px;
    color: var(--tm-mute);
    font-size: .88rem;
    line-height: 1.7;
}

/* ---------- 窄屏：大图退回正常位置，两栏叠成一栏 ---------- */
@media (max-width: 900px) {
    .tm-hero { padding-top: 26px; }
    .tm-hero__text { max-width: 100%; }
    .tm-portrait {
        position: relative;
        right: auto; bottom: auto;
        width: 100%;
        height: 300px;
        margin-top: 18px;
    }
    .tm-portrait .tm-photo {
        -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    }
    .tm-wm { display: none; }
    .tm-labels, .tm-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .tm-labels { margin-top: 22px; }
    .tm-banner { margin-top: 20px; flex-wrap: wrap; max-width: 100%; }
}


/* ==========================================================================
   23. AI 助手
   ========================================================================== */
.ai-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    width: 62px; height: 62px;
    display: grid;
    place-items: center;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    color: var(--n-accent-deep);
    font-size: 1.4rem;
    box-shadow: var(--n-out-md);
    transition: box-shadow var(--n-t);
}
.ai-fab:hover  { box-shadow: var(--n-out-sm); }
.ai-fab:active { box-shadow: var(--n-in-sm); }

.ai {
    position: fixed;
    right: 22px;
    bottom: 96px;
    z-index: 121;
    width: min(386px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    background: var(--n-bg);
    border-radius: var(--n-r-xl);
    box-shadow: var(--n-out-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--n-t), visibility var(--n-t);
}
.ai.is-open { opacity: 1; visibility: visible; }
.ai__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
}
.ai__title { font-weight: 600; font-size: .96rem; }
.ai__state { font-size: .76rem; color: var(--n-text-muted); }
.ai__log {
    height: min(340px, 45vh);
    overflow-y: auto;
    padding: 6px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bubble {
    max-width: 82%;
    padding: 13px 16px;
    border-radius: var(--n-r);
    font-size: .89rem;
    line-height: 1.62;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.bubble--ai   { background: var(--n-bg); box-shadow: var(--n-in-xs); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble--me   { background: var(--n-accent); color: var(--n-on-accent); box-shadow: var(--n-out-sm); border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble--err  { box-shadow: var(--n-in-xs); color: var(--n-coral-deep); align-self: flex-start; }
.ai__foot { padding: 14px 18px 18px; }
.ai__send {
    display: flex;
    gap: 10px;
    align-items: center;
}
.ai__send .input { padding-right: 16px; }

.typing { display: inline-flex; gap: 5px; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: var(--n-r-pill); background: var(--n-text-faint); animation: n-blink 1200ms ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 180ms; }
.typing i:nth-child(3) { animation-delay: 360ms; }
@keyframes n-blink { 0%, 100% { opacity: .28; } 50% { opacity: 1; } }

/* ==========================================================================
   24. 响应式阴影缩放（移动端阴影更小）
   ========================================================================== */
@media (max-width: 768px) {
    .card, .feature, .member, .srv, .work, .ai-prompt, .auth__card,
    .hero-panel, .modal__box, .toast, .nav__links.is-open,
    .msg, .sponsor, .gate-bar { box-shadow: var(--n-out); }
    .tile { box-shadow: var(--n-out-sm); }
    .ai-fab { box-shadow: var(--n-out); }
    .toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* 桌面大屏：主视觉区阴影更厚 */
@media (min-width: 1280px) {
    .card, .feature, .member, .srv, .work { box-shadow: var(--n-out-lg); }
}

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

/* ==========================================================================
   25. 仪表（explore.html）
   --------------------------------------------------------------------------
   顶部一排板块按钮，下面一次只显示一个板块；没有 hash 时只画「欢迎回来」。
   这一页族有自己的 .pn-bar，不复用全站 .nav —— 两套版式混在一个类里，
   改哪边都会伤到另一边。全部颜色走 --n-* 令牌，明暗两套自动跟着站点开关走。
   ========================================================================== */
.pn-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--n-bg);
    padding: 14px 0;
    transition: box-shadow var(--n-t), padding var(--n-t);
}
.pn-bar.is-stuck { box-shadow: var(--n-out); padding: 8px 0; }
.pn-bar__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: var(--n-max);
    margin-inline: auto;
    padding-inline: var(--n-gutter);
}
.pn-bar__aside { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }

.hub-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: var(--n-max);
    margin: 8px auto 0;
    padding: 0 var(--n-gutter) 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.hub-nav__link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--n-text-muted);
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: box-shadow var(--n-t), color var(--n-t);
}
.hub-nav__link .icon { width: 18px; height: 18px; }
.hub-nav__link:hover  { color: var(--n-text); box-shadow: var(--n-out-sm); }
.hub-nav__link:active { box-shadow: var(--n-in-xs); }
.hub-nav__link.is-active {
    color: var(--n-accent-deep);
    font-weight: 600;
    box-shadow: var(--n-in-sm);
}
@media (max-width: 600px) {
    .hub-nav__link { padding: 9px 13px; font-size: .84rem; }
}

.hub {
    max-width: var(--n-max);
    margin-inline: auto;
    padding: clamp(24px, 4vw, 44px) var(--n-gutter) clamp(48px, 7vw, 80px);
}
.hub-pane { min-width: 0; }
.hub-pane--welcome {
    min-height: clamp(380px, 58vh, 700px);
    display: grid;
    place-items: center;
}
.hub-welcome { text-align: center; }
.hub-welcome__title {
    margin: 0;
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    letter-spacing: .08em;
}

.hub-gate {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out);
    margin-bottom: 18px;
}
.hub-gate > .icon { color: var(--n-accent-deep); flex: none; }
.hub-gate p { font-size: .87rem; margin: 4px 0 0; }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 14px;
}
.hub-grid--works { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    border: 0;
    border-radius: var(--n-r-lg);
    background: var(--n-bg);
    color: inherit;
    font: inherit;
    text-align: left;
    box-shadow: var(--n-out);
    transition: box-shadow var(--n-t), transform var(--n-t);
}
a.hub-card, button.hub-card { cursor: pointer; }
a.hub-card:hover, button.hub-card:hover { box-shadow: var(--n-out-sm); transform: translateY(-1px); }
a.hub-card:active, button.hub-card:active { box-shadow: var(--n-in-xs); transform: none; }
.hub-card--flat { cursor: default; }
.hub-card .tile { margin-bottom: 4px; }
.hub-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 1rem;
    font-weight: 600;
}
.hub-card__desc {
    display: block;
    margin: 0;
    color: var(--n-text-muted);
    font-size: .88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.hub-card__foot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--n-accent-deep);
    font-size: .84rem;
    font-weight: 500;
}
.hub-card--work .work__tags { margin-top: 2px; }
.hub-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

.hub-srv-list { display: flex; flex-direction: column; gap: 10px; }
.hub-srv-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-radius: var(--n-r-lg);
    background: var(--n-bg);
    color: inherit;
    font: inherit;
    text-align: left;
    box-shadow: var(--n-out);
    cursor: pointer;
    transition: box-shadow var(--n-t);
}
.hub-srv-row:hover { box-shadow: var(--n-out-sm); }
.hub-srv-row__body { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.hub-srv-row__name { font-weight: 600; }
.hub-srv-row__desc { color: var(--n-text-muted); font-size: .84rem; }
.hub-srv-row__state { flex: none; }
.hub-srv-row__players { flex: none; min-width: 96px; text-align: right; color: var(--n-text-muted); font-size: .84rem; }
@media (max-width: 600px) {
    .hub-srv-row__players { width: 100%; text-align: left; }
}

.hub-goods {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
}
.hub-goods__main { min-width: 0; }
.hub-goods__block {
    padding-bottom: clamp(26px, 4vw, 38px);
    margin-bottom: clamp(24px, 3vw, 34px);
    border-bottom: 1px solid var(--n-line);
    scroll-margin-top: 160px;
}
.hub-goods__block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.hub-goods__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.hub-goods__head .tile { flex: none; }
.hub-goods__desc { color: var(--n-text-muted); font-size: .9rem; margin-top: 4px; max-width: 60ch; }
.hub-rail {
    position: sticky;
    top: calc(var(--n-nav-h) + 86px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in-sm);
}
.hub-rail__label { font-size: .72rem; letter-spacing: .14em; color: var(--n-text-faint); padding: 2px 10px 6px; }
.hub-rail__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--n-bg);
    color: var(--n-text-muted);
    font: inherit;
    font-size: .83rem;
    text-align: left;
    box-shadow: var(--n-out-sm);
    cursor: pointer;
    transition: box-shadow var(--n-t), color var(--n-t);
}
.hub-rail__btn:hover  { color: var(--n-text); box-shadow: var(--n-out); }
.hub-rail__btn:active { box-shadow: var(--n-in-xs); }
.hub-rail__btn--top { margin-top: 6px; color: var(--n-accent-deep); }
@media (max-width: 900px) {
    .hub-goods { grid-template-columns: 1fr; }
    .hub-rail {
        position: static;
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0;
        box-shadow: none;
    }
    .hub-rail__label { width: 100%; padding-left: 4px; }
    .hub-rail__btn { width: auto; }
}

.hub-skin {
    padding: 20px;
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in-sm);
    color: var(--n-text-muted);
    font-size: .92rem;
}
.hub-skin p { margin: 0 0 8px; }
.hub-skin p:last-child { margin: 0; }

.hub-about {
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out);
    margin-bottom: clamp(22px, 3.5vw, 32px);
}
.hub-about__intro { font-size: 1.02rem; margin: 0 0 8px; }
.hub-about__meta { color: var(--n-text-muted); font-size: .88rem; margin: 0 0 18px; }

.pn-head { margin-bottom: clamp(18px, 3vw, 26px); }
.pn-head__sub { color: var(--n-text-muted); font-size: .95rem; margin-top: 6px; max-width: 62ch; }
.pn-sec { margin-top: clamp(22px, 3.6vw, 34px); }
.pn-sec__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.pn-sec__title .icon { color: var(--n-accent-deep); }

/* 板块正文里的内容块：管理员填一段就出现一段，没填就整块不渲染 */
.pn-block { padding: 2px 0 16px; }
.pn-block__title { font-weight: 600; margin-bottom: 6px; }
.pn-block__body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--n-text-muted); font-size: .93rem; }

/* 下载条目：一条一行，左边是什么文件说清楚，右边才是动作 */
.pn-items { display: flex; flex-direction: column; gap: 14px; }
.pn-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out);
    flex-wrap: wrap;
    transition: box-shadow var(--n-t);
}
.pn-item:hover { box-shadow: var(--n-out-sm); }
.pn-item__t { font-weight: 600; }
.pn-item__meta { font-size: .78rem; color: var(--n-text-faint); margin-top: 3px; }
.pn-item__note { font-size: .87rem; color: var(--n-text-muted); margin-top: 4px; max-width: 52ch; }

/* ==========================================================================
   26. 调查问卷
   ========================================================================== */
.survey-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.survey-toolbar #surveyTabs { flex: 1 1 auto; }
.survey-toolbar .badge[hidden] { display: none; }
.survey-tab__n { font-size: .72rem; color: var(--n-text-faint); }
.pill.is-active .survey-tab__n { color: inherit; }

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: clamp(16px, 2.4vw, 22px);
}

.survey-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(20px, 3vw, 26px);
    background: var(--n-bg);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-out-md);
    color: var(--n-text);
    transition: box-shadow var(--n-t);
}
.survey-card:hover { box-shadow: var(--n-out); }
.survey-card:active { box-shadow: var(--n-in-sm); }
.survey-card__top { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-card__title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.survey-card__note {
    color: var(--n-text-muted);
    font-size: .9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.survey-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-top: 12px;
    border-top: 1px solid var(--n-line);
    color: var(--n-text-muted);
    font-size: .8rem;
}
.survey-card__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.survey-card__meta .icon { color: var(--n-text-faint); }
.survey-card__go {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--n-accent-deep);
    font-size: .88rem;
    font-weight: 600;
}
.survey-card__go .icon { transition: transform var(--n-t); }
.survey-card:hover .survey-card__go .icon { transform: translateX(3px); }

.survey-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: clamp(40px, 7vw, 70px) 20px;
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in);
    color: var(--n-text-muted);
    font-size: .92rem;
}
.survey-loading .icon { color: var(--n-accent-deep); animation: survey-pulse 1.6s ease-in-out infinite; }
@keyframes survey-pulse { 50% { opacity: .35; } }

.survey-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-xs);
    color: var(--n-text-muted);
    font-size: .9rem;
    line-height: 1.65;
}
.survey-alert .icon { flex: none; margin-top: 2px; }
.survey-alert--info .icon { color: var(--n-accent-deep); }
.survey-alert--ok { color: var(--n-teal-deep); }
.survey-alert--warn { color: var(--n-amber-deep); }
.survey-alert--ok .icon, .survey-alert--warn .icon { color: currentColor; }

.survey-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 900px;
    margin-inline: auto;
    padding-block: clamp(26px, 4.5vw, 52px);
}
.survey-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px 14px 8px 10px;
    border-radius: var(--n-r-pill);
    color: var(--n-text-muted);
    font-size: .88rem;
    font-weight: 500;
    transition: box-shadow var(--n-t), color var(--n-t);
}
.survey-back:hover  { color: var(--n-text); box-shadow: var(--n-out-sm); }
.survey-back:active { box-shadow: var(--n-in-xs); }

.survey-head { display: flex; flex-direction: column; gap: 12px; }
.survey-head__top { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-head__title { overflow-wrap: anywhere; }
.survey-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--n-text-muted);
    font-size: .84rem;
}
.survey-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.survey-meta .icon { color: var(--n-text-faint); }
.survey-intro {
    padding-top: 14px;
    border-top: 1px solid var(--n-line);
    color: var(--n-text-muted);
    font-size: .92rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.survey-outro {
    padding-inline: 4px;
    text-align: center;
    color: var(--n-text-faint);
    font-size: .86rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.survey-body { display: flex; flex-direction: column; gap: 20px; }
.survey-login { align-items: center; text-align: center; padding-block: clamp(34px, 6vw, 56px); }
.survey-login__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: var(--n-r-pill);
    box-shadow: var(--n-out);
    color: var(--n-accent-deep);
    font-size: 1.4rem;
}
.survey-login .btn { margin-top: 6px; }

.survey-form { display: flex; flex-direction: column; gap: 24px; }
.survey-question { display: flex; flex-direction: column; gap: 12px; }
.survey-question + .survey-question { padding-top: 24px; border-top: 1px solid var(--n-line); }
.survey-qhead { display: flex; flex-direction: column; gap: 4px; }
.survey-qtitle { font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.survey-required { color: var(--n-coral-deep); margin-left: 5px; }
.survey-qnote { color: var(--n-text-muted); font-size: .86rem; line-height: 1.6; }

.survey-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 -4px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--n-accent-deep);
}
.survey-section::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--n-line);
}
.survey-other {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-xs);
}
.survey-other[hidden] { display: none; }
.survey-other .field__label { font-size: .84rem; }

.survey-choices { display: grid; gap: 9px; }
.survey-choice { position: relative; display: block; cursor: pointer; }
.survey-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey-choice__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--n-bg);
    border-radius: var(--n-r);
    box-shadow: var(--n-out-sm);
    color: var(--n-text-muted);
    font-size: .93rem;
    line-height: 1.5;
    transition: box-shadow var(--n-t), color var(--n-t);
}
.survey-choice:hover .survey-choice__body { box-shadow: var(--n-out); color: var(--n-text); }
.survey-choice:has(input:checked) .survey-choice__body {
    box-shadow: var(--n-in-xs);
    color: var(--n-accent-deep);
    font-weight: 600;
}
.survey-choice input:focus-visible + .survey-choice__body {
    outline: 3px solid var(--n-ring-soft);
    outline-offset: 2px;
}
.survey-dot, .survey-box {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    background: var(--n-bg);
    box-shadow: var(--n-in-xs);
}
.survey-dot { border-radius: 50%; }
.survey-box { border-radius: 6px; }
.survey-dot::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--n-accent);
    transform: scale(0);
    transition: transform var(--n-t);
}
.survey-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--n-on-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--n-t);
}
.survey-choice input:checked + .survey-choice__body .survey-dot { box-shadow: var(--n-in-xs), 0 0 0 1px var(--n-accent); }
.survey-choice input:checked + .survey-choice__body .survey-dot::after { transform: scale(1); }
.survey-choice input:checked + .survey-choice__body .survey-box {
    background: var(--n-accent);
    box-shadow: var(--n-in-xs);
}
.survey-choice input:checked + .survey-choice__body .survey-box::after { transform: rotate(45deg) scale(1); }

.survey-rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.survey-rating__edge { font-size: .78rem; color: var(--n-text-faint); }
.survey-rating__scale { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-rating__item { position: relative; cursor: pointer; }
.survey-rating__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey-rating__item span {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 8px;
    border-radius: var(--n-r);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    color: var(--n-text-muted);
    font-weight: 600;
    transition: box-shadow var(--n-t), color var(--n-t), background var(--n-t);
}
.survey-rating__item:hover span { box-shadow: var(--n-out); color: var(--n-text); }
.survey-rating__item input:checked + span {
    background: var(--n-accent);
    color: var(--n-on-accent);
    box-shadow: var(--n-in-sm);
}
.survey-rating__item input:focus-visible + span { outline: 3px solid var(--n-ring-soft); outline-offset: 2px; }

.survey-rank { display: flex; flex-direction: column; gap: 10px; }
.survey-rank__list { display: flex; flex-direction: column; gap: 8px; }
.survey-rank__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 12px;
    border-radius: var(--n-r);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
}
.survey-rank__n {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: var(--n-in-xs);
    color: var(--n-accent-deep);
    font-size: .8rem;
    font-weight: 600;
}
.survey-rank__label { flex: 1; min-width: 0; font-size: .93rem; overflow-wrap: anywhere; }
.survey-rank__btns { display: flex; gap: 5px; flex: none; }

.survey-matrix-wrap { overflow-x: auto; padding: 4px; margin: -4px; }
.survey-matrix { border-collapse: separate; border-spacing: 4px; min-width: 100%; }
.survey-matrix th {
    padding: 8px 10px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--n-text-muted);
    text-align: center;
}
.survey-matrix tbody th { text-align: left; min-width: 120px; }
.survey-matrix thead th:not(.survey-matrix__corner) { min-width: 74px; }
.survey-matrix td { padding: 0; text-align: center; }
.survey-cell { display: grid; place-items: center; padding: 8px; cursor: pointer; }
.survey-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey-cell__dot {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--n-bg);
    box-shadow: var(--n-in-xs);
    transition: background var(--n-t);
}
.survey-cell__dot::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--n-on-accent);
    transform: scale(0);
    transition: transform var(--n-t);
}
.survey-cell input:checked + .survey-cell__dot { background: var(--n-accent); }
.survey-cell input:checked + .survey-cell__dot::after { transform: scale(1); }
.survey-cell input:focus-visible + .survey-cell__dot { outline: 3px solid var(--n-ring-soft); outline-offset: 2px; }

.survey-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }

.survey-answers { display: flex; flex-direction: column; gap: 10px; }
.survey-answer-row { padding: 14px 16px; border-radius: var(--n-r); box-shadow: var(--n-in-xs); }
.survey-answer-q { font-size: .8rem; color: var(--n-text-muted); margin-bottom: 5px; }
.survey-answer-a { font-size: .93rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

.survey-results { gap: 0; }
.survey-results__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--n-line);
}
.survey-results .survey-result {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--n-line);
}
.survey-results .survey-result:first-of-type { margin-top: 0; padding-top: 22px; border-top: 0; }

.survey-bars { display: flex; flex-direction: column; gap: 12px; }
.survey-bar { display: flex; flex-direction: column; gap: 6px; }
.survey-bar__head { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; }
.survey-bar__head span:first-child { color: var(--n-text); overflow-wrap: anywhere; }
.survey-bar__head span:last-child { color: var(--n-text-muted); white-space: nowrap; }
.survey-bar__track {
    height: 10px;
    border-radius: var(--n-r-pill);
    box-shadow: var(--n-in-xs);
    overflow: hidden;
}
.survey-bar__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--n-accent), var(--n-teal-deep));
    transition: width .5s ease;
}

.survey-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.survey-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in-xs);
}
.survey-stat__label { font-size: .74rem; color: var(--n-text-muted); }
.survey-stat__value { font-size: 1.15rem; overflow-wrap: anywhere; }
.survey-result-num { display: flex; align-items: baseline; gap: 6px; }
.survey-result-num b { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1; color: var(--n-accent-deep); }
.survey-result-num span { color: var(--n-text-muted); font-size: .9rem; }

.survey-samples { display: flex; flex-direction: column; gap: 8px; }
.survey-sample {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid var(--n-accent);
    border-radius: 0 var(--n-r) var(--n-r) 0;
    background: var(--n-bg);
    box-shadow: var(--n-in-xs);
    color: var(--n-text-muted);
    font-size: .9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.survey-ranking { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: sr; }
.survey-ranking li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 11px 14px 11px 46px;
    border-radius: var(--n-r);
    box-shadow: var(--n-out-sm);
    counter-increment: sr;
}
.survey-ranking li::before {
    content: counter(sr);
    position: absolute;
    left: 12px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: var(--n-in-xs);
    color: var(--n-accent-deep);
    font-size: .75rem;
    font-weight: 600;
}
.survey-ranking__label { font-size: .9rem; overflow-wrap: anywhere; }
.survey-ranking__meta { font-size: .76rem; color: var(--n-text-muted); }

.survey-matrix--result td { padding: 9px 10px; border-radius: var(--n-r-sm); box-shadow: var(--n-in-xs); }
.survey-matrix--result td b { display: block; font-size: .95rem; color: var(--n-text); }
.survey-matrix--result td span { font-size: .72rem; color: var(--n-text-muted); }

.survey-entry { background: var(--n-bg); box-shadow: inset 0 1px 0 var(--n-tint), inset 0 -1px 0 var(--n-shade); }
.survey-entry__inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.survey-entry__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: var(--n-out-sm);
    color: var(--n-accent-deep);
}
.survey-entry__text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 220px; min-width: 0; }
.survey-entry__text b { font-size: .9rem; overflow-wrap: anywhere; }
.survey-entry__text span { font-size: .76rem; color: var(--n-text-muted); }
.survey-entry .btn { flex: none; }

@media (max-width: 560px) {
    .survey-toolbar { gap: 12px; margin-bottom: 16px; }
    .survey-toolbar #surveyTabs { gap: 6px; }
    .survey-toolbar #surveyTabs .pill { padding: 7px 13px; font-size: .82rem; }
    .survey-toolbar #surveySummary { display: none; }
    .survey-entry__icon { display: none; }
    .survey-entry__text { flex-basis: 100%; }
    .survey-rating { gap: 8px; }
    .survey-rating__scale { gap: 6px; }
    .survey-rating__item span { min-width: 40px; height: 40px; }
    .survey-results__head { flex-direction: column; }
}

html[data-theme="forest"] {
    --n-bg: #e4ebe3;
    --n-bg-raised: #edf2ec;
    --n-shade: #b3beb1;
    --n-tint: #ffffff;
    --n-accent: #357a52;
    --n-accent-deep: #24563b;
    --n-coral-deep: #a43c3c;
    --n-teal-deep: #176b5b;
    --n-amber-deep: #765711;
    --n-text: #2c352d;
    --n-text-muted: #54614f;
    --n-text-faint: #54614f;
    --n-line: rgba(84, 97, 79, .25);
    --n-ring: rgba(53, 122, 82, .58);
    --n-ring-soft: rgba(53, 122, 82, .38);
    --n-mark: rgba(53, 122, 82, .22);
    --n-scrim: rgba(54, 69, 55, .42);
    --n-tint-hi: rgba(255, 255, 255, .75);
    --n-thumb: rgba(36, 86, 59, .42);
    --n-pulse: rgba(23, 107, 91, .42);
    --n-pulse-0: rgba(23, 107, 91, 0);
    --n-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2354614f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

html[data-theme="sand"] {
    --n-bg: #efe7da;
    --n-bg-raised: #f5efe6;
    --n-shade: #c6b9a7;
    --n-tint: #ffffff;
    --n-accent: #a44a24;
    --n-accent-deep: #7e3a1c;
    --n-coral-deep: #a63b32;
    --n-teal-deep: #246b5d;
    --n-amber-deep: #765111;
    --n-text: #3b3128;
    --n-text-muted: #6a5b49;
    --n-text-faint: #6a5b49;
    --n-line: rgba(106, 91, 73, .25);
    --n-ring: rgba(164, 74, 36, .55);
    --n-ring-soft: rgba(164, 74, 36, .36);
    --n-mark: rgba(164, 74, 36, .2);
    --n-scrim: rgba(91, 72, 52, .42);
    --n-tint-hi: rgba(255, 255, 255, .72);
    --n-thumb: rgba(126, 58, 28, .4);
    --n-pulse: rgba(36, 107, 93, .4);
    --n-pulse-0: rgba(36, 107, 93, 0);
    --n-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a5b49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

html[data-theme="ocean"] {
    --n-bg: #16222e;
    --n-bg-raised: #1d2b39;
    --n-shade: #0b1420;
    --n-tint: #2b3d4f;
    --n-accent: #2f6fd0;
    --n-accent-deep: #8fc3ff;
    --n-coral-deep: #ff9a9a;
    --n-teal-deep: #5fd6c5;
    --n-amber-deep: #f2c977;
    --n-text: #e2ecf5;
    --n-text-muted: #9fb3c6;
    --n-text-faint: #9fb3c6;
    --n-line: rgba(159, 179, 198, .17);
    --n-ring: rgba(143, 195, 255, .62);
    --n-ring-soft: rgba(143, 195, 255, .4);
    --n-mark: rgba(143, 195, 255, .28);
    --n-scrim: rgba(3, 10, 17, .66);
    --n-tint-hi: rgba(53, 76, 98, .8);
    --n-thumb: rgba(0, 0, 0, .48);
    --n-pulse: rgba(95, 214, 197, .4);
    --n-pulse-0: rgba(95, 214, 197, 0);
    --n-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fb3c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

html[data-theme="grape"] {
    --n-bg: #241d2e;
    --n-bg-raised: #2c2438;
    --n-shade: #150f1d;
    --n-tint: #3b2f4a;
    --n-accent: #7c4ce0;
    --n-accent-deep: #c0a5ff;
    --n-coral-deep: #ff9a9a;
    --n-teal-deep: #5fd6c5;
    --n-amber-deep: #f2c977;
    --n-text: #ece5f5;
    --n-text-muted: #b3a5c6;
    --n-text-faint: #b3a5c6;
    --n-line: rgba(179, 165, 198, .17);
    --n-ring: rgba(192, 165, 255, .62);
    --n-ring-soft: rgba(192, 165, 255, .42);
    --n-mark: rgba(192, 165, 255, .28);
    --n-scrim: rgba(10, 5, 16, .66);
    --n-tint-hi: rgba(70, 56, 88, .8);
    --n-thumb: rgba(0, 0, 0, .48);
    --n-pulse: rgba(95, 214, 197, .4);
    --n-pulse-0: rgba(95, 214, 197, 0);
    --n-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b3a5c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

html[data-theme="ocean"] .tag,
html[data-theme="grape"] .tag {
    color: color-mix(in oklab, var(--tag-c, var(--n-text-muted)) 50%, #ffffff);
}

html[data-density="compact"] {
    --n-gutter: 16px;
    --n-nav-h: 60px;
}
html[data-density="compact"] .section { padding-block: clamp(30px, 5vw, 54px); }
html[data-density="compact"] .section--tight { padding-block: clamp(22px, 4vw, 34px); }
html[data-density="compact"] .card { padding: clamp(16px, 2.4vw, 22px); }
html[data-density="compact"] .well { padding: clamp(14px, 2.2vw, 18px); }
html[data-density="compact"] .grid { gap: 14px; }
html[data-density="compact"] .stack { gap: 12px; }
html[data-density="compact"] .pn-items { gap: 10px; }
html[data-density="compact"] .pn-item { padding: 12px 14px; }

html[data-layout="list"] .grid--2,
html[data-layout="list"] .grid--3,
html[data-layout="list"] .grid--4 { grid-template-columns: 1fr; }
html[data-layout="list"] .feature,
html[data-layout="list"] .member,
html[data-layout="list"] .srv,
html[data-layout="list"] .work { min-height: 0; }

html[data-fx~="reveal"].fx-armed .fx-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}
html[data-fx~="reveal"].fx-armed .fx-reveal.is-in { opacity: 1; transform: none; }
html[data-fx~="ambient"] body { isolation: isolate; }
html[data-fx~="ambient"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(42rem 30rem at 12% -6%, color-mix(in oklab, var(--n-accent) 16%, transparent), transparent 70%),
        radial-gradient(36rem 26rem at 96% 8%, color-mix(in oklab, var(--n-teal-deep) 12%, transparent), transparent 70%);
}
html[data-fx~="tilt"] .fx-tilt {
    transition: transform .18s ease, box-shadow var(--n-t);
    transform-style: preserve-3d;
}
html[data-fx~="ripple"] .btn { position: relative; overflow: hidden; }
.fx-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: currentColor;
    opacity: .18;
    transform: scale(0);
    animation: fx-ripple .55s ease-out forwards;
}
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }

.theme-menu { position: relative; display: inline-flex; }
.theme-pop {
    display: none;
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    z-index: 130;
    width: min(340px, calc(100vw - 24px));
    padding: 14px;
    border-radius: var(--n-r-lg);
    background: var(--n-bg);
    box-shadow: var(--n-out-lg);
}
.theme-pop.is-open { display: block; }
.theme-pop__head { padding: 3px 4px 12px; }
.theme-pop__title { font-weight: 600; }
.theme-pop__sub { color: var(--n-text-muted); font-size: .8rem; margin-top: 2px; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.theme-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border-radius: var(--n-r);
    background: var(--n-bg);
    color: var(--n-text);
    text-align: left;
    box-shadow: var(--n-out-sm);
    transition: box-shadow var(--n-t);
}
.theme-chip:hover { box-shadow: var(--n-out); }
.theme-chip.is-active { box-shadow: var(--n-in-sm), 0 0 0 1px var(--n-accent); color: var(--n-accent-deep); }
.theme-chip__dots { display: flex; gap: 5px; }
.theme-chip__dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: var(--n-in-xs); }
.theme-chip__name { font-size: .88rem; font-weight: 600; }
.theme-chip__desc { color: var(--n-text-muted); font-size: .74rem; line-height: 1.45; }
.theme-chip[disabled] { opacity: .55; cursor: not-allowed; }
.appearance-note { color: var(--n-text-muted); font-size: .84rem; margin-top: 10px; }

@media (max-width: 640px) {
    .theme-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-pop { position: fixed; top: calc(var(--n-nav-h) + 8px); right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-fx~="reveal"].fx-armed .fx-reveal { opacity: 1; transform: none; }
    html[data-fx~="ambient"] body::before { display: none; }
    .fx-ripple { display: none; }
}

/* ==========================================================================
   27. 在线 / 好友 / 动态
   ========================================================================== */
.social-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 22px;
}
.social-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 10px 18px;
    border-radius: var(--n-r-pill);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    color: var(--n-text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: box-shadow var(--n-t), color var(--n-t);
}
.social-tab:hover { color: var(--n-text); box-shadow: var(--n-out); }
.social-tab.is-active { color: var(--n-accent-deep); box-shadow: var(--n-in-sm); font-weight: 600; }
.social-tab .icon { font-size: 1rem; }
.social-pane[hidden] { display: none; }

.online-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 12px;
}
.online-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: var(--n-r);
    background: var(--n-bg);
    box-shadow: var(--n-out-sm);
    color: var(--n-text);
    transition: box-shadow var(--n-t);
}
a.online-card:hover { box-shadow: var(--n-out); }
.online-card .avatar { width: 44px; height: 44px; font-size: 1rem; flex: none; }
.online-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.online-card__name {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-weight: 600;
    font-size: .94rem;
    min-width: 0;
}
.online-card__meta {
    color: var(--n-text-muted);
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.presence-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--n-text-faint);
    box-shadow: 0 0 0 2px var(--n-bg);
}
.presence-dot.is-on { background: var(--n-teal-deep); }
.avatar--anon { background: var(--n-bg-raised); object-fit: cover; }

.social-card + .social-card { margin-top: 18px; }
.social-search { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.social-search .input { flex: 1; min-width: 190px; }
.social-rows { display: flex; flex-direction: column; }
.social-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.social-row + .social-row { border-top: 1px solid var(--n-line); }
.social-row .avatar { width: 42px; height: 42px; font-size: 1rem; flex: none; }
.social-row__body { flex: 1; min-width: 0; }
.social-row__name {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-weight: 600;
    font-size: .92rem;
}
.social-row__meta {
    color: var(--n-text-muted);
    font-size: .78rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.social-row__act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.social-name { color: inherit; }
a.social-name:hover { color: var(--n-accent-deep); }

.feed-composer { margin: 0; }
.feed-composer__text { width: 100%; resize: vertical; min-height: 82px; line-height: 1.6; }
.feed-composer__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.feed-composer__bar .select { max-width: 170px; }
.friend-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.friend-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--n-r-pill);
    background: var(--n-bg-raised);
    box-shadow: var(--n-in-xs);
    font-size: .82rem;
    cursor: pointer;
}
.feed-list { display: flex; flex-direction: column; gap: 16px; }
.feed-item { display: flex; gap: 12px; padding-top: 16px; border-top: 1px solid var(--n-line); min-width: 0; }
.feed-item:first-child { border-top: 0; padding-top: 0; }
.feed-item .avatar { width: 42px; height: 42px; font-size: 1rem; flex: none; }
.feed-item__body { flex: 1; min-width: 0; }
.feed-item__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.feed-item__head > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-weight: 600; font-size: .92rem; }
.feed-text {
    margin: 7px 0 10px;
    font-size: .94rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.feed-item__foot { display: flex; align-items: center; gap: 8px; }

.mc-online__card + .mc-online__card { margin-top: 16px; }
.name-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.name-chip {
    padding: 4px 10px;
    border-radius: var(--n-r-pill);
    background: var(--n-bg-raised);
    box-shadow: var(--n-in-xs);
    font-size: .8rem;
}

.player-hero {
    overflow: hidden;
    border-radius: var(--n-r-lg);
    background: var(--n-bg);
    box-shadow: var(--n-out);
}
.player-cover {
    height: 190px;
    background: linear-gradient(135deg, var(--n-bg-raised), var(--n-bg));
    background-size: cover;
    background-position: center;
}
.player-hero__body { padding: 0 clamp(18px, 3vw, 28px) clamp(20px, 3vw, 28px); }
.player-hero__top {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: -38px;
}
.player-hero__top > .avatar { width: 86px; height: 86px; font-size: 1.9rem; box-shadow: var(--n-out), 0 0 0 5px var(--n-bg); }
.player-hero__names { flex: 1; min-width: 210px; padding-bottom: 4px; }
.player-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.player-quote {
    margin-top: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--n-accent);
    color: var(--n-text-muted);
    font-size: .95rem;
    line-height: 1.6;
}
.player-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mc-names .icon { font-size: .9rem; vertical-align: -2px; }

@media (max-width: 640px) {
    .online-list__grid { grid-template-columns: 1fr; }
    .social-row { align-items: flex-start; }
    .social-row__act { width: 100%; justify-content: flex-start; padding-left: 54px; }
    .player-cover { height: 140px; }
    .feed-item .avatar { width: 36px; height: 36px; font-size: .92rem; }
}

/* ==========================================================================
   皮肤站
   ========================================================================== */
.skin-hero {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.6vw, 24px);
    flex-wrap: wrap;
    margin-bottom: clamp(18px, 2.6vw, 24px);
}
.skin-hero__mark {
    width: 62px;
    height: 62px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in);
    color: var(--n-accent-deep);
    font-size: 1.6rem;
}
.skin-hero__copy { flex: 1; min-width: 240px; }
.skin-hero__copy p { margin: 6px 0 0; font-size: .9rem; line-height: 1.65; }
.skin-address { flex: 0 1 380px; min-width: min(100%, 300px); }
.skin-address__row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.skin-address__url {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: var(--n-r);
    box-shadow: var(--n-in);
    font-size: .8rem;
    overflow-wrap: anywhere;
}
.skin-warning {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    margin-bottom: clamp(18px, 2.6vw, 24px);
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in-sm);
    color: var(--n-amber-deep);
}
.skin-warning p { margin: 4px 0 0; font-size: .88rem; line-height: 1.65; color: var(--n-text-muted); }
.skin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .9fr);
    gap: clamp(18px, 2.6vw, 26px);
    align-items: start;
}
@media (max-width: 900px) { .skin-grid { grid-template-columns: 1fr; } }
.skin-side { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 22px); }
.skin-steps ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 0;
    padding-left: 1.25em;
    color: var(--n-text-muted);
    font-size: .9rem;
    line-height: 1.6;
}
.skin-steps .faint { margin: 14px 0 0; font-size: .8rem; line-height: 1.6; }
.skin-note p { margin: 8px 0 14px; font-size: .88rem; line-height: 1.65; }
.skin-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: clamp(18px, 4vw, 38px) 10px;
    text-align: center;
}
.skin-empty > .icon { font-size: 2rem; color: var(--n-text-faint); }
.skin-empty p { margin: 0; max-width: 38ch; }
.skin-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.skin-panel__head p { margin: 6px 0 0; font-size: .9rem; }
.skin-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.skin-meta .mono { font-size: .74rem; overflow-wrap: anywhere; }
.skin-form { display: flex; flex-direction: column; gap: 18px; max-width: 460px; }
.skin-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skin-model { position: relative; display: flex; cursor: pointer; }
.skin-model input { position: absolute; opacity: 0; pointer-events: none; }
.skin-model__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: var(--n-r);
    box-shadow: var(--n-out-sm);
    transition: box-shadow var(--n-t), color var(--n-t);
}
.skin-model:hover .skin-model__body { box-shadow: var(--n-out); }
.skin-model input:checked + .skin-model__body { box-shadow: var(--n-in-sm); color: var(--n-accent-deep); }
.skin-model input:focus-visible + .skin-model__body { outline: 2px solid var(--n-accent); outline-offset: 3px; }
.skin-model__name { font-size: .9rem; font-weight: 600; }
.skin-model__desc { font-size: .76rem; color: var(--n-text-faint); }
.skin-editor {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 30px);
    align-items: start;
}
@media (max-width: 560px) { .skin-editor { grid-template-columns: 1fr; } }
.skin-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border-radius: var(--n-r-lg);
    box-shadow: var(--n-in);
}
.skin-preview {
    width: 144px;
    height: 192px;
    image-rendering: pixelated;
    background-color: var(--n-bg);
    background-image:
        linear-gradient(45deg, rgba(120, 130, 150, .08) 25%, transparent 25%, transparent 75%, rgba(120, 130, 150, .08) 75%),
        linear-gradient(45deg, rgba(120, 130, 150, .08) 25%, transparent 25%, transparent 75%, rgba(120, 130, 150, .08) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}
.skin-controls { display: flex; flex-direction: column; gap: 16px; }
.skin-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.skin-file label { cursor: pointer; }
.skin-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skin-danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--n-line);
}
.skin-danger p { margin: 5px 0 0; font-size: .85rem; }
.skin-danger__form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.skin-danger__form .input { width: 190px; padding: 11px 14px; }
