@charset "utf-8";
/* ============================================================
   Printora — 定制产品商城模板 v1
   Bootstrap 5 主题层

   依赖：assets/vendor/bootstrap/bootstrap.min.css（必须先加载）
   分工：
     · 基础重置 / 排版基线 / 栅格 / 间距 / 断点 / 组件行为 —— 由 Bootstrap 5 提供
     · 品牌令牌、视觉皮肤、少量不可替换的自定义布局 —— 由本文件提供
   ============================================================ */

/* ---------- 1. Reset & tokens ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  /* brand */
  --navy-950: #090A2B;
  --navy-900: #101341;
  --navy-800: #191E5C;
  --navy: #20266F;
  --navy-600: #2E3690;
  --orange: #F6891F;
  --orange-600: #DE7109;
  --orange-100: #FFF1E0;
  --mint: #E9F6EF;
  --lav: #F4F5FC;
  --lav-2: #E9ECF8;
  --cream: #FCF9F4;

  /* neutral */
  --ink: #111335;
  --ink-2: #454A6B;
  --muted: #7B7F9E;
  --muted-2: #9EA1BC;
  --line: #E9EAF3;
  --line-2: #D8DBEB;
  --paper: #FFFFFF;
  --body: #FBFBFE;
  --sell: #E4372F;
  --ok: #1F9D6B;
  --warn: #E08A00;

  /* radius：全站圆角统一走 Bootstrap 的 --bs-border-radius-sm（4px）。
     圆形用 50%（等价 .rounded-circle），直角用 0（等价 .rounded-0）；
     新增组件请使用 BS 工具类 .rounded-1 或变量 var(--bs-border-radius-sm)。 */

  /* shadow */
  --sh-1: 0 1px 2px rgba(17, 19, 53, .05);
  --sh-2: 0 12px 30px -14px rgba(17, 19, 53, .22);
  --sh-3: 0 30px 60px -28px rgba(17, 19, 53, .3);

  /* layout */
  --container: 1300px;
  --header-h: 82px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* ---- Bootstrap 变量桥接（让 BS 基础样式与品牌保持一致） ---- */
  --bs-font-sans-serif: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 15px;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.65;
  --bs-body-color: var(--ink-2);
  --bs-body-bg: var(--body);
  --bs-heading-color: var(--ink);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-border-color-translucent: rgba(17, 19, 53, .12);
  /* Bootstrap 圆角桥接：全站统一 4px（BS 的 sm 档），避免组件回落默认 6/8/16/32px */
  --bs-border-radius-sm: 0.25rem;   /* 4px */
  --bs-border-radius: var(--bs-border-radius-sm);
  --bs-border-radius-lg: var(--bs-border-radius-sm);
  --bs-border-radius-xl: var(--bs-border-radius-sm);
  --bs-border-radius-xxl: var(--bs-border-radius-sm);
  --bs-border-radius-pill: var(--bs-border-radius-sm);
  --bs-link-color: var(--navy);
  --bs-link-hover-color: var(--orange-600);
  --bs-primary: #F6891F;
  --bs-primary-rgb: 246, 137, 31;
  --bs-success: #1F9D6B;
  --bs-danger: #E4372F;
  --bs-warning: #E08A00;
  --bs-box-shadow: var(--sh-2);
  --bs-box-shadow-lg: var(--sh-3);
  --bs-modal-zindex: 1080;
}

 /* 字体、字号、行高、颜色、背景、text-size-adjust 由 Bootstrap reboot + --bs-* 变量提供，
    这里只补 Bootstrap 未覆盖的品牌基线。 */
body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
/* 与迁移前的浏览器默认标题字号保持一致，避免未指定尺寸的标题走 Bootstrap 的 clamp() 缩放 */
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h4 { font-size: 1em; }
h5 { font-size: .83em; }
h6 { font-size: .67em; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; opacity: 1; }

::selection { background: var(--orange); color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--bs-border-radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- 2. Layout helpers ---------- */
/* Bootstrap .container 提供宽度与居中；这里只覆盖最大宽度与栅格沟槽（48px → 左右各 24px，与原设计一致） */
.container {
  --bs-gutter-x: 48px;
  max-width: var(--container);
}
.container--narrow { max-width: 980px; }
.container--wide { max-width: 1460px; }

.section { padding: 74px 0; }
.section--tight { padding: 48px 0; }
.section--lav { background: var(--lav); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-900); color: #C9CCE8; }
.section--navy h2, .section--navy h3 { color: #fff; }

/* 原先的 .row / .stack / .mt-* / .text-center / .sr-only 等工具类已改用 Bootstrap：
   d-flex + align-items-center + gap-*、d-grid + gap-*、mt-{0..5}、text-center、visually-hidden。 */
/* section headings */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.sec-head__text { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: var(--bs-border-radius-sm); }
.sec-title { font-size: clamp(24px, 3vw, 36px); }
.sec-sub { margin-top: 12px; color: var(--muted); font-size: 15px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy); white-space: nowrap;
  border-bottom: 2px solid transparent; padding-bottom: 2px; transition: .25s var(--ease);
}
.link-more:hover { color: var(--orange-600); border-color: var(--orange); gap: 12px; }
.link-more .ic { width: 16px; height: 16px; }

/* ---------- 3. Icons ---------- */
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 24px; height: 24px; }
.ic--fill { fill: currentColor; stroke: none; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 26px;
  border-radius: var(--bs-border-radius-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 18px; height: 18px; }

.btn--primary { --btn-bg: var(--orange); --btn-bd: var(--orange); }
.btn--primary:hover { --btn-bg: var(--orange-600); --btn-bd: var(--orange-600); }
.btn--dark { --btn-bg: var(--navy-900); --btn-bd: var(--navy-900); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--navy); --btn-bg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,.1); }
.btn--soft { --btn-bg: var(--lav); --btn-fg: var(--navy); --btn-bd: var(--lav); }
.btn--soft:hover { --btn-bg: var(--lav-2); --btn-bd: var(--lav-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13.5px; border-radius: var(--bs-border-radius-sm); }
.btn--lg { height: 56px; padding: 0 34px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--navy); transition: color .2s;
}
.btn-link:hover { color: var(--orange-600); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); background: transparent;
  border: 1px solid transparent;
  transition: .2s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--lav); color: var(--navy); }
.icon-btn .ic { width: 21px; height: 21px; }

/* ---------- 5. Badges / pills / tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--bs-border-radius-sm);
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.5;
}
.badge--sale { background: var(--orange); color: #fff; }
.badge--new { background: var(--navy); color: #fff; }
.badge--hot { background: #FFE8E6; color: #C62D24; }
.badge--soft { background: var(--lav); color: var(--navy); }
.badge--mint { background: var(--mint); color: #128A5B; }
.badge--warn { background: #FFF4E0; color: #A66A00; }
.badge--muted { background: #F1F2F7; color: var(--muted); }
.badge--lg { padding: 6px 14px; font-size: 12.5px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--bs-border-radius-sm);
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px; border-radius: var(--bs-border-radius-sm);
  background: #fff; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .ic { width: 15px; height: 15px; }

/* ---------- 6. Forms ---------- */
.field { display: grid; gap: 7px; }
.field > label,
.label {
  font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .01em;
}
.field .hint { font-size: 12.5px; color: var(--muted); }

.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--bs-border-radius-sm);
  background: #fff; color: var(--ink);
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; padding: 13px 16px; min-height: 108px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover, .textarea:hover { border-color: #C3C6DC; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(246, 137, 31, .13);
}
.input.is-error, .select.is-error { border-color: var(--sell); }
.err { font-size: 12.5px; color: var(--sell); font-weight: 600; display: none; }
.is-error ~ .err, .field.has-error .err { display: block; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B7F9E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}

.field-affix { position: relative; display: flex; align-items: center; }
.field-affix .ic { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--muted); }
.field-affix .input { padding-left: 44px; }
.field-affix .field-affix__btn { position: absolute; right: 6px; }
.input-suffix { position: absolute; right: 14px; font-size: 13px; color: var(--muted); }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; line-height: 1.6;
}
.check input {
  appearance: none; width: 19px; height: 19px; margin: 2px 0 0; flex: none;
  border: 1.5px solid var(--line-2); border-radius: var(--bs-border-radius-sm); background: #fff;
  transition: .18s var(--ease); position: relative; cursor: pointer;
}
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked { background: #fff; border-width: 6px; border-color: var(--orange); }
.check input[type="radio"]:checked::after { display: none; }
.check a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* radio cards (address / payment / shipping) */
.option-card {
  position: relative; display: flex; gap: 13px; align-items: flex-start;
  padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: var(--bs-border-radius-sm);
  background: #fff; cursor: pointer; transition: .2s var(--ease);
}
.option-card:hover { border-color: #C3C6DC; }
.option-card input {
  appearance: none; width: 19px; height: 19px; margin: 2px 0 0; flex: none;
  border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; cursor: pointer;
  transition: .18s var(--ease);
}
.option-card input:checked { border: 6px solid var(--orange); }
.option-card:has(input:checked) { border-color: var(--orange); background: #FFFCF8; box-shadow: 0 0 0 3px rgba(246,137,31,.1); }
.option-card__body { flex: 1; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.option-card__title { color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* quantity stepper */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--bs-border-radius-sm);
  background: #fff; overflow: hidden; height: 44px;
}
.qty button {
  width: 40px; height: 100%; display: grid; place-items: center;
  color: var(--ink); transition: background .18s, color .18s;
}
.qty button:hover { background: var(--lav); color: var(--navy); }
.qty input {
  width: 44px; height: 100%; border: 0; text-align: center;
  font-weight: 700; font-size: 14px; color: var(--ink); background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 7. Top bar ---------- */
.topbar {
  background: var(--navy-950); color: #B9BDDC; font-size: 12.5px;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 38px;
}
.topbar__promo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.topbar__promo .ic { width: 15px; height: 15px; color: var(--orange); }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a { transition: color .2s; }
.topbar__links a:hover { color: #fff; }
.topbar__sep { width: 1px; height: 13px; background: rgba(255,255,255,.18); }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__phone { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.topbar__phone .ic { width: 15px; height: 15px; color: var(--orange); }

/* ---------- 8. Header ---------- */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(17,19,53,.5); }
.header__inner {
  display: flex; align-items: center; gap: 26px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
  width: 38px; height: 38px; border-radius: var(--bs-border-radius-sm);
  background: linear-gradient(140deg, var(--navy-600), var(--navy-900) 70%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(32, 38, 111, .9);
  position: relative; overflow: hidden;
}
.logo__mark::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); right: -7px; bottom: -7px;
}
.logo__mark .ic { width: 21px; height: 21px; position: relative; z-index: 1; }
.logo__text { font-size: 23px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.logo__text span { color: var(--orange); }
.logo__tag { display: block; font-size: 10px; letter-spacing: .28em; color: var(--muted); font-weight: 600; margin-top: 3px; }

.search-form {
  flex: 1; max-width: 620px; position: relative;
  display: flex; align-items: center;
  background: var(--lav); border: 1px solid var(--lav);
  border-radius: var(--bs-border-radius-sm); height: 50px;
  transition: .25s var(--ease);
}
.search-form:focus-within { background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,137,31,.1); }
.search-form__select {
  border: 0; background: transparent; height: 100%;
  padding: 0 8px 0 20px; font-size: 13px; font-weight: 700; color: var(--ink);
  border-right: 1px solid var(--line-2); margin-right: 6px;
  appearance: none; cursor: pointer;
}
.search-form__input {
  flex: 1; border: 0; background: transparent; height: 100%;
  padding: 0 12px; font-size: 14px; min-width: 0;
}
.search-form__input:focus { outline: none; }
.search-form__btn {
  width: 40px; height: 40px; margin-right: 5px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  transition: .2s var(--ease); flex: none;
}
.search-form__btn:hover { background: var(--orange-600); transform: rotate(-8deg); }
.search-form__btn .ic { width: 18px; height: 18px; stroke-width: 2.2; }

.header__contact { display: flex; align-items: center; gap: 11px; flex: none; }
.header__contact-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-100); color: var(--orange-600);
}
.header__contact-icon .ic { width: 20px; height: 20px; }
.header__contact small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.header__contact strong { font-size: 16px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }

.header__actions { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
.cart-link {
  display: flex; align-items: center; gap: 10px; margin-left: 8px;
  padding: 7px 16px 7px 8px; border-radius: var(--bs-border-radius-sm);
  background: var(--lav); transition: .2s var(--ease); color: var(--ink);
}
.cart-link:hover { background: var(--lav-2); }
.cart-link__icon {
  width: 36px; height: 36px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--navy); position: relative;
}
.cart-link__icon .ic { width: 19px; height: 19px; }
.cart-link__count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: var(--bs-border-radius-sm); background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff;
}
.cart-link__text { font-size: 12px; line-height: 1.3; }
.cart-link__text small { display: block; color: var(--muted); font-size: 11px; }
.cart-link__text b { font-size: 13.5px; color: var(--ink); }

.count-dot {
  position: absolute; top: 6px; right: 6px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--orange); color: #fff; border-radius: var(--bs-border-radius-sm);
  font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff;
}

.nav-toggle { display: none; }

/* ---------- 9. Main navigation ---------- */
.mainnav {
  background: var(--navy);
  color: #D8DAF0;
  position: relative; z-index: 55;
}
.mainnav__inner {
  display: flex; align-items: center; gap: 10px; min-height: 56px;
}
.shop-drop { margin-right: 6px; }
.shop-drop__btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 18px; border-radius: var(--bs-border-radius-sm);
  background: var(--orange); color: #fff; font-weight: 700; font-size: 14px;
  transition: .2s var(--ease);
}
.shop-drop__btn:hover { background: var(--orange-600); }
.shop-drop__btn .ic { width: 18px; height: 18px; }
.shop-drop__btn .ic--caret { width: 15px; height: 15px; transition: transform .25s; }
.shop-drop__btn.show .ic--caret { transform: rotate(180deg); }

/* Bootstrap .dropdown-menu 负责显隐/定位，这里改为网格布局并套用品牌皮肤 */
.mega.dropdown-menu {
  --bs-dropdown-padding-x: 0;
  --bs-dropdown-padding-y: 0;
  width: 700px; margin-top: 12px; padding: 22px;
  background: #fff; color: var(--ink-2);
  border: 0; border-radius: var(--bs-border-radius-sm); box-shadow: var(--sh-3);
  grid-template-columns: repeat(3, 1fr); gap: 6px 14px;
}
.mega.dropdown-menu.show { display: grid; animation: megaIn .22s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } }
.mega a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--bs-border-radius-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: .18s;
}
.mega a:hover { background: var(--lav); color: var(--navy); }
.mega a .ic { width: 17px; height: 17px; color: var(--orange-600); }
.mega__foot {
  grid-column: 1 / -1; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.mega__foot p { font-size: 13px; color: var(--muted); }

.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 56px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #E2E4F5; position: relative; transition: .2s;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 12px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease); border-radius: var(--bs-border-radius-sm);
}
.nav-list > li > a:hover { color: #fff; }
.nav-list > li > a:hover::after,
.nav-list > li.current > a::after { transform: scaleX(1); }
.nav-list > li.current > a { color: #fff; }
.nav-list .badge { padding: 2px 7px; font-size: 9.5px; }

.nav-meta {
  margin-left: auto; display: flex; align-items: center; gap: 20px;
  font-size: 12.5px; font-weight: 600;
}
.nav-meta__item { display: inline-flex; align-items: center; gap: 6px; color: #D8DAF0; transition: color .2s; }
.nav-meta__item:hover { color: #fff; }
.nav-meta__item .ic { width: 15px; height: 15px; opacity: .8; }
.nav-meta__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

/* ---------- 10. Drawer / mobile menu ---------- */
/* Bootstrap Offcanvas 负责抽屉的显隐、遮罩与滚动锁定 */
.offcanvas-backdrop.show { opacity: .55; background: #090A2B; backdrop-filter: blur(3px); }

.drawer.offcanvas {
  --bs-offcanvas-width: min(360px, 86vw);
  width: min(360px, 86vw); background: #fff; border: 0;
  box-shadow: var(--sh-3);
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 14px 30px; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__search { padding: 14px 20px 6px; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 12px; border-radius: var(--bs-border-radius-sm);
  font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.drawer__nav a:hover { background: var(--lav); }
.drawer__nav a .ic { width: 17px; height: 17px; color: var(--muted); }
.drawer__label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 20px 12px 8px;
}
.drawer__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 4px; }
.drawer__cats a {
  padding: 11px 12px; border-radius: var(--bs-border-radius-sm); background: var(--lav);
  font-size: 13px; font-weight: 700; color: var(--navy); text-align: center;
}

/* ---------- 11. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #EDF0FD 0%, #F2F5FE 42%, #E8F5EF 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 40px;
  padding-block: 66px 72px; min-height: 560px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.85); border: 1px solid rgba(17,19,53,.07);
  border-radius: var(--bs-border-radius-sm); padding: 7px 16px 7px 8px;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  box-shadow: var(--sh-1); margin-bottom: 22px;
}
.hero__badge span {
  background: var(--orange); color: #fff; border-radius: var(--bs-border-radius-sm);
  padding: 3px 10px; font-size: 11px; letter-spacing: .06em;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.035em;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--orange); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .18em;
  background: rgba(246,137,31,.22); border-radius: var(--bs-border-radius-sm); z-index: -1;
}
.hero__text { margin-top: 20px; font-size: 16px; color: var(--ink-2); max-width: 490px; }
.hero__actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__trust {
  display: flex; align-items: center; gap: 26px; margin-top: 42px; flex-wrap: wrap;
}
.hero__stat b { display: block; font-size: 24px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; }
.hero__stat span { font-size: 12.5px; color: var(--muted); }
.hero__stat-div { width: 1px; height: 34px; background: var(--line-2); }

.hero__art { position: relative; height: 520px; }
.hero__blob {
  position: absolute; inset: 0; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: radial-gradient(120% 120% at 30% 20%, #FFFFFF 0%, #E4E9FB 55%, #D6E8F6 100%);
  box-shadow: inset 0 -20px 60px rgba(32,38,111,.06);
}
.hero-card {
  position: absolute; background: #fff; border-radius: var(--bs-border-radius-sm);
  box-shadow: var(--sh-3); padding: 10px; width: 42%;
}
.hero-card img { border-radius: var(--bs-border-radius-sm); }
.hero-card--a { left: 0; top: 5%; transform: rotate(-6deg); width: 38%; z-index: 1; }
.hero-card--b { right: 0; top: 19%; transform: rotate(5deg); width: 37%; z-index: 2; }
.hero-card--c { left: 23%; bottom: 1%; transform: rotate(3deg); width: 33%; z-index: 3; }
.hero-float {
  position: absolute; background: #fff; border-radius: var(--bs-border-radius-sm);
  box-shadow: var(--sh-2); padding: 11px 15px; display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink); z-index: 5;
}
.hero-float .ic { width: 18px; height: 18px; color: var(--orange); }
.hero-float small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.hero-float--1 { left: -4%; top: 50%; animation: floaty 6s ease-in-out infinite; }
.hero-float--2 { right: -2%; bottom: 9%; animation: floaty 7s ease-in-out infinite .8s; }
.hero-float--3 { right: 6%; top: 1%; animation: floaty 8s ease-in-out infinite .4s; }
.hero-float--3 .hero-float__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--ok); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-marquee {
  border-top: 1px solid rgba(17,19,53,.07);
  background: rgba(255,255,255,.55);
  overflow: hidden; padding: 14px 0;
}
.marquee__track { display: flex; gap: 46px; width: max-content; animation: marquee 26s linear infinite; }
.hero-marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.marquee__item .ic { width: 15px; height: 15px; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 12. Category tiles ---------- */
/* 结构由 Bootstrap row/row-cols-* 提供，这里只定义沟槽 */
.cat-strip { --bs-gutter-x: 14px; row-gap: 14px; }
.cat-tile {
  display: grid; justify-items: center; align-content: start; gap: 12px;
  padding: 22px 10px; border-radius: var(--bs-border-radius-sm);
  background: #fff; border: 1px solid var(--line);
  transition: .28s var(--ease); text-align: center;
}
.cat-tile:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--sh-2); }
.cat-tile__img {
  width: 68px; height: 68px; border-radius: 50%; overflow: hidden;
  background: var(--lav); display: grid; place-items: center;
}
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.cat-tile__name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.cat-tile__count { font-size: 11.5px; color: var(--muted); }

/* category cards (栏目页) */
.cat-cards { --bs-gutter-x: 20px; row-gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--bs-border-radius-sm); overflow: hidden;
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: .3s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: transparent; }
.cat-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--lav); position: relative; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__media .badge { position: absolute; top: 12px; left: 12px; }
.cat-card__body { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-card__title { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.cat-card__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cat-card__arrow {
  width: 34px; height: 34px; border-radius: 50%; background: var(--lav);
  display: grid; place-items: center; color: var(--navy); flex: none; transition: .25s;
}
.cat-card:hover .cat-card__arrow { background: var(--orange); color: #fff; }
.cat-card__arrow .ic { width: 16px; height: 16px; }

/* ---------- 13. Product card ---------- */
/* 商品网格：列数由 row-cols-* 控制，这里只统一沟槽并保证卡片等高 */
.p-grid { --bs-gutter-x: 22px; row-gap: 22px; }
.p-grid > [class*="col"] > * { height: 100%; }

.p-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--bs-border-radius-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: .3s var(--ease);
}
.p-card:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-4px); }
.p-card__media {
  position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--lav);
}
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.p-card__link { display: block; width: 100%; height: 100%; }
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card__badges { position: absolute; top: 12px; left: 12px; display: grid; gap: 6px; justify-items: start; z-index: 2; }
.p-card__tools {
  position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; z-index: 2;
}
.p-card__tool {
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--ink);
  box-shadow: var(--sh-1); transition: .22s var(--ease);
  opacity: 0; transform: translateX(8px);
}
.p-card:hover .p-card__tool { opacity: 1; transform: none; }
.p-card__tool:nth-child(2) { transition-delay: .05s; }
.p-card__tool:hover { background: var(--navy); color: #fff; }
.p-card__tool.is-active { background: var(--orange); color: #fff; opacity: 1; transform: none; }
.p-card__tool .ic { width: 17px; height: 17px; }

.p-card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 42px; border-radius: var(--bs-border-radius-sm); background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  opacity: 0; transform: translateY(10px); transition: .26s var(--ease);
  box-shadow: var(--sh-1);
}
.p-card:hover .p-card__quick { opacity: 1; transform: none; }
.p-card__quick:hover { background: var(--navy); color: #fff; }

.p-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.p-card__title { font-size: 15px; font-weight: 700; line-height: 1.42; color: var(--ink); }
.p-card__title a { transition: color .2s; }
.p-card__title a:hover { color: var(--orange-600); }
.p-card__meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--orange); }
.stars .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.stars .ic--off { color: #DADCE9; }
.p-card__swatches { display: flex; align-items: center; gap: 6px; }
.swatch {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #fff;
  box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: .18s;
}
.swatch:hover, .swatch.is-active { box-shadow: 0 0 0 2px var(--navy); }
.p-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 19px; font-weight: 800; color: var(--sell); letter-spacing: -.02em; }
.price small { font-size: 12.5px; font-weight: 700; }
.price--old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; font-weight: 600; }
.price--plain { color: var(--ink); }
.p-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-card__actions .btn { height: 40px; padding: 0 10px; font-size: 12.8px; border-radius: var(--bs-border-radius-sm); }
.p-card__actions .ic { width: 15px; height: 15px; }

/* list variant */
.p-card--list { flex-direction: row; align-items: stretch; }
.p-card--list .p-card__media { width: 240px; flex: none; aspect-ratio: auto; }
.p-card--list .p-card__body { padding: 22px 24px; gap: 12px; }
.p-card--list .p-card__title { font-size: 17.5px; }
.p-card--list .p-card__actions { grid-template-columns: 170px 170px; max-width: 360px; }
.p-card--list .p-card__desc { font-size: 13.5px; color: var(--muted); }

/* ---------- 14. Feature / promo banners ---------- */
.promo-2 { --bs-gutter-x: 24px; row-gap: 24px; }
.promo-card {
  position: relative; border-radius: var(--bs-border-radius-sm); overflow: hidden;
  min-height: 300px; display: flex; align-items: center;
  padding: 40px; background: var(--lav);
}
.promo-card img.promo-card__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.promo-card__content { position: relative; z-index: 2; max-width: 52%; }
.promo-card__kicker {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--orange-600); margin-bottom: 12px;
}
.promo-card h3 { font-size: 27px; line-height: 1.2; margin-bottom: 10px; }
.promo-card p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; }
.promo-card .btn { height: 44px; }

.steps { --bs-gutter-x: 20px; row-gap: 20px; counter-reset: step; }
.steps > [class*="col"] > * { height: 100%; }
.step-card {
  position: relative; padding: 28px 24px; border-radius: var(--bs-border-radius-sm);
  background: #fff; border: 1px solid var(--line);
  transition: .3s var(--ease);
}
.step-card:hover { box-shadow: var(--sh-2); border-color: transparent; transform: translateY(-4px); }
.step-card__num {
  position: absolute; top: 20px; right: 22px;
  font-size: 34px; font-weight: 800; color: var(--lav-2); letter-spacing: -.04em; line-height: 1;
}
.step-card__icon {
  width: 54px; height: 54px; border-radius: var(--bs-border-radius-sm); display: grid; place-items: center;
  background: var(--orange-100); color: var(--orange-600); margin-bottom: 18px;
}
.step-card__icon .ic { width: 25px; height: 25px; }
.step-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--muted); }

.feature-list { --bs-gutter-x: 16px; row-gap: 16px; }
.feature-list > [class*="col"] > * { height: 100%; }
.feature {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border-radius: var(--bs-border-radius-sm); background: #fff; border: 1px solid var(--line);
}
.feature .ic { width: 26px; height: 26px; color: var(--orange); flex: none; }
.feature b { display: block; font-size: 14px; color: var(--ink); }
.feature span { font-size: 12.5px; color: var(--muted); }

.deal {
  position: relative; border-radius: var(--bs-border-radius-sm); overflow: hidden;
  background: linear-gradient(115deg, var(--navy-900), var(--navy-600) 60%, #3B45A8);
  color: #D9DBF2; padding: 46px; display: grid;
  grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center;
}
.deal h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.deal p { margin-top: 12px; font-size: 14.5px; max-width: 420px; }
.deal__timer { display: flex; gap: 10px; margin-top: 26px; }
.timer-cell {
  min-width: 68px; padding: 10px 0; text-align: center; border-radius: var(--bs-border-radius-sm);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
}
.timer-cell b { display: block; font-size: 24px; font-weight: 800; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; }
.timer-cell span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.deal__products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deal__item {
  background: #fff; border-radius: var(--bs-border-radius-sm); padding: 10px;
  display: flex; gap: 12px; align-items: center;
}
.deal__item img { width: 66px; height: 66px; border-radius: var(--bs-border-radius-sm); flex: none; }
.deal__item b { font-size: 13px; color: var(--ink); display: block; line-height: 1.4; }
.deal__item .price { font-size: 15px; }

/* testimonial */
.tst-grid { --bs-gutter-x: 22px; row-gap: 22px; }
.tst-grid > [class*="col"] > * { height: 100%; }
.tst {
  background: #fff; border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.tst__quote { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }

.tst__person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tst__person img { width: 44px; height: 44px; border-radius: 50%; }
.tst__person b { display: block; font-size: 13.5px; color: var(--ink); }
.tst__person span { font-size: 12px; color: var(--muted); }

.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; opacity: .72; }
.logo-row__item {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em;
}
.logo-row__item .ic { width: 22px; height: 22px; color: var(--navy-600); }

/* blog */
.blog-card {
  border-radius: var(--bs-border-radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: .3s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.blog-card__media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.blog-card h3 { font-size: 17px; line-height: 1.4; }
.blog-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- 15. Shop / listing layout ---------- */
/* 宽屏下筛选面板退化为普通侧栏（Bootstrap Offcanvas 只在窄屏启用） */
@media (min-width: 1081px) {
  .filters.offcanvas {
    visibility: visible; transform: none; position: sticky;
    top: calc(var(--header-h) + 76px); left: auto; right: auto; bottom: auto;
    width: auto; height: auto; max-height: none;
    background: #fff; border: 1px solid var(--line); z-index: auto;
  }
}
.page-hero {
  background: linear-gradient(110deg, #EEF1FC, #F7F4FB 55%, #E9F5EF);
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-hero--compact { padding: 28px 0 32px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 14px;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--orange-600); }
.breadcrumb .ic { width: 13px; height: 13px; opacity: .6; }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 700; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 40px); }
.page-hero p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; max-width: 620px; }

.shop-layout { display: grid; grid-template-columns: 268px 1fr; gap: 34px; align-items: start; }

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm);
  padding: 6px 20px 20px; position: sticky; top: calc(var(--header-h) + 76px);
}
.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; font-size: 14px; font-weight: 800; color: var(--ink); padding: 2px 0;
}
.filter-group__head .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .25s; }
.filter-group.is-closed .filter-group__head .ic { transform: rotate(-90deg); }
.filter-group__body { padding-top: 14px; display: grid; gap: 11px; }
.filter-group.is-closed .filter-group__body { display: none; }
.filter-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13.5px; color: var(--ink-2); transition: .2s;
}
.filter-link:hover { color: var(--orange-600); }
.filter-link.is-active { color: var(--navy); font-weight: 800; }
.filter-link small { color: var(--muted-2); font-size: 12px; }

.price-range { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.price-range input[type="number"] {
  width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: var(--bs-border-radius-sm);
  padding: 0 10px; font-size: 13px;
}
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 4px; border-radius: var(--bs-border-radius-sm);
  background: var(--lav-2); outline: none; margin: 14px 0 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--orange);
  cursor: pointer;
}

.color-list { display: flex; flex-wrap: wrap; gap: 9px; }
.color-list .swatch { width: 24px; height: 24px; }
.rating-list { display: grid; gap: 9px; }

.shop-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--bs-border-radius-sm); margin-bottom: 22px;
}
.shop-toolbar__count { font-size: 13px; color: var(--muted); }
.shop-toolbar__count b { color: var(--ink); }
.view-switch { display: inline-flex; gap: 4px; background: var(--lav); padding: 4px; border-radius: var(--bs-border-radius-sm); }
.view-switch button {
  width: 32px; height: 32px; border-radius: var(--bs-border-radius-sm); display: grid; place-items: center; color: var(--muted);
}
.view-switch button.is-active { background: #fff; color: var(--navy); box-shadow: var(--sh-1); }
.view-switch .ic { width: 16px; height: 16px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-select { height: 40px; min-width: 170px; font-size: 13.5px; border-radius: var(--bs-border-radius-sm); }

.active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters .chip { height: 32px; font-size: 12.5px; }
.active-filters .chip button { display: grid; place-items: center; color: var(--muted); }
.active-filters .chip .ic { width: 13px; height: 13px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--bs-border-radius-sm);
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  transition: .2s var(--ease);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .is-disabled { opacity: .45; pointer-events: none; }
.pagination .ic { width: 16px; height: 16px; }

.filter-fab { display: none; }
.filters__head { display: none; }
.filters__head { display: none; }

/* ---------- 16. Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 46px; align-items: start; }

.gallery { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__main {
  position: relative; border-radius: var(--bs-border-radius-sm); overflow: hidden;
  background: var(--lav); border: 1px solid var(--line); aspect-ratio: 1/1;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__badges { position: absolute; top: 16px; left: 16px; display: grid; gap: 6px; justify-items: start; }
.gallery__zoom {
  position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: var(--sh-1);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery__thumb {
  border-radius: var(--bs-border-radius-sm); overflow: hidden; border: 2px solid transparent;
  background: var(--lav); aspect-ratio: 1/1; transition: .2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--orange); }
.gallery__thumb:hover { border-color: var(--line-2); }

.pdp__head { display: grid; gap: 14px; }
.pdp__cats { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pdp h1 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.28; }
.pdp__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pdp__meta .stars .ic { width: 15px; height: 15px; }
.pdp__price-box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: var(--bs-border-radius-sm); background: var(--lav);
}
.pdp__price-box .price { font-size: 30px; }
.pdp__save { font-size: 12.5px; color: var(--ok); font-weight: 700; }
.pdp__short { font-size: 14.5px; color: var(--ink-2); }

.opt-group { display: grid; gap: 10px; }
.opt-group__label { font-size: 13px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.opt-group__label span { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.opt-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.opt-pill {
  padding: 9px 16px; border-radius: var(--bs-border-radius-sm); border: 1.5px solid var(--line-2);
  background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2);
  transition: .18s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.opt-pill:hover { border-color: var(--navy); }
.opt-pill.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.opt-pill .swatch { width: 14px; height: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.opt-pill.is-active .swatch { box-shadow: 0 0 0 1.5px #fff; }

.custom-box {
  border: 1.5px dashed var(--line-2); border-radius: var(--bs-border-radius-sm);
  padding: 18px; background: #fff; display: grid; gap: 14px;
}
.custom-box__head { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.custom-box__head .ic { width: 18px; height: 18px; color: var(--orange); }
.custom-upload {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  border: 1.5px dashed var(--line-2); border-radius: var(--bs-border-radius-sm); cursor: pointer;
  transition: .2s; background: var(--lav);
}
.custom-upload:hover { border-color: var(--orange); background: #FFFCF7; }
.custom-upload .ic { width: 22px; height: 22px; color: var(--orange); }
.custom-upload b { display: block; font-size: 13px; color: var(--ink); }
.custom-upload span { font-size: 11.5px; color: var(--muted); }
.custom-preview {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted);
}
.custom-preview__box {
  width: 56px; height: 56px; border-radius: var(--bs-border-radius-sm); background: var(--lav);
  display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line);
}
.text-preview {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800; letter-spacing: .02em; color: var(--navy);
  padding: 6px 14px; border-radius: var(--bs-border-radius-sm); background: var(--lav);
  font-size: 13px;
}

.pdp__buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.pdp__buy .btn { flex: 1; min-width: 150px; }
.pdp__buy .qty { flex: none; }
.pdp__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.pdp__actions button { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); transition: color .2s; }
.pdp__actions button:hover { color: var(--orange-600); }
.pdp__actions .ic { width: 17px; height: 17px; }

.pdp__info { display: grid; gap: 12px; padding: 20px; border-radius: var(--bs-border-radius-sm); background: var(--lav); }
.info-row { display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--ink-2); }
.info-row .ic { width: 19px; height: 19px; color: var(--navy); flex: none; }
.info-row b { color: var(--ink); }

.tabs { margin-top: 60px; }
.tabs__nav {
  display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
  padding: 14px 22px; font-size: 14px; font-weight: 700; color: var(--muted);
  position: relative; white-space: nowrap; transition: color .2s;
}
.tabs__btn::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s var(--ease);
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.active { color: var(--ink); font-weight: 800; }
.tabs__btn.active::after { transform: scaleX(1); }
/* 显隐由 Bootstrap Tab 的 .active 控制 */
.tabs__panel { padding-top: 34px; display: none; }
.tabs__panel.active { display: block; animation: fadeUp .4s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.prose { max-width: 860px; display: grid; gap: 18px; }
.prose h3 { font-size: 19px; margin-top: 10px; }
.prose p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-2); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange-100);
  box-shadow: inset 0 0 0 4px var(--orange);
}
.spec-table { border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm); overflow: hidden; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  width: 220px; text-align: left; padding: 14px 20px; background: var(--lav);
  font-size: 13.5px; color: var(--ink); font-weight: 700;
}
.spec-table td { padding: 14px 20px; font-size: 13.5px; color: var(--ink-2); }

.review-summary {
  display: grid; grid-template-columns: 220px 1fr; gap: 34px;
  padding: 26px; border-radius: var(--bs-border-radius-sm); background: var(--lav); margin-bottom: 30px;
}
.review-score { text-align: center; }
.review-score b { font-size: 48px; color: var(--ink); letter-spacing: -.04em; line-height: 1; display: block; }
.review-score .stars { justify-content: center; margin: 10px 0 8px; }
.review-score span { font-size: 12.5px; color: var(--muted); }
.review-bars { display: grid; gap: 10px; }
.review-bar { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.review-item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.review-item:last-child { border-bottom: 0; }
.review-item__head { display: flex; align-items: center; gap: 12px; }
.review-item__head img { width: 44px; height: 44px; border-radius: 50%; }
.review-item__head b { font-size: 14px; color: var(--ink); display: block; }
.review-item__head span { font-size: 12px; color: var(--muted); }
.review-item p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.review-item__imgs { display: flex; gap: 8px; }
.review-item__imgs img { width: 72px; height: 72px; border-radius: var(--bs-border-radius-sm); object-fit: cover; }

/* ---------- 17. Cart & checkout ---------- */
.steps-bar { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 38px; flex-wrap: wrap; }
.steps-bar__item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.steps-bar__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lav); color: var(--muted); font-size: 12.5px; font-weight: 800;
  border: 1px solid var(--line-2);
}
.steps-bar__item.is-done .steps-bar__num { background: var(--mint); color: var(--ok); border-color: transparent; }
.steps-bar__item.is-active { color: var(--ink); }
.steps-bar__item.is-active .steps-bar__num { background: var(--orange); color: #fff; border-color: var(--orange); }
.steps-bar__line { width: 56px; height: 2px; background: var(--line-2); border-radius: var(--bs-border-radius-sm); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm);
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.panel__head h2, .panel__head h3 { font-size: 16.5px; }
.panel__body { padding: 24px; }
.panel__body--flush { padding: 0; }

.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 18px;
  padding: 20px 24px; border-bottom: 1px solid var(--line); align-items: start;
  position: relative;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__img { border-radius: var(--bs-border-radius-sm); overflow: hidden; background: var(--lav); aspect-ratio: 1/1; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.42; }
.cart-item__title:hover { color: var(--orange-600); }
.cart-item__opts { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.cart-item__opts span { display: inline-flex; align-items: center; gap: 5px; }
.cart-item__note {
  margin-top: 8px; font-size: 12px; color: var(--orange-600); background: var(--orange-100);
  padding: 5px 10px; border-radius: var(--bs-border-radius-sm); display: inline-block;
}
.cart-item__foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.cart-item__foot .qty { height: 38px; }
.cart-item__foot .qty button { width: 34px; }
.cart-item__foot .qty input { width: 38px; font-size: 13px; }
.cart-item__remove {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted);
  transition: color .2s;
}
.cart-item__remove:hover { color: var(--sell); }
.cart-item__remove .ic { width: 15px; height: 15px; }
.cart-item__price { text-align: right; display: grid; gap: 4px; }
.cart-item__price b { font-size: 16px; color: var(--ink); font-weight: 800; }
.cart-item__price small { font-size: 12px; color: var(--muted); }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); padding: 8px 0; }
.summary__row b { color: var(--ink); font-weight: 700; }
.summary__row--total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 15px; }
.summary__row--total b { font-size: 24px; color: var(--sell); letter-spacing: -.02em; }
.summary__note { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.summary__note .ic { width: 15px; height: 15px; }
.coupon { display: flex; gap: 8px; }
.coupon .input { height: 44px; }
.coupon .btn { height: 44px; padding: 0 18px; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 30px; align-items: start; }
.form-grid { --bs-gutter-x: 18px; row-gap: 18px; }
.addr-list { display: grid; gap: 12px; }

.pay-method { display: grid; gap: 10px; }
.pay-method .option-card__title img { height: 22px; width: auto; }
.pay-brand {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm); font-size: 11px; font-weight: 800; color: var(--ink);
}

.order-summary-items { display: grid; gap: 14px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.order-summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.order-summary-item img { width: 56px; height: 56px; border-radius: var(--bs-border-radius-sm); background: var(--lav); }
.order-summary-item b { font-size: 13px; color: var(--ink); font-weight: 700; display: block; line-height: 1.4; }
.order-summary-item span { font-size: 12px; color: var(--muted); }
.order-summary-item .amt { font-weight: 700; color: var(--ink); }

/* ---------- 18. Auth ---------- */
.auth {
  min-height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: 1.05fr .95fr;
  background: #fff;
}
.auth__aside {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-600) 55%, #3B48A8);
  color: #C9CCE8; padding: 56px; display: flex; flex-direction: column;
}
.auth__aside::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: rgba(246,137,31,.16); right: -140px; top: -120px;
}
.auth__aside::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); left: -110px; bottom: -90px;
}
.auth__aside .logo { position: relative; z-index: 2; }
.auth__aside .logo__text { color: #fff; }
.auth__aside .logo__tag { color: rgba(255,255,255,.5); }
.auth__aside-body { position: relative; z-index: 2; margin: auto 0; padding-top: 40px; }
.auth__aside h2 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; max-width: 440px; }
.auth__aside p { margin-top: 16px; font-size: 14.5px; max-width: 400px; color: #B9BDDC; }
.auth__aside img { width: 100%; border-radius: var(--bs-border-radius-sm); margin-top: 30px; }
.auth__quote { margin-top: 28px; padding: 20px; border-radius: var(--bs-border-radius-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.auth__quote p { font-size: 13.5px; color: #E7E9F7; margin: 0; }
.auth__quote .tst__person { margin-top: 14px; }
.auth__quote .tst__person b { color: #fff; }
.auth__quote .tst__person span { color: rgba(255,255,255,.6); }

.auth__form { display: grid; place-items: center; padding: 54px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: clamp(26px, 3vw, 34px); }
.auth-card > p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.auth-form { display: grid; gap: 18px; margin-top: 30px; }
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; border-radius: var(--bs-border-radius-sm); border: 1px solid var(--line-2);
  background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink);
  transition: .2s var(--ease);
}
.social-btn:hover { border-color: var(--navy); background: var(--lav); }
.social-btn .ic { width: 18px; height: 18px; }
.divider-text {
  display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted);
  margin: 22px 0;
}
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-foot { margin-top: 24px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--navy); font-weight: 800; }

.pw-strength { display: grid; gap: 7px; margin-top: 4px; }
.pw-strength__bars { display: flex; gap: 5px; }
.pw-strength__bars i { height: 4px; flex: 1; border-radius: var(--bs-border-radius-sm); background: var(--line-2); transition: background .25s; }
.pw-strength[data-score="1"] .pw-strength__bars i:nth-child(1) { background: var(--sell); }
.pw-strength[data-score="2"] .pw-strength__bars i:nth-child(-n+2) { background: var(--warn); }
.pw-strength[data-score="3"] .pw-strength__bars i:nth-child(-n+3) { background: #7FBF4D; }
.pw-strength[data-score="4"] .pw-strength__bars i { background: var(--ok); }
.pw-strength small { font-size: 11.5px; color: var(--muted); }

.auth-collapse { display: none; }

/* ---------- 19. Account ---------- */
.account-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 30px; align-items: start; }
.account-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.account-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm);
  padding: 22px; display: grid; justify-items: center; gap: 10px; text-align: center;
}
.account-card img { width: 76px; height: 76px; border-radius: 50%; }
.account-card b { font-size: 15.5px; color: var(--ink); }
.account-card span { font-size: 12.5px; color: var(--muted); }
.account-card .badge { margin-top: 2px; }

.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm); padding: 10px; display: grid; gap: 2px; }
.account-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--bs-border-radius-sm); font-size: 13.8px; font-weight: 600; color: var(--ink-2);
  transition: .2s var(--ease);
}
.account-nav a .ic { width: 18px; height: 18px; color: var(--muted); }
.account-nav a:hover { background: var(--lav); color: var(--navy); }
.account-nav a.is-active { background: var(--navy); color: #fff; font-weight: 700; }
.account-nav a.is-active .ic { color: #fff; }
.account-nav a .count { margin-left: auto; font-size: 11.5px; background: var(--lav); color: var(--navy); border-radius: var(--bs-border-radius-sm); padding: 1px 8px; font-weight: 800; }
.account-nav a.is-active .count { background: rgba(255,255,255,.2); color: #fff; }
.account-nav__sep { height: 1px; background: var(--line); margin: 8px 6px; }
.account-nav a.is-danger { color: var(--sell); }
.account-nav a.is-danger .ic { color: var(--sell); }
.account-nav a.is-danger:hover { background: #FFF1F0; }

.stat-grid { --bs-gutter-x: 16px; row-gap: 16px; }
.stat-grid > [class*="col"] > * { height: 100%; }
.stat {
  align-content: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm);
  padding: 20px; display: grid; gap: 6px; transition: .25s var(--ease);
}
.stat:hover { box-shadow: var(--sh-2); border-color: transparent; }
.stat__icon {
  width: 42px; height: 42px; border-radius: var(--bs-border-radius-sm); display: grid; place-items: center;
  background: var(--lav); color: var(--navy); margin-bottom: 8px;
}
.stat__icon .ic { width: 20px; height: 20px; }
.stat b { font-size: 26px; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
/* 列包裹后按列序号取色 */
.stat-grid > .col:nth-child(2) .stat__icon { background: var(--orange-100); color: var(--orange-600); }
.stat-grid > .col:nth-child(3) .stat__icon { background: var(--mint); color: var(--ok); }
.stat-grid > .col:nth-child(4) .stat__icon { background: #F0EDFB; color: #6E52B4; }

.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.account-head h1 { font-size: clamp(22px, 2.4vw, 28px); }
.account-head p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.table { min-width: 720px; }
.table th {
  text-align: left; padding: 14px 20px; background: var(--lav);
  font-size: 12.5px; font-weight: 800; color: var(--ink); letter-spacing: .02em;
  white-space: nowrap;
}
.table th:first-child { border-radius: var(--bs-border-radius-sm) 0 0 var(--bs-border-radius-sm); }
.table th:last-child { border-radius: 0 var(--bs-border-radius-sm) var(--bs-border-radius-sm) 0; }
.table td { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table__product { display: flex; align-items: center; gap: 12px; }
.table__product img { width: 52px; height: 52px; border-radius: var(--bs-border-radius-sm); background: var(--lav); }
.table__product b { font-size: 13.5px; color: var(--ink); display: block; line-height: 1.4; }
.table__product span { font-size: 12px; color: var(--muted); }

.tabs-line { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs-line::-webkit-scrollbar { display: none; }
.tabs-line button {
  padding: 13px 18px; font-size: 13.5px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.tabs-line button:hover { color: var(--ink); }
.tabs-line button.is-active { color: var(--navy); border-color: var(--orange); }
.tabs-line .count { font-size: 11px; background: var(--lav); color: var(--navy); border-radius: var(--bs-border-radius-sm); padding: 1px 7px; font-weight: 800; }
.tabs-line button.is-active .count { background: var(--orange-100); color: var(--orange-600); }

.order-card { border: 1px solid var(--line); border-radius: var(--bs-border-radius-sm); background: #fff; overflow: hidden; margin-bottom: 16px; }
.order-card__head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px; background: var(--lav); border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.order-card__head b { color: var(--ink); font-weight: 800; }
.order-card__head .spacer { flex: 1; }
.order-card__body { padding: 18px 22px; display: grid; gap: 16px; }
.order-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; }
.order-line img { width: 76px; height: 76px; border-radius: var(--bs-border-radius-sm); background: var(--lav); }
.order-line b { font-size: 14px; color: var(--ink); display: block; }
.order-line span { font-size: 12.5px; color: var(--muted); }
.order-line .amt { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.order-card__foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 22px; border-top: 1px solid var(--line);
}
.order-card__foot .total { margin-right: auto; font-size: 13px; color: var(--muted); }
.order-card__foot .total b { font-size: 18px; color: var(--sell); font-weight: 800; }

.timeline { display: grid; gap: 0; padding: 4px 0 0 6px; }
.timeline__item { position: relative; padding: 0 0 20px 26px; border-left: 2px solid var(--line); }
.timeline__item:last-child { border-color: transparent; padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line-2);
}
.timeline__item.is-done::before { background: var(--orange); border-color: var(--orange); }
.timeline__item b { font-size: 13.5px; color: var(--ink); display: block; }
.timeline__item span { font-size: 12px; color: var(--muted); }

.addr-grid { --bs-gutter-x: 18px; row-gap: 18px; }
.addr-grid > [class*="col"] > * { height: 100%; }
.addr-card {
  position: relative; border: 1.5px solid var(--line); border-radius: var(--bs-border-radius-sm);
  padding: 22px; background: #fff; display: grid; align-content: start; gap: 10px; transition: .25s var(--ease);
}
.addr-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.addr-card.is-default { border-color: var(--orange); background: #FFFDF9; }
.addr-card__head { display: flex; align-items: center; gap: 10px; }
.addr-card__head b { font-size: 15px; color: var(--ink); }
.addr-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.addr-card__tag {
  position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800;
  color: var(--orange-600); background: var(--orange-100); padding: 3px 9px; border-radius: var(--bs-border-radius-sm);
}
.addr-card__actions { display: flex; align-items: center; gap: 14px; font-size: 12.5px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.addr-card__actions button { color: var(--muted); font-weight: 600; transition: color .2s; }
.addr-card__actions button:hover { color: var(--navy); }
.addr-card--add {
  display: grid; place-items: center; gap: 10px; min-height: 190px; width: 100%; width: 100%;
  border-style: dashed; color: var(--muted); text-align: center;
}
.addr-card--add .ic { width: 30px; height: 30px; color: var(--orange); }
.addr-card--add:hover { border-color: var(--orange); color: var(--navy); background: #FFFDF9; }

/* profile */
.avatar-upload { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar-upload img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.avatar-upload__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row b { font-size: 13.8px; color: var(--ink); display: block; }
.switch-row span { font-size: 12.5px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch i {
  position: absolute; inset: 0; border-radius: var(--bs-border-radius-sm); background: var(--line-2);
  transition: .25s var(--ease);
}
.switch i::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--orange); }
.switch input:checked + i::after { transform: translateX(20px); }

/* wishlist / history */
.wl-item { position: relative; }
.wl-item .p-card__tools { display: none; }
.wl-item__remove {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; color: var(--muted); box-shadow: var(--sh-1);
  transition: .2s;
}
.wl-item__remove:hover { background: var(--sell); color: #fff; }
.wl-item__remove .ic { width: 16px; height: 16px; }

.history-group { margin-bottom: 34px; }
.history-group__date {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  font-size: 13px; font-weight: 800; color: var(--ink);
}
.history-group__date span { font-size: 12px; color: var(--muted); font-weight: 600; }
.history-group__date::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.history-row {
  display: grid; grid-template-columns: 88px 1fr auto auto; gap: 18px; align-items: center;
  padding: 16px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--bs-border-radius-sm); margin-bottom: 10px; transition: .25s var(--ease);
}
.history-row:hover { border-color: transparent; box-shadow: var(--sh-2); }
.history-row img { width: 88px; height: 88px; border-radius: var(--bs-border-radius-sm); background: var(--lav); }
.history-row__time { font-size: 12px; color: var(--muted-2); text-align: right; }

/* empty state */
.empty {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 60px 24px;
}
.empty img { width: 150px; height: 150px; }
.empty h3 { font-size: 19px; }
.empty p { font-size: 14px; color: var(--muted); max-width: 380px; }

/* ---------- 20. Newsletter & footer ---------- */
.newsletter {
  background: var(--navy-900); color: #C9CCE8;
  border-radius: var(--bs-border-radius-sm); padding: 44px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: rgba(246,137,31,.14); right: -120px; top: -180px;
}
.newsletter h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); }
.newsletter p { margin-top: 10px; font-size: 14px; max-width: 420px; }
.newsletter__form { position: relative; z-index: 2; display: flex; gap: 10px; background: #fff; padding: 7px; border-radius: var(--bs-border-radius-sm); }
.newsletter__form input {
  flex: 1; border: 0; background: transparent; height: 48px; padding: 0 20px;
  font-size: 14px; min-width: 0;
}
.newsletter__form input:focus { outline: none; }
.newsletter__form .btn { border-radius: var(--bs-border-radius-sm); height: 48px; padding: 0 26px; }
.newsletter__note { font-size: 12px; margin-top: 12px; color: rgba(255,255,255,.45); }
.newsletter--inline { border-radius: 0; padding: 46px 0; background: transparent; display: flex; justify-content: space-between; gap: 34px; }

.site-footer { background: var(--navy-950); color: #A7AACB; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 46px; }
.footer-brand .logo__text { color: #fff; }
.footer-brand .logo__tag { color: rgba(255,255,255,.4); }
.footer-brand p { font-size: 13px; margin-top: 18px; line-height: 1.75; max-width: 260px; }
.footer-social { display: flex; gap: 9px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #E4E6F5; transition: .2s var(--ease);
}
.footer-social a:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.footer-social .ic { width: 16px; height: 16px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 13px; transition: .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 11px; font-size: 13px; margin-bottom: 14px; line-height: 1.6; }
.footer-contact .ic { width: 17px; height: 17px; color: var(--orange); flex: none; margin-top: 3px; }
.footer-contact b { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px;
}
.footer-pay { display: flex; align-items: center; gap: 8px; }
.footer-pay span {
  padding: 5px 10px; border-radius: var(--bs-border-radius-sm); background: rgba(255,255,255,.08);
  font-size: 10.5px; font-weight: 800; color: #E4E6F5; letter-spacing: .04em;
}

/* ---------- 21. Bootstrap 组件皮肤：Toast / Modal ---------- */
/* 结构由 Bootstrap 提供（.toast / .modal / .modal-dialog / .modal-content），这里只做品牌皮肤 */
.toast-container { z-index: 200; }

.toast.p-toast {
  --bs-toast-bg: var(--navy-900);
  --bs-toast-color: #fff;
  --bs-toast-border-width: 0;
  --bs-toast-border-radius: var(--bs-border-radius-sm);
  --bs-toast-box-shadow: var(--sh-3);
  --bs-toast-padding-x: 18px;
  --bs-toast-padding-y: 13px;
  width: auto; max-width: 340px;
  display: flex; align-items: center; gap: 11px;
  font-size: 13.5px; font-weight: 600;
}
.toast.p-toast .ic { width: 18px; height: 18px; color: #6FE0B0; }

.modal-backdrop.show { opacity: .55; background: #090A2B; backdrop-filter: blur(4px); }

.p-modal { --bs-modal-margin: 24px; --bs-modal-width: 560px; }
.p-modal .modal-dialog { max-width: 560px; }
.p-modal.p-modal--wide .modal-dialog { max-width: 820px; }
.p-modal .modal-content {
  background: #fff; border: 0; border-radius: var(--bs-border-radius-sm);
  box-shadow: var(--sh-3);
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.p-modal .modal-header {
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  align-items: center; justify-content: space-between;
}
.p-modal .modal-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.p-modal .modal-body { padding: 24px; overflow-y: auto; }
.p-modal .modal-footer {
  padding: 18px 24px; border-top: 1px solid var(--line);
  background: #fdfdfe; gap: 10px; border-radius: 0 0 var(--bs-border-radius-sm) var(--bs-border-radius-sm);
}
.p-modal .btn-close {
  width: 36px; height: 36px; border-radius: 50%; padding: 0; margin: 0;
  background-size: 13px; opacity: .5; transition: .2s var(--ease);
}
.p-modal .btn-close:hover { background-color: var(--lav); opacity: 1; }
.p-modal .btn-close:focus { box-shadow: none; }

/* success modal */
.success-box { text-align: center; padding: 46px 30px; display: grid; justify-items: center; gap: 12px; }
.success-box__icon {
  width: 74px; height: 74px; border-radius: 50%; background: var(--mint); color: var(--ok);
  display: grid; place-items: center; margin-bottom: 6px;
}
.success-box__icon .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.success-box h3 { font-size: 22px; }
.success-box p { font-size: 14px; color: var(--muted); max-width: 380px; }
.success-box__actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- 21.5 Quick view ---------- */
.quick-view { display: grid; grid-template-columns: .85fr 1fr; gap: 24px; align-items: start; }
.quick-view__media img { border-radius: var(--bs-border-radius-sm); background: var(--lav); width: 100%; }
.quick-view__body { display: grid; gap: 12px; align-content: start; }
.quick-view__body h3 { font-size: 19px; line-height: 1.35; }

@media (max-width: 640px) {
  .quick-view { grid-template-columns: 1fr; }
}

/* ---------- 22. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1240px) {
  .nav-list > li > a { padding: 0 11px; font-size: 12.8px; }
  .shop-drop__btn { padding: 0 14px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-col--about { display: none; }
  .header__contact { display: none; }
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 20px; padding-top: 44px; min-height: 0; }
  .hero__art { height: 420px; max-width: 520px; margin-inline: auto; width: 100%; }
  .shop-layout { grid-template-columns: 1fr; }
  /* 筛选面板在窄屏由 Bootstrap Offcanvas（offcanvas-bottom）接管 */
  .filters.offcanvas {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto;
    max-height: 82vh; overflow-y: auto; padding-bottom: 90px; margin: 0;
    border-radius: var(--bs-border-radius-sm) var(--bs-border-radius-sm) 0 0; border: 0;
  }
  .filters__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 16px 0 8px; position: sticky; top: 0; background: #fff; z-index: 2;
    border-radius: var(--bs-border-radius-sm) var(--bs-border-radius-sm) 0 0;
  }
  .filters__head b { font-size: 15px; }
  .filter-fab {
    display: inline-flex; position: fixed; right: 18px; bottom: 22px; z-index: 100;
    height: 50px; padding: 0 22px; border-radius: var(--bs-border-radius-sm);
    background: var(--navy); color: #fff; font-weight: 700; font-size: 13.5px;
    box-shadow: var(--sh-3); align-items: center; gap: 9px;
  }
  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .gallery { position: static; }
  .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .account-card { display: none; }
  .account-nav {
    display: flex; overflow-x: auto; padding: 8px 24px; scrollbar-width: none;
    margin-inline: -24px; border-radius: 0; border-inline: 0;
  }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a { white-space: nowrap; padding: 10px 14px; font-size: 13px; }
  .account-nav { padding-inline: 18px; margin-inline: -18px; }
  .account-nav { padding-inline: 18px; margin-inline: -18px; }
  .account-nav__sep { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .auth-collapse { display: block; }
  .review-summary { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .topbar__promo { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
  .container { --bs-gutter-x: 36px; }
  .section { padding: 52px 0; }
  .nav-toggle { display: inline-grid; }
  .mainnav { display: none; }
  .header__inner { gap: 12px; }
  .header__search-desktop { display: none; }
  .cart-link { padding: 5px; background: transparent; }
  .cart-link__text { display: none; }
  .header__actions .icon-btn, .cart-link__icon { width: 40px; height: 40px; }
  .promo-card { padding: 28px; min-height: 240px; }
  .promo-card__content { max-width: 68%; }
  .deal { grid-template-columns: 1fr; padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .newsletter { grid-template-columns: 1fr; padding: 32px 26px; }
  .p-card--list { flex-direction: column; }
  .p-card--list .p-card__media { width: 100%; aspect-ratio: 1/1; }
  .p-card--list .p-card__actions { grid-template-columns: 1fr 1fr; max-width: none; }
  .history-row { grid-template-columns: 70px 1fr; }
  .history-row img { width: 70px; height: 70px; }
  .history-row__time { grid-column: 2; text-align: left; }
  .history-row > .btn { grid-column: 2; justify-self: start; }
  .cart-item { grid-template-columns: 82px 1fr; padding: 16px 18px; }
  .cart-item__price { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .panel__body { padding: 18px; }
  .panel__head { padding: 16px 18px; }
  .spec-table th { width: 130px; padding: 12px 14px; }
  .spec-table td { padding: 12px 14px; }
  .prose { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__right .topbar__sep { display: none; }
  .logo__text { font-size: 20px; }
  .logo__mark { width: 34px; height: 34px; border-radius: var(--bs-border-radius-sm); }
  .logo__tag { display: none; }
  .section { padding: 42px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
  .cat-strip { --bs-gutter-x: 10px; row-gap: 10px; }
  .cat-tile { padding: 16px 8px; gap: 9px; }
  .cat-tile__img { width: 54px; height: 54px; }
  .cat-tile__name { font-size: 12px; }
  .p-grid { --bs-gutter-x: 12px; row-gap: 12px; }
  .p-card { border-radius: var(--bs-border-radius-sm); }
  .p-card__body { padding: 12px 12px 14px; gap: 8px; }
  .p-card__title { font-size: 13.5px; }
  .p-card__actions { grid-template-columns: 1fr; }
  .p-card__actions .btn--ghost { display: none; }
  .price { font-size: 16px; }
  .p-card__quick { display: none; }
  .p-card__tool { width: 32px; height: 32px; opacity: 1; transform: none; }
  .deal__products { grid-template-columns: 1fr; }
  .deal__timer { flex-wrap: wrap; }
  .timer-cell { min-width: 58px; }
  .hero__art { height: 340px; }
  .hero-card--c { display: none; }
  .hero-float--1 { left: 0; top: 40%; padding: 8px 11px; font-size: 11.5px; }
  .hero-float--3 { display: none; }
  .hero__trust { gap: 16px; margin-top: 28px; }
  .hero__stat b { font-size: 19px; }
  .newsletter__form { flex-direction: column; border-radius: var(--bs-border-radius-sm); padding: 10px; }
  .newsletter__form input { height: 42px; padding: 0 12px; }
  .newsletter__form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .gallery__thumbs { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .shop-toolbar { gap: 10px; padding: 12px; }
  .toolbar-right { width: 100%; margin-left: 0; }
  .sort-select { flex: 1; min-width: 0; }
  .stat-grid { --bs-gutter-x: 10px; row-gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 21px; }
  .order-card__head { gap: 10px; font-size: 11.5px; }
  .order-line { grid-template-columns: 62px 1fr; }
  .order-line .amt { grid-column: 2; }
  .auth__form { padding: 34px 18px; }
  .steps-bar { gap: 8px; }
  .steps-bar__line { width: 20px; }
  .steps-bar__item > span:not(.steps-bar__num) { display: none; }
  .steps-bar__item.is-active > span:not(.steps-bar__num) { display: inline; }
  .toast-container { left: 14px; right: 14px; }
  .toast.p-toast { max-width: none; }
  .p-modal .modal-body, .p-modal .modal-header, .p-modal .modal-footer { padding-inline: 18px; }
  .filter-fab { right: 14px; bottom: 16px; }
}


/* ============================================================
   24. Bootstrap 适配层
   —— 中和 Bootstrap 组件与既有皮肤冲突的属性，并补齐少量工具类
   ============================================================ */

/* 4.1 按钮：Bootstrap 的 hover/active 变量回落到品牌色，避免 hover 时丢背景 */
.btn,
.btn:hover,
.btn:focus-visible {
  --bs-btn-color: var(--btn-fg);
  --bs-btn-hover-color: var(--btn-fg);
  --bs-btn-active-color: var(--btn-fg);
  --bs-btn-disabled-color: var(--btn-fg);
  --bs-btn-hover-bg: var(--btn-bg);
  --bs-btn-active-bg: var(--btn-bg);
  --bs-btn-hover-border-color: var(--btn-bd);
  --bs-btn-active-border-color: var(--btn-bd);
  --bs-btn-focus-box-shadow: 0 0 0 4px rgba(246, 137, 31, .2);
  text-decoration: none;
}
.btn:focus-visible { box-shadow: var(--bs-btn-focus-box-shadow); }

/* .btn-link 与 Bootstrap 同名：去掉默认下划线，保留品牌强调 */
.btn-link { text-decoration: none; }
.btn-link:hover { text-decoration: none; }

/* 4.2 徽章：Bootstrap 的 .badge 提供基线，这里补齐品牌排版 */
.badge { line-height: 1.5; }
.badge:empty { display: none; }

/* 4.3 表格：表格组件已在 .table 皮肤中定义，去掉 Bootstrap 的默认下边距 */
.table { margin-bottom: 0; }
.table > :not(caption) > * > * { background: transparent; box-shadow: none; }
.table th { border-bottom-width: 0; }
.table th { border-bottom-width: 0; }

/* 4.4 表单：在 Bootstrap .form-control / .form-select 之上套用品牌尺寸 */
.form-control.input,
.form-select.select,
.form-control.textarea {
  height: 48px;
  padding: 0 16px;
  font-size: 14.5px;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--bs-border-radius-sm);
}
.form-control.textarea { height: auto; min-height: 108px; padding: 13px 16px; }
.form-select.select { padding-right: 42px; }
.form-control.input:focus,
.form-select.select:focus,
.form-control.textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(246, 137, 31, .13);
  background-color: #fff;
}
.form-control::placeholder { color: var(--muted-2); }

/* 4.5 栅格扩展：Bootstrap 默认只提供 1-6 列 */
@media (min-width: 1200px) {
  .row-cols-xl-8 > * { flex: 0 0 auto; width: 12.5%; }
}

/* 4.6 间距工具补充（Bootstrap 间距刻度 0-5，这里补 12px 与 2rem） */
/* 4.7 Offcanvas / Collapse 细节：容器聚焦不描边；折叠按钮图标随状态旋转 */
.offcanvas:focus,
.offcanvas:focus-visible { outline: 0; }
.filter-group__head[aria-expanded="false"] .ic { transform: rotate(-90deg); }

/* 4.8 Progress：BS 把变量定义在 .progress 组件上（:root 会被遮蔽），需在组件级桥接品牌色 */
.progress {
  --bs-progress-bar-bg: var(--orange);
  --bs-progress-border-radius: var(--bs-border-radius-sm);
}

/* 4.8 列内卡片拉伸，保持与 CSS Grid 时等高 */
.cat-strip > [class*="col"] > *,
.cat-cards > [class*="col"] > *,
.promo-2 > [class*="col"] > * { height: 100%; }
.wl-item { display: flex; height: 100%; }
.wl-item > .p-card { flex: 1; }
/* 地址弹窗：表单需要撑满 modal-content 才能让 body 滚动 */
.p-modal .modal-content > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }

/* 关闭 !important，保证页面上的内联样式仍然优先（与迁移前一致） */
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-18 { gap: 18px; }
.gap-22 { gap: 22px; }
.mt-6 { margin-top: 2rem; }
.mb-6 { margin-bottom: 2rem; }

/* ============================================================
   25. 滚动进度：顶部装饰条 + 右侧快捷控件
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(246, 137, 31, .16);   /* 暖色轨道：深色/浅色页头都能看出基准线 */
  z-index: 130; pointer-events: none;
}
.scroll-progress__bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--orange) 0%, #FFB35F 100%);
  border-radius: 0 var(--bs-border-radius-sm) var(--bs-border-radius-sm) 0;
  box-shadow: 0 0 12px rgba(246, 137, 31, .55);
  will-change: width;
}

.scroll-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: 4px;
  width: 46px;
}
.rail-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: #fff; color: #1F2937;
  border: 1px solid var(--line-2); border-radius: var(--bs-border-radius-sm);
  box-shadow: 0 1px 3px rgba(17, 19, 53, .07);
  transition: color .2s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.rail-btn:hover,
.rail-btn:active {
  background: var(--navy-900); border-color: var(--navy-900);
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(17, 19, 53, .8);
}
.rail-btn:active { transform: none; }

.rail-btn__icon {
  width: 18px; height: 18px; background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.rail-btn--top .rail-btn__icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.4 12 6.4l6 6'/%3E%3Cpath d='M6 18.2 12 12.2l6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.4 12 6.4l6 6'/%3E%3Cpath d='M6 18.2 12 12.2l6 6'/%3E%3C/svg%3E");
}
.rail-btn--mid .rail-btn__icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5.5 9.2h13'/%3E%3Cpath d='M5.5 14.8h13'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5.5 9.2h13'/%3E%3Cpath d='M5.5 14.8h13'/%3E%3C/svg%3E");
}
.rail-btn--bottom .rail-btn__icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5.8 12 11.8l6-6'/%3E%3Cpath d='M6 11.6 12 17.6l6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5.8 12 11.8l6-6'/%3E%3Cpath d='M6 11.6 12 17.6l6-6'/%3E%3C/svg%3E");
}

.rail-percent {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 54px;
  background: #1F2937; color: #fff;
  border-radius: var(--bs-border-radius-sm);
  font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 10px 22px -14px rgba(17, 19, 53, .9);
  font-variant-numeric: tabular-nums;
}
.rail-percent__track {
  position: absolute; left: 7px; right: 7px; bottom: 7px; height: 3px;
  border-radius: var(--bs-border-radius-sm); background: rgba(255, 255, 255, .28);
}
.rail-percent__fill {
  display: block; height: 100%; width: 0;
  border-radius: var(--bs-border-radius-sm); background: #fff;
}

@media (max-width: 900px) {
  /* 窄屏收窄控件尺寸并贴边，尽量少遮挡内容 */
  .scroll-rail { right: 6px; width: 34px; gap: 3px; }
  .rail-btn { width: 34px; height: 34px; border-radius: var(--bs-border-radius-sm); }
  .rail-btn__icon { width: 14px; height: 14px; }
  .rail-percent { width: 34px; height: 42px; font-size: 10.5px; border-radius: var(--bs-border-radius-sm); }
  .rail-percent__track { left: 5px; right: 5px; bottom: 5px; height: 2.5px; }
}

@media (max-height: 520px) {
  .scroll-rail { top: auto; bottom: 12px; transform: none; }
}

@media print {
  .scroll-progress, .scroll-rail { display: none !important; }
}

/* ---------- 定制设计器入口（product-detail） ---------- */
.designer-cta {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 12px;
  border-radius: var(--bs-border-radius-sm); border: 1px solid rgba(246, 137, 31, .35);
  background: linear-gradient(100deg, #FFF6EC, #FFFDFA);
  color: var(--ink); transition: all .18s var(--ease);
}
.designer-cta:hover { border-color: var(--orange); box-shadow: 0 12px 26px -18px rgba(246, 137, 31, .9); transform: translateY(-1px); }
.designer-cta__ico {
  width: 40px; height: 40px; border-radius: var(--bs-border-radius-sm); flex: none;
  display: grid; place-items: center; background: var(--orange); color: #fff;
}
.designer-cta__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.designer-cta__txt b { font-size: 14px; font-weight: 700; }
.designer-cta__txt span { font-size: 12px; color: var(--muted); }
.designer-cta > .ic { width: 16px; height: 16px; color: var(--orange); flex: none; }
