/* ==========================================================================
   DTS 服务器官网 · 样式
   配色就三个：深绿、草绿、一点点金。别的地方不加颜色。
   ========================================================================== */

:root {
    --ink:        #1b2a24;
    --ink-soft:   #4a5b53;
    --muted:      #7c8b84;
    --line:       #e2e7e2;
    --line-soft:  #eef1ee;
    --bg:         #f4f6f4;
    --card:       #ffffff;
    --green:      #3e8f5c;
    --green-dark: #2f7249;
    --green-soft: #eaf4ee;
    --deep:       #13332a;
    --deep-2:     #1c5541;
    --gold:       #c19327;
    --gold-soft:  #fbf3e0;
    --red:        #c0442f;
    --red-soft:   #fdeeeb;
    --radius:     14px;
    --radius-sm:  9px;
    --shadow:     0 1px 2px rgba(19, 51, 42, .04), 0 8px 24px -12px rgba(19, 51, 42, .18);
    --shadow-sm:  0 1px 2px rgba(19, 51, 42, .06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* ---- 深/浅色主题的「成对变量」（本次新增）----
       原来这些值是以 #fff / #fbfdfb / #cfe0d5 这种写死的浅色散在各个规则里，
       深色模式下会一片露白。集中成变量之后，只要在 [data-theme="dark"] 里
       覆盖一次，全站就跟着变 —— 规则里一律不许再写死浅色。 */
    --surface:    #ffffff;                 /* 次级面板 / 控件底：按钮、输入框、分页、FAQ */
    --card-a:     #ffffff;                 /* 同 --surface；滑动开关那份 CSS 用这个名字 */
    --hover-bg:   #fbfdfb;                 /* 行 / 条目 hover 高亮底 */
    --tint:       #fafcfa;                 /* 表头这类极浅底 */
    --badge-bg:   #f0f1f0;                 /* badge-gray 的底（跟 --tint 不是同一个白，别合并） */
    --code-bg:    #f7f9f7;                 /* 后台「服务器命令」输出区的底 */
    --tint-2:     #fafbfa;                 /* 聊天里的系统行（上下线 / 死亡 / Boss） */
    --thumb-bg:   #f1f4f1;                 /* 背景图缩略图占位底 */
    --admin-bg:   #f1f3f1;                 /* 后台最外层底色 */
    --topbar-bg:  rgba(255, 255, 255, .92);/* 顶栏（半透明 + 毛玻璃） */
    --line-2:     #d8e0d9;                 /* 比 --line 重一档的边框（滑动开关等） */
    --line-accent:#cfe0d5;                 /* 绿色调强调边框：卡片 hover、展开的 FAQ */
    --line-hover: #c6d8cc;                 /* 中性边框 hover */
    --stripe-a:   #eef1ee;                 /* .bg-none 的斜纹（两色） */
    --stripe-b:   #e4e9e4;
    --ok-line:    #cfe6d8;                 /* flash-ok 边框 */
    --red-line:   #f3d5ce;                 /* flash-error 边框 */
    --red-fg:     #9c3524;                 /* flash-error 文字 */
    --warn-line:  #efdfb8;                 /* alert-warn 边框 */
    --warn-fg:    #7d6011;                 /* alert-warn 文字 */
    --gold-fg:    #8a6812;                 /* badge-gold 文字 */
    --info-bg:    #eef4fb;                 /* 信息条底 / 边框 / 文字 */
    --info-line:  #d5e3f4;
    --info-fg:    #2f5b8a;
    --notify-bg:  #fffdf4;                 /* 聊天里的通知行 */
    --chat-bg:    #fbfcfb;                 /* 聊天框底 */
    --addr-a:     #ffffff;                 /* .card-addr 渐变（两色） */
    --addr-b:     #f7faf8;
    --avatar-b:   #dcefe3;                 /* 管理员头像渐变终点 */
    --strong:     #13332a;                 /* 需要「更重的墨色」的文字（.addr）。
                                              不能直接用 --deep：那个在深色模式下
                                              还得当背景色（hero / 后台侧栏）。 */
    --green-hover:#2f7249;                 /* 绿色按钮 hover 的填充。
                                              ⚠️ 不能直接用 --green-dark：那个深色模式下
                                              要变成亮绿（当链接文字色），拿来当按钮底
                                              会变成白字贴亮绿，糊成一片。 */
    --placeholder:#adb8b2;                 /* 输入框 placeholder */
    --icon-soft:  #6bd08a;                 /* 在线小绿点（深浅色通用） */
}

/* ==========================================================================
   深色主题
   --------------------------------------------------------------------------
   :root 保持原来那套浅色（浅色是本站的默认），深色只在这里覆盖。
   配色参考插件站的冷黑（--bg:#0b0d12 那一挂），但主色仍然是本站的绿
   --green:#3e8f5c 不动，保证两个站是一套语言、本站又还是本站。
   两处「同名不同用」的坑，靠新增变量岔开：
     --deep       深色下继续当背景（hero / 后台侧栏），所以不能改亮；
                  .addr 要的重墨色另开了 --strong。
     --green-dark 深色下要变亮（它是链接/强调文字色），所以
                  .btn-primary:hover 的填充另开了 --green-hover。
   ========================================================================== */

[data-theme="dark"] {
    color-scheme: dark;

    --ink:        #e8edf2;
    --ink-soft:   #b9c3ce;
    --muted:      #8b95a3;
    --line:       #262b34;
    --line-soft:  #1e222a;
    --bg:         #0b0d12;
    --card:       #12151c;

    --surface:    #171b23;
    --card-a:     #171b23;
    --hover-bg:   #1d222b;
    --tint:       #171b23;
    --badge-bg:   #1d222b;
    --code-bg:    #10141a;
    --tint-2:     #14181f;
    --thumb-bg:   #1a1f27;
    --admin-bg:   #0b0d12;
    --topbar-bg:  rgba(11, 13, 18, .9);
    --line-2:     rgba(255, 255, 255, .14);
    --line-accent:#2f5c44;
    --line-hover: #38404d;
    --stripe-a:   #1a1f27;
    --stripe-b:   #232932;
    --ok-line:    #24503a;
    --red-line:   #552a22;
    --red-fg:     #f0a291;
    --warn-line:  #574424;
    --warn-fg:    #e6c37a;
    --gold-fg:    #e6c37a;
    --info-bg:    rgba(90, 140, 210, .13);
    --info-line:  #2c4a72;
    --info-fg:    #9dc0f0;
    --notify-bg:  rgba(193, 147, 39, .10);
    --chat-bg:    #0f1218;
    --addr-a:     #171b23;
    --addr-b:     #1c2129;
    --avatar-b:   #1f4433;
    --strong:     #dff0e5;
    --placeholder:#6d7684;
    --icon-soft:  #6bd08a;

    /* 主色不动，只把「深绿」提亮 —— 它在浅色下是链接色，
       到了深色底上必须变亮才读得清；按钮 hover 另有 --green-hover。 */
    --green:      #3e8f5c;
    --green-dark: #6fc98d;
    --green-soft: rgba(62, 143, 92, .18);
    --green-hover:#4aa36a;

    /* hero / 后台侧栏用的深绿底：保持深，只在深色下稍微压暗一点点，
       免得整块比页面背景还亮、跳出来。 */
    --deep:       #0e2a22;
    --deep-2:     #14402f;
    --gold:       #c19327;
    --gold-soft:  rgba(193, 147, 39, .14);
    --red:        #c0442f;
    --red-soft:   rgba(192, 68, 47, .16);

    --shadow:     0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --shadow-sm:  0 1px 2px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* 切主题时底色/文字色淡入，边界上不会硬闪一下 */
    transition: background-color .25s, color .25s;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.page { padding: 40px 0 72px; }

/* ---------- 顶栏 ---------- */

.topbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--topbar-bg);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 11px;
    background: var(--deep); color: #dff0e5;
    font: 700 13px/1 var(--font); letter-spacing: .06em;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15.5px; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.brand-sm .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 11px; }

/*
 * 顶部导航：横向滑动。
 * min-width:0 是关键 —— flex 子项默认 min-width:auto，不改成 0 的话容器会被内容撑破，
 * overflow-x 就永远不触发，滑不动。
 *
 * 2026-10-11 改：原来是「固定一排 5 个」（flex: 0 0 20%），前提是正好 10 项。
 * 加了「地图」变成 11 项之后，第三屏只剩「维基」一个，很难看，而且以后每加一项
 * 都会更难看。改成「按内容宽度排 + 横向滚动」，多少项都不会散架。
 */
.nav {
    display: flex;
    gap: 4px;
    margin-left: 10px;
    flex: 0 1 560px;              /* 最多 560px，窄屏自己缩 */
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;   /* iOS 上才有惯性滑动 */
    scrollbar-width: thin;               /* Firefox */
    scrollbar-color: var(--line) transparent;
    padding-bottom: 3px;
}
.nav::-webkit-scrollbar { height: 5px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.nav::-webkit-scrollbar-thumb:hover { background: var(--green); }

.nav a {
    /* 按内容宽度排，不再固定 1/5 —— 加多少项都不会出现「最后一屏孤零零一个」 */
    flex: 0 0 auto;
    min-width: 84px;                     /* 短标签（首页/地图）别缩成一小块 */
    padding: 8px 13px; border-radius: 8px;
    color: var(--ink-soft); font-size: 14.5px; white-space: nowrap;
    text-align: center;
    scroll-snap-align: start;
}
.nav a:hover { background: var(--green-soft); color: var(--green-dark); text-decoration: none; }
.nav a.on { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

.user-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font-size: 14px;
}
.user-chip:hover { border-color: var(--line-accent); background: var(--surface); text-decoration: none; }
.user-chip .avatar {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: 14px;
}
.user-chip-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-burger { display: none; }
.nav-toggle {
    position: absolute; width: 1px; height: 1px; opacity: 0;
    margin: 0; padding: 0; border: 0; pointer-events: none;
}
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font: 500 15px/1.4 var(--font); cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, transform .06s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 13px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }

.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-hover); background: var(--hover-bg); color: var(--ink); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a83a27; color: #fff; }

.btn-quiet { background: transparent; color: var(--muted); padding: 6px 8px; }
.btn-quiet:hover { color: var(--red); background: var(--red-soft); }

.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-copied { background: var(--green-soft); border-color: var(--line-accent); color: var(--green-dark); }

/* ---------- 卡片 / 版式 ---------- */

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px;
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .more { font-size: 14px; color: var(--muted); }

.section { margin-top: 42px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.3rem; }
.section-head .sub { color: var(--muted); font-size: 14px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .95em; }

/* ---------- 首页大图 ---------- */

.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 100%);
    color: #e8f3ec;
}
.hero::after {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background:
        radial-gradient(600px 220px at 88% 8%, rgba(193, 147, 39, .18), transparent 70%),
        radial-gradient(500px 300px at 4% 100%, rgba(62, 143, 92, .32), transparent 70%);
}
.hero-in { position: relative; z-index: 1; padding: 62px 0 54px; }
.hero h1 { font-size: 2.5rem; color: #fff; margin-bottom: 12px; letter-spacing: -.02em; }
.hero h1 .suffix { color: #8fd0a6; }
.hero-lead { font-size: 16.5px; color: #b9d3c5; max-width: 640px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #eaf4ee; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.hero-note {
    margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 14px; color: #9dbdac;
}
.hero-note strong { color: #dff0e5; }

/* 状态条 */
.statusbar {
    display: flex; flex-wrap: wrap; gap: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius); overflow: hidden;
}
.statusbar .cell { flex: 1 1 150px; padding: 15px 20px; border-right: 1px solid rgba(255, 255, 255, .1); }
.statusbar .cell:last-child { border-right: 0; }
.statusbar .k { display: block; font-size: 12px; letter-spacing: .06em; color: #8fb2a1; margin-bottom: 5px; }
.statusbar .v { font-size: 16px; color: #fff; font-weight: 600; }
.statusbar .v .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6bd08a; margin-right: 7px; vertical-align: middle; }
.statusbar .v .dot.off { background: #7d8f86; }
.statusbar .v small { font-weight: 400; color: #9dbfad; }

/* ---------- 徽标 ---------- */

.badge {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    font-size: 12.5px; line-height: 1.7; white-space: nowrap;
    background: var(--line-soft); color: var(--ink-soft);
}
.badge-green { background: var(--green-soft); color: var(--green-dark); }
.badge-gold  { background: var(--gold-soft); color: var(--gold-fg); }
.badge-red   { background: var(--red-soft); color: var(--red-fg); }
.badge-gray  { background: var(--badge-bg); color: var(--muted); }

/* ---------- 步骤 ---------- */

.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 4px 0 26px 52px; }
.step:last-child { padding-bottom: 0; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 2px;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--green-soft); color: var(--green-dark);
    font-weight: 700; font-size: 14px;
}
.step::after {
    content: ""; position: absolute; left: 15.5px; top: 40px; bottom: 4px;
    width: 1px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 4px; font-size: 1.02rem; }
.step p { color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- 列表 / 表格 ---------- */

.list { display: flex; flex-direction: column; }
.list-item { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item h3 { margin: 0 0 5px; font-size: 1.02rem; }
.list-item .meta { font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 0 -26px; padding: 0 26px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.tbl th, table.tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--tint); }
table.tbl tbody tr:hover { background: var(--hover-bg); }
table.tbl td.acts { text-align: right; white-space: nowrap; }
table.tbl td.acts .btn { margin-left: 4px; }

.empty { padding: 40px 10px; text-align: center; color: var(--muted); }

.brief-list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.brief-list li { margin-bottom: 7px; }
.brief-list li:last-child { margin-bottom: 0; }
.brief-list strong { color: var(--ink); }

/* ---------- 表单 ---------- */

.form-row { margin-bottom: 18px; }
.form-row > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-row .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-row .hint.warn { color: var(--red); }

input[type=text], input[type=password], input[type=tel], input[type=number],
input[type=search], select, textarea {
    width: 100%; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); font: 15px/1.6 var(--font); color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 190px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(62, 143, 92, .13);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c8b84' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.form-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 11px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

.field-ok { color: var(--green-dark); font-size: 13px; margin-top: 6px; }

/* 窄表单（登录注册） */
.narrow { max-width: 460px; margin: 0 auto; }

/* ---------- 提示条 ---------- */

.flash-wrap { margin-top: 18px; }
.flash {
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px;
    font-size: 14.5px; border: 1px solid;
}
.flash-ok    { background: var(--green-soft); border-color: var(--ok-line); color: var(--green-dark); }
.flash-error { background: var(--red-soft);  border-color: var(--red-line); color: var(--red-fg); }
.flash-info  { background: var(--info-bg); border-color: var(--info-line); color: var(--info-fg); }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; margin-bottom: 18px; }
.alert-warn { background: var(--gold-soft); border-color: var(--warn-line); color: var(--warn-fg); }
.alert-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info-fg); }

/* ---------- 详情 / FAQ ---------- */

.faq details {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); margin-bottom: 10px; overflow: hidden;
}
.faq details[open] { border-color: var(--line-accent); }
.faq summary {
    padding: 13px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
    list-style: none; position: relative; padding-right: 40px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-weight: 400; font-size: 18px;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 18px 16px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 分页 ---------- */

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 36px; text-align: center; padding: 7px 11px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-soft);
}
.pager a:hover { border-color: var(--line-hover); text-decoration: none; }
.pager .on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pager .gap { border: 0; background: transparent; color: var(--muted); }

/* ---------- 页脚 ---------- */

.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 38px 22px 26px; }
.footer-col h4 { font-size: 13px; color: var(--muted); letter-spacing: .05em; font-weight: 600; margin-bottom: 10px; }
.footer-col p { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.footer-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; max-width: 320px; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 22px 24px; border-top: 1px solid var(--line-soft);
    font-size: 13px; color: var(--muted);
}

/* ---------- 管理后台 ---------- */

.admin-body { background: var(--admin-bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 214px; flex: 0 0 214px; background: var(--deep); color: #cfe2d6;
    padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { color: #fff; margin-bottom: 6px; }
.admin-side .brand-mark { background: rgba(255, 255, 255, .12); box-shadow: none; }
.admin-side .brand-text em { color: #7fa591; }
.admin-side nav { display: flex; flex-direction: column; gap: 3px; margin-top: 20px; }
.admin-side nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 12px; border-radius: 8px; color: #b6d0c1; font-size: 14.5px;
}
.admin-side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.admin-side nav a.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.admin-side nav .group { font-size: 11.5px; letter-spacing: .08em; color: #6f937f; margin: 16px 0 6px 12px; }
.admin-side .side-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8aab99; }
.admin-side .side-foot a { color: #b6d0c1; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 15px 26px; display: flex; align-items: center; gap: 14px;
}
.admin-top h1 { font-size: 1.1rem; margin: 0; }
.admin-top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.admin-content { padding: 26px; max-width: 1120px; width: 100%; }

.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .k { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stat-card .v { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.stat-card .v small { font-size: 13px; font-weight: 400; color: var(--muted); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-bar input, .filter-bar select { width: auto; min-width: 150px; }

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-in { grid-template-columns: 1fr; gap: 22px; }
    .hero-in { padding: 44px 0 40px; }
    .hero h1 { font-size: 1.9rem; }
}

@media (max-width: 720px) {
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; flex: none; height: auto; position: static; }
    .admin-side nav { flex-direction: row; flex-wrap: wrap; }
    .admin-side nav .group { display: none; }
    .admin-content { padding: 18px; }
    .table-wrap { margin: 0 -18px; padding: 0 18px; }

    /* 手机上原本是汉堡下拉（10 项一拉老长），现在跟桌面同一套横滑。
       窄屏一行塞不下「品牌 + 导航 + 用户区 + 主题开关」，所以顶栏折成两行：
       第一行是品牌 + 用户区 + 开关，第二行是整宽的横滑导航 ——
       导航占满整宽，一排才放得下 5 个、标签不会被挤成两个字。
       （ses 那边的做法是直接把 topbar-right 藏掉腾位置；
         但主站的深/浅滑动开关必须留着能点到，所以这里不能照抄，改成折行。） */
    .topbar-in { flex-wrap: wrap; height: auto; padding-top: 9px; padding-bottom: 0; gap: 8px; }
    .brand { margin-right: auto; }
    .brand-text { display: none; }               /* 品牌只留方块图标，让位 */
    .nav-burger { display: none; }               /* 不再用汉堡下拉 */
    .topbar-right { order: 2; margin-left: 0; gap: 6px; }
    .topbar-right .user-chip-name { display: none; }
    .topbar-right .btn-ghost { display: none; }  /* 窄屏让位；登录入口在页脚也有 */
    .nav {
        order: 3; flex: 1 1 100%;
        position: static; flex-direction: row; gap: 4px;
        margin: 0; padding: 0 0 4px;
        background: none; border: 0; box-shadow: none;
    }
    .nav a { padding: 9px 4px; }
    .statusbar .cell { flex: 1 1 50%; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .statusbar .cell:nth-child(2n) { border-right: 0; }
    .card { padding: 20px; }
    .hero h1 { font-size: 1.65rem; }
}

/* ==========================================================================
   服务器页专用
   ========================================================================== */

/* 浅色状态条（首页那根是深色底的，服务器页用浅色） */
.statusbar-light {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.statusbar-light .cell { border-right: 1px solid var(--line); }
.statusbar-light .k { color: var(--muted); }
.statusbar-light .v { color: var(--ink); }
.statusbar-light .v small { color: var(--muted); }

/* 在线玩家小标签 */
.player-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.player-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 13px 5px 10px; border-radius: 999px;
    background: var(--green-soft); color: var(--green-dark);
    font-size: 14px; font-weight: 600;
}
.player-chip .dot {
    width: 7px; height: 7px; border-radius: 50%; background: #4ec46f;
    box-shadow: 0 0 0 3px rgba(78, 196, 111, .18);
}

/* 命令输出 */
.cmd-out {
    margin: 0; padding: 13px 15px;
    background: var(--code-bg); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    font-family: var(--mono); font-size: 13px; line-height: 1.7;
    color: var(--ink-soft); white-space: pre-wrap; word-break: break-word;
    max-height: 320px; overflow: auto;
}
.cmd-out-err { background: var(--red-soft); border-color: var(--red-line); color: var(--red-fg); }

/* bosslock 那种「名字: 状态」列表 */
.boss-list { display: flex; flex-direction: column; }
.boss-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px;
}
.boss-row:last-child { border-bottom: 0; }
.boss-name { color: var(--ink-soft); }

/* 聊天 */
.chat-online { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.chat-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 0 3px rgba(74, 157, 95, .16);
}
.chat-live {
    margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    background: var(--line-soft); color: var(--muted); font-size: 11.5px;
}
.chat-more {
    display: block; width: 100%; margin: 0 0 10px; padding: 7px;
    border: 1px dashed var(--line); border-radius: var(--radius-sm);
    background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
}
.chat-more:hover { background: var(--surface); color: var(--ink-soft); }
.chat-box {
    max-height: 430px; overflow-y: auto;
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    background: var(--chat-bg);
}
.chat-line {
    display: flex; gap: 8px; align-items: baseline;
    padding: 8px 14px; border-bottom: 1px solid var(--line-soft);
    font-size: 14.5px; line-height: 1.6;
}
.chat-line:last-child { border-bottom: 0; }
.chat-line:hover { background: var(--surface); }
.chat-time { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.chat-ico { flex: 0 0 auto; display: inline-flex; align-self: center; color: var(--muted); }
.chat-player {
    flex: 0 0 auto; font-weight: 600; max-width: 130px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-msg { flex: 1 1 auto; min-width: 0; color: var(--ink-soft); word-break: break-word; }
.chat-msg a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }

/* 玩家名配色：同一个名字永远同一个颜色 */
.pc-0 { color: #2f7d4f } .pc-1 { color: #b4552a } .pc-2 { color: #2f6ea8 }
.pc-3 { color: #8a4fa8 } .pc-4 { color: #a83f5e } .pc-5 { color: #7a6a1f }
.pc-6 { color: #1f7a7a } .pc-7 { color: #a8622a } .pc-8 { color: #4a5aa8 }
.pc-9 { color: #6b6b6b }

/* 上下线 / 死亡 / Boss 不跟聊天混在一起看 */
.chat-join, .chat-leave, .chat-death, .chat-boss { background: var(--tint-2); }
.chat-join .chat-msg, .chat-leave .chat-msg, .chat-death .chat-msg, .chat-boss .chat-msg,
.chat-notice .chat-msg { font-size: 13.5px; }
.chat-join .chat-msg, .chat-join .chat-ico { color: #3f8f5f; }
.chat-leave .chat-msg, .chat-leave .chat-ico { color: var(--muted); }
.chat-death .chat-msg, .chat-death .chat-ico { color: #b0453f; }
.chat-boss .chat-msg, .chat-boss .chat-ico { color: #9c7a1c; }
.chat-notice { background: var(--notify-bg); }
.chat-notice .chat-msg, .chat-notice .chat-ico { color: #8a6d1f; }

@media (max-width: 720px) {
    .statusbar-light .cell { border-right: 0; border-bottom: 1px solid var(--line); }
    .chat-player { max-width: 88px; }
    .chat-line { padding: 8px 11px; gap: 6px; }
    .chat-box { max-height: 360px; }
}

/* ==========================================================================
   视觉增强：图标、数据看板、公告卡片、规矩方块、行动号召
   ========================================================================== */

/* 图标基础：跟随文字颜色和基线 */
.ic { flex: 0 0 auto; vertical-align: -0.15em; }
.card-head h2 .ic, .card-head h3 .ic { margin-right: 8px; vertical-align: -0.18em; }
.section-head h2 .ic { margin-right: 9px; vertical-align: -0.2em; color: var(--green); }
.btn .ic { margin-right: 2px; }

/* ---------- 首页大图：像素地形 + 标签 ---------- */

.hero { position: relative; }
.hero-terrain {
    position: absolute; left: 0; right: 0; bottom: 0; height: 74px;
    display: flex; align-items: flex-end; gap: 2px; padding: 0 2%;
    opacity: .5; pointer-events: none; z-index: 0;
}
.hero-terrain span {
    flex: 1 1 0; min-width: 6px; border-radius: 2px 2px 0 0;
    background: rgba(120, 200, 150, .16);
}
.hero-terrain span:nth-child(3n)   { height: 34px; background: rgba(120, 200, 150, .22); }
.hero-terrain span:nth-child(3n+1) { height: 58px; background: rgba(120, 200, 150, .12); }
.hero-terrain span:nth-child(3n+2) { height: 20px; background: rgba(193, 147, 39, .18); }
.hero-in { position: relative; z-index: 1; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #cfe4d8; font-size: 13px; letter-spacing: .02em;
}
.pill-live { background: rgba(107, 208, 138, .14); border-color: rgba(107, 208, 138, .3); color: #a9e6bd; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #6bd08a; }
.pill .dot.off { background: #7d8f86; }

.hero-note .ic { margin-right: 6px; vertical-align: -0.2em; opacity: .75; }

/* ---------- 数据看板 ---------- */

.stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px; margin-top: -34px; position: relative; z-index: 2;
}
.stat {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px 16px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 2px;
    transition: transform .15s, box-shadow .15s;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(19,51,42,.05), 0 14px 30px -14px rgba(19,51,42,.28); }
.stat-ic {
    display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px;
    border-radius: 9px; background: var(--green-soft); color: var(--green-dark);
}
.stat-num { font-size: 1.65rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.stat-num em { font-style: normal; font-size: .95rem; font-weight: 500; color: var(--muted); }
.stat-num-text { font-size: 1.02rem; font-weight: 600; padding: 5px 0; }
.stat-label { font-size: 12.5px; color: var(--muted); }

/* ---------- 强调卡片 ---------- */

.card-accent { position: relative; overflow: hidden; }
.card-accent::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--green), var(--gold));
}
.card-addr { background: linear-gradient(160deg, var(--addr-a), var(--addr-b)); }
.addr {
    font-size: 1.2rem; font-weight: 700; color: var(--strong);
    margin-bottom: 12px; word-break: break-all; letter-spacing: -.01em;
}

/* ---------- 公告卡片 ---------- */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px;
    color: inherit; text-decoration: none;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.news-card:hover {
    text-decoration: none; transform: translateY(-2px);
    border-color: var(--line-accent); box-shadow: var(--shadow);
}
.news-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.45; }
.news-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.news-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; flex-wrap: wrap; }

/* ---------- 规矩方块 ---------- */

.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rule-tile {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 15px 17px;
}
.rule-ic {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 24px; height: 24px; margin-top: 2px;
    border-radius: 50%; background: var(--green-soft); color: var(--green-dark);
}
.rule-tile strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.rule-tile p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- 行动号召 ---------- */

.cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    padding: 30px 34px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
    color: #e8f3ec;
    box-shadow: var(--shadow);
}
.cta h3 { color: #fff; margin-bottom: 4px; font-size: 1.2rem; }
.cta p { margin: 0; color: #b9d3c5; font-size: 14.5px; }
.cta .btn-primary { background: var(--green); }
.cta .btn-primary:hover { background: #4aa36a; }

/* ---------- Boss 列表 ---------- */

.boss-row { gap: 12px; padding-left: 13px; position: relative; }
.boss-row::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 15px; border-radius: 2px; background: var(--line);
}
.boss-row.is-locked::before { background: var(--gold); }
.boss-row.is-open::before   { background: var(--green); }
.boss-name { flex: 1 1 auto; }
.boss-row .badge { flex: 0 0 auto; }

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -24px; }
    .news-grid { grid-template-columns: 1fr; }
    .rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .stats { gap: 12px; margin-top: -20px; }
    .stat { padding: 14px 15px 12px; }
    .stat-num { font-size: 1.35rem; }
    .stat-num-text { font-size: .92rem; }
    .cta { padding: 22px 20px; }
    .hero-terrain { height: 52px; }
}

/* ==========================================================================
   管理员信誉评价
   ========================================================================== */

/* ---------- 列表页卡片 ---------- */

.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.staff-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px;
    color: inherit; text-decoration: none;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.staff-card:hover {
    text-decoration: none; transform: translateY(-2px);
    border-color: var(--line-accent); box-shadow: var(--shadow);
}
.staff-avatar {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 48px; height: 48px; border-radius: 13px;
    background: linear-gradient(150deg, var(--green-soft), var(--avatar-b));
    color: var(--green-dark); font-size: 1.25rem; font-weight: 700;
}
.staff-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.staff-info strong { font-size: 1.05rem; }
.staff-info .badge { align-self: flex-start; }
.staff-sub { display: block; }
.staff-badge { flex: 0 0 auto; text-align: right; }

.score-num { font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.score-num.sm { font-size: 1.5rem; }
.score-max { font-size: .85rem; color: var(--muted); margin-left: 2px; }

/* ---------- 详情页头部 ---------- */

.staff-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.staff-hero .staff-avatar { width: 62px; height: 62px; border-radius: 16px; font-size: 1.6rem; }
.staff-hero-main { flex: 1 1 240px; min-width: 0; }
.staff-hero-main h1 { font-size: 1.5rem; margin: 0 0 6px; }
.staff-score { text-align: right; flex: 0 0 auto; }
.score-meta { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }

/* ---------- 打分选择器 ---------- */

.score-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.score-opt { position: relative; cursor: pointer; }
.score-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.score-opt span {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
    font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
    transition: background .12s, border-color .12s, color .12s, transform .08s;
}
.score-opt:hover span { border-color: var(--line-hover); background: var(--hover-bg); }
.score-opt input:checked + span {
    background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.06);
}
.score-opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- 分数分布 ---------- */

.dist { display: flex; flex-direction: column; gap: 7px; }
.dist-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dist-k { flex: 0 0 42px; color: var(--muted); text-align: right; }
.dist-bar { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 999px; background: var(--green); transition: width .3s; }
.dist-n { flex: 0 0 26px; color: var(--muted); }

/* ---------- 评价列表 ---------- */

.review-list { display: flex; flex-direction: column; gap: 12px; }
.review {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 16px 18px;
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.review-who { font-weight: 600; font-size: 14.5px; }
.review-score {
    display: grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px;
    border-radius: 7px; background: var(--green-soft); font-weight: 700; font-size: 14px;
}
.review-time { margin-left: auto; }
.review-body { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; word-break: break-word; }

@media (max-width: 860px) {
    .staff-grid { grid-template-columns: 1fr; }
    .staff-score { text-align: left; }
    .score-meta { justify-content: flex-start; }
}

@media (max-width: 720px) {
    .score-opt span { width: 34px; height: 34px; font-size: 13.5px; }
    .staff-hero { gap: 14px; }
    .staff-hero .staff-avatar { width: 52px; height: 52px; font-size: 1.35rem; }
}

/* ==========================================================================
   背景图：玩家自选
   ========================================================================== */

.bg-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.bg-opt { position: relative; cursor: pointer; display: block; }
.bg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.bg-thumb {
    display: grid; place-items: center;
    height: 92px; border-radius: 10px; overflow: hidden;
    border: 2px solid var(--line); background: var(--thumb-bg) center/cover no-repeat;
    transition: border-color .15s, transform .12s, box-shadow .15s;
    color: var(--muted); font-size: 13px; font-weight: 600;
}
.bg-none { background-image: repeating-linear-gradient(45deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px); }
.bg-opt:hover .bg-thumb { border-color: var(--line-hover); transform: translateY(-2px); }
.bg-opt input:checked + .bg-thumb {
    border-color: var(--green); box-shadow: 0 0 0 3px rgba(62,143,92,.16);
}
.bg-opt input:focus-visible + .bg-thumb { outline: 2px solid var(--green); outline-offset: 2px; }
.bg-name {
    display: block; margin-top: 7px; font-size: 13px; color: var(--ink-soft);
    text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bg-opt input:checked ~ .bg-name { color: var(--green-dark); font-weight: 600; }

/* 后台列表 */

.bg-admin-list { display: flex; flex-direction: column; gap: 12px; }
.bg-admin-item {
    display: flex; gap: 14px; align-items: center;
    padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.bg-admin-thumb {
    flex: 0 0 auto; width: 116px; height: 66px; border-radius: 8px;
    background: var(--thumb-bg) center/cover no-repeat; border: 1px solid var(--line);
}
.bg-admin-meta { flex: 1 1 auto; min-width: 0; }
.bg-admin-meta input[type=text] { font-size: 14px; padding: 7px 10px; }
.bg-admin-acts { flex: 0 0 auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 720px) {
    .bg-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bg-thumb { height: 74px; }
    .bg-admin-item { flex-wrap: wrap; }
    .bg-admin-thumb { width: 100%; height: 90px; }
    .bg-admin-acts { width: 100%; justify-content: flex-start; }
}

/* ==========================================================================
   实时状态（首页 / 服务器页的「自动刷新」提示条）
   ========================================================================== */

.live-note {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    margin: 16px 0 0;
    font-size: 13px; color: var(--ink-soft);
}

.live-note .live-dot {
    width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
    background: #4ec46f;
    box-shadow: 0 0 0 3px rgba(78, 196, 111, .16);
    animation: live-pulse 2.4s ease-in-out infinite;
}

/* 轮询失败时把提示染红，别让人对着旧数据当真 */
.live-note [data-live="state"].is-bad { color: var(--red); }

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}

/* 数值变化时轻轻闪一下，让人注意到「它动了」 */
[data-live="online-num"],
[data-live="boss-open"],
[data-live="online"] { transition: color .25s; }

@media (prefers-reduced-motion: reduce) {
    .live-note .live-dot { animation: none; }
}

/* ==================================================================
   游戏截图：首页轮播 + 图库 + 灯箱
   ------------------------------------------------------------------
   用站点已有的 CSS 变量（--card / --line / --green / --muted …），
   这样以后调主题色不用管这里。
   ================================================================== */

/* ---- 首页轮播 ---- */
.shots-stage {
    position: relative;
    aspect-ratio: 16 / 9;          /* 先把框撑起来，图没加载完也不会跳版 */
    border-radius: 16px;
    overflow: hidden;
    background: #0d1a15;
    border: 1px solid var(--line);
    cursor: pointer;
    box-shadow: 0 20px 44px -26px rgba(19, 51, 42, .6);
}

.shot-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .9s ease;
}

.shot-slide.on { opacity: 1; }

/* 切到哪张，哪张就慢慢放大一点 —— 静态图也能有点呼吸感。
   开了「减少动态效果」就不放大。 */
@media (prefers-reduced-motion: no-preference) {
    .shot-slide.on { animation: shotZoom 12s ease-out forwards; }

    @keyframes shotZoom {
        from { transform: scale(1); }
        to   { transform: scale(1.05); }
    }
}

.shots-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 40px 18px 15px;
    background: linear-gradient(transparent, rgba(6, 16, 12, .8) 62%);
    color: #fff;
    pointer-events: none;
}
.shots-cap b {
    display: block;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.shots-cap span {
    display: block;
    font-size: 12.5px;
    opacity: .82;
    margin-top: 2px;
}
.shots-cap b:empty, .shots-cap span:empty { display: none; }

.shots-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 3px;
    border: 0; border-radius: 50%;
    background: rgba(10, 22, 17, .48);
    color: #fff; font-size: 24px; line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s, background .2s, transform .2s;
}
.shots-stage:hover .shots-nav { opacity: 1; }
.shots-nav.prev { left: 12px; }
.shots-nav.next { right: 12px; }
.shots-nav:hover  { background: rgba(10, 22, 17, .8); }
.shots-nav:active { transform: translateY(-50%) scale(.9); }

.shots-dots {
    position: absolute;
    top: 14px; right: 14px;       /* 放右上角，不跟左下角的说明文字打架 */
    display: flex; gap: 6px;
    padding: 6px 8px;
    border-radius: 100px;
    background: rgba(6, 16, 12, .38);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}
.shots-dots button {
    width: 7px; height: 7px;
    padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background .2s, width .3s;
}
.shots-dots button.on { background: #fff; width: 18px; border-radius: 4px; }

/* 触屏设备没有 hover，按钮得常显，不然点不着 */
@media (hover: none) {
    .shots-nav { opacity: 1; }
}

@media (max-width: 640px) {
    .shots-stage { border-radius: 12px; }
    .shots-nav { width: 34px; height: 34px; font-size: 20px; opacity: 1; }
    .shots-cap { padding: 30px 13px 12px; }
    .shots-cap b { font-size: 13.5px; }
    .shots-cap span { font-size: 11.5px; }
}

/* ---- 图库 ---- */
.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.shot-card {
    margin: 0;
    border-radius: 13px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    cursor: zoom-in;
    transition: transform .3s cubic-bezier(.2, .9, .3, 1), box-shadow .3s, border-color .25s;
}
.shot-card:hover {
    transform: translateY(-3px);
    border-color: var(--green);
    box-shadow: 0 16px 34px -20px rgba(19, 51, 42, .45);
}
.shot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--line-soft);
}
.shot-card figcaption { padding: 10px 13px 12px; }
.shot-card figcaption b {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
    font-weight: 600;
}
.shot-card figcaption span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ---- 灯箱 ---- */
.shotbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    background: rgba(8, 16, 13, .94);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    animation: shotboxIn .22s ease;
}
.shotbox[hidden] { display: none; }

@keyframes shotboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.shotbox-in {
    margin: 0;
    max-width: min(1200px, 94vw);
    text-align: center;
}
.shotbox-in img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.shotbox-in figcaption {
    color: #dfe8e3;
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 14px;
}
.shotbox-in figcaption b {
    display: block;
    color: #fff;
    font-size: 15px;
}
.shotbox-in figcaption em {
    display: block;
    font-style: normal;
    color: #8fa79c;
    font-size: 12px;
    margin-top: 4px;
}

.shotbox-x {
    position: absolute;
    top: 16px; right: 18px;
    width: 40px; height: 40px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff; font-size: 22px; line-height: 1;
    cursor: pointer;
    transition: background .2s, transform .25s;
}
.shotbox-x:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }

.shotbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 4px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff; font-size: 30px; line-height: 1;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.shotbox-nav:hover  { background: rgba(255, 255, 255, .22); }
.shotbox-nav:active { transform: translateY(-50%) scale(.92); }
.shotbox-nav.prev { left: 14px; }
.shotbox-nav.next { right: 14px; }

body.shotbox-open { overflow: hidden; }

@media (max-width: 640px) {
    .shotbox { padding: 14px 8px; }
    .shotbox-in img { max-height: 66vh; }
    .shotbox-nav { width: 40px; height: 40px; font-size: 24px; }
    .shotbox-nav.prev { left: 6px; }
    .shotbox-nav.next { right: 6px; }
    .shot-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .shot-card figcaption { padding: 8px 10px 10px; }
    .shot-card figcaption b { font-size: 13px; }
}

/* ==========================================================================
   深色模式补丁：把「深色文字色」提亮
   --------------------------------------------------------------------------
   下面这些颜色本来就是深色（浅色底上很清楚），放到深色底上会糊成一片。
   它们不属于「露白」，但也必须处理，否则深色模式下聊天里的玩家名、
   状态行、命令输出都看不见。只在深色下覆盖，浅色保持原样。
   玩家名（.pc-*）刻意保留原来的色相 —— 同一个名字在两种主题下
   仍然是「同一个颜色」，只是明度提上来了。
   ========================================================================== */

[data-theme="dark"] .pc-0 { color: #6fc98d } [data-theme="dark"] .pc-1 { color: #e5926a }
[data-theme="dark"] .pc-2 { color: #7fb2e8 } [data-theme="dark"] .pc-3 { color: #c58fe0 }
[data-theme="dark"] .pc-4 { color: #e37f9c } [data-theme="dark"] .pc-5 { color: #d3c069 }
[data-theme="dark"] .pc-6 { color: #62c6c6 } [data-theme="dark"] .pc-7 { color: #dc9a63 }
[data-theme="dark"] .pc-8 { color: #93a3e8 } [data-theme="dark"] .pc-9 { color: #a5a5a5 }

[data-theme="dark"] .chat-join .chat-msg, [data-theme="dark"] .chat-join .chat-ico { color: #6fc98d; }
[data-theme="dark"] .chat-death .chat-msg, [data-theme="dark"] .chat-death .chat-ico { color: #e08b84; }
[data-theme="dark"] .chat-boss .chat-msg, [data-theme="dark"] .chat-boss .chat-ico { color: #dcb95e; }
[data-theme="dark"] .chat-notice .chat-msg, [data-theme="dark"] .chat-notice .chat-ico { color: #dcb95e; }

/* 后台「服务器命令」的输出区在深色下也跟着走 */
[data-theme="dark"] .cmd-out { color: var(--ink-soft); }


/* ==========================================================================
   深/浅色滑动开关
   --------------------------------------------------------------------------
   两个站（主站 / 插件站）的开关必须长得一模一样，所以这份是逐字照抄的，
   数值一个都没改。丝滑的关键是 knob 的 cubic-bezier 回弹曲线，别用 ease。
   开关的宽度/位移已经对好了：62 - 2(边框) - 2(left) - 24(knob) - 2(右边距)
   = 32px，所以 translateX(32px) 正好贴到右边。
   ========================================================================== */

.themeswitch{
  position:relative; display:inline-flex; align-items:center; flex:0 0 auto;
  width:62px; height:30px; padding:0; border:1px solid var(--line-2, var(--line));
  border-radius:999px; background:var(--card-a, var(--card)); cursor:pointer;
  transition:background .3s, border-color .3s; -webkit-tap-highlight-color:transparent;
}
.themeswitch .ts-ic{
  position:absolute; top:50%; transform:translateY(-50%);
  display:grid; place-items:center; width:14px; height:14px;
  color:var(--muted); transition:color .3s; z-index:1;
}
.themeswitch .ts-sun{ left:8px; }
.themeswitch .ts-moon{ right:8px; }
.themeswitch .knob{
  position:absolute; top:2px; left:2px; width:24px; height:24px; border-radius:50%;
  background:var(--card); box-shadow:0 1px 3px rgba(0,0,0,.28);
  transition:transform .42s cubic-bezier(.22,1,.36,1);   /* ← 丝滑来自这条曲线 */
}
[data-theme="dark"] .themeswitch .knob{ transform:translateX(32px); }
[data-theme="light"] .themeswitch .ts-sun,
:root:not([data-theme="dark"]) .themeswitch .ts-sun{ color:var(--green); }
[data-theme="dark"] .themeswitch .ts-moon{ color:var(--green); }
@media (prefers-reduced-motion: reduce){ .themeswitch .knob{ transition:none; } }

/* 开关里的 SVG 别被 flex 拉变形 */
.themeswitch svg{ display:block; }

/* ==========================================================================
   切主题：从右上到左下、带雾边的擦除（View Transitions）
   --------------------------------------------------------------------------
   照抄插件站那段。浏览器会给「切换前」「切换后」各建一张快照，
   默认是交叉淡入淡出，那会跟擦除打架，所以先把默认动画关掉。

   雾边怎么来的：不用 clip-path 切硬边，改用渐变蒙版 ——
   蒙版从「完全不透明」渐变到「完全透明」，中间 44%~56% 这一段半透明，
   那就是雾。比硬边柔和得多，也不会露出刀切一样的直线。
   ========================================================================== */
::view-transition-old(root),
::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-old(root){z-index:1}
::view-transition-new(root){
  z-index:2;
  /* ⚠️ mask-size 最小只能是 200%，再小必然漏边 —— 这不是随手定的：
     雾带要从右上角扫到左下角，蒙版图必须位移 (-W, +H)，
     而 mask-position 的百分比变化量 ΔP = 100/(S-1)，必须 ≤ 100% 才能
     始终待在 0~100% 区间 —— 只有在这个区间里蒙版图才盖得满屏幕。
     → S-1 ≥ 1 → S ≥ 2。
     之前为了省性能降到 150%，ΔP 变成 200%，塞不进去，
     结果擦到终点时屏幕右边 29% 没被盖住，那块还是旧主题。
     400% 也行（ΔP=33%），但纹理面积是这里的 4 倍，没必要。*/
  -webkit-mask-image:linear-gradient(to bottom left,#000 0%,#000 44%,rgba(0,0,0,.5) 50%,transparent 56%,transparent 100%);
          mask-image:linear-gradient(to bottom left,#000 0%,#000 44%,rgba(0,0,0,.5) 50%,transparent 56%,transparent 100%);
  -webkit-mask-size:200% 200%;   mask-size:200% 200%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  /* 起点 0% 100%：雾带正中压在右上角外面一点，动画一开始就立刻有变化，不白等。
     P、Q 全程都在 0~100% 之间 —— 这就是「蒙版图始终盖满屏幕」的保证。
     实测雾带正中轨迹：
       t=0     (1.06W, -0.06H)   右上角
       t=0.5   (0.56W,  0.44H)   正中间
       t=1     (0.06W,  0.94H)   左下角
     手机和桌面两种比例都验过，不漏边。*/
  -webkit-mask-position:0% 100%; mask-position:0% 100%;
  will-change:mask-position;
  animation:themeWipe 3s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes themeWipe{
  from{ -webkit-mask-position:0% 100%;   mask-position:0% 100%; }
  to  { -webkit-mask-position:100% 0%;   mask-position:100% 0%; }
}

/* ---------- 点击区加大（2026-10-10 站长要求）----------
   站长反馈：「有的按键都是字体，只有点那个字才有效」。
   这里统一把「小按钮」「静默按钮」和分页的点击区撑大，
   视觉上基本还是原来那个样子，手感好很多。
   注意：追加在文件末尾，靠「后来的赢」覆盖前面同名的规则。 */
.btn-sm {
    padding: 10px 16px;
    font-size: 14.5px;
    border-radius: 9px;
    min-height: 40px;
}
.btn-quiet {
    padding: 9px 14px;
    border-radius: 9px;
    min-height: 40px;
}
.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 14.5px;
}

/* 标题行里塞了真按钮之后，用居中比按基线对齐好看（原来那个小字链接才需要基线对齐） */
.card-head, .section-head { align-items: center; }

/* ---------- 语言切换（2026-10-11）----------
   顶栏右边一个地球 + 当前语言简称，点开是四种语言。
   用 <details> / 自己控制 .open，不依赖任何框架。 */
.lang-dd { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; min-height: 40px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
    font: 500 14px/1 var(--font); cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.lang-btn:hover { border-color: var(--line-hover); background: var(--hover-bg); color: var(--ink); }
.lang-cur { font-weight: 600; letter-spacing: .02em; }
.lang-caret {
    width: 0; height: 0; opacity: .55;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}
.lang-dd.open .lang-btn { border-color: var(--line-accent); background: var(--green-soft); color: var(--green-dark); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
    min-width: 232px; padding: 7px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
}
.lang-dd.open .lang-menu { display: block; }
.lang-menu a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 11px 13px; border-radius: 9px; color: var(--ink-soft); font-size: 14.5px;
}
.lang-menu a:hover { background: var(--hover-bg); color: var(--ink); text-decoration: none; }
.lang-menu a.on { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.lang-menu .lt-e { font-size: 12px; color: var(--muted); }
.lang-auto {
    margin: 4px 4px 2px; padding: 8px 10px 6px; border-top: 1px solid var(--line-soft);
    font-size: 12px; color: var(--muted); line-height: 1.6;
}
.lang-menu a.on .lt-e { color: inherit; opacity: .75; }

@media (max-width: 720px) {
    .lang-btn { padding: 8px 10px; }
    .lang-caret { display: none; }
    .lang-menu { min-width: 200px; }
    .lang-menu a { padding: 10px 12px; }
}

/* ---------- 页脚那一列链接（2026-10-10 站长截图指出）----------
   原来是一行一个 <a> 的纯文字，得刚好点到字上才算点中。
   改成会自己换行的小按钮：窄栏里两三个一行，手机上排满一行。 */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links .btn {
    padding: 8px 13px;
    font-size: 13.5px;
    min-height: 38px;
    border-radius: 8px;
}
