/* LabPup product site — Honor-style narrative rhythm, LabPup brand tokens */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700&display=swap");

:root {
  --brand: #f5b800;
  --brand-deep: #d49a00;
  --ink: #1a1a1a;
  --ink-2: #5c5c5c;
  --bg: #f7f5f0;
  --bg-soft: #efebe3;
  --bg-dark: #0e0e0e;
  --bg-dark-2: #1a1814;
  --line: #d9d4c8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --content: 1120px;
  --pad: clamp(20px, 6vw, 120px);
  --nav-h: 56px;
  --top-h: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--ink);
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* —— Top bar —— */
.topbar {
  height: var(--top-h);
  background: rgba(14, 14, 14, 0.92);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  backdrop-filter: blur(12px);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.topbar__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.topbar__links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.topbar__links a:hover { color: var(--brand); }

/* —— Product sticky subnav (Honor pattern) —— */
.subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(247, 245, 240, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  gap: 16px;
}
.subnav.is-dark {
  background: rgba(14, 14, 14, 0.92);
  border-bottom-color: var(--line-dark);
  color: var(--white);
}
.subnav__product {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.subnav__product span {
  color: var(--ink-2);
  font-weight: 500;
  margin-left: 8px;
  font-size: 12px;
}
.subnav.is-dark .subnav__product span { color: rgba(255, 255, 255, 0.55); }

.subnav__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  justify-content: center;
  scrollbar-width: none;
}
.subnav__tabs::-webkit-scrollbar { display: none; }
.subnav__tabs a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  position: relative;
  border-radius: 6px;
}
.subnav.is-dark .subnav__tabs a { color: rgba(255, 255, 255, 0.65); }
.subnav__tabs a:hover { color: var(--ink); }
.subnav.is-dark .subnav__tabs a:hover { color: var(--white); }
.subnav__tabs a.is-active {
  color: var(--ink);
  font-weight: 600;
}
.subnav.is-dark .subnav__tabs a.is-active { color: var(--white); }
.subnav__tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.subnav__buy {
  flex-shrink: 0;
  height: 36px;
  padding: 0 18px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: background 80ms ease;
}
.subnav__buy:hover { background: var(--brand-deep); }
.subnav__buy:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 80ms ease, color 80ms ease, border-color 80ms ease, transform 200ms var(--ease);
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--brand);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover { background: rgba(26, 26, 26, 0.05); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* —— Hero (full-bleed KV) —— */
.hero {
  position: relative;
  min-height: max(100vh, 720px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--bg-dark);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  transform: scale(1.02);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.35) 0%, rgba(14, 14, 14, 0.15) 40%, rgba(14, 14, 14, 0.88) 100%),
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(245, 184, 0, 0.18), transparent 60%);
}

/* Product cutout hero — device on dark gradient */
.hero--product .hero__media img {
  object-fit: contain;
  object-position: 88% 55%;
  opacity: 1;
  transform: none;
  padding: 6% 2% 4% 38%;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}
.hero--product .hero__shade {
  background:
    linear-gradient(105deg, rgba(14, 14, 14, 0.96) 0%, rgba(14, 14, 14, 0.72) 42%, rgba(14, 14, 14, 0.22) 68%, rgba(14, 14, 14, 0.55) 100%),
    radial-gradient(ellipse 70% 55% at 78% 48%, rgba(245, 184, 0, 0.14), transparent 62%);
  pointer-events: none;
}
.hero--product.hero-compact .hero__media img {
  padding: 8% 4% 8% 45%;
  object-position: 92% 50%;
}

/* Full-bleed lifestyle photo band */
.photo-bleed {
  position: relative;
  margin: 0;
  min-height: min(72vh, 640px);
  overflow: hidden;
  background: var(--bg-dark);
}
.photo-bleed img {
  width: 100%;
  height: 100%;
  min-height: min(72vh, 640px);
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Match story media height (~4:3 half-column ≈ 360–420px) */
.photo-bleed--compact {
  min-height: 0;
  height: clamp(320px, 28vw, 420px);
}
.photo-bleed--compact img {
  min-height: 0;
  height: 100%;
  object-position: center 45%;
}
.photo-bleed__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px var(--pad) 40px;
  background: linear-gradient(transparent, rgba(14, 14, 14, 0.85));
  color: var(--white);
}
.photo-bleed--compact .photo-bleed__cap {
  padding: 28px var(--pad) 24px;
}
.photo-bleed__cap .inner {
  padding: 0;
}
.photo-bleed__cap h2 {
  margin-bottom: 8px;
  max-width: 22ch;
}
.photo-bleed__cap p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 96px var(--pad) 80px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero__lead {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  margin: 0 0 12px;
  max-width: 28ch;
}
.hero__desc {
  margin: 0 0 32px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

.hero-compact {
  min-height: 420px;
  align-items: center;
}
.hero-compact .hero__content { padding-top: 72px; padding-bottom: 64px; }

/* —— Section bands —— */
.band {
  padding: 96px 0;
}
.band--soft { background: var(--bg-soft); }
.band--dark {
  background: var(--bg-dark);
  color: var(--white);
}
.band--dark .muted { color: rgba(255, 255, 255, 0.65); }
.inner {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 12px;
}
.band--dark .eyebrow { color: var(--brand); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}
h3 {
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 700;
}
.muted { color: var(--ink-2); }
.body { margin: 0; max-width: 54ch; }

/* Story split — floating media (no card frame) */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.story--flip .story__text { order: 2; }
.story--flip .story__media { order: 1; }
.story__media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: auto;
}
.story__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  display: block;
  box-shadow:
    0 2px 4px rgba(20, 16, 8, 0.04),
    0 24px 56px rgba(20, 16, 8, 0.14);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
.story:hover .story__media img {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(20, 16, 8, 0.05),
    0 32px 64px rgba(20, 16, 8, 0.16);
}
.band--dark .story__media img {
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 28px 64px rgba(0, 0, 0, 0.45);
}
.band--dark .story:hover .story__media img {
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.25),
    0 36px 72px rgba(0, 0, 0, 0.5);
}
.story__cap {
  position: static;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: none;
}
.band--dark .story__cap {
  color: rgba(255, 255, 255, 0.55);
}

/* Product cutouts — free-float + soft brand glow */
.story__media--cutout {
  align-items: center;
  isolation: isolate;
}
.story__media--cutout::before {
  content: "";
  position: absolute;
  inset: 12% 8% 18% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(245, 184, 0, 0.22) 0%,
    rgba(245, 184, 0, 0.06) 42%,
    transparent 70%
  );
  pointer-events: none;
}
.band--dark .story__media--cutout::before {
  background: radial-gradient(
    ellipse at center,
    rgba(245, 184, 0, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    transparent 72%
  );
}
.story__media--cutout img {
  aspect-ratio: auto;
  max-height: min(440px, 52vw);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 22px 40px rgba(20, 16, 8, 0.22));
  background: transparent;
}
.story:hover .story__media--cutout img {
  box-shadow: none;
  filter: drop-shadow(0 28px 48px rgba(20, 16, 8, 0.28));
}
.band--dark .story__media--cutout img,
.band--dark .story:hover .story__media--cutout img {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}
.story__media--cutout .story__cap {
  text-align: center;
  width: 100%;
}

/* Reasons strip (Honor “心动理由” style) */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.reason {
  background: var(--bg);
  padding: 36px 28px;
  min-height: 180px;
}
.reason__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  margin-bottom: 12px;
}
.reason__title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.reason p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* Spec strip */
.specs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.spec strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
}
.spec span {
  font-size: 13px;
  color: var(--ink-2);
}
.band--dark .spec span { color: rgba(255, 255, 255, 0.6); }

/* CTA closing */
.cta-close {
  text-align: center;
  padding: 120px var(--pad);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(245, 184, 0, 0.2), transparent 55%),
    var(--bg-dark);
  color: var(--white);
}
.cta-close h2 { margin-bottom: 28px; }
.cta-close .btn-row { justify-content: center; }

/* Tips layout */
.tips-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.anchor-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.anchor-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.anchor-nav a:hover,
.anchor-nav a.is-active {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}
.tip-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.tip-block:last-child { border-bottom: 0; }
.tip-block__media {
  background: #e8e4da;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.tip-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--brand-deep);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 0;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Buy paths */
.path-tabs {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 40px;
}
.path-tabs a {
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.path-tabs a.is-on {
  background: var(--brand);
}
.path-tabs--dark {
  border-color: rgba(255, 255, 255, 0.45);
}
.path-tabs--dark a { color: rgba(255, 255, 255, 0.85); }
.path-tabs--dark a.is-on { color: var(--ink); }

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.store-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 28px;
  border-radius: 8px;
  display: grid;
  gap: 12px;
}
.store-card__ico {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-2);
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.region-tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.region-tabs button.is-on {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.dealer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.dealer__name { font-weight: 700; }
.dealer__meta { color: var(--ink-2); font-size: 13px; }
.region-panel[hidden] { display: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.info-list dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-top: 18px;
}
.info-list dd { margin: 6px 0 0; font-weight: 500; }
.map-ph {
  margin-top: 28px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #e8e4da, #d4cfc2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 14px;
}
.form {
  display: grid;
  gap: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--white);
  font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: transparent;
}
.form-note {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px var(--pad) 40px;
  font-size: 13px;
}
.footer__grid {
  width: min(100%, var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer strong {
  display: block;
  color: var(--white);
  margin-bottom: 12px;
  font-size: 14px;
}
.footer a:hover { color: var(--brand); }
.footer__copy {
  width: min(100%, var(--content));
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  text-align: center;
  color: #999;
  font-size: 12px;
  line-height: 1.7;
}
.footer__copy p {
  margin: 0;
}
.footer__copy p + p {
  margin-top: 6px;
}
.footer__beian {
  color: #999;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__beian:hover {
  color: #ccc;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .story,
  .story--flip .story__text,
  .story--flip .story__media,
  .tips-layout,
  .tip-block,
  .contact-grid,
  .store-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .story--flip .story__text,
  .story--flip .story__media { order: unset; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr 1fr; gap: 28px; }
  .anchor-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .dealer { grid-template-columns: 1fr 1fr; }
  .subnav__product span { display: none; }
  .topbar__links { display: none; }
  .hero--product .hero__media img,
  .hero--product.hero-compact .hero__media img {
    padding: 12% 8% 38% 8%;
    object-position: center 20%;
  }
  .hero--product .hero__shade {
    background:
      linear-gradient(180deg, rgba(14, 14, 14, 0.35) 0%, rgba(14, 14, 14, 0.2) 35%, rgba(14, 14, 14, 0.92) 72%),
      radial-gradient(ellipse 80% 45% at 50% 25%, rgba(245, 184, 0, 0.14), transparent 60%);
  }
  .photo-bleed { min-height: 52vh; }
  .photo-bleed img { min-height: 52vh; }
  .photo-bleed--compact,
  .photo-bleed--compact img {
    min-height: 0;
    height: 280px;
  }
}

@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; text-align: left; }
  .hero { min-height: 100svh; }
  .subnav__tabs a { padding: 8px 10px; font-size: 13px; }
}
