/* =========================================================================
 * style.css — aventon 风格主题（清爽无衬线 / 深色全屏 Hero / 留白分区 / 单一强调色）
 * 纯系统字体栈，离线（file://）可用，无需外部字体。
 * ========================================================================= */
:root {
  --bg: #ffffff;
  --ink: #0e0e10;
  --muted: #6b6b73;
  --line: #e8e8ec;
  --accent: #ff512f;
  --accent-dark: #e23c1c;
  --dark: #0e0e10;
  --dark-2: #1a1a1f;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(14, 14, 16, .12);
  --font: 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --maxw: 1240px;
  --section-gap: 120px;   /* 区块之间的统一空白：相邻 .section 上下各取一半，首尾用 margin 补齐 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 22px 0;
}
.site-header.solid {
  background: rgba(14, 14, 16, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 15px; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
/* 小屏时语言切换由 js/ui.js 移入抽屉菜单底部 */
.nav-links .lang-switch { margin-top: 10px; align-self: flex-start; }
.nav-links .lang-switch button { padding: 7px 13px; font-size: 12px; }
.nav-actions {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 51;   /* 高于移动端抽屉(49)，抽屉展开时仍能点到购物车与菜单按钮 */
}
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; color: rgba(255,255,255,.8); border: 0; padding: 6px 11px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.lang-switch button.active { background: #fff; color: var(--ink); }
.cart-btn {
  position: relative; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; width: 40px; height: 40px; font-size: 18px; color: #fff;
}
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-ico { width: 19px; height: 19px; display: block; pointer-events: none; }
.cart-btn { display: flex; align-items: center; justify-content: center; }
/* v0.9.25 —— 个人中心入口：导航右侧、购物车左边（沿用 .icon-btn 的圆形玻璃质感） */
.account-btn { text-decoration: none; flex: 0 0 auto; }
.account-btn svg { width: 19px; height: 19px; }
.account-btn.is-active { background: #fff; border-color: #fff; color: var(--ink); }
.account-btn.is-active:hover { background: #ececf0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; transition: .3s; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; background: var(--dark); margin-bottom: calc(var(--section-gap) / 2); }
.hero-track { position: absolute; inset: 0; }
.hero-track .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 6s ease;
}
.hero-track .slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,10,.78) 0%, rgba(8,8,10,.35) 45%, rgba(8,8,10,.1) 100%),
              linear-gradient(0deg, rgba(8,8,10,.6) 0%, rgba(8,8,10,0) 40%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 18%; z-index: 3;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; color: #fff;
}
.hero-content .eyebrow {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero-content h1 {
  font-size: clamp(36px, 6vw, 76px); max-width: 14ch; margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero-content p { font-size: clamp(16px, 2vw, 20px); max-width: 46ch; color: rgba(255,255,255,.9); margin-bottom: 26px; }
.hero-content .anim { animation: heroIn .8s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff;
  width: 52px; height: 52px; border-radius: 999px; font-size: 26px; line-height: 1;
  backdrop-filter: blur(4px); transition: background .25s;
}
.hero-arrow:hover { background: var(--accent); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.hero-dots button { width: 36px; height: 4px; border: 0; background: rgba(255,255,255,.4); border-radius: 4px; padding: 0; }
.hero-dots button.active { background: #fff; width: 54px; }
.hero-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 5; }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.scroll-cue { position: absolute; bottom: 26px; right: 30px; z-index: 4; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 4px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ---------- 通用 section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--section-gap) / 2) 24px; scroll-margin-top: calc(64px + var(--section-gap) / 2); }
.section-head { text-align: center; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16.5px; }

/* ---------- 分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  box-shadow: var(--shadow); transition: transform .35s ease;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover { transform: translateY(-6px); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-label {
  position: absolute; left: 16px; bottom: 16px; right: 16px; color: #fff;
  font-size: 20px; font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 55%); }

/* ---------- 爆款产品 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f3f3f5; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-media-link { display: block; }
.product-body h3 { font-size: 17px; font-weight: 700; }
.product-body h3 a:hover { color: var(--accent); }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.product-price .now { font-size: 20px; font-weight: 800; }
.product-price .from { font-size: 12px; color: var(--muted); }
.product-price .old { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.btn-add {
  margin-top: 12px; background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 12px; font-weight: 700; font-size: 14px; transition: background .25s;
}
.btn-add:hover { background: var(--accent); }

/* ---------- 3D 解体 ---------- */
.explode-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.explode-stage { background: linear-gradient(160deg, #f6f6f8, #ececf0); border-radius: 20px; padding: 30px; perspective: 1400px; }
.explode-imgwrap { position: relative; transform-style: preserve-3d; transition: transform .25s ease; will-change: transform; }
.explode-img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 18px 44px rgba(20,20,30,.14); animation: explodeFloat 6s ease-in-out infinite; }
@keyframes explodeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.explode-markers { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.explode-marker { position: absolute; left: 16px; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.22); pointer-events: auto; cursor: pointer; transition: transform .2s, background .2s; z-index: 2; }
.explode-marker.active { background: var(--accent); transform: translateY(-50%) scale(1.3); box-shadow: 0 6px 18px rgba(255,81,47,.5); }
.explode-legend .lb-num { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; align-items: center; justify-content: center; margin-right: 6px; }
.explode-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.explode-legend button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; color: var(--muted); transition: .2s;
}
.explode-legend button.active, .explode-legend button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.explode-info { background: var(--dark); color: #fff; border-radius: 20px; padding: 34px; min-height: 240px; }
.explode-info .ei-index { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.explode-info h3 { font-size: 28px; margin: 10px 0 14px; }
.explode-info p { color: rgba(255,255,255,.8); font-size: 16px; }
.explode-info .ei-hint { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- 视频 / 故事 ---------- */
.story-video {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 480px;
  display: flex; align-items: flex-end; background: #000;
}
.story-video #brandVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.story-poster {
  position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.story-poster::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 75%);
}
.story-video.playing .story-poster { display: none; }
.play-btn {
  position: relative; z-index: 2;
  width: 86px; height: 86px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92);
  color: var(--ink); font-size: 30px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.4); transition: transform .25s;
}
.play-btn:hover { transform: scale(1.08); }
.video-note { position: absolute; right: 24px; bottom: 20px; z-index: 2; color: #fff; font-weight: 600; background: rgba(0,0,0,.5); padding: 8px 14px; border-radius: 999px; }
.story-copy { position: relative; z-index: 2; color: #fff; padding: 40px; max-width: 560px; }
.story-copy h3 { font-size: clamp(24px, 3vw, 38px); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.story-copy p { margin-top: 12px; color: rgba(255,255,255,.9); font-size: 17px; }

/* ---------- 尺码换算 ---------- */
.sizer-box { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.sizer-input { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; text-align: center; }
.sizer-input span { font-weight: 700; }
.sizer-input input {
  font-family: inherit; font-size: 28px; text-align: center; padding: 14px; border: 2px solid var(--line);
  border-radius: 12px; font-weight: 800;
}
.sizer-input input:focus { outline: none; border-color: var(--accent); }
.sizer-result { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: 100%; }
.size-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 8px; text-align: center;
}
.size-chip .lab { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.size-chip .val { font-size: 26px; font-weight: 800; margin-top: 4px; }

/* ---------- 信任 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.trust-card .ic { color: var(--accent); display: flex; justify-content: center; }
.trust-card .ic svg { width: 34px; height: 34px; }
.trust-card h4 { margin: 14px 0 8px; font-size: 18px; }
.trust-card p { color: var(--muted); font-size: 14px; }

/* ---------- CTA ---------- */
/* CTA 与上方区块保持同一间距：不单独抵消顶部内边距，统一由 --section-gap 控制 */
.cta-card {
  background: var(--dark); color: #fff; border-radius: 24px; padding: 70px 40px; text-align: center;
}
.cta-card h2 { font-size: clamp(28px, 4vw, 48px); }
.cta-card p { color: rgba(255,255,255,.8); margin: 14px auto 30px; max-width: 50ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; border-radius: 999px; padding: 15px 30px; font-weight: 800; font-size: 15px; transition: .25s; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
/* 浅色区块上的描边按钮（首页「查看全部商品」）：默认即清晰可见，不依赖 hover */
.btn-outline { background: #fff; color: var(--ink); border-color: rgba(20,22,26,.22); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #fff; margin-top: calc(var(--section-gap) / 2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 30px; display: flex; gap: 50px; flex-wrap: wrap; }
.footer-brand { font-size: 26px; font-weight: 800; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; margin-left: auto; }
.footer-cols h4 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer-cols a, .footer-cols span { display: block; color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 8px; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 24px; text-align: center; color: rgba(255,255,255,.5); font-size: 13px; }

/* ---------- 购物车抽屉 ---------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 90vw; background: #fff; z-index: 60;
  transform: translateX(100%); transition: transform .35s ease; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 14px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 20px; }
.cart-close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.cart-item .ci-name { font-weight: 700; font-size: 14px; }
.cart-item .ci-price { color: var(--muted); font-size: 13px; }
.cart-item .ci-qty { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cart-item .ci-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 16px; }
.cart-form { border-top: 1px solid var(--line); padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.cart-form input, .cart-form select { font-family: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.cart-total { font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; margin: 4px 0 6px; }
.cart-form .cart-checkout { text-align: center; padding: 14px 22px; }
.cart-note { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.5; }
.cart-msg { font-size: 13px; color: var(--accent); min-height: 18px; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .cat-grid, .product-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .explode-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --section-gap: 84px; }   /* 移动端同步收紧区块间距，保持首尾与中间一致 */
  .nav-inner { gap: 10px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .lang-switch button { padding: 5px 8px; font-size: 11px; }
  .cart-btn { width: 36px; height: 36px; font-size: 16px; }
  .nav-toggle { padding: 4px; }
  .hero-arrow { display: none; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100%; width: 70%; max-width: 320px; background: var(--dark);
    flex-direction: column; padding: 90px 30px; gap: 22px; transform: translateX(100%); transition: transform .35s ease; z-index: 49;
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: #fff; font-size: 20px; }
  .nav-toggle { display: flex; }
  .section { padding: calc(var(--section-gap) / 2) 18px; scroll-margin-top: calc(64px + var(--section-gap) / 2); }
  .section-head { margin-bottom: 26px; }
  .sizer-result { grid-template-columns: repeat(3, 1fr); }
  .hero-content { bottom: 14%; }
}

/* 小屏（≤420px）：语言切换 + 搜索 + 个人中心 + 购物车 + 菜单 五个控件并排，收紧间距防溢出 */
@media (max-width: 420px) {
  .nav-inner { gap: 6px; padding: 0 12px; }
  .brand { font-size: 15px; letter-spacing: -.02em; }
  .lang-switch button { padding: 4px 6px; font-size: 10px; }
  .nav-actions { gap: 6px; }
  .icon-btn, .cart-btn { width: 34px; height: 34px; }
  .nav-actions .icon-btn, .nav-actions .cart-btn { width: 34px; height: 34px; }
  .icon-btn svg, .account-btn svg, .cart-ico { width: 17px; height: 17px; }
  .cart-count { min-width: 16px; height: 16px; font-size: 10px; top: -3px; right: -3px; }
  .nav-toggle { padding: 2px; }
  .nav-toggle span { width: 21px; }
  /* 既有小屏问题：信任卡片被俄语长词撑破，导致整页横向滚动 */
  .trust-grid { gap: 12px; }
  .trust-card { padding: 18px 12px; min-width: 0; }
  .trust-card h4 { font-size: 16px; }
}

/* ===================== 双模式显隐（shop / inquiry / both） ===================== */
/* 默认 / both：shop-only 与 inquiry-only 均可见。
   询盘独立站模式隐藏一切购买入口；纯商城模式隐藏一切询盘入口。 */
body[data-mode="inquiry"] .shop-only { display: none !important; }
body[data-mode="shop"] .inquiry-only { display: none !important; }

/* ===================== 视频 Hero（轮播首屏可放 MP4） ===================== */
.slide-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; background: var(--dark);
  pointer-events: none;
}
.hero-overlay { z-index: 2; }            /* 保证遮罩压在视频之上、文字之下 */
.hero-content { z-index: 3; }
.hero-progress { z-index: 5; }

/* 首页爆款「查看全部」按钮 */
.featured-more { text-align: center; margin-top: 36px; }

/* ===================== 分类页 Hero（category.html） ===================== */
.cat-hero { height: 58vh; min-height: 380px; }
.cat-hero .hero-content { bottom: 16%; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: rgba(255,255,255,.82); font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,.92); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .65; }
#catSub { color: rgba(255,255,255,.88); }
.cat-empty { text-align: center; color: var(--muted); font-size: 16px; padding: 40px 0; }

/* ===================== 商品卡双按钮（shop / inquiry 并存） ===================== */
.cat-actions { display: flex; gap: 8px; margin-top: 12px; }
.cat-actions .btn-add, .cat-actions .btn-inquire { flex: 1 1 0; margin-top: 0; }
.btn-inquire {
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
  border-radius: 999px; padding: 12px; font-weight: 700; font-size: 14px;
  transition: background .25s, color .25s;
}
.btn-inquire:hover { background: var(--ink); color: #fff; }

/* ===================== 询盘弹窗（inquiry.js 注入） ===================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: rgba(8,8,10,.5); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal-card {
  position: relative; width: 100%; max-width: 460px; background: #fff;
  border-radius: 18px; padding: 28px 28px 24px; box-shadow: var(--shadow);
  animation: modalIn .25s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card h3 { font-size: 22px; margin-bottom: 4px; }
.modal-card .modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.inquiry-form { display: flex; flex-direction: column; gap: 12px; }
.inquiry-form input, .inquiry-form textarea {
  font-family: inherit; font-size: 15px; padding: 12px 13px; width: 100%;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--accent); }
.inquiry-form textarea { resize: vertical; min-height: 90px; }
.inquiry-form .btn-primary { margin-top: 4px; }
.inquiry-msg { font-size: 14px; min-height: 18px; color: var(--accent); }
.inquiry-msg.ok { color: #1a8a3c; font-weight: 700; }

/* ===================== 移动端底部购买条 / 询盘条 ===================== */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  align-items: center; gap: 12px; background: #fff;
  padding: 12px 16px; box-shadow: 0 -8px 28px rgba(0,0,0,.14);
}
.buybar .bb-price { font-weight: 800; font-size: 18px; }
.buybar .bb-btn {
  margin-left: auto; background: var(--accent); color: #fff; border: 0;
  border-radius: 999px; padding: 13px 28px; font-weight: 800; font-size: 15px; transition: background .25s;
}
.buybar .bb-btn:hover { background: var(--accent-dark); }

/* ===================== 响应式补充 ===================== */
@media (max-width: 720px) {
  .buybar { display: flex; }              /* 移动端显示底部条（受模式显隐规则约束） */
  .site-footer { padding-bottom: 84px; }  /* 避免被底部条遮挡 */
  .cat-hero { height: 48vh; min-height: 300px; }
  .cat-actions { flex-direction: column; }
  .cat-actions .btn-add, .cat-actions .btn-inquire { width: 100%; }
}

/* ===================== 分类页「返回分类」按钮 ===================== */
.btn-back {
  display: block; width: fit-content; margin: 22px auto 0;
  padding: 11px 20px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-back:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-back span[aria-hidden="true"] { font-size: 17px; line-height: 1; margin-right: 2px; }
@media (max-width: 720px) { .btn-back { margin-top: 18px; } }

/* =========================================================================
 * v0.9.8 —— 导航搜索 / 回到顶部 / 站内搜索页
 * ========================================================================= */

/* ---------- 导航图标按钮 ---------- */
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; padding: 0;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.icon-btn svg { width: 19px; height: 19px; pointer-events: none; }
.icon-btn:hover { background: rgba(255,255,255,.22); }

/* ---------- 导航搜索：先展开短搜索框，再点图标进入搜索页 ---------- */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search-field {
  display: flex; align-items: center; width: 0; opacity: 0; overflow: hidden;
  height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  transition: width .3s ease, opacity .22s ease, margin-left .3s ease;
}
.nav-search:not(.open) .nav-search-field { border-color: transparent; }
.nav-search.open .nav-search-field { width: 240px; opacity: 1; margin-left: 0; }
/* 展开后收起放大镜图标按钮：只保留框内的提交按钮，避免并排出现两个搜索按钮 */
.nav-search.open .nav-search-toggle { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 721px) {
  /* 桌面端把按钮宽度收为 0，搜索框从按钮原位展开，导航不出空档 */
  .nav-search.open .nav-search-toggle { width: 0; min-width: 0; margin: 0; padding: 0; border: 0; }
}
.nav-search-field input {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 4px 0 14px;
  background: transparent; border: 0; color: #fff; font-family: inherit; font-size: 14px;
}
.nav-search-field input::placeholder { color: rgba(255,255,255,.62); }
.nav-search-field input:focus { outline: none; }
.nav-search-field input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.nav-search-go {
  flex: 0 0 auto; width: 34px; height: 34px; margin-right: 3px; padding: 0;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.nav-search-go svg { width: 16px; height: 16px; pointer-events: none; }
.nav-search-go:hover { background: var(--accent-dark); }

/* 商品页（浅色导航）适配 */
.pdp .site-header.light .icon-btn { background: #f5f5f7; border-color: var(--line); color: var(--ink); }
.pdp .site-header.light .icon-btn:hover { background: #ececf0; }
.pdp .site-header.light .nav-search-field { background: #f5f5f7; border-color: var(--line); }
.pdp .site-header.light .nav-search-field input { color: var(--ink); }
.pdp .site-header.light .nav-search-field input::placeholder { color: #9a9aa2; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 45; padding: 0;
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(14,14,16,.18);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s, color .2s;
}
.to-top svg { width: 20px; height: 20px; pointer-events: none; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 站内搜索页（极简：标题 + 一条搜索框 + 结果） ---------- */
.search-page { display: flex; flex-direction: column; min-height: 100vh; background: #efeae3; }
.search-page main { flex: 1 0 auto; }
.search-hero {
  background: var(--bg); color: var(--ink); text-align: center;
  padding: 136px 24px 0;
}
.search-hero-inner { max-width: 700px; margin: 0 auto; }
.search-hero h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.025em; }
.search-big {
  display: flex; align-items: center; max-width: 640px; margin: 28px auto 0;
  background: #f4f4f6; border: 1px solid transparent; border-radius: 12px; padding: 5px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.search-big:focus-within {
  border-color: #dcdce3; box-shadow: 0 10px 30px rgba(14,14,16,.08);
}
.search-big input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 12px 18px;
  border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 16px;
}
.search-big input:focus { outline: none; }
.search-big input::placeholder { color: #9a9aa2; }
.search-big-btn {
  flex: 0 0 auto; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 9px;
  background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.search-big-btn:hover { background: var(--accent-dark); }
.search-big-btn svg { width: 21px; height: 21px; pointer-events: none; }

.search-hint { text-align: center; color: var(--muted); font-size: 14.5px; margin: 22px 0 0; }
.search-hint[hidden] { display: none; }

.search-results[hidden] { display: none; }
.search-results { padding-top: 44px; }

.search-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.search-meta:empty { display: none; }
.search-meta b { color: var(--ink); font-size: 16px; }
.search-meta .q { color: var(--ink); font-weight: 700; }
.search-meta .clear {
  margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.search-meta .clear:hover { border-color: var(--ink); color: var(--ink); }
.search-empty { text-align: center; padding: 30px 0 6px; }
.search-empty .se-icon { color: #cfcfd6; display: flex; justify-content: center; }
.search-empty .se-icon svg { width: 52px; height: 52px; }
.search-empty h3 { margin: 16px 0 8px; font-size: 22px; }
.search-empty p { color: var(--muted); }
.se-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }

.search-card .btn-view {
  display: block; text-align: center; margin-top: 2px; padding: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: 13.5px; color: var(--ink); transition: .2s;
}
.search-card .btn-view:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
mark { background: rgba(255,81,47,.16); color: inherit; border-radius: 3px; padding: 0 1px; }

/* 无按钮时不占位（商品卡只保留「加入购物车」） */
.cat-actions:empty { display: none; }

/* ---------- 响应式：搜索框 / 回顶按钮 ---------- */
@media (max-width: 720px) {
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 17px; height: 17px; }
  .nav-search.open .nav-search-field {
    position: absolute; top: calc(100% + 12px); right: 0; margin-left: 0;
    width: min(238px, 68vw); background: rgba(14,14,16,.97);
    border-color: rgba(255,255,255,.22); box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 60;
  }
  .pdp .site-header.light .nav-search.open .nav-search-field { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.14); }
  .to-top { right: 14px; bottom: 20px; width: 42px; height: 42px; }
  .pdp .to-top { bottom: 84px; }
  .search-hero { padding: 104px 18px 0; }
  .search-big { margin-top: 22px; }
  .search-big input { height: 46px; font-size: 15.5px; padding: 12px 15px; }
  .search-big-btn { width: 46px; height: 46px; }
  .search-hint { font-size: 13.5px; margin-bottom: 20px; }
}

/* =========================================================================
 * v0.9.14 · 结算页 / 订单页 / 隐私政策页
 * 共用深色页头带 + 白底内容区，沿用既有 --ink / --accent / --line 变量
 * ========================================================================= */
.flow-hero { background: var(--dark); color: #fff; padding: 138px 24px 58px; }
.flow-hero-inner { max-width: var(--maxw); margin: 0 auto; }
.flow-kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 800; margin-bottom: 14px;
}
.flow-hero h1 { font-size: clamp(27px, 3.4vw, 42px); }
.flow-hero p { color: rgba(255,255,255,.66); margin: 12px 0 0; max-width: 64ch; font-size: 15px; }

/* ---------- 结算 ---------- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .86fr); gap: 52px; align-items: start; }
.co-form { display: flex; flex-direction: column; gap: 28px; }
.co-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.co-step > legend {
  display: flex; align-items: center; gap: 10px; padding: 0 0 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
}
.co-idx {
  width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto;
}
.co-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-form input, .co-form textarea {
  width: 100%; font-family: inherit; font-size: 15px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.co-form textarea { resize: vertical; min-height: 76px; }
.co-form input:focus, .co-form textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,14,16,.06);
}
.co-form input::placeholder, .co-form textarea::placeholder { color: #9a9aa2; }
/* 单选框 / 勾选框不要继承输入框外观 */
.co-form input[type=radio], .co-form input[type=checkbox] {
  width: auto; height: auto; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; accent-color: var(--accent); flex: 0 0 auto;
}
.co-full { grid-column: 1 / -1; }
.co-hint { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; line-height: 1.55; }

.pay-opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.pay-opt + .pay-opt { margin-top: 10px; }
.pay-opt input { width: auto; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.pay-opt.selected { border-color: var(--ink); background: #fafafa; }
.pay-opt.disabled { opacity: .58; cursor: not-allowed; }
.po-body b { display: block; font-size: 14.5px; }
.po-body em { display: block; font-style: normal; color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.55; }
.po-tag {
  margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
  white-space: nowrap; align-self: center;
}
.co-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.6; }
.co-consent input { width: auto; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.co-consent a { text-decoration: underline; }
.co-msg { min-height: 18px; font-size: 13px; color: #c0260b; }
.co-msg.ok { color: #1d6b28; }
.btn.co-submit { border: 0; align-self: flex-start; padding: 16px 34px; }
.btn.co-submit[disabled] { opacity: .6; cursor: progress; }

.co-aside { position: sticky; top: 96px; }
.co-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 18px 44px rgba(14,14,16,.05); }
.co-card h3 { font-size: 16px; margin-bottom: 6px; }
.co-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-line img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.co-line .cl-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.co-line .cl-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.co-line .cl-price { margin-left: auto; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 18px; margin-top: 16px; }
.co-empty { color: var(--muted); font-size: 14px; padding: 10px 0 2px; }
.co-empty a { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 800; }

/* ---------- 订单 ---------- */
.order-wrap { max-width: 880px; margin: 0 auto; }
.order-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; justify-content: space-between; }
.order-no { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.order-id { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.order-flag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  border-radius: 999px; padding: 8px 15px; background: #eef7ee; color: #1d6b28; white-space: nowrap;
}
.order-flag.wait { background: #fff4e8; color: #9a5410; }
.order-flag.mute { background: #f4f4f6; color: #6b6b73; }
.order-note { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: #fafafa; color: #3a3a41; font-size: 13.5px; line-height: 1.6; }

/* ---------- 订单进度：竖向圆点时间轴 ---------- */
.tlv { margin: 22px 0 6px; }
.tlv-title { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.tlv-list { list-style: none; margin: 0; padding: 0; }
.tlv-step { position: relative; padding: 0 0 22px 34px; }
.tlv-step:last-child { padding-bottom: 4px; }
.tlv-step::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: -4px; width: 2px; background: var(--line); }
.tlv-step:last-child::before { display: none; }
.tlv-step.done::before { background: var(--ink); }
.tlv-dot {
  position: absolute; left: 4px; top: 1px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); z-index: 1;
}
.tlv-step.done .tlv-dot { background: var(--ink); border-color: var(--ink); }
.tlv-step.done .tlv-dot::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tlv-step.current .tlv-dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(255,81,47,.16);
}
.tlv-step.current .tlv-dot::after {
  content: ''; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px;
  border-radius: 50%; background: #fff;
}
.tlv-text { font-size: 14px; color: var(--muted); }
.tlv-step.done .tlv-text, .tlv-step.current .tlv-text { color: var(--ink); }
.tlv-step.current .tlv-text b { font-weight: 800; }
.tlv-tag {
  display: inline-block; margin-left: 8px; font-style: normal; font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  background: rgba(255,81,47,.1); border-radius: 999px; padding: 2px 9px; vertical-align: middle;
}

/* ---------- 物流轨迹（17TRACK） ---------- */
.trk { margin: 26px 0 4px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fafbfc; }
.trk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trk-head h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0; }
.trk-link { font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.trk-link:hover { text-decoration: underline; }
.trk-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 16px; font-size: 12.5px; color: var(--muted); }
.trk-meta b { color: var(--ink); font-weight: 700; }
.trk-loading { font-size: 13px; color: var(--muted); padding: 8px 0; }
.trk-list { list-style: none; margin: 0; padding: 0; }
.trk-ev { position: relative; padding: 0 0 18px 26px; }
.trk-ev::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: -4px; width: 2px; background: var(--line); }
.trk-ev:last-child::before { display: none; }
.trk-ev.done::before, .trk-ev.active::before { background: var(--ink); }
.trk-dot { position: absolute; left: 1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.trk-ev.active .trk-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(255,81,47,.14); }
.trk-ev.done .trk-dot { background: var(--ink); border-color: var(--ink); }
.trk-body { font-size: 13.5px; }
.trk-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.trk-top b { font-weight: 800; color: var(--ink); }
.trk-loc { font-size: 12px; color: var(--muted); }
.trk-desc { font-size: 12.5px; color: #4a4a52; margin-top: 2px; }
.trk-time { font-size: 11.5px; color: #9a9aa2; margin-top: 3px; }
.trk-empty { font-size: 13px; color: var(--muted); padding: 6px 0; }
.trk-foot { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.trk-badge { font-size: 11px; font-weight: 800; color: #9a5410; background: #fff4e8; border-radius: 999px; padding: 3px 10px; }
.trk-by { font-size: 11px; color: #9a9aa2; margin-left: auto; }

.ord-block { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.ord-block h4 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ord-row { display: flex; gap: 16px; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.ord-row .k { color: var(--muted); }
.ord-row .v { text-align: right; }
.ord-item-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ord-item-line img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.ord-item-line .n { font-size: 13.5px; font-weight: 700; }
.ord-item-line .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ord-item-line .p { margin-left: auto; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.ord-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.ord-actions .btn { border-width: 2px; }

.ord-list { max-width: 880px; margin: 38px auto 0; display: grid; gap: 10px; }
.ord-list h3 { font-size: 15px; margin-bottom: 4px; }
.ord-card-link {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s ease, transform .2s ease;
}
.ord-card-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.ord-card-link .oc-id { font-weight: 800; font-size: 14.5px; }
.ord-card-link .oc-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ord-card-link .oc-sum { margin-left: auto; text-align: right; font-weight: 800; font-size: 14.5px; }
.ord-card-link .oc-sum span { display: block; font-weight: 600; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ord-empty { color: var(--muted); font-size: 14px; }

.ord-lookup { max-width: 880px; margin: 34px auto 0; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: #fafafa; }
.ord-lookup h3 { font-size: 17px; }
.ord-lookup p { color: var(--muted); font-size: 13.5px; margin: 6px 0 16px; }
.ord-lookup .row { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 10px; }
.ord-lookup input {
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 14.5px; background: #fff; color: var(--ink); min-width: 0;
}
.ord-lookup input:focus { outline: none; border-color: var(--ink); }
.ord-lookup .btn { border: 0; padding: 13px 26px; }
.ord-lookup .msg { font-size: 13px; color: #c0260b; min-height: 18px; margin-top: 10px; }

/* ---------- 隐私政策 ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 18px; margin: 30px 0 8px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: #3a3a41; font-size: 15px; line-height: 1.72; margin: 0; }
.legal .draft {
  background: #fff7ed; border: 1px solid #fde3c4; color: #8a4b0f;
  border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.6; margin-bottom: 26px;
}
.legal .legal-foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .co-aside { position: static; order: -1; }
}
@media (max-width: 720px) {
  .flow-hero { padding: 112px 18px 42px; }
  .flow-hero p { font-size: 14px; }
  .co-2 { grid-template-columns: 1fr; }
  .ord-lookup { padding: 20px; }
  .ord-lookup .row { grid-template-columns: 1fr; }
  .ord-lookup .btn { width: 100%; }
  .order-id { font-size: 20px; }
  .ord-card-link { align-items: flex-start; }
}

/* ===================== 个人中心（account.html） ===================== */
.acc-wrap { max-width: 560px; margin: 0 auto; }
.acc-tabs { display: flex; gap: 8px; margin-bottom: 22px; justify-content: center; }
.acc-tab { border: 1px solid #e4e4ea; background: #fff; color: #444; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.acc-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-form { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 26px; box-shadow: 0 10px 30px rgba(20,20,40,.05); }
.acc-form .co-2 { display: grid; gap: 12px; }
.acc-form .co-full { grid-column: 1 / -1; }
.acc-switch { text-align: center; font-size: 13px; color: #6b6b73; margin: 16px 0 0; }
.acc-switch a { color: var(--accent); font-weight: 700; }
.co-msg { min-height: 18px; font-size: 13px; color: var(--accent); }
.co-msg.err { color: #d2331f; }
.acc-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 26px; box-shadow: 0 10px 30px rgba(20,20,40,.05); margin-bottom: 26px; }
.acc-card h3 { margin: 0 0 6px; }
.acc-as { color: #6b6b73; font-size: 14px; margin: 6px 0; }
.acc-as b { color: #1a1a22; }
.acc-contact { display: flex; gap: 14px; flex-wrap: wrap; color: #6b6b73; font-size: 14px; margin: 0 0 16px; }
.acc-orders-h { margin: 0 0 14px; font-size: 19px; }
.acc-none { color: #6b6b73; text-align: center; padding: 24px 0; }

/* ===== 个人中心 v0.9.19：资料卡 / 统计 / 筛选 / 富订单卡 ===== */
.acc-profile {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #eee; border-radius: 18px;
  padding: 20px 22px; box-shadow: 0 10px 30px rgba(20,20,40,.05); margin-bottom: 18px;
}
.acc-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b8def);
}
.acc-id { flex: 1 1 auto; min-width: 0; }
.acc-name-row { display: flex; align-items: center; gap: 10px; }
.acc-name-row h3 { margin: 0; font-size: 20px; }
.acc-demo-badge {
  font-size: 11px; font-weight: 700; color: #b06a00; background: #fff3df;
  border: 1px solid #ffe2b0; border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.acc-sub { margin: 4px 0 0; color: #6b6b73; font-size: 13px; }

.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.acc-stats .stat {
  background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 16px; text-align: center;
  box-shadow: 0 8px 22px rgba(20,20,40,.04);
}
.acc-stats .stat-n { display: block; font-size: 22px; font-weight: 800; color: #1a1a22; }
.acc-stats .stat-l { display: block; margin-top: 4px; font-size: 12.5px; color: #6b6b73; }

.acc-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.acc-f {
  border: 1px solid #e4e4ea; background: #fff; color: #555; padding: 9px 18px;
  border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: all .15s ease;
}
.acc-f:hover { border-color: var(--accent); color: var(--accent); }
.acc-f.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.acc-order-list { display: flex; flex-direction: column; gap: 12px; }
a.acc-oc {
  display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #eee;
  border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, transform .18s ease;
}
a.acc-oc:hover { box-shadow: 0 12px 28px rgba(20,20,40,.08); transform: translateY(-1px); }

.acc-oc-thumbs { display: flex; flex: 0 0 auto; }
.acc-thumb {
  position: relative; width: 46px; height: 46px; border-radius: 10px; overflow: hidden;
  background: #f3f3f6; border: 1px solid #eee; margin-left: -10px; box-shadow: 0 0 0 2px #fff;
}
.acc-thumb:first-child { margin-left: 0; }
.acc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.acc-thumb-ph { display: block; width: 100%; height: 100%; }
.acc-thumb-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20,20,40,.55); color: #fff; font-size: 12px; font-weight: 700;
}

.acc-oc-main { flex: 1 1 auto; min-width: 0; }
.acc-oc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acc-oc-id { font-size: 14.5px; font-weight: 800; }
.acc-oc-date { color: #9a9aa2; font-size: 12px; white-space: nowrap; }
.acc-oc-items {
  color: #6b6b73; font-size: 12.5px; margin: 5px 0 8px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-oc-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.acc-badge { border-radius: 999px; padding: 3px 11px; font-size: 11.5px; font-weight: 700; }

/* 订单状态配色 */
.acc-badge.st-new { background: #eef1ff; color: #3a52d6; }
.acc-badge.st-confirmed { background: #e6f6ff; color: #1170c4; }
.acc-badge.st-packed { background: #fff1e0; color: #c4790a; }
.acc-badge.st-shipped { background: #e9f7ee; color: #1f8a4c; }
.acc-badge.st-delivered { background: #e7f7ec; color: #178a45; }
.acc-badge.st-cancelled { background: #f3f3f5; color: #8a8a93; }
/* 支付状态配色 */
.acc-badge.pay-paid { background: #e7f7ec; color: #178a45; }
.acc-badge.pay-await { background: #fff3df; color: #b06a00; }

.acc-oc-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.acc-oc-total { font-weight: 800; font-size: 15px; white-space: nowrap; }
.acc-oc-go { color: #b8b8c0; font-size: 22px; line-height: 1; }

@media (max-width: 600px) {
  .acc-profile { padding: 16px; gap: 12px; }
  .acc-avatar { width: 46px; height: 46px; font-size: 19px; }
  .acc-stats { gap: 8px; }
  .acc-stats .stat { padding: 12px 8px; }
  .acc-stats .stat-n { font-size: 18px; }
  a.acc-oc { flex-wrap: wrap; }
  .acc-oc-right { margin-left: auto; }
}

@media (max-width: 600px) {
  .acc-form, .acc-card { padding: 20px; }
}

/* =========================================================================
 * v0.9.21 · 参考版式重构（Allbirds / Shopify Checkout 风格）
 * 1) 搜索页：居中下划线搜索 + 浅色商品卡（角标 / 色块 / 快速加购）
 * 2) 购物车抽屉：免运费进度 + 推荐位 + 结算块 + 支付工具按钮
 * 3) 结算页：双栏（表单 + 订单摘要），Express 支付、联系人 / 配送 / 支付三段
 * ========================================================================= */

/* ===================== 1) 搜索页 ===================== */
.srch { padding-top: 74px; }
.srch-top { padding: 58px 24px 0; text-align: center; }
.srch-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.srch-form {
  position: relative; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #d7d7d7; padding-bottom: 9px;
  transition: border-color .2s ease;
}
.srch-form:focus-within { border-color: var(--ink); }
.srch-form input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none;
  font-family: inherit; font-size: 15px; color: var(--ink); padding: 6px 0;
}
.srch-form input:focus { outline: none; }
.srch-form input::placeholder { color: #a5a5ad; }
.srch-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.srch-go { flex: 0 0 auto; border: 0; background: none; color: #a0a0a8; padding: 3px; line-height: 0; transition: color .2s; }
.srch-go svg { width: 21px; height: 21px; }
.srch-go:hover { color: var(--ink); }
.srch-hint { text-align: center; color: #a5a5ad; font-size: 12.5px; margin: 15px 0 0; }
.srch-hint[hidden] { display: none; }

.srch-body { max-width: 1340px; margin: 0 auto; padding: 44px 24px 96px; }
.srch-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.srch-meta:empty { display: none; }
.srch-meta b { font-size: 14px; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.srch-meta .q { color: var(--ink); font-weight: 700; }
.srch-all { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.srch-clear { margin-left: auto; border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.srch-clear:hover { color: var(--ink); }

.srch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.s-card {
  position: relative; background: #ffffff; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(14,14,16,.05);
  transition: transform .28s ease, box-shadow .28s ease;
}
.s-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14,14,16,.13); }
.s-media { position: relative; display: block; padding: 28px 24px 14px; }
.s-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .55s ease;
}
.s-card:hover .s-media img { transform: scale(1.045); }
.s-badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: #fff; color: var(--ink); font-size: 8.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.s-info { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.s-name { font-size: 11.5px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; line-height: 1.4; }
.s-name a:hover { color: var(--accent); }
.s-sub { font-size: 12px; color: #7d7d85; margin: 0; }
.s-price { font-size: 13px; font-weight: 700; margin: 3px 0 12px; }
.s-price s { color: #a5a5ad; font-weight: 500; margin-left: 6px; }
.s-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-sw-row { display: flex; align-items: center; gap: 5px; }
.s-sw {
  width: 14px; height: 14px; border-radius: 999px; background: var(--c, #0e0e10);
  border: 1px solid rgba(0,0,0,.18); padding: 0; transition: box-shadow .16s ease;
}
.s-sw:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b9b9c0; }
.s-sw.active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.s-more { font-size: 10.5px; color: #7d7d85; margin-left: 1px; }
.s-add {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; transition: color .18s;
}
.s-add svg { width: 15px; height: 15px; }
.s-add:hover { color: var(--accent); }
.search-empty { padding: 40px 0 10px; }
.search-empty .se-icon svg { width: 46px; height: 46px; }

/* ===================== 2) 购物车抽屉 ===================== */
html.cd-lock { overflow: hidden; }
.cd {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(436px, 100%);
  background: #fff; z-index: 60; display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform .38s cubic-bezier(.4,0,.2,1);
  box-shadow: -30px 0 70px rgba(14,14,16,.18);
}
.cd.open { transform: none; }
.cd-head {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 4px 12px; padding: 16px 20px 10px;
}
.cd-head h3 { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
.cd-count { color: #9a9aa2; font-weight: 700; }
.cd-shipmsg { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.cd-close {
  grid-row: 1; grid-column: 2; width: 34px; height: 34px; border: 0; background: none;
  color: var(--ink); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
}
.cd-close:hover { background: #f4f4f6; }
.cd-close svg { width: 19px; height: 19px; }
.cd-bar { height: 5px; background: #e9e6e0; flex: 0 0 auto; }
.cd-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s ease; }

.cd-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
.cd-items { display: flex; flex-direction: column; }
.cd-item {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid #f1f1f3; align-items: start;
}
.cd-item:last-child { border-bottom: 0; }
.cd-thumb img { width: 68px; height: 68px; object-fit: cover; border-radius: 5px; background: #f6f5f3; }
.cd-body { min-width: 0; }
.cd-l1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cd-name { font-size: 11.5px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; line-height: 1.4; }
.cd-name:hover { color: var(--accent); }
.cd-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.cd-var { font-size: 12px; color: #7d7d85; margin-top: 4px; line-height: 1.4; }
.cd-rm {
  margin-top: 9px; border: 0; background: none; padding: 0; font-size: 11.5px;
  color: #7d7d85; text-decoration: underline; text-underline-offset: 3px;
}
.cd-rm:hover { color: var(--ink); }
.cd-qty {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid #e4e4e8; border-radius: 999px; padding: 3px; margin-top: 2px;
}
.cd-qty button {
  width: 26px; height: 26px; border: 0; background: none; border-radius: 999px;
  font-size: 15px; line-height: 1; color: var(--ink);
}
.cd-qty button:hover { background: #f4f4f6; }
.cd-qty span { min-width: 20px; text-align: center; font-size: 12.5px; font-weight: 700; }

.cd-demo { font-size: 10.5px; color: #a5a5ad; margin: 10px 0 0; }
.cd-recs {
  padding: 20px 20px 24px; margin: 16px -20px 0;
  background: #f6f4f0; border-top: 1px solid #ecebe7; border-bottom: 1px solid #ecebe7;
}
.cd-recs h4 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 13px; text-align: center; color: #6b6b73; }
.cd-rec-list {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cd-rec-list::-webkit-scrollbar { height: 3px; }
.cd-rec-list::-webkit-scrollbar-thumb { background: #dcdce2; border-radius: 3px; }
.cd-rec {
  flex: 0 0 256px; scroll-snap-align: start;
  border: 1px solid #ecebe7; border-radius: 10px; padding: 10px; background: #fff;
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px;
}
.cd-rec-img img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; background: #f6f5f3; }
.cd-rec-body { min-width: 0; }
.cd-rec-l1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cd-rec-name {
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cd-rec-price { font-size: 12px; font-weight: 700; white-space: nowrap; }
.cd-rec-l2 { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.cd-rec-size {
  flex: 1 1 auto; min-width: 0; font-family: inherit; font-size: 11px; color: var(--ink);
  padding: 4px 8px; border: 1px solid #dedee3; border-radius: 999px; background: #fff;
}
.cd-rec-add { border: 0; background: none; padding: 0; font-size: 11px; font-weight: 800; white-space: nowrap; }
.cd-rec-add:hover { color: var(--accent); }

.cd-foot { flex: 0 0 auto; border-top: 1px solid #ededf0; padding: 13px 20px 16px; background: #fff; }
.cd-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 3px 0; }
.cd-row b { font-weight: 800; }
.cd-row-ship s { color: #a5a5ad; margin-right: 6px; }
.cd-row-ship b { color: #1f7a3f; }
.cd-cta {
  margin-top: 11px; display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 16px 22px;
  font-weight: 800; font-size: 14px; letter-spacing: .01em; transition: background .2s;
}
.cd-cta:hover { background: #26262c; }
.cd-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 10.5px; color: #8b8b93; margin: 10px 0 11px; text-align: center;
}
.cd-secure svg { width: 12px; height: 12px; flex: 0 0 auto; }
.cd-pays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.cd-pay {
  height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: .01em; transition: filter .2s;
}
.cd-pay:hover { filter: brightness(1.06); }
.cd-pay-sbp { background: #eef0ff; color: #3b3ad8; box-shadow: inset 0 0 0 1px #dfe1ff; }
.cd-pay-sber { background: #21a038; color: #fff; }
.cd-pay-ym { background: #8b3ffd; color: #fff; }
.cd-pay-card { background: var(--ink); color: #fff; }
.cd-backdrop {
  position: fixed; inset: 0; background: rgba(10,10,12,.42); z-index: 55;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cd-backdrop.show { opacity: 1; pointer-events: auto; }
.cd-empty { padding: 54px 0; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.cd-empty a { font-weight: 800; color: var(--ink); text-decoration: underline; }

/* ===================== 3) 结算页 ===================== */
.co-page { background: #fff; }
.co-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #ececef; }
.co-top-in {
  max-width: 1180px; margin: 0 auto; padding: 17px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.co-brand { font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.co-top-r { display: flex; align-items: center; gap: 18px; }
.co-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.co-lock svg { width: 14px; height: 14px; }
.co-lang { border-color: #e2e2e7; }
.co-lang button { color: #6b6b73; }
.co-lang button.active { background: var(--ink); color: #fff; }

.co { max-width: 1180px; margin: 0 auto; }
.co-cols { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.co-main { padding: 34px 56px 80px 24px; }
.co-side { background: #f7f7f5; border-left: 1px solid #ececec; padding: 34px 24px 70px 42px; }

.co-express { margin-bottom: 6px; }
.co-express-l { text-align: center; font-size: 11.5px; color: #8b8b93; margin: 0 0 10px; }
.co-express-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-ex {
  border: 0; border-radius: 6px; padding: 11px 12px 10px; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: filter .2s;
}
.co-ex:hover { filter: brightness(1.06); }
.co-ex-t { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.co-ex-s { font-size: 9px; line-height: 1.25; text-align: center; opacity: .88; max-width: 22ch; }
.co-ex-sbp { background: linear-gradient(120deg, #5b57e8 0%, #2f7cf6 55%, #12b886 100%); }
.co-ex-ym { background: #8b3ffd; }
.co-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 2px; color: #a5a5ad; font-size: 11.5px; }
.co-or::before, .co-or::after { content: ''; height: 1px; background: #ebebef; flex: 1 1 auto; }

.co-sec { padding: 22px 0 10px; }
.co-sec + .co-sec { border-top: 1px solid #f1f1f3; margin-top: 10px; }
.co-sec h2 { font-size: 17px; letter-spacing: -.01em; }
.co-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-sec-sub { font-size: 12.5px; color: #8b8b93; margin: 6px 0 14px; }
.co-link { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.co-sub { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; margin: 22px 0 10px; }

.co-f { position: relative; display: block; margin-bottom: 9px; }
.co-f input, .co-f select {
  width: 100%; height: 52px; font-family: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid #dedee3; border-radius: 5px;
  padding: 19px 14px 6px; appearance: none; transition: border-color .16s, box-shadow .16s;
}
.co-f input:focus, .co-f select:focus {
  outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink);
}
.co-f-l {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13.5px; color: #8b8b93; pointer-events: none; transition: .16s ease;
  max-width: calc(100% - 44px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.co-f input:focus + .co-f-l,
.co-f input:not(:placeholder-shown) + .co-f-l { top: 6px; transform: none; font-size: 10px; line-height: 1; color: #7d7d85; }
.co-f select + .co-f-l, .co-sel .co-f-l { top: 6px; transform: none; font-size: 10px; line-height: 1; color: #7d7d85; }
.co-caret {
  position: absolute; right: 14px; top: 50%; margin-top: -3px; width: 8px; height: 8px;
  border-right: 1.5px solid #7d7d85; border-bottom: 1.5px solid #7d7d85;
  transform: rotate(45deg); pointer-events: none;
}
.co-f-i {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 999px; background: #f1f1f4; color: #7d7d85;
  font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center;
}
.co-mag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8b8b93; line-height: 0; }
.co-mag svg { width: 17px; height: 17px; }
.co-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.co-g3 { display: grid; grid-template-columns: 1.25fr 1fr .85fr; gap: 9px; }

.co-chk { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink); margin: 12px 0 6px; cursor: pointer; line-height: 1.5; }
.co-chk input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.co-chk a { text-decoration: underline; }

.co-ships { border: 1px solid #e4e4e8; border-radius: 6px; overflow: hidden; }
.co-ship { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; transition: background .18s; }
.co-ship + .co-ship { border-top: 1px solid #f1f1f3; }
.co-ship:hover { background: #fafaf8; }
.co-ship.selected { background: #f5f8ff; }
.co-ship input { position: absolute; opacity: 0; pointer-events: none; }
.co-ship-t b { display: block; font-size: 13px; font-weight: 700; }
.co-ship-t em { display: block; font-style: normal; font-size: 11.5px; color: #8b8b93; margin-top: 1px; }
.co-ship-p { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.co-ship-p b { color: #1f7a3f; }

.co-paybox { display: block; border: 1px solid #dedee3; border-radius: 6px; margin-bottom: 8px; overflow: hidden; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.co-paybox.selected { border-color: #2f6bff; box-shadow: inset 0 0 0 1px #2f6bff; }
.co-paybox-h { display: flex; align-items: center; gap: 10px; padding: 13px 14px; }
.co-paybox.selected .co-paybox-h { background: #f5f8ff; }
.co-paybox-h input, .co-payrow input { position: absolute; opacity: 0; pointer-events: none; }
.co-dot {
  width: 16px; height: 16px; border-radius: 999px; border: 1px solid #c9c9d0;
  background: #fff; flex: 0 0 auto; transition: .16s;
}
.selected .co-dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3.5px #fff; }
.co-paybox-h b { font-size: 13px; font-weight: 700; }
.co-brands { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.co-brand-card { font-size: 8px; font-weight: 800; color: #fff; border-radius: 3px; padding: 3px 4px; letter-spacing: .04em; }
.co-brand-mir { background: #0f754e; }
.co-brand-visa { background: #1a1f71; font-style: italic; letter-spacing: 0; }
.co-brand-mc { background: #fff; box-shadow: inset 0 0 0 1px #ececef; display: inline-flex; padding: 3px; }
.co-brand-mc i { width: 9px; height: 9px; border-radius: 999px; background: #eb001b; display: block; }
.co-brand-mc i + i { background: #f79e1b; margin-left: -3.5px; }
.co-brand-more { font-size: 8.5px; color: #7d7d85; margin-left: 1px; }
.co-paybox-b { padding: 12px 14px 8px; border-top: 1px solid #e9eefb; background: #fff; }
.co-f-ro input { color: #b0b0b8; cursor: not-allowed; background: #fff; }
.co-f-ro .co-f-l { top: 6px; transform: none; font-size: 10px; line-height: 1; color: #7d7d85; }
.co-f-lockico { background: none; width: 15px; height: 15px; border-radius: 0; }
.co-f-lockico svg { width: 15px; height: 15px; color: #a5a5ad; }
.co-note { display: flex; gap: 7px; font-size: 10.5px; color: #8b8b93; line-height: 1.55; margin: 6px 0 4px; }
.co-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 2px; color: #8b8b93; }

.co-payrow {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid #dedee3; border-radius: 6px; margin-bottom: 8px; cursor: pointer;
  transition: border-color .18s, background .18s;
}
.co-payrow:hover { background: #fafaf8; }
.co-payrow.selected { border-color: var(--ink); background: #fafafa; }
.co-pr { min-width: 0; }
.co-pr b { display: block; font-size: 13px; font-weight: 700; }
.co-pr em { display: block; font-style: normal; font-size: 11.5px; color: #8b8b93; margin-top: 1px; }
.co-plogo { margin-left: auto; font-size: 9.5px; font-weight: 800; border-radius: 4px; padding: 4px 7px; color: #fff; white-space: nowrap; }
.co-plogo-sbp { background: linear-gradient(120deg, #5b57e8, #12b886); }
.co-plogo-ym { background: #8b3ffd; }
.co-plogo-inv { background: #f1f1f4; color: #6b6b73; font-size: 12px; padding: 3px 8px; }
.co-chk-bill { margin-top: 8px; }

.co-consent { margin: 20px 0 6px; color: #6b6b73; font-size: 12px; }
.co-msg { min-height: 18px; font-size: 12.5px; color: #c0260b; }
.co-msg.ok { color: #1f7a3f; }
.co-pay {
  width: 100%; margin-top: 6px; border: 0; border-radius: 6px; background: var(--ink); color: #fff;
  padding: 17px 20px; font-size: 15px; font-weight: 800; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s;
}
.co-pay:hover { background: #26262c; }
.co-pay[disabled] { opacity: .45; cursor: not-allowed; }
.co-pay-amt { font-weight: 700; opacity: .92; }
.co-legal { font-size: 11px; color: #8b8b93; line-height: 1.6; margin: 12px 0 0; }
.co-back { display: inline-block; margin-top: 18px; font-size: 12px; color: #8b8b93; }
.co-back:hover { color: var(--ink); }

.co-side-body { font-size: 13px; }
.co-side-toggle { display: none; }
.co-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.co-item + .co-item { border-top: 1px solid #ebebe7; }
.co-item img, .co-item-ph {
  width: 56px; height: 56px; border-radius: 5px; object-fit: cover;
  background: #fff; box-shadow: inset 0 0 0 1px #ececec; flex: 0 0 auto;
}
.co-qb {
  position: absolute; left: 42px; top: 2px; min-width: 17px; height: 17px; padding: 0 3px;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 9.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.co-item-b { min-width: 0; }
.co-item-n { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.co-item-v { font-size: 11.5px; color: #8b8b93; margin-top: 2px; }
.co-item-p { margin-left: auto; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.co-empty { color: var(--muted); font-size: 13px; padding: 12px 0; line-height: 1.7; }
.co-empty a { display: block; font-weight: 800; color: var(--ink); text-decoration: underline; }

.co-promo { position: relative; display: flex; gap: 8px; margin: 18px 0 0; }
.co-promo input {
  flex: 1 1 auto; min-width: 0; height: 48px; font-family: inherit; font-size: 13px; color: var(--ink);
  border: 1px solid #dedee3; border-radius: 5px; background: #fff; padding: 17px 12px 5px;
}
.co-promo input:focus { outline: none; border-color: var(--ink); }
.co-promo-l {
  position: absolute; left: 13px; top: 13px; font-size: 10px; color: #8b8b93; pointer-events: none;
  max-width: calc(100% - 130px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.co-promo button {
  flex: 0 0 auto; border: 1px solid #dedee3; background: #f5f5f3; border-radius: 5px;
  padding: 0 16px; font-size: 12px; font-weight: 700; font-family: inherit; color: var(--ink);
}
.co-promo button:hover { background: #ececeb; }
.co-promo-msg { font-size: 11px; margin: 6px 0 0; min-height: 15px; color: #8b8b93; }
.co-promo-msg.ok { color: #1f7a3f; }
.co-promo-msg.bad { color: #c0260b; }

.co-sums { margin-top: 12px; }
.co-srow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; font-size: 13px; color: #3d3d44; }
.co-srow-disc { color: #1f7a3f; }
.co-srow s { color: #a5a5ad; margin-right: 5px; }
.co-stotal { margin-top: 8px; padding-top: 12px; border-top: 1px solid #e2e2dd; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.co-stotal small { font-size: 9.5px; font-weight: 600; color: #8b8b93; margin-right: 5px; }
.co-side-note { display: flex; gap: 6px; font-size: 10px; color: #8b8b93; margin: 22px 0 0; line-height: 1.55; }
.co-side-note svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; }
.co-shipcalc { color: #8b8b93; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .srch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .co-cols { grid-template-columns: 1fr; }
  .co-side { order: -1; border-left: 0; border-bottom: 1px solid #ececec; padding: 0; }
  .co-main { padding: 24px 20px 64px; }
  .co-side-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
    border: 0; background: none; padding: 16px 20px; font-family: inherit;
    font-size: 13px; font-weight: 700; color: var(--ink);
  }
  .co-side-toggle b { font-size: 15px; }
  .co-side-body { display: none; padding: 0 20px 22px; }
  .co-side.open .co-side-body { display: block; }
}
@media (max-width: 780px) {
  .srch { padding-top: 62px; }
  .srch-top { padding: 40px 18px 0; }
  .srch-body { padding: 30px 16px 70px; }
  .srch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .s-media { padding: 20px 14px 10px; }
  .s-info { padding: 0 12px 12px; }
  .s-name { font-size: 10.5px; }
  .s-add { font-size: 9px; }
  .s-add svg { width: 13px; height: 13px; }
  .s-sw { width: 12px; height: 12px; }
  .s-sw-row { gap: 4px; }
  .co-top-in { padding: 14px 16px; }
  .co-brand { font-size: 19px; }
  .co-lock span { display: none; }
  .co-g2, .co-g3 { grid-template-columns: 1fr; }
  .co-express-row { grid-template-columns: 1fr; }
  .cd { width: 100%; }
  .cd-item { grid-template-columns: 60px minmax(0, 1fr); }
  .cd-thumb img { width: 60px; height: 60px; }
  .cd-qty { grid-column: 2; justify-self: end; margin-top: -26px; }
}
@media (max-width: 520px) {
  .s-add span { display: none; }
  .s-add svg { width: 19px; height: 19px; }
}
