/* ==========================================================================
   Nanwei Eyewear — Global stylesheet
   Design language: minimal, airy, premium B2B. No external fonts or libraries
   so pages render as fast as possible on mobile networks.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink: #0f1724;
  --ink-2: #303c52;
  --ink-3: #6b7688;
  --line: #e6e4de;
  --line-2: #f1efea;
  --bg: #ffffff;
  --bg-alt: #f8f7f4;
  --bg-dark: #111a28;
  --gold: #a97c34;
  --gold-2: #c79a4d;
  --gold-soft: #f5ede0;
  --ok: #1f7a4d;
  --warn: #a3551a;
  --err: #b3372c;
  --radius: 3px;
  --radius-lg: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 36, .05), 0 12px 32px -18px rgba(15, 23, 36, .22);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* <picture> is only a wrapper: keep the layout identical to a bare <img>. */
picture { display: contents; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.015em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.lede { font-size: 1.05rem; color: var(--ink-3); }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__name {
  font-size: 1.02rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); line-height: 1.1;
}
.brand__sub {
  display: block; font-size: .6rem; letter-spacing: .16em;
  color: var(--ink-3); font-weight: 500;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: block; padding: 8px 14px; font-size: .93rem; font-weight: 500;
  color: var(--ink-2); border-radius: var(--radius);
}
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #22304a; color: #fff; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #96702e; color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink-3); color: var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: 8px 14px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- Hero ---------------------------------------------------------------
   One full-bleed photograph of the showroom carries the whole opening panel;
   the copy sits on top of it behind a scrim so it stays readable on any crop
   and any screen. Nothing here depends on the picture's aspect ratio. */
.hero {
  position: relative; overflow: hidden; background: var(--bg-dark);
  display: flex; align-items: center; min-height: 660px; border-bottom: 0;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(9,14,24,.92) 0%, rgba(9,14,24,.78) 32%,
                    rgba(9,14,24,.44) 60%, rgba(9,14,24,.14) 100%),
    linear-gradient(180deg, rgba(9,14,24,.4) 0%, rgba(9,14,24,0) 26%, rgba(9,14,24,.5) 100%);
}
.hero__inner { position: relative; z-index: 2; display: block; padding: 108px 24px 100px; }
.hero__copy { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .eyebrow { color: var(--gold-2); }
.hero__lede { font-size: 1.08rem; color: rgba(255,255,255,.9); max-width: 52ch; margin-bottom: 14px; }
.hero__who { font-size: .92rem; color: rgba(255,255,255,.78); max-width: 56ch; margin-bottom: 28px; }
.hero__who strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; color: rgba(255,255,255,.82); }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero .tick { background: rgba(255,255,255,.16); color: var(--gold-2); }
.tick {
  width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: .6rem;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.hero__card {
  position: absolute; right: 24px; bottom: 40px; z-index: 3;
  background: rgba(9,14,24,.7); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 14px 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}
.hero__card strong { display: block; font-size: 1.5rem; color: #fff; line-height: 1.1; }
.hero__card span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }

/* --- Trust bar ---------------------------------------------------------- */
.trustbar { border-bottom: 1px solid var(--line-2); background: #fff; }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 32px 0;
}
.trustbar li { padding: 0 26px; border-left: 1px solid var(--line-2); }
.trustbar li:first-child { border-left: 0; padding-left: 0; }
.trustbar strong { display: block; color: var(--ink); font-size: 1rem; }
.trustbar span { font-size: .85rem; color: var(--ink-3); }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #d9d6ce; }
.card__media { background: var(--bg-alt); position: relative; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.card__title { font-size: 1.02rem; margin: 0; font-weight: 600; }
.card__title a:hover { color: var(--gold); }
.card__meta { font-size: .82rem; color: var(--ink-3); }

.cat-card .card__media img { aspect-ratio: 5 / 4; }
.cat-card__count {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.94);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  font-size: .72rem; font-weight: 600; color: var(--ink-2);
}

/* --- Product ------------------------------------------------------------ */
.product-card__media { background: #fbfbfa; }
.product-card__media img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-card__body { padding: 18px 20px 20px; gap: 0; }
.product-card__sku {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 6px;
}
.product-card__name { font-size: .98rem; font-weight: 600; color: var(--ink); margin: 0 0 10px; line-height: 1.35; }
.product-card__name a { color: inherit; }
.product-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.product-card__moq { font-size: .82rem; color: var(--ink-3); }
.price { font-size: 1.12rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.price small { font-size: .72rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price--locked { font-size: .82rem; font-weight: 600; color: var(--gold); }
.price--from { font-size: 1.02rem; }
.price--from em {
  font-style: normal; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 5px;
}
.tier-chip {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.tier-chip--1 { background: #f0efeb; color: #5d5646; }
.tier-chip--2 { background: #eceef1; color: #47536b; }
.tier-chip--3 { background: var(--gold-soft); color: #8a6320; }

/* --- Toolbar / filters -------------------------------------------------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 18px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px; font-size: .87rem; font-weight: 500;
}
.filter-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search {
  margin-left: auto; position: relative; min-width: 240px;
}
.search input { width: 100%; }

/* --- Forms -------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .hint { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: .95rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169, 124, 52, .12);
}
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-error { color: var(--err); font-size: .84rem; margin-top: 6px; }
.field-error { border-color: var(--err) !important; }

/* --- Alerts ------------------------------------------------------------- */
.alert {
  padding: 12px 15px; border-radius: var(--radius); font-size: .88rem;
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-2); margin-bottom: 18px;
}
.alert--g { border-color: #cfe7da; background: #f1f9f4; color: var(--ok); }
.alert--w { border-color: #f0e0c8; background: #fdf7ee; color: var(--warn); }
.alert--e { border-color: #f2d5d1; background: #fdf3f2; color: var(--err); }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; }

/* --- Panel / auth ------------------------------------------------------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow);
}
.panel--wide { max-width: 100%; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 68px 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px;
  font-size: .92rem; font-weight: 600; color: var(--ink-3);
}
.tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }

/* --- Spec list ---------------------------------------------------------- */
.spec { display: grid; grid-template-columns: 130px 1fr; gap: 0; border-top: 1px solid var(--line-2); }
.spec dt { padding: 11px 0; font-size: .84rem; color: var(--ink-3); font-weight: 500; }
.spec dd {
  margin: 0; padding: 11px 0; font-size: .9rem; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.spec dt { border-bottom: 1px solid var(--line-2); }
.spec dt:last-of-type, .spec dd:last-of-type { border-bottom: 0; }

/* --- Feature list ------------------------------------------------------- */
.feature { padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature__num {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; color: var(--gold); margin-bottom: 12px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: .9rem; color: var(--ink-3); margin: 0; }

/* --- Split (image + text) ---------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.stats strong { display: block; font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stats span { font-size: .82rem; color: var(--ink-3); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--bg-dark); color: #d7dce4; }
.cta-band h2 { color: #fff; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 58px 0;
}
.cta-band p { margin: 0; max-width: 52ch; color: #a9b3c2; }

/* --- Table -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; background: var(--bg-alt); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfa; }
td select, td input { padding: 6px 9px; font-size: .85rem; }
.nowrap { white-space: nowrap; }

/* --- Quotation sheet ----------------------------------------------------
   The catalogue is a price list, not a shop window: one line per model, the
   same nine facts in the same columns, so a buyer can quote straight off it. */
.quote-group { margin-bottom: 34px; }
.quote-group:last-child { margin-bottom: 0; }
.quote-group__head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin-bottom: 14px;
}
.quote-group__title { font-size: 1.1rem; margin: 0; }
.quote-group__meta { font-size: .8rem; color: var(--ink-3); }

.quote-table td { font-size: .87rem; padding: 11px 12px; }
.quote-table thead th { white-space: nowrap; }
.quote-table .q-photo { width: 1%; padding: 10px 14px 10px 10px; vertical-align: top; }

/* The thumbnail is drawn at the exact size the file is stored at (200 x 200),
   so the browser never resamples it. Pointing at it — or tapping it on a
   phone — opens the 800 px original, which is what a buyer needs to judge a
   frame, a hinge or a lens tint. */
.quote-table .q-photo__link {
  position: relative; display: block; width: 200px;
  border-radius: 8px; cursor: zoom-in; line-height: 0;
}
.quote-table .q-photo__link picture img,
.quote-table .q-photo__link > img {
  width: 200px; height: 200px; object-fit: cover; display: block;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-alt);
}
/* The enlarged copy is moved into a viewer by app.js; in the flow it is inert. */
.q-zoom { display: none; }
.quote-table .q-sku {
  font-weight: 700; white-space: nowrap; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.quote-table .q-name { min-width: 150px; }
.quote-table .q-name a { font-weight: 600; }
.quote-table .q-desc { display: block; margin-top: 2px; font-size: .78rem; color: var(--ink-3); font-weight: 400; }
/* Colour and material are free text of unpredictable length. Left on one line
   they pushed the sheet to ~1430 px and the price column fell outside a 1280
   laptop, so a buyer had to scroll sideways to read the one number the page
   exists for. They wrap instead; the capped width keeps the wording tidy. */
.quote-table .q-spec { color: var(--ink-2, #46536a); white-space: normal; max-width: 210px; }
.quote-table .q-moq { white-space: nowrap; }
.quote-table .q-price { white-space: nowrap; text-align: right; }
.quote-table .q-price .price { font-size: 1rem; }
.quote-table .q-price small { display: block; font-size: .72rem; color: var(--ink-3); }
.quote-table .q-price .price--from em { display: block; }
.quote-table .q-act { white-space: nowrap; text-align: right; padding-right: 14px; }

/* Detail page: the same sheet, one model at a time. */
.quote-spec { width: 100%; border-collapse: collapse; font-size: .88rem; }
.quote-spec th, .quote-spec td {
  padding: 10px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-2);
}
.quote-spec th {
  width: 170px; font-size: .82rem; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--ink-3); background: var(--bg-alt);
  white-space: nowrap;
}
.quote-spec tr:last-child th, .quote-spec tr:last-child td { border-bottom: 0; }
.quote-spec td { color: var(--ink); }
.quote-spec .quote-spec__price { font-size: 1.15rem; font-weight: 700; }

/* A price list has to stay readable on a phone, and ten columns cannot.
   Below 900px every row becomes a labelled block, so the buyer scrolls
   vertically instead of dragging a table sideways. */
@media (max-width: 900px) {
  .quote-table thead { display: none; }
  .quote-table, .quote-table tbody { display: block; width: 100%; }
  .quote-table tr { display: block; padding: 16px 14px 14px; border-bottom: 1px solid var(--line); }
  .quote-table tbody tr:last-child { border-bottom: 0; }
  .quote-table tbody tr:hover { background: transparent; }
  .quote-table td {
    display: grid; grid-template-columns: 104px 1fr; gap: 10px;
    padding: 3px 0; border: 0; font-size: .86rem;
  }
  .quote-table td::before {
    content: attr(data-label);
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink-3); padding-top: 2px;
  }
  .quote-table .q-photo { display: block; width: auto; padding: 0 0 12px; }
  .quote-table .q-photo::before { display: none; }
  .quote-table .q-photo__link { width: 100%; max-width: 260px; cursor: zoom-in; }
  .quote-table .q-photo__link picture img,
  .quote-table .q-photo__link > img { width: 100%; height: auto; aspect-ratio: 1; }
  .quote-table .q-name { min-width: 0; }
  .quote-table .q-spec { white-space: normal; }
  .quote-table .q-price, .quote-table .q-act { text-align: left; padding-right: 0; }
  .quote-table .q-price small, .quote-table .q-price .price--from em { display: inline; margin-left: 6px; }
  .quote-table .q-act { padding-top: 10px; }
  .quote-table + .quote-table { margin-top: 0; }
  .quote-group__head { margin-bottom: 0; }
  .quote-spec th { width: 120px; padding: 9px 10px; white-space: normal; font-size: .78rem; }
  .quote-spec td { padding: 9px 10px; }
}

/* --- Breadcrumb --------------------------------------------------------- */
.crumbs { font-size: .82rem; color: var(--ink-3); padding: 22px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 7px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 66px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h3 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 16px; font-weight: 700;
}
.footer-grid li { margin-bottom: 9px; }
.footer-grid a, .footer-grid p { font-size: .89rem; color: var(--ink-2); }
.footer-brand p { font-size: .89rem; color: var(--ink-3); max-width: 34ch; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .82rem; color: var(--ink-3);
}

/* --- Misc --------------------------------------------------------------- */
/* The price list carries a 200 px photo plus eight text columns. On a desktop
   the catalogue is allowed more width than a reading page, so the whole sheet
   stays visible without dragging it sideways. */
.page-catalogue { --wrap: 1460px; }

.locked-panel {
  border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--bg-alt);
  padding: 24px; text-align: center;
}
.hide { display: none !important; }
.skeleton { background: linear-gradient(90deg, #f2f1ee 25%, #e9e7e2 37%, #f2f1ee 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: start; padding: 34px 0 70px; }
.detail-media { background: #fbfbfa; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.detail-media img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.detail-price {
  display: flex; align-items: baseline; gap: 12px; padding: 20px 0 6px;
}
.detail-price .price { font-size: 1.7rem; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.tag {
  font-size: .75rem; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2);
}

/* --- Page head (inner pages) -------------------------------------------- */
.page-head {
  background: var(--bg-alt); border-bottom: 1px solid var(--line-2);
  padding: 34px 0 46px;
}
.page-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.55rem); margin-bottom: .35em; }
.page-head .lede { max-width: 68ch; margin-bottom: 0; }
.page-head .crumbs { padding: 0 0 18px; }

/* --- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.step { padding-top: 22px; border-top: 2px solid var(--ink); }
.step__n { font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--gold); }
.step h3 { font-size: 1rem; margin: 8px 0 6px; }
.step p { font-size: .89rem; color: var(--ink-3); margin: 0; }

/* --- Regions ------------------------------------------------------------ */
.regions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.regions > div { padding: 24px 26px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.regions > div:nth-child(3n) { border-right: 0; }
.regions h3 { font-size: .95rem; margin-bottom: 6px; }
.regions p { font-size: .86rem; color: var(--ink-3); margin: 0; }

/* --- Checklist ---------------------------------------------------------- */
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 11px; }
.checks .tick { margin-top: 4px; }

/* --- Contact blocks ----------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; }
.contact-card h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.contact-card strong { display: block; font-size: 1rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; word-break: break-word; }
.contact-card .small { margin: 0; }

/* Two scan-to-connect cards. A QR is only useful while it stays square and
   large enough to hold a phone camera's focus, so the pair sits side by side
   even on a phone and the image never shrinks below 132 px. */
.contact-cards--qr { grid-template-columns: repeat(2, minmax(0,1fr)); }
.qr-card { text-align: center; }
/* aspect-ratio rather than a fixed height: on a narrow phone the card's inner
   width can drop below 132 px, and a fixed height would squash the code into a
   rectangle that no camera will read. */
.qr-card img {
  width: 160px; max-width: 100%; height: auto; aspect-ratio: 1 / 1;
  display: block; margin: 0 auto 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.qr-card a img { cursor: pointer; transition: transform .15s ease; }
.qr-card a:hover img { transform: scale(1.03); }

/* A vertical phone clip. Left full-size it would be taller than the section
   around it, so it is held to a phone-like width and centred. */
.media-video { max-width: 380px; margin: 0 auto; }
.media-video video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  background: #000; border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 36, .5);
}
.media-video figcaption { text-align: center; font-size: .84rem; color: var(--ink-3); margin-top: 12px; }

/* --- Admin -------------------------------------------------------------- */
.admin-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat-card strong { display: block; font-size: 1.5rem; color: var(--ink); line-height: 1.15; }
.stat-card span { font-size: .78rem; color: var(--ink-3); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .regions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .regions > div:nth-child(3n) { border-right: 1px solid var(--line-2); }
  .regions > div:nth-child(2n) { border-right: 0; }
  .stat-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero__inner { padding: 88px 24px 80px; }
  .hero__card { right: 16px; bottom: 26px; padding: 12px 18px; }
  .detail-grid { grid-template-columns: 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .auth-layout { grid-template-columns: 1fr; gap: 36px; padding: 46px 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .trustbar li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr; }
  .regions > div { border-right: 0 !important; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards--qr { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .qr-card img { width: 132px; }
  .section { padding: 58px 0; }
  .wrap { padding: 0 18px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 18px 18px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 10px; }
  .header-actions .btn--ghost { display: none; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .search { margin-left: 0; width: 100%; }
  .toolbar { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .panel { padding: 22px; }
  .spec { grid-template-columns: 108px 1fr; }
}
/* Below 400px two columns leave each QR code only ~120 px wide on the common
   Android widths (390/393) — marginal for a phone camera — so the pair stacks
   and each code gets a comfortable 180 px. */
@media (max-width: 400px) {
  .contact-cards--qr { grid-template-columns: 1fr; }
  .qr-card img { width: 180px; }
}
@media (max-width: 520px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .trustbar__inner { grid-template-columns: 1fr; gap: 18px; }
  .trustbar li { border-left: 0; padding: 0; }
  .hero { min-height: 0; }
  .hero__inner { padding: 72px 24px 64px; }
  .hero__card { display: none; }
}

/* --- Photo viewer -------------------------------------------------------
   Two ways to see a style enlarged, because a phone has no pointer:
     .nw-zoom     floating panel, follows the pointer on hover-capable devices
     .nw-viewer   full-screen sheet, opened by tapping a photo on a touch screen
   Both show the same 800 px file that ships next to the 200 px thumbnail. */
.nw-zoom {
  position: fixed; z-index: 95; display: none; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 20px 50px -14px rgba(15, 23, 36, .38);
  pointer-events: none;
}
.nw-zoom.is-on { display: block; }
.nw-zoom img {
  display: block; max-width: none; border-radius: 6px; background: var(--bg-alt);
  width: var(--nw-zoom, 800px); height: var(--nw-zoom, 800px); object-fit: cover;
}

.nw-viewer {
  position: fixed; inset: 0; z-index: 130; display: none;
  background: rgba(8, 12, 20, .93); overscroll-behavior: contain;
}
.nw-viewer.is-on { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; }
.nw-viewer img {
  max-width: min(100%, 800px); max-height: 68vh; width: auto; height: auto;
  object-fit: contain; border-radius: 10px; background: #fff;
}
.nw-viewer__cap { color: #e9edf4; font-size: .9rem; text-align: center; margin: 0; }
.nw-viewer__cap span { display: block; color: #9aa5b6; font-size: .8rem; margin-top: 3px; }
.nw-viewer__row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nw-viewer__row .btn { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.nw-viewer__row .btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nw-viewer__row .btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.nw-viewer__row .btn--primary:hover { background: var(--gold-soft); color: var(--ink); }
.nw-viewer__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
  color: #fff; font-size: 1.4rem; line-height: 1;
}
body.nw-locked { overflow: hidden; }

/* --- Phone layout -------------------------------------------------------
   Most buyers in South-East Asia and the Middle East arrive on an Android or
   an iPhone, often on a slow connection, so the phone is treated as a
   first-class layout rather than a squeezed desktop:
     · the filter row scrolls sideways instead of stacking into a tall block
     · the toolbar sticks under the header so search is always one thumb away
     · every control is at least 44 px tall
     · the specification sheet becomes a two-column list that never overflows
   Sized in `rem`/percentages so a 360 px Android and a 430 px iPhone both fit. */
@media (max-width: 900px) {
  .toolbar {
    position: sticky; top: 0; z-index: 20;
    background: var(--bg); margin: 0 -18px 26px; padding: 12px 18px;
    gap: 10px; border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 18px -18px rgba(15, 23, 36, .5);
  }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; padding: 11px 18px; font-size: .88rem; }
  .search { flex: 1 1 100%; min-width: 0; }
  .search input, .search select { min-height: 44px; font-size: 1rem; }
  .quote-group { margin-bottom: 26px; }
  .quote-group__head { padding-bottom: 8px; margin-bottom: 4px; }
  .quote-group__head + .table-wrap { border: 0; border-radius: 0; background: transparent; }
  .quote-table tr { padding: 18px 4px 16px; }
  .quote-table tr:first-child { padding-top: 6px; }
  .quote-table td { grid-template-columns: 92px 1fr; gap: 10px; padding: 4px 0; }
  .quote-table td::before { font-size: .68rem; }
  .quote-table .q-sku { font-size: 1rem; }
  .quote-table .q-act { padding-top: 12px; }
  .quote-table .q-act .btn { width: 100%; min-height: 44px; }
  .quote-table .q-price .price { font-size: 1.15rem; }
  .btn { min-height: 40px; }
  .btn--sm { min-height: 36px; }
  .page-head { padding: 22px 0 30px; }
  .cta-band__inner { padding: 30px 0; }
  .cta-band__inner .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 46px 0; }
  .wrap { padding: 0 14px; }
  .toolbar { margin: 0 -14px 22px; padding: 10px 14px; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .page-head h1 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .lede { font-size: .96rem; }
  .quote-table td { grid-template-columns: 84px 1fr; }
  .quote-table .q-photo__link { max-width: 100%; }
  .quote-spec th { width: 96px; }
  .detail-price { flex-wrap: wrap; gap: 8px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .admin-tabs button { flex: 0 0 auto; }

  /* The header has to hold a brand, a menu button and a call to action in
     360 px. The strapline goes, the gaps close up, and the button shrinks —
     nothing is dropped that the buyer needs. */
  .site-header__inner { gap: 10px; height: 62px; }
  .brand__sub { display: none; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: .95rem; letter-spacing: .06em; }
  .nav-toggle { width: 40px; height: 40px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 12px; font-size: .8rem; }
}

/* Notched phones: keep the sticky bar and the footer clear of the home bar. */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .nw-viewer.is-on { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

@media print {
  .site-header, .site-footer, .toolbar, .cta-band, .nw-zoom, .nw-viewer { display: none !important; }
  .quote-table .q-act { display: none; }
  .quote-table { font-size: 10pt; }
}


/* --- 后台访客统计 --------------------------------------------------------- */
.visit-trend { display:flex; align-items:flex-end; gap:3px; height:120px; padding:6px 0 0; }
.visit-bar { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end;
  align-items:center; min-width:0; }
.visit-bar__fill { width:100%; background:linear-gradient(180deg,#2f6fd0,#1b4b96); border-radius:3px 3px 0 0;
  transition:height .3s ease; }
.visit-bar__x { font-size:.6rem; color:var(--ink-3); margin-top:3px; white-space:nowrap; }
.visit-meter { background:#eef1f6; border-radius:999px; height:8px; overflow:hidden; }
.visit-meter span { display:block; height:100%; background:#2f6fd0; border-radius:999px; }
