:root {
  --red: #b91c1c;
  --deep-red: #7f1217;
  --ink: #18181b;
  --muted: #5f6368;
  --paper: #fff8ee;
  --white: #ffffff;
  --line: rgba(24, 24, 27, 0.12);
  --gold: #d8a43b;
  --green: #1f8a5b;
  --shadow: 0 24px 60px rgba(38, 24, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  background: #fffdf8;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 5vw;
  color: var(--white);
  background: linear-gradient(180deg, rgba(20, 12, 10, 0.72), rgba(20, 12, 10, 0));
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 36px rgba(24, 24, 27, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, #ffd166 0 15%, transparent 16%),
    linear-gradient(135deg, #e11d48, #7f1217);
  box-shadow: 0 8px 20px rgba(127, 18, 23, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.25;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 12px;
  color: currentColor;
  font-size: 14px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(185, 28, 28, 0.12);
  color: #ffe2a9;
}

.site-header.is-solid .site-nav a:hover,
.site-header.is-solid .site-nav a.is-active {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(35, 10, 10, 0.92), rgba(35, 10, 10, 0.56), rgba(35, 10, 10, 0.2)),
    linear-gradient(0deg, rgba(127, 18, 23, 0.78), rgba(127, 18, 23, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 90vw);
  padding: 23vh 0 150px 5vw;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  color: #651113;
  background: #ffe0a6;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: absolute;
  right: 5vw;
  bottom: 42px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(620px, 90vw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 22px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-panel span,
.hero-panel strong {
  display: block;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero-panel strong {
  margin-top: 8px;
  font-size: 22px;
}

.section {
  padding: 88px 5vw;
}

.section-heading {
  width: min(900px, 100%);
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-copy {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.intro-band,
.spirits-section,
.timeline-section {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.intro-grid p {
  margin: 0;
  color: #343434;
  font-size: 17px;
  line-height: 1.9;
}

.figure-grid,
.value-grid,
.task-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.figure-card,
.spirit-card,
.value-grid article,
.timeline article,
.task-board article,
.quiz-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(38, 24, 18, 0.07);
}

.figure-card,
.value-grid article,
.task-board article {
  padding: 26px;
}

.figure-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
}

.tag {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--deep-red);
  font-size: 12px;
  font-weight: 800;
  background: #ffe6b8;
}

.figure-card h3,
.spirit-card h3,
.value-grid h3,
.timeline h3,
.task-board h3,
.quiz-card h3 {
  margin: 18px 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.figure-card p,
.spirit-card p,
.spirit-card li,
.value-grid p,
.timeline p,
.task-board p,
.quiz-feedback {
  color: var(--muted);
  line-height: 1.8;
}

.figure-card strong {
  display: block;
  margin-top: auto;
  color: var(--deep-red);
  line-height: 1.7;
}

.spirit-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spirit-card {
  padding: 28px;
}

.spirit-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.values,
.quiz-section {
  background: #f8f2ea;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.timeline article {
  display: grid;
  grid-template-columns: 120px 220px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
}

.timeline span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.timeline h3 {
  margin: 0;
}

.timeline p {
  margin: 0;
}

.quiz-card {
  max-width: 860px;
  padding: 32px;
}

.quiz-count {
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.quiz-option {
  width: 100%;
  border: 1px solid rgba(127, 18, 23, 0.16);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink);
  text-align: left;
  background: #fffaf4;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: rgba(185, 28, 28, 0.42);
}

.quiz-option.is-correct {
  border-color: rgba(31, 138, 91, 0.55);
  background: #e9f7ef;
}

.quiz-option.is-wrong {
  border-color: rgba(185, 28, 28, 0.45);
  background: #fff0ed;
}

.quiz-feedback {
  min-height: 32px;
  margin: 18px 0 0;
}

.quiz-next {
  margin-top: 20px;
}

.practice {
  background: linear-gradient(135deg, var(--deep-red), #3d1516);
  color: var(--white);
}

.practice .section-copy,
.practice .task-board p {
  color: rgba(255, 255, 255, 0.76);
}

.practice .task-board article {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.practice .task-board h3 {
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 5vw;
  color: rgba(255, 255, 255, 0.72);
  background: #1d1414;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .site-nav a {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 13px;
  }

  .figure-grid,
  .value-grid,
  .task-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article {
    grid-template-columns: 90px 1fr;
  }

  .timeline p {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 5vw 24px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 24px 50px rgba(24, 24, 27, 0.16);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    border-radius: 8px;
    padding: 16px 0;
    font-size: 15px;
  }

  .hero-content {
    padding-top: 18vh;
    padding-bottom: 210px;
  }

  .intro-grid,
  .spirit-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 0 18px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    inset: 66px 0 auto;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    min-height: 920px;
  }

  .hero-content {
    width: auto;
    padding: 138px 18px 300px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy {
    max-width: min(100%, 340px);
    font-size: 16px;
    line-height: 1.75;
    word-break: break-all;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    right: 18px;
    bottom: 24px;
    left: 18px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .section {
    padding: 64px 18px;
  }

  .figure-grid,
  .value-grid,
  .task-board {
    grid-template-columns: 1fr;
  }

  .figure-card {
    min-height: auto;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .timeline p {
    grid-column: auto;
  }

  .quiz-card {
    padding: 24px;
  }

  .site-footer {
    display: block;
    padding: 24px 18px;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
