/* 小智服玩家站 v5 · 亮色 + 游戏感 */
:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --ink: #14181e;
  --ink-2: #48535f;
  --ink-3: #7a8491;
  --line: #e4e8ee;
  --line-2: #d2d9e2;
  --accent: #c4452f;
  --accent-d: #a3341f;
  --accent-soft: #fdf1ee;
  --ok: #0f8a55;
  --ok-soft: #e9f7f0;
  --warn: #a96a10;
  --warn-soft: #fdf4e5;
  --info: #2159c7;
  --info-soft: #ecf1fd;
  --navy: #16202c;
  --r: 16px;
  --shadow-1: 0 1px 2px rgba(20, 28, 40, .05);
  --shadow-2: 0 30px 60px -40px rgba(20, 28, 40, .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 460px at 88% -10%, #fbe7e1 0%, rgba(251, 231, 225, 0) 60%),
    radial-gradient(900px 420px at -5% 0%, #e8eefa 0%, rgba(232, 238, 250, 0) 55%),
    var(--bg);
  color: var(--ink);
  font: 15.5px/1.7 "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-d); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.wrap { width: min(1120px, 94vw); margin: 0 auto; }
.muted { color: var(--ink-3); }
.xs { font-size: 12.5px; }
code { background: #edf0f4; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  font-size: 13px; font-family: ui-monospace, Consolas, monospace; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--accent);
}
.bar { display: flex; align-items: center; gap: 20px; padding: 13px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-t { display: flex; flex-direction: column; line-height: 1.25; }
.brand-t b { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.brand-t i { font-style: normal; font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.logo {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent), #75201a);
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 16px -8px rgba(196, 69, 47, .85);
}
.nav { display: flex; gap: 3px; flex: 1; flex-wrap: wrap; }
.nav-a {
  position: relative; color: var(--ink-2); padding: 8px 13px; border-radius: 10px;
  font-size: 14.5px; transition: color .15s, background .15s;
}
.nav-a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-a.on { color: var(--accent-d); font-weight: 600; background: var(--accent-soft); }
.right { display: flex; gap: 8px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 11px;
  padding: 9px 17px; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: background .15s, transform .06s;
  box-shadow: 0 10px 20px -14px rgba(196, 69, 47, 1);
}
.btn:hover { background: var(--accent-d); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.row { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 布局 ---------- */
main.wrap { flex: 1; padding: 26px 0 52px; display: flex; flex-direction: column; gap: 18px; }
.home-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--shadow-1);
}
.card > h2 {
  margin: 0 0 16px; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-left: 11px; position: relative; color: var(--ink);
}
.card > h2::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 3px; background: linear-gradient(180deg, var(--accent), #eaa08c);
}
.card h3 { font-size: 14px; margin: 0 0 10px; color: var(--ink); font-weight: 600; }
.card p { margin: 8px 0; color: var(--ink-2); }

/* ---------- 首页 hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; padding: 36px 38px;
  background:
    radial-gradient(520px 240px at 96% 4%, #ffe9e2 0%, rgba(255, 233, 226, 0) 62%),
    linear-gradient(135deg, #ffffff 0%, #fcfdfe 62%, #f7faf9 100%);
  box-shadow: var(--shadow-2);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(22, 32, 44, .035) 0 1px, transparent 1px 9px);
  mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%);
}
.hero > * { position: relative; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-d); background: var(--accent-soft); border: 1px solid #f3d2c8;
  border-radius: 20px; padding: 3px 11px; margin-bottom: 14px;
}
.hero h1 {
  font-size: 34px; line-height: 1.28; margin: 0 0 12px; letter-spacing: -.025em; font-weight: 800;
  color: #10151b;
}
.hero-sub { margin: 0; color: var(--ink-3); font-size: 14.5px; }
.hero-r { display: grid; gap: 12px; }
.big-stat {
  background: var(--navy); color: #f4f7fa; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 24px 40px -30px rgba(22, 32, 44, .9);
}
.big-stat span { display: block; font-size: 12.5px; letter-spacing: .08em; color: #9fb0c2; }
.big-stat b { display: block; font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.big-stat b em { font-style: normal; font-size: 16px; font-weight: 500; color: #9fb0c2; margin-left: 6px; }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff7a5c, #ffb08f); }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
}
.mini span { color: var(--ink-3); font-size: 12px; }
.mini b { font-size: 15px; font-weight: 700; }
.dot { position: relative; padding-left: 16px; }
.dot::before {
  content: ""; position: absolute; left: 0; top: 50%; margin-top: -4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3);
}
.dot.ok::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- 公告 ---------- */
.ann { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ann:first-child { padding-top: 2px; }
.ann:last-child { border-bottom: 0; padding-bottom: 0; }
.ann-h { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.ann-h b { font-size: 15px; font-weight: 600; }
.ann p { margin: 7px 0 0; color: var(--ink-2); font-size: 14.5px; }
.time { color: var(--ink-3); font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.ann-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink);
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.ann-link:last-of-type { border-bottom: 0; }
.ann-link:hover { color: var(--accent-d); text-decoration: none; }
.ann-link b { font-weight: 500; font-size: 14.5px; flex: 1; }
.ann-link .time { margin-left: auto; }

/* ---------- 标签 ---------- */
.tag {
  font-size: 12px; padding: 2px 9px; border-radius: 20px; line-height: 1.6;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface-2);
  display: inline-block; white-space: nowrap;
}
.tag.ok { color: var(--ok); border-color: #bfe3d2; background: var(--ok-soft); }
.tag.warn { color: var(--warn); border-color: #edd9b5; background: var(--warn-soft); }
.tag.err { color: var(--accent-d); border-color: #f0cdc5; background: var(--accent-soft); }
.tag.info { color: var(--info); border-color: #cdddf8; background: var(--info-soft); }
.tag.off { color: var(--ink-3); }

/* ---------- 主页导航瓦片 ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  --tint: #0f8a55; --tint-soft: #e9f7f0; --tint-line: #bfe4d2;
  --tint-fg: #0a6a41; --tint-shadow: rgba(15, 138, 85, .45);
  position: relative; overflow: hidden; display: block; padding: 22px 20px 18px;
  border-radius: 16px; border: 1px solid var(--line); color: inherit; text-decoration: none;
  background: linear-gradient(168deg, #ffffff 0%, #ffffff 58%, var(--tint-soft) 210%);
  box-shadow: var(--shadow-1);
  transition: transform .16s cubic-bezier(.2, .7, .3, 1), box-shadow .18s, border-color .18s;
}
.tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--tint), transparent 92%); opacity: .85;
}
.tile::after {
  content: attr(data-ghost); position: absolute; right: 6px; bottom: -12px;
  font-size: 62px; line-height: 1; opacity: .12; pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.tile:hover {
  transform: translateY(-4px); border-color: var(--tint-line); text-decoration: none; color: inherit;
  box-shadow: 0 26px 44px -30px var(--tint-shadow);
}
.tile:hover::after { transform: scale(1.12) rotate(-6deg); opacity: .18; }
.tile .ic {
  position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; font-size: 21px; line-height: 1;
  background: var(--tint-soft); border: 1px solid var(--tint-line); margin-bottom: 14px;
  transition: transform .18s ease;
}
.tile:hover .ic { transform: rotate(-8deg) scale(1.08); }
.tile b { position: relative; z-index: 1; display: block; font-size: 16.5px; margin-bottom: 5px; color: var(--ink); }
.tile p { position: relative; z-index: 1; margin: 0; font-size: 13px; line-height: 1.62; color: var(--ink-3); }
.tile .foot {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 16px;
}
.tile .foot em {
  font-style: normal; font-size: 12px; color: var(--tint-fg);
  background: var(--tint-soft); border: 1px solid var(--tint-line);
  border-radius: 20px; padding: 2px 9px; white-space: nowrap;
}
.tile .go {
  display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600;
  color: var(--tint-fg); white-space: nowrap;
}
.tile .go i { font-style: normal; transition: transform .18s ease; }
.tile:hover .go i { transform: translateX(4px); }

.tile.tone-g { --tint: #0f8a55; --tint-soft: #e9f7f0; --tint-line: #bfe4d2; --tint-fg: #0a6a41; --tint-shadow: rgba(15, 138, 85, .45); }
.tile.tone-y { --tint: #b8801a; --tint-soft: #fdf5e6; --tint-line: #f0dcae; --tint-fg: #94650f; --tint-shadow: rgba(184, 128, 26, .45); }
.tile.tone-r { --tint: #c4452f; --tint-soft: #fdf1ee; --tint-line: #f2cfc6; --tint-fg: #a3341f; --tint-shadow: rgba(196, 69, 47, .45); }
.tile.tone-b { --tint: #2159c7; --tint-soft: #ecf1fd; --tint-line: #cdddf8; --tint-fg: #1a49a6; --tint-shadow: rgba(33, 89, 199, .45); }
.tile.tone-p { --tint: #6d4bb5; --tint-soft: #f2eefc; --tint-line: #dcd1f5; --tint-fg: #583a96; --tint-shadow: rgba(109, 75, 181, .45); }
.tile.tone-n { --tint: #47617a; --tint-soft: #eef2f6; --tint-line: #d2dce5; --tint-fg: #3a5167; --tint-shadow: rgba(71, 97, 122, .45); }

/* ---------- 排行榜 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rankcol h3 { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .04em;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rank { list-style: none; margin: 0 0 10px; padding: 0; }
.rank li { display: flex; gap: 9px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank .medal { width: 24px; font-size: 14px; color: var(--ink-3); text-align: center; }
.rank b { flex: 1; font-weight: 600; font-size: 14.5px; }
.rank em { font-style: normal; color: var(--accent-d); font-size: 13.5px; font-weight: 600; }
.link { font-size: 13.5px; font-weight: 500; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 13px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 7px 15px; border-radius: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.tab:hover { color: var(--ink); background: #eaeef4; text-decoration: none; }
.tab.on { color: #fff; background: var(--accent); box-shadow: 0 8px 16px -12px rgba(196, 69, 47, 1); }
.tab.on:hover { color: #fff; background: var(--accent-d); }

/* ---------- 表格 ---------- */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th { background: var(--surface-2); color: var(--ink-3); font-weight: 600; font-size: 12.5px;
  letter-spacing: .04em; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
input, select, textarea {
  background: #fff; color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 10px 13px; font: inherit; font-size: 14.5px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #a9b3c0; }
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; }
.form button { justify-self: start; margin-top: 2px; }

/* ---------- 领取 ---------- */
.reward { display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.reward:last-child { border-bottom: 0; }
.reward p { margin: 4px 0 0; font-size: 13.5px; }
.reward-r { display: flex; gap: 14px; align-items: center; }
.cost { color: var(--accent-d); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.codes { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 14px 16px; margin: 0; font-size: 13.5px; line-height: 1.9; overflow-x: auto;
  font-family: ui-monospace, Consolas, monospace; }
.ok-text { color: var(--ok); font-weight: 500; }

/* ---------- 我的 ---------- */
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kv > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kv span { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }
.kv b { font-size: 15px; font-weight: 600; }

/* ---------- 工单 ---------- */
.chat { display: grid; gap: 12px; margin: 18px 0; }
.msg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px; }
.msg.staff { background: var(--info-soft); border-color: #d3e0f8; }
.msg p { margin: 6px 0 0; color: var(--ink-2); white-space: pre-wrap; font-size: 14.5px; }
.msg-h { display: flex; gap: 9px; font-size: 13px; align-items: center; }
.msg-h b { font-weight: 600; }

/* ---------- 提示条 ---------- */
.notice {
  border-radius: 13px; padding: 13px 16px; font-size: 14.5px;
  border: 1px solid var(--line); border-left: 3px solid var(--ink-3);
  background: #fff; color: var(--ink-2);
}
.notice b { color: var(--ink); }
.notice.ok { border-left-color: var(--ok); background: var(--ok-soft); color: #1c5c43; }
.notice.warn { border-left-color: var(--warn); background: var(--warn-soft); color: #7a4d0b; }
.notice.err { border-left-color: var(--accent); background: var(--accent-soft); color: #8d2d1c; }

/* ---------- 新手指引 ---------- */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
ol.steps li {
  counter-increment: s; position: relative; padding: 15px 18px 15px 54px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px;
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 15px;
  width: 25px; height: 25px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-d); font-size: 12.5px; font-weight: 700; line-height: 23px; text-align: center;
  border: 1px solid #f2cfc6;
}
ol.steps li b { display: block; margin-bottom: 4px; font-size: 14.5px; color: var(--ink); }
ol.steps li span { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
ol.steps li span b { display: inline; color: var(--accent-d); }

/* ---------- 服规列表 ---------- */
ul.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
ul.rules li { position: relative; padding-left: 20px; line-height: 1.75; color: var(--ink-2);
  font-size: 14.5px; }
ul.rules li::before {
  content: ""; position: absolute; left: 5px; top: .68em; width: 6px; height: 6px;
  border-radius: 50%; background: #dca898;
}
ul.rules li b { color: var(--ink); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line); padding: 26px 0; color: var(--ink-3); font-size: 12.5px;
  background: rgba(255, 255, 255, .7);
}
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.foot b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.foot p { margin: 0; line-height: 1.8; }

/* ---------- 手机 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; }
  .hero h1 { font-size: 26px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; flex-wrap: nowrap; }
  .bar { gap: 10px; }
  .brand-t i { display: none; }
  .reward { flex-direction: column; align-items: flex-start; }
  .time { margin-left: 0; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 18px 16px 15px; }
  .tile .foot { margin-top: 13px; }
  .big-stat b { font-size: 32px; }
  .kv { grid-template-columns: 1fr; }
  th, td { padding: 9px 10px; }
  .tabs { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile::after, .tile .ic, .tile .go i, .btn { transition: none; }
  .tile:hover { transform: none; }
}

/* ---------- 页脚 bottom（版权 / 解释权 / 备案） ---------- */
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  justify-content: space-between; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px;
}
.foot-bottom .beian a { color: var(--ink-3); }
.foot-bottom .beian a:hover { color: var(--accent-d); }
@media (max-width: 640px) {
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 管理页：公告管理列表 ---------- */
.adm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.adm-row:last-of-type { border-bottom: 0; }
.adm-main { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.adm-main b { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.adm-main .time { margin-left: 6px; }
@media (max-width: 640px) {
  .adm-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- 诊断页大字汇总 ---------- */
.diagsum {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink);
  background: var(--accent-soft); border: 1px solid #f2cfc6; border-radius: 12px;
  padding: 14px 16px; margin: 4px 0 14px; line-height: 1.6;
}

""" + marker + """
.nav-a { white-space: nowrap; }

@media (max-width: 900px) {
  /* flex:1 会把 width:100% 覆盖掉，导致导航被挤到同一行、文字竖排 */
  .nav {
    order: 3; flex: 1 0 100%; width: 100%;
    overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 3px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-a { flex: 0 0 auto; padding: 7px 11px; font-size: 14px; }
  .right { margin-left: auto; }
  .btn.sm { padding: 6px 10px; }
}

@media (max-width: 420px) {
  .brand-t b { font-size: 16px; }
  .right { gap: 6px; }
}
