:root {
  color-scheme: light;
  --ink: #172322;
  --muted: #5e6d68;
  --line: #dce5df;
  --paper: #ffffff;
  --wash: #f4f8f5;
  --soft: #edf5ef;
  --teal: #1d6f68;
  --green: #4f9a72;
  --yellow: #f3c744;
  --orange: #d97842;
  --blue: #315f8c;
  --shadow: 0 18px 44px rgba(23, 35, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 229, 223, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.language-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.language-switch button.active {
  color: #fff;
  background: var(--teal);
}

.nav-cta,
.button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
}

.button.secondary {
  color: var(--ink);
  background: #e4ece7;
}

.button.ghost {
  color: var(--teal);
  background: transparent;
  border: 1px solid var(--line);
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 42px 0 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.lede {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.section {
  padding: 42px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card,
.tool-panel,
.article,
.ad-slot,
.toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.card {
  min-height: 180px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.card p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 8px;
  padding: 4px 9px;
  color: #30544c;
  background: var(--soft);
  font-size: 13px;
}

.tool-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(79, 154, 114, 0.18);
  border-color: var(--green);
}

.result-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.result {
  min-height: 94px;
  padding: 14px;
  border-radius: 8px;
  background: #f7faf8;
}

.result span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.result strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.progress-track {
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ece7;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transition: width 180ms ease;
}

.ad-slot {
  min-height: 112px;
  margin: 26px 0;
  padding: 14px;
  display: grid;
  place-items: center;
  color: #7a8782;
  background: repeating-linear-gradient(45deg, #f7faf8, #f7faf8 10px, #eff5f1 10px, #eff5f1 20px);
  font-size: 13px;
  text-align: center;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
}

.article {
  padding: 30px;
}

.article h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.article h2 {
  margin-top: 34px;
  font-size: 26px;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article li {
  margin: 7px 0;
}

.toc {
  position: sticky;
  top: 88px;
  padding: 16px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.template-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.template-table th,
.template-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.template-table th {
  background: var(--soft);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

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

.footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  margin-left: 14px;
}

@media (max-width: 920px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .content-layout,
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-media {
    order: -1;
  }

  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .article {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer a {
    margin: 0 14px 0 0;
  }
}
