:root {
  --bg: #fff8f2;
  --bg-alt: #f8fbff;
  --ink: #2d3650;
  --ink-soft: #6d768f;
  --line: #34405c;
  --surface: #ffffff;
  --green: #2ecc61;
  --green-dark: #1fa652;
  --blue: #bfe6fb;
  --pink: #ffc2bd;
  --mint: #a8f58b;
  --lavender: #d8d4ff;
  --yellow: #ffe77a;
  --shadow-offset: 6px 6px 0 0 #34405c;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(191, 230, 251, 0.35), transparent 18%),
    linear-gradient(180deg, #fff8f2 0%, #fffaf6 44%, #f6fbff 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

.hero,
.section,
.footer {
  padding-left: 24px;
  padding-right: 24px;
}

.nav,
.hero-grid,
.section > *,
.footer {
  max-width: var(--max);
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-offset);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--pink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.footer a:hover {
  background: rgba(191, 230, 251, 0.4);
  color: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  padding-top: 54px;
  padding-bottom: 42px;
  align-items: center;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  margin: 0 0 16px;
  border-radius: 999px;
  background: #a7f77b;
  color: #1f2a44;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "PingFang SC", sans-serif;
}

h1 {
  font-size: clamp(40px, 5.2vw, 70px);
  max-width: 9.5ch;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 3vw, 42px);
  text-align: center;
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 17px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-pills span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 0 var(--line);
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 3px solid var(--line);
  font-weight: 800;
  box-shadow: 4px 4px 0 0 var(--line);
  transition: transform 0.18s ease;
}

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

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: var(--blue);
}

.card {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-offset);
}

.hero-visual {
  padding: 18px;
}

.hero-visual img {
  border-radius: 14px;
}

.hero-visual figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-panel {
  padding: 22px;
}

.hero-panel-head,
.quote-user,
.priority-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-panel-head p,
.cta-text {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.hero-metrics div {
  padding: 14px;
  border: 2px solid rgba(52, 64, 92, 0.12);
  border-radius: 14px;
  background: #fbfdff;
}

.hero-metrics span,
.progress-label span,
.quote-user span:last-child {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-metrics strong,
.progress-label strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.progress-row {
  margin-top: 18px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #eaf1f8;
  border: 2px solid var(--line);
  overflow: hidden;
}

.progress-fill {
  width: 76%;
  height: 100%;
  background: var(--green);
}

.full {
  width: 100%;
  margin-top: 18px;
}

.section {
  padding-top: 48px;
  padding-bottom: 18px;
}

.soft-section {
  background: linear-gradient(180deg, #fff8f2 0%, #fffdfa 100%);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.stats,
.overview-grid,
.component-grid,
.file-grid {
  display: grid;
  gap: 18px;
}

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

.stat {
  padding: 22px;
}

.stat .value {
  display: block;
  font-size: 28px;
  font-weight: 900;
}

.stat .label {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

#overview .stats {
  margin-bottom: 36px;
}

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

.prose {
  padding: 24px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  line-height: 1.8;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 18px;
}

.warning {
  background: linear-gradient(180deg, #fff3eb 0%, #ffffff 100%);
}

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

.feature-grid,
.benefit-grid,
.priority-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
}

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

.benefit-grid,
.priority-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.benefit-card,
.priority-card,
.quote-card,
.cta-card {
  padding: 24px;
}

.mini-card h3,
.benefit-card h3,
.priority-card h3,
.quote-card h3 {
  margin: 14px 0 10px;
}

.mini-card p,
.benefit-card p,
.priority-card p,
.quote-card p,
.cta-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  border: 2px solid var(--line);
  font-weight: 900;
  box-shadow: 3px 3px 0 0 rgba(52, 64, 92, 0.18);
}

.icon-box.pink {
  background: var(--pink);
}

.icon-box.blue {
  background: var(--blue);
}

.icon-box.green {
  background: var(--mint);
}

.icon-box.lavender {
  background: var(--lavender);
}

.score-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  background: #f4fff7;
}

.stars {
  color: #ffbe1a;
  letter-spacing: 0.2em;
  font-size: 18px;
  margin-bottom: 14px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--line);
  font-weight: 900;
}

.avatar.pink {
  background: var(--pink);
}

.avatar.blue {
  background: var(--blue);
}

.avatar.green {
  background: var(--mint);
}

.component-card {
  padding: 24px;
}

.component-card:nth-child(1) .section-mini,
.component-card:nth-child(4) .section-mini {
  background: var(--pink);
}

.component-card:nth-child(2) .section-mini,
.component-card:nth-child(5) .section-mini {
  background: var(--blue);
}

.component-card:nth-child(3) .section-mini,
.component-card:nth-child(6) .section-mini {
  background: var(--mint);
}

.section-mini {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
}

.component-card h3 {
  margin-bottom: 12px;
}

.component-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  background: #f4fff7;
  font-size: 13px;
  font-weight: 800;
}

.toolbar,
.table-card {
  padding: 18px;
}

.toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search {
  flex: 1 1 280px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.search input,
.search select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 3px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: 4px 4px 0 0 rgba(52, 64, 92, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  text-align: left;
  padding: 0 0 14px;
  border-bottom: 2px solid rgba(52, 64, 92, 0.18);
  color: var(--ink);
}

tbody td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(52, 64, 92, 0.1);
  vertical-align: top;
}

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

.muted,
code {
  color: var(--ink-soft);
}

code {
  padding: 0.15em 0.45em;
  border-radius: 8px;
  background: #f5f7fb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.95em;
}

tbody td a {
  color: var(--green-dark);
  font-weight: 800;
}

.section-detail .table-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

.formula {
  display: inline-block;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 3px solid var(--line);
  background: #f5f9ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
}

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

.file-card {
  padding: 22px;
  min-width: 0;
}

.file-card h3 {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.file-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.file-card .file-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 28px auto 0;
  padding-top: 26px;
  padding-bottom: 44px;
  color: var(--ink-soft);
  font-size: 14px;
}

.cta-section {
  padding-bottom: 42px;
}

.cta-card {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.cta-card .eyebrow {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .hero-grid,
  .overview-grid,
  .component-grid,
  .file-grid,
  .stats,
  .feature-grid,
  .benefit-grid,
  .priority-grid,
  .testimonial-grid,
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .nav,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .overview-grid,
  .component-grid,
  .file-grid,
  .stats,
  .feature-grid,
  .benefit-grid,
  .priority-grid,
  .testimonial-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .detail-extras {
    grid-template-columns: 1fr;
  }

  h1,
  h2 {
    max-width: none;
    text-align: left;
  }

  .section-heading .eyebrow {
    margin-left: 0;
    margin-right: 0;
  }

  .hero,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .table-card {
    overflow-x: auto;
  }
}
