/* =============================================================================
   Chaolian Power — 独立站前端展示页样式
   纯 CSS，无框架、无外部依赖
   断点：>=1024 桌面 / 640-1023 平板 / <640 手机
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色：深工业蓝 + 电力橙 */
  --c-ink:        #16243a;
  --c-ink-soft:   #1e2f45;
  --c-slate:      #4a6d94;
  --c-slate-200:  #c3d2e2;
  --c-slate-100:  #e6edf5;
  --c-surface:    #ffffff;
  --c-surface-alt:#f4f7fb;
  --c-line:       #dbe4ee;
  --c-accent:     #f5a623;
  --c-accent-dark:#d98c0d;
  --c-text:       #26374d;
  --c-text-muted: #62748a;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(22, 36, 58, .06), 0 1px 3px rgba(22, 36, 58, .04);
  --shadow:    0 4px 14px rgba(22, 36, 58, .08);
  --shadow-lg: 0 14px 38px rgba(22, 36, 58, .14);

  --container: 1200px;
  --gutter:    20px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
          "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;  /* 抵消固定导航高度 */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--c-ink); font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4.2vw, 3.05rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.05rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

a { color: var(--c-slate); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--c-accent-dark); }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--c-accent); color: #2b1d02; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-accent-dark); color: #2b1d02; box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-slate); color: var(--c-ink); background: var(--c-slate-100); }

.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .17); color: #fff; border-color: #fff; }

/* WhatsApp CTA */
.btn-whatsapp { background: #25d366; color: #06301a; border-color: #25d366; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1eb356; border-color: #1eb356; color: #06301a; box-shadow: var(--shadow); }

.btn-sm { padding: 9px 15px; font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- 4. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.brand-mark { display: flex; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; color: var(--c-ink); letter-spacing: -.01em; }
.brand-text small { font-size: .73rem; color: var(--c-text-muted); letter-spacing: .05em; text-transform: uppercase; }
.brand-text-light strong { color: #fff; }
.brand-text-light small { color: rgba(255, 255, 255, .62); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block; height: 2px; width: 100%;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: 4px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-link:hover { background: var(--c-slate-100); color: var(--c-ink); }

.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .18s var(--ease);
}
.nav-dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-item.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 266px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: .93rem;
}
.dropdown a:hover { background: var(--c-slate-100); color: var(--c-ink); }
.dropdown-all { border-top: 1px solid var(--c-line); margin-top: 6px; padding-top: 6px; }
.dropdown-all a { font-weight: 600; color: var(--c-slate); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #16243a 0%, #1e3352 52%, #26456b 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 78px);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 72% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 72% 20%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 940px; }

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 13px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #ffd79a;
  background: rgba(245, 166, 35, .14);
  border: 1px solid rgba(245, 166, 35, .34);
  border-radius: 999px;
}

.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 .accent { color: var(--c-accent); display: block; }

.hero-lead {
  max-width: 68ch;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  color: rgba(255, 255, 255, .84);
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 44px; }

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-bar li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .05);
}
.trust-bar strong { font-size: 1.32rem; color: var(--c-accent); line-height: 1.1; }
.trust-bar span { font-size: .82rem; color: rgba(255, 255, 255, .74); }

/* ---------- 6. 通用区块 ---------- */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-alt { background: var(--c-surface-alt); }

.section-head { max-width: 780px; margin-bottom: 40px; }

.section-eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--c-slate);
}
.section-sub { color: var(--c-text-muted); font-size: 1.02rem; margin: 0; }
.section-cta { margin: 40px 0 0; text-align: center; }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 7. 产品分类卡 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.category-card::after {
  content: "";
  position: absolute; left: 0; top: 22px; bottom: 22px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s var(--ease);
}
.category-card:hover {
  border-color: var(--c-slate-200);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  color: var(--c-text);
}
.category-card:hover::after { transform: scaleY(1); }

.category-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 4px;
  color: var(--c-slate);
  background: var(--c-slate-100);
  border-radius: var(--radius-sm);
}
.category-card h3 { font-size: 1.05rem; margin: 0; }
.category-card p { margin: 0; font-size: .91rem; color: var(--c-text-muted); }
.category-meta { margin-top: auto; padding-top: 10px; font-size: .78rem; font-weight: 600; color: var(--c-slate); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- 8. 产品工具条 ---------- */
.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 8px 15px;
  font: inherit;
  font-size: .87rem;
  font-weight: 500;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--c-slate); color: var(--c-ink); }
.chip.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.result-count { margin: 0; font-size: .87rem; color: var(--c-text-muted); }

/* ---------- 9. 产品卡 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--c-slate-200); }
.product-card.is-hidden { display: none; }

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;              /* 店铺产品图为 800×800 正方形 */
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;              /* contain 而非 cover：避免裁掉套管 / 底座 */
  padding: 10px;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.045); }

.product-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 20px 18px; }

.product-cat {
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-slate);
}
.product-title { margin: 0; font-size: 1.08rem; }
.product-title a { color: var(--c-ink); }
.product-title a:hover { color: var(--c-accent-dark); }

.product-summary { margin: 0; font-size: .92rem; color: var(--c-text-muted); }

.product-specs { margin: 4px 0 0; border-top: 1px dashed var(--c-line); }
.product-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--c-line);
  font-size: .87rem;
}
.product-specs dt { margin: 0; color: var(--c-text-muted); }
.product-specs dd { margin: 0; font-weight: 600; color: var(--c-ink); text-align: right; }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.product-moq { font-size: .82rem; font-weight: 600; color: var(--c-slate); }

/* ---------- 10. 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.about-points li { padding-left: 16px; border-left: 3px solid var(--c-accent); }
.about-points h3 { font-size: .98rem; margin-bottom: 4px; }
.about-points p { margin: 0; font-size: .89rem; color: var(--c-text-muted); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { display: flex; flex-direction: column; gap: 2px; padding: 20px 18px; background: #fff; }
.stat strong { font-size: 1.2rem; color: var(--c-ink); line-height: 1.15; }
.stat span { font-size: .8rem; color: var(--c-text-muted); }

/* ---------- 10b. 工厂图片区 ---------- */
.factory-block {
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: clamp(26px, 4vw, 38px);
  border-top: 1px solid var(--c-line);
}
.factory-title { font-size: 1.25rem; margin-bottom: 6px; }
.factory-sub { color: var(--c-text-muted); margin-bottom: 22px; max-width: 62ch; }

.factory-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
}
.factory-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.factory-gallery figure:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.factory-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;             /* 源图为 16:9，不裁切 */
  object-fit: cover;
}
.factory-gallery figcaption {
  padding: 11px 14px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--c-ink);
}
.factory-note { margin: 20px 0 0; font-size: .88rem; color: var(--c-text-muted); }

/* ---------- 11. 联系我们 + 表单 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-list { margin: 26px 0 22px; display: grid; gap: 16px; }
.contact-actions { margin: 0 0 22px; }
.contact-actions .btn { width: 100%; max-width: 280px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-slate);
}
.contact-note { font-size: .88rem; color: var(--c-text-muted); }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
}

.form-title { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); font-size: 1.2rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--c-ink); }
.field .req { color: #d9483b; }
.field .optional { font-weight: 400; color: var(--c-text-muted); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .94rem;
  color: var(--c-text);
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }

.field input::placeholder, .field textarea::placeholder { color: #9aa9ba; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-slate);
  box-shadow: 0 0 0 3px rgba(74, 109, 148, .16);
}

.field input[type="file"] {
  padding: 10px 12px;
  font-size: .88rem;
  background: var(--c-surface-alt);
  border: 1.5px dashed var(--c-slate-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 13px;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.field-hint { margin: 0; font-size: .78rem; color: var(--c-text-muted); }

.field input.is-invalid, .field textarea.is-invalid { border-color: #d9483b; background: #fdf5f4; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-privacy { margin: 0; font-size: .79rem; color: var(--c-text-muted); max-width: 320px; }

.form-status { margin: 16px 0 0; font-size: .9rem; font-weight: 600; }
.form-status.is-ok { color: #1f7a45; }
.form-status.is-error { color: #c0392b; }

/* 反垃圾蜜罐字段：对真人视觉隐藏（不用 display:none，便于 Netlify 识别） */
.honeypot-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 12. 页脚 ---------- */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, .72); padding: 58px 0 26px; font-size: .91rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 34px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand p { margin: 16px 0 0; max-width: 42ch; color: rgba(255, 255, 255, .6); }
.footer-col h3 {
  margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 255, 255, .72); }
.footer-col a:hover { color: var(--c-accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .55); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .84rem; color: rgba(255, 255, 255, .55); }
.footer-legal a:hover { color: var(--c-accent); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1023px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  /* 移动端导航：抽屉式 */
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 16px var(--gutter) 26px;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }

  .nav-item.has-dropdown { position: static; }
  .dropdown {
    position: static;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid var(--c-line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s var(--ease), visibility .28s;
  }
  .nav-item.has-dropdown.is-open .dropdown { visibility: visible; max-height: 480px; }
  .dropdown-all { border-top: 0; }

  .nav-cta { width: 100%; margin-top: 8px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 66px; }
  .primary-nav { inset: 66px 0 auto 0; }

  .hero-actions .btn { width: 100%; }
  .trust-bar { grid-template-columns: 1fr 1fr; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .about-points { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .product-toolbar { flex-direction: column; align-items: flex-start; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .form-privacy { max-width: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 14. 无障碍 / 打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-actions, .product-toolbar, .nav-toggle, .site-footer { display: none; }
  .product-card, .category-card { break-inside: avoid; box-shadow: none; }
}
