/* style.css — 孕妇产后恢复用品 · 首页与内页共享样式
   设计基准宽度 1440；分区高度按 03-ui/home-ui-desktop.png 量出的预算落位：
   页头 70 / 首屏 475 / 数字带 165 / 分类 263 / 阶段表 260 / 三类边界 195 /
   精选 172 / 采购顺序 163 / 问答与声明 220 / 页脚 175 = 2160 */

*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img{ display: block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
h1, h2, h3{ margin: 0; color: var(--ink); letter-spacing: -.01em; }
p{ margin: 0; }
ul, ol, dl, dd{ margin: 0; padding: 0; }
li{ list-style: none; }

.wrap{ width: min(var(--wrap), calc(100% - 68px)); margin-inline: 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;
}

.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ 按钮 */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px; border-radius: var(--pill);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary{ background: var(--accent); color: var(--on-accent); }
.btn-primary:hover{ background: var(--accent-strong); }
.btn-ghost{ background: transparent; color: var(--accent-strong); border-color: var(--accent-line); }
.btn-ghost:hover{ background: var(--accent-line); }

/* ------------------------------------------------------------------ M0 页头 */
.site-header{
  height: 72px; background: var(--bg-header);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 60;
}
.header-inner{ height: 100%; display: flex; align-items: center; }

.brand{ display: flex; align-items: center; gap: 12px; flex: none; width: 268px; }
.brand-mark{
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-card); color: var(--ink-eyebrow);
  border: 1px solid var(--accent-line);
  font-size: 15px; font-weight: 700;
}
.brand-text{ display: flex; flex-direction: column; gap: 3px; }
.brand-name{ font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; }
.brand-sub{ font-size: 10.5px; color: var(--body-soft); letter-spacing: .04em; line-height: 1; }

.site-nav{ display: flex; align-items: center; gap: 4px; margin-inline: auto; flex: 1 1 auto; justify-content: center; }
.site-nav a{
  padding: 6px 10px; border-radius: var(--pill);
  font-size: 13px; color: var(--body-soft); white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.site-nav a:hover{ color: var(--ink-h1); background: var(--accent-line); }
.site-nav a.is-current{ color: var(--accent-strong); font-weight: 600; }

.dir-btn{
  margin-left: auto; flex: none;
  height: 36px; padding: 0 20px; border-radius: var(--pill);
  background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid var(--accent-line);
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .16s ease;
}
.dir-btn:hover{ background: var(--accent-hover); }

/* ------------------------------------------------------------------ M1 首屏 */
.hero{
  position: relative; overflow: hidden;
  height: 475px;
  background: linear-gradient(104deg, var(--hero-from) 0%, var(--bg-card) 46%, var(--hero-to) 100%);
}
.hero-media{
  position: absolute; top: 0; bottom: 0;
  right: max(0px, calc((100% - 1440px) / 2));
  width: min(624px, 43.4%);
  overflow: hidden;
}
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.hero-media::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--hero-fade) 0%, transparent 26%);
}
.hero-inner{ position: relative; height: 475px; }
.hero-copy{
  width: min(660px, calc(100% - 300px));
  padding-top: 53px;
  margin-left: 94px;
}
.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--ink-eyebrow);
  line-height: 26px;
}
.eyebrow::before{ content: ""; width: 22px; height: 1px; background: var(--ink-eyebrow); opacity: .7; }
.hero h1{
  margin-top: 17px;
  font-size: var(--fs-h1); line-height: 55px; font-weight: 700;
  color: var(--ink-h1);
  letter-spacing: -.02em;
}
.hero .lead{
  margin-top: 32px;
  font-size: var(--fs-lead); line-height: 28px; color: var(--body);
  max-width: 648px;
}
.hero-actions{ margin-top: 12px; display: flex; gap: 12px; }
.hero-actions .btn{ text-decoration: none; }

/* ------------------------------------------------------------------ M2 数字带 */
.facts{ padding: 16px 0 3px; height: 165px; }
.facts-card{
  height: 146px;
  background: var(--bg-card); border-radius: var(--radius);
  display: flex; align-items: center; gap: 0;
  padding: 0 30px;
  border: 1px solid var(--accent-line);
}
.facts-title{
  flex: none; width: 210px;
  font-size: 15px; font-weight: 700; color: var(--ink-h1); line-height: 1.5;
  letter-spacing: 0;
}
.facts-grid{ display: grid; grid-template-columns: repeat(4, 1fr); flex: 1 1 auto; }
.fact{ padding: 0 0 0 26px; border-left: 1px solid var(--accent-line); }
.fact dt{ display: flex; flex-direction: column; gap: 2px; }
.fact-num{ font-size: 25px; font-weight: 700; color: var(--ink-num); line-height: 1.15; letter-spacing: -.02em; }
.fact-label{ font-size: 14px; color: var(--ink-h1); line-height: 1.5; }
.fact dd{ margin-top: 6px; font-size: 12.5px; line-height: 1.72; color: var(--body-soft); max-width: 244px; }

/* ------------------------------------------------------------------ 区块头 */
.section-head{ display: flex; align-items: baseline; gap: 26px; }
.section-head h2{ font-size: var(--fs-h2); font-weight: 700; line-height: 1.35; flex: none; }
.section-head p{ font-size: var(--fs-small); color: var(--body-soft); line-height: 1.7; }

/* ------------------------------------------------------------------ M3 分类索引 */
.categories{ height: 263px; padding-top: 24px; }
.categories .section-head{ margin-bottom: 14px; }
.cat-grid{ display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card{
  display: flex; flex-direction: column;
  border-radius: var(--radius-sm); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover{ transform: translateY(-2px); }
.cat-thumb{ display: block; height: 97px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-block); }
.cat-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.cat-no{ display: block; margin-top: 14px; font-size: 11px; font-weight: 600; color: var(--ink-eyebrow); letter-spacing: .06em; line-height: 1.4; }
.cat-name{ display: block; margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cat-terms{ display: block; margin-top: 3px; font-size: 12px; color: var(--body-soft); line-height: 1.5; }
.cat-note{ display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ M4 阶段表 */
.stages{ height: 260px; padding-top: 28px; }
.stages .section-head-wide{ margin-bottom: 16px; }
.section-head-wide{ align-items: flex-start; }
.section-head-wide h2{ font-size: 20px; line-height: 1.4; }
.section-head-wide p{ font-size: var(--fs-small); }
.stage-table{ width: 100%; border-collapse: collapse; table-layout: fixed; }
.stage-table th, .stage-table td{ text-align: left; padding: 0 20px 0 0; vertical-align: top; }
.stage-table thead th{
  font-size: 11.5px; font-weight: 500; color: var(--body-soft); letter-spacing: .04em;
  padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.stage-table tbody th{ font-size: 13px; font-weight: 600; color: var(--ink); }
.stage-table tbody td{ font-size: 13px; color: var(--body); line-height: 1.7; }
.stage-table tbody tr:first-child th, .stage-table tbody tr:first-child td{ padding-top: 11px; }
.stage-table tbody tr + tr th, .stage-table tbody tr + tr td{ border-top: 1px solid var(--line-soft); padding-top: 8px; }
.stage-table tbody tr:last-child th, .stage-table tbody tr:last-child td{ padding-bottom: 6px; }
.stage-table col:nth-child(1){ width: 15%; }
.stage-table col:nth-child(2){ width: 19%; }
.stage-table col:nth-child(3){ width: 32%; }
.stage-table col:nth-child(4){ width: 34%; }
.stage-table thead th:first-child{ padding-left: 44px; }
.stage-table tbody th:first-child{ padding-left: 44px; }
.stage-note{ margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------------ M5 三类边界 */
.usage{ height: 195px; padding-top: 16px; }
.usage-wrap{ position: relative; }
.usage-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; height: 92px; }
.usage-head > div{ min-width: 0; }
.usage-head h2{ font-size: 21px; font-weight: 700; line-height: 1.3; }
.usage-lead{ margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: var(--body-soft); max-width: 700px; }
.usage-figure{ flex: none; display: flex; align-items: flex-start; gap: 14px; width: 372px; height: 92px; }
.usage-figure img{ width: 112px; height: 92px; object-fit: cover; border-radius: var(--radius-sm); }
.usage-figure figcaption{ font-size: 11.5px; line-height: 1.6; color: var(--muted); padding-top: 4px; max-width: 168px; }
.usage-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 8px; }
.usage-grid li{ height: 79px; }
.usage-grid h3{ font-size: 13.5px; font-weight: 700; line-height: 1.55; display: flex; align-items: center; gap: 8px; }
.usage-tag{
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 8px;
  background: var(--bg-card); color: var(--ink-h1); font-size: 11.5px; font-weight: 700; flex: none;
}
.usage-grid p{
  margin-top: 5px; font-size: 12px; line-height: 1.62; color: var(--body-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ------------------------------------------------------------------ M6 精选 */
.featured{ height: 172px; padding-top: 27px; }
.featured .section-head{ margin-bottom: 16px; }
.feat-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feat-card{
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-inner); border-radius: var(--radius-sm); padding: 12px;
  height: 100px; transition: background .16s ease;
}
.feat-card:hover{ background: var(--bg-card); }
.feat-thumb{ flex: none; width: 108px; height: 76px; border-radius: 8px; overflow: hidden; }
.feat-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.feat-body{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feat-title{ font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.feat-text{ font-size: 12px; color: var(--body-soft); line-height: 1.6; }
.feat-link{ font-size: 11.5px; font-weight: 600; color: var(--accent-strong); }

/* ------------------------------------------------------------------ M7 采购顺序 */
.picker{ height: 163px; padding-top: 24px; }
.picker-wrap{ position: relative; }
.picker-head{ display: flex; align-items: baseline; gap: 22px; }
.picker-head h2{ font-size: 20px; font-weight: 700; line-height: 1.4; flex: none; }
.picker-head p{ font-size: var(--fs-small); color: var(--body-soft); max-width: 660px; }
.picker-steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 12px; padding-right: 240px; }
.picker-steps li{ display: flex; flex-direction: column; gap: 2px; }
.step-no{ font-size: 11px; font-weight: 600; color: var(--ink-eyebrow); letter-spacing: .06em; }
.step-title{ font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.step-text{ font-size: 12px; color: var(--body-soft); line-height: 1.65; }
.picker-cta{ position: absolute; right: 0; bottom: 6px; height: 42px; padding: 0 22px; font-size: 13px; }

/* ------------------------------------------------------------------ M8 问答 + M9 声明 */
.faq{ height: 220px; padding-top: 15px; }
.faq-wrap{ display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.faq-main h2{ font-size: 20px; font-weight: 700; line-height: 1.4; }
.faq-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 14px; }
.qa{ border-top: 0; }
.qa summary{
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.6;
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker{ display: none; }
.qa summary::before{
  content: "问"; flex: none;
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-card); color: var(--ink-eyebrow); font-size: 10px; font-weight: 600;
}
.qa p{ margin-top: 5px; font-size: 12.5px; line-height: 1.75; color: var(--body-soft); padding-left: 26px; }
.qa[open] summary{ color: var(--ink-h1); }

.notice-card{
  background: var(--bg-card); border-radius: var(--radius); padding: 18px 22px;
  border: 1px solid var(--accent-line);
}
.notice-title{ font-size: 13px; font-weight: 700; color: var(--ink-h1); line-height: 1.5; }
.notice-card p{ margin-top: 8px; font-size: 12.5px; line-height: 1.75; color: var(--note-ink); }

/* ------------------------------------------------------------------ M10 页脚 */
.site-footer{ height: 175px; background: var(--accent); color: var(--on-accent); }
.footer-inner{ display: grid; grid-template-columns: 262px 150px 150px 1fr 110px; gap: 26px; padding-top: 20px; }
.footer-name{ font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.footer-desc{ margin-top: 7px; font-size: 12px; line-height: 1.7; color: var(--footer-ink-soft); max-width: 240px; }
.footer-head{ font-size: 12.5px; font-weight: 600; color: var(--ink-invert); letter-spacing: .05em; }
.footer-head-ghost{ height: 0; overflow: hidden; margin: 0; }
.footer-links{ margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.footer-links a{ font-size: 12px; color: var(--footer-ink-soft); }
.footer-links a:hover{ color: var(--ink-invert); text-decoration: underline; }
.footer-text{ margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--footer-ink-soft); max-width: 340px; }
.footer-top{ text-align: right; }
.to-top{
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-invert);
  border-bottom: 1px solid var(--line-invert); padding-bottom: 2px;
}
.footer-base{
  margin-top: 4px; padding-top: 7px;
  border-top: 1px solid var(--line-invert);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--footer-ink-faint);
}
.footer-nav{ display: flex; gap: 18px; }
.footer-nav a:hover{ color: var(--ink-invert); }

/* ------------------------------------------------------------------ 目录抽屉 */
.drawer{ position: fixed; inset: 0; z-index: 80; }
.drawer[hidden]{ display: none; }
.drawer::before{ content: ""; position: absolute; inset: 0; background: var(--shade); }
.drawer-panel{
  position: relative; margin-left: auto; width: min(400px, 88vw); height: 100%;
  background: var(--bg); box-shadow: var(--shadow-drawer);
  display: flex; flex-direction: column; animation: drawer-in .22s ease;
}
@keyframes drawer-in{ from{ transform: translateX(24px); opacity: .4; } to{ transform: none; opacity: 1; } }
.drawer-head{ display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; border-bottom: 1px solid var(--line-soft); }
.drawer-title{ font-size: 14px; font-weight: 700; color: var(--ink); }
.drawer-close{
  height: 32px; padding: 0 14px; border-radius: var(--pill); cursor: pointer;
  background: var(--bg-card); color: var(--accent-strong); border: 1px solid var(--accent-line);
  font-family: inherit; font-size: 12.5px;
}
.drawer-body{ padding: 16px 24px 28px; overflow-y: auto; }
.drawer-sub{ font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.drawer-list{ margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.drawer-list + .drawer-sub{ margin-top: 20px; }
.drawer-list a{
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.drawer-list a span{ font-size: 11.5px; font-weight: 400; color: var(--muted); }
.drawer-list-slim a{ font-size: 12.5px; font-weight: 500; color: var(--body); }

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1180px){
  .site-nav a{ padding: 6px 7px; font-size: 12.5px; }
  .hero-copy{ margin-left: 0; width: min(580px, calc(100% - 260px)); }
  .facts-title{ width: 176px; }
  .fact dd{ max-width: none; }
}

@media (max-width: 1023px){
  .site-nav{ display: none; }
  .dir-btn{ display: inline-flex; align-items: center; }
  .brand{ width: auto; }
  .hero{ min-height: auto; }
  .hero-inner{ height: auto; padding: 44px 0 48px; }
  .hero-media{ position: absolute; inset: 0; width: 100%; opacity: .16; }
  .hero-copy{ width: 100%; margin: 0; padding-top: 0; }
  .hero h1{ font-size: 38px; line-height: 1.28; }
  .facts, .categories, .stages, .usage, .featured, .picker, .faq, .site-footer{ height: auto; }
  .facts{ padding: 22px 0; }
  .facts-card{ height: auto; flex-direction: column; align-items: stretch; gap: 18px; padding: 22px; }
  .facts-title{ width: auto; }
  .facts-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .fact{ padding-left: 18px; }
  .cat-grid{ grid-template-columns: repeat(3, 1fr); }
  .stage-table{ font-size: 12.5px; }
  .usage-head{ flex-direction: column; gap: 18px; }
  .usage-figure{ width: auto; }
  .usage-grid{ grid-template-columns: 1fr; gap: 16px; }
  .feat-grid{ grid-template-columns: 1fr; }
  .feat-card{ height: auto; }
  .picker-steps{ padding-right: 0; grid-template-columns: 1fr; gap: 14px; }
  .picker-cta{ position: static; margin-top: 18px; }
  .faq-wrap{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-top{ text-align: left; }
  .footer-base{ flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 760px){
  .wrap{ width: calc(100% - 40px); }
  .hero h1{ font-size: 30px; }
  .hero .lead{ font-size: 14px; line-height: 1.85; }
  .hero-actions{ flex-wrap: wrap; }
  .section-head{ flex-direction: column; gap: 8px; }
  .section-head-wide{ flex-direction: column; }
  .facts-grid{ grid-template-columns: 1fr; }
  .cat-grid{ grid-template-columns: repeat(2, 1fr); }
  .stage-table, .stage-table thead, .stage-table tbody, .stage-table tr, .stage-table th, .stage-table td{ display: block; }
  .stage-table thead{ display: none; }
  .stage-table tbody tr{ padding: 12px 0; border-top: 1px solid var(--line-soft); }
  .stage-table tbody tr:first-child{ border-top: 0; }
  .stage-table tbody th, .stage-table tbody td{ padding: 0 !important; }
  .stage-table tbody td{ font-size: 12.5px; color: var(--body-soft); }
  .stage-table tbody td::before{ content: attr(data-label) "："; color: var(--muted); }
  .usage-figure{ flex-direction: column; }
  .usage-figure figcaption{ max-width: none; }
  .faq-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
}

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