/* 必成公考商城 - 前台通用样式（主题色由 themes.css 变量驱动） */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.header-inner {
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: var(--shadow);
}
.logo-text { font-family: var(--font-title); font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--primary); }
.logo-text small { display: block; font-size: 10px; font-weight: 500; color: var(--text-sub); letter-spacing: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { font-size: 14px; color: var(--text-sub); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.header-spacer { flex: 1; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 12px; height: 38px; width: 230px;
}
.search-box input { border: none; background: none; outline: none; flex: 1; font-size: 13px; color: var(--text); }
.search-box svg { width: 16px; height: 16px; color: var(--text-sub); }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center; position: relative; color: var(--text);
  transition: background .2s;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px;
  background: var(--primary); color: #fff; border-radius: 9px; font-size: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.theme-select {
  height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 10px; font-size: 13px; color: var(--text); background: var(--card); outline: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--hero-from), var(--hero-to));
  color: var(--hero-text); position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 70%);
}
.hero-glow-a { width: 560px; height: 560px; right: -120px; top: -190px; }
.hero-glow-b { width: 380px; height: 380px; right: 130px; bottom: -200px; opacity: .7; }
.hero-word {
  position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-title); font-size: 300px; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.10); pointer-events: none; user-select: none; letter-spacing: 0;
}
.hero-inner { padding: 78px 0 84px; position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; padding: 7px 16px; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12); border-radius: 22px; font-size: 12px;
  letter-spacing: 1px; margin-bottom: 20px; backdrop-filter: blur(4px);
}
.hero h1 { font-family: var(--font-title); font-size: 48px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.hero h1 em { font-style: normal; color: #fff3c4; text-shadow: 0 2px 12px rgba(180,83,9,.25); }
.hero-slogan {
  display: inline-block; font-family: var(--font-title); font-size: 21px; font-weight: 700;
  color: #fffaf0; margin: 0 0 12px; padding: 4px 0 6px;
  border-bottom: 2px solid rgba(255,243,196,.7); letter-spacing: 1px;
}
.hero-desc { font-size: 15px; line-height: 1.9; opacity: .95; max-width: 620px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--accent); color: #7c2d12; box-shadow: 0 6px 18px rgba(180,83,9,.25); }
.hero .btn-primary:hover { background: #fff; color: var(--primary-dark); }
.hero .btn-outline { border: 1px solid rgba(255,255,255,.7); color: var(--hero-text); background: rgba(255,255,255,.06); }
.hero .btn-outline:hover { background: rgba(255,255,255,.18); }
.hero-stats { display: flex; gap: 42px; margin-top: 42px; }
.hero-stat b { display: block; font-size: 29px; font-family: var(--font-title); }
.hero-stat span { font-size: 12px; opacity: .85; }

/* 品牌标语条 */
.slogan-ribbon {
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  background-image: linear-gradient(90deg, transparent, var(--tag-bg), transparent);
}
.ribbon-inner { display: flex; align-items: center; gap: 14px; padding: 15px 0; flex-wrap: wrap; }
.ribbon-emoji { font-size: 22px; }
.ribbon-inner b { font-family: var(--font-title); font-size: 16px; color: var(--primary-dark); white-space: nowrap; }
.ribbon-sub { font-size: 13px; color: var(--text-sub); }

/* ---------- 分类区 ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: var(--font-title); font-size: 26px; font-weight: 800; }
.section-title::before {
  content: ''; display: inline-block; width: 4px; height: 22px;
  background: var(--accent); margin-right: 12px; vertical-align: -3px; border-radius: 2px;
}
.section-sub { color: var(--text-sub); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; cursor: pointer; transition: all .25s; box-shadow: var(--shadow);
}
.category-card:hover, .category-card.active {
  transform: translateY(-4px); border-color: var(--primary);
}
.category-icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  background: var(--tag-bg); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.category-card h3 { font-family: var(--font-title); font-size: 17px; margin-bottom: 6px; }
.category-card p { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* ---------- 商品区 ---------- */
.filter-bar { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-chip {
  padding: 7px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--card); font-size: 13px; color: var(--text-sub); transition: all .2s;
}
.filter-chip:hover, .filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s; box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(234,88,12,.18); border-color: var(--primary-light); }
.product-cover {
  height: 168px; display: flex; align-items: center; justify-content: center;
  position: relative; background-size: cover; background-position: center;
}
.product-cover .cover-emoji { font-size: 62px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.product-cover .cover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.12));
}
.product-tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 12px;
  background: var(--primary-dark); color: #fff; font-size: 10px; font-weight: 600; z-index: 2;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; color: var(--tag-color); background: var(--tag-bg); align-self: flex-start; padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; }
.product-name { font-family: var(--font-title); font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.product-sub { font-size: 12px; color: var(--text-sub); margin-bottom: 12px; flex: 1; }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.price-main { color: var(--primary); font-size: 20px; font-weight: 800; font-family: var(--font-title); }
.price-old { color: var(--text-sub); font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.buy-btn {
  background: var(--primary); color: #fff; padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; transition: all .2s;
}
.buy-btn:hover { background: var(--primary-dark); }
.empty { text-align: center; padding: 70px 20px; color: var(--text-sub); }
.empty-icon { font-size: 50px; opacity: .5; margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 44px 0 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand h3 { font-family: var(--font-title); font-size: 20px; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; max-width: 300px; }
.footer-links h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; margin-bottom: 8px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12px; opacity: .6; }

/* ---------- 页脚客服二维码（点击放大）---------- */
.footer-service { width: 340px; flex-shrink: 0; }
.footer-service-body { display: flex; gap: 14px; align-items: flex-start; }
.qr-thumb {
  position: relative; width: 94px; height: 94px; flex-shrink: 0; padding: 6px;
  background: #fff; border: 2px dashed rgba(255,255,255,.6); border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2); cursor: zoom-in; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qr-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-thumb .qr-zoom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0;
  background: rgba(194,65,12,.94); color: #fff; font-size: 10px; text-align: center;
  opacity: 0; transition: opacity .2s ease;
}
.qr-thumb:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 26px rgba(0,0,0,.28); }
.qr-thumb:hover .qr-zoom, .qr-thumb:focus-visible .qr-zoom { opacity: 1; }
.qr-thumb:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.footer-service-info { flex: 1; min-width: 0; }
.qr-link {
  display: block; background: none; border: 0; padding: 0; margin-bottom: 8px;
  color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.5; text-align: left;
  cursor: pointer; font-family: inherit; white-space: normal;
}
.qr-link:hover { color: var(--accent); }
.footer-service-info p { font-size: 12px; line-height: 1.6; margin: 0 0 6px; opacity: .78; }
.qr-caption { display: block; font-size: 11px; color: #ffd9b8; line-height: 1.5; }

/* ---------- 二维码放大灯箱 ---------- */
.bs-modal-qr { width: min(430px, 94vw); padding: 26px 26px 22px; text-align: center; }
.qr-lb-head h3 { font-family: var(--font-title); font-size: 20px; font-weight: 800; margin: 10px 0 6px; }
.qr-lb-head p { font-size: 12px; color: var(--text-sub); line-height: 1.7; margin: 0; }
.qr-lb-badge { display: inline-block; background: var(--tag-bg); color: var(--primary); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.qr-lb-frame {
  width: min(280px, 72vw); aspect-ratio: 1 / 1; margin: 20px auto 16px; padding: 12px;
  background: #fff; border: 3px solid var(--primary); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(234,88,12,.20); transition: all .25s ease;
}
.qr-lb-frame img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.qr-lb-wechat { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.qr-lb-wechat span { font-size: 12px; color: var(--text-sub); }
.qr-lb-wechat b { font-size: 15px; color: var(--primary); letter-spacing: .3px; }
.qr-lb-tip { font-size: 12px; color: var(--text-sub); line-height: 1.7; margin: 0 0 10px; }
.qr-lb-demo { font-size: 11px; color: #b45309; background: #fff8e6; border-radius: var(--radius-sm); padding: 9px 12px; line-height: 1.7; margin: 0 0 12px; text-align: left; }
.qr-lb-actions { display: flex; gap: 10px; margin-top: 14px; }
.qr-lb-actions .btn, .qr-lb-actions a.btn { flex: 1; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.qr-lb-foot { font-size: 10px; color: var(--text-sub); margin-top: 12px; opacity: .8; }
/* 纯净扫码模式：白底大码，隐藏文字，方便手机直接扫屏幕 */
.bs-modal-qr.scan-mode { background: #fff; padding: 14px; }
.bs-modal-qr.scan-mode .qr-lb-head,
.bs-modal-qr.scan-mode .qr-lb-wechat,
.bs-modal-qr.scan-mode .qr-lb-tip,
.bs-modal-qr.scan-mode .qr-lb-demo,
.bs-modal-qr.scan-mode .qr-lb-actions,
.bs-modal-qr.scan-mode .qr-lb-foot { display: none; }
.bs-modal-qr.scan-mode .qr-lb-frame { width: min(78vmin, 560px); border-width: 6px; border-radius: 22px; margin: 0 auto; padding: 18px; }
.bs-modal-qr.scan-mode .qr-lb-frame img { cursor: zoom-out; }
/* 商品详情配图放大 */
.bs-modal-image { width: min(760px, 94vw); text-align: center; padding: 20px; }
.bs-modal-image h3 { font-family: var(--font-title); font-size: 16px; margin-bottom: 14px; }
.bs-modal-image img { max-width: 100%; max-height: 74vh; border-radius: var(--radius-sm); }
.img-lb-foot { font-size: 11px; color: var(--text-sub); margin-top: 12px; }

/* ---------- 弹窗内容 ---------- */
.bs-modal {
  background: var(--card); border-radius: var(--radius); width: min(500px, 92vw);
  max-height: 88vh; overflow-y: auto; padding: 32px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.25); color: var(--text);
}
.bs-modal-wide { width: min(760px, 94vw); }
.brand-mini {
  text-align: center; font-family: var(--font-title); font-size: 13px; font-weight: 700;
  color: var(--primary); background: var(--tag-bg); border-radius: var(--radius-sm);
  padding: 8px 12px; margin-bottom: 18px;
}
.modal-title { font-family: var(--font-title); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-sub { color: var(--text-sub); font-size: 13px; margin-bottom: 22px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: 14px; outline: none; font-family: inherit;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--primary); }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-field { flex: 1; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 22px; }
.tab { padding: 10px 22px; font-size: 14px; color: var(--text-sub); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--primary); border-color: var(--primary); }

/* 商品详情 */
.detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; }
.detail-cover { height: 280px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; position: relative; }
.detail-cover .cover-emoji { font-size: 100px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }
.detail-name { font-family: var(--font-title); font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.detail-price-box { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0; }
.detail-price-box .price-main { font-size: 28px; }
.detail-desc { font-size: 14px; color: var(--text-sub); line-height: 1.8; margin-bottom: 20px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qty-ctrl button { width: 32px; height: 32px; font-size: 18px; color: var(--text); }
.qty-ctrl span { width: 36px; text-align: center; font-weight: 600; }

/* 交付话术成功页 */
.success-hero { text-align: center; padding: 8px 0 18px; }
.success-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--tag-bg); color: var(--primary); font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.delivery-box {
  background: var(--bg-soft); border: 1px dashed var(--primary); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 18px; font-size: 14px; line-height: 1.9; margin: 16px 0;
  white-space: pre-wrap; word-break: break-word;
}
.info-note { font-size: 12px; color: var(--text-sub); text-align: center; }

/* 订单卡片 */
.order-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; background: var(--bg); }
.order-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.order-head b { color: var(--text); font-size: 13px; }
.order-item { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.order-item .oi-emoji { font-size: 22px; }
.order-item .oi-name { flex: 1; }
.order-msg { margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.7; }
.msg-delivery { background: var(--tag-bg); border-left: 3px solid var(--primary); }
.msg-note { background: #fff8e6; border-left: 3px solid #f59e0b; }
.msg-tracking { background: #e8f5e9; border-left: 3px solid #16a34a; }
.msg-label { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 4px; display: block; }
.msg-note .msg-label { color: #b45309; }
.msg-tracking .msg-label { color: #15803d; }

/* 购物车抽屉项 */
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item .ci-emoji { font-size: 28px; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-name { font-size: 14px; font-weight: 600; }
.cart-item .ci-price { font-size: 13px; color: var(--primary); font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; padding: 16px 0; }

/* ---------- 弹窗基础层 ---------- */
.bs-modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.bs-modal-close {
  position: absolute; top: 14px; right: 16px; width: 30px; height: 30px;
  font-size: 24px; color: var(--text-sub); line-height: 1;
}
.bs-modal-close:hover { color: var(--text); }
.bs-toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--primary); color: #fff; padding: 11px 24px; border-radius: var(--radius-sm);
  font-size: 14px; z-index: 200; opacity: 0; transition: all .25s; box-shadow: var(--shadow);
}
.bs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bs-toast-error { background: #dc2626; }

/* ---------- 响应式 ---------- */
/* ---------- 评价体系（参考主流商城：评分汇总 / 晒图 / 标签 / 审核态） ---------- */
.bs-stars { color: #f59e0b; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.bs-star-off { color: var(--border); }
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-sub); margin: -2px 0 12px;
}
.pm-rating { color: #f59e0b; font-weight: 700; }
.pm-rating em { font-style: normal; color: var(--text-sub); font-weight: 400; }
.pm-rating.muted, .muted { color: var(--text-sub); }
.pm-sales { color: var(--text-sub); }
.detail-rating-line { font-size: 13px; color: var(--text-sub); margin: -8px 0 0; display: flex; align-items: center; gap: 6px; }
.detail-rating-line b { color: #f59e0b; font-size: 16px; }
.rv-sales { margin-left: auto; }

.detail-review-block { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 22px; scroll-margin-top: 16px; }
.detail-review-hint { font-size: 12px; color: var(--text-sub); margin: -4px 0 14px; }
.drv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.drv-head h3 { font-family: var(--font-title); font-size: 17px; font-weight: 800; }
.drv-head h3 em { font-style: normal; color: var(--primary); font-size: 13px; margin-left: 4px; }

.rv-summary {
  display: grid; grid-template-columns: 180px 1fr 1fr; gap: 20px;
  background: var(--bg-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 18px;
}
.rv-summary.compact { grid-template-columns: 150px 1fr 1fr; gap: 16px; padding: 14px; }
.rv-summary.compact .rv-tags-wrap { display: none; }
.rv-score-block { text-align: center; border-right: 1px solid var(--border); padding-right: 12px; }
.rv-score { font-family: var(--font-title); font-size: 42px; font-weight: 800; color: #f59e0b; line-height: 1.1; }
.rv-summary.compact .rv-score { font-size: 34px; }
.rv-score-block .bs-stars { display: block; margin: 4px 0; }
.rv-score-sub { font-size: 11px; color: var(--text-sub); }
.rv-dist { display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-sub); }
.dist-row > span:first-child { width: 30px; white-space: nowrap; }
.dist-row > span:last-child { width: 22px; text-align: right; }
.dist-track, .dim-track { flex: 1; height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.dist-track i, .dim-track i { display: block; height: 100%; background: #f59e0b; border-radius: 4px; }
.rv-mini-title { font-size: 11px; font-weight: 700; color: var(--text-sub); margin-bottom: 8px; }
.dim-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-sub); margin-bottom: 6px; }
.dim-row > span { width: 56px; white-space: nowrap; }
.dim-row b { width: 24px; text-align: right; color: var(--text); }
.rv-tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-tag-chip {
  border: 1px solid var(--border); background: var(--card); color: var(--text-sub);
  border-radius: 14px; padding: 4px 10px; font-size: 11px; transition: all .2s;
}
.rv-tag-chip:hover, .rv-tag-chip.active { border-color: var(--primary); color: var(--primary); }
.rv-tag-chip em { font-style: normal; color: var(--text-sub); margin-left: 3px; }

.rv-toolbar-top { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.rv-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.rv-filter {
  border: 1px solid var(--border); background: var(--card); color: var(--text-sub);
  border-radius: 16px; padding: 5px 14px; font-size: 12px;
}
.rv-filter:hover, .rv-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.rv-sort, .rv-clear-tag {
  margin-left: auto; border: 1px solid var(--border); background: var(--card);
  color: var(--text-sub); border-radius: var(--radius-sm); padding: 5px 10px; font-size: 12px;
}
.rv-clear-tag { margin-left: 0; color: var(--primary); cursor: pointer; }

.rv-list { display: flex; flex-direction: column; }
.rv-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.rv-item:last-child { border-bottom: none; }
.rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rv-avatar {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--tag-bg);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.rv-user { min-width: 0; }
.rv-name { font-size: 13px; font-weight: 700; }
.rv-badge {
  display: inline-block; background: var(--tag-bg); color: var(--tag-color);
  border-radius: 8px; padding: 1px 6px; font-size: 10px; font-weight: 500; margin-left: 4px;
}
.rv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 11px; color: var(--text-sub); margin-top: 3px; }
.rv-type { border-radius: 8px; padding: 1px 6px; font-size: 10px; font-weight: 600; }
.rv-type.pos { background: #fee2e2; color: #dc2626; }
.rv-type.mid { background: #fef3c7; color: #b45309; }
.rv-type.neg { background: #e5e7eb; color: #4b5563; }
.rv-pin { color: var(--primary); border: 1px solid var(--primary); border-radius: 6px; padding: 0 5px; font-size: 10px; }
.rv-text { font-size: 13px; line-height: 1.8; color: var(--text); word-break: break-word; }
.rv-tag-row, .rv-img-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.rv-tag { color: var(--tag-color); background: var(--tag-bg); border-radius: 8px; padding: 2px 8px; font-size: 11px; }
.rv-img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.rv-img-emoji { display: flex; align-items: center; justify-content: center; font-size: 32px; background: var(--bg-soft); }
.rv-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.rv-dim-text { font-size: 11px; color: var(--text-sub); }
.rv-helpful { border: 1px solid var(--border); border-radius: 14px; padding: 3px 10px; font-size: 11px; color: var(--text-sub); }
.rv-helpful:hover, .rv-helpful.done { border-color: var(--primary); color: var(--primary); }
.rv-reply {
  background: var(--bg-soft); border-left: 3px solid var(--primary); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--text-sub);
}
.rv-reply b { color: var(--primary); margin-right: 6px; }
.rv-reply span { display: block; font-size: 10px; margin-top: 4px; opacity: .75; }

/* 写评价表单 */
.star-input { display: inline-flex; gap: 3px; }
.si-star { font-size: 22px; line-height: 1; color: var(--border); transition: color .12s, transform .12s; }
.si-star.on { color: #f59e0b; }
.si-star:hover { transform: scale(1.15); }
.star-lg .si-star { font-size: 30px; }
.dim-inputs { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.dim-input-row { display: flex; align-items: center; gap: 14px; padding: 5px 0; }
.dim-input-row > span { width: 64px; font-size: 12px; color: var(--text-sub); }
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-opt {
  border: 1px solid var(--border); background: var(--card); color: var(--text-sub);
  border-radius: 14px; padding: 5px 12px; font-size: 12px;
}
.tag-opt:hover, .tag-opt.on { border-color: var(--primary); color: var(--primary); background: var(--tag-bg); }

/* 我的评价 */
.my-rv { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--bg); }
.my-rv-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 6px; }
.rv-status { border-radius: 10px; padding: 2px 9px; font-size: 11px; font-weight: 600; }
.rv-status.pending { background: #fef3c7; color: #b45309; }
.rv-status.approved { background: #e8f5e9; color: #15803d; }
.rv-status.rejected { background: #fee2e2; color: #dc2626; }
.my-rv-note { font-size: 11px; color: var(--text-sub); margin-top: 8px; font-style: italic; }
.order-item .btn { margin-left: 8px; flex-shrink: 0; }

@media (max-width: 900px) {
  .rv-summary, .rv-summary.compact { grid-template-columns: 1fr; }
  .rv-score-block { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 12px; }
  .rv-summary.compact .rv-tags-wrap { display: block; }
}

/* ---------- 新版 Logo / Hero 卡片 ---------- */
.logo-img { width: 42px; height: 42px; flex-shrink: 0; }
.footer-logo { width: 24px; height: 24px; display: inline-block; vertical-align: -5px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-card {
  position: relative; z-index: 2; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px; padding: 26px; backdrop-filter: blur(10px); color: var(--hero-text);
  box-shadow: 0 20px 50px rgba(120,53,15,.25);
}
.hc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hc-top span { font-size: 30px; }
.hc-top b { font-family: var(--font-title); font-size: 20px; line-height: 1.4; }
.hc-steps { display: flex; flex-direction: column; gap: 12px; }
.hc-steps > div { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 11px 14px; }
.hc-steps i { font-style: normal; font-family: var(--font-title); font-size: 13px; font-weight: 800; color: #fff3c4; }
.hc-steps span { font-weight: 700; font-size: 14px; min-width: 64px; }
.hc-steps em { font-style: normal; font-size: 11px; opacity: .85; }
.hc-foot { text-align: center; margin-top: 18px; font-size: 12px; letter-spacing: 2px; color: #fff3c4; }

/* ---------- 商品详情双标签 ---------- */
.detail-tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.dtab { padding: 10px 22px; font-size: 14px; font-weight: 600; color: var(--text-sub); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.dtab.active { color: var(--primary); border-color: var(--primary); }
.dtab em { font-style: normal; color: var(--primary); }
.goods-detail { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.goods-detail h3 { font-family: var(--font-title); font-size: 17px; margin-bottom: 12px; }
.goods-detail-text { font-size: 14px; line-height: 1.9; color: var(--text-sub); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px; }
/* 商品简介富文本：支持后台粘贴/上传的图文排版 */
.rich-text { word-break: break-word; }
.rich-text p, .rich-text div { margin: 0 0 10px; }
.rich-text ul, .rich-text ol { padding-left: 22px; margin: 0 0 12px; }
.rich-text li { margin-bottom: 4px; }
.rich-text h3, .rich-text h4, .rich-text h5 { font-family: var(--font-title); font-size: 15px; font-weight: 800; color: var(--text); margin: 14px 0 8px; }
.rich-text strong, .rich-text b { color: var(--text); }
.rich-text a { color: var(--primary); text-decoration: underline; }
.rich-text blockquote { border-left: 3px solid var(--primary); padding-left: 12px; margin: 10px 0; color: var(--text-sub); }
.rich-text hr { border: 0; border-top: 1px dashed var(--border); margin: 14px 0; }
.rich-text img { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.rich-text img.rich-zoomable { cursor: zoom-in; transition: transform .2s ease; }
.rich-text img.rich-zoomable:hover { transform: scale(1.01); }
.goods-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.goods-attrs > div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.goods-attrs span { display: block; font-size: 11px; color: var(--text-sub); margin-bottom: 3px; }
.goods-attrs b { font-size: 13px; }

/* ---------- 支付方式 ---------- */
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--card); text-align: left; }
.pay-method:hover { border-color: var(--primary); background: var(--bg-soft); }
.pay-method > span:nth-child(2) { flex: 1; }
.pay-method b { display: block; font-size: 14px; }
.pay-method em { font-style: normal; font-size: 11px; color: var(--text-sub); }
.pay-method i { font-style: normal; color: var(--text-sub); font-size: 20px; }
.pm-logo { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.pm-logo.ali { background: #1677ff; }
.pm-logo.wx { background: #16a34a; }

/* ---------- 注册表单增强 ---------- */
.warn-hint { color: #b45309 !important; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img { width: 122px; height: 48px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; }
.captcha-row button { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--primary); font-size: 18px; width: 38px; height: 48px; }
.field-guide { font-size: 11px; color: var(--text-sub); font-weight: 400; margin-left: 6px; }
.custom-tag-row { display: flex; gap: 8px; margin-top: 10px; }
.custom-tag-row input { flex: 1; }
.rv-selected-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-thumb { position: relative; width: 78px; height: 78px; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.upload-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #dc2626; color: #fff; font-size: 12px; line-height: 1; }
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- 移动端菜单 ---------- */
.mobile-menu-btn { display: none; width: 38px; height: 38px; border-radius: var(--radius-sm); font-size: 20px; color: var(--text); border: 1px solid var(--border); }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 320px; gap: 26px; }
  .hero-card { padding: 18px; }
}
@media (max-width: 900px) {
  .rv-summary, .rv-summary.compact { grid-template-columns: 1fr; }
  .rv-score-block { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 12px; }
  .rv-summary.compact .rv-tags-wrap { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .mobile-menu-btn { display: block; }
  .search-box { display: none; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 10px 4vw; flex-direction: column; gap: 0; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .goods-attrs { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-cover { height: 200px; }
  .bs-modal-wide { width: 96vw; padding: 22px; }
  .captcha-row img { width: 104px; }
  .hero h1 { font-size: 34px; }
  .hero-slogan { font-size: 18px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
  .footer-top { flex-direction: column; }
  .footer-service { width: auto; }
}
@media (max-width: 600px) {
  .header-inner { gap: 8px; height: 60px; }
  .logo { gap: 6px; }
  .logo-text { font-size: 15px; }
  .logo-text small { font-size: 7px; letter-spacing: 1px; }
  .logo-img { width: 32px; height: 32px; }
  .btn { padding: 8px 12px; font-size: 12px; }
  /* 顶部右侧控件不允许被 flex 压缩，避免"登录/注册"挤成单字、汉堡菜单被挤出屏幕 */
  .icon-btn, .mobile-menu-btn, #authBtn { flex-shrink: 0; white-space: nowrap; }
  #authBtn { padding: 8px 10px; }
  .mobile-menu-btn { display: block; }
  .hero-inner { padding: 48px 0 54px; }
  .hero h1 { font-size: 29px; }
  .hero-slogan { font-size: 17px; }
  .hero-desc { font-size: 13px; }
  .hero-stats { gap: 16px; }
  .hero-stat b { font-size: 21px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-cover { height: 130px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 13px; }
  .price-main { font-size: 17px; }
  .buy-btn { padding: 6px 9px; font-size: 11px; }
  .ribbon-inner b { font-size: 14px; }
  .ribbon-sub { font-size: 11px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-service { width: auto; }
  .qr-thumb { width: 84px; height: 84px; }
  .bs-modal-qr { padding: 20px 16px 16px; }
  .qr-lb-actions { flex-direction: column; }
  /* 窄屏导航：允许品牌区收缩截断，避免右侧「登录/注册」和汉堡菜单被挤出屏幕产生横向滚动 */
  .logo { min-width: 0; }
  .logo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- 超窄屏（≤400px）导航进一步压缩 ---------- */
@media (max-width: 400px) {
  .header-inner { gap: 6px; }
  .logo { gap: 5px; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; }
  .logo-text { font-size: 14px; }
  .logo-text small { display: none; }
  .icon-btn, .mobile-menu-btn { width: 34px; height: 34px; }
  .mobile-menu-btn { font-size: 17px; }
  #authBtn { padding: 7px 8px; font-size: 11px; }
}

/* ---------- 详情单标题 ---------- */
.detail-tabs .dtab { display: inline-block; cursor: default; }

/* ---------- 微信收款码支付弹窗 ---------- */
.pay-head { margin-bottom: 14px; }
.pay-amount-line { text-align: center; font-size: 14px; color: var(--text-sub); margin-top: 6px; }
.pay-amount-line b { color: var(--primary); font-size: 24px; margin-left: 4px; }
.pay-qr-wrap { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.pay-qr-wrap img { width: min(260px, 70vw); height: auto; display: block; margin: 0 auto; cursor: zoom-in; border-radius: var(--radius-sm); }
.pay-demo-note { margin-top: 10px; background: #fff7ed; color: #b45309; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; text-align: center; }
.pay-eta-note { margin-top: 12px; background: var(--bg-soft); color: var(--primary); border: 1px dashed var(--primary); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; text-align: center; font-weight: 600; }
.pay-eta-line { display: block; margin-top: 10px; font-size: 13px; color: var(--primary); font-weight: 700; }
.pay-note-row { display: flex; gap: 8px; align-items: center; }
.pay-note-row input { flex: 1; min-width: 0; }
.pay-proof-box { border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); min-height: 100px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; cursor: pointer; overflow: hidden; padding: 10px; text-align: center; }
.pay-proof-box:hover { border-color: var(--primary); }
.pay-proof-box img { max-width: 100%; max-height: 220px; border-radius: var(--radius-sm); }
.pay-proof-empty { color: var(--text-sub); font-size: 13px; }
.pay-proof-change { font-size: 12px; color: var(--primary); }
.pay-status-big { text-align: center; padding: 18px; background: var(--bg-soft); border-radius: var(--radius); }
.pay-status-big p { font-size: 13px; color: var(--text-sub); margin-top: 10px; }

/* ---------- 订单状态徽章 ---------- */
.order-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.order-status.st-pending { background: #fff7ed; color: #c2410c; }
.order-status.st-shipped { background: #e0f2fe; color: #0369a1; }
.order-status.st-completed { background: #dcfce7; color: #15803d; }
.order-status.st-cancelled { background: #f1f5f9; color: #64748b; }
.order-status.st-paid { background: #dcfce7; color: #15803d; }
