:root {
  --bg: #f4efe5;
  --panel: rgba(255, 250, 240, 0.78);
  --panel-strong: rgba(255, 248, 234, 0.95);
  --ink: #1f312a;
  --muted: #55685f;
  --line: rgba(31, 49, 42, 0.16);
  --accent: #0d9b85;
  --accent-deep: #0d6c5e;
  --sand: #f0d7a8;
  --sand-deep: #d6b47b;
  --shadow: 0 30px 90px rgba(28, 48, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(13, 155, 133, 0.18), transparent 28%),
    radial-gradient(circle at left 10% top 40%, rgba(240, 215, 168, 0.38), transparent 24%),
    linear-gradient(180deg, #f7f2e8 0%, #f1ebdf 100%);
  color: var(--ink);
  font-family:
    "Avenir Next",
    "Helvetica Neue",
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(13, 155, 133, 0.18);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 246, 237, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fcf7ef;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--sand-deep));
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fef9ef;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  box-shadow: 0 16px 30px rgba(13, 108, 94, 0.22);
}

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

.button:focus-visible,
.nav a:focus-visible,
.planner-controls input:focus-visible,
.planner-controls select:focus-visible,
.faq-list summary:focus-visible {
  outline: 2px solid rgba(13, 108, 94, 0.45);
  outline-offset: 3px;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 251, 242, 0.64);
  color: var(--ink);
  box-shadow: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.72);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lang-link:hover,
.lang-link:focus-visible {
  transform: translateY(-1px);
  color: var(--ink);
}

.lang-link-active {
  background: linear-gradient(135deg, rgba(13, 155, 133, 0.16), rgba(240, 215, 168, 0.48));
  color: var(--ink);
}

.button-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 72px 0 44px;
}

.hero-copy,
.hero-panel,
.page-hero,
.kpi-strip,
.section,
.footer {
  animation: rise-in 420ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    "Baskerville",
    "Songti SC",
    "STSong",
    serif;
  font-weight: 700;
  line-height: 0.96;
}

html[lang^="zh"] body {
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 {
  font-family:
    "Songti SC",
    "STSong",
    "Source Han Serif SC",
    "Noto Serif CJK SC",
    serif;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 8vw, 6.2rem);
}

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

h3 {
  font-size: 1.5rem;
}

.hero-text,
.section-head p,
.mode-card p,
.faq-list p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.page-hero {
  max-width: 76ch;
  padding: 62px 0 12px;
}

.page-hero h1 {
  max-width: 11ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-proof li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
}

.hero-panel,
.page-card,
.resource-card,
.stat-card,
.mode-card,
.timeline-card,
.planner,
.install-card,
.example-grid article,
.faq-list details,
.footer {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  overflow: hidden;
}

.terminal-window {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(31, 49, 42, 0.98), rgba(18, 28, 24, 0.98)),
    #18201d;
  color: #edf5ef;
}

.terminal-header {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
}

.terminal-header span {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(244, 239, 229, 0.45);
}

.terminal-window pre {
  margin: 0;
  padding: 14px 18px 24px;
  overflow-x: auto;
  font-family: "SFMono-Regular", "JetBrains Mono", monospace;
  line-height: 1.6;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.stat-card,
.mode-card,
.install-card,
.example-grid article,
.page-card,
.resource-card,
.timeline-card {
  padding: 22px;
}

.stat-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card strong {
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Book Antiqua",
    "Baskerville",
    "Songti SC",
    "STSong",
    serif;
  font-size: 1.36rem;
  line-height: 1.1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  margin-top: 92px;
}

.section-tight {
  margin-top: 34px;
}

.section-head {
  max-width: 60ch;
}

.section-head p {
  margin: 14px 0 0;
}

.comparison-grid,
.feature-grid,
.resource-grid,
.timeline-grid,
.use-case-grid,
.install-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

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

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

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

.resource-grid,
.use-case-grid,
.example-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-card,
.resource-card,
.example-grid article,
.timeline-card,
.install-card {
  position: relative;
  overflow: hidden;
}

.page-card::before,
.resource-card::before,
.example-grid article::before,
.timeline-card::before,
.install-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(13, 155, 133, 0.85), rgba(240, 215, 168, 0.92));
}

.page-card h3,
.resource-card h3,
.timeline-card h3,
.example-grid h3,
.install-card h3,
.mode-card h3 {
  line-height: 1.04;
}

.page-card p,
.resource-card p,
.timeline-card p,
.example-grid p,
.install-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.mode-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 155, 133, 0.12);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-card code {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-deep);
  font-family: "SFMono-Regular", "JetBrains Mono", monospace;
}

.mode-card p {
  margin: 14px 0 0;
}

.section-accent {
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(13, 155, 133, 0.12), transparent 30%),
    rgba(255, 251, 242, 0.7);
  border: 1px solid rgba(13, 108, 94, 0.12);
}

.planner {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
  padding: 22px;
}

.planner-controls {
  display: grid;
  gap: 10px;
}

.planner-controls label,
.planner-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.planner-controls input,
.planner-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  color: var(--ink);
}

.planner-output {
  display: grid;
  gap: 14px;
}

.planner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.code-block {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(31, 49, 42, 0.1);
  border-radius: 18px;
  background: rgba(31, 49, 42, 0.96);
  color: #eef5ef;
  font-family: "SFMono-Regular", "JetBrains Mono", monospace;
  font-size: 0.94rem;
  line-height: 1.65;
}

.command-block {
  background: rgba(13, 108, 94, 0.94);
}

.section-link {
  margin: 18px 0 0;
}

.section-link a {
  color: var(--accent-deep);
  font-weight: 600;
}

.section-link a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.timeline-card {
  min-height: 220px;
}

.timeline-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 155, 133, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.timeline-card h3 {
  margin-top: 16px;
}

.resource-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

a.resource-card:hover,
a.resource-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(13, 108, 94, 0.28);
  box-shadow: 0 24px 60px rgba(28, 48, 39, 0.14);
}

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

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.65;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--sand-deep));
  box-shadow: 0 0 0 4px rgba(13, 155, 133, 0.12);
}

.narrative {
  max-width: 70ch;
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.narrative p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 242, 0.72);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: rgba(13, 155, 133, 0.1);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 49, 42, 0.08);
  vertical-align: top;
}

tbody td {
  color: var(--muted);
  line-height: 1.6;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(13, 155, 133, 0.12), rgba(240, 215, 168, 0.26)),
    rgba(255, 251, 242, 0.72);
  border: 1px solid rgba(13, 108, 94, 0.14);
}

.cta-band p {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.72;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 14px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
}

.footer {
  margin-top: 96px;
  padding: 22px;
}

.footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 18px;
  justify-content: end;
  color: var(--muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .timeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .planner,
  .comparison-grid,
  .feature-grid,
  .resource-grid,
  .timeline-grid,
  .use-case-grid,
  .install-grid,
  .kpi-strip,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .footer-links {
    justify-content: start;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  h1 {
    max-width: none;
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .page-hero h1 {
    max-width: none;
  }

  .planner-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
  }

  .topbar {
    margin-top: 10px;
    padding: 12px 14px;
  }

  .hero {
    padding-top: 42px;
  }

  .section {
    margin-top: 68px;
  }

  .section-accent {
    padding: 18px;
  }

  .cta-band,
  .planner,
  .page-card,
  .resource-card,
  .stat-card,
  .mode-card,
  .timeline-card,
  .install-card,
  .example-grid article,
  .faq-list details,
  .footer {
    border-radius: 20px;
  }

  th,
  td {
    padding: 14px;
  }
}
