/* 孕妇孕期营养补品大全 · 首页样式
   视觉基准：03-ui/home-ui-desktop.png（1440×2160）
   分区预算：header 88 / hero 457 / nutrients 335 / categories 240 / timing 200
            tonics 180 / picks 200 / faq 130 / scope 135 / footer 195 = 2160
*/

:root {
  /* 底与面 */
  --paper: #faf4f3;
  --paper-header: #faf2f2;
  --hero-a: #fbeae3;
  --hero-b: #f9dfd7;
  --surface: #fcece4;
  --scope-bg: #fce4e4;
  /* 强调 */
  --accent: #e46c74;
  --accent-deep: #c2454f;
  --accent-soft: #f3c9c6;
  /* 墨 */
  --ink: #362728;
  --ink-soft: #4d4041;
  --muted: #6a5a58;
  --muted-2: #8a7a76;
  /* 线 */
  --line: #eed9d3;
  --line-strong: #e2c8c1;
  /* 反白 */
  --footer-bg: #cc7c7c;
  --footer-ink: #fdf6f2;
  --footer-ink-soft: #f6e2dd;
  /* 字体 */
  --font-serif: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --font-sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  /* 栅格 */
  --wrap: 1344px;
  --gutter: 48px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

p { margin: 0; }

ol, ul, dl, dd, dt { margin: 0; padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 88px;
  background: var(--paper-header);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 1px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-link {
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-link:hover { color: var(--accent-deep); }
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}
.all-link {
  font-size: 13.5px;
  color: var(--accent-deep);
  white-space: nowrap;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
}
.all-link:hover { border-bottom-color: var(--accent-deep); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13px;
  padding: 7px 11px;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
  position: relative;
}
.menu-bars::before { position: absolute; top: -4px; }
.menu-bars::after { position: absolute; top: 4px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 457px;
  background: linear-gradient(180deg, var(--hero-a) 0%, var(--hero-a) 62%, var(--hero-b) 100%);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  height: 100%;
}
.hero-copy {
  max-width: 772px;
  padding-top: 20px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 39px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.005em;
  max-width: 720px;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 700px;
  margin-bottom: 8px;
}
.hero-body {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 700px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  font-size: 14.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}
.stat dt {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.stat dd {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--accent-deep);
  margin-right: 4px;
}

.hero-art {
  position: absolute;
  top: 0;
  right: calc(-1 * var(--gutter));
  width: min(43.5%, 584px);
  height: 452px;
  margin: 0;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

/* --------------------------------------------------------------- section */
.section {
  position: relative;
  background: var(--paper);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.kicker {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.sec-head h2 {
  font-size: 22px;
  letter-spacing: 0.01em;
}
.sec-note {
  max-width: 560px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  text-align: right;
}

.table-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 9px;
  max-width: 1180px;
}

/* --------------------------------------------------------- nutrients 335 */
.section--nutrients {
  padding: 19px 0 20px;
}
.section--nutrients .sec-head { margin-bottom: 12px; }

.nutrient-table {
  font-size: 12.5px;
  line-height: 1.55;
  border-top: 1px solid var(--line-strong);
}
.nutrient-table th,
.nutrient-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 16px 9px 0;
  border-bottom: 1px solid var(--line);
}
.nutrient-table thead th {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  padding-top: 7px;
  padding-bottom: 7px;
}
.nutrient-table tbody th {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.nutrient-table td { color: var(--ink-soft); }
.nutrient-table .num {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 12.5px;
  color: var(--accent-deep);
}
.nutrient-table tbody tr:hover { background: rgba(252, 236, 228, 0.55); }

/* -------------------------------------------------------- categories 240 */
.section--categories {
  padding: 15px 0 16px;
}
.section--categories .sec-head { margin-bottom: 10px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.cat-card {
  border-bottom: 1px solid var(--line);
}
.cat-card + .cat-card { border-left: 1px solid var(--line); }
.cat-link-block {
  display: block;
  padding: 6px 9px 7px;
  height: 100%;
  transition: background 0.2s var(--ease);
}
.cat-card:hover .cat-link-block { background: rgba(252, 236, 228, 0.7); }
.cat-thumb {
  display: block;
  aspect-ratio: 3.3 / 1;
  overflow: hidden;
  margin-bottom: 5px;
  background: var(--surface);
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.cat-card:hover .cat-thumb img { transform: scale(1.03); }
.cat-num {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  line-height: 1.3;
}
.cat-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
}
.cat-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.2px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 3px;
  min-height: 31px;
}
.cat-count {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10px;
  color: var(--muted-2);
  line-height: 1.4;
}

/* ------------------------------------------------------------ timing 200 */
.section--timing {
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
}
.section--timing .sec-head { margin-bottom: 8px; }
.timing-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}
.timing-step {
  border-top: 2px solid var(--line-strong);
  padding-top: 7px;
}
.timing-step:first-child { border-top-color: var(--accent); }
.step-num {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 6px;
}
.timing-step h3 {
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.35;
}
.timing-step p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.timing-note {
  font-size: 11.2px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.6;
  padding-left: 12px;
  border-left: 2px solid var(--accent-soft);
}

/* ------------------------------------------------------------ tonics 180 */
.section--tonics {
  padding: 4px 0 4px;
  border-top: 1px solid var(--line);
}
.section--tonics .sec-head { margin-bottom: 4px; }
.tonic-table {
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid var(--line-strong);
}
.tonic-table th,
.tonic-table td {
  text-align: left;
  vertical-align: top;
  padding: 2px 16px 2px 0;
  border-bottom: 1px solid var(--line);
}
.tonic-table thead th {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  padding-top: 2px;
  padding-bottom: 2px;
}
.tonic-table tbody th {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.tonic-table td { color: var(--ink-soft); }
.section--tonics .table-note { margin-top: 5px; }

/* ------------------------------------------------------------- picks 200 */
.section--picks {
  padding: 9px 0 12px;
  border-top: 1px solid var(--line);
}
.section--picks .sec-head { margin-bottom: 6px; }
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 40px;
}
.pick {
  padding-top: 5px;
  border-top: 1px solid var(--line-strong);
}
.pick-num {
  display: block;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 3px;
  line-height: 1.3;
}
.pick h3 {
  font-size: 12.6px;
  line-height: 1.35;
  margin-bottom: 2px;
}
.pick h3 a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.pick h3 a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-soft); }
.pick p {
  font-size: 10.8px;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------- faq 130 */
.section--faq {
  padding: 18px 0 19px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, #fdf1ef 100%);
}
.section--faq .sec-head { margin-bottom: 10px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.faq-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 8px;
}
.faq-item summary {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -1px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 14px;
  color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.faq-item p {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 7px;
}

/* ------------------------------------------------------------- scope 135 */
.section--scope {
  padding: 15px 0 15px;
}
.scope-box {
  background: var(--scope-bg);
  border-radius: var(--radius);
  padding: 17px 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.scope-head h2 {
  font-size: 17px;
  line-height: 1.4;
}
.scope-list {
  display: grid;
  gap: 4px;
}
.scope-list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
}
.scope-list dt {
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}
.scope-list dd {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ footer 195 */
.site-footer {
  min-height: 195px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 24px 0 18px;
  display: flex;
  align-items: center;
}
.site-footer .wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); }
.footer-top {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}
.footer-tagline {
  font-size: 12.5px;
  color: var(--footer-ink-soft);
}
.footer-body {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 12.5px;
}
.footer-nav .footer-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  margin-right: 2px;
}
.footer-nav a {
  color: var(--footer-ink);
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.75); }
.footer-nav--about { gap: 6px 16px; }
.footer-legal {
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
}
.footer-copy {
  margin-top: 6px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------- focus visible */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1279px) {
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: 33px; }
  .nav { gap: 18px; }
  .nav-link { font-size: 13.5px; }
  .brand-sub { display: none; }
}

@media (max-width: 1023px) {
  .nav {
    position: absolute;
    inset: 88px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper-header);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav-link { padding: 10px 0; font-size: 15px; width: 100%; }
  .menu-toggle { display: inline-flex; }
  .header-actions .all-link { display: none; }
  .hero { height: auto; }
  .hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .hero-copy { padding-top: 28px; max-width: none; }
  .hero-art { position: static; width: auto; height: 300px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-card:nth-child(4n + 1) { border-left: 0; }
  .timing-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-box { grid-template-columns: 1fr; gap: 14px; }
  .site-footer { height: auto; }
  .nutrient-table, .tonic-table { font-size: 12.5px; }
  .nutrient-table th, .nutrient-table td,
  .tonic-table th, .tonic-table td { padding-right: 12px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  .brand-name { font-size: 14px; }
  .hero h1 { font-size: 27px; }
  .hero-lead { font-size: 14.5px; }
  .hero-body { font-size: 13px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-actions { flex-wrap: wrap; }
  .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sec-note { text-align: left; max-width: none; }
  .sec-head h2 { font-size: 21px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card:nth-child(2n + 1) { border-left: 0; }
  .timing-list, .picks-grid, .faq-grid { grid-template-columns: 1fr; }
  .nutrient-table { display: block; overflow-x: auto; white-space: nowrap; }
  .tonic-table { display: block; overflow-x: auto; }
  .tonic-table td { white-space: normal; min-width: 120px; }
  .scope-box { padding: 16px 18px; }
  .scope-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-top { flex-direction: column; gap: 4px; }
  .footer-body { flex-direction: column; gap: 14px; }
  .site-footer { padding: 22px 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 宽屏：首屏照片贴视口右缘，但容器居中时跟随容器一起内收 */
@media (min-width: 1441px) {
  .hero-art {
    right: calc((100vw - min(var(--wrap), 100vw)) / 2 * -1 - var(--gutter) + var(--gutter) * -0);
  }
}
