/* =========================================================
   LoveUp 设计交付站点 · 「时刻表 · 票根」
   冷灰白 / 墨蓝 / 信号黄（唯一强调色）
   ========================================================= */

:root {
  --paper: #F2F4F1;
  --paper-2: #E9ECE7;
  --card: #FFFFFF;
  --ink: #22303F;
  --ink-2: #5A6673;
  --line: #D9DDD8;
  --signal: #F5B31E;
  --signal-deep: #B07700;
  --stamp: #2E5C8A;
  --mint: #4E9E7E;
  --alarm: #C64545;

  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--stamp); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- 顶部时刻表横幅 ---------- */
.board {
  background: var(--ink);
  color: #EDEFE9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--signal);
}
.board .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.board .brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.board nav { display: flex; gap: 22px; font-size: 13.5px; }
.board nav a { color: #EDEFE9; opacity: 0.85; }
.board nav a:hover { opacity: 1; text-decoration: none; border-bottom: 2px solid var(--signal); }
.board nav a[aria-current="page"] { opacity: 1; border-bottom: 2px solid var(--signal); }
@media (max-width: 640px) {
  .board { padding: 12px 16px; flex-wrap: wrap; }
  .board nav { gap: 16px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; max-width: 100%; }
  .phone-wrap::before, .phone-wrap::after { display: none; }
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ---------- 首屏 ---------- */
.hero { padding: 64px 0 40px; }
.hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.35;
  font-weight: 700;
  max-width: 640px;
  letter-spacing: 0.02em;
}
.hero p.lead {
  margin-top: 18px;
  max-width: 560px;
  color: var(--ink-2);
  font-size: 15.5px;
}
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .hero h1 { font-size: 30px; } .hero { padding: 44px 0 28px; } }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn.primary { background: var(--ink); color: #F4F2EA; }
.btn.primary:hover { background: #16202C; transform: translateY(-1px); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--card); text-decoration: none; }
.btn .tag { color: var(--signal); margin-right: 6px; }

/* ---------- 票根（站点的共同构件：虚线撕边 + 编号） ---------- */
.ticket {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px 16px;
  overflow: hidden;
}
.ticket::before {          /* 左侧档案色条 */
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--signal);
}
.ticket.b-stamp::before { background: var(--stamp); }
.ticket.b-mint::before { background: var(--mint); }
.ticket.b-alarm::before { background: var(--alarm); }
.ticket .no {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 区块 ---------- */
section.block { padding: 44px 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: none; }
.block > .wrap > h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.block .sub { color: var(--ink-2); margin-bottom: 26px; max-width: 620px; }
.block h3 {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 700;
  margin: 30px 0 12px;
}
@media (max-width: 640px) { .block > .wrap > h2 { font-size: 21px; } }

/* ---------- 色板 ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.swatch .chip { height: 74px; }
.swatch .chip.txt { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; }
.swatch .chip.txt.on-ink { color: #EDEFE9; }
.swatch .meta { padding: 10px 12px; font-size: 12px; line-height: 1.6; }
.swatch .meta b { display: block; font-size: 13px; }
.swatch .meta span { color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- 字体规格表 ---------- */
.type-spec { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.type-spec .row {
  display: grid;
  grid-template-columns: 150px 1fr 130px;
  gap: 16px;
  align-items: baseline;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.type-spec .row:first-child { border-top: none; }
.type-spec .role { font-size: 12px; color: var(--ink-2); }
.type-spec .demo-display { font-family: var(--serif); font-size: 32px; line-height: 1.3; font-weight: 700; }
.type-spec .demo-h { font-family: var(--serif); font-size: 21px; line-height: 1.4; font-weight: 700; }
.type-spec .demo-body { font-size: 15px; line-height: 1.75; }
.type-spec .demo-small { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.type-spec .demo-num { font-size: 26px; font-variant-numeric: tabular-nums; font-weight: 600; }
.type-spec .how { font-size: 12px; color: var(--ink-2); text-align: right; }
@media (max-width: 640px) {
  .type-spec .row { grid-template-columns: 1fr; }
  .type-spec .how { text-align: left; }
  .type-spec .role { order: -1; }
}

/* ---------- 首页 hero 里的三张票根 ---------- */
.hero-tickets { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .hero-tickets { grid-template-columns: 1fr; } }
.hero-tickets .ticket h4 { font-family: var(--serif); font-size: 15.5px; margin: 4px 0 2px; }
.hero-tickets .ticket .big {
  font-family: var(--serif); font-size: 27px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.hero-tickets .foot {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2); font-size: 12px;
  display: flex; justify-content: space-between;
}

/* ---------- 时刻表链接行 ---------- */
.index-lines { border-top: 2px solid var(--ink); }
.index-lines a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.index-lines a:hover { background: var(--card); text-decoration: none; }
.index-lines .no { color: var(--ink-2); font-variant-numeric: tabular-nums; width: 56px; flex: none; }
.index-lines .go { margin-left: auto; color: var(--signal-deep); font-weight: 600; flex: none; }
.index-lines .desc { color: var(--ink-2); font-size: 13px; }
@media (max-width: 640px) { .index-lines .desc { display: none; } }

/* ---------- 交互稿：泳道 ---------- */
.lane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) { .lane-grid { grid-template-columns: 1fr; } }
.lane {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 20px 14px;
}
.lane > h4 {
  font-family: var(--serif); font-size: 16px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.lane > h4 span { font-size: 11.5px; color: var(--ink-2); font-family: var(--sans); font-weight: 400; }
.stop { position: relative; padding: 0 0 20px 26px; }
.stop:last-child { padding-bottom: 4px; }
.stop::before {   /* 竖向虚线 */
  content: ""; position: absolute; left: 7px; top: 20px; bottom: -2px;
  border-left: 2px dashed var(--line);
}
.stop:last-child::before { display: none; }
.stop .pt {   /* 站点圆点 */
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--stamp);
}
.stop.milestone .pt { background: var(--signal); border-color: var(--ink); }
.stop .t { font-weight: 600; font-size: 14.5px; }
.stop .d { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; max-width: 420px; }
.stop .cond { font-size: 12px; color: var(--stamp); margin-top: 3px; }

/* ---------- 状态矩阵表 ---------- */
.matrix { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 13.5px; }
.matrix th, .matrix td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); }
.matrix thead th { background: var(--paper-2); font-weight: 600; border-top: none; font-size: 12.5px; }
.matrix td:first-child { font-weight: 600; white-space: nowrap; }
.matrix .ok { color: var(--mint); }
.matrix .warn { color: var(--alarm); }
.matrix .note { color: var(--ink-2); font-size: 12.5px; }
.matrix-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }

/* ---------- 状态卡（空态/错误原则） ---------- */
.rule-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rule-cards .ticket h4 { font-family: var(--serif); font-size: 15px; margin: 4px 0 6px; }
.rule-cards .ticket p { font-size: 13px; color: var(--ink-2); }

/* ---------- mock 展台页 ---------- */
.stage { display: grid; grid-template-columns: 400px minmax(320px, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }

.phone-zone { position: sticky; top: 84px; }
@media (max-width: 900px) { .phone-zone { position: static; } }

.phone-wrap { position: relative; padding: 0 38px; }
.phone-wrap::before,
.phone-wrap::after {
  content: ""; position: absolute; bottom: -26px;
  font-size: 11.5px; color: var(--ink-2); letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.phone-wrap::before { left: 40px; content: "A 现场"; }
.phone-wrap::after { right: 40px; content: "07:20 晚高峰"; }

/* ---------- 说明号列表（屏注释） ---------- */
.notes { border-top: 2px solid var(--ink); }
.note-item {
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  cursor: pointer;
}
.note-item:hover { background: var(--card); }
.note-item .pid {
  width: 30px; height: 30px; margin-top: 2px;
  border-radius: 50%;
  background: var(--ink); color: #EDEFE9;
  font-size: 12px; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.note-item:hover .pid { background: var(--signal); color: var(--ink); }
.note-item.active { background: var(--card); }
.note-item.active .pid { background: var(--signal); color: var(--ink); }
.note-item h5 { font-family: var(--serif); font-size: 15.5px; margin-bottom: 3px; }
.note-item p { font-size: 13px; color: var(--ink-2); max-width: 460px; }
.note-item[state] .pid { background: var(--stamp); }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 34px 0 60px; color: var(--ink-2); font-size: 12.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 小节内联标签（如「状态」） */
.flag {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--stamp); border: 1px solid currentColor;
  border-radius: 3px; padding: 0 6px; margin-left: 8px; vertical-align: 2px;
  letter-spacing: 0.08em;
}
.flag.gold { color: var(--signal-deep); }
