:root {
  --navy: #102a43;
  --navy-2: #173f5f;
  --teal: #0d8582;
  --teal-soft: #e7f7f5;
  --gold: #e5ad3d;
  --ink: #203040;
  --muted: #627486;
  --bg: #f4f7f9;
  --card: #fff;
  --line: #d9e2e8;
  --danger: #b94747;
  --shadow: 0 14px 40px rgba(16, 42, 67, .09);
  --radius: 22px;
  --progress: 0deg;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; line-height: 1.72; }
a { color: var(--teal); text-underline-offset: 3px; }
button, input { font: inherit; }
.shell { width: min(1100px, calc(100% - 32px)); margin: auto; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(16, 42, 67, .96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.topbar-inner { min-height: 64px; display: flex; align-items: center; gap: 22px; }
.brand { color: #fff; font-weight: 800; white-space: nowrap; text-decoration: none; }
.brand small { display: block; color: #a9c5d7; font-weight: 500; font-size: 11px; line-height: 1.2; }
.topnav { display: flex; gap: 18px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: #dce9f1; text-decoration: none; font-size: 14px; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current="page"] { color: #fff; }

.page-hero { color: #fff; background: linear-gradient(135deg, #102a43 0%, #173f5f 58%, #0d7778 145%); padding: 58px 0 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -150px; top: -180px; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.02); }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { display: inline-flex; padding: 6px 11px; border-radius: 999px; background: rgba(13,133,130,.28); border: 1px solid rgba(185,236,231,.25); color: #d6fffb; font-size: 13px; }
h1 { margin: 18px 0 12px; font-size: clamp(34px, 5vw, 54px); line-height: 1.14; letter-spacing: -.03em; }
.lead { color: #d6e3ec; font-size: clamp(16px, 2vw, 19px); margin: 0; max-width: 760px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-meta span { padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); font-size: 13px; }

.breadcrumbs { margin: 0 0 16px; color: #9fb2bf; font-size: 13px; }
.breadcrumbs a { color: #dce9f1; text-decoration: none; }
main { padding: 42px 0 76px; }
section { margin-bottom: 48px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0; color: var(--navy); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { display: block; margin-bottom: 4px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card, .week-card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.info-card { padding: 22px; }
.info-card h3 { margin: 0 0 8px; color: var(--navy); }
.info-card p { margin: 0; color: var(--muted); }
.number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; }

.week-stack { display: grid; gap: 18px; }
.week-card { overflow: hidden; scroll-margin-top: 84px; }
.week-card.done { border-color: #65bdb5; box-shadow: 0 0 0 3px rgba(13,133,130,.08), var(--shadow); }
.week-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; background: linear-gradient(90deg, #fff, #f7fbfc); border-bottom: 1px solid var(--line); }
.week-no { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 800; }
.week-card.done .week-no { background: var(--teal); }
.week-title h2 { margin: 0; color: var(--navy); font-size: 22px; }
.week-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.complete { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.complete input, .check-item input { width: 19px; height: 19px; accent-color: var(--teal); }
.week-body { padding: 22px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.content-block { padding: 17px; background: #f8fafb; border: 1px solid #e5ecef; border-radius: 15px; }
.content-block h3 { margin: 0 0 8px; color: var(--teal); font-size: 16px; }
.content-block ul, .content-block ol { margin: 0; padding-left: 20px; }
.content-block li { margin: 4px 0; }
.formula { margin: 14px 0 0; padding: 14px 16px; border-radius: 13px; background: #102a43; color: #eef8fb; font-family: Consolas, "SFMono-Regular", monospace; overflow-x: auto; }
.deliverable { margin-top: 14px; padding: 14px 16px; border-radius: 13px; background: var(--teal-soft); color: #285a5a; }
.warning { margin-top: 14px; padding: 14px 16px; border-left: 5px solid var(--danger); border-radius: 0 13px 13px 0; background: #fff5f4; color: #713837; }

.gate-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: gate; }
.gate { counter-increment: gate; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.gate::before { content: "DR" counter(gate); display: inline-block; margin-bottom: 8px; color: var(--teal); font-weight: 800; }
.gate b { display: block; color: var(--navy); }
.gate span { color: var(--muted); font-size: 13px; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.score-grid { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.panel { padding: 22px; }
.score-row { display: grid; grid-template-columns: 1fr 76px 52px; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-row input { width: 70px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; }
.score-total { display: grid; place-items: center; text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; }
.score-total strong { display: block; font-size: 58px; line-height: 1.1; }
.score-total span { color: #c3d5df; }
.score-message { margin-top: 10px; color: #e5f0f5; font-size: 14px; }

.phase-progress { margin-top: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 14px; }
.progress-track { flex: 1; height: 10px; border-radius: 999px; background: #e7edf1; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #4ab7ae); border-radius: inherit; transition: width .25s ease; }

.page-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.page-nav a { padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); text-align: center; text-decoration: none; font-weight: 700; }
.page-nav a:hover { border-color: var(--teal); color: var(--teal); }
.page-nav .primary { background: var(--navy); color: #fff; border-color: var(--navy); }

footer { background: var(--navy); color: #bcd0dc; padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.footer-inner b { color: #fff; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--teal); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: none; }
.to-top.show { display: block; }

@media (max-width: 820px) {
  .overview-grid, .content-grid, .score-grid { grid-template-columns: 1fr; }
  .gate-list { grid-template-columns: repeat(2, 1fr); }
  .week-head { grid-template-columns: auto 1fr; }
  .week-head .complete { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1100px); }
  .topbar-inner { min-height: 58px; gap: 12px; }
  .brand small { display: none; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 13px; }
  .page-hero { padding: 42px 0 36px; }
  main { padding-top: 32px; }
  .check-grid, .gate-list { grid-template-columns: 1fr; }
  .week-head { padding: 16px; gap: 12px; }
  .week-body { padding: 16px; }
  .week-no { width: 46px; height: 46px; border-radius: 13px; }
  .week-title h2 { font-size: 19px; }
  .page-nav { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media print {
  .topbar, .to-top, .page-nav, .complete { display: none !important; }
  body { background: #fff; }
  .page-hero { background: #fff; color: #111; padding: 24px 0; }
  .page-hero .lead, .page-hero .eyebrow, .page-hero .breadcrumbs { color: #333; }
  .week-card, .info-card, .panel { box-shadow: none; break-inside: avoid; }
}
