:root {
  --ink: #141b20;
  --muted: #5f6a70;
  --line: #d9e0df;
  --surface: #ffffff;
  --soft: #f3f7f5;
  --brand: #0b6b52;
  --brand-dark: #084e3d;
  --grok: #1f2933;
  --accent: #a45b10;
  --danger: #a83328;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}
.nav-shell, .page-shell, .footer-shell {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
}
.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: 17px; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav .nav-cta { color: #fff; background: var(--brand); padding: 8px 12px; border-radius: 6px; }
.site-nav .nav-cta:hover { color: #fff; background: var(--brand-dark); }

.page-shell { padding: 42px 0 78px; }
.content { min-width: 0; }
.content > :first-child { margin-top: 0; }
h1, h2, h3 { color: #10171b; line-height: 1.3; letter-spacing: 0; }
h1 { margin: 0 0 18px; font-size: 2.35rem; }
h2 { margin: 50px 0 16px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 1.55rem; }
h3 { margin: 28px 0 9px; font-size: 1.17rem; }
p, ul, ol, table, blockquote { margin: 0 0 20px; }
li + li { margin-top: 7px; }
.eyebrow { margin-bottom: 8px; color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.lead { max-width: 800px; color: #334148; font-size: 1.12rem; }
.meta { color: var(--muted); font-size: .92rem; }

.intro-band { padding: 10px 0 6px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px; }
.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button-link.primary { color: #fff; border-color: var(--brand); background: var(--brand); }
.button-link.primary:hover { color: #fff; background: var(--brand-dark); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 26px 0; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.product-media { aspect-ratio: 16 / 8.5; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px; }
.product-card h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 1.32rem; }
.product-card p { color: #3f4c52; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 20px; }
.tag-list span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: #405047; background: var(--soft); font-size: .82rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.intent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.intent-group { padding: 18px; border-left: 4px solid var(--brand); background: var(--soft); }
.intent-group.grok { border-left-color: var(--grok); }
.intent-group h3 { margin-top: 0; }
.intent-group ul { margin-bottom: 0; padding-left: 21px; }

.notice { padding: 14px 18px; border-left: 4px solid var(--accent); background: #fff8ed; }
.notice.warning { border-left-color: var(--danger); background: #fff5f4; }
table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
th, td { min-width: 150px; padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }
code { padding: 2px 5px; border-radius: 4px; background: #eef2f1; font-size: .92em; }

.search-panel { padding: 18px; border: 1px solid var(--line); background: var(--soft); }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-form input {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #aebbb7;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.search-form button { min-height: 46px; padding: 9px 18px; border: 0; border-radius: 5px; color: #fff; background: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.search-status { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.search-results { display: grid; gap: 12px; margin-top: 22px; }
.search-result { padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; }
.search-result h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 1.1rem; }
.search-result p { margin-bottom: 7px; color: #3e4a50; }
.result-product { color: var(--brand); font-size: .8rem; font-weight: 800; text-transform: uppercase; }

.faq-list details { padding: 14px 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list details p { margin: 10px 0 0; color: #39464c; }

.site-footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer-shell { padding: 32px 0; color: var(--muted); font-size: .92rem; }
.footer-title { margin-bottom: 4px; color: var(--ink); font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.footer-note { max-width: 900px; margin-bottom: 0; }

@media (max-width: 900px) {
  .nav-shell { align-items: flex-start; flex-direction: column; padding: 12px 0; gap: 10px; }
  .site-header { position: static; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 2px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .page-shell { padding-top: 30px; }
  h1 { font-size: 1.82rem; }
  h2 { font-size: 1.35rem; }
  .product-grid, .intent-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .search-form button { width: 100%; }
  th, td { min-width: 130px; }
}
