/* Shared design baseline across hub/drama/gwy/type:
   --shell 1100px, --pad clamp(20-44px), --radius 14px,
   button min-height 48px, h1 clamp(40-72px) lh 1.04, h2 clamp(30-46px),
   eyebrow 12px ls 0.22-0.24em uppercase, section pad clamp(64-100px),
   sticky header padding 18px, footer 36px. Per-product accents below. */
:root {
  color-scheme: light;
  --red: #b42318;
  --red-deep: #7f1d1d;
  --vermillion: #d94b37;
  --paper: #fff7eb;
  --paper-deep: #ead8bd;
  --ink: #241512;
  --ink-soft: #4e332d;
  --muted: #77615a;
  --line: rgba(127, 29, 29, 0.18);
  --line-soft: rgba(127, 29, 29, 0.1);
  --card: rgba(255, 250, 241, 0.86);
  --shell: 1100px;
  --pad: clamp(14px, 1.4vw, 22px);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(180,35,24,0.05) 1px, transparent 1px),
    linear-gradient(rgba(180,35,24,0.04) 1px, transparent 1px),
    radial-gradient(circle at 16% 4%, rgba(217, 75, 55, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 92%, rgba(127, 29, 29, 0.08), transparent 26rem),
    var(--paper);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

a { color: inherit; text-decoration: none; }

.shell, .header-shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 247, 235, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  object-position: right center;
  background: transparent;
  border: 0;
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand strong { font-size: 16px; letter-spacing: 0.04em; }

.brand em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--red);
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover { color: var(--red-deep); }

.hero {
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 400px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font: 800 12px/1 "Inter", "Trebuchet MS", sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: none;
  margin-bottom: 24px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.summary {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(127, 29, 29, 0.16); }

.button.primary {
  color: #fff8ed;
  background: var(--red);
  border-color: var(--red);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(127, 29, 29, 0.28);
}

.button.ghost:hover {
  background: #fff;
  border-color: rgba(127, 29, 29, 0.5);
}

.stamp {
  position: absolute;
  right: max(28px, calc((100vw - var(--shell)) / 2 + 24px));
  top: 96px;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  z-index: 2;
  color: var(--red);
  border: 6px double rgba(180, 35, 24, 0.42);
  border-radius: 50%;
  transform: rotate(-14deg);
  font-size: 18px;
  font-weight: 900;
  opacity: 0.32;
  pointer-events: none;
}

.teacher-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,247,235,0.92)),
    var(--card);
  box-shadow: 0 32px 80px rgba(127, 29, 29, 0.16);
}

.dossier-preview { transform: rotate(0.4deg); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--red-deep);
  font-weight: 800;
  font-size: 13px;
}

.card-top b {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 250, 241, 0.72);
  font-size: 11px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.dossier-title {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf1;
}

.dossier-title small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.dossier-title strong {
  display: block;
  color: var(--red-deep);
  font-size: 24px;
  line-height: 1.2;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.keyword-row span {
  padding: 7px 10px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 999px;
  color: var(--red-deep);
  background: rgba(180, 35, 24, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.source-note {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.answer-sheet {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf1;
}

.answer-sheet p {
  margin: 8px 0 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.answer-sheet span {
  display: block;
  height: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(180,35,24,0.32), rgba(180,35,24,0.08));
}

.answer-sheet span:nth-of-type(1) { width: 92%; }
.answer-sheet span:nth-of-type(2) { width: 74%; }
.answer-sheet span:nth-of-type(3) { width: 60%; }

.answer-sheet strong { color: var(--red); }

.section {
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-sub { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.7; }

h2 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  word-break: keep-all;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dossier-grid article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.dossier-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(127, 29, 29, 0.12);
}

.d-num {
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--red);
}

.dossier-grid strong {
  color: var(--red-deep);
  font-size: 22px;
}

.dossier-grid p {
  margin: auto 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.script {
  background:
    radial-gradient(circle at 80% 10%, rgba(255,205,180,0.18), transparent 30rem),
    var(--red-deep);
  color: #fff8ed;
}

.script-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.script-panel h2 {
  text-align: left;
  margin: 0 0 18px;
  font-size: clamp(26px, 3.4vw, 40px);
  word-break: keep-all;
}

.script .eyebrow { color: #ffd5bd; }

.script-panel p {
  color: rgba(255, 248, 237, 0.78);
  line-height: 1.8;
  font-size: 17px;
  max-width: 560px;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.step-list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-size: 17px;
  align-items: baseline;
}

.step-list span {
  color: #ffbca7;
  font-weight: 800;
  font-family: "Inter", "Trebuchet MS", sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  min-width: 28px;
}

.warning { background: #fffaf1; }

.warning p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.65;
  text-align: center;
}

.footer {
  padding: 36px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
}

.footer-brand strong { font-size: 15px; letter-spacing: 0.04em; }
.footer-brand span { color: var(--muted); font-size: 13px; }

.footer-nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-meta a { color: var(--ink); font-weight: 600; }

@media (max-width: 920px) {
  .hero-shell, .script-panel { grid-template-columns: 1fr; }
  .teacher-card { max-width: 480px; }
  .dossier-grid { grid-template-columns: 1fr; }
  .script-panel h2 { text-align: center; }
  .stamp { display: none; }
}

@media (max-width: 720px) {
  .footer-shell { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { align-items: center; }
}

@media (max-width: 620px) {
  :root { --pad: 14px; }
  .header-shell { flex-wrap: wrap; gap: 12px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  .teacher-card { max-width: 100%; padding: 18px; }
  .dossier-title strong { font-size: 22px; }
}
