:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0ea5e9;
  --accent-2: #2563eb;
  --accent-ink: #075985;
  --ring: rgba(14, 165, 233, 0.25);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 4px var(--ring); }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 18px var(--ring); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* hero */
.featured { padding: 64px 0 40px; }
.featured-grid { display: grid; grid-template-columns: minmax(270px, 0.82fr) 1.18fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--ring); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.featured h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -.5px; }
.featured p.lead { font-size: 17px; color: var(--muted); margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* 首页主推：图片拆分平铺拼贴 */
.collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr 0.62fr; gap: 10px; height: 480px; }
.collage .cell { position: relative; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow); background: #eef2f7; display: block; height: 100%; }
.collage .cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.collage .cell:hover img { transform: scale(1.05); }
.collage .c-main { grid-row: 1 / span 2; }
.collage .c-wide { grid-column: 1 / span 2; grid-row: 3; }
.collage .cell::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--border); border-radius: 16px; pointer-events: none; }

/* intro / about band */
.intro { padding: 56px 0 44px; background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%); border-bottom: 1px solid var(--border); }
.intro .eyebrow { margin-bottom: 14px; }
.intro-title { font-size: 30px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -.4px; max-width: 760px; }
.intro-lead { font-size: 16px; color: var(--muted); margin: 0 0 32px; max-width: 820px; }
.intro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.intro-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.intro-card .intro-ic { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--ring); color: var(--accent-ink); font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.intro-card h3 { font-size: 17px; margin: 0 0 8px; }
.intro-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* trust bar */
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 20px 0 8px; color: var(--muted); font-size: 13px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust b { color: var(--text); font-weight: 600; }

/* section */
.section { padding: 56px 0; }
.section h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.3px; }
.section .sub { color: var(--muted); margin: 0 0 32px; }

/* feature grid */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--ring); color: var(--accent-ink); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* specs table */
.specs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.specs .row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.specs .row:last-child { border-bottom: none; }
.specs .k { color: var(--muted); font-size: 14px; }
.specs .v { font-weight: 600; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery img { width: 100%; }
.gallery figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* video */
.video-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #000; }
.video-wrap video { width: 100%; display: block; }

/* editions */
.edition { display: flex; flex-direction: column; gap: 8px; }
.edition .price { font-size: 13px; color: var(--accent-ink); font-weight: 700; }
.edition ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.edition ul li { margin: 2px 0; }
.badge-pop { border: 1px solid var(--accent); box-shadow: 0 0 0 3px var(--ring); }

/* form */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 640px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hidden { position: absolute; left: -9999px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-grid a { color: var(--accent-ink); }

.lightbox { position: fixed; inset: 0; background: rgba(15,23,42,.9); display: none; place-items: center; z-index: 200; padding: 40px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox .close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 28px; cursor: pointer; }

@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured h1 { font-size: 32px; }
  .collage { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .collage .cell { aspect-ratio: 1 / 1; }
  .collage .c-main { grid-row: auto; grid-column: 1 / span 2; aspect-ratio: 4 / 3; }
  .collage .c-wide { grid-column: 1 / span 2; aspect-ratio: 21 / 7; }
  .grid.cols-3, .grid.cols-2, .gallery { grid-template-columns: 1fr; }
  .intro-cards { grid-template-columns: 1fr; gap: 14px; }
  .intro-title { font-size: 25px; }
  .specs .row { grid-template-columns: 130px 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* ---- language toggle ---- */
.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang-toggle button { border: none; background: transparent; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-toggle button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

/* ---- category chips ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* ---- product grid (homepage) ---- */
.product-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,23,42,.10); }
.pcard-media { aspect-ratio: 4 / 3; background: #eef2f7; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-body h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.35; }
.ptag { margin: 0; color: var(--muted); font-size: 13.5px; }
.plink { margin-top: auto; color: var(--accent-ink); font-weight: 600; font-size: 14px; }

.badge-cat { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--ring); padding: 3px 10px; border-radius: 999px; }
.badge-cat.sm { font-size: 11px; padding: 2px 8px; }

/* ---- product detail layout ---- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.media { position: sticky; top: 84px; }
.main-media { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); cursor: zoom-in; }
.main-media img { width: 100%; display: block; }
.main-media.placeholder { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); font-weight: 600; cursor: default; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s; }
.thumbs img:hover { border-color: var(--accent); }
.info .badge-cat { margin-bottom: 10px; }
.info h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.3px; }
.info .lead { font-size: 17px; color: var(--accent-ink); font-weight: 600; margin: 0 0 14px; }
.info .desc { color: var(--muted); margin: 0 0 24px; }

/* hero media link */

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .media { position: static; }
}
