:root {
  --ink: #182033;
  --muted: #657083;
  --paper: #fffdf8;
  --bg: #f5f7fb;
  --line: #dfe5ef;
  --pink: #c02683;
  --pink-soft: #fde5f0;
  --yellow: #f7c600;
  --yellow-soft: #fff4c7;
  --teal: #009d9a;
  --teal-soft: #dff8f4;
  --blue: #1d7fc2;
  --blue-soft: #e1f0fb;
  --red: #ed3d5d;
  --red-soft: #ffe5eb;
  --green: #169b62;
  --green-soft: #dcf7e8;
  --shadow: 0 16px 36px rgba(25, 37, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(253, 229, 240, 0.72), transparent 330px),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -24px 0 24px;
  padding: 14px 0;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 229, 239, 0.72);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: white;
  border-radius: 8px;
  font-weight: 950;
}

.site-logo {
  width: 72px;
  max-width: 18vw;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav a:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(25, 37, 62, 0.10);
}

.nav a.active {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}

.button.primary {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}

.button.yellow {
  background: var(--yellow);
  border-color: #dcae00;
}

.button.teal {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.button.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.button.red {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.button.helper {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 16px;
  background: #f8fafc;
  border-color: #d7e0ec;
  color: #4c5b70;
  font-size: 14px;
  font-weight: 750;
  box-shadow: none;
}

.button.helper:hover {
  background: #eef4fb;
  border-color: #c8d5e5;
  box-shadow: none;
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-panel,
.card,
.section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(192, 38, 131, 0.18), transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(247, 198, 0, 0.30), transparent 25%),
    radial-gradient(circle at 78% 78%, rgba(0, 157, 154, 0.18), transparent 28%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.unit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 2px solid currentColor;
  border-radius: 8px;
  color: var(--pink);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.42rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 650;
}

.section {
  padding: 26px;
  margin: 22px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.icon-badge {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 950;
  color: #553f00;
  flex: 0 0 auto;
}

.icon-badge.pink {
  background: var(--pink);
  color: white;
}

.icon-badge.teal {
  background: var(--teal);
  color: white;
}

.icon-badge.blue {
  background: var(--blue);
  color: white;
}

.icon-badge.red {
  background: var(--red);
  color: white;
}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.78rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.card.soft-pink {
  background: var(--pink-soft);
  border-color: #f7bfd7;
}

.card.soft-yellow {
  background: var(--yellow-soft);
  border-color: #f5d861;
}

.card.soft-teal {
  background: var(--teal-soft);
  border-color: #8ee5df;
}

.card.soft-blue {
  background: var(--blue-soft);
  border-color: #a8d8f4;
}

.card.soft-red {
  background: var(--red-soft);
  border-color: #ffc2cd;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card video,
.media-card audio {
  width: 100%;
}

.media-card video {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111827;
}

.audio-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.audio-row audio {
  width: 100%;
}

.textbook-heading {
  font-size: clamp(2.4rem, 5vw, 5rem);
  color: var(--blue);
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0 5px 0 rgba(247, 198, 0, 0.65);
}

.article {
  background: var(--paper);
  border: 1px solid #eadfcc;
  border-left: 10px solid var(--yellow);
  border-radius: 8px;
  padding: 26px 30px;
  font-size: 22px;
  line-height: 1.7;
}

.reading-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.reading-focus-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: white;
  background:
    linear-gradient(180deg, rgba(12, 35, 54, 0.12), rgba(12, 35, 54, 0.74)),
    linear-gradient(135deg, #7ac7d7 0%, #e9f6fb 36%, #81b86e 37%, #2c7847 100%);
}

.reading-focus-card::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 13%;
  width: 48%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-7deg);
}

.reading-focus-card > * {
  position: relative;
  z-index: 1;
}

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

.skim-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.question-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-size: 0.85rem;
  font-weight: 900;
}

.student-hint {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--yellow-soft);
  border: 1px solid #f2d45a;
  color: #624700;
}

.evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.post-reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

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

.map-step,
.phrase-card,
.skill-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.map-step strong {
  display: block;
  color: var(--blue);
  margin-bottom: 4px;
}

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phrase-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.phrase-card span:first-child {
  font-weight: 850;
  color: var(--ink);
}

.phrase-card span:last-child {
  color: var(--muted);
}

.sentence-frames {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sentence-frames span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-weight: 800;
}

.intensive-module {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
  min-height: 720px;
}

.intensive-reader,
.intensive-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.intensive-reader {
  height: clamp(720px, 82vh, 840px);
  overflow-y: auto;
  padding: 24px 28px;
  border-left: 10px solid var(--yellow);
  font-size: 22px;
  line-height: 1.68;
}

.intensive-reader p {
  margin: 0 0 16px;
}

.intensive-panel {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  height: clamp(720px, 82vh, 840px);
  overflow: hidden;
  padding: 16px;
  background: white;
}

.study-tabs {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 8px;
  margin-bottom: 0;
}

.post-study-tabs {
  position: sticky;
  top: 82px;
  z-index: 12;
  margin: 14px 0 0;
  padding: 10px;
  border: 1px solid rgba(223, 229, 239, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(25, 37, 62, 0.08);
}

.study-tab {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #d7e0ec;
  border-radius: 18px;
  background: #f8fafc;
  color: #4c5b70;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.study-tab:hover,
.study-tab.active {
  background: #ecf9f6;
  border-color: #8cdad2;
  color: #075f5a;
}

.intensive-output {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  scrollbar-gutter: stable;
}

.intensive-output.is-empty {
  display: grid;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.analysis-card {
  display: grid;
  gap: 10px;
}

.analysis-card h3 {
  color: var(--blue);
  font-size: 1.32rem;
  line-height: 1.18;
}

.analysis-card .quoted-text {
  padding: 12px;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow-soft);
  font-weight: 850;
}

.analysis-label {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: #115179;
  font-size: 0.82rem;
  font-weight: 900;
}

.compact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.map-grid {
  display: grid;
  gap: 8px;
}

.map-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.map-row strong {
  color: var(--pink);
}

.thinking-prompts {
  display: grid;
  gap: 12px;
}

.thinking-prompts .prompt {
  padding: 12px;
  border: 1px solid #b8ddf4;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-weight: 850;
}

.para-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-right: 10px;
  padding: 3px 9px;
  border-radius: 14px;
  background: #eef4fb;
  color: #4c5b70;
  font-size: 0.72em;
  font-weight: 900;
  font-style: normal;
  vertical-align: 0.08em;
}

.info-card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.logic-type-pair {
  display: grid;
  gap: 6px;
}

.logic-type-pair span {
  color: #243047;
  font-weight: 850;
}

.usage-reveal {
  display: grid;
  gap: 8px;
}

.usage-toggle {
  justify-self: start;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d7e0ec;
  border-radius: 17px;
  background: #f8fafc;
  color: #4c5b70;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.usage-toggle:hover {
  background: #eef4fb;
}

.usage-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 12px;
  border: 0 solid #f2d45a;
  border-radius: 8px;
  background: var(--yellow-soft);
  transition: max-height 0.36s ease, opacity 0.28s ease, padding 0.28s ease, border-width 0.28s ease;
}

.usage-detail.open {
  max-height: 420px;
  opacity: 1;
  padding: 10px 12px;
  border-width: 1px;
}

.classroom-extra {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed #c8d5e5;
  border-radius: 8px;
  background: white;
}

.classroom-extra label {
  color: #4c5b70;
  font-size: 0.86rem;
  font-weight: 900;
}

.classroom-extra textarea {
  width: 100%;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  background: #fbfcfe;
}

.deep-question-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.deep-question-card strong {
  color: var(--pink);
}

.deep-question-card p {
  margin: 0;
  font-weight: 850;
}

.intensive-highlight {
  border-radius: 6px;
  padding: 0 2px;
  border-bottom: 1px dotted rgba(101, 112, 131, 0.24);
  background: transparent;
  cursor: default;
  pointer-events: none;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.intensive-module[data-highlight-mode="logic"] .hl-logic {
  background: rgba(253, 224, 71, 0.16);
  border-bottom: 2px solid rgba(202, 138, 4, 0.36);
  cursor: pointer;
  pointer-events: auto;
}

.intensive-module[data-highlight-mode="logic"] .intensive-highlight:not(.hl-logic) {
  border-bottom-color: transparent;
}

.intensive-module[data-highlight-mode="vocab"] .hl-vocab {
  background: rgba(153, 246, 228, 0.18);
  border-bottom: 2px solid rgba(20, 184, 166, 0.34);
  cursor: pointer;
  pointer-events: auto;
}

.intensive-module[data-highlight-mode="vocab"] .intensive-highlight:not(.hl-vocab) {
  border-bottom-color: transparent;
}

.intensive-module[data-highlight-mode="grammar"] .hl-grammar {
  background: rgba(245, 208, 254, 0.22);
  border-bottom: 2px solid rgba(192, 132, 252, 0.38);
  cursor: pointer;
  pointer-events: auto;
}

.intensive-module[data-highlight-mode="grammar"] .intensive-highlight:not(.hl-grammar) {
  border-bottom-color: transparent;
}

.intensive-highlight.active {
  color: #111827;
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.34);
}

.intensive-module[data-highlight-mode="logic"] .hl-logic.active {
  background: rgba(253, 224, 71, 0.32);
  border-bottom-color: rgba(202, 138, 4, 0.72);
}

.intensive-module[data-highlight-mode="vocab"] .hl-vocab.active {
  background: rgba(153, 246, 228, 0.34);
  border-bottom-color: rgba(20, 184, 166, 0.70);
}

.intensive-module[data-highlight-mode="grammar"] .hl-grammar.active {
  background: rgba(245, 208, 254, 0.42);
  border-bottom-color: rgba(192, 132, 252, 0.72);
}

.article p {
  margin: 0 0 16px;
}

.intro-para {
  padding-bottom: 14px;
  border-bottom: 4px solid #dce900;
  color: #12364f;
  font-weight: 850;
  font-style: italic;
}

.evidence {
  border-radius: 6px;
  transition: background 0.25s, box-shadow 0.25s;
}

.evidence.focus {
  background: #fff08d;
  color: #854d0e;
  font-weight: 850;
  padding: 0 4px;
  border-bottom: 2px dashed #ca8a04;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.36);
  }
  50% {
    box-shadow: 0 0 12px 5px rgba(253, 224, 71, 0.82);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

.question-card {
  border: 1px solid var(--line);
  border-left: 8px solid var(--yellow);
  border-radius: 8px;
  background: white;
  padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.question-card:hover {
  transform: translateX(4px);
  border-color: #8ee5df;
  background: #fcfffe;
}

.question-card.active-card {
  border-left-color: var(--teal);
  border-color: #8ee5df;
  background: var(--teal-soft);
  box-shadow: 0 14px 30px rgba(0, 157, 154, 0.16);
}

.question-card.correct {
  border-left-color: var(--green);
}

.question-card.wrong {
  border-left-color: var(--red);
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease;
}

.option:hover {
  background: #f2f6fb;
}

.option .letter {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--yellow);
  font-weight: 950;
}

.option.good {
  border-color: #64cf97;
  background: var(--green-soft);
  animation: pop 0.28s ease-out;
}

.option.bad {
  border-color: #ff9daf;
  background: var(--red-soft);
  animation: shake 0.32s ease-in-out;
}

.answer-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 0 solid var(--line);
  transition: max-height 0.42s ease, opacity 0.35s ease, margin-top 0.35s ease, padding 0.35s ease, border-width 0.35s ease;
}

.answer-panel.open {
  max-height: 680px;
  opacity: 1;
  margin-top: 14px;
  padding: 14px;
  border-width: 1px;
  animation: rise 0.28s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.chalk {
  background: #183246;
  color: #eaf6ff;
  border-radius: 8px;
  padding: 22px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.speech {
  position: relative;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.speech.student {
  background: var(--yellow-soft);
  border-color: #f1d250;
}

.speech.aron {
  background: var(--blue-soft);
  border-color: #a8d8f4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip.for {
  background: var(--teal-soft);
  border-color: #76ddd6;
}

.chip.since {
  background: var(--pink-soft);
  border-color: #f5a9ca;
}

.chip.revealed::after {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 950;
  color: var(--muted);
}

.chip.revealed {
  animation: pop 0.24s ease-out;
  border-width: 2px;
}

.chip.for.revealed::after {
  content: "for";
}

.chip.since.revealed::after {
  content: "since";
}

.grammar-lesson {
  display: grid;
  gap: 18px;
}

.grammar-video-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: 18px;
  align-items: center;
}

.grammar-video-row video {
  width: 100%;
  max-height: 360px;
  border-radius: 8px;
  background: #111827;
}

.grammar-board {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(2, minmax(220px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.board-main,
.rule-tile,
.lesson-card,
.exercise-card,
.duration-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.board-main {
  background: var(--teal-soft);
  border-color: #90ddd7;
}

.board-main h3 {
  margin-top: 10px;
  color: #075f5a;
  font-size: 2rem;
}

.formula {
  margin: 14px 0 0;
  font-size: 1.55rem;
  font-weight: 950;
}

.grammar-next {
  margin-top: 16px;
}

.rule-tile {
  display: grid;
  gap: 8px;
  background: #fbfcfe;
  align-content: start;
  min-height: 245px;
}

.rule-tile strong {
  color: var(--pink);
  font-size: 2rem;
}

.rule-tile p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 850;
}

.rule-phrases {
  display: grid;
  gap: 8px;
}

.rule-tile span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 850;
}

.reveal-board .reveal-part {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.reveal-board[data-step="1"] .for-title,
.reveal-board[data-step="2"] .for-title,
.reveal-board[data-step="2"] .for-meaning,
.reveal-board[data-step="3"] .for-title,
.reveal-board[data-step="3"] .for-meaning,
.reveal-board[data-step="3"] .for-phrases,
.reveal-board[data-step="4"] .for-title,
.reveal-board[data-step="4"] .for-meaning,
.reveal-board[data-step="4"] .for-phrases,
.reveal-board[data-step="4"] .since-title,
.reveal-board[data-step="5"] .for-title,
.reveal-board[data-step="5"] .for-meaning,
.reveal-board[data-step="5"] .for-phrases,
.reveal-board[data-step="5"] .since-title,
.reveal-board[data-step="5"] .since-meaning,
.reveal-board[data-step="6"] .for-title,
.reveal-board[data-step="6"] .for-meaning,
.reveal-board[data-step="6"] .for-phrases,
.reveal-board[data-step="6"] .since-title,
.reveal-board[data-step="6"] .since-meaning,
.reveal-board[data-step="6"] .since-phrases {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: rise 0.28s ease-out both;
}

.reveal-board[data-step="0"] .rule-tile {
  background: #fbfcfe;
  border-style: dashed;
}

.reveal-board[data-step="1"] .for-tile,
.reveal-board[data-step="2"] .for-tile,
.reveal-board[data-step="3"] .for-tile,
.reveal-board[data-step="4"] .for-tile,
.reveal-board[data-step="5"] .for-tile,
.reveal-board[data-step="6"] .for-tile {
  background: var(--yellow-soft);
  border-color: #f1d250;
}

.reveal-board[data-step="4"] .since-tile,
.reveal-board[data-step="5"] .since-tile,
.reveal-board[data-step="6"] .since-tile {
  background: var(--teal-soft);
  border-color: #90ddd7;
}

.lesson-card h3,
.exercise-card h3 {
  margin-top: 6px;
  color: var(--blue);
}

.reading-example-list,
.step-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.reading-example,
.step-line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.reading-example p,
.step-line p,
.sentence-large {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.58;
}

.timeline-card {
  background: #fffdf8;
}

.timeline {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.timeline-point {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #115179;
  font-weight: 900;
}

.timeline-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.timeline-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: var(--yellow);
}

.timeline-line span {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 16px;
  background: white;
  border: 1px solid #f2d45a;
  color: #624700;
  font-weight: 900;
}

.timeline-sentences {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.timeline-sentences p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 820;
}

.input-label {
  display: block;
  margin: 12px 0 6px;
  color: #4c5b70;
  font-weight: 950;
}

.duration-note {
  display: grid;
  gap: 14px;
  background: var(--yellow-soft);
  border-color: #f1d250;
}

.duration-note > div:first-child strong {
  font-size: 1.35rem;
}

.duration-note > div:first-child p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.verb-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.verb-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid #e1c75a;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.verb-card:hover {
  transform: translateY(-1px);
  border-color: #c9a900;
  box-shadow: 0 10px 22px rgba(25, 37, 62, 0.10);
}

.verb-card strong {
  color: #7a5a00;
  font-size: 1.25rem;
  line-height: 1.55;
}

.verb-state {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff6c9;
  color: #684c00;
  font-weight: 900;
}

.verb-why,
.verb-example {
  display: none;
  grid-column: 1 / -1;
  line-height: 1.55;
}

.verb-why {
  color: #4c5b70;
}

.verb-example {
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2a3d;
  font-weight: 760;
}

.verb-card[data-step="1"] .verb-why,
.verb-card[data-step="2"] .verb-why,
.verb-card[data-step="2"] .verb-example {
  display: block;
  animation: rise 0.24s ease-out both;
}

.big-timeline {
  grid-template-columns: minmax(150px, auto) minmax(280px, 1fr) minmax(100px, auto);
  margin: 24px 0 16px;
}

.big-timeline .timeline-point {
  padding: 13px 18px;
  font-size: 1.18rem;
}

.big-timeline .timeline-line {
  min-height: 70px;
}

.big-timeline .timeline-line::before {
  height: 6px;
}

.big-timeline .timeline-line span {
  padding: 9px 16px;
  font-size: 1.12rem;
}

.timeline-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 16px;
}

.timeline-labels div {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #f2d45a;
  background: white;
  line-height: 1.55;
}

.grammar-lesson .exercise-card {
  display: grid;
  gap: 14px;
}

.grammar-lesson .exercise-card > p {
  margin: 0;
}

.grammar-lesson .sentence-large {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.68;
}

.exercise-card.soft-yellow {
  background: var(--yellow-soft);
}

.exercise-card.soft-teal {
  background: var(--teal-soft);
}

.sort-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sort-workspace {
  display: grid;
  gap: 16px;
}

.sort-bank,
.sort-drop-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-bank {
  min-height: 72px;
  padding: 14px;
  border: 1px dashed #dfb900;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.sort-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sort-box {
  min-height: 180px;
  padding: 16px;
  border: 2px solid #e5edf5;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sort-box:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(25, 37, 62, 0.10);
}

.sort-box strong {
  display: block;
  color: var(--pink);
  font-size: 1.8rem;
  line-height: 1;
}

.sort-box > span {
  display: block;
  margin: 6px 0 14px;
  color: #4c5b70;
  font-weight: 850;
}

.sort-token {
  background: white;
  min-height: 42px;
  font-size: 1rem;
}

.sort-token.selected {
  border-width: 2px;
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(44, 139, 194, 0.16);
}

.sort-token.correct {
  border-color: #13a67a;
  background: #dff8ee;
  color: #0f6d53;
}

.sort-token.wrong {
  border-color: #f06a83;
  background: var(--red-soft);
  color: #a32242;
}

.reveal-blank {
  vertical-align: -0.12em;
}

.blank {
  display: inline-flex;
  min-width: 92px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-bottom: 3px solid currentColor;
  color: var(--pink);
  font-weight: 950;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.blank:not(.show) {
  color: transparent;
  border-bottom-color: var(--pink);
}

.blank:hover {
  background: var(--pink-soft);
}

.blank.show {
  animation: pop 0.24s ease-out;
  background: rgba(253, 229, 240, 0.58);
}

.big-blank {
  min-width: 150px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom-width: 4px;
  border-radius: 8px 8px 2px 2px;
  background: rgba(255, 255, 255, 0.72);
}

.big-blank:not(.show) {
  box-shadow: inset 0 -10px 0 rgba(253, 229, 240, 0.72);
}

.writing-task {
  display: grid;
  gap: 16px;
}

.writing-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.writing-item p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.5;
}

.writing-item label {
  color: #4c5b70;
  font-weight: 950;
}

.writing-item .small-input {
  min-height: 74px;
  background: white;
}

.writing-item .answer-panel {
  font-size: 1.15rem;
  font-weight: 850;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vocabulary-intro {
  margin-bottom: 18px;
}

.vocabulary-audio {
  margin-bottom: 18px;
}

.vocab-match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.58fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.vocab-image-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.vocab-image-card img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 8px;
}

.subject-answer-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  box-shadow: var(--shadow);
}

.subject-answer-panel h3 {
  margin: 0 0 12px;
  color: var(--pink);
}

.subject-answer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.subject-reveal-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.subject-reveal-card:hover {
  transform: translateY(-1px);
  border-color: #f5a9ca;
  box-shadow: 0 8px 18px rgba(25, 37, 62, 0.10);
}

.subject-reveal-card[data-step="1"],
.subject-reveal-card[data-step="2"] {
  background: var(--pink-soft);
  border-color: #f5a9ca;
}

.subject-reveal-card .subject-letter {
  grid-row: 1 / span 2;
}

.subject-english,
.subject-chinese {
  display: none;
  font-weight: 950;
  line-height: 1.25;
}

.subject-english {
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.subject-chinese {
  color: #7a1747;
}

.subject-reveal-card[data-step="1"] .subject-english,
.subject-reveal-card[data-step="2"] .subject-english,
.subject-reveal-card[data-step="2"] .subject-chinese {
  display: block;
  animation: rise 0.22s ease-out both;
}

.interactive-subjects {
  margin-bottom: 18px;
}

.subject-tile {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  background: white;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.subject-tile:hover {
  transform: translateY(-2px);
  border-color: #f5a9ca;
}

.subject-tile.open {
  background: var(--pink-soft);
  border-color: #f5a9ca;
  box-shadow: 0 10px 22px rgba(192, 38, 131, 0.10);
}

.subject-tile::before {
  content: attr(data-icon);
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 3.4rem;
  opacity: 0.18;
}

.interactive-subjects .subject-tile::before {
  display: none;
}

.subject-letter {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: white;
  border-radius: 8px;
  font-weight: 950;
  font-size: 1.35rem;
}

.subject-guess {
  margin-top: 18px;
  color: #6b7280;
  font-weight: 850;
}

.subject-tile.open .subject-guess {
  display: none;
}

.subject-answer {
  display: none;
  font-weight: 950;
  font-size: 1.28rem;
}

.subject-tile.open .subject-answer {
  display: block;
  animation: rise 0.26s ease-out both;
}

.subject-support,
.speaking-builder {
  margin-top: 18px;
}

.subject-support {
  background: var(--teal-soft);
}

.subject-support h3 {
  margin-top: 0;
  color: #075f5a;
}

.subject-support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.support-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #8fded8;
  border-radius: 8px;
  background: white;
}

.support-card strong {
  color: var(--pink);
  font-size: 1.12rem;
}

.support-card p {
  margin: 0;
  line-height: 1.55;
}

.support-card span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #075f5a;
  font-weight: 850;
}

.speaking-question h4 {
  margin: 0;
  color: var(--blue);
  font-size: 1.22rem;
}

.reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reason-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid #f3dc76;
  font-size: 0.96rem;
  font-weight: 820;
}

.speaking-builder {
  display: grid;
  gap: 16px;
}

.speaking-question {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.think-box {
  padding: 12px;
  border-radius: 8px;
  background: var(--yellow-soft);
  border: 1px solid #f1d250;
}

.think-box strong {
  color: #765500;
}

.think-box p,
.speaking-question .answer-panel p {
  margin: 6px 0 0;
}

.speaking-question .small-input {
  min-height: 80px;
  background: white;
}

.speaking-question .answer-panel {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 820;
}

.function-line {
  display: grid;
  grid-template-columns: 54px 1fr 72px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.function-line:last-child {
  border-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf2f7;
  font-weight: 950;
  font-size: 0.84rem;
}

.tag.ap {
  background: var(--yellow-soft);
  color: #6c5100;
}

.tag.gp {
  background: var(--green-soft);
  color: #0f6a42;
}

.tag.rp {
  background: var(--red-soft);
  color: #b71936;
}

.hidden-answer {
  display: none;
}

.hidden-answer.open {
  display: inline-flex;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  min-height: 210px;
  display: flex;
  align-items: end;
  padding: 14px;
  border-radius: 8px;
  color: white;
  font-weight: 950;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #276a8f, #9cd7e9);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.52));
}

.photo-card span {
  position: relative;
  z-index: 1;
}

.photo-card.lab {
  background: linear-gradient(135deg, #2b6a57, #b8e487);
}

.photo-card.lunch {
  background: linear-gradient(135deg, #b8532d, #ffd173);
}

.photo-card.sport {
  background: linear-gradient(135deg, #185aa0, #a7e05e);
}

.number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  background: var(--pink);
  color: white;
  border-radius: 8px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.check-item input {
  width: 24px;
  height: 24px;
}

.small-input {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
}

.footer-space {
  height: 20px;
}

@media (max-width: 980px) {
  body {
    font-size: 17px;
  }

  .hero,
  .grid.two,
  .grid.three,
  .grid.four,
  .photo-grid,
  .subject-grid,
  .vocab-match-layout,
  .subject-answer-grid,
  .subject-support-grid,
  .grammar-video-row,
  .grammar-board,
  .timeline,
  .timeline-labels,
  .verb-card-grid,
  .sort-targets {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .article {
    padding: 20px;
  }

  .site-logo {
    width: 54px;
  }

  .skim-grid {
    grid-template-columns: 1fr;
  }

  .reading-map,
  .phrase-grid,
  .intensive-module {
    grid-template-columns: 1fr;
  }

  .intensive-reader {
    height: 66vh;
    min-height: 560px;
    padding: 20px;
    font-size: 20px;
  }

  .intensive-panel {
    position: static;
    height: auto;
    overflow: visible;
  }

  .post-study-tabs {
    top: 0;
  }

  .intensive-output {
    max-height: none;
  }
}

@media print {
  .topbar,
  .button,
  .study-tab,
  video,
  audio {
    display: none !important;
  }

  body {
    background: white;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .section,
  .card,
  .hero-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .answer-panel,
  .hidden-answer,
  .subject-answer {
    display: block !important;
  }
}
