/* ============================================
   Aerosys Technology — light theme only
   The light palette lives in :root. There is no dark theme, no toggle and no
   stored preference (user decision 2026-09-23).
   Everything colour-related lives in :root — do not hardcode colours
   elsewhere or a future palette change will miss spots.
   ============================================ */
:root {
  color-scheme: light;

  /* Surfaces — near-black, layered */
  --bg:            #FFFFFF;
  --bg-elevated:   #FFFFFF;
  --bg-card:       #FAFAFA;
  --bg-card-hover: #F4F4F5;
  --bg-inset:      #F7F7F8;
  --bg-input:      #FFFFFF;

  /* Borders — subtle white hairlines */
  --border:        rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-hover:  rgba(0, 0, 0, 0.38);

  /* Translucent layers used for hovers, dot grid and glows */
  --dot-grid:       rgba(0, 0, 0, 0.055);
  --hover-layer:    rgba(0, 0, 0, 0.05);
  --subtle-layer:   rgba(0, 0, 0, 0.02);
  --card-glow:      rgba(0, 0, 0, 0.035);
  --card-glow-soft: rgba(0, 0, 0, 0.04);
  --overlay:        rgba(255, 255, 255, 0.78);

  /* Text
     Contrast on #FFFFFF (WCAG 2.1):
       primary    #0A0A0A  19.66:1  AAA
       secondary  #525252   7.90:1  AAA
       muted      #6E6E6E   5.31:1  AA
       faint      #8A8A8A   3.54:1       micro-labels only
       cyan       #0E7490   4.72:1  AA   (the old dark-theme #7EE7FF fails here) */
  --text-primary:   #0A0A0A;
  --text-secondary: #525252;
  --text-muted:     #6E6E6E;
  --text-faint:     #8A8A8A;

  /* Accent — white primary (matches reference), cyan micro-accent */
  --accent:      #0A0A0A;
  --accent-fg:   #FFFFFF;
  --cyan:        #0E7490;
  --cyan-dim:    rgba(14, 116, 144, 0.75);
  --cyan-glow:   rgba(14, 116, 144, 0.10);

  /* Action buttons — monochrome (white solid / black text) */
  --action:       #0A0A0A;
  --action-hover: #262626;
  --action-fg:    #FFFFFF;

  /* Hero gradient stops (white -> cyan -> white) */
  --hero-a: #0A0A0A;
  --hero-b: #0A0A0A;

  /* White product cut-outs measure as little as 1.44:1 against the white card
     and effectively vanish. A hairline drop-shadow traces the alpha silhouette
     so light products stay legible. (Measured by check_light_images.py —
     re-run it if images are replaced.) */
  --img-outline: drop-shadow(0 0 1px rgba(0, 0, 0, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.10));

  /* Very dark devices (a black controller) read as a thick black halo with that
     outline drawn around their silhouette. Products opt out by setting
     data-img-tone="dark" on the <img> (main.js does this for those SKUs). */
  .product-card-image img[data-img-tone="dark"],
  .product-detail-image img[data-img-tone="dark"] { --img-outline: none; }

  /* Floating WhatsApp button shadow */
  --float-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);

  /* Geometry */
  --radius-sm:   6px;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-pill: 999px;

  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Faint dot-grid backdrop (Vercel-ish) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.site-header, main, section, footer, .hero { position: relative; z-index: 1; }

a { color: var(--text-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -0.03em; }
h3 { font-size: 1.0625rem; }
p { margin-bottom: 1rem; }


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; height: 40px;
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  font-family: var(--font); letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { background: var(--action-hover); color: var(--accent-fg); border-color: var(--action-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--subtle-layer); }

.btn-whatsapp { background: var(--action); color: var(--action-fg); border-color: var(--action); font-weight: 600; }
.btn-whatsapp:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--action-fg); transform: translateY(-1px); }

.btn-lg { height: 48px; padding: 0 26px; font-size: 0.9375rem; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.8125rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--overlay);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.nav-logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.nav-logo-text { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.02em; }
.nav-logo-text span { color: var(--text-muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { color: var(--text-secondary); font-size: 0.875rem; font-weight: 400; padding: 8px 12px; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-link:hover { color: var(--text-primary); background: var(--hover-layer); }
.nav-link.active { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.25rem; cursor: pointer; padding: 6px; line-height: 1; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 8px; }
  .nav-cta .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 112px 0 96px; text-align: center; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 68%);
}
.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 14px;
  background: var(--subtle-layer);
}
.hero-tagline::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px rgba(126, 231, 255, 0.7);
}
.hero h1 { margin-bottom: 24px; max-width: 15ch; margin-left: auto; margin-right: auto; }
.hero h1 span {
  background: linear-gradient(120deg, var(--hero-a) 10%, var(--cyan) 55%, var(--hero-b) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-subtitle { font-size: 1.0625rem; max-width: 620px; margin: 0 auto 40px; color: var(--text-secondary); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 88px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h1, .section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.category-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px; text-align: left;
  transition: all var(--transition); overflow: hidden;
}
.category-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at 50% 0%, var(--cyan-glow), transparent 70%);
  opacity: 0; transition: opacity var(--transition);
}
.category-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.category-card:hover::after { opacity: 1; }
/* Category icons are product silhouettes generated from real product photos
   (gen_category_icons.py). They are applied as a CSS mask so the shape takes
   `currentColor` and therefore reads correctly on both themes — a dark product
   photo drawn literally would vanish on the black theme.
   40px rather than the old 28px: a photo silhouette has finer detail than the
   generic glyph it replaced and needs the room. */
.category-icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--text-primary); display: block; }
/* Silhouette icons are white-on-transparent PNGs painted with brightness(0) so
   they read as ink. This replaced a CSS mask: a mask-image is FETCHED as a CSS
   resource, which Chrome blocks for file:// origins (null origin), so the icons
   silently disappeared when the site was opened by double-clicking index.html.
   An <img> is fetched as an ordinary image, which file:// allows. */
.category-icon--silhouette { filter: brightness(0); }
.category-card h3 { margin-bottom: 6px; color: var(--text-primary); }
.category-card p { color: var(--text-muted); font-size: 0.8125rem; margin: 0; font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--bg); padding: 32px 24px; text-align: left; }
.feature-icon { width: 24px; height: 24px; margin-bottom: 18px; color: var(--text-primary); }
.feature h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }
.feature p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }

/* ------------------------------------------------------------------
   Category sections on the catalogue page.
   The listing used to be one flat grid, so 96 products from seven very
   different lines were interleaved (user request 2026-09-23: "按类别进行排序，
   不要混在一起"). Each category is now its own section with a heading.
   ------------------------------------------------------------------ */
.product-groups { display: flex; flex-direction: column; gap: 44px; }
.product-group-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.product-group-title {
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em;
  color: var(--text-primary); margin: 0;
}
.product-group-count {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.product-group-link {
  margin-left: auto; font-size: 0.8125rem; color: var(--text-secondary);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.product-group-link:hover { color: var(--text-primary); border-bottom-color: var(--border-hover); }
.product-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.product-card-image {
  position: relative; aspect-ratio: 1 / 1; display: block;
  background: radial-gradient(circle at 50% 42%, var(--card-glow) 0%, transparent 62%);
  overflow: hidden;
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: contain; padding: 26px;
  filter: var(--img-outline);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image img { transform: scale(1.045); }
.product-card-body { padding: 0 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-model { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.product-card-name { color: var(--text-primary); font-size: 0.9375rem; font-weight: 500; margin-bottom: 10px; line-height: 1.4; letter-spacing: -0.01em; }
a:hover .product-card-name, .product-card-name:hover { color: var(--text-primary); }
.product-card-desc { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; flex: 1; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.product-card-price-block { min-width: 0; }
.product-card-price { color: var(--text-primary); font-weight: 600; font-size: 1.0625rem; font-family: var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.product-card-footer .btn { flex-shrink: 0; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 0 16px; height: 34px; border-radius: var(--radius-pill);
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.8125rem; font-weight: 400; font-family: var(--font);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-btn.active { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }

/* ---------- Catalogue toolbar: search + sort + result count ---------- */
.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;
}
.toolbar {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-bottom: 18px;
}
.search-field { position: relative; flex: 1 1 320px; max-width: 460px; }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-faint); pointer-events: none;
}
.search-input {
  width: 100%; height: 42px; padding: 0 38px 0 40px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-pill); color: var(--text-primary);
  font-family: var(--font); font-size: 0.875rem;
  transition: border-color var(--transition), background var(--transition);
}
.search-input::placeholder { color: var(--text-faint); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-input:focus { border-color: var(--border-hover); outline: none; }
.search-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--hover-layer);
  color: var(--text-secondary); font-size: 1.05rem; line-height: 1;
  cursor: pointer; transition: var(--transition);
}
.search-clear:hover { color: var(--text-primary); }
.sort-field { flex: 0 0 auto; }
.sort-select {
  height: 42px; padding: 0 34px 0 16px; border-radius: var(--radius-pill);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-secondary); font-family: var(--font); font-size: 0.8125rem;
  cursor: pointer; appearance: none; transition: border-color var(--transition);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.sort-select:hover { border-color: var(--border-hover); color: var(--text-primary); }
.sort-select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sort-select option { background: var(--bg-elevated); color: var(--text-primary); }
.result-count {
  text-align: center; font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 26px;
}
.result-count em { color: var(--text-primary); font-style: normal; }
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  color: var(--text-muted); font-size: 0.9375rem;
}
.empty-state strong { display: block; color: var(--text-primary); font-size: 1.0625rem; margin-bottom: 10px; }
.empty-state button {
  margin-top: 18px; padding: 0 20px; height: 36px; border-radius: var(--radius-pill);
  background: var(--action); color: var(--action-fg); border: 0;
  font-family: var(--font); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
@media (max-width: 560px) {
  .search-field { flex: 1 1 100%; max-width: none; }
  .sort-field { flex: 1 1 100%; }
  .sort-select { width: 100%; }
}

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }
.product-detail-image {
  background: radial-gradient(circle at 50% 45%, var(--card-glow-soft) 0%, transparent 62%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; aspect-ratio: 1 / 1; position: sticky; top: 84px;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: contain; filter: var(--img-outline); }
.product-detail-model { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.product-detail-info h1 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); margin-bottom: 16px; }
.product-detail-desc { font-size: 1rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; }
.product-detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.product-detail-price-value { color: var(--text-primary); font-size: 1.875rem; font-weight: 700; font-family: var(--mono); letter-spacing: -0.03em; }
.spec-list { list-style: none; margin-bottom: 32px; }
.spec-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.spec-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-dim); flex-shrink: 0; }
.product-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-meta { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.product-meta-row { display: flex; gap: 16px; margin-bottom: 10px; font-size: 0.8125rem; }
.product-meta-label { color: var(--text-faint); min-width: 140px; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.6875rem; padding-top: 2px; }
.product-meta-value { color: var(--text-secondary); }

/* ---------- CTA ---------- */
.cta-section {
  position: relative; overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; margin: 80px 0;
}
.cta-section::before {
  content: ''; position: absolute; left: 50%; top: -60%; transform: translateX(-50%);
  width: 700px; height: 500px; pointer-events: none;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 66%);
}
.cta-section h2 { margin-bottom: 14px; position: relative; }
.cta-section p { color: var(--text-muted); margin-bottom: 28px; position: relative; }
.cta-section .btn { position: relative; }

/* ---------- About ---------- */
.about-content { max-width: 780px; margin: 0 auto; }
.about-content p { color: var(--text-secondary); line-height: 1.75; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 56px 0; }
.about-stat { background: var(--bg); text-align: center; padding: 28px 16px; }
.about-stat-number { font-size: 1.875rem; font-weight: 700; color: var(--text-primary); font-family: var(--mono); letter-spacing: -0.03em; }
.about-stat-label { color: var(--text-muted); font-size: 0.75rem; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.process-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }
.process-step-num { font-family: var(--mono); font-size: 0.75rem; color: var(--cyan); letter-spacing: 0.1em; margin-bottom: 14px; }
.process-step h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }
.process-step p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-info-item svg { width: 20px; height: 20px; color: var(--text-primary); flex-shrink: 0; margin-top: 3px; }
.contact-info-item a { color: var(--text-secondary); }
.contact-info-item a:hover { color: var(--cyan); }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-form h2 { font-size: 1.25rem; margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-inset);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-primary); font-size: 0.9375rem; font-family: var(--font);
  transition: border-color var(--transition), background var(--transition);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--border-hover); background: var(--bg-input); }
.form-textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--text-primary); }
.footer-brand svg { width: 24px; height: 24px; }
.footer-brand-text { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.02em; }
.footer-brand-text span { color: var(--text-muted); font-weight: 500; }
.footer-desc { color: var(--text-muted); font-size: 0.875rem; max-width: 340px; }
.footer-col h2 { color: var(--text-primary); font-size: 0.8125rem; margin-bottom: 16px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 0.75rem; font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 52px; height: 52px; border-radius: 50%; background: var(--action);
  display: flex; align-items: center; justify-content: center; color: var(--action-fg);
  box-shadow: var(--float-shadow);
  transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--action-hover); color: var(--action-fg); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 96px 0; }
.error-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 700; font-family: var(--mono); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--border-strong); }

/* ---------- Loading ---------- */
.loading { text-align: center; padding: 64px 24px; color: var(--text-muted); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; }

/* Skeleton cards shown before the catalogue data arrives.
   Measured CLS was 0.507 (Google's "good" threshold is 0.1): the page painted a
   one-line "Loading products..." and then injected 117 cards, shoving the footer
   thousands of pixels down. Reserving the space up front — with a placeholder
   that has the same card geometry — removes the shift and reads better than a
   bare line of text. */
.skeleton-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.skeleton-card .sk-image { aspect-ratio: 1 / 1; background: var(--subtle-layer); }
.skeleton-card .sk-body { padding: 18px 20px 20px; }
.skeleton-card .sk-line {
  height: 10px; border-radius: 5px; background: var(--hover-layer);
  margin-bottom: 10px;
}
.skeleton-card .sk-line.sk-short { width: 38%; }
.skeleton-card .sk-line.sk-mid { width: 72%; }
.skeleton-card .sk-line.sk-tall { height: 14px; }
@keyframes sk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.skeleton-card { animation: sk-pulse 1.4s ease-in-out infinite; }

/* Shown only when scripting is off (markup lives inside <noscript>). The
   catalogue is JS-rendered, so this must offer the routes that still work. */
.noscript-note {
  grid-column: 1 / -1;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); padding: 20px 22px; margin: 0 0 24px;
  font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary);
}
.noscript-note a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .skeleton-card { animation: none; }
}
/* Detail-page skeleton: the two-column layout, text column replaced by rules. */
.skeleton-detail { padding-top: 6px; }
.skeleton-detail .sk-line { height: 12px; border-radius: 6px; background: var(--hover-layer); margin-bottom: 14px; }
.skeleton-detail .sk-line.sk-short { width: 30%; }
.skeleton-detail .sk-line.sk-mid { width: 62%; }
.skeleton-detail .sk-line.sk-tall { height: 22px; width: 74%; }
@media (max-width: 860px) { .skeleton-detail { padding-top: 0; } }

/* ---------- Policy page ---------- */
.policy { max-width: 820px; margin: 0 auto; }
.policy-head { border-bottom: 1px solid var(--border); padding-bottom: 28px; margin-bottom: 40px; }
.policy-head h1 { margin-bottom: 12px; }
.policy-meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; }
.policy-intro { font-size: 1.0625rem; color: var(--text-secondary); margin-bottom: 0; }
.policy-body h2 { font-size: 1.125rem; margin-top: 40px; margin-bottom: 14px; padding-top: 8px; }
.policy-body ul { list-style: none; margin-bottom: 8px; }
.policy-body li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.policy-body li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-dim); }
.policy-body strong { color: var(--text-primary); font-weight: 600; }
.policy-body a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.policy-body a:hover { color: var(--cyan); }

/* Bilingual legal text — the Chinese original of a compliance clause.
   Chinese needs a taller line-height to stay readable.
   NOTE: no `color` here on purpose. `.about-content p` (specificity 0,1,1) wins
   over a bare class, and the Chinese wording is the AUTHORITATIVE version of the
   clause — it must not be de-emphasised relative to the English translation.
   It is distinguished by size and the left rule instead.
   Measured 8.13:1 on the dark theme and 7.81:1 on the light theme. */
.policy-zh {
  font-size: 0.875rem; line-height: 1.9;
  border-left: 2px solid var(--border-strong); padding-left: 14px;
  margin: 10px 0 22px;
}
.legal-clause { margin-bottom: 30px; }
.legal-clause h3 { font-size: 1rem; color: var(--text-primary); margin-bottom: 10px; font-weight: 600; }
.legal-clause p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 8px; }
.about-address {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; background: var(--bg-card); margin: 18px 0 8px;
  font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.8;
}
.about-address strong { color: var(--text-primary); }
.policy-cta { margin-top: 56px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); text-align: center; }
.policy-cta p { color: var(--text-secondary); margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 72px 0 56px; }
  .section { padding: 64px 0; }
  .cta-section { padding: 44px 24px; margin: 56px 0; }
  .product-detail-image { position: static; padding: 28px; }
  .site-footer { margin-top: 64px; }
}

/* Small phones — keep the header on one line */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav-logo-text span { display: none; }
  .nav-logo-text { font-size: 0.875rem; }
  .hero-tagline { font-size: 0.6875rem; padding: 5px 12px; }
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .product-detail-actions .btn { width: 100%; }
}

/* Skip-to-content: the first tab stop, visually hidden until focused, so a
   keyboard user can bypass the navbar on every page. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
  background: var(--action); color: var(--action-fg);
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------
   Keyboard focus ring
   MUST stay last in this file: `.form-input:focus { outline: none }`
   above has the same specificity and would otherwise win on document order,
   leaving keyboard users with no focus indicator at all.
   `:focus-visible` only matches keyboard / assistive-tech focus, so mouse
   clicks still show no ring.
   ------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
