/* 渡口 · Ferry —— 设计系统（theme.css）
 * 一套：宣纸 · 水墨 · 朱砂。只用一个强调色（朱砂），高度靠亮度分层而非阴影堆叠。
 * 零外链：不引字体文件、不走 CDN，只用系统字体栈。
 */

:root {
  color-scheme: light;

  /* 纸：页面 → 面板 → 卡片，三层递亮 */
  --paper:   #f3efe6;
  --paper-2: #ece6da;
  --card:    #fffdf7;
  --card-2:  #f8f4ea;

  /* 墨：正文不用纯黑，留一点暖 */
  --ink:   #1b1a17;
  --ink-2: #46433b;
  --ink-3: #5f594a;
  --ink-4: #857e6b;

  --line:   rgba(27, 26, 23, .13);
  --line-2: rgba(27, 26, 23, .24);

  /* 唯一彩色强调：朱砂（印章色） */
  --seal:      #b03a2e;
  --seal-2:    #8d2b21;
  --seal-soft: rgba(176, 58, 46, .10);

  /* 状态：只表语义，不当装饰 */
  --ok:   #2f6b4f;
  --warn: #8a6218;
  --bad:  #9c2f26;

  --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-4: 22px;
  --w: 1120px;

  --sans:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, STSong, "SimSun", serif;
  --mono:  ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* 纸的呼吸：两处极淡墨晕 + 一层几乎看不见的横纹（假纸纹） */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 620px at 80% -14%, rgba(176, 58, 46, .055), transparent 62%),
    radial-gradient(900px 520px at 4% 106%, rgba(27, 26, 23, .05), transparent 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(27, 26, 23, .017) 0 1px, transparent 1px 4px);
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 600; }
a { color: var(--ink); }
code, kbd { font-family: var(--mono); }

.mono-label {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .14em;
  color: var(--ink-4);
}
.dim { color: var(--ink-3); }
.dim.small, .small { font-size: 13.5px; }
.err { color: var(--bad); }
.night { display: none; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 239, 230, .9);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--w); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }

/* 印章：整站的品牌锚点，也是唯一强调色的来源 */
.seal {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--seal); color: #fff8f3;
  font: 600 19px/1 var(--serif);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
}
.seal.big { width: 62px; height: 62px; border-radius: 15px; font-size: 29px; letter-spacing: .06em; }

.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.12; }
.brand-text b, .brand-text strong {
  font: 600 18px/1.12 var(--serif); color: var(--ink); letter-spacing: .1em;
}

.topbar-right { display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font: 500 12.5px/1 var(--sans); color: var(--ink-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; }
.pill.open    { color: var(--ok);   border-color: rgba(47, 107, 79, .34);  background: rgba(47, 107, 79, .08); }
.pill.open .dot    { background: var(--ok); }
.pill.guarded { color: var(--warn); border-color: rgba(138, 98, 24, .34);  background: rgba(138, 98, 24, .08); }
.pill.guarded .dot { background: var(--warn); }
.pill.down    { color: var(--bad);  border-color: rgba(156, 47, 38, .34);  background: rgba(156, 47, 38, .08); }
.pill.down .dot    { background: var(--bad); }

.ghost {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  padding: 7px 10px; border-radius: var(--r-1);
  font: 500 14px var(--sans); color: var(--ink-3); text-decoration: none;
  transition: background .14s, color .14s;
}
.ghost:hover { color: var(--ink); background: rgba(27, 26, 23, .055); }

/* ---------- 按钮 ---------- */
.btn {
  appearance: none; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--r-1);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font: 500 14px/1.3 var(--sans);
  transition: background .15s, border-color .15s, transform .06s;
}
.btn:hover { background: var(--card-2); border-color: rgba(27, 26, 23, .34); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--seal); border-color: var(--seal-2); color: #fff7f2; }
.btn.primary:hover { background: var(--seal-2); }
.btn.go { background: var(--ink); border-color: var(--ink); color: #f7f4ec; }
.btn.go:hover { background: #000; }
.btn.tiny { padding: 6px 10px; font-size: 13px; }
.btn.danger { color: var(--bad); border-color: rgba(156, 47, 38, .32); background: var(--card); }
.btn.danger:hover { background: rgba(156, 47, 38, .08); }
.btn.full { width: 100%; }

/* ---------- 门面 · 江夜当底，文字落在纸上 ---------- */
.hero { position: relative; }
.hero-bg {
  position: relative; height: 344px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg[hidden] { display: none; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-inner {
  position: relative; z-index: 3;
  max-width: 748px; margin: -64px auto 0; padding: 34px 40px 36px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-4);
  box-shadow: 0 26px 60px -30px rgba(27, 26, 23, .34);
  text-align: center;
}
.hero-inner .eyebrow { margin: 0 0 14px; }
.hero-inner h1 {
  margin: 0; font-size: 62px; line-height: 1.06; letter-spacing: .16em; text-indent: .16em;
}
.slogan {
  margin: 12px 0 0; font: 400 19px/1.6 var(--serif); color: var(--ink-2); letter-spacing: .07em;
}
.lede {
  margin: 16px auto 0; max-width: 50ch; color: var(--ink-2);
  font-size: 15.5px; line-height: 1.8; text-wrap: pretty;
}

.copybox {
  display: flex; align-items: stretch; gap: 10px; margin: 26px 0 0;
  padding: 6px; text-align: left;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
}
.copybox code {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  padding: 9px 12px; overflow-x: auto; white-space: nowrap;
  font: 500 13.5px/1.5 var(--mono); color: var(--ink-2);
}
.copybox .btn { flex: none; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px 84px; }

/* 怎么走 */
.how {
  margin: 66px 0 0; padding: 26px 30px 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
}
.flow {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.flow li { flex: 1 1 176px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.flow li b { font: 600 16.5px var(--serif); color: var(--ink); letter-spacing: .04em; }
.flow li span { color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.flow li.arrow { flex: 0 0 auto; color: var(--ink-4); font-size: 19px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 0 0 18px;
}
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: .06em; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.lines { margin-top: 66px; }

/* 航线牌 */
.plank-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.plank {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 20px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
  transition: border-color .16s, box-shadow .16s;
}
.plank:hover { border-color: var(--line-2); box-shadow: 0 20px 44px -28px rgba(27, 26, 23, .5); }
.plank.state-down { background: var(--card-2); }
.plank-top { display: flex; align-items: center; gap: 10px; }
.plank-top .pill { margin-left: auto; }
.plank-mark { width: 26px; height: 26px; flex: none; }
.plank-mark .hull { fill: var(--ink); }
.plank-mark .sail { fill: var(--ink-3); }
.plank-mark .lamp { fill: var(--seal); }
.plank-mark line { stroke: #3a3931; }
.plank.state-down .plank-mark .lamp { fill: var(--ink-4); }
.plank h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.plank-meta { display: flex; gap: 20px; margin: 0; padding: 0; }
.plank-meta > div { min-width: 0; }
.plank-meta dt { font: 500 11px var(--mono); letter-spacing: .12em; color: var(--ink-4); }
.plank-meta dd {
  margin: 3px 0 0; font: 500 14px var(--mono); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plank-actions { display: flex; gap: 8px; margin-top: 2px; }

/* 今日码头 */
.board { margin-top: 66px; }
.board h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: .06em; }
.board-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ticket {
  padding: 18px 20px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
}
.ticket .mono-label { display: block; margin-bottom: 12px; }
.ticket b {
  font: 600 31px/1 var(--serif); color: var(--ink);
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}

/* 事实表：用发丝线分隔，不再卡片套卡片 */
.facts {
  display: grid; gap: 1px; margin: 30px 0 0; overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3);
}
.facts > div { padding: 16px 18px; background: var(--paper); }
.facts dt { font: 500 11px var(--mono); letter-spacing: .14em; color: var(--ink-4); }
.facts dd { margin: 7px 0 0; font: 500 15px var(--mono); color: var(--ink); }
.facts.wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 58px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 13.5px;
}
.foot a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot a:hover { color: var(--seal); border-color: var(--seal); }
.foot .dim { margin-left: auto; }

.empty {
  padding: 44px 20px; text-align: center; color: var(--ink-3);
  background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-3);
}

/* ---------- 后台 ---------- */
.console { min-height: 100vh; }
.shell {
  max-width: var(--w); margin: 0 auto; padding: 28px 28px 76px;
  display: grid; gap: 26px; grid-template-columns: 238px minmax(0, 1fr); align-items: start;
}
.sidebar {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: calc(100vh - 190px);
  padding: 16px 14px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
}
#nav { display: flex; flex-direction: column; gap: 3px; }
.nav-group { margin: 14px 0 6px; padding: 0 11px; }
.nav-group:first-child { margin-top: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2);
  font: 500 14.5px var(--sans); text-align: left; cursor: pointer;
  transition: background .14s, color .14s;
}
.nav-item { position: relative; }
.nav-item:hover:not(.active) { background: rgba(27, 26, 23, .05); color: var(--ink); }
.nav-item.active {
  background: var(--seal-soft); color: var(--seal-2); font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(176, 58, 46, .18);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; border-radius: 0 3px 3px 0; background: var(--seal);
}
.nav-icon { width: 18px; height: 18px; flex: none; color: var(--ink-4); }
.nav-item.active .nav-icon { color: var(--seal); }
.sidebar-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--paper-2); border: 1px solid var(--line);
  color: var(--seal); font: 600 15px var(--serif);
}
.acct { display: flex; flex-direction: column; min-width: 0; }
.acct b { font: 600 14px var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.acct i { font: 500 11.5px var(--mono); font-style: normal; color: var(--ink-4); }

.views, .view { min-width: 0; }
.view { display: none; }
.view.active { display: block; }

/* 顶栏下面吸一条操作栏：滚动长表格也能随时保存 */
.console .section-head {
  position: sticky; top: 64px; z-index: 20;
  margin: 0 0 18px; padding: 12px 0 14px; background: var(--paper);
}
.console .section-head h2 { margin: 0; }

.card {
  margin: 0 0 16px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3);
}
.card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 0 0 14px;
}
.card-head h3 { margin: 0; font-size: 17px; letter-spacing: .04em; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; white-space: nowrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
  background: var(--card-2);
  font: 600 12px var(--sans); letter-spacing: .07em; color: var(--ink-3);
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(27, 26, 23, .026); }
.table code {
  font: 500 13px var(--mono); color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.table td.dim { color: var(--ink-3); }
#status-table th:nth-child(5), #status-table td:nth-child(5) {
  text-align: right; font-variant-numeric: tabular-nums;
}

/* ---------- 表单 ---------- */
.input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--card); color: var(--ink); font: 400 14px var(--sans);
  transition: border-color .14s, box-shadow .14s;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px var(--seal-soft); }
.input.tiny { padding: 7px 9px; font: 500 13.5px var(--mono); }
select.input { cursor: pointer; width: auto; }

.field {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.field:last-child { border-bottom: 0; }
.field > span { flex: 0 0 190px; color: var(--ink-2); font-size: 14px; }
.field .input { flex: 1 1 auto; min-width: 0; }

.field.switch { cursor: pointer; flex-direction: row-reverse; }
.field.switch > span { flex: 1 1 auto; font-size: 14.5px; color: var(--ink); }
.field.switch > span::after {
  content: "已开"; margin-left: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--seal);
}
.field.switch input:not(:checked) + span::after { content: "已关"; color: var(--ink-4); }
.field.switch input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 46px; height: 26px; margin: 0; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper-2);
  transition: background .18s, border-color .18s;
}
.field.switch input[type="checkbox"]::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); box-shadow: 0 1px 3px rgba(27, 26, 23, .32);
  transition: transform .18s;
}
.field.switch input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
.field.switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
.field.switch input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px var(--seal-soft); }

/* 表格里的裸勾选框 */
.table input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; position: relative; cursor: pointer;
  width: 19px; height: 19px; margin: 0; vertical-align: middle;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--card);
}
.table input[type="checkbox"]:checked { background: var(--seal); border-color: var(--seal-2); }
.table input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(42deg);
}

.field-row { display: flex; align-items: stretch; gap: 10px; }
.field-row .input { flex: 1 1 auto; }

/* ---------- 日志：柱与榜 ---------- */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 76px; gap: 12px; align-items: center; }
.bar-row .mono-label:last-child { text-align: right; }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--seal), #d1765c);
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.rank { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank li::before {
  counter-increment: r; content: counter(r, decimal-leading-zero);
  font: 500 12px var(--mono); color: var(--ink-4); flex: none;
}
.rank code {
  flex: 1 1 auto; min-width: 0; font: 500 13px var(--mono); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank span { flex: none; font: 500 13px var(--mono); color: var(--ink); }

/* ---------- 进港（登录门） ---------- */
.gate {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px;
  background: rgba(243, 239, 230, .88); backdrop-filter: blur(10px);
}
.gate[hidden] { display: none !important; }
.gate-card {
  width: 100%; max-width: 384px; padding: 38px 32px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-4);
  box-shadow: 0 34px 74px -32px rgba(27, 26, 23, .45);
  text-align: center;
}
.gate-card h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: .14em; }
.gate-card .dim { margin: 0; }
.gate-card .input { text-align: center; }
.gate-card .err { margin: 0; font-size: 13.5px; min-height: 1.4em; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 999px;
  background: var(--ink); color: #f7f4ec; font: 500 14px var(--sans);
  box-shadow: 0 18px 42px -18px rgba(27, 26, 23, .62);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 22px 18px 68px; gap: 20px; }
  .sidebar { position: static; min-height: 0; }
  #nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav-group { display: none; }
  .nav-item { width: auto; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; }
  .nav-item.active { border-color: transparent; }
  .sidebar-foot { margin-top: 14px; }
}

@media (max-width: 760px) {
  .topbar-inner { padding: 12px 18px; }
  .hero-bg { height: 224px; }
  .hero-inner { margin: -44px 18px 0; padding: 26px 22px 28px; border-radius: 18px; }
  .hero-inner h1 { font-size: 42px; letter-spacing: .12em; text-indent: .12em; }
  .slogan { font-size: 16.5px; }
  .lede { font-size: 14.5px; }
  .copybox { flex-direction: column; }
  .copybox code { white-space: normal; overflow-wrap: anywhere; }
  .wrap { padding: 0 18px 68px; }
  .how { margin-top: 44px; padding: 22px 20px; }
  .flow { flex-direction: column; align-items: stretch; gap: 12px; }
  .flow li { flex: 1 1 auto; padding-left: 14px; border-left: 2px solid var(--line-2); }
  .flow li.arrow { display: none; }
  .lines, .board { margin-top: 44px; }
  .section-head h2, .board h2 { font-size: 22px; }
  .console .section-head { top: 57px; }
  .field { flex-direction: column; align-items: stretch; gap: 9px; }
  .field > span { flex: none; }
  .field.switch { flex-direction: row-reverse; align-items: center; gap: 14px; }
  .field.switch > span { flex: 1 1 auto; }
  .field-row { flex-direction: column; }
  .grid, .plank-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .ticket b { font-size: 26px; }

  /* 手机端表格 → 一牌一行（中文不再被压成竖排） */
  .table { font-size: 13.5px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr {
    margin-bottom: 10px; padding: 12px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  }
  .table tbody tr:hover td { background: transparent; }
  .table td {
    display: grid; grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px; align-items: center; padding: 6px 0; border: 0;
  }
  .table td::before {
    content: attr(data-l); font: 500 11px var(--mono); letter-spacing: .1em; color: var(--ink-4);
  }
  .table td[colspan] { display: block; padding: 14px 0; text-align: center; }
  .table td[colspan]::before, .table td[data-l=""]::before { display: none; }
  .table td[data-l=""] { display: block; padding-top: 10px; }
  .table code { overflow-wrap: anywhere; }
  #status-table td:nth-child(5) { text-align: left; }
}

/* ---------- 修订：落款印、门面副提示、小字对比度 ---------- */
.hero-inner { position: relative; }
.hero-seal {
  position: absolute; top: -20px; right: 24px;
  width: 54px; height: 54px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--seal); color: #fff6f0;
  font: 600 27px/1 var(--serif);
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .32), 0 12px 24px -14px rgba(176, 58, 46, .8);
}
.hero-inner .eyebrow { color: var(--ink-3); }
.hero-hint { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
.slogan { text-wrap: pretty; }
.flow li span { font-size: 14px; text-wrap: pretty; }
.foot { font-size: 14px; }
@media (max-width: 760px) {
  .hero-seal { top: -16px; right: 16px; width: 44px; height: 44px; font-size: 22px; }
}

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

