/* ==========================================================================
   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;
}

* { 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;
}

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: rgba(255, 255, 255, .92);
    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; }

.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
    padding: 8px 13px; border-radius: 8px;
    color: var(--ink-soft); font-size: 14.5px; white-space: nowrap;
}
.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: #cfe0d5; background: #fff; 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-dark); color: #fff; }

.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c6d8cc; background: #fbfdfb; 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: #cfe0d5; 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: #8a6812; }
.badge-red   { background: var(--red-soft); color: #9c3524; }
.badge-gray  { background: #f0f1f0; 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: #fafcfa; }
table.tbl tbody tr:hover { background: #fbfdfb; }
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: #fff; 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: #adb8b2; }
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: #cfe6d8; color: var(--green-dark); }
.flash-error { background: var(--red-soft);  border-color: #f3d5ce; color: #9c3524; }
.flash-info  { background: #eef4fb; border-color: #d5e3f4; color: #2f5b8a; }

.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: #efdfb8; color: #7d6011; }
.alert-info { background: #eef4fb; border-color: #d5e3f4; color: #2f5b8a; }

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

.faq details {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; margin-bottom: 10px; overflow: hidden;
}
.faq details[open] { border-color: #cfe0d5; }
.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: #fff; font-size: 14px; color: var(--ink-soft);
}
.pager a:hover { border-color: #c6d8cc; 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: #fff; 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: #f1f3f1; }
.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: #fff; 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: #fff; 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; }

    .topbar-in { height: 60px; gap: 10px; }
    .brand { margin-right: auto; }
    .nav-burger {
        display: flex; flex-direction: column; justify-content: center; gap: 4px;
        order: 3; width: 38px; height: 34px; padding: 0 7px;
        border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
    }
    .nav-burger span { display: block; height: 2px; background: var(--ink-soft); border-radius: 2px; }
    .topbar-right { order: 2; margin-left: 0; }
    .topbar-right .user-chip-name { display: none; }
    .nav {
        display: none; position: absolute; left: 0; right: 0; top: 60px;
        flex-direction: column; gap: 2px; margin: 0; padding: 10px 16px 14px;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 24px -18px rgba(19, 51, 42, .4);
    }
    .nav-toggle:checked ~ .nav { display: flex; }
    .nav a { padding: 10px 12px; }
    .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: #f7f9f7; 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: #f3d5ce; color: #9c3524; }

/* 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: #fff; color: var(--ink-soft); }
.chat-box {
    max-height: 430px; overflow-y: auto;
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    background: #fbfcfb;
}
.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: #fff; }
.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: #fafbfa; }
.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: #fffdf4; }
.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, #fff, #f7faf8); }
.addr {
    font-size: 1.2rem; font-weight: 700; color: var(--deep);
    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: #cfe0d5; 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: #cfe0d5; 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), #dcefe3);
    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: #fff;
    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: #c6d8cc; background: #fbfdfb; }
.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: #f1f4f1 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, #eef1ee 0 8px, #e4e9e4 8px 16px); }
.bg-opt:hover .bg-thumb { border-color: #c6d8cc; 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: #f1f4f1 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; }
}
