:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #63706a;
  --line: #d8e0dc;
  --paper: #f7faf8;
  --panel: #ffffff;
  --accent: #0f7a5b;
  --accent-dark: #0a5e47;
  --gold: #b58523;
  --blue: #2e6f96;
  --danger: #a34e3f;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(23, 32, 27, 0.1);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.controls {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: end;
  min-height: 540px;
  padding: 72px 7vw 56px;
  background:
    linear-gradient(115deg, rgba(8, 84, 63, 0.86), rgba(23, 32, 27, 0.64)),
    url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1800&q=80")
      center / cover;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: #fff;
  color: var(--accent-dark);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.metric {
  display: block;
  font-size: 32px;
  font-weight: 900;
}

.metric-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.toolbar,
.section-band,
.playbook,
.compare-section {
  padding: 52px 7vw 24px;
}

.compare-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
  background: #edf3f0;
}

.compare-copy {
  position: sticky;
  top: 92px;
}

.dark {
  color: var(--accent-dark);
}

.compare-copy h2 {
  max-width: 560px;
  font-size: 34px;
  line-height: 1.18;
}

.compare-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.compare-tool {
  display: grid;
  gap: 14px;
}

.compare-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 122, 91, 0.14);
}

.compare-submit {
  min-height: 42px;
  padding: 0 18px;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-picks button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.quick-picks button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.compare-result {
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 32px rgba(23, 32, 27, 0.06);
}

.empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.result-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.result-head h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.result-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff8e9;
  color: #5d4a22;
  font-size: 14px;
}

.ai-answer {
  display: grid;
  gap: 14px;
}

.ai-verdict {
  padding: 16px;
  border: 1px solid rgba(15, 122, 91, 0.24);
  border-radius: 8px;
  background: #effaf5;
}

.ai-verdict h4,
.ai-section h4,
.ai-product h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.ai-verdict p,
.ai-section p,
.ai-product p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-product,
.ai-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.ai-section ul,
.ai-product ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.ai-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-pill-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f6f1;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.source-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.source-list h4 {
  margin: 0 0 10px;
}

.source-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.source-list li {
  color: var(--muted);
  line-height: 1.55;
}

.source-list a {
  display: block;
  color: var(--accent-dark);
  font-weight: 900;
}

.source-list span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

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

.compare-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.compare-summary h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.compare-summary p,
.compare-summary li {
  color: var(--muted);
  line-height: 1.65;
}

.compare-summary ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.score-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.score-table th {
  background: #eef6f2;
  font-size: 13px;
}

.score-table tr:last-child th,
.score-table tr:last-child td {
  border-bottom: 0;
}

.buyer-note {
  margin-top: 16px;
  padding: 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8e9;
  color: #5d4a22;
  line-height: 1.7;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.toolbar p,
.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.controls {
  flex-wrap: wrap;
  gap: 12px;
}

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

select {
  min-width: 150px;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 7vw 48px;
}

.product-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(23, 32, 27, 0.05);
}

.product-media {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #edf3f0;
  aspect-ratio: 4 / 3;
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-media:hover img {
  transform: scale(1.03);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.intent {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.product-card p,
.product-card li {
  color: var(--muted);
  line-height: 1.65;
}

.product-card ul,
.article-column ul,
.article-shell ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price {
  font-size: 22px;
  font-weight: 900;
}

.affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.affiliate:hover {
  background: var(--accent-dark);
}

.article-layout,
.timeline,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.article-column,
.timeline article,
.guide-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.article-column h3,
.timeline h3 {
  margin-bottom: 12px;
}

.article-column li {
  line-height: 1.7;
}

.guides-section {
  background: #f1f6f3;
}

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

.section-band,
.product-grid,
.compare-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

.guide-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.guide-card h3 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.35;
}

.guide-card h3 a:hover,
.text-link:hover {
  color: var(--accent-dark);
}

.guide-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
}

.article-page {
  padding: 42px 7vw 20px;
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 32px rgba(23, 32, 27, 0.06);
}

.article-shell h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-lead {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.article-shell h2 {
  margin-top: 30px;
  font-size: 25px;
}

.article-shell p,
.article-shell li {
  color: var(--muted);
  line-height: 1.85;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf9;
}

.article-cta p {
  margin: 6px 0 0;
}

.article-media-block {
  display: grid;
  gap: 14px;
  margin: 24px 0 8px;
}

.article-video {
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #101815;
  aspect-ratio: 16 / 9;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.media-grid img {
  width: 100%;
  display: block;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #edf3f0;
}

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

.timeline span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  padding: 28px 7vw 36px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  white-space: nowrap;
}

.footer-links a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 2px;
  }

  .hero,
  .compare-section,
  .toolbar,
  .article-layout,
  .timeline,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 22px 36px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 36px 22px 20px;
  }

  .compare-section {
    padding: 36px 22px 28px;
  }

  .compare-copy {
    position: static;
  }

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

  .controls {
    align-items: stretch;
  }

  .controls label,
  select {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 0 22px 36px;
  }

  .section-band,
  .playbook,
  .article-page,
  .footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .article-shell {
    padding: 22px;
  }

  .article-cta {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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