:root {
  color-scheme: dark;
  --bg: #061018;
  --surface: #0e2230;
  --surface-2: #0a1923;
  --line: #28485c;
  --text: #eef9ff;
  --muted: #a8bfcd;
  --cyan: #68ddec;
  --green: #69d7a4;
  --amber: #f2bd61;
  --shadow: 0 18px 52px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -8%, rgba(30, 107, 137, .42), transparent 38%),
    linear-gradient(160deg, #07131d, var(--bg) 58%);
}

a { color: inherit; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--cyan);
  color: #05171e;
  font-weight: 950;
}
.brand span:last-child { font-weight: 850; letter-spacing: .02em; }

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(104, 221, 236, .13);
  outline: none;
}

main { padding: 36px 0 64px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-weight: 850; letter-spacing: .06em; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: 1.06; }
.lead { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.75; }

.status-row, .card-grid, .metric-grid { display: grid; gap: 14px; }
.status-row { grid-template-columns: 1.4fr 1fr 1fr; margin: 32px 0 38px; }
.status-card, .page-card, .panel, .step, .metric {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 34, 48, .98), rgba(8, 23, 33, .98));
  box-shadow: var(--shadow);
}
.status-card { padding: 20px; }
.status-card strong { display: block; color: var(--cyan); font-size: 1.55rem; }
.status-card span { display: block; margin-top: 5px; color: var(--muted); }

.section-heading { margin: 46px 0 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.section-heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.6; }

.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-card { display: block; min-height: 205px; padding: 24px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.page-card:hover, .page-card:focus-visible { transform: translateY(-3px); border-color: var(--cyan); outline: none; }
.page-card .number { color: var(--cyan); font-weight: 900; }
.page-card h2 { margin: 34px 0 8px; font-size: 1.35rem; }
.page-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.page-card .arrow { display: inline-block; margin-top: 18px; color: var(--cyan); font-weight: 800; }

.page-header { max-width: 800px; margin-bottom: 28px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.page-header p { color: var(--muted); line-height: 1.7; }
.metric-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.metric { padding: 20px; }
.metric strong { display: block; color: var(--cyan); font-size: 1.55rem; }
.metric span { color: var(--muted); }

.stack { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; padding: 18px; }
.step-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #04160f; font-weight: 950; }
.step h2 { margin: 0 0 5px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; }
.badge { padding: 6px 10px; border-radius: 999px; background: var(--green); color: #04160f; font-size: .78rem; font-weight: 900; }
.badge.current { background: var(--cyan); color: #04171d; }
.badge.partial { background: var(--amber); color: #201300; }
.badge.wait { background: rgba(168, 191, 205, .15); color: var(--muted); border: 1px solid var(--line); }

.archive {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 23, 33, .72);
  overflow: hidden;
}
.archive summary { cursor: pointer; padding: 18px 22px; color: var(--cyan); font-weight: 850; }
.archive .stack { padding: 0 16px 16px; }
.archive .step { box-shadow: none; background: rgba(14, 34, 48, .7); }
.phase-callout { border-color: var(--cyan); }
.phase-callout h2 { color: var(--cyan); }

.panel { padding: 24px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { margin: 0 0 10px; font-size: 1.2rem; }
.panel p, .panel li { color: var(--muted); line-height: 1.65; }
.panel ul, .panel ol { margin-bottom: 0; padding-left: 1.35rem; }
.panel .status { color: var(--green); font-weight: 850; }
.canonical-projection { border-color: rgba(89, 215, 235, .5); }
.canonical-projection code { color: var(--cyan); font-size: .88em; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--cyan); font-size: .82rem; letter-spacing: .04em; }
td { color: var(--muted); }

.timeline { border-left: 2px solid var(--line); margin-left: 12px; padding-left: 25px; }
.timeline article { position: relative; padding: 0 0 28px; }
.timeline article::before { content: ""; position: absolute; left: -33px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px var(--bg); }
.timeline time { color: var(--cyan); font-weight: 800; }
.timeline h2 { margin: 6px 0; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); line-height: 1.6; }

.privacy-note { margin-top: 38px; padding: 16px 18px; border-left: 3px solid var(--amber); color: var(--muted); background: rgba(242, 189, 97, .07); line-height: 1.6; }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }

@media (max-width: 760px) {
  .topbar { display: block; }
  .nav { justify-content: flex-start; margin-top: 16px; }
  .status-row, .card-grid, .metric-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 46px 1fr; }
  .step .badge { grid-column: 2; justify-self: start; }
  footer { display: block; }
  footer span { display: block; margin-top: 8px; }
}
