:root {
  --bg-top: #fff8ec;
  --bg-bottom: #f2f8ff;
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(40, 57, 82, 0.1);
  --text: #24344b;
  --muted: #66778f;
  --blue: #1778dc;
  --blue-soft: #4fa8ff;
  --orange: #ff7a22;
  --orange-soft: #ffb351;
  --mint: #4fc48c;
  --shadow: 0 24px 56px rgba(39, 71, 107, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 96, 0.36), transparent 26%),
    radial-gradient(circle at top right, rgba(78, 166, 255, 0.2), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.page-bg-one {
  top: 92px;
  left: -74px;
  width: 240px;
  height: 240px;
  background: rgba(255, 184, 73, 0.22);
}

.page-bg-two {
  top: 320px;
  right: -46px;
  width: 220px;
  height: 220px;
  background: rgba(23, 120, 220, 0.16);
}

.page-bg-three {
  bottom: 70px;
  left: 18%;
  width: 180px;
  height: 180px;
  background: rgba(79, 196, 140, 0.14);
}

.write-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 28px));
  margin: 18px auto 44px;
}

.panel,
.card,
.focus-card,
.homework-card,
.activity-card,
.summary-card,
.module-card,
.lesson-chip,
.detail-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 246, 0.92));
  box-shadow: var(--shadow);
}

.write-topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 32px;
  backdrop-filter: blur(18px);
}

.write-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.write-brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1778dc 0%, #4fa8ff 50%, #ff9a2b 100%);
  color: white;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 26px rgba(23, 120, 220, 0.2);
}

.write-brand-copy {
  display: grid;
  gap: 2px;
}

.write-brand-copy strong {
  font-size: 19px;
  line-height: 1.1;
  font-family: "Times New Roman", "Microsoft YaHei", serif;
  letter-spacing: 0.01em;
}

.write-brand-copy span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.write-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.write-nav a,
.button-primary,
.button-secondary,
.filter-pill,
.lesson-chip,
.inline-link,
.link-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.write-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 10px 18px rgba(40, 57, 82, 0.05);
  white-space: nowrap;
}

.write-nav a.is-current {
  color: white;
  background: linear-gradient(135deg, #1778dc 0%, #4fa8ff 55%, #ff8c2d 100%);
  box-shadow: 0 14px 24px rgba(23, 120, 220, 0.22);
}

.write-main {
  display: grid;
  gap: 24px;
  margin-top: 22px;
}

.section-panel,
.page-intro {
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(16px);
}

.write-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 30px;
  padding: 36px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(18px);
}

.write-hero::before {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -34px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(23, 120, 220, 0.14), transparent 62%);
  pointer-events: none;
}

.write-hero::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -44px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 196, 96, 0.34), transparent 58%);
  pointer-events: none;
}

.hero-copy,
.hero-media,
.section-head > div,
.section-head > p,
.module-card,
.detail-card,
.summary-card,
.lesson-chip {
  min-width: 0;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.hero-kicker,
.section-kicker,
.focus-badge,
.module-badge,
.lesson-chip-number,
.detail-card span,
.summary-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 93, 0.24);
  color: #9b6600;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.section-head h2,
.detail-head h2,
.page-intro h1 {
  margin: 0;
  line-height: 1.1;
  font-family: "Times New Roman", "Microsoft YaHei", serif;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  max-width: 8.8em;
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-sub {
  margin-top: 6px;
}

body[data-page="home"] .hero-kicker,
body[data-page="home"] .section-kicker {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body[data-page="home"] .hero-copy h1,
body[data-page="home"] .section-head h2,
body[data-page="home"] .page-intro h1 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.24;
  letter-spacing: 0;
}

body[data-page="home"] .hero-copy p,
body[data-page="home"] .section-head p,
body[data-page="home"] .focus-lead,
body[data-page="home"] .module-card p,
body[data-page="home"] .flow-card p,
body[data-page="home"] .summary-card p,
body[data-page="home"] .mini-list li {
  font-size: 16px;
  line-height: 1.85;
}

body[data-page="home"] .focus-card-home .focus-card-copy h3,
body[data-page="home"] .module-card h3,
body[data-page="home"] .flow-card strong {
  font-size: 24px;
  line-height: 1.45;
  font-weight: 600;
}

body[data-page="home"] .focus-meta-compact span strong,
body[data-page="home"] .focus-meta-compact span em,
body[data-page="home"] .focus-card-home .mini-info span,
body[data-page="home"] .hero-stat-pill span {
  font-size: 14px;
  line-height: 1.4;
}

.hero-copy p,
.section-head p,
.focus-card p,
.flow-card p,
.module-card p,
.summary-card p,
.detail-card p,
.detail-subtitle,
.homework-copy,
.activity-card p,
.empty-card {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions,
.page-tools,
.focus-meta,
.tag-list,
.detail-state-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary,
.button-secondary,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #1778dc 0%, #4fa8ff 54%, #ff8d2d 100%);
  box-shadow: 0 16px 28px rgba(23, 120, 220, 0.22);
}

.button-secondary,
.link-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 12px 22px rgba(40, 57, 82, 0.08);
}

.button-primary:hover,
.button-secondary:hover,
.filter-pill:hover,
.lesson-chip:hover,
.write-nav a:hover,
.inline-link:hover,
.link-button:hover {
  transform: translateY(-2px);
}

.hero-stat-row,
.summary-grid,
.module-grid,
.training-flow,
.detail-grid,
.detail-two-column {
  display: grid;
  gap: 16px;
}

.hero-stat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.hero-stat-pill,
.summary-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(40, 57, 82, 0.08);
}

.hero-stat-pill strong,
.summary-card strong,
.module-progress strong,
.detail-card strong,
.mini-info strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: var(--text);
}

.hero-stat-pill span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  display: grid;
  align-items: center;
}

.hero-media-card {
  padding: 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 71, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 18px 32px rgba(40, 57, 82, 0.08);
}

.hero-media-card img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

.image-zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-zoom-trigger img {
  width: 100%;
  display: block;
}

.image-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(36, 52, 75, 0.74);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head-focus {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head-focus > div {
  display: grid;
  gap: 8px;
}

.section-head-focus p {
  max-width: 320px;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
  color: var(--muted);
}

.section-head h2,
.page-intro h1 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.section-head-focus h2 {
  font-size: 32px;
  line-height: 1.22;
}

.focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  padding: 26px;
  border-radius: 28px;
  align-items: stretch;
}

.focus-card-copy h3,
.module-card h3,
.detail-card h3,
.homework-card h3 {
  margin: 10px 0 10px;
  font-size: 24px;
}

.focus-meta span,
.module-progress span,
.activity-card span {
  color: var(--muted);
  font-size: 13px;
}

.focus-card-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 8px 8px 8px 10px;
}

.focus-card-home {
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 24px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 205, 71, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(79, 168, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 246, 0.95));
}

.focus-card-home .focus-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 4px 8px 4px 12px;
}

.focus-card-home .focus-card-copy h3 {
  max-width: 11em;
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 600;
}

.focus-lead {
  max-width: 13.5em;
  font-size: 18px;
  line-height: 1.8;
}

.focus-card-home .focus-lead {
  max-width: 20em;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.focus-meta {
  margin-top: 10px;
}

.focus-card-home .focus-meta {
  margin-top: 18px;
  gap: 12px;
}

.focus-meta-compact span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(40, 57, 82, 0.08);
}

.focus-meta-compact span strong,
.focus-meta-compact span em {
  font-size: 14px;
  line-height: 1;
  font-style: normal;
}

.focus-meta-compact span strong {
  font-weight: 600;
  color: var(--muted);
}

.focus-meta-compact span em {
  color: var(--text);
  font-weight: 500;
}

.focus-actions {
  margin-top: auto;
  padding-top: 34px;
  align-items: end;
}

.focus-card-home .focus-actions {
  margin-top: 26px;
  padding-top: 0;
  align-self: flex-start;
}

.lesson-audio-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(79, 168, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.95));
  border: 1px solid var(--line);
}

.lesson-audio-card-compact {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 71, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

.lesson-audio-copy h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.4;
}

.lesson-audio-card-compact .lesson-audio-copy h3 {
  font-size: 18px;
  line-height: 1.55;
}

.lesson-audio-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.lesson-audio-player {
  width: 100%;
  height: 52px;
  border-radius: 16px;
}

.focus-card-side {
  display: grid;
  gap: 16px;
  align-content: center;
}

.focus-card-home .focus-card-side {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 14px;
}

.mini-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
  padding: 24px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.mini-info span,
.module-progress span,
.detail-card span {
  display: block;
}

.mini-info span {
  margin-bottom: 12px;
}

.mini-info strong {
  font-size: 26px;
  line-height: 1.26;
  max-width: 8.5em;
}

.focus-card-home .mini-info {
  min-height: 0;
  padding: 22px 22px 20px;
  border-radius: 24px;
  justify-content: flex-start;
}

.focus-card-home .mini-info span {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.focus-card-home .mini-info:first-child {
  background:
    radial-gradient(circle at top right, rgba(79, 168, 255, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

.focus-card-home .mini-info:last-child {
  background:
    radial-gradient(circle at top right, rgba(255, 205, 71, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.92);
}

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

.mini-list li {
  position: relative;
  padding-left: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-soft), var(--orange-soft));
}

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

.module-card {
  padding: 20px;
  border-radius: 26px;
}

.module-card h3 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.module-progress {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(40, 57, 82, 0.08);
}

.module-foundation {
  background:
    radial-gradient(circle at top right, rgba(79, 168, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.95));
}

.module-structure {
  background:
    radial-gradient(circle at top right, rgba(255, 157, 64, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 236, 0.95));
}

.module-expression {
  background:
    radial-gradient(circle at top right, rgba(78, 196, 140, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 246, 0.95));
}

.module-finish {
  background:
    radial-gradient(circle at top right, rgba(255, 205, 71, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 241, 0.95));
}

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

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

.essay-card {
  min-width: 0;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(23, 120, 220, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  box-shadow: 0 16px 28px rgba(40, 57, 82, 0.06);
}

.essay-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.essay-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(40, 57, 82, 0.1);
  border-color: rgba(23, 120, 220, 0.14);
}

.essay-card-feature {
  background:
    radial-gradient(circle at top right, rgba(255, 186, 71, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 240, 0.95));
}

.essay-card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 211, 93, 0.24);
  color: #9b6600;
  font-size: 13px;
  font-weight: 700;
}

.essay-card h3 {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.4;
}

.essay-card p {
  margin: 0;
}

.essay-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.essay-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  line-height: 1.7;
}

.essay-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-soft), var(--orange-soft));
}

.flow-card,
.empty-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px rgba(40, 57, 82, 0.06);
}

.flow-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.page-intro {
  background:
    radial-gradient(circle at top right, rgba(23, 120, 220, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 174, 71, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 246, 0.92));
}

.module-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.filter-pill.is-active {
  color: white;
  background: linear-gradient(135deg, #1778dc 0%, #4fa8ff 54%, #ff8d2d 100%);
  box-shadow: 0 14px 24px rgba(23, 120, 220, 0.2);
}

.lesson-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.lesson-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 102px;
}

.lesson-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  cursor: pointer;
}

.lesson-chip.is-current {
  border-color: rgba(23, 120, 220, 0.24);
  box-shadow: 0 18px 30px rgba(23, 120, 220, 0.12);
}

.lesson-chip-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.lesson-chip-number {
  min-height: 28px;
  padding: 4px 10px;
}

.lesson-chip strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 18px;
}

.lesson-chip span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.lesson-chip-state {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.lesson-chip-state.done {
  color: #267a4c;
}

.lesson-chip-state.half {
  color: #8f6200;
}

.lesson-chip-state.soon {
  color: #7c4dd5;
}

.lesson-detail {
  padding: 24px;
  border-radius: 28px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.detail-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 40px);
}

.detail-subtitle {
  margin-top: 12px;
}

.detail-grid,
.detail-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.detail-card {
  padding: 18px;
  border-radius: 22px;
}

.detail-card.highlight {
  background:
    radial-gradient(circle at top right, rgba(23, 120, 220, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.95));
}

.detail-card.soft {
  background:
    radial-gradient(circle at top left, rgba(255, 205, 71, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 244, 0.95));
}

.detail-card strong {
  margin: 10px 0 8px;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.story-hero,
.story-section {
  overflow: hidden;
}

.story-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
}

.story-hero.is-text-only {
  grid-template-columns: 1fr;
}

.story-copy,
.story-visual {
  min-width: 0;
}

.story-copy h3,
.story-section h3 {
  margin: 12px 0 10px;
  font-size: clamp(24px, 2.7vw, 32px);
}

.story-lead {
  font-size: 16px;
}

.story-methods {
  margin-top: 10px;
}

.story-checklist,
.tool-grid,
.mission-steps {
  display: grid;
  gap: 14px;
}

.story-checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.story-check-card,
.tool-card,
.mission-step,
.compare-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(40, 57, 82, 0.08);
}

.story-check-card span,
.mission-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 196, 96, 0.2);
  color: #9b6600;
  font-size: 12px;
  font-weight: 800;
}

.story-check-card strong,
.tool-head strong,
.mission-step strong,
.story-prompt strong,
.compare-card span {
  display: block;
}

.story-check-card strong {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.story-visual {
  display: grid;
  align-items: center;
}

.story-visual img {
  width: 100%;
  display: block;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(40, 57, 82, 0.08);
}

.story-visual .image-zoom-trigger {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(40, 57, 82, 0.08);
}

.story-section {
  padding: 22px;
}

.story-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--text);
}

.story-list li {
  line-height: 1.7;
}

.story-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 196, 96, 0.12);
  color: #7a5500;
  border: 1px solid rgba(255, 196, 96, 0.2);
}

.coming-card {
  background:
    radial-gradient(circle at top right, rgba(124, 77, 213, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 255, 0.95));
}

.compare-grid,
.tool-grid,
.story-write-grid,
.story-home-grid {
  display: grid;
  gap: 16px;
}

.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.compare-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compare-card p {
  margin-top: 10px;
}

.compare-card.is-strong {
  background:
    radial-gradient(circle at top right, rgba(79, 196, 140, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.94);
}

.story-prompt {
  margin-top: 16px;
}

.story-prompt strong {
  font-size: 16px;
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.tool-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.tool-head strong {
  font-size: 18px;
}

.tool-head span {
  color: var(--orange);
  font-weight: 700;
}

.tool-card p,
.mission-step p {
  margin-bottom: 0;
}

.mission-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.mission-step strong {
  margin: 10px 0 8px;
  font-size: 18px;
}

.checklist-list {
  margin-top: 18px;
}

.tag-list {
  gap: 10px;
}

.tag-chip,
.progress-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.progress-pill.done {
  color: #24754a;
  background: rgba(79, 196, 140, 0.14);
  border-color: rgba(79, 196, 140, 0.24);
}

.progress-pill.coming {
  color: #7c4dd5;
  background: rgba(124, 77, 213, 0.12);
  border-color: rgba(124, 77, 213, 0.18);
}

.note-box {
  width: 100%;
  min-height: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font: inherit;
  resize: vertical;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

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

.summary-card {
  padding: 18px;
  border-radius: 22px;
}

.summary-card strong {
  margin: 10px 0 10px;
}

.summary-card p {
  margin-top: 8px;
}

.homework-list,
.activity-list {
  display: grid;
  gap: 16px;
}

.homework-card,
.activity-card {
  padding: 20px;
  border-radius: 24px;
}

.homework-card.is-done {
  background:
    radial-gradient(circle at top right, rgba(79, 196, 140, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 247, 0.95));
}

.homework-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.homework-copy {
  margin: 12px 0 16px;
}

.homework-extra {
  margin-bottom: 16px;
}

.activity-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.inline-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.image-lightbox.is-open {
  display: block;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 26, 40, 0.76);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1180px);
  margin: min(5vh, 40px) auto;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
}

.image-lightbox-dialog img {
  width: 100%;
  max-height: calc(90vh - 84px);
  display: block;
  object-fit: contain;
  border-radius: 22px;
}

.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 52, 75, 0.82);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .write-hero,
  .focus-card,
  .lesson-layout,
  .story-hero,
  .detail-grid,
  .detail-two-column,
  .compare-grid,
  .tool-grid,
  .mission-steps,
  .summary-grid,
  .module-grid,
  .training-flow,
  .essay-grid {
    grid-template-columns: 1fr;
  }

  .section-head-focus {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }

  .section-head,
  .detail-head,
  .homework-head {
    flex-direction: column;
    align-items: start;
  }

  .section-head-focus p {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .lesson-sidebar {
    position: static;
    top: auto;
  }

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

  .story-checklist {
    grid-template-columns: 1fr;
  }

  .focus-actions {
    margin-top: 20px;
    padding-top: 0;
  }

  .focus-card-home {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .focus-card-home .focus-card-copy {
    padding: 6px 4px 0;
  }

  .focus-card-home .focus-card-copy h3,
  .focus-card-home .focus-lead {
    max-width: none;
  }

  .focus-card-home .focus-card-side {
    grid-template-rows: none;
  }

  .mini-info {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .write-shell {
    width: min(100vw - 16px, 100%);
    margin: 12px auto 26px;
  }

  .write-topbar,
  .section-panel,
  .page-intro,
  .write-hero {
    padding: 18px;
    border-radius: 26px;
  }

  .write-topbar {
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .write-brand-copy span {
    display: none;
  }

  .write-nav {
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .write-nav::-webkit-scrollbar {
    display: none;
  }

  .write-nav a {
    padding: 9px 12px;
    font-size: 13px;
  }

  .write-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 20px;
  }

  .hero-copy h1,
  .section-head h2,
  .page-intro h1,
  .detail-head h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .hero-stat-row {
    grid-template-columns: 1fr;
  }

  .button-primary,
  .button-secondary,
  .link-button {
    width: 100%;
  }

  .story-section,
  .detail-card,
  .lesson-detail {
    padding: 18px;
  }

  .story-copy h3,
  .story-section h3 {
    font-size: 24px;
  }

  .image-lightbox-dialog {
    width: min(94vw, 94vw);
    margin: 16px auto;
    padding: 14px;
    border-radius: 22px;
  }

  .image-lightbox-dialog img {
    max-height: calc(100vh - 76px);
    border-radius: 16px;
  }

  .image-zoom-hint {
    right: 10px;
    bottom: 10px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}
