/* ==========================================================================
   落地页样式 —— 一般不需要改这个文件
   想换主色调，只改下面 :root 里的 --accent 一行就够了。
   ========================================================================== */

:root {
  --ink:        #0d1117;
  --ink-2:      #5b6472;
  --ink-3:      #8b95a3;
  --bg:         #f5f6f8;
  --card:       #ffffff;
  --line:       #e6e9ee;
  --accent:     #e8552f;   /* ← 主色，改这里 */
  --wa:         #25d366;
  --radius:     14px;
  --radius-lg:  22px;
  --gap:        12px;
  --shell:      1080px;
  --shadow:     0 1px 2px rgba(13,17,23,.05), 0 10px 28px rgba(13,17,23,.07);
  --shadow-2:   0 2px 8px rgba(13,17,23,.10), 0 22px 46px rgba(13,17,23,.16);
  --ease:       cubic-bezier(.22,.61,.36,1);
}

@media (min-width: 700px) { :root { --gap: 16px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 58px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  flex: none;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font: 700 16px/1 inherit; letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__text b {
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__text i {
  font-style: normal; font-size: 11px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar__wa {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px 0 12px;
  border-radius: 999px;
  background: var(--wa); color: #06301a;
  font-size: 14px; font-weight: 650;
  box-shadow: 0 2px 10px rgba(37,211,102,.35);
  transition: transform .18s var(--ease);
}
.topbar__wa svg { width: 18px; height: 18px; }
.topbar__wa:active { transform: scale(.96); }

@media (max-width: 420px) {
  .topbar__wa span { display: none; }
  .topbar__wa { padding: 0; width: 38px; justify-content: center; }
}

.topbar__right { display: flex; align-items: center; gap: 10px; }

/* 语言切换：EN / ES / FR */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-3);
  padding: 5px 9px; border-radius: 999px;
  transition: background .16s var(--ease), color .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .lang button:not([aria-pressed="true"]):hover { color: var(--ink); } }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 小屏省地方：藏掉品牌副标题，语言按钮缩小一点 */
@media (max-width: 480px) {
  .brand__text i { display: none; }
  .lang button { padding: 5px 7px; font-size: 11px; }
}

/* ---------------- 头部文案 ---------------- */

.hero { padding: 34px 0 6px; }
.hero__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.hero__title {
  margin-top: 8px;
  font-size: clamp(26px, 7.2vw, 40px);
  line-height: 1.14; letter-spacing: -.025em; font-weight: 760;
}
.hero__text { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.hero__note { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; }

/* ---------------- 标题组 ---------------- */

.sec-head { margin: 0 0 16px; }
.sec-head__title {
  font-size: clamp(20px, 5.4vw, 26px); font-weight: 740;
  letter-spacing: -.022em; line-height: 1.2;
}
.sec-head__title em {
  display: inline-block; margin-left: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  letter-spacing: .06em; vertical-align: 3px;
}
.sec-head__sub { margin-top: 6px; color: var(--ink-2); font-size: 14px; max-width: 60ch; }

/* ---------------- 方块网格 ---------------- */

.catalog { padding: 20px 0 8px; }

.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }

.tile {
  flex: 0 0 calc((100% - var(--gap)) / 2);
  max-width: 250px;
  aspect-ratio: 1 / 1;
  opacity: 0; transform: translateY(10px);
}
.tile.is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (min-width: 640px) { .tile { flex-basis: calc((100% - var(--gap) * 2) / 3); } }
/* 1000px 以上：方块数是 3 的倍数就排 3 列（如 6 个 = 2 行、12 个 = 4 行），左右对称 */
@media (min-width: 1000px) { .tile { flex-basis: calc((100% - var(--gap) * 2) / 3); max-width: 322px; } }
/* 方块数是 4 的倍数且超过 8 个时，电脑上排 4 列，省一半高度 */
@media (min-width: 1000px) {
  .grid--4 .tile { flex-basis: calc((100% - var(--gap) * 3) / 4); max-width: 250px; }
}

.tile__a {
  position: relative; display: block;
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #1b2333, #0d1117);
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .tile__a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .tile__a:hover .tile__img { transform: scale(1.06); }
}
.tile__a:active { transform: scale(.975); }

.tile__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}

.tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,9,15,.86) 0%, rgba(6,9,15,.42) 34%, rgba(6,9,15,0) 62%);
}

.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 14px 13px;
  color: #fff;
  display: flex; flex-direction: column; gap: 1px;
}
.tile__label b {
  font-size: 16.5px; font-weight: 700; letter-spacing: -.012em; line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.tile__label i {
  font-style: normal; font-size: 11.5px; font-weight: 500;
  color: rgba(255,255,255,.72); letter-spacing: .04em;
  line-height: 1.25;
  /* 固定两行高度：西语/法语标题长短不一，这样每个方块的文字位置都对齐 */
  height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile__label i:empty { display: none; }

.tile__badge {
  position: absolute; top: 11px; right: 11px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.tile__badge svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
@media (hover: hover) {
  .tile__a:hover .tile__badge { background: rgba(255,255,255,.94); color: var(--ink); transform: rotate(45deg); }
  .tile__a:hover .tile__badge svg { transform: rotate(-45deg); }
}

/* 图片加载失败时的兜底：显示大字首字母 */
.tile.is-fallback .tile__img { display: none; }
.tile.is-fallback .tile__a::before {
  content: attr(data-initial);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 700 46px/1 inherit; color: rgba(255,255,255,.16);
  letter-spacing: -.03em;
}

.fallback { margin: 18px 0 4px; color: var(--ink-2); font-size: 14px; text-align: center; }
.fallback a { color: var(--accent); text-decoration: underline; }

/* ---------------- 客户反馈（左右分栏 + 轮番展示） ---------------- */

.reviews { padding: 32px 0 6px; }

.reviews__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 13px;
}

/* 手机上：标题 → 副标题 → 照片 → 说明。
   .reviews__side 用 display:contents 拆开，所以 order 要写给它的直接子元素；
   写成 .reviews__panel > .xxx 是匹配不到的（DOM 父级仍是 .reviews__side）。 */
@media (max-width: 859px) {
  .reviews__side { display: contents; }
  .reviews__side > .sec-head__title { order: 1; }
  .reviews__side > .reviews__sub    { order: 2; }
  .reviews__panel > .reviews__stage { order: 3; }
  .reviews__side > .reviews__cap    { order: 4; }
  .reviews__side > .reviews__hint   { order: 5; }
}

/* 电脑上：左边文字、右边照片，页面高度只有一张图那么高 */
@media (min-width: 860px) {
  .reviews__panel {
    grid-template-columns: minmax(0, 1fr) 460px;
    align-items: center;
    gap: 34px;
    padding: 26px 28px;
  }
  .reviews__side { display: flex; flex-direction: column; align-items: flex-start; }
}

.reviews__sub { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; }

.reviews__cap {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  min-height: 41px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.reviews__cap:empty { display: none; }

.reviews__hint { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 859px) { .reviews__hint { display: none; } }

/* 照片窗口 */
.reviews__stage { min-width: 0; }

.rview {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #eceef2;
  cursor: grab;
}
.rview:active { cursor: grabbing; }
.rview:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.rview__track { display: flex; transition: transform .45s var(--ease); }
@media (prefers-reduced-motion: reduce) { .rview__track { transition: none; } }

.rslide { flex: 0 0 100%; min-width: 0; }

.rslide__btn {
  position: relative;
  display: block; width: 100%; padding: 0; border: 0;
  background: transparent; cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.rslide__img {
  width: 100%; height: 268px;
  object-fit: cover; object-position: top center;
  background: #eceef2;
}
@media (min-width: 860px) { .rslide__img { height: 400px; } }

.rslide__stars {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #e8a33a;
  font-size: 12px; letter-spacing: 1.5px; line-height: 1;
  box-shadow: 0 2px 8px rgba(13,17,23,.16);
}
.rslide__zoom {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13,17,23,.62); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rslide__zoom svg { width: 17px; height: 17px; }

/* 导航 */
.reviews__nav {
  margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
}
.rnav {
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .rnav:hover { background: var(--ink); border-color: var(--ink); color: #fff; } }
.rnav:active { transform: scale(.93); }
.rnav[disabled] { opacity: .35; cursor: default; }

.rdots { flex: 1; display: flex; justify-content: center; gap: 7px; }
.rdots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: #ccd3dc; cursor: pointer;
  transition: background .2s var(--ease), width .2s var(--ease);
}
.rdots button.is-on { background: var(--accent); width: 20px; border-radius: 4px; }

.reviews__count {
  flex: none; min-width: 40px; text-align: right;
  font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}

/* ---------------- 批发询盘 ---------------- */

.inquiry { padding: 40px 0 6px; }

.inquiry__panel {
  background: linear-gradient(158deg, #1c2436 0%, #0d1117 100%);
  color: #fff;
  border-radius: 26px;
  padding: 24px 18px 20px;
  display: grid; gap: 22px;
  box-shadow: var(--shadow-2);
}
@media (min-width: 900px) {
  .inquiry__panel {
    grid-template-columns: .82fr 1.18fr;
    gap: 34px; padding: 32px 30px; align-items: start;
  }
}

.sec-head__title--light { color: #fff; }
.sec-head__title--light em { color: rgba(255,255,255,.55); }

.inquiry__sub { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 14.5px; }
.inquiry__points { margin-top: 16px; display: grid; gap: 9px; }
.inquiry__points li {
  position: relative; padding-left: 26px;
  font-size: 14px; color: rgba(255,255,255,.9);
}
.inquiry__points li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--wa); border-bottom: 2px solid var(--wa);
  transform: rotate(-45deg);
}
.inquiry__alt {
  margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.6);
}

/* ---------------- 表单 ---------------- */

.form {
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  padding: 18px 16px;
}

.form__grid { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .fld--wide { grid-column: 1 / -1; }
}

.fld { display: block; }
.fld > span {
  display: block; margin-bottom: 5px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.fld > span b { color: var(--accent); font-weight: 700; }

.fld input, .fld textarea {
  width: 100%;
  font: inherit; font-size: 16px;   /* 16px 以下 iOS 会自动放大页面 */
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.fld textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.fld input::placeholder, .fld textarea::placeholder { color: #aab4c0; }
.fld input:focus, .fld textarea:focus {
  outline: none; background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,85,47,.13);
}
.fld input:user-invalid, .fld textarea:user-invalid { border-color: #d9534f; }

/* 品类多选 */
.chips { margin: 14px 0 0; padding: 0; border: 0; }
.chips legend { padding: 0 0 7px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fbfcfd;
  font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: all .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip input:checked + span {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 品类勾选下面紧跟的输入框，别贴太紧 */
.chips + .fld { margin-top: 15px; }

/* 反垃圾蜜罐：人看不见 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--send {
  width: 100%; margin-top: 16px;
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 18px rgba(232,85,47,.32);
  height: 50px;
}
.btn--send[disabled] { opacity: .6; cursor: progress; }

.form__status { margin-top: 11px; font-size: 13.5px; line-height: 1.5; }
.form__status.is-ok { color: #0a7c42; }
.form__status.is-err { color: #c0392b; }
.form__open { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 650; }
.form__privacy { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }

/* ---------------- 隐私 / 售后 / 地址 ---------------- */

.info { padding: 40px 0 6px; }

.info__grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .info__grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.icard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.icard__title {
  font-size: 15.5px; font-weight: 720; letter-spacing: -.012em;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px;
}
.icard__title em { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .05em; }
.icard__sum { margin-top: 7px; font-size: 13.5px; color: var(--ink-2); }

.icard__more { margin-top: 12px; }
.icard__more summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 650; color: var(--accent);
  -webkit-tap-highlight-color: transparent;
}
.icard__more summary::-webkit-details-marker { display: none; }
.icard__more summary::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s var(--ease);
}
.icard__more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.icard__more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icard__body { margin-top: 11px; display: grid; gap: 9px; }
.icard__body p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* 地址卡片里的结构化信息 */
.addr { margin-top: 12px; display: grid; gap: 10px; }
.addr__row { display: grid; gap: 2px; }
.addr__row dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.addr__row dd { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.addr__row dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.icard__note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }

/* ---------------- 页脚 ---------------- */

.foot { margin-top: 40px; padding: 24px 0 30px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .foot { padding-bottom: 94px; } }  /* 给悬浮按钮留位置 */
.foot__in { text-align: center; }
.foot__brand { font-size: 13.5px; font-weight: 650; }
.foot__addr { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.foot__links { margin-top: 9px; font-size: 13px; color: var(--ink-2); }
.foot__links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot__links span { margin: 0 6px; color: var(--ink-3); }
.foot__copy { margin-top: 13px; font-size: 12px; color: var(--ink-3); }

/* ---------------- 右下角悬浮 WhatsApp ---------------- */

.fab {
  position: fixed; right: 16px; z-index: 45;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #06301a;
  box-shadow: 0 6px 22px rgba(37,211,102,.5);
  transition: transform .2s var(--ease);
}
.fab svg { width: 28px; height: 28px; }
.fab:active { transform: scale(.92); }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); opacity: .55;
  animation: pulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab::after { animation: none; }
  .tile { opacity: 1; transform: none; }
}

/* ---------------- 灯箱 ---------------- */

.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,9,15,.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade .22s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lb__stage {
  position: relative; z-index: 1;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
  animation: pop .26s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

.lb__figure {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-2);
}
.lb__img {
  width: 100%; max-height: calc(100dvh - 190px);
  object-fit: contain; background: #eceef2;
}
.lb__cap { padding: 12px 16px 14px; font-size: 13px; color: var(--ink-2); text-align: center; }

.lb__close {
  position: absolute; top: -6px; right: -4px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 16px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb__close:hover { background: rgba(255,255,255,.3); }

.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 4px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb__nav:hover { background: rgba(255,255,255,.3); }
.lb__nav--prev { left: -8px; }
.lb__nav--next { right: -8px; }
.lb__nav[hidden] { display: none; }

.lb__dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.lb__dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.34); cursor: pointer;
  transition: background .2s var(--ease), width .2s var(--ease);
}
.lb__dots button.is-on { background: #fff; width: 20px; border-radius: 4px; }
.lb__dots[hidden] { display: none; }

@media (max-width: 520px) {
  .lb__nav--prev { left: 2px; }
  .lb__nav--next { right: 2px; }
  .lb__close { top: -44px; right: 0; }
}

/* ---------------- 通用按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 650;
  cursor: pointer;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(.96); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--wa { background: var(--wa); color: #06301a; box-shadow: 0 4px 16px rgba(37,211,102,.4); }

.lb-open { overflow: hidden; }
