/* HerbChina Extracts — design system */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --green-900: #12291b;
  --green-800: #1d4a33;
  --green-700: #2e7d4f;
  --green-100: #e7f2ea;
  --cream: #faf8f2;
  --sand: #f1ece1;
  --ink: #1e2420;
  --muted: #5f6f63;
  --line: #e4e0d3;
  --gold: #c9a24b;
  --radius: 16px;
  --shadow: 0 18px 45px -18px rgba(18, 41, 27, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px;
}
.brand-text { line-height: 1.25; }
.brand-text strong { display: block; font-size: 16.5px; }
.brand-text span { font-size: 12px; color: var(--muted); letter-spacing: .4px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a.nav-link { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--green-800); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 30px; border-radius: 999px; border: 2px solid var(--green-700);
  background: var(--green-700); color: #fff; transition: all .2s ease; cursor: pointer;
}
.btn:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-800); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); border-color: var(--green-100); }
.btn-small { padding: 10px 22px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: 130px 0 110px;
  background: var(--green-900);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,25,16,.82) 20%, rgba(10,25,16,.35) 60%, rgba(10,25,16,.15) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 22px; color: #fff; }
.hero p.lead { font-size: 18.5px; color: rgba(255,255,255,.85); margin-bottom: 36px; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { padding: 84px 0 70px; background: var(--green-900); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .14;
  background: radial-gradient(600px 300px at 80% 20%, var(--green-700), transparent),
              radial-gradient(500px 260px at 15% 85%, var(--gold), transparent);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 640px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 640px; margin-bottom: 8px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* facts band */
.facts-band { background: var(--green-900); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 18px; text-align: center; }
.fact + .fact { border-left: 1px solid rgba(255,255,255,.14); }
.fact strong { display: block; font-family: 'Fraunces', serif; font-size: 27px; color: #fff; margin-bottom: 4px; }
.fact span { font-size: 13.5px; color: rgba(255,255,255,.65); }

/* category cards */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 420px; display: flex; align-items: flex-end;
  text-decoration: none; color: #fff; box-shadow: var(--shadow);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8,20,12,.85) 100%); }
.cat-body { position: relative; z-index: 1; padding: 34px; }
.cat-body h3 { font-size: 27px; margin-bottom: 10px; color: #fff; }
.cat-body p { color: rgba(255,255,255,.85); font-size: 15.5px; margin-bottom: 16px; }
.cat-link { font-weight: 700; color: var(--gold); font-size: 15px; }

/* value props */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.value-card .icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.value-card h3 { font-size: 19px; margin-bottom: 10px; font-family: 'Inter', sans-serif; font-weight: 700; }
.value-card p { color: var(--muted); font-size: 14.5px; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 20px; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }
.split .btn { margin-top: 12px; }
.check-list { list-style: none; margin: 20px 0; }
.check-list li { padding: 10px 0 10px 34px; position: relative; color: var(--ink); font-size: 15.5px; border-bottom: 1px dashed var(--line); }
.check-list li::before { content: '✓'; position: absolute; left: 4px; color: var(--green-700); font-weight: 700; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-size: 14.5px; font-weight: 500; color: var(--green-800);
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step-num {
  font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--green-700);
  background: var(--green-100); display: inline-block; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 700; }
.step p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; text-align: left; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--green-700); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-900)); color: #fff; border-radius: 24px; padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 240px at 85% 15%, rgba(201,162,75,.25), transparent); }
.cta-band h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 30px; position: relative; }
.cta-band .btn { position: relative; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; margin-top: 44px; align-items: start; }
.contact-card { background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 38px 34px; }
.contact-card h3 { color: #fff; font-size: 22px; margin-bottom: 24px; }
.contact-row { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-row:first-of-type { border-top: 0; }
.contact-label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.contact-value { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
a.contact-value:hover { color: var(--gold); }
.contact-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 22px; margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 15px; font-size: 15px; font-family: inherit; background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* directory filter (HC-04): client-side find tool, links stay in DOM */
.dir-filter { margin: 22px 0 6px; max-width: 520px; }
.dir-filter label { display: block; font-weight: 600; margin-bottom: 8px; }
.dir-filter input[type="search"] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 15px; font-size: 16px; font-family: inherit; background: var(--cream);
}
.dir-filter input[type="search"]:focus { outline: none; border-color: var(--green-700); background: #fff; }
.dir-count { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 20px; }

/* footer */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-family: 'Inter', sans-serif; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* product pages */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; text-decoration: none; color: inherit; display: block; }
.product-card:hover { border-color: var(--green-700); }
.product-card h3 { font-size: 18px; margin-bottom: 4px; }
.product-card .latin { font-style: italic; color: var(--muted); font-size: 14px; }
.product-card p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.product-card .go { color: var(--green-700); font-weight: 700; font-size: 14px; margin-top: 12px; display: inline-block; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact { border-top: 1px solid rgba(255,255,255,.14); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .split, .contact-grid, .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .product-grid, .app-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 10px 24px 20px; border-bottom: 1px solid var(--line); gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 13px 0; border-top: 1px solid var(--line); }
  .main-nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .values-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 90px 0 70px; }
  .cta-band { padding: 44px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- spec tables ---------- */
.table-scroll { overflow-x: auto; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 600px; background: #fff; }
.spec-table th {
  background: var(--green-900); color: #fff; text-align: left;
  padding: 14px 20px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.2px;
}
.spec-table td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tbody tr:first-child td { border-top: 0; }
.spec-table td:first-child { font-weight: 600; color: var(--green-800); white-space: nowrap; }
.spec-table td:last-child { color: var(--muted); }
.note-box {
  background: var(--green-100); border-left: 4px solid var(--green-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px; margin-top: 26px; font-size: 15px; color: var(--green-800);
}
.btn-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- articles & resources ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article .article-meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.article .lead { font-size: 19px; color: var(--ink); margin-bottom: 22px; }
.article h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 46px 0 16px; }
.article h3 { font-size: 19px; margin: 30px 0 12px; font-family: 'Inter', sans-serif; font-weight: 700; }
.article p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.article ul, .article ol { margin: 0 0 22px 22px; color: var(--muted); font-size: 16px; }
.article li { margin-bottom: 10px; }
.article li strong { color: var(--ink); }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.resource-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 32px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-700); }
.resource-card h3 { font-size: 23px; margin: 12px 0 10px; }
.resource-card p { color: var(--muted); font-size: 15px; }
.resource-card .cat-link { display: inline-block; margin-top: 14px; }

/* ---------- inquiry ready panel ---------- */
.inquiry-ready { margin-top: 26px; background: var(--green-100); border-radius: var(--radius); padding: 26px; }
.inquiry-ready h4 { margin-bottom: 12px; font-family: 'Inter', sans-serif; font-size: 17px; }
.inquiry-ready textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 15px; font-family: inherit; font-size: 14px; background: #fff; resize: vertical;
}
.inquiry-ready-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .resource-grid { grid-template-columns: 1fr; }
}


/* ---------- product photo (illustrative image) ---------- */
.product-photo { max-width: 640px; margin: 28px auto 0; text-align: center; }
.product-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.product-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* 2026-09-29 性能补丁：枢纽页 402 卡片渐进渲染（内容/DOM/URL 零变更） */
.product-card { content-visibility: auto; contain-intrinsic-size: auto 120px; }

/* 2026-09-29 相关提取物区块（主题簇内链第一批） */
.related-extracts { padding-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-decoration: none; color: inherit; display: block; content-visibility: auto; contain-intrinsic-size: auto 110px; }
.related-card:hover { border-color: var(--green-700); }
.related-card h3 { font-size: 16px; margin-bottom: 6px; }
.related-card .go { font-size: 14px; color: var(--green-700); }
