:root {
  /* 浅蓝 + 金，浅色底。换配色只改这一段就行。 */
  --ink: #16384d;
  --brand: #2e6f9e;
  --brand-d: #1f5478;
  --brand-l: #e6f0f7;
  --gold: #9a7412;
  --gold-bright: #c9a227;
  --line: #d9e6ef;
  --bg: #f5f9fc;
  --panel: #fff;
  --thead: #f2f7fa;
  --muted: #647480;
  --muted-2: #93a5b0;
  --soft: #35464f;
  --on-brand: #ffffff;
  /* 顶栏 / 首屏 / 页脚 / 登录头 这条浅蓝带子用的颜色 */
  --band: #dcebf5;
  --band-2: #c9dfef;
  --band-ink: #16384d;
  --band-ink-soft: #4a6c80;
  --red: #a4331f;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
a { color: var(--brand); }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--brand); }
.good .two { display: flex; gap: 8px; margin-top: auto; }
.good .two button { flex: 1; margin-top: 0; padding: 8px 6px; }
.footnav { float: right; display: flex; gap: 12px; flex-wrap: wrap; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 700; letter-spacing: .5px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; }
.topbar { background: var(--band); color: var(--band-ink); padding: 16px 0; }
.topbar .wrap { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-top: 0; padding-bottom: 0; }
.topbar h1 { margin: 0; font-size: 20px; }
.topbar .spacer { flex: 1; }
.topbar a { color: var(--band-ink-soft); text-decoration: none; font-size: 14px; }
.topbar a:hover { color: var(--band-ink); }
.navlinks { display: flex; gap: 16px; flex-wrap: wrap; margin-left: 6px; padding-left: 22px; border-left: 1px solid rgba(22, 56, 77, .18); }
.loginwrap { display: flex; justify-content: center; padding: 40px 0 60px; }
.logincard { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold-bright); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 34px -18px rgba(16, 16, 19, .35); }
.loginhead { background: linear-gradient(180deg, var(--brand-l), var(--band-2)); color: var(--band-ink); padding: 22px 24px 20px; }
.loginkick { font-size: 11px; letter-spacing: 2.5px; color: var(--gold); }
.loginhead h2 { margin: 6px 0 4px; font-size: 21px; }
.loginhead p { margin: 0; font-size: 13px; color: var(--band-ink-soft); }
.loginbody { padding: 22px 24px 24px; }
.loginbody input { min-height: 42px; }
.loginbody button { min-height: 42px; }
.loginbody .dim { margin: 14px 0 0; font-size: 12.5px; line-height: 1.7; }
.hero { background: linear-gradient(180deg, var(--brand-l), var(--band-2)); color: var(--band-ink); padding: 34px 0 30px; }
.hero h2 { font-size: 27px; margin: 6px 0 8px; line-height: 1.4; }
.hero p { color: var(--band-ink-soft); margin: 0 0 16px; font-size: 15px; }
.herokicker { font-size: 12px; letter-spacing: 2px; color: var(--gold); }
.heroacts { display: flex; gap: 10px; flex-wrap: wrap; }
.heroacts button { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.heroacts button.ghost { background: none; color: var(--brand-d); border-color: rgba(31, 84, 120, .45); }
section { margin: 34px 0; }
.sechead { display: flex; gap: 14px; align-items: flex-start; border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 16px; }
.sechead h2 { margin: 0; font-size: 20px; }
.sechead p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.secnum { font-size: 26px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.1; }
.secfilter { margin-left: auto; align-self: center; font-size: 13px; color: var(--muted); }
.catblock { margin-bottom: 24px; }
.cathead { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.cathead h3 { margin: 0; font-size: 16px; color: var(--brand-d); border-left: 4px solid var(--gold-bright); padding-left: 9px; }
.cathead span { font-size: 12px; color: var(--muted-2); }
.tagline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.article { white-space: pre-wrap; line-height: 1.9; font-size: 15px; max-height: 55vh; overflow: auto; }
.steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 2; color: var(--soft); }
.foot { background: var(--band); color: var(--band-ink-soft); border-top: 1px solid var(--line); font-size: 13px; padding: 18px 0; margin-top: 40px; }
.foot a { color: var(--brand-d); }
.topbar h1 a.plain { color: var(--band-ink); text-decoration: none; }
.crumb { font-size: 13px; color: var(--muted); margin: 16px 0; }
.crumb a { color: var(--muted); }
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.dleft, .dright { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dright { position: sticky; top: 14px; }
.dname { font-size: 22px; margin: 0 0 8px; }
.dtag { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ddesc { font-size: 15px; line-height: 1.9; color: var(--soft); margin: 0 0 6px; }
.dblock { margin: 18px 0; }
.dblock h3 { font-size: 14px; color: var(--brand-d); margin-bottom: 6px; }
.dbody { font-size: 14px; line-height: 1.95; color: var(--soft); background: var(--thead); border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; }
.dprice { font-size: 34px; color: var(--gold); font-variant-numeric: tabular-nums; }
.dprice small { font-size: 15px; }
.dvariant { font-size: 14px; color: var(--soft); margin-bottom: 4px; }
.dnote { font-size: 13px; color: var(--muted); background: var(--brand-l); border-radius: 8px; padding: 8px 11px; margin: 10px 0; }
.vlabel { font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.vtable { border: 1px solid var(--line); }
.vtable th { border-bottom: 1px solid var(--line); }
.vtable td { border-bottom: 1px solid var(--line); }
.vtable tbody tr { cursor: pointer; }
.vtable tbody tr.on { background: var(--brand-l); }
.vtable tbody tr.on td:first-child { color: var(--gold); font-weight: 700; }
.dbuy { width: 100%; margin-top: 16px; padding: 12px; font-size: 16px; }
.dcontact { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.help h2 { font-size: 16px; margin: 24px 0 8px; color: var(--brand-d); }
.help h2:first-child { margin-top: 0; }
.help p, .help li { font-size: 14px; line-height: 1.95; color: var(--soft); }
.help ul { margin: 6px 0; padding-left: 20px; }
.dim { color: var(--muted-2); font-size: 13px; }
.notice { background: var(--brand-l); border-left: 4px solid var(--gold-bright); padding: 10px 14px; border-radius: var(--radius); margin: 18px 0; font-size: 14px; }
.vline { display: flex; gap: 10px; font-size: 13px; padding: 1px 0; }
.vline b { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 62px; }
.vline span:last-child { color: var(--muted); margin-left: auto; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .dright { position: static; } }

.bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 18px 0; }
#statTotals { grid-template-columns: repeat(5, 1fr); }
.bar div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.bar b { display: block; font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.bar span { font-size: 12px; color: var(--muted); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.panel > h2 { font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

input, select, textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-l); border-color: var(--brand); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }

button {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 8px 16px;
  border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand);
}
button:hover { background: var(--brand-d); }
button.ghost { background: var(--panel); color: var(--brand); }
button.small { padding: 4px 10px; font-size: 13px; }
button.danger { background: var(--panel); color: var(--red); border-color: var(--line); }
button:disabled { opacity: .45; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--thead); font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
tbody tr:hover { background: var(--brand-l); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.act { white-space: nowrap; }

.tag { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line); background: var(--thead); color: var(--muted); white-space: nowrap; }
.tag.ok { background: #eef1e8; color: #46603a; border-color: #d2dbc8; }
.tag.wait { background: #fbf3dd; color: #8a6414; border-color: #e8d5a6; }
.tag.off { background: #f7e9e5; color: var(--red); border-color: #e6c6bc; }
.code { font-family: Consolas, monospace; letter-spacing: .4px; background: var(--brand-l); padding: 3px 8px; border-radius: 6px; word-break: break-all; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty p { margin: 0 0 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.good { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; }
.good h3 { margin: 0 0 6px; font-size: 17px; }
.good .desc { color: var(--muted); font-size: 13px; min-height: 40px; margin-bottom: 10px; }
.good .price { font-size: 26px; color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.good .price small { font-size: 13px; }
.good .meta { font-size: 12px; color: var(--muted-2); margin-bottom: 12px; }
.good button { margin-top: auto; }

#toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--ink); color: var(--on-brand); padding: 10px 20px; border-radius: 20px; opacity: 0; transition: .25s; pointer-events: none; z-index: 60; font-size: 14px; }
#toast.show { opacity: .95; }
#toast.bad { background: var(--red); }

.mask { position: fixed; inset: 0; background: rgba(13,31,26,.5); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--panel); border-radius: 12px; padding: 22px; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.qrbox { text-align: center; }
.qrbox img { max-width: 240px; width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.big { font-size: 30px; color: var(--gold); font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: none; color: var(--muted); padding: 8px 16px; border-bottom: 3px solid transparent; border-radius: 0; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.tabs button:hover { background: none; color: var(--brand); }
.hide { display: none !important; }
@media (max-width: 900px) {
  .navlinks { margin-left: 0; padding-left: 0; border-left: none; width: 100%; gap: 18px; }
  .bar { grid-template-columns: repeat(3, 1fr); }
  #statTotals { grid-template-columns: repeat(3, 1fr); }
  .wrap { padding: 14px; }
  table thead { display: none; }
  table, tbody, tr, td { display: block; width: auto; }
  tbody tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 10px; background: var(--panel); }
  tbody tr:hover { background: var(--panel); }
  td { border: none; padding: 2px 0; display: flex; gap: 12px; align-items: baseline; justify-content: space-between; text-align: right; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: 0 0 auto; }
  td:empty { display: none; }
  td.act { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; justify-content: flex-start; }
  td.act::before { content: none; }
}
