/* ==========================================================================
   TIGER AUTO PARTS — 全站样式表
   目录：1 token / 2 reset / 3 排版 / 4 按钮表单 / 5 顶栏头部 / 6 导航
         7 浮层 / 8 首页模块 / 9 商品卡 / 10 列表页 / 11 详情页
         12 品牌页 / 13 关于 / 14 联系 / 15 后台 / 16 骨架屏 / 17 响应式
   ========================================================================== */

/* ------------------------------------------------------------ 1. 设计 token */
:root {
  --navy: #12233A;
  --navy-700: #1B3552;
  --navy-800: #0E1B2C;
  --brand: #F5B301;
  --brand-600: #E0A200;
  --price: #C8102E;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --line: #E6E9EE;
  --line-strong: #D5DAE2;
  --text: #1A2430;
  --muted: #6B7889;
  --ok: #128A5B;
  --r-card: 10px;
  --r-btn: 6px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(18, 35, 58, .06);
  --shadow-2: 0 1px 2px rgba(18, 35, 58, .06), 0 8px 24px rgba(18, 35, 58, .06);
  --shadow-3: 0 2px 6px rgba(18, 35, 58, .08), 0 16px 40px rgba(18, 35, 58, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial,
          "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --header-h: 76px;
  --nav-h: 48px;
}

/* ---------------------------------------------------------------- 2. reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- 3. 排版 */
h1 { font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -.6px; }
h2 { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.3px; }
h3 { font-size: 17px; font-weight: 700; }

.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--white { background: var(--surface); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head__text { max-width: 720px; }
.section-head h2 { color: var(--navy); }
.section-head__sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
}
.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--brand);
}
.section-head__link:hover { color: var(--brand-600); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.muted { color: var(--muted); }
.center { text-align: center; }

/* --------------------------------------------------------- 4. 按钮 / 表单 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--brand { background: var(--brand); color: var(--navy); }
.btn--brand:hover { background: var(--brand-600); color: var(--navy); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }

.btn--ghost {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--navy); background: #FBFCFD; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--text {
  background: transparent;
  color: var(--muted);
  height: 38px;
}
.btn--text:hover { color: var(--navy); }

.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 50px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }

.btn:disabled { opacity: .62; cursor: not-allowed; }

/* 表单 */
.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.field__req { color: var(--price); margin-left: 2px; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #9AA5B4; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 35, 58, .1);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7889' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field--full { grid-column: 1 / -1; }

.form-note {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  color: var(--muted);
}
.form-note.is-ok { color: var(--ok); }
.form-note.is-error { color: var(--price); }

/* --------------------------------------------------------- 5. 顶部 + 头部 */
.topbar {
  background: var(--navy);
  color: #C6D2E0;
  font-size: 12.5px;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.topbar__note { margin: 0; letter-spacing: .1px; }
.topbar__right { display: flex; align-items: center; gap: 18px; }

.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang__btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: #9FB0C4;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .4px;
}
.lang__btn:hover { color: #fff; }
.lang__btn.is-active { color: var(--brand); }
.lang__sep { color: #3B5170; }

.topbar__wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #C6D2E0;
  font-weight: 500;
}
.topbar__wa:hover { color: var(--brand); }

.sticky-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  transition: box-shadow .18s ease;
}
.sticky-shell.is-scrolled { box-shadow: 0 6px 20px rgba(18, 35, 58, .1); }

.header { background: var(--surface); }
.header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.header__logo img { height: 58px; width: auto; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 620px;
  margin: 0 auto;
}
.search__icon {
  position: absolute;
  left: 13px;
  display: flex;
  color: var(--muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 44px;
  padding: 0 106px 0 40px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: #F7F8FA;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.search__input::placeholder { color: #9AA5B4; }
.search__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 35, 58, .08);
}
.search__btn {
  position: absolute;
  right: 4px;
  height: 36px;
  padding: 0 16px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}
.search__btn:hover { background: var(--navy-700); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--navy);
}
.cart-btn:hover { border-color: var(--navy); }
.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--price);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--navy);
}

/* ---------------------------------------------------------------- 6. 导航 */
.nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
}
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list a,
.nav__dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--nav-h);
  padding: 0 14px;
  background: none;
  border: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #33445A;
  letter-spacing: .1px;
  position: relative;
}
.nav__list a:hover,
.nav__dropbtn:hover { color: var(--navy); }
.nav__list a.is-active { color: var(--navy); }
.nav__list a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.nav__menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 268px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-3);
  display: none;
  z-index: 70;
}
.nav__drop.is-open .nav__menu { display: block; }
.nav__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.nav__menu a:hover { background: var(--bg); color: var(--navy); }
.nav__menu em { font-style: normal; color: var(--muted); font-size: 12px; }

.nav__aside a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 0;
}
.nav__aside a:hover { color: var(--brand-600); }

/* ------------------------------------------------------- 7. 抽屉 / 浮层 */
.mdrawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--surface);
  overflow-y: auto;
  padding: 0 20px 32px;
}
.mdrawer__top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mdrawer__title { font-weight: 700; color: var(--navy); }
.mdrawer__close,
.cdrawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--navy);
}
.search--drawer { margin: 16px 0 8px; max-width: none; }
.mdrawer__nav { margin: 4px 0 18px; }
.mdrawer__nav a {
  display: block;
  padding: 13px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mdrawer__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0;
}
.mdrawer__cats a {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mdrawer__cats em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.mdrawer__foot { display: grid; gap: 10px; margin-top: 22px; }

.cdrawer { position: fixed; inset: 0; z-index: 210; }
.cdrawer__mask { position: absolute; inset: 0; background: rgba(14, 27, 44, .42); }
.cdrawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.cdrawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.cdrawer__head h2 { font-size: 17px; color: var(--navy); }
.cdrawer__body { flex: 1 1 auto; overflow-y: auto; padding: 12px 20px; }
.cdrawer__empty { color: var(--muted); padding: 28px 0; text-align: center; }
.cdrawer__foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.citem {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.citem__img {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.citem__img img { width: 100%; height: 100%; object-fit: contain; }
.citem__main { flex: 1 1 auto; min-width: 0; }
.citem__name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.citem__meta { font-size: 12px; color: var(--muted); }
.citem__del {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--muted);
  border-radius: 6px;
}
.citem__del:hover { background: var(--bg); color: var(--price); }

/* ------------------------------------------------------------- 8. 首页 */
.hero {
  position: relative;
  background: var(--navy-800);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bus.jpg");
  background-size: cover;
  background-position: center 45%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(14, 27, 44, .965) 0%, rgba(14, 27, 44, .9) 30%, rgba(14, 27, 44, .42) 60%, rgba(14, 27, 44, .14) 100%);
}
.hero__in {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding-top: 72px;
  padding-bottom: 84px;
}
.hero__content { max-width: 660px; }
/* 品牌标识：透明底反白版，直接压在首屏图上 */
.hero__logo {
  display: block;
  width: 226px;
  height: auto;
  margin-bottom: 22px;
  /* 双层柔和暗晕：让白色 TIGER 字样在亮色天空上也能读清，且不留方块底 */
  filter: drop-shadow(0 3px 12px rgba(6, 14, 26, .7)) drop-shadow(0 0 34px rgba(6, 14, 26, .6));
}
.hero__badge {
  display: inline-block;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; }
.hero__sub {
  margin-top: 18px;
  max-width: 560px;
  color: #C6D2E0;
  font-size: 15.5px;
  line-height: 1.65;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__card {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .94);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  backdrop-filter: blur(6px);
}
.hero__card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(18, 138, 91, .18);
}

/* 信任条 */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust__item {
  padding: 26px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.trust__item:first-child { border-left: 0; }
.trust__num {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.4px;
}
.trust__label {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .2px;
}

/* 分类宫格 */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.cat-card__img {
  position: relative;              /* 作为 img 的定位容器，杜绝图片撑破方框 */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #F1F3F6;
}
.cat-card__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;               /* 分类图是装饰性配图，填满即可；商品卡仍用 contain */
}
.cat-card__body {
  margin-top: auto;                /* 配合 .cat-card 的 column flex，让同一行卡片底部对齐 */
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.cat-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;               /* 预留两行，保证 12 张卡文字区等高 */
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.cat-card__cn { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.cat-card__count { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* 品牌宫格（首页） */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.brand-tile__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .2px;
}
.brand-tile__cn { font-size: 12.5px; color: var(--muted); }
.brand-tile__count { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* 为什么选我们 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 22px;
}
.why-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(245, 179, 1, .14);
  color: var(--navy);
  margin-bottom: 16px;
}
.why-item h3 { color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 13.5px; line-height: 1.62; }

/* CTA 横幅 */
.cta-band { background: var(--navy); }
.cta-band__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.cta-band h2 { color: #fff; max-width: 720px; }
.cta-band p { color: #A9B8CA; margin-top: 8px; max-width: 640px; }
.cta-band .btn { flex: 0 0 auto; }

/* ------------------------------------------------------------ 9. 商品卡 */
/*
 * 列数：auto-fill + 215px 最小列宽。
 * 列表页内容区宽 964px（1280 容器 - 48 padding - 240 侧栏 - 28 间距），
 * (964 + 18) / (215 + 18) = 4.14 → 正好 4 列 × 227.5px，兼顾 SPEC 的 minmax(232px,1fr) 意图。
 * 窄屏统一 2 列（<960px），避免手机上出现 150px 的碎卡。
 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}
@media (max-width: 959px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.p-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}
.p-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 10px;
  overflow: hidden;
}
.p-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.p-card:hover .p-card__media img { transform: scale(1.03); }

/* 缺图占位：新增商品还没配图时，不显示裂图，改用中性占位块 */
.p-card__ph,
.pd-gallery__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #f6f7f9 0%, #eceef2 100%);
  color: #9aa3ad;
  border-radius: 6px;
}
/* 主图/缩略图容器本身有 aspect-ratio，占位块填满即可 */
.pd-gallery__ph { height: 100%; }
.p-card__ph svg,
.pd-gallery__ph svg { width: 34px; height: 34px; opacity: .55; }
.p-card__ph span,
.pd-gallery__ph span {
  font: 500 11px/1.4 var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a7aeb8;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-card__chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 9px;
  background: rgba(18, 35, 58, .9);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  border-radius: var(--r-pill);
}
.p-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.p-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--navy);
}
.p-card__name:hover { color: var(--brand-600); }
.p-card__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-card__sub--empty { opacity: .5; }
.p-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  min-height: 25px;
}
.p-card__money { font-size: 18px; font-weight: 700; color: var(--price); letter-spacing: -.2px; }
.p-card__unit { font-size: 12px; color: var(--muted); }
.p-card__usd {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  opacity: .78;
}
.p-card__ask { font-size: 15px; font-weight: 700; color: var(--navy); }
/* 参考价说明：11px 灰字，占满价格行的一整行 */
.p-card__note {
  flex: 0 0 100%;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.p-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.p-card__sku { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------------------------------- 10. 列表页 */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 22px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb__sep { color: var(--line-strong); }
.page-head h1 { font-size: 30px; color: var(--navy); }
.page-head__sub { color: var(--muted); margin-top: 6px; font-size: 13.5px; }

.shop {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0 56px;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
}
.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.filters__head h2 { font-size: 15px; color: var(--navy); letter-spacing: .2px; }
.filters__clear {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filters__clear:hover { color: var(--price); }

.fgroup { padding: 14px 0; border-top: 1px solid var(--line); }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.fgroup__list { margin: 0 -6px; padding: 0 6px; }
.fgroup__list--brand { margin: 0 -6px; padding: 0 6px; }

/* 桌面端（≥1120px）：筛选分组自然展开，不裁切、不出现内嵌滚动条 */
@media (min-width: 1120px) {
  .fgroup__list,
  .fgroup__list--brand {
    max-height: none;
    overflow-y: visible;
  }
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.35;
}
.check input {
  flex: 0 0 auto;
  width: 15px; height: 15px;
  margin: 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.check span { flex: 1 1 auto; }
.check em { font-style: normal; font-size: 12px; color: var(--muted); }
.check:hover { color: var(--navy); }

.price-row { display: flex; align-items: center; gap: 8px; }
.price-row .input { min-height: 36px; padding: 6px 8px; font-size: 13px; }
.price-row__sep { color: var(--muted); }
.price-apply { margin-top: 10px; width: 100%; }

.shop__main { min-width: 0; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar__count { font-size: 13px; color: var(--muted); }
.toolbar__count b { color: var(--navy); font-weight: 700; }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar__label { font-size: 13px; color: var(--muted); }
.toolbar .select { min-height: 38px; width: auto; min-width: 188px; font-size: 13px; }
.filters-open { display: none; }

.empty {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  padding: 56px 24px;
  text-align: center;
}
.empty__icon { color: var(--line-strong); margin-bottom: 14px; display: inline-flex; }
.empty h3 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.pager button,
.pager span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.pager button:hover:not(:disabled) { border-color: var(--navy); }
.pager button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager__dots { background: transparent !important; border-color: transparent !important; color: var(--muted) !important; }

/* --------------------------------------------------------- 11. 详情页 */
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 28px 0 8px;
  align-items: start;
}
.gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.gallery__thumb {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb--note {
  flex-direction: column;
  gap: 2px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  padding: 6px;
  border-style: dashed;
}

.pd__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pd__chip {
  display: inline-block;
  padding: 3px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
}
.pd h1 { font-size: 30px; color: var(--navy); line-height: 1.25; }
.pd__cn { color: var(--muted); font-size: 15px; margin-top: 6px; }

.pd__price {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.pd__price-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pd__amount { font-size: 32px; font-weight: 700; color: var(--price); letter-spacing: -.6px; }
.pd__unit { font-size: 14px; color: var(--muted); }
.pd__usd { font-size: 14px; font-weight: 600; color: var(--navy); opacity: .78; margin-top: 4px; }
.pd__note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.pd__ask { font-size: 26px; font-weight: 700; color: var(--navy); }

.pd__usp { margin: 16px 0 0; display: grid; gap: 7px; }
.pd__usp li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #33445A;
}
.pd__usp svg { flex: 0 0 auto; color: var(--ok); }

.buybox { margin-top: 20px; }
.qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 42px;
  height: 100%;
  background: transparent;
  border: 0;
  font-size: 17px;
  color: var(--navy);
  line-height: 1;
}
.qty button:hover { background: var(--bg); }
.qty input {
  width: 56px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buybox__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buybox__row .btn { flex: 1 1 190px; }
.buybox__note { margin-top: 10px; font-size: 12.5px; color: var(--ok); min-height: 18px; }

.specs {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.specs h2 {
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--navy);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #FAFBFC;
}
.specs table { width: 100%; border-collapse: collapse; }
.specs th,
.specs td {
  text-align: left;
  padding: 11px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs tr:last-child th,
.specs tr:last-child td { border-bottom: 0; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; }
.specs td { color: var(--text); font-weight: 600; }

.inquiry-block { margin: 48px 0 0; }
.inquiry-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.inquiry-card__aside {
  background: var(--navy);
  color: #C6D2E0;
  padding: 32px 28px;
}
.inquiry-card__aside h2 { color: #fff; font-size: 22px; }
.inquiry-card__aside p { margin-top: 10px; font-size: 13.5px; line-height: 1.65; }
.inquiry-card__meta { margin-top: 22px; display: grid; gap: 12px; font-size: 13px; }
.inquiry-card__meta li { display: flex; align-items: center; gap: 9px; }
.inquiry-card__meta svg { color: var(--brand); flex: 0 0 auto; }
.inquiry-card__meta a { color: #fff; font-weight: 600; }
.inquiry-card__form { padding: 32px 28px; }

/* --------------------------------------------------------- 12. 品牌页 */
.brand-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.brand-row__name { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -.2px; }
.brand-row__cn { font-size: 13px; color: var(--muted); margin-top: 1px; }
.brand-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.brand-row__count { font-size: 12.5px; color: var(--muted); }
.brand-row__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.brand-row:hover .brand-row__link { color: var(--brand-600); }
.brand-row__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-row__thumb {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  overflow: hidden;
}
.brand-row__thumb img { width: 100%; height: 100%; object-fit: contain; }
/* 通用件不是真品牌：用虚线边框 + 小标签区分 */
.brand-row--universal { border-style: dashed; }
.brand-tile--universal { border-style: dashed; }
.brand-row__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  vertical-align: 2px;
}

/* --------------------------------------------------------- 13. 关于页 */
.about-lead {
  max-width: 860px;
  font-size: 16px;
  line-height: 1.75;
  color: #33445A;
}
.stat-band { background: var(--navy); color: #fff; }
.stat-band__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.stat-band__item { text-align: center; }
.stat-band__num { display: block; font-size: 28px; font-weight: 700; color: var(--brand); letter-spacing: -.4px; }
.stat-band__label { display: block; font-size: 12.5px; color: #A9B8CA; margin-top: 4px; }

.supply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.supply-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
.supply-card h3 { color: var(--navy); margin-bottom: 8px; }
.supply-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding-top: 6px; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 46px;
  right: -6px;
  height: 1px;
  background: var(--line-strong);
}

.promise-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r-card);
  padding: 26px 28px;
}
.promise-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.promise-card p { color: #33445A; font-size: 14.5px; line-height: 1.75; max-width: 900px; }

/* --------------------------------------------------------- 14. 联系页 */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 28px 0 56px;
  align-items: start;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.info-card h2 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.info-list { margin-top: 22px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 12px; }
.info-list__icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(245, 179, 1, .14);
  color: var(--navy);
}
.info-list__label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.info-list__value { font-size: 14px; color: var(--navy); font-weight: 600; line-height: 1.5; }
.info-list__value a:hover { color: var(--brand-600); }
.info-card__cta { margin-top: 24px; display: grid; gap: 10px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.form-card h2 { font-size: 18px; color: var(--navy); }
.form-card > p { color: var(--muted); font-size: 13.5px; margin-top: 4px; margin-bottom: 20px; }

/* --------------------------------------------------------- 15. 后台 */
.admin { padding: 24px 0 60px; }
.admin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin__title { display: flex; align-items: center; gap: 12px; }
.admin__title h1 { font-size: 22px; color: var(--navy); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line-strong);
}
.badge--ok { background: rgba(18, 138, 91, .1); color: var(--ok); border-color: rgba(18, 138, 91, .25); }
.badge--warn { background: rgba(245, 179, 1, .16); color: #8A6300; border-color: rgba(245, 179, 1, .4); }

.admin__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin-bottom: 14px;
}
.admin__bar .input { max-width: 280px; min-height: 38px; }
.admin__bar-spacer { flex: 1 1 auto; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow-x: auto;
}
.ptable { width: 100%; border-collapse: collapse; min-width: 940px; }
.ptable th,
.ptable td {
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ptable thead th {
  position: sticky;
  top: 0;
  background: #FAFBFC;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.ptable tbody tr:hover { background: #FBFCFD; }
.ptable__thumb {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.ptable__thumb img { width: 100%; height: 100%; object-fit: contain; }
/* 无图商品：后台打标提示（前台不显示这类商品） */
.ptable__thumb { display: flex; align-items: center; justify-content: center; }
.ptable__nophoto {
  font-size: 9px;
  line-height: 1.2;
  font-weight: 600;
  color: #b0761a;
  background: #fdf3e2;
  border-radius: 4px;
  padding: 2px 3px;
  text-align: center;
  cursor: help;
}
.ptable__name { font-weight: 600; color: var(--navy); }
.ptable__muted { color: var(--muted); }
.ptable__ops { display: flex; gap: 6px; white-space: nowrap; }
.ptable__op {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  font-size: 12px;
  color: var(--navy);
}
.ptable__op:hover { border-color: var(--navy); }
.ptable__op--del:hover { border-color: var(--price); color: var(--price); }

.modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__mask { position: absolute; inset: 0; background: rgba(14, 27, 44, .45); }
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-3);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.modal__head h2 { font-size: 17px; color: var(--navy); }
.modal__body { padding: 20px 22px; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.dropzone {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #FAFBFC;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--navy); background: #F4F6F9; }
.dropzone img { max-height: 110px; margin: 0 auto 8px; object-fit: contain; }
.dropzone input[type="file"] { display: none; }

/* ---------------------------------------------------------- 16. 骨架屏 */
.sk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 10px 10px 16px;
}
.sk-card__img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #EDF0F4;
}
.sk-line {
  height: 11px;
  margin-top: 10px;
  border-radius: 4px;
  background: #EDF0F4;
}
.sk-line--80 { width: 80%; }
.sk-line--50 { width: 50%; }
.sk-line--30 { width: 30%; }
.sk-card__img,
.sk-line { animation: sk 1.3s ease-in-out infinite; }
@keyframes sk {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* ------------------------------------------------------------ 页脚 */
.footer { background: var(--navy); color: #A9B8CA; margin-top: 0; }
.footer__in {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.35fr;
  gap: 40px;
  padding-top: 52px;
  padding-bottom: 40px;
}
.footer__logo { display: inline-block; }
.footer__logo-svg { height: 44px; width: auto; }
.footer__logo-img { display: block; width: 150px; height: auto; }
.footer__tagline { margin-top: 16px; font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer__social { display: flex; gap: 8px; margin-top: 18px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #DCE4EE;
}
.footer__social a:hover { background: var(--brand); color: var(--navy); }
.footer__col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { font-size: 13px; color: #A9B8CA; }
.footer__col a:hover { color: var(--brand); }
.footer__contact li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; }
.footer__contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--brand); }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 12px;
  color: #8A9BB0;
}
.footer__since { color: #6F8098; }

/* --------------------------------------------------------- 18. 零星组件 */
.filters__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--navy);
}

.inquiry-card__item {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .08);
  border-left: 2px solid var(--brand);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.pd__info { min-width: 0; }

/* 轻提示 toast（后台用） */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 300;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
.toast {
  max-width: min(520px, 90vw);
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-3);
  transition: opacity .24s ease, transform .24s ease;
}
.toast--error { background: var(--price); }
.toast.is-out { opacity: 0; transform: translateY(6px); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #EEF1F5;
  color: var(--navy);
}

@media (max-width: 960px) {
  .filters__close { display: inline-flex; }
}

@media (max-width: 720px) {
  .toast-host { bottom: 16px; }
}

@media (max-width: 1120px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__in { grid-template-columns: 1fr 1fr; gap: 32px; }
  .brand-list { grid-template-columns: 1fr; }
  .hero__in { min-height: 480px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__in { gap: 14px; }
  .search { max-width: none; }
  .header__quote { display: none; }
  .shop { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 205;
    width: min(360px, 100%);
    border-radius: 0;
    border: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .2s ease;
    padding: 20px;
  }
  .filters.is-open { transform: translateX(0); box-shadow: var(--shadow-3); }
  /* 抽屉模式下筛选组限高滚动；桌面端（>960）自然展开，不再切半行 */
  .fgroup__list { max-height: 236px; overflow-y: auto; }
  .fgroup__list--brand { max-height: 210px; }
  .filters-open { display: inline-flex; }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .inquiry-card { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none !important; }
  .supply-grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero__card { display: none; }
  .cta-band__in { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .section { padding: 40px 0; }
  .topbar__note { display: none; }
  .topbar__in { justify-content: space-between; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .product-grid { gap: 10px; }
  .p-card__body { padding: 10px 10px 12px; }
  .p-card__name { font-size: 13.5px; min-height: 38px; }
  .p-card__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .p-card__foot .btn { width: 100%; }
  .p-card__chip { font-size: 10px; padding: 2px 7px; }
  .header__in { height: 64px; }
  .header__logo img { height: 34px; }
  .hero__brand { padding: 11px 16px; margin-bottom: 18px; border-radius: 13px; }
  .hero__brand img { width: 156px; }
  .hero__logo { width: 168px; margin-bottom: 16px; }
  .search { display: none; }
  .search--drawer { display: flex; }
  .hero__in { min-height: 420px; padding-top: 52px; padding-bottom: 56px; }
  .hero__sub { font-size: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .brand-row { grid-template-columns: 1fr; gap: 12px; }
  .brand-row__thumbs { max-width: 100%; }
  .brand-row__name { font-size: 17px; }
  .pd h1 { font-size: 23px; }
  .pd__amount { font-size: 26px; }
  .buybox__row .btn { flex: 1 1 100%; }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .specs th { width: 45%; }
  .form-grid { grid-template-columns: 1fr; }
  .inquiry-card__aside, .inquiry-card__form { padding: 22px 18px; }
  .stat-band__in { grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 24px; padding-bottom: 24px; }
  .footer__in { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 28px; }
  .steps { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 23px; }
  .toolbar { gap: 10px; }
  .toolbar .select { min-width: 0; flex: 1 1 auto; }
  .admin__bar .input { max-width: none; flex: 1 1 160px; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar__right { gap: 10px; }
  .topbar__wa span { display: none; }
}

/* ------------------------------------- 18. 品牌大事件 / 出口市场 / 品牌合作 */
/* 首页：深色带 + 4 段时间轴，视觉上把「20 年」这件事顶出来 */
.ms-band { background: var(--navy); }
.ms-band .section-head h2 { color: #fff; }
.ms-band .section-head__sub { color: #A9B8CA; }
.ms-band .section-head__link { color: #fff; }
.ms-band .section-head__link:hover { color: var(--brand); }

.ms-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.ms__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 179, 1, .16);
}
.ms__year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ms--strip { padding: 24px 24px 4px 0; border-right: 1px solid rgba(255, 255, 255, .12); }
.ms--strip:last-child { border-right: 0; padding-right: 0; }
.ms--strip .ms__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ms--strip .ms__year { color: var(--brand); }
.ms--strip .ms__title { font-size: 15px; color: #fff; margin-bottom: 7px; }
.ms--strip .ms__desc { font-size: 13px; color: #A9B8CA; line-height: 1.62; }

/* 关于页：纵向「年份 + 内容」两栏 */
.ms-list { border-top: 2px solid var(--navy); }
.ms-list .ms {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.ms-list .ms__head { display: flex; align-items: baseline; gap: 10px; }
.ms-list .ms__year { font-size: 19px; font-weight: 700; color: var(--navy); letter-spacing: -.2px; }
.ms-list .ms__title { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.ms-list .ms__desc { font-size: 13.5px; color: var(--muted); line-height: 1.68; max-width: 620px; }

/* 定位说明卡（关于页首屏） */
.focus-card {
  margin-top: 32px;
  padding: 26px 28px;
  background: var(--bg);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.focus-card__title { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.focus-card__text { font-size: 14px; color: var(--muted); line-height: 1.72; max-width: 860px; }

/* 出口市场标签 */
.markets { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line); }
.markets__title { font-size: 17px; color: var(--navy); }
.markets__sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.chip--muted { font-weight: 500; border-style: dashed; color: var(--muted); }

/* 品牌合作预留位：无合作品牌时整块不占高度，加入后卡片自动排布 */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner-grid:empty { display: none; }
.partner-card {
  min-height: 134px;
  padding: 20px;
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.partner-card.is-filled { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.partner-card.is-filled img { max-height: 52px; width: auto; object-fit: contain; }
.partner-card__name { font-size: 16px; font-weight: 700; color: var(--navy); }
.partner-card__note { font-size: 12.5px; color: var(--muted); }
.partner-cta { display: flex; justify-content: center; margin-top: 24px; }

@media (max-width: 1120px) {
  .ms-strip { grid-template-columns: repeat(2, 1fr); }
  .ms--strip { padding: 22px 20px 18px 0; }
  .ms--strip:nth-child(2n) { border-right: 0; padding-right: 0; }
  .ms--strip:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
}

@media (max-width: 720px) {
  .ms-strip { grid-template-columns: 1fr; }
  .ms--strip { padding: 20px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .ms--strip:last-child { border-bottom: 0; }
  .ms-list .ms { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .ms-list .ms__year { font-size: 16px; }
  .partner-grid { grid-template-columns: 1fr; gap: 12px; }
  .partner-card { min-height: 104px; }
  .focus-card { padding: 20px 22px; }
}
