/* ==========================================================================
   Rokttena — hoja de estilos global / global stylesheet
   Sin dependencias externas. Sin Google Fonts (evita el problema legal de
   incrustar fuentes de terceros bajo el RGPD).
   ========================================================================== */

:root {
  --brand: #4f46e5;
  --brand-strong: #4338ca;      /* contraste 5.9:1 con texto blanco */
  --brand-soft: #eef2ff;
  --brand-line: #c7d2fe;

  --ink: #0f172a;
  --body: #334155;
  --muted: #475569;
  --line: #e6e8f0;
  --surface: #f7f8fc;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 18px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 26px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, .14);

  --wrap: 1240px;
  --header-h: 64px;
  --measure: 68ch;            /* 阅读舒适行长 */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.015em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1.05em; }
/* 正文行长控制在 60–75 字符，符合现代阅读习惯 */
p, .lede { max-width: var(--measure); }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-strong); background: var(--brand-soft);
  border: 1px solid var(--brand-line); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.mt { margin-top: 32px; }
.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;
}
.section-more { margin-top: 36px; text-align: center; }

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

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: #98330a; box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--brand-strong); border-color: var(--brand-line); }
.btn-outline:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--brand-strong);
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
/* 滚动后才出现分隔线/投影，首屏更干净 */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav .nav-level-1 { display: flex; gap: 6px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--body); font-weight: 500; font-size: .95rem;
  padding: 9px 15px; border-radius: 999px; white-space: nowrap;
  letter-spacing: .005em;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.main-nav a:hover { color: var(--brand-strong); text-decoration: none; background: var(--brand-soft); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--brand-soft); }
.main-nav .nav-level-1 > li.is-current > a { color: var(--brand-strong); background: var(--brand-soft); }
.main-nav a .icon { width: 14px; height: 14px; opacity: .7; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-cta { border-radius: 999px; padding: 9px 18px; box-shadow: var(--shadow-sm); }
.header-cta:hover { box-shadow: var(--shadow-md); text-decoration: none; }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .45em; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 7px 12px; font: inherit; font-size: .9rem; color: var(--body);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang-btn:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.lang-btn .icon { width: 1em; height: 1em; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px;
}
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 6px; color: var(--body); font-size: .94rem;
}
.lang-menu a:hover { background: var(--surface); text-decoration: none; color: var(--ink); }
.lang-menu a.is-current { font-weight: 700; color: var(--brand-strong); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle .icon:last-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon:last-child { display: block; }

/* ---------- héroe ---------- */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: grid; gap: 10px; }
.hero-points li { display: flex; gap: .6em; align-items: flex-start; font-size: .96rem; }
.hero-points .icon { color: var(--brand); margin-top: .25em; }
.hero-visual img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- estadísticas ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 8px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 1.85rem; color: var(--ink); line-height: 1.2; }
.stat span { font-size: .88rem; color: var(--muted); }

/* ---------- categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.cat-card {
  display: block; padding: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat-card:hover { text-decoration: none; border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand-strong); margin-bottom: 14px;
}
.cat-icon .icon { width: 22px; height: 22px; }
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: .93rem; margin-bottom: 12px; }
.cat-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; color: var(--brand-strong); }

/* ---------- productos ---------- */
/* 一行 4 个产品卡；窄屏依次降到 3 / 2 / 1 */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1140px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 840px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.product-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media { display: block; background: var(--surface); overflow: hidden; }
.product-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-sku { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.product-body h2, .product-body h3 {
  margin: 0; font-size: .88rem; line-height: 1.4; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-body h2 a, .product-body h3 a { color: var(--ink); }
.product-body h2 a:hover, .product-body h3 a:hover { color: var(--brand-strong); text-decoration: none; }
.product-name { font-size: .88rem; }
.product-tagline { color: var(--muted); font-size: .93rem; margin: 0 0 4px; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--brand-strong); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.badge-inline { position: static; display: inline-block; }

.cat-block { padding: 40px 0; border-top: 1px solid var(--line); }
.cat-block:first-child { border-top: 0; padding-top: 0; }
.cat-block-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.cat-block-head p { color: var(--muted); margin: 0; }
.cat-block-title { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cat-all { margin-left: auto; white-space: nowrap; }
.cat-count {
  font-size: .74rem; font-weight: 700; color: var(--brand-strong); background: var(--brand-soft);
  border: 1px solid var(--brand-line); border-radius: 999px; padding: 1px 8px;
}
/* 二级及以下类目：缩进、更紧凑 */
.cat-block--sub { padding: 22px 0 22px 22px; border-top: 1px dashed var(--line); border-left: 3px solid var(--brand-line); }
.cat-block--sub .cat-block-head { margin-bottom: 14px; }
.cat-block--sub .cat-block-title { font-size: 1rem; }
.cat-block--sub .product-grid { gap: 14px; }
@media (max-width: 720px) {
  .cat-block--sub { padding-left: 14px; }
  .cat-all { margin-left: 0; }
}

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; font-size: .9rem; font-weight: 500;
  color: var(--body); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover { border-color: var(--brand-line); background: var(--brand-soft); text-decoration: none; color: var(--brand-strong); }
.chip .icon { width: 1em; height: 1em; }

/* ---------- características ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px;
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; }
.channel-card { display: flex; flex-direction: column; gap: 10px; }
.channel-card .link-arrow { margin-top: auto; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.post-grid-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.post-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-media { display: block; background: var(--surface); }
.post-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); margin: 0; }
.post-body h2, .post-body h3 { margin: 0; }
.post-body h2 { font-size: 1.15rem; }
.post-body h2 a, .post-body h3 a { color: var(--ink); }
.post-body h2 a:hover, .post-body h3 a:hover { color: var(--brand-strong); text-decoration: none; }
.post-body > p { color: var(--muted); font-size: .94rem; }
.post-body .link-arrow { margin-top: auto; }

/* ---------- banda CTA ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: #cbd5e1; margin: 0; max-width: 60ch; }

/* ---------- cabeceras de página ---------- */
.page-head { padding: 48px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { margin-bottom: 12px; }
.breadcrumb { display: flex; align-items: center; gap: .5em; font-size: .86rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb .icon { width: .9em; height: .9em; }

/* ---------- aviso de afiliación ---------- */
.disclosure { background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); }
.disclosure-inner { display: flex; gap: 12px; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
.disclosure-inner .icon { color: var(--brand-strong); margin-top: .35em; }
.disclosure p { margin: 0; font-size: .92rem; color: #7c3a12; }
.disclosure a { color: var(--brand-strong); text-decoration: underline; }
.disclosure-inline { margin: 36px 0 0; padding: 18px 20px; border: 1px solid var(--brand-line); border-radius: var(--radius); display: flex; gap: 12px; align-items: flex-start; }

/* ---------- detalle de producto ---------- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; overflow: hidden; transition: border-color .2s var(--ease);
}
.gallery-thumbs button:hover, .gallery-thumbs button.is-active { border-color: var(--brand); }
.gallery-thumbs img { width: 84px; height: 62px; object-fit: cover; }

.product-lead { color: var(--muted); }
.check-list { display: grid; gap: 10px; margin: 0 0 4px; }
.check-list li { display: flex; gap: .6em; align-items: flex-start; }
.check-list .icon { color: var(--brand); margin-top: .3em; width: 1.1em; height: 1.1em; }
.product-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.product-note { font-size: .85rem; color: var(--muted); margin: 0; }

.prose-block { max-width: 780px; }
.prose-block p { color: var(--body); }

/* ---------- 案例（case studies） ---------- */
.case-lede { font-size: 1.06rem; font-weight: 600; color: var(--ink); line-height: 1.7; }
.case-products { margin-top: 14px; font-size: .92rem; color: var(--body); }
.case-products ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.case-products a { font-weight: 600; }
.case-results { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.case-results li { display: flex; gap: 10px; align-items: flex-start; }
.case-results .icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; color: var(--brand); }
.case-results span { color: var(--body); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col-form { grid-template-columns: 1.05fr .95fr; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: .93rem; vertical-align: top;
}
.spec-table th { width: 42%; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--brand); transition: transform .2s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0; color: var(--muted); }

/* ---------- formulario ---------- */
.contact-form { margin-top: 20px; display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: .35em; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.download-list { display: grid; gap: 10px; margin-top: 16px; }
.download-list a {
  display: inline-flex; align-items: center; gap: .6em; font-weight: 500;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.download-list a:hover { border-color: var(--brand-line); background: var(--brand-soft); text-decoration: none; }

/* ---------- legal doc（法务页：宽栏 + 统一格式） ---------- */
.legal-doc { max-width: 960px; counter-reset: legalsec; }
.legal-doc-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-doc .legal-intro { font-size: 1.02rem; max-width: none; }
.legal-toc {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px;
}
.legal-toc-title {
  margin: 0 0 10px; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.legal-toc ol {
  list-style: none; margin: 0; padding: 0; counter-reset: toc;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 26px;
}
.legal-toc li { counter-increment: toc; font-size: .92rem; }
.legal-toc li::before { content: counter(toc) ". "; color: var(--muted); }
.legal-toc a { color: var(--body); }
.legal-toc a:hover { color: var(--brand-strong); text-decoration: none; }
.legal-sec { scroll-margin-top: 96px; }
.legal-sec h2 {
  counter-increment: legalsec; margin: 34px 0 12px; padding-top: 20px;
  font-size: 1.14rem; border-top: 1px solid var(--line);
}
.legal-sec h2::before { content: counter(legalsec) ". "; color: var(--brand); }
.legal-sec p { max-width: none; line-height: 1.8; color: var(--body); }
.legal-doc .legal-contact { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-sec h2 { font-size: 1.05rem; }
}

/* ---------- legal ---------- */
.legal-body h2 { font-size: 1.25rem; margin-top: 36px; }
.legal-intro { font-size: 1.05rem; color: var(--muted); }
.legal-kicker {
  margin: 10px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
}
.legal-contact { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.legal-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- cloud disk（内部云盘入口卡片） ---------- */
.cloud-page-wrap {
  min-height: calc(100vh - 120px); background: var(--surface);
  display: flex; align-items: center; justify-content: center; padding: 72px 24px;
}
.cloud-card {
  background: var(--white); max-width: 720px; width: 100%;
  padding: 56px 48px; border-radius: 16px; box-shadow: var(--shadow-md); text-align: center;
}
.cloud-card h1 { font-size: 1.95rem; font-weight: 650; color: var(--ink); margin: 0 0 14px; line-height: 1.25; }
.cloud-sub { font-size: 1.02rem; color: var(--muted); margin: 0; }
.cloud-warning {
  font-size: .95rem; line-height: 1.8; color: var(--body); text-align: left;
  background: var(--brand-soft); border-left: 5px solid var(--brand);
  border-radius: 10px; padding: 24px 28px; margin: 28px 0 40px;
}
.cloud-warning p { margin: 12px 0 0; }
.cloud-warning p:last-child { margin-bottom: 0; }
.btn-enter-drive {
  display: inline-block; padding: 16px 48px; background: var(--brand); color: #fff;
  border-radius: 12px; font-size: 1.05rem; font-weight: 600; text-decoration: none;
  transition: background-color .24s var(--ease), box-shadow .24s var(--ease);
}
.btn-enter-drive:hover { background: var(--brand-strong); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .cloud-page-wrap { padding: 40px 16px; }
  .cloud-card { padding: 36px 22px; }
  .cloud-card h1 { font-size: 1.5rem; }
  .cloud-warning { padding: 20px 18px; margin: 22px 0 30px; }
  .btn-enter-drive { padding: 14px 32px; width: 100%; }
}

/* ---------- artículo ---------- */
.article-media { padding: 32px 0 0; }
.article-media img { border-radius: var(--radius); width: 100%; }
.article-body { padding: 40px 0 72px; }
.article-body h2 { margin-top: 40px; }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 0; margin-top: 0; }
/* 4 个栏目等分整行，无品牌区；链接紧凑排列不留空行 */
.footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 24px; padding: 40px 0 28px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 32px 0 22px; }
}
.footer-col h2 {
  position: relative; padding-bottom: 8px; margin-bottom: 8px;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); opacity: .75;
}
/* 栏目标题下的品牌色短横线，给页脚一点节奏 */
.footer-col h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 24px; height: 2px; border-radius: 2px; background: var(--brand);
}
.footer-col ul { display: grid; gap: 0; }
.footer-col li { line-height: 1.35; }
.footer-col a {
  display: inline-block; color: var(--body); font-size: .9rem; line-height: 1.35;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-col a:hover { color: var(--brand-strong); text-decoration: none; transform: translateX(2px); }

/* 法务：一行文本链，用中点分隔，减少视觉噪音 */
.footer-legal { padding: 14px 0; border-top: 1px solid var(--line); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .83rem; color: var(--muted); }
.footer-legal li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--line); }
.footer-legal a { color: var(--muted); padding: 0; }
.footer-legal a:hover { color: var(--brand-strong); text-decoration: underline; background: transparent; }

/* 底栏：与页脚同底，仅以上边线分隔，保持克制 */
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; }
.footer-bottom-inner { display: grid; gap: 10px; }
.footer-bottom-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--muted); }
.footer-legalnote {
  max-width: none; font-size: .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.footer-lang { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-lang a { font-size: .84rem; color: var(--muted); }
.footer-lang a:hover { color: var(--brand-strong); text-decoration: none; }

/* 返回顶部 */
.to-top {
  display: inline-flex; align-items: center; gap: .45em; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: .85rem; color: var(--body);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.to-top:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-strong); }
.to-top .icon { width: 15px; height: 15px; transform: rotate(180deg); }

/* ---------- cookies ---------- */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 auto;
}
.cc-inner { padding: 22px 24px; display: grid; gap: 16px; }
.cc-text h2 { font-size: 1.05rem; margin-bottom: 6px; }
.cc-text p { margin: 0; font-size: .92rem; color: var(--muted); }
.cc-prefs { display: grid; gap: 12px; padding: 16px; background: var(--surface); border-radius: var(--radius-sm); }
.cc-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cc-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-switch {
  flex: none; width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1;
  position: relative; transition: background-color .2s var(--ease); margin-top: 2px;
}
.cc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .2s var(--ease);
}
.cc-row input:checked + .cc-switch { background: var(--brand-strong); }
.cc-row input:checked + .cc-switch::after { transform: translateX(18px); }
.cc-row input:focus-visible + .cc-switch { outline: 3px solid var(--brand); outline-offset: 2px; }
.cc-row-locked { cursor: not-allowed; opacity: .75; }
.cc-labels { display: grid; }
.cc-labels strong { font-size: .92rem; color: var(--ink); }
.cc-labels em { font-style: normal; font-size: .84rem; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-reopen {
  position: fixed; left: 16px; bottom: 16px; z-index: 110; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--brand-strong); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.cc-reopen:hover { background: var(--brand-soft); }

/* ---------- selector de idioma (raíz / 404) ---------- */
.page-root { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, #fff, var(--brand-soft)); }
.lang-gate { text-align: center; padding: 48px 24px; max-width: 620px; }
.lang-gate-logo { margin: 0 auto 24px; height: 38px; width: auto; }
.lang-gate h1 { margin-bottom: 14px; }
.lang-gate .lede { margin: 0 auto 32px; }
.lang-gate-list { display: grid; gap: 12px; margin-bottom: 28px; }
.lang-gate-list a {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.lang-gate-list a:hover { text-decoration: none; border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.lang-gate-code {
  flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--brand-soft);
  color: var(--brand-strong); display: grid; place-items: center; font-weight: 700;
  font-size: .8rem; text-transform: uppercase;
}
.lang-gate-name { font-weight: 600; }
.lang-gate-region { margin-left: auto; font-size: .86rem; color: var(--muted); }
.lang-gate-list .icon { color: var(--brand); }
.lang-gate-note, .lang-gate-auto { font-size: .88rem; color: var(--muted); margin: 0; }
.lang-gate-auto { margin-top: 8px; }

/* ---------- mega menu ---------- */
.main-nav .nav-level-1 { align-items: stretch; min-height: var(--header-h); }
/* li 不建立定位上下文：面板统一相对 header 居中展开，永远不会溢出视口 */
.main-nav .nav-level-1 > li { position: static; display: flex; align-items: center; }
.nav-mega {
  display: none; position: absolute; z-index: 60;
  top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: min(700px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-h) - 20px); overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 13px 15px;
}
/* 鼠标从导航项移到面板的「桥」，避免中途丢失 hover */
.nav-mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }

@media (hover: hover) {
  .main-nav .nav-level-1 > li:hover > .nav-mega,
  .main-nav .nav-level-1 > li.is-open > .nav-mega { display: grid; }
}
/* 键盘用户：聚焦到面板内任意链接时也展开 */
.main-nav .nav-level-1 > li:focus-within > .nav-mega { display: grid; }
/* 卡片式（产品线）：家族分列，推广条在底部通栏 */
.nav-mega--cards { grid-template-columns: minmax(0, 1fr); gap: 11px; }
.nav-mega--cards .nav-mega-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; }
/* 列表式（栏目）：单列 + 底部推广条 */
.nav-mega--list { grid-template-columns: minmax(0, 1fr); gap: 11px; }
.nav-mega--list .nav-mega-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 14px; }

.nav-col-head {
  display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: .88rem;
  color: var(--ink); padding: 1px 0;
}
.nav-col-head:hover { color: var(--brand-strong); text-decoration: none; }
.nav-count {
  font-size: .68rem; font-weight: 700; color: var(--brand-strong); background: var(--brand-soft);
  border: 1px solid var(--brand-line); border-radius: 999px; padding: 0 6px;
}
.nav-col-list { display: grid; gap: 1px; }
.nav-col-list a {
  display: block; font-size: .8rem; color: var(--body); padding: 3px 0; line-height: 1.4;
}
.nav-col-list a:hover { color: var(--brand-strong); text-decoration: none; }

/* 列表式条目：整行可点 */
.nav-mega--list .nav-col { padding: 5px 8px; border-radius: var(--radius-sm); transition: background-color .18s var(--ease); }
.nav-mega--list .nav-col:hover { background: var(--brand-soft); }

/* 推广条：统一为底部紧凑单行 */
.nav-mega-promo {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--radius); padding: 9px 12px;
}
.nav-mega-promo h3 { font-size: .88rem; margin-bottom: 2px; }
.nav-mega-promo p { font-size: .78rem; color: var(--body); margin-bottom: 0; }

/* ---------- B2B: condiciones comerciales / trade panel ---------- */
.trade-panel { background: var(--brand-soft); border-top: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); padding: 26px 0; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.trade-item { display: flex; flex-direction: column; gap: 6px; }
.trade-label { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.trade-label .icon { width: 16px; height: 16px; color: var(--brand); }
.trade-item strong { font-size: 1.02rem; color: var(--ink); }

/* ---------- documents ---------- */
.doc-size { margin-left: auto; font-size: .84rem; color: var(--muted); }
.empty-note, .info-note {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--muted);
}

/* ---------- pasos de proceso / process steps ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- formularios / forms ---------- */
.quote-form { margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; font-size: .92rem; }
.form-field > span { font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.form-full { grid-column: 1 / -1; }
.form-field.consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-field.consent input { width: auto; margin-top: 4px; }
.form-field.consent label { font-size: .9rem; color: var(--muted); }
.form-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.quote-form .btn { margin-top: 20px; }

/* ---------- tarjetas de enlace / link cards ---------- */
.link-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  font-weight: 600; color: var(--ink); background: var(--white); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.link-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--brand-strong); }
.link-card .icon { width: 18px; height: 18px; }

/* ---------- artículo / article ---------- */
.article-layout { max-width: 820px; }
.article-media { margin: 0 0 28px; }
.article-media img { width: 100%; border-radius: var(--radius); }
.cat-sublist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.cat-sublist li { font-size: .88rem; color: var(--muted); }
.chip-count { font-size: .8rem; color: var(--muted); }
.product-trade { margin: 8px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- banner de categoría ---------- */
.page-banner { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-banner img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover;
}
@media (max-width: 860px) {
  .page-banner img { aspect-ratio: 2 / 1; }
}
@media (max-width: 520px) {
  .page-banner img { aspect-ratio: 16 / 9; }
}

/* ---------- ficha de producto (layout flykantech) ---------- */
.product-title {
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.3;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); margin: 0 0 8px;
}
.product-model { margin: 0 0 16px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.product-lead { margin: 0 0 24px; color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-share {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.share-label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.share-label .icon { width: 16px; height: 16px; }
/* 分享：品牌色圆形小图标按钮 */
.share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.share-list a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--muted); color: #fff;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.share-list a .icon { width: 17px; height: 17px; }
.share-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); filter: brightness(1.08); text-decoration: none; }
.share-list a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.share-list a[data-share="facebook"] { background: #1877f2; }
.share-list a[data-share="line"] { background: #06c755; }
.share-list a[data-share="twitter"] { background: #0f1419; }
.share-list a[data-share="whatsapp"] { background: #25d366; }
.share-list a[data-share="pinterest"] { background: #bd081c; }
.share-list a[data-share="tumblr"] { background: #35465c; }
.share-list a[data-share="linkedin"] { background: #0a66c2; }

.product-tabs { display: none; gap: 0; border-bottom: 2px solid var(--line); }
.product-tabs-section.has-js .product-tabs { display: flex; flex-wrap: wrap; }
.product-tabs-section.has-js .tab-pane { display: none; }
.product-tabs-section.has-js .tab-pane.is-active { display: block; }
.tab-btn {
  appearance: none; -webkit-appearance: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 14px 22px; margin-bottom: -2px; border-bottom: 2px solid transparent;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active { color: var(--brand-strong); border-bottom-color: var(--brand); }
.tab-panes { padding-top: 26px; }
/* 标签页正文占满栏宽，不再被全局的 68ch 阅读行长截断 */
.tab-pane p { color: var(--muted); margin: 0 0 14px; max-width: none; }
.tab-subhead {
  margin: 28px 0 12px; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tab-pane .feature-list { margin-bottom: 24px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.feature-list .icon { flex: none; width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.product-tabs-section .spec-table { max-width: 760px; }
.product-tabs-section .spec-table + .tab-subhead { margin-top: 30px; }

/* 导航深链锚点：避开吸顶头部 */
section[id], .feature[id] { scroll-margin-top: 92px; }

/* ---------- banners（分类页 / 产品页 / 首页轮播） ---------- */
.page-banner--slim img { aspect-ratio: 24 / 5; }
@media (max-width: 860px) { .page-banner--slim img { aspect-ratio: 16 / 5; } }
@media (max-width: 520px) { .page-banner--slim img { aspect-ratio: 3 / 1; } }

.banner-slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.banner-track { display: grid; }
.banner-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.banner-slider:not(.has-js) .banner-slide:first-child,
.banner-slider.has-js .banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-slide-link { display: block; position: relative; }
.banner-slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.banner-slide-caption {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  background: rgba(15, 23, 42, .74); color: #fff; font-size: .85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; letter-spacing: .01em;
}
.banner-slide-link:hover .banner-slide-caption { background: var(--brand-strong); }

.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .92);
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.banner-nav:hover { background: #fff; color: var(--brand-strong); }
.banner-nav .icon { width: 20px; height: 20px; }
.banner-prev { left: 14px; }
.banner-prev .icon { transform: rotate(180deg); }
.banner-next { right: 14px; }
.banner-slider:not(.has-js) .banner-nav { display: none; }

.banner-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 3;
  display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(15, 23, 42, .35);
}
.banner-dot {
  width: 9px; height: 9px; padding: 0; cursor: pointer; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.banner-dot.is-active { background: var(--brand); }
.banner-slider:not(.has-js) .banner-dots { display: none; }

@media (max-width: 860px) {
  .banner-slide img { aspect-ratio: 2 / 1; }
  .banner-nav { width: 34px; height: 34px; }
  .banner-prev { left: 8px; }
  .banner-next { right: 8px; }
}
@media (max-width: 520px) {
  .banner-slide img { aspect-ratio: 16 / 9; }
  .banner-slide-caption { left: 10px; bottom: 10px; font-size: .78rem; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) { .banner-slide { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  /* mega menu 在抽屉里降级为可折叠列表 */
  .main-nav .nav-mega {
    position: static; display: none; width: auto; max-height: none; overflow: visible;
    transform: none; left: auto;
    box-shadow: none; border: 0; background: transparent; padding: 2px 0 12px 10px;
    grid-template-columns: 1fr; gap: 14px;
  }
  .main-nav .nav-mega::before { display: none; }
  .main-nav .nav-level-1 > li.sub-open > .nav-mega,
  .main-nav .nav-level-1 > li.is-open > .nav-mega { display: grid; }
  .main-nav .nav-mega--cards .nav-mega-main,
  .main-nav .nav-mega--list .nav-mega-main { grid-template-columns: 1fr; gap: 16px; }
  .main-nav .nav-mega--list .nav-col { padding: 0; }
  .main-nav .nav-mega--list .nav-col:hover { background: transparent; }
  .nav-mega-promo { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  /* 抽屉式移动导航 */
  .main-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; left: auto; z-index: 56;
    width: min(88vw, 360px); display: block; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-left: 1px solid var(--line); padding: 18px 20px 32px;
    box-shadow: var(--shadow-lg);
    transform: translateX(102%); visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s var(--ease);
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 55; border: 0; padding: 0; cursor: pointer;
    background: rgba(15, 23, 42, .45);
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }

  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav .nav-level-1 > li { border-bottom: 1px solid var(--line); }
  .main-nav .nav-level-1 > li:last-child { border-bottom: 0; }
  .main-nav a { display: flex; justify-content: space-between; padding: 12px 10px; font-size: 1rem; }
  .main-nav a[aria-current="page"] { background: var(--brand-soft); }
  .nav-toggle { display: inline-flex; }
  .header-shop { display: none; }
  .section { padding: 52px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 32px; }
  .footer-legal a { font-size: .8rem; padding: 4px 10px; }
  .cc-actions { flex-direction: column; }
  .cc-actions .btn { width: 100%; }
  .footer-bottom-inner { gap: 8px; }
  .footer-legalnote { white-space: normal; }
}

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