:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #687583;
  --line: #dce4ea;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --brand: #0f766e;
  --brand-dark: #0b4f4b;
  --gold: #b8873b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef3f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.pill,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: #2b3a45;
  background: #f1f5f7;
}

.nav a:hover,
.pill:hover,
.back-link:hover {
  background: #e2ebef;
}

.hero {
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 64px clamp(20px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 42, 45, 0.88), rgba(10, 42, 45, 0.55), rgba(10, 42, 45, 0.16)),
    url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-inner {
  width: min(760px, 100%);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #e5d3ae;
  font-size: 15px;
}

.eyebrow.dark {
  margin-bottom: 10px;
  color: var(--brand);
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.08;
  font-weight: 800;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  margin-top: 28px;
}

.pill.primary {
  color: #fff;
  background: var(--brand);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

section + section {
  margin-top: 56px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

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

.card {
  min-width: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(32, 47, 59, 0.06);
}

.card h3 {
  margin: 0;
  font-size: 21px;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.tag {
  padding: 4px 9px;
  color: var(--brand-dark);
  background: #e0f2ef;
  border-radius: 999px;
  font-size: 12px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0e3b3d, #1f6f68);
  border-radius: 8px;
}

.feature-copy h2 {
  margin: 0;
  font-size: 34px;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
}

.feature-copy dt {
  font-size: 32px;
  font-weight: 800;
}

.feature-copy dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.feature-image {
  min-height: 320px;
  border-radius: 8px;
  background: url("https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.tool-list,
.rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li,
.rule-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.tool-list span,
.rule-list span {
  color: var(--muted);
  text-align: right;
}

.article-shell {
  width: min(880px, calc(100% - 40px));
}

.article-page {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-page h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
}

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

.article-cover {
  width: 100%;
  max-height: 420px;
  margin: 20px 0;
  object-fit: cover;
  border-radius: 8px;
}

.article-content {
  font-size: 17px;
  white-space: normal;
}

.download-card {
  display: grid;
  gap: 4px;
  margin-top: 28px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(32, 47, 59, 0.06);
}

.contact-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.contact-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.contact-copy a {
  color: var(--brand-dark);
  font-weight: 700;
}

.contact-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.contact-card img,
.qr-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  background: #fff;
}

.contact-card img {
  display: block;
  object-fit: contain;
  padding: 8px;
}

.qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 28px 20px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.icp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  color: var(--muted);
}

.icp-link:hover {
  color: var(--brand-dark);
}

.icp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 520px;
  }

  .grid.three,
  .grid.two,
  .feature-band,
  .contact-band,
  .feature-copy dl {
    grid-template-columns: 1fr;
  }

  .tool-list li,
  .rule-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-list span,
  .rule-list span {
    text-align: left;
  }
}
