/* 课程目录首页：暖白底色、低饱和层次与可读性优先。 */
:root {
  --canvas: #f5f4ec;
  --surface: #fffef9;
  --ink: #1f302d;
  --muted: #61716c;
  --line: #d8dfd4;
  --sage: #74947e;
  --sage-deep: #3d6655;
  --sage-pale: #e1ebe1;
  --blue: #7183ad;
  --blue-pale: #e4e8f3;
  --apricot: #e8a789;
  --apricot-pale: #f8e8dc;
  --paper-shadow: 0 24px 64px rgba(38, 61, 53, 0.1);
  --serif:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif SC",
    "Source Han Serif SC", serif;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 90% 3%,
      rgba(229, 233, 246, 0.78),
      transparent 20rem
    ),
    radial-gradient(
      circle at 5% 31%,
      rgba(226, 237, 224, 0.82),
      transparent 24rem
    ),
    var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 4px;
  border-radius: 0.45rem;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.brand em {
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.12em;
  font-weight: 600;
}
.brand-mark {
  position: relative;
  display: flex;
  gap: 2px;
  align-items: end;
  width: 23px;
  height: 23px;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 23px;
  height: 23px;
  border-radius: 50% 50% 7px 7px;
  background: var(--sage-deep);
  transform: rotate(-13deg);
}
.brand-mark i {
  position: relative;
  z-index: 1;
  width: 3px;
  border-radius: 4px;
  background: #f6f2e9;
  transform: rotate(-13deg);
}
.brand-mark i:nth-child(1) {
  height: 7px;
  margin-left: 6px;
}
.brand-mark i:nth-child(2) {
  height: 11px;
}
.brand-mark i:nth-child(3) {
  height: 15px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--muted);
}
nav > a:not(.nav-pill):hover,
.text-action:hover,
.footer-link:hover {
  color: var(--sage-deep);
}
.nav-pill {
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.64rem 0.95rem;
  border-radius: 99px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.nav-pill:hover {
  background: var(--surface);
  border-color: var(--sage);
}

.hero {
  min-height: 630px;
  padding: 68px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(0rem, 3vw, 2rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.05rem;
  color: var(--sage-deep);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.eyebrow span {
  width: 21px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.065em;
}
h1 {
  max-width: 690px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.25rem, 5.4vw, 5.5rem);
  line-height: 0.99;
}
h1 i {
  color: var(--sage-deep);
  font-weight: 500;
}
.hero-intro {
  max-width: 510px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.hero-intro strong {
  color: var(--ink);
  font-weight: 700;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-bottom: 3.25rem;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.15rem 0.9rem 1.35rem;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 760;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(51, 91, 73, 0.18);
}
.button-primary {
  color: #fffefa;
  background: var(--sage-deep);
}
.button-primary span {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: var(--sage-deep);
  background: var(--apricot-pale);
  font-size: 1rem;
}
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 750;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 0.18rem;
  transition: color 0.2s ease;
}
.hero-stats {
  display: flex;
  gap: clamp(1.6rem, 4.4vw, 3.5rem);
  margin: 0;
}
.hero-stats div {
  position: relative;
}
.hero-stats div + div::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 29px;
  left: -1.25rem;
  top: 0.3rem;
  background: var(--line);
}
.hero-stats dt {
  margin-bottom: 0.22rem;
  font-family: var(--serif);
  color: var(--sage-deep);
  font-size: 1.65rem;
  line-height: 1;
}
.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
}

.hero-art-wrap {
  position: relative;
  min-height: 542px;
  max-width: 450px;
  width: 100%;
  justify-self: end;
}
.hero-art-wrap::before {
  content: "";
  position: absolute;
  inset: 4% 2% 3% 6%;
  border-radius: 40% 44% 32% 38%;
  transform: rotate(-4deg);
  background: rgba(255, 254, 249, 0.53);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.hero-art {
  position: absolute;
  z-index: 1;
  inset: 3% 5% 0 4%;
  width: 93%;
  height: 96%;
  object-fit: cover;
  border-radius: 39% 42% 34% 37%;
  mix-blend-mode: multiply;
  filter: saturate(0.87) contrast(0.94);
}
.shape {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
}
.shape-top {
  width: 112px;
  height: 112px;
  right: 1%;
  top: 1%;
  background: var(--apricot);
}
.shape-bottom {
  width: 83px;
  height: 83px;
  left: 0;
  bottom: 8%;
  background: var(--blue);
}
.art-caption {
  position: absolute;
  z-index: 2;
  left: -4%;
  top: 8%;
  padding: 0.7rem 0.9rem;
  transform: rotate(-5deg);
  border: 1px solid rgba(54, 81, 68, 0.14);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.9);
  box-shadow: 0 10px 24px rgba(47, 70, 61, 0.08);
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.25;
}
.art-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(47, 70, 61, 0.1);
  background: rgba(255, 254, 249, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 750;
}
.chip-route {
  right: -4%;
  bottom: 14%;
  padding: 0.45rem 0.64rem 0.45rem 0.45rem;
}
.chip-route b {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--blue-pale);
  color: #4a6294;
}
.chip-ready {
  left: -3%;
  bottom: 29%;
  padding: 0.57rem 0.75rem;
  color: var(--sage-deep);
}
.chip-ready span {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(116, 148, 126, 0.16);
}

.continue {
  margin-bottom: 8.5rem;
}
.section-heading {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: end;
}
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  line-height: 1;
}
.section-heading.compact {
  margin-bottom: 1.65rem;
  align-items: start;
  flex-direction: column;
  gap: 0;
}
.now-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(320px, 1fr) minmax(255px, 0.75fr);
  gap: 2rem;
  min-height: 300px;
  overflow: hidden;
  padding: 2rem 2.45rem;
  border-radius: 24px;
  color: #f7f8f1;
  background: #294a3d;
  box-shadow: var(--paper-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.now-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(36, 67, 54, 0.18);
}
.now-card::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: 19%;
  bottom: -300px;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 213, 0.18);
  box-shadow:
    0 0 0 45px rgba(243, 236, 213, 0.045),
    0 0 0 90px rgba(243, 236, 213, 0.035);
}
.now-number {
  position: relative;
  z-index: 1;
  align-self: start;
  color: #b5cabc;
  font-family: var(--serif);
  font-size: clamp(4.7rem, 7vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.8;
}
.now-content {
  position: relative;
  z-index: 1;
  align-self: center;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.72rem;
  color: #bccbc3;
  font-size: 0.72rem;
  font-weight: 650;
}
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 99px;
  padding: 0.29rem 0.52rem;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.04em;
}
.status-live {
  color: var(--sage-deep);
  background: #dce9db;
}
.now-card .status-live {
  background: #f1d5b8;
  color: #754329;
}
.now-content h3 {
  margin-bottom: 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.08;
}
.now-content p {
  max-width: 460px;
  margin-bottom: 1rem;
  color: #cbd5cd;
  font-size: 0.89rem;
  line-height: 1.6;
}
.card-link {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: #fffdf7;
  font-size: 0.79rem;
  font-weight: 750;
}
.card-link b {
  font-size: 1.2rem;
  font-weight: 500;
}
.now-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-width: 260px;
}
.route-line {
  position: absolute;
  right: -42px;
  top: 50%;
  width: 322px;
  height: 132px;
  border-top: 2px solid #e7b69a;
  border-radius: 59% 0 0 0;
  transform: rotate(-14deg);
}
.route-line::before {
  content: "";
  position: absolute;
  left: 59px;
  top: -39px;
  width: 150px;
  height: 95px;
  border-bottom: 2px solid #91b0c7;
  border-radius: 0 0 70% 0;
  transform: rotate(31deg);
}
.route-node {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 4px solid #294a3d;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #e7b69a;
}
.node-a {
  top: 49%;
  left: 6%;
}
.node-b {
  top: 30%;
  left: 50%;
  box-shadow: 0 0 0 2px #d4e1b3;
}
.node-c {
  top: 57%;
  right: 7%;
  box-shadow: 0 0 0 2px #91b0c7;
}
.route-label {
  position: absolute;
  color: #e8eee7;
  font-size: 0.66rem;
  font-weight: 700;
}
.label-a {
  left: 1%;
  top: 63%;
}
.label-b {
  left: 43%;
  top: 13%;
}
.label-c {
  right: 0;
  top: 71%;
}

.course-section {
  margin-bottom: 8.5rem;
}
.course-heading {
  margin-bottom: 2.25rem;
}
.course-heading > p {
  max-width: 390px;
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.course-card {
  position: relative;
  min-height: 273px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 249, 0.68);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.course-card.is-open:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: 0 16px 30px rgba(38, 66, 53, 0.08);
}
.course-card.is-open::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -45px;
  bottom: -58px;
  border-radius: 50%;
  background: var(--sage-pale);
}
.bonus-course::before {
  background: var(--blue-pale) !important;
}
.course-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.course-no {
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.72rem;
  letter-spacing: -0.06em;
}
.bonus-course .course-no {
  color: var(--blue);
}
.course-kicker {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.course-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.65rem;
  font-family: var(--serif);
  font-size: 1.36rem;
  font-weight: 570;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.course-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  max-width: 210px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}
.course-arrow {
  position: absolute;
  z-index: 1;
  right: 1.3rem;
  bottom: 1.15rem;
  color: var(--sage-deep);
  font-size: 1.35rem;
}
.status-planned {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}
.is-planned {
  background: rgba(249, 249, 244, 0.5);
}
.is-planned .course-no {
  color: #a1aaa0;
}
.is-planned .course-kicker,
.is-planned h3,
.is-planned p,
.is-planned .course-arrow {
  color: #76807a;
}
.is-planned .course-arrow {
  color: #9ca59f;
}

.toolbox {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  margin-bottom: 8.5rem;
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 28px;
  background: #e0e8de;
}
.toolbox-copy h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.04;
}
.toolbox-copy > p {
  max-width: 350px;
  margin-bottom: 1.35rem;
  color: #52665c;
  font-size: 0.9rem;
  line-height: 1.7;
}
.tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tool-list a {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 91px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 13px;
  background: rgba(255, 254, 249, 0.64);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.tool-list a:hover {
  transform: translateY(-2px);
  background: var(--surface);
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--apricot-pale);
  color: #9a583d;
  font-weight: 800;
}
.icon-config {
  background: var(--blue-pale);
  color: #586b9d;
}
.icon-triage {
  background: #f1dfcf;
  color: #a25d49;
}
.icon-glossary {
  background: #dcebdc;
  color: var(--sage-deep);
  font-family: var(--serif);
}
.tool-list b {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.78rem;
}
.tool-list small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
}
.tool-list i {
  color: var(--sage-deep);
  font-style: normal;
  font-size: 0.9rem;
}

.principle {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  padding-bottom: 8.5rem;
}
.principle h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  line-height: 1.04;
}
.principle-points {
  border-top: 1px solid var(--line);
}
.principle-points p {
  margin: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.principle-points b {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--ink);
  font-size: 0.82rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  align-items: start;
  gap: 2rem;
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--line);
}
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}
.footer-link {
  justify-self: end;
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 750;
}

/* ---------- 学习任务页 ---------- */

.mission-main {
  padding: 2rem 0 0;
}
.mission-hero {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 5rem;
  align-items: center;
  min-height: 500px;
  margin-bottom: 7.5rem;
}
.mission-hero h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3.2rem, 5.8vw, 5.85rem);
}
.mission-intro {
  max-width: 540px;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.mission-visual {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border-radius: 36% 44% 42% 36%;
  background: linear-gradient(145deg, var(--sage-pale), var(--blue-pale));
}
.mission-ring {
  position: absolute;
  border: 1px solid rgba(61, 102, 85, 0.42);
  border-radius: 50%;
}
.ring-one {
  top: 7%;
  left: 6%;
  width: 88%;
  height: 88%;
}
.ring-two {
  top: 18%;
  left: 18%;
  width: 63%;
  height: 63%;
  border-color: rgba(113, 131, 173, 0.6);
}
.mission-core {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--sage-deep);
  box-shadow: 0 10px 30px rgba(47, 77, 63, 0.15);
  font-family: var(--serif);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-align: center;
}
.mission-note {
  position: absolute;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  background: rgba(255, 254, 249, 0.82);
  box-shadow: 0 8px 20px rgba(43, 62, 54, 0.09);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 750;
}
.note-one {
  top: 15%;
  right: 2%;
  transform: rotate(7deg);
}
.note-two {
  right: 4%;
  bottom: 17%;
  transform: rotate(-5deg);
}
.note-three {
  bottom: 7%;
  left: 5%;
  transform: rotate(7deg);
}
.goals {
  margin-bottom: 7.5rem;
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.goal-grid article {
  min-height: 230px;
  padding: 1.45rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 254, 249, 0.65);
}
.goal-grid article:nth-child(2) {
  background: var(--sage-pale);
}
.goal-grid article:nth-child(3) {
  background: var(--apricot-pale);
}
.goal-grid article:nth-child(4) {
  background: var(--blue-pale);
}
.goal-grid article > span {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.06em;
}
.goal-grid h3 {
  margin-bottom: 0.55rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 580;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.goal-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}
.goal-grid code {
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.48);
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
.rules {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  margin-bottom: 7.5rem;
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 26px;
  background: #294a3d;
  color: #f7f8f1;
}
.rules .eyebrow {
  color: #c5d8ca;
}
.rules-heading h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  line-height: 1.04;
}
.rule-list {
  border-top: 1px solid rgba(235, 242, 233, 0.23);
}
.rule-list p {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(235, 242, 233, 0.23);
  font-size: 0.82rem;
  line-height: 1.65;
}
.rule-list b {
  color: #fffefa;
}
.rule-list span {
  color: #c6d2c9;
}
.questions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 7.5rem;
}
.questions h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  line-height: 1.04;
}
.questions ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.questions li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.45;
}
.questions li span {
  color: var(--sage-deep);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  padding-top: 0.22rem;
}
.questions-note {
  grid-column: 2;
  margin: -1.7rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

/* ---------- 从 MISSION.md 自动生成的学习任务页 ---------- */

.mission-source-main {
  padding: 3rem 0 0;
}
.mission-source-hero {
  max-width: 880px;
  margin-bottom: 5.5rem;
}
.mission-source-hero h1 {
  max-width: 820px;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 1;
}
.mission-source-intro {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
}
.mission-source-intro p {
  margin-bottom: 0;
}
.mission-source-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}
.mission-source-actions > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}
.mission-document {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 7.5rem;
}
.mission-document-section {
  min-height: 280px;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 254, 249, 0.66);
}
.mission-document-section > header {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.mission-document-section > header > span {
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.06em;
}
.mission-document-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 570;
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.mission-document-section p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.mission-document-section p:last-child {
  margin-bottom: 0;
}
.mission-document-section strong {
  color: var(--ink);
}
.mission-document-section code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--sage-pale);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.mission-document-section a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.mission-source-reference {
  color: var(--sage-deep);
  font-weight: 700;
}
.mission-source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mission-source-list li {
  position: relative;
  padding: 0.78rem 0 0.78rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}
.mission-source-list li::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 0.14rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--sage);
}
.mission-source-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.mission-outcome-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mission-outcome-list li {
  min-height: 126px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 12px;
  background: rgba(255, 254, 249, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
}
.mission-outcome-list li strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}
.mission-document-section.is-success {
  grid-column: span 2;
  background: var(--sage-pale);
}
.mission-document-section.is-success > header > span {
  color: #345846;
}
.mission-document-section.is-questions {
  background: var(--apricot-pale);
}
.mission-document-section.is-scope {
  background: var(--blue-pale);
}
.mission-table-scroll {
  overflow-x: auto;
}
.mission-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.mission-table-scroll th,
.mission-table-scroll td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.mission-table-scroll th {
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 0.8fr;
  }
  .hero-art-wrap {
    min-height: 460px;
  }
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .now-card {
    grid-template-columns: 110px 1fr 0.65fr;
  }
  .toolbox {
    grid-template-columns: 1fr;
  }
  .toolbox-copy > p {
    max-width: 550px;
  }
  .mission-hero,
  .rules,
  .questions {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .mission-hero {
    min-height: auto;
  }
  .mission-visual {
    justify-self: start;
    width: min(100%, 340px);
  }
  .goal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .questions-note {
    grid-column: auto;
    margin: -1.5rem 0 0;
  }
  .mission-document {
    grid-template-columns: 1fr;
  }
  .mission-document-section.is-success {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }
  .site-header {
    min-height: 75px;
  }
  .site-header nav > a:not(.nav-pill) {
    display: none;
  }
  .nav-pill {
    padding: 0.55rem 0.72rem;
    font-size: 0.75rem;
  }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 42px 0 70px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .hero-art-wrap {
    justify-self: center;
    max-width: 370px;
    min-height: 430px;
    margin-top: 1rem;
  }
  .art-caption {
    left: 0;
  }
  .chip-route {
    right: 0;
  }
  .hero-stats {
    gap: 1.4rem;
  }
  .hero-stats div + div::before {
    left: -0.75rem;
  }
  .hero-stats dd {
    font-size: 0.64rem;
  }
  .continue,
  .course-section,
  .toolbox {
    margin-bottom: 5rem;
  }
  .section-heading,
  .course-heading,
  .principle {
    display: block;
  }
  .course-heading > p {
    margin-top: 1.2rem;
  }
  .now-card {
    grid-template-columns: 1fr;
    padding: 1.7rem;
    gap: 1.1rem;
    min-height: 456px;
  }
  .now-number {
    font-size: 5.2rem;
  }
  .now-content {
    align-self: start;
  }
  .now-content h3 {
    font-size: 2rem;
  }
  .now-visual {
    min-height: 150px;
    align-self: end;
  }
  .route-line {
    right: -8px;
    top: 39%;
  }
  .node-a {
    top: 38%;
    left: 5%;
  }
  .node-b {
    top: 17%;
    left: 49%;
  }
  .node-c {
    top: 46%;
    right: 7%;
  }
  .label-a {
    top: 56%;
  }
  .label-b {
    top: 2%;
  }
  .label-c {
    top: 62%;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
  .course-card {
    min-height: 220px;
  }
  .toolbox {
    padding: 1.5rem;
    border-radius: 20px;
  }
  .tool-list {
    grid-template-columns: 1fr;
  }
  .principle {
    padding-bottom: 5.5rem;
  }
  .principle-points {
    margin-top: 2rem;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .footer-link {
    justify-self: start;
  }
  .mission-main {
    padding-top: 1rem;
  }
  .mission-hero,
  .goals,
  .rules,
  .questions {
    margin-bottom: 5rem;
  }
  .mission-visual {
    justify-self: center;
  }
  .goal-grid {
    grid-template-columns: 1fr;
  }
  .goal-grid article {
    min-height: 190px;
  }
  .goal-grid article > span {
    margin-bottom: 1.35rem;
  }
  .rules {
    padding: 1.5rem;
    border-radius: 20px;
  }
  .rule-list p {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .questions li {
    font-size: 0.98rem;
  }
  .mission-source-main {
    padding-top: 1rem;
  }
  .mission-source-hero {
    margin-bottom: 4rem;
  }
  .mission-source-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
  .mission-document {
    gap: 12px;
    padding-bottom: 5rem;
  }
  .mission-document-section {
    min-height: 0;
    padding: 1.3rem;
    border-radius: 16px;
  }
  .mission-document-section > header {
    margin-bottom: 1.2rem;
  }
  .mission-outcome-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .now-card,
  .course-card,
  .tool-list a {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #18211e;
    --surface: #23302a;
    --ink: #edf0e8;
    --muted: #b3bdb5;
    --line: #3e4d46;
    --sage-pale: #31493b;
    --blue-pale: #323b51;
    --apricot-pale: #4b382e;
  }
  body {
    background:
      radial-gradient(
        circle at 90% 3%,
        rgba(55, 67, 105, 0.4),
        transparent 20rem
      ),
      radial-gradient(
        circle at 5% 31%,
        rgba(48, 77, 60, 0.47),
        transparent 24rem
      ),
      var(--canvas);
  }
  .nav-pill,
  .course-card,
  .tool-list a {
    background: rgba(35, 48, 42, 0.8);
  }
  .hero-art {
    mix-blend-mode: screen;
    opacity: 0.82;
    filter: saturate(0.65) contrast(0.8) brightness(0.8);
  }
  .hero-art-wrap::before {
    background: rgba(35, 48, 42, 0.6);
  }
  .art-caption,
  .art-chip {
    background: rgba(35, 48, 42, 0.88);
    border-color: rgba(237, 240, 232, 0.15);
  }
  .art-caption {
    color: #c3dfc7;
  }
  .now-card {
    background: #254235;
  }
  .toolbox {
    background: #273c31;
  }
  .tool-list a:hover {
    background: #31483a;
  }
  .is-planned {
    background: rgba(35, 48, 42, 0.35);
  }
  .is-planned .course-no {
    color: #8b9690;
  }
  .is-planned .course-kicker,
  .is-planned h3,
  .is-planned p {
    color: #a9b3ad;
  }
}
