:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1d312b;
  background: #f4f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #6c7b74;
  --line: #dfe8e1;
  --green: #286b55;
  --green-dark: #1d5743;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; }

a { color: inherit; }

.page-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e7ece8;
  background: rgba(250, 252, 250, .92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: block;
}

.brand-name { color: #21382f; font-size: 20px; font-weight: 750; }

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav a {
  color: #53645c;
  font-size: 13px;
  text-decoration: none;
}

.main-nav a:hover { color: var(--green); }

.main-nav .nav-admin {
  padding: 9px 14px;
  border: 1px solid #ccd9d0;
  border-radius: 6px;
  color: var(--green-dark);
  background: #fff;
}

.hero {
  min-height: 480px;
  padding-top: 68px;
  padding-bottom: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  align-items: center;
  gap: 78px;
}

.hero-copy { max-width: 630px; }

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}

.hero .eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c48a50;
}

.hero h1 {
  margin: 22px 0 18px;
  color: #1b3028;
  font-size: clamp(38px, 5.3vw, 62px);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: 1.25;
}

.hero-description {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 11px; }

.button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: #d4e0d7; color: #38574a; background: #fff; }
.button-secondary:hover { border-color: #a8c1b0; }

.study-path {
  position: relative;
  padding: 23px 24px 19px;
  border: 1px solid #dce7df;
  border-radius: 12px;
  background: #fbfcfa;
  box-shadow: 0 18px 54px rgba(34, 67, 49, .07);
}

.path-heading {
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8eee9;
  color: #344a3e;
  font-size: 13px;
  font-weight: 700;
}

.path-mark { color: #9aa99e; font-size: 18px; }

.path-step {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-index {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d5e1d8;
  border-radius: 50%;
  color: var(--green);
  background: #f2f7f2;
  font-size: 11px;
  font-weight: 750;
}

.path-step > div { display: grid; gap: 4px; }
.path-step strong { color: #273d32; font-size: 13px; }
.path-step > div span { color: #7a8981; font-size: 13px; }

.step-line {
  position: absolute;
  top: 52px;
  left: 14px;
  height: 22px;
  border-left: 1px solid #d7e2da;
}

.path-note {
  margin: 7px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e8eee9;
  color: #829087;
  font-size: 12px;
}

.tools-section { padding: 62px 0 70px; background: #fff; }

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

.section-heading h2, .closing h2 {
  margin: 9px 0 0;
  color: #20372e;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.04em;
}

.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 14px; }

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

.flow-card {
  min-height: 225px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow-number { color: #6c8b78; font-size: 12px; font-weight: 750; }
.flow-card h3 { margin: 26px 0 8px; color: #273d32; font-size: 17px; }
.flow-card p { margin: 0; color: #718077; font-size: 14px; line-height: 1.8; }
.flow-card .tool-link { margin-top: auto; }

.flow-label {
  margin-top: auto;
  padding-top: 19px;
  color: #74877b;
  font-size: 13px;
}

.flow-note { margin: 16px 0 0; color: #718077; font-size: 13px; line-height: 1.7; }

.planning-section { padding: 60px 0 68px; background: #f2f6f2; }
.planning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.planning-grid .tool-card { min-height: 225px; }

.tool-card {
  min-height: 254px;
  padding: 20px 19px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color .16s ease, transform .16s ease;
}

.tool-card:hover { transform: translateY(-2px); border-color: #b8ccbf; }
.tool-card-featured { border-color: #b6d0bf; background: #f8fbf7; }

.tool-card-top { display: flex; align-items: center; justify-content: space-between; }

.tool-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 750;
}

.symbol-search { color: #2d6c55; background: #e8f2e9; }
.symbol-plan { color: #6a6450; background: #f3f0e6; }

.tool-state {
  padding: 5px 8px;
  border-radius: 20px;
  color: #7b8981;
  background: #f2f5f2;
  font-size: 12px;
}

.tool-state-open { color: #28704f; background: #e8f4ea; }
.tool-card h3 { margin: 20px 0 8px; color: #273d32; font-size: 16px; }
.tool-card p { margin: 0; color: #718077; font-size: 14px; line-height: 1.8; }

.tool-link {
  margin-top: auto;
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.tool-link span { color: #8ba292; font-size: 15px; }
.tool-link:hover { color: #173e2c; }

.teaching-section { padding: 0 0 55px; background: #f2f6f2; }

.teaching-panel {
  min-height: 170px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #dfe8e1;
  border-radius: 8px;
  background: #fff;
}

.teaching-panel h2 { margin: 9px 0; color: #20372e; font-size: 21px; }
.teaching-panel p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.teaching-action { display: flex; align-items: center; gap: 14px; }

.closing {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.closing .eyebrow { color: #7b8d81; }
.closing h2 { margin-top: 8px; font-size: 25px; }
.button-dark { color: #fff; background: #263f33; }
.button-dark:hover { background: #192f25; }

.site-footer { border-top: 1px solid #e0e7e1; background: #fff; }

.footer-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #87928b;
  font-size: 12px;
}

.footer-inner span:first-child { color: #4b6255; font-size: 12px; font-weight: 750; }
.footer-inner a { color: #62786a; font-size: 12px; text-decoration: none; }
.footer-inner a:hover { color: var(--green-dark); }

a:focus-visible { outline: 3px solid #b0cbb8; outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { gap: 38px; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
  .learning-flow { gap: 10px; }
  .flow-card { padding: 17px; }
}

@media (max-width: 650px) {
  .site-header { height: 64px; padding: 0 20px; }
  .main-nav { gap: 15px; }
  .main-nav a:not(.nav-admin) { display: none; }
  .main-nav .nav-admin { padding: 8px 10px; }
  .page-shell { width: min(100% - 40px, 480px); }
  .hero { padding-top: 48px; padding-bottom: 48px; grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero-description { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .study-path { padding: 19px; }
  .tools-section { padding: 48px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .learning-flow, .planning-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 220px; }
  .flow-card { min-height: 205px; }
  .teaching-panel { align-items: flex-start; flex-direction: column; }
  .teaching-action { align-items: flex-start; flex-direction: column; }
  .closing { min-height: 210px; align-items: flex-start; flex-direction: column; }
  .footer-inner { padding: 17px 0; align-items: flex-start; flex-direction: column; }
}
