:root {
  color-scheme: light;
  --text: #24313f;
  --heading: #172331;
  --muted: #617080;
  --line: #dfe8ec;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --accent: #246d72;
  --accent-strong: #0e5960;
  --accent-soft: #e2f0ee;
  --gold: #c18b3b;
  --shadow: 0 24px 80px rgba(23, 35, 49, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: "PingFang SC", "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(36, 109, 114, 0.14), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(193, 139, 59, 0.13), transparent 26%),
    linear-gradient(180deg, #fbfcfa 0%, #f1f6f4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(23, 35, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 49, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(23, 35, 49, 0.18) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

a {
  color: inherit;
}

.home {
  position: relative;
  z-index: 1;
  flex: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 54px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.definition-card,
.learning,
.path {
  border: 1px solid rgba(223, 232, 236, 0.9);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin: 0 0 20px;
  padding: 5px 13px;
  border: 1px solid #bed8d6;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero h1,
.section-head h2,
.path h2,
.doc-content h1 {
  color: var(--heading);
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 800;
}


.title-line {
  display: block;
}

.title-line + .title-line::before {
  content: "";
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #4f6070;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.button-primary,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  padding: 0 20px;
  color: #ffffff;
  background: #1d6369;
  box-shadow: 0 12px 28px rgba(36, 109, 114, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  background: #0e5960;
  box-shadow: 0 16px 34px rgba(36, 109, 114, 0.28);
}

.status-pill {
  padding: 0 16px;
  color: #63707b;
  border: 1px solid rgba(223, 232, 236, 0.95);
  background: rgba(255, 255, 255, 0.7);
}

.definition-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(226, 240, 238, 0.86)),
    var(--panel-strong);
}

.definition-card::before {
  content: "</>";
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(36, 109, 114, 0.12);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 82px;
  font-weight: 800;
}

.card-label,
.section-kicker {
  color: var(--gold);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.definition-card p {
  position: relative;
  margin: 18px 0 0;
  color: #455868;
  font-size: 17px;
  line-height: 1.8;
}

.learning {
  margin-top: 28px;
  padding: 30px;
  border-radius: 32px;
}

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

.section-head h2,
.path h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-kicker {
  margin: 0 0 8px;
}

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

.learn-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(223, 232, 236, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.learn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 109, 114, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.card-index {
  color: rgba(36, 109, 114, 0.48);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px;
  font-weight: 800;
}

.learn-card h3 {
  margin: 44px 0 10px;
  color: #203141;
  font-size: 21px;
  line-height: 1.3;
}

.learn-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.path {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
  padding: 28px 30px;
  border-radius: 28px;
}

.path ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.path li {
  position: relative;
  min-height: 50px;
  padding: 13px 14px 13px 48px;
  border: 1px solid rgba(223, 232, 236, 0.9);
  border-radius: 16px;
  color: #536272;
  background: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.55;
}

.path li::before {
  counter-increment: path;
  content: counter(path);
  position: absolute;
  left: 14px;
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
  font-weight: 800;
}

.doc {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 46px 20px 56px;
}

.doc-content {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(223, 232, 236, 0.9);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.doc-content h1 {
  margin: 0 0 34px;
  text-align: center;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 750;
}

.doc-content h2 {
  margin: 30px 0 12px;
  color: #2d3f51;
  font-size: 20px;
  line-height: 1.4;
}

.doc-content p {
  margin: 0 0 16px;
  color: #536170;
  font-size: 16px;
  line-height: 1.85;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 22px 20px 26px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 14px;
}

.footer-links a,
.beian-link {
  color: #687582;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.beian-link:hover {
  color: #34495e;
  text-decoration: underline;
}

.beian-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beian-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.footer p {
  margin: 10px 0 0;
  color: #7a8793;
  font-size: 13px;
}

@media (max-width: 900px) {
  .home {
    width: min(100% - 28px, 720px);
    padding-top: 34px;
  }

  .hero,
  .path {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .definition-card {
    min-height: auto;
  }

  .cards,
  .path ol {
    grid-template-columns: 1fr;
  }

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

  .learn-card h3 {
    margin-top: 26px;
  }
}

@media (max-width: 640px) {
  .home {
    width: calc(100% - 24px);
    padding: 20px 0 34px;
  }

  .hero-copy,
  .definition-card,
  .learning,
  .path,
  .doc-content {
    border-radius: 22px;
  }

  .hero-copy,
  .learning,
  .path {
    padding: 24px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button-primary,
  .status-pill {
    width: 100%;
  }

  .definition-card::before {
    font-size: 58px;
  }

  .doc {
    padding-top: 24px;
  }

  .doc-content h1 {
    font-size: 30px;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .section-head {
    display: block;
    margin-bottom: 18px;
  }

  .section-head h2 {
    margin-top: 8px;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 44px);
    line-height: 1.08;
  }

  .lead,
  .definition-card p {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .home {
    width: calc(100% - 20px);
  }

  .hero-copy,
  .learning,
  .path {
    padding: 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 32px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .lead,
  .definition-card p,
  .learn-card p,
  .path li {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .learn-card {
    padding: 22px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .title-line {
    display: block;
  }

  .hero h1 {
    overflow-wrap: normal;
  }
}

@media (max-width: 640px) {
  .lead,
  .definition-card p,
  .learn-card p,
  .path li {
    line-break: anywhere;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
}


@media (max-width: 640px) {
  .hero-copy,
  .definition-card,
  .learning,
  .path,
  .learn-card,
  .path li {
    max-width: 100%;
    overflow: hidden;
  }

  .lead,
  .definition-card p,
  .learn-card p,
  .path li {
    white-space: normal;
    hyphens: auto;
  }
}


@media (max-width: 640px) {
  .home {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero,
  .cards,
  .path ol {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-copy,
  .definition-card,
  .learning,
  .path {
    width: 100%;
  }
}
