/* ============ 基础与变量 · 冰晶鸢尾 ============ */
:root {
  --bg: #F2F9FF;
  --card: #FFFFFF;
  --ink: #1F2E4A;
  --ink-2: #5C6E8C;
  --ink-3: #8BA0BC;
  --accent: #4AA8E8;
  --deep: #2E86D1;
  --line: #D8E6F5;
  --muted: #8BA0BC;
  --primary: #2E86D1;
  --iris: #4AA8E8;
  --blue: #3E9AE0;
  --violet: #6FBCF0;
  --mist: #F6FBFF;
  --sans: -apple-system, "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --r-lg: 24px;
  --transition: .2s ease;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; padding: 0 }
html.lock, html.lock body { overflow: hidden }
body {
  background: linear-gradient(135deg, #4FA8EA 0%, #2E86D1 52%, #2F6FC8 100%);
  font-family: var(--sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer }
a { color: inherit; text-decoration: none }
img, svg { display: block }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px }

/* 主列：390 设计，480 封顶居中 */
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: linear-gradient(180deg, #F0F8FF 0%, #EAF4FE 28%, #FBFEFF 100%);
  box-shadow: 0 0 0 1px rgba(46,134,209,.22), 0 30px 90px -50px rgba(30,100,190,.50);
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

/* ============ 首屏：冰晶鸢尾渐变色带 ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 20px 72px;
  border-radius: 0 0 34px 34px;
  background: linear-gradient(125deg, #6FC1F2 0%, #3E9AE0 40%, #2E86D1 70%, #2F6FC8 100%);
  box-shadow: inset 0 -1px rgba(255,255,255,.32), 0 24px 52px -30px rgba(30,110,200,.60);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 230px;
  top: -112px;
  right: -190px;
  transform: rotate(-13deg);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 48% 52% 44% 56% / 52% 42% 58% 48%;
  background: linear-gradient(112deg, rgba(255,255,255,.02) 15%, rgba(255,255,255,.28) 38%, rgba(125,200,245,.30) 58%, rgba(220,240,255,.20) 76%);
  box-shadow: inset 26px -24px 52px rgba(255,255,255,.12);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), rgba(255,255,255,.82), transparent);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1 }

.wordmark {
  margin: 0;
  text-align: center;
  font-size: 23px;
  font-weight: 350;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(20,80,160,.20);
}
.wordmark-en {
  margin: 6px 0 0;
  text-align: center;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .46em;
  text-indent: .46em;
  color: #EAF6FF;
  opacity: .9;
}
.search {
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 23px;
  box-shadow: 0 16px 34px -22px rgba(30,100,190,.40), inset 0 0 0 1px rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.search svg { flex: 0 0 auto }
.search svg * { stroke: #5C8DB8 }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: .04em;
}
.search input::placeholder { color: var(--ink-3) }
.search input:focus { outline: none }
.search:focus-within { border-color: #BFE0FB; box-shadow: 0 0 0 3px rgba(46,150,220,.25) }

.hero-copy { margin-top: 26px; text-align: center }
.hero-line {
  margin: 0;
  font-size: 19px;
  font-weight: 350;
  letter-spacing: .22em;
  text-indent: .22em;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(20,80,160,.20);
}
.hero-sub {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-indent: .18em;
  color: #E8F4FF;
  opacity: .94;
}

/* ============ 单行品牌滑动轨道 ============ */
.brands {
  position: relative;
  z-index: 2;
  margin: -40px 16px 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(190,222,245,.90);
  border-radius: 22px;
  box-shadow: 0 20px 42px -25px rgba(46,134,209,.40), inset 0 1px rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand-rail-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.brand-rail-wrap::before,
.brand-rail-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1px; bottom: 1px;
  width: 24px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s ease;
}
.brand-rail-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248,249,255,.98), rgba(248,249,255,0));
}
.brand-rail-wrap::after {
  right: 0;
  background: linear-gradient(90deg, rgba(248,249,255,0), rgba(248,249,255,.98));
}
.brand-rail-wrap.at-start::before,
.brand-rail-wrap.at-end::after { opacity: 0 }
.brand-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 24px 1px 1px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.brand-rail::-webkit-scrollbar { display: none }
.brand {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #CFE0F2;
  border-radius: 14px;
  background: rgba(249,250,255,.9);
  color: #5C728E;
  scroll-snap-align: center;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.brand-all { min-width: 66px; padding-inline: 12px }
.brand::before {
  content: "";
  flex: 0 0 auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}
.brand-all::before { width: 12px; border-radius: 3px }
.brand-name {
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .04em;
  color: inherit;
}
.brand.on {
  background: #2E86D1;
  border-color: #2E86D1;
  color: #FFFFFF;
  box-shadow: 0 10px 20px -15px rgba(46,134,209,.50);
}
.brand.on::before { background: #fff; opacity: .9 }
.brand:active { transform: scale(.97) }

/* ============ 分类标签条 ============ */
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 18px;
  background: rgba(242,245,255,.92);
  border-bottom: 1px solid rgba(222,227,241,.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.tabs-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
}
.tabs-track::-webkit-scrollbar { display: none }
.tabs-track:not(.sub) {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.tabs-track:not(.sub)::-webkit-scrollbar { display: none }
.tabs-track:not(.sub) .tab {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid #CFE0F2;
  background: rgba(255,255,255,.9);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.tab.on {
  background: #2E86D1;
  border-color: #2E86D1;
  color: #FFFFFF;
  box-shadow: 0 9px 20px -15px rgba(46,134,209,.45);
}
/* 二级分类行 */
.tabs-track.sub { padding-top: 0; padding-bottom: 12px }
.tabs-track.sub[hidden] { display: none }
.stab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 19px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}
.stab.on {
  background: #E0F1FD;
  border-color: #9CCBEE;
  color: #1E73B8;
  font-weight: 500;
}

/* ============ 产品卡片流 ============ */
.products { padding-top: 24px }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 20px 12px;
}
.sec-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .24em;
  color: #26364D;
}
.sec-note { font-size: 10px; letter-spacing: .12em; color: #4AA8E8 }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px;
}
.card {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(218,223,239,.96);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 18px 38px -30px rgba(46,134,209,.30), inset 0 1px rgba(255,255,255,.9);
  transition: transform .16s ease;
}
.card:active { transform: scale(.975) }
.thumb {
  display: block;
  aspect-ratio: 1/1;
  background: linear-gradient(158deg, #F8FCFF 0%, #E3F0FC 50%, #DCEBFA 100%);
  border-bottom: 1px solid rgba(224,228,243,.72);
  padding: 10px;
  overflow: hidden;
}
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; border-radius: 12px }
.card-info { display: block; padding: 12px 14px 14px }
.btag {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: #4AA8E8;
  border: 1px solid #B8D9F3;
  background: #EDF7FE;
  border-radius: 8px;
  padding: 2px 7px;
}
.card-name {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .02em;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.price { color: #2E86D1; white-space: nowrap }
.price .cur { font-size: 11px; font-weight: 500; margin-right: 1px }
.price .num {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.card-spec { font-size: 10px; color: #8BA0BC; letter-spacing: .04em }
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 56px 0 64px;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

/* ============ 页脚 ============ */
.foot {
  margin-top: 36px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .22em;
  text-indent: .22em;
  color: #8BA0BC;
}

/* ============ 全屏 Overlay（详情 / 备案） ============ */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; justify-content: center;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .26s ease, visibility 0s linear .26s;
}
.overlay.open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .26s ease }
.o-col {
  position: relative;
  width: 100%; max-width: 480px;
  height: 100dvh;
  background: linear-gradient(180deg, #F3FAFF 0%, #EAF4FE 100%);
  box-shadow: 0 0 56px rgba(30,90,170,.25);
  display: flex; flex-direction: column;
  transform: translateY(3%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.overlay.open .o-col { transform: none }
.o-close {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(217,222,239,.96);
  box-shadow: 0 10px 22px -16px rgba(46,134,209,.30);
  color: var(--ink);
}
.sheet { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 112px }

/* 轮播 */
.carousel { position: relative }
.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1/1;
  background: linear-gradient(155deg, #FAFDFF 0%, #DDEDFC 48%, #D6E8F9 100%);
  padding: 34px;
}
.slide img { width: 100%; height: 100%; object-fit: contain }
.slide svg { width: 100%; height: 100% }
.dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 7px;
  pointer-events: none;
}
.dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: #C4D8EA;
  transition: width .25s ease, background .25s ease;
}
.dot.on { width: 18px; background: #4AA8E8 }

/* 详情信息区 */
.d-body { padding: 22px 22px 8px }
.d-name {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .03em;
}
.d-price { margin-top: 12px; display: flex; align-items: baseline; gap: 10px }
.d-price .cur { font-size: 14px; font-weight: 500; color: #2E86D1 }
.d-price .num {
  font-size: 32px; font-weight: 600; color: #2E86D1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.d-unit { font-size: 11px; color: #8BA0BC; letter-spacing: .08em }
.d-meta { margin: 20px 0 0; border-top: 1px solid #D8E6F5 }
.d-meta > div {
  display: flex; gap: 18px;
  padding: 11px 2px;
  border-bottom: 1px solid #D8E6F5;
  font-size: 12.5px;
}
.d-meta dt { flex: 0 0 3em; margin: 0; color: var(--ink-3); letter-spacing: .14em }
.d-meta dd { margin: 0; color: var(--ink-2) }
.d-sub {
  margin: 22px 0 0;
  font-size: 12px; font-weight: 500;
  letter-spacing: .26em; color: var(--ink-3);
}
.d-desc {
  margin: 8px 0 0;
  font-size: 13.5px; line-height: 1.9;
  color: var(--ink-2);
  letter-spacing: .02em;
}

/* 底部操作栏 */
.d-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(250,251,255,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid #D4E5F5;
}
.btn {
  flex: 1;
  min-height: 48px;
  border-radius: 24px;
  font-size: 14px;
  letter-spacing: .1em;
  text-indent: .1em;
  display: grid; place-items: center;
  transition: transform .15s ease, opacity .2s;
}
.btn:active { transform: scale(.97) }
.btn.primary { background: #2E86D1; color: #FFFFFF; flex: 1.35; box-shadow: 0 12px 24px -18px rgba(46,134,209,.60) }
.btn.ghost { background: var(--card); color: #2E86D1; border: 1px solid #C4DFF4 }
.btn[hidden] { display: none }

/* 备案层 */
.overlay.reg { z-index: 50 }
.reg-body {
  flex: 1; overflow-y: auto;
  padding: 76px 26px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
.reg-title {
  margin: 0; text-align: center;
  font-size: 15px; font-weight: 500; letter-spacing: .3em; text-indent: .3em;
}
.reg-name {
  margin: 8px 0 20px; text-align: center;
  font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3);
}
.reg-ph {
  flex: 1; min-height: 0;
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 14px;
  display: grid; place-items: center;
}
.reg-ph svg, .reg-ph img { width: 100%; height: 100%; max-height: 56vh; object-fit: contain }
.reg-note {
  margin: 14px 0 16px; text-align: center;
  font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3);
}
.reg-body .btn { flex: 0 0 auto }

/* ============ 分享海报层 ============ */
.overlay.poster { z-index: 55; align-items: center }
.poster-scrim { position: absolute; inset: 0; background: rgba(15,40,80,.60) }
.poster-wrap {
  position: relative;
  width: min(316px, 82vw);
  display: flex; flex-direction: column; gap: 14px;
  max-height: 92dvh;
}
.poster-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.5);
}
.poster-img {
  background: linear-gradient(155deg, #FAFDFF 0%, #DDEDFC 48%, #D6E8F9 100%);
  padding: 20px;
}
.poster-img svg, .poster-img img { width: 100%; height: auto }
.poster-info { padding: 16px 18px 14px }
.poster-name {
  margin: 8px 0 0;
  font-size: 15px; font-weight: 500;
  line-height: 1.5; letter-spacing: .02em;
}
.poster-row {
  margin-top: 10px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.poster-price { color: #2E86D1 }
.poster-price .cur { font-size: 12px; font-weight: 500 }
.poster-price .num { font-size: 26px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums }
.poster-spec { display: block; margin-top: 2px; font-size: 10px; color: var(--ink-3); letter-spacing: .06em }
.qr {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.qr svg, .qr img { width: 100%; height: 100% }
.poster-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 14px;
  border-top: 1px dashed var(--line);
}
.poster-mark { font-size: 10px; letter-spacing: .3em; text-indent: .3em; color: var(--ink-2) }
.poster-scan { font-size: 9px; letter-spacing: .12em; color: var(--ink-3) }
.poster-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: .18em;
  text-indent: .18em;
  color: rgba(255,255,255,.92);
}
.poster-actions { display: flex; gap: 10px }
.poster-actions .btn { background: rgba(255,255,255,.94) }
.poster-actions .btn.primary { background: var(--deep) }
.poster-x {
  position: absolute;
  top: -52px; right: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 104px;
  transform: translate(-50%, 8px);
  background: rgba(20,35,58,.92);
  color: #EAF4FF;
  font-size: 12.5px;
  letter-spacing: .12em;
  text-indent: .12em;
  padding: 10px 22px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) }

/* ============ 动效 ============ */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    animation: rise .7s cubic-bezier(.22,.61,.36,1) both;
    animation-delay: var(--d, 0s);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px) }
    to { opacity: 1; transform: none }
  }
  .card { opacity: 0 }
  .card.in {
    opacity: 1;
    animation: cardin .6s cubic-bezier(.22,.61,.36,1) backwards;
    animation-delay: var(--cd, 0s);
  }
  @keyframes cardin {
    from { opacity: 0; transform: translateY(18px) }
    to { opacity: 1; transform: none }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============ 产品详情页 ============ */
.detail-page { position: relative }
.detail-back {
  position: fixed; top: 14px; left: max(14px, calc(50vw - 226px)); z-index: 10;
}
.detail-gallery { position: relative }
.detail-gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none }
.detail-gallery .track::-webkit-scrollbar { display: none }
.detail-gallery .slide {
  flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 1/1;
  background: linear-gradient(155deg, #FAFDFF 0%, #DDEDFC 48%, #D6E8F9 100%);
  padding: 24px;
}
.detail-gallery .slide img { width: 100%; height: 100%; object-fit: contain }
.detail-gallery .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; pointer-events: none }
.detail-body { padding: 22px 22px 8px }
.detail-name { margin: 10px 0 0; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: .03em }
.detail-price { margin-top: 12px; display: flex; align-items: baseline; gap: 10px }
.detail-price .cur { font-size: 14px; font-weight: 500; color: #2E86D1 }
.detail-price .num { font-size: 32px; font-weight: 600; color: #2E86D1; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.detail-unit { font-size: 11px; color: #8BA0BC; letter-spacing: .08em }
.detail-meta { margin: 20px 0 0; border-top: 1px solid #D8E6F5 }
.detail-meta > div { display: flex; gap: 18px; padding: 11px 2px; border-bottom: 1px solid #D8E6F5; font-size: 12.5px }
.detail-meta dt { flex: 0 0 3em; margin: 0; color: var(--ink-3); letter-spacing: .14em }
.detail-meta dd { margin: 0; color: var(--ink-2) }
.detail-sub { margin: 22px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .26em; color: var(--ink-3) }
.detail-desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); letter-spacing: .02em }

/* 备案图轮播 */
.reg-sheet { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 64px 16px calc(24px + env(safe-area-inset-bottom)) }
.reg-track { margin-top: 16px; border-radius: 16px }
.reg-slide { aspect-ratio: auto; height: min(64vh, 540px); padding: 0; background: #fff }
.reg-slide img { object-fit: contain; width: 100%; height: 100% }
.reg-counter { margin: 10px 0 0; text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--ink-3) }

/* 备案图多图 */
.registration-images { display: flex; flex-direction: column; gap: 12px; }
.registration-images img { width: 100%; height: auto; border-radius: 16px; background: #fff }

/* Action buttons */
.d-actions { display: flex; gap: 10px; margin-top: 18px }
.d-actions .btn { flex: 1; min-height: 44px; font-size: 14px; font-weight: 600; border-radius: 22px; cursor: pointer; transition: all .2s }
.d-actions .btn.ghost { background: transparent; border: 1.5px solid var(--deep); color: var(--deep) }
.d-actions .btn.ghost:active { background: rgba(46,134,209,.12) }
.d-actions .btn.primary { background: var(--deep); border: 1.5px solid var(--deep); color: #fff }
.d-actions .btn.primary:active { opacity: .85 }

/* Poster panel (detail page) */
.poster-panel {
  background: #FFFFFF;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.poster-title {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  color: var(--ink);
  letter-spacing: .12em;
}
.poster-container {
  background: #fff;
  border-radius: 20px;
  padding: 6px;
  border: 1.5px solid rgba(46,134,209,.25);
  box-shadow: 0 8px 32px -12px rgba(46,134,209,.25), 0 2px 8px rgba(0,0,0,.04);
  flex: 0 0 auto;
  width: min(300px, 76vw);
  margin: 0 auto;
}
.poster-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  -webkit-touch-callout: default;
  touch-action: manipulation;
}
.poster-tip { text-align: center; font-size: 12px; color: var(--muted); margin: 0 }

/* Unavailable page */
.unavailable-page { display: grid; place-items: center; padding: 24px }
.unavailable-card { width: 100%; padding: 34px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg) }
.unavailable-card h1 { margin: 12px 0 8px; font-size: 24px }
.unavailable-card p { color: var(--ink-2) }
.unavailable-mark { color: var(--deep); font-size: 12px; letter-spacing: .15em }
.unavailable-card .btn { margin-top: 22px; text-decoration: none }

/* ============ 前台底栏导航 ============ */
.catalog-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100%);
  height: 58px;
  z-index: 100;
  display: flex;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-top: 0.5px solid rgba(46,134,209,.12);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
}
.catalog-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.catalog-bottom-nav a svg {
  width: 22px; height: 22px;
  transition: transform var(--transition);
}
.catalog-bottom-nav a.active { color: var(--deep) }
.catalog-bottom-nav a.active svg { transform: scale(1.1) }
.catalog-bottom-nav a:active svg { transform: scale(.9) }

/* ============ 分页 ============ */
.catalog-pagination { padding: 20px 16px 40px; text-align: center }
.catalog-pagination .pagination-wrapper { display: flex; flex-direction: column; align-items: center; gap: 10px }
.catalog-pagination .pag-meta { font-size: 12px; color: var(--muted) }
.catalog-pagination .pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap }
.catalog-pagination a,
.catalog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--r-lg); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all .15s;
}
.catalog-pagination a { background: var(--card); color: var(--ink); border: 1px solid var(--line) }
.catalog-pagination a:hover { border-color: var(--accent); color: var(--accent) }
.catalog-pagination .pagination .active { background: var(--accent); color: #fff; border: 1px solid var(--accent) }
.catalog-pagination .pag-disabled { opacity: .4; pointer-events: none }

/* ============ 详情页缩略图条 ============ */
.d-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 14px 12px;
  scrollbar-width: none;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.d-thumbs::-webkit-scrollbar { display: none }
.d-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F2F9FF;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.d-thumb img,
.d-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.d-thumb.on {
  border-color: var(--deep);
  box-shadow: 0 0 0 1px var(--deep);
}
.d-thumb:active { transform: scale(.95) }

/* ============ 产品描述与长图 ============ */
.product-description { white-space: pre-wrap; }
.product-long-images { background: #fff; }
.product-long-images img { width: 100%; height: auto; display: block; }
