/* ============ BeanBeanMouse Design System ============ */
:root {
  --navy-900: #4A2E08;
  --navy-800: #5C3A10;
  --navy-700: #6E4616;
  --primary: #8F5E0A;
  --primary-600: #A86A0A;
  --primary-050: #FFF6E0;
  --accent: #E8A33D;
  --accent-050: #FFF3DC;
  --success: #2E9E5B;
  --success-050: #E8F7EE;
  --danger: #B03535;
  --danger-050: #FDECEC;
  --bg: #FFF9EC;
  /* 卡片从纯白改成暖白：和奶油色页面底不再"黄一块白一块"（用户反馈不协调） */
  --card: #FFFDF7;
  --text: #3D2E1A;
  --text-2: #6B5638;
  --muted: #6F5C3E;
  --border: #F0E4C8;
  --border-2: #E6D5AC;
  --shadow-sm: 0 1px 2px rgba(120, 84, 20, .06);
  --shadow: 0 2px 8px rgba(120, 84, 20, .08);
  --shadow-lg: 0 12px 32px rgba(120, 84, 20, .14);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(135deg, #4A2E08, #7A4F08);
  color: #fff;
  box-shadow: 0 2px 12px rgba(74, 46, 8, .35);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; opacity: .92; }
.brand-mark { color: var(--accent); display: flex; }
.brand-mark img { width: 24px; height: 24px; border-radius: 50%; display: block; object-fit: cover; flex-shrink: 0; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.brand-name span { color: #FFD98A; }
.brand-name--footer span { color: #FFD98A; }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  color: #F3E2BC; padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a.active { color: #fff; background: rgba(255, 255, 255, .12); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .08); color: #F7EBD3;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px;
  padding: 7px 10px; cursor: pointer; font-size: 13px; line-height: 1;
  position: relative;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.lang-label { font-weight: 600; font-size: 12px; }
.lang-switch { display: inline-flex; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; padding: 3px; }
.lang-btn { background: transparent; border: none; color: #F3E2BC; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.lang-btn:hover { color: #fff; }
.lang-btn.on { background: #fff; color: var(--navy-900); }
.lang-btn--more { display: inline-flex; align-items: center; gap: 2px; }
.lang-caret { font-size: 9px; opacity: .75; }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.lang-opt {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; text-align: left;
  transition: border-color .15s, background .15s;
}
.lang-opt:hover { border-color: var(--primary); background: var(--primary-050); }
.lang-opt.on { border-color: var(--primary); background: var(--primary-050); color: var(--primary); font-weight: 700; }
.lang-flag {
  font-size: 10.5px; line-height: 1; font-weight: 800; letter-spacing: .5px;
  color: var(--text-2); background: #EEF2FA; border-radius: 4px; padding: 2px 5px;
  min-width: 26px; text-align: center;
}
.lang-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-code { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .4px; }
.lang-auto {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 12px; padding: 10px 12px; border: 1.5px dashed var(--border-2); border-radius: 10px;
  background: #FBFCFE; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.lang-auto:hover { border-color: var(--primary); background: var(--primary-050); }
.lang-note { margin: 12px 2px 0; }
.lang-hint { background: linear-gradient(90deg, #7A4F08, #8F5E0A); color: #fff; font-size: 13px; }
.lang-hint-inner {
  max-width: 1200px; margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.lang-hint-ico { font-size: 18px; }
.lang-hint-txt { flex: 1; min-width: 200px; }
.lang-hint .btn { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; }
.lang-hint .btn-primary { background: #fff; color: var(--navy-900); border-color: #fff; }
.lang-hint .btn-primary:hover { background: #FFF6E0; }
.fav-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent); color: #3A2A00; border-radius: 20px;
  font-size: 11px; font-weight: 700; min-width: 17px; height: 17px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px; padding: 5px 6px 5px 5px; cursor: pointer; color: #fff;
  font-size: 13px;
}
.user-chip:hover { background: rgba(255, 255, 255, .18); }
.user-chip .name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex: none;
}
.user-chip .role-tag {
  background: rgba(245, 158, 11, .22); color: #FFD38A; font-size: 11px;
  padding: 2px 7px; border-radius: 10px; font-weight: 600; flex: none;
}
.header-actions #userArea { display: inline-flex; align-items: center; gap: 6px; }
.header-actions .notif-wrap { display: inline-flex; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border-2); background: #fff; color: var(--text);
  border-radius: 9px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s ease; white-space: nowrap; line-height: 1.3;
}
.btn:hover { border-color: #B9C5DA; box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-600), var(--primary));
  border-color: var(--primary); color: #fff;
  box-shadow: 0 3px 10px rgba(200, 134, 11, .28);
}
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(200, 134, 11, .34); }
.btn-accent {
  background: linear-gradient(180deg, #FBBF24, var(--accent));
  border-color: #D97706; color: #472F02;
  box-shadow: 0 3px 10px rgba(217, 119, 6, .28);
}
.btn-accent:hover { filter: brightness(1.04); color: #472F02; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-050); border-color: transparent; box-shadow: none; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-050); border-color: transparent; box-shadow: none; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-2); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; color: var(--text); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s; font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.textarea { resize: vertical; min-height: 90px; }
.input-group { display: flex; gap: 8px; align-items: center; }
.input-group .input { flex: 1; }
.input-group .sep { color: var(--muted); flex: none; }
.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-2); border-radius: 20px; padding: 5px 11px;
  font-size: 13px; cursor: pointer; user-select: none; background: #fff; color: var(--text-2);
  transition: all .12s;
}
.check-pill input { margin: 0; accent-color: var(--primary); }
.check-pill:has(input:checked) {
  background: var(--primary-050); border-color: var(--primary); color: var(--primary); font-weight: 600;
}
.radio-row { display: flex; flex-direction: column; gap: 4px; }
.radio-row label {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2);
  padding: 5px 8px; border-radius: 7px; cursor: pointer; margin: 0;
}
.radio-row label:hover { background: var(--primary-050); color: var(--text); }
.radio-row input { accent-color: var(--primary); margin: 0; }
.radio-row label.active { background: var(--primary-050); color: var(--primary); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.section { margin-bottom: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 21px; margin: 0; font-weight: 700; }
.section-head .sub { color: var(--muted); font-size: 13px; margin-left: 10px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(255, 205, 110, .45), transparent 60%),
    radial-gradient(700px 340px at -5% 110%, rgba(232, 163, 61, .38), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 64px 0 76px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 38px; line-height: 1.25; margin: 0 0 12px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.hero p { font-size: 16px; color: #F5E6C4; margin: 0 auto 30px; max-width: 620px; }
.hero-search {
  display: flex; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px rgba(74, 46, 8, .4); max-width: 680px; margin: 0 auto;
}
.hero-search input {
  flex: 1; border: none; outline: none; padding: 12px 14px; font-size: 15px;
  background: transparent; color: var(--text); font-family: inherit;
}
.hero-search .btn { border-radius: 9px; padding: 12px 24px; }
.hero-popular { margin-top: 16px; font-size: 13px; color: #E8D5A8; }
.hero-popular a { color: #D5E1F7; margin: 0 6px; }
.hero-popular a:hover { color: #fff; }
.hero-deals {
  max-width: 980px; margin: 48px auto 0; padding: 0 20px;
  min-height: 84px; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed rgba(255, 255, 255, .18); border-radius: 14px;
  background: rgba(255, 255, 255, .03);
}
.hero-deals-hint { font-size: 13px; color: #9FB0CF; letter-spacing: .3px; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 14px; text-align: center; cursor: pointer; transition: all .15s;
  display: block; color: var(--text);
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.cat-ico {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
}
.cat-card .name { font-weight: 600; font-size: 14px; }
.cat-card .count { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 13px;
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C7D2E8; }
.product-card .thumb { position: relative; aspect-ratio: 4 / 3; background: #EAF0FB; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: #3A2A00; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .2px;
}
.badge.hot { background: var(--accent); }
.badge.new { background: var(--primary); color: #fff; left: auto; right: 10px; }
.badge.verified {
  position: static; display: inline-flex; align-items: center; gap: 3px;
  background: var(--success-050); color: #126A33; border: 1px solid #B9E5C9;
}
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(120, 84, 20, .2); transition: all .15s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.on { color: var(--danger); }
.product-card .body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .title { font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 60px; overflow-wrap: anywhere; }
.product-card .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-row { display: flex; align-items: baseline; gap: 7px; }
.price { color: var(--danger); font-weight: 800; font-size: 18px; }
.price .cur { font-size: 12px; font-weight: 700; }
.price .range-sep { color: var(--muted); font-weight: 600; }
.moq-tag { font-size: 12px; color: var(--muted); }
.chip { font-size: 11px; padding: 2px 7px; border-radius: 5px; background: #EEF2FA; color: var(--text-2); font-weight: 600; }
.chip.cert { background: var(--primary-050); color: var(--primary); }
.product-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
  border-top: 1px solid #EFF2F8; padding: 10px 14px; background: #FBFCFE;
}
/* 长语言（俄/日/德）下供应商名 + 询问按钮不再互相顶出卡片：
 * 名字可缩并可省略，按钮放不下就换到下一行右对齐。 */
.product-card .foot .seller-mini { flex: 1 1 120px; min-width: 0; overflow: hidden; }
.product-card .foot .seller-mini .sm-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .foot .btn { flex: 0 1 auto; margin-left: auto; max-width: 100%; min-width: 0; }
.btn-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.seller-mini { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
/* 国家码标记（替代国旗 emoji：Windows 无旗帜字形，会显示成方框字母） */
.flag {
  font-size: 10.5px; line-height: 1; font-weight: 800; letter-spacing: .5px;
  color: var(--text-2); background: #EEF2FA; border-radius: 4px; padding: 1px 4px;
  vertical-align: 1px;
}
.stars { color: #B45309; font-size: 12px; letter-spacing: 1px; }
.rating-num { color: var(--muted); font-size: 12px; }

/* ---------- Products page layout ---------- */
.page { padding: 26px 0 46px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 24px; margin: 0 0 4px; font-weight: 800; }
.page-head .sub { color: var(--muted); font-size: 13.5px; }
.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.filter-panel {
  position: sticky; top: 78px; padding: 18px; border-radius: 12px;
}
.filter-panel h3 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.filter-group { padding: 12px 0; border-top: 1px solid #EEF2F8; }
.filter-group h4 { margin: 0 0 9px; font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: none; letter-spacing: .2px; }
.filter-actions { display: flex; gap: 8px; margin-top: 14px; }
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { font-size: 14px; color: var(--text-2); }
.results-count b { color: var(--text); font-size: 16px; }
.sort-select { width: auto; min-width: 170px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 5px; background: var(--primary-050);
  color: var(--primary); border: 1px solid #C7D8FB; border-radius: 16px;
  font-size: 12px; padding: 3px 9px; cursor: pointer; font-weight: 600;
}
.active-filter:hover { background: #E2EBFE; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ico { font-size: 40px; margin-bottom: 10px; }
.empty-state h3 { color: var(--text); margin: 0 0 6px; }

/* ---------- Detail page ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
/* 商品图跟随滚动：右栏（标题/规格/特性/供应商）很长时，左栏图片原来只占顶部一小块，
 * 下面留一大片空白，观感差。sticky 之后图片一路跟着看，空白问题自然消失。 */
.detail-layout .gallery { position: sticky; top: 88px; align-self: start; }
.gallery .main-img {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  /* 改成 4:3 与商品卡、与上传时的裁剪框完全一致：以前是 1:1，用户按 4:3 裁好的照片
   * 到详情页又被左右裁掉一块，看起来"和裁剪时不一样"（用户 2026-10-07 反馈）。
   * 配 object-fit: contain，保证所见即所得（非 4:3 的老图会留白而不是被裁）。 */
  aspect-ratio: 4 / 3; background: #F4F1EA;
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumbs img {
  width: 86px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; opacity: .75; transition: all .12s;
}
.gallery-thumbs img.on, .gallery-thumbs img:hover { border-color: var(--primary); opacity: 1; }
.detail-main { padding: 22px; }
.detail-main h1 { font-size: 21px; margin: 0 0 10px; line-height: 1.35; font-weight: 700; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; padding: 14px 0; border-top: 1px solid #EEF2F8; }
.detail-price-row .price { font-size: 24px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid #EEF2F8; }
.spec-list li {
  display: flex; justify-content: space-between; padding: 9px 2px; font-size: 13.5px;
  border-bottom: 1px solid #F0F3F9;
}
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 600; text-align: right; }
.seller-card { display: flex; gap: 12px; align-items: center; padding: 13px 14px; background: #FBFCFE; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 18px; }
.seller-card .info { flex: 1; min-width: 0; }
.seller-card .name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.seller-card .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-sections { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.detail-sections > .card { min-width: 0; }
.detail-block { padding: 22px; }
.detail-block h2 { font-size: 16px; margin: 0 0 12px; font-weight: 700; }
.detail-block p { color: var(--text-2); font-size: 14px; margin: 0 0 14px; line-height: 1.7; overflow-wrap: anywhere; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 9px; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.feature-list .tick { color: #126A33; flex: none; font-weight: 800; }
.src-text { margin-top: 14px; border: 1px dashed var(--border-2); border-radius: 9px; padding: 10px 13px; background: #FBFCFE; }
.src-text summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.src-text-body { margin-top: 9px; border-top: 1px solid var(--border); padding-top: 10px; }
.src-text-body h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--text); }
.src-text-body p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0 0 8px; overflow-wrap: anywhere; }
.src-text-body .feature-list { gap: 6px; }
.src-text-body .feature-list li { font-size: 12.5px; color: var(--muted); }

/* ---------- 防伪验证 ---------- */
.fake-card-body { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fake-card-info { min-width: 0; flex: 1 1 180px; }
.fake-qr { width: 96px; height: 96px; background: #fff; border: 1px solid var(--border); padding: 6px; border-radius: 8px; flex: none; }
.fake-qr svg { width: 100%; height: 100%; display: block; }
.fake-card-info { flex: 1; min-width: 0; }
.fake-status { margin-bottom: 6px; }
.fake-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--success-050); color: #126A33; font-size: 12px; font-weight: 700;
  border: 1px solid #BFE8CC; border-radius: 14px; padding: 3px 10px;
}
.fake-code-row { margin: 8px 0; font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fake-code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-weight: 700; letter-spacing: .5px; color: var(--primary); font-size: 14.5px; }
.fake-ico {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; margin: 0 auto 10px;
}
.fake-ico--ok { background: var(--success-050); color: #126A33; }
.fake-ico--bad { background: var(--danger-050); color: var(--danger); }
.fake-genuine { text-align: center; font-size: 16px; font-weight: 700; color: #126A33; margin: 0 0 12px; }
.fake-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-bottom: 1px dashed var(--border); font-size: 13px; align-items: baseline;
}
.fake-row span { color: var(--muted); flex: none; }
.fake-row b { text-align: right; overflow-wrap: anywhere; }
.fake-result .fake-qr { margin: 14px auto 4px; }
.fake-scan-label { text-align: center; margin: 0 0 10px; }
.fake-hint { margin: 8px 0 0; }
.fake-demo-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.fake-chip { cursor: pointer; }
.fake-chip:hover { border-color: var(--primary); color: var(--primary); }
.seller-block { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; min-width: 0; }
.seller-block .stats { display: flex; gap: 22px; margin-left: auto; text-align: center; flex-wrap: wrap; }
.seller-block .stats .n { font-size: 18px; font-weight: 800; color: var(--text); }
.seller-block .stats .l { font-size: 12px; color: var(--muted); }

/* ---------- Steps / trust ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 24px; position: relative; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 15px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 16px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item { display: flex; gap: 13px; padding: 20px; }
.trust-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-050); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; font-size: 20px; }
.trust-item h3 { margin: 0 0 5px; font-size: 15px; }
.trust-item p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Seller CTA ---------- */
.cta-band {
  border-radius: 16px; padding: 34px 38px; color: #fff; display: flex;
  align-items: center; gap: 26px; flex-wrap: wrap; justify-content: space-between;
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(255, 205, 110, .42), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-700));
}
.cta-band h2 { margin: 0 0 6px; font-size: 22px; }
.cta-band p { margin: 0; color: #F3E2BC; font-size: 14px; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 215px 1fr; gap: 22px; align-items: start; }
.dash-side { position: sticky; top: 78px; padding: 14px; }
.dash-side .side-user { padding: 8px 10px 14px; border-bottom: 1px solid #EEF2F8; margin-bottom: 10px; }
.dash-side .side-user .name { font-weight: 700; font-size: 14px; }
.dash-side .side-user .sub { font-size: 12px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  border-left: 3px solid transparent;
  color: var(--text-2); font-size: 14px; font-weight: 500;
}
.side-nav a:hover { background: var(--primary-050); color: var(--primary); }
.side-nav a.active { background: linear-gradient(90deg, var(--primary-050), #fff); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.side-nav .badge-dot {
  margin-left: auto; background: var(--accent); color: #3A2A00; border-radius: 12px;
  font-size: 11px; font-weight: 700; padding: 1px 7px;
}
.side-nav a.active .badge-dot { background: var(--primary); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.stat-card { padding: 18px; display: flex; align-items: center; gap: 14px; transition: transform .15s, box-shadow .15s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dash-layout > *, .stat-grid > *, .stat-grid--two > *, .products-layout > *, .detail-layout > *, .form-grid > * { min-width: 0; }
.stat-card, .side-user .sub, .panel-head h2 { overflow-wrap: anywhere; }
.stat-ico { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.stat-card .n { font-size: 24px; font-weight: 800; line-height: 1.15; }
.stat-card .l { font-size: 12.5px; color: var(--muted); }
.ico-blue { background: var(--primary-050); color: var(--primary); }
.ico-amber { background: var(--accent-050); color: #B45309; }
.ico-green { background: var(--success-050); color: #126A33; }
.ico-purple { background: #F3EEFF; color: #6D28D9; }
.panel { padding: 20px; }

/* 管理后台页头与摘要 */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: 24px; }
.admin-head .sub { margin: 5px 0 0; color: var(--muted); }
.admin-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-summary-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: var(--text-2); box-shadow: var(--shadow-sm); }
.admin-summary-chip b { font-size: 15px; color: var(--text); }
.admin-summary-chip .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.admin-summary-chip .dot.pend { background: var(--accent); }
.admin-summary-chip .dot.new { background: var(--danger); }
.bar-track { background: #F3EEE0; }
.bar-fill { background: linear-gradient(90deg, #E8A33D, #C8860B); }
.bar-row:hover .bar-fill { filter: brightness(1.06); }
.table tbody tr:hover { background: var(--primary-050); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head { gap: 8px; flex-wrap: wrap; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.logistics-table { min-width: 640px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid #F0F3F9; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .prod-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.table .prod-cell img { width: 46px; height: 38px; object-fit: cover; border-radius: 7px; }
.table .prod-cell .t { font-weight: 600; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 12px; }
.status-pill.live { background: var(--success-050); color: #126A33; }
.status-pill.off { background: #F1F3F8; color: var(--muted); }
.status-pill.new { background: var(--accent-050); color: #B45309; }
.status-pill.done { background: var(--success-050); color: #126A33; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

.inquiry-item { padding: 16px; border: 1px solid var(--border); border-radius: 11px; margin-bottom: 12px; background: #fff; }
.inquiry-item .top { display: flex; align-items: flex-start; gap: 12px; }
.inquiry-item .who { flex: 1; min-width: 0; }
.inquiry-item .who .nm { font-weight: 700; font-size: 14px; }
.inquiry-item .who .ct { font-size: 12.5px; color: var(--muted); }
.inquiry-item .msg { margin: 10px 0 0; font-size: 13.5px; color: var(--text-2); background: #F7F9FD; border-radius: 8px; padding: 10px 12px; line-height: 1.6; }
.inquiry-item .prod-ref { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.inquiry-item .prod-ref img { width: 40px; height: 32px; object-fit: cover; border-radius: 6px; }
.inquiry-item .foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.reply-box { margin-top: 12px; border-top: 1px dashed var(--border-2); padding-top: 12px; }
.reply-box .reply-msg { background: var(--success-050); border: 1px solid #B9E5C9; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; color: #14532D; line-height: 1.6; }

/* ---------- Publish form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.palette { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch {
  width: 38px; height: 38px; border-radius: 9px; cursor: pointer; border: 3px solid transparent;
  transition: all .12s;
}
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset; }
.publish-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.publish-preview img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Login ---------- */
.login-page { padding: 46px 20px 64px; }
.login-card {
  position: relative; max-width: 880px; margin: 0 auto; padding: 40px 34px 30px;
  background: linear-gradient(160deg, #FFFDF8, #FDF6E6 75%, #FBF2E0);
  border: 1px solid var(--border-2); border-radius: 22px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(200, 134, 11, .22); border-radius: 14px; pointer-events: none; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.login-mascot { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 16px rgba(138, 90, 11, .28); }
.login-brand-txt { text-align: left; }
.login-brand-txt b { font-size: 22px; letter-spacing: .5px; color: var(--navy-900); display: block; }
.login-brand-txt b span { color: var(--primary); }
.login-brand-txt > span { font-size: 12px; letter-spacing: 2px; color: var(--muted); }
.login-card h1 { font-size: 24px; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.role-card {
  position: relative; border: 1px solid var(--border-2); border-radius: 18px; padding: 24px 16px 26px;
  background: #fff; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; text-align: center;
}
.role-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.role-ico { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.role-card h3 { margin: 0 0 6px; font-size: 16px; }
.role-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.role-arrow { position: absolute; right: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; transition: all .18s; background: #fff; }
.role-card:hover .role-arrow { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateX(2px); }
.guest-btn { margin-top: 14px; width: 100%; }
.btn-outline { background: #fff; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-050); }
.login-trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 12.5px; color: var(--text-2); }
.login-trust span { display: inline-flex; align-items: center; gap: 6px; }
.login-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); background: #F0F4FC; border: 1px dashed var(--border-2); border-radius: 9px; padding: 10px 14px; text-align: left; }

/* ---------- 平台管理 ---------- */
.stat-grid--two { grid-template-columns: 1fr 1fr; }
.sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sub-tab {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border-2);
  color: var(--text-2); font-size: 13px; font-weight: 600; background: #fff;
}
.sub-tab:hover { border-color: var(--primary); color: var(--primary); }
.sub-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.review-card {
  display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fff;
}
.review-card .thumb { width: 150px; height: 112px; object-fit: cover; border-radius: 9px; flex: none; }
.review-card .info { flex: 1; min-width: 0; }
.review-card .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.review-card .head b { font-size: 14.5px; }
.review-card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.review-card .actions { display: flex; flex-direction: column; gap: 8px; flex: none; }

.risk-box {
  margin-top: 9px; background: var(--danger-050); border: 1px solid #F5C6C6;
  border-radius: 9px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.risk-box .risk-title { font-size: 12px; font-weight: 700; color: #991B1B; }
.risk-chip { background: #fff; border: 1px solid #F3B8B8; color: #B91C1C; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.risk-box.ok { background: var(--success-050); border-color: #B9E5C9; color: #126A33; font-size: 12.5px; font-weight: 600; }
.reject-reason { margin-top: 8px; background: #FFF3F3; border: 1px dashed #F3B8B8; color: #B91C1C; font-size: 12.5px; border-radius: 8px; padding: 7px 10px; }

.verify-card {
  display: flex; gap: 14px; align-items: center; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #fff;
}
.verify-card .info { flex: 1; min-width: 0; }
.verify-card .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.verify-card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.verify-card .actions { display: flex; gap: 8px; flex: none; }

.section-divider { font-size: 12px; font-weight: 700; color: var(--muted); margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--border); }

.chart-bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { width: 110px; flex: none; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; background: #EDF1F9; border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary-600), var(--primary)); }
.bar-val { width: 30px; flex: none; text-align: right; font-size: 12.5px; font-weight: 700; }

.status-pill.pend { background: var(--accent-050); color: #B45309; }
.status-pill.rej { background: var(--danger-050); color: #B91C1C; }

.footer-link { background: none; border: none; color: #A9B7D4; font-size: 13.5px; cursor: pointer; padding: 0; font-family: inherit; }
.footer-link:hover { color: #fff; }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(8, 18, 38, .55); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 20px;
  overflow-y: auto; animation: fadeIn .18s ease;
}
.modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 540px; animation: popIn .2s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-x { border: none; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 7px; line-height: 1; }
.modal-x svg { width: 18px; height: 18px; display: block; }
.modal-x:hover { background: #F1F3F8; color: var(--text); }
.modal-body { padding: 16px 22px 22px; }
.modal-success { text-align: center; padding: 26px 22px 28px; }
.success-ico {
  width: 62px; height: 62px; border-radius: 50%; background: var(--success-050);
  color: #126A33; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.modal-success h3 { margin: 0 0 8px; font-size: 18px; }
.modal-success p { margin: 0 auto 20px; color: var(--muted); font-size: 13.5px; max-width: 380px; line-height: 1.65; }
.inquiry-summary { background: #F7F9FD; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.inquiry-summary img { width: 58px; height: 46px; object-fit: cover; border-radius: 7px; flex: none; }

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 74px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 9px; }
.toast {
  background: var(--navy-900); color: #fff; border-radius: 10px; padding: 11px 16px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px;
  animation: slideIn .22s ease; max-width: 340px;
}
.toast .dot { color: #4ADE80; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #A9B7D4; margin-top: 50px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 34px 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-brand p { margin: 8px 0 0; font-size: 12.5px; max-width: 340px; }
.footer-links { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.footer-links a { color: #A9B7D4; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-rights { width: 100%; margin: 18px 0 0; font-size: 12px; color: #93A3BF; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }

/* ---------- 贸易资讯 ---------- */
.news-filter { margin-bottom: 18px; }
.news-filter-row { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; flex-wrap: wrap; }
.news-filter-row + .news-filter-row { border-top: 1px solid #EEF2F8; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--text-2); padding-top: 8px; min-width: 72px; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; transition: box-shadow .15s, border-color .15s;
}
.news-card:hover { border-color: #C7D2E8; box-shadow: var(--shadow); }
.news-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.news-date { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.news-card h3 { margin: 0 0 7px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.news-card p { overflow-wrap: anywhere; }
.news-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.news-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #EFF2F8; flex-wrap: wrap; }
.news-source { font-size: 12.5px; color: var(--muted); }
.news-source b { color: var(--text-2); font-weight: 600; }
.chip-hot { background: var(--accent-050); color: #B45309; border: 1px solid #F3D9A4; }

.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brief-card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: 12px; padding: 16px 18px;
  color: var(--text); transition: box-shadow .15s, transform .15s;
}
.brief-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.brief-tag { font-size: 11px; font-weight: 700; color: #B45309; letter-spacing: 1px; margin-bottom: 7px; }
.brief-card h3 { margin: 0 0 6px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.brief-card p { overflow-wrap: anywhere; }
.brief-card p { margin: 0 0 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.source-card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 15px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.source-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); color: var(--text); }
.source-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.source-card svg { color: var(--muted); }
.source-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

.fx-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--primary-050); border: 1px solid #D6E3FC; border-radius: 9px;
  padding: 8px 13px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px;
}
.fx-strip .fx-label { font-weight: 700; color: var(--text); min-width: 0; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.fx-strip .fx-note { color: var(--muted); }
.news-disclaimer {
  margin-top: 16px; font-size: 12px; color: var(--muted); background: #F0F4FC;
  border: 1px dashed var(--border-2); border-radius: 9px; padding: 10px 14px; line-height: 1.6;
}
.news-sync { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #F0F4FC; border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px; margin-bottom: 16px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.news-integration { margin-top: 14px; font-size: 12px; color: var(--text-2); background: #F7F9FD; border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px; line-height: 1.6; display: flex; gap: 8px; align-items: flex-start; }
.news-integration svg { flex: none; color: var(--primary); margin-top: 2px; }

/* ---------- 贸易细节（术语/报价/合规） ---------- */
.term-legend {
  border: 1px solid var(--border); border-radius: 9px; padding: 10px 13px; margin: 0 0 12px;
  background: #FBFCFE; font-size: 13px;
}
.term-legend summary { cursor: pointer; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.term-legend summary svg { color: var(--primary); }
.term-row { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid #EEF2F8; font-size: 12.5px; color: var(--text-2); }
.term-row b { color: var(--text); width: 42px; flex: none; }
.tip-box {
  display: flex; align-items: flex-start; gap: 9px; background: var(--accent-050);
  border: 1px solid #F3D9A4; border-radius: 9px; padding: 10px 13px; margin-bottom: 12px;
  font-size: 12.5px; color: #7C4A03;
}
.tip-box svg { flex: none; color: #B45309; margin-top: 2px; }
.tip-box p { margin: 2px 0 0; line-height: 1.6; }

.quote-title { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.quote-title svg { color: var(--primary); }
.quote-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px;
  background: #F7F9FD; border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px;
  font-size: 12.5px; color: var(--text-2);
}
.quote-grid .full { grid-column: 1 / -1; }
.quote-grid b { color: var(--text); }
.quote-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- 实时翻译（第三方服务 · 仅供参考） ---------- */
.trans-preview { background: #F0F7FF; border: 1px solid #C7DBF7; border-radius: 9px; padding: 9px 12px; margin-bottom: 14px; }
.trans-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.trans-preview p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.trans-preview p, .trans-msg p { overflow-wrap: anywhere; }
.trans-note { margin-top: 5px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.msg-wrap { margin-top: 8px; }
.trans-msg { background: #F0F7FF; border: 1px solid #C7DBF7; border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.trans-pill { display: block; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.trans-msg p { margin: 0; }
.trans-toggle { background: #F0F7FF; border: 1px solid #C7DBF7; color: var(--primary); font-size: 11px; font-weight: 700; border-radius: 14px; padding: 2px 9px; cursor: pointer; margin-top: 6px; font-family: inherit; }
.trans-toggle:hover { background: #E2EBFE; }

/* ---------- 单证格式参考 ---------- */
.doc-ref { border: 1px dashed var(--border-2); border-radius: 9px; padding: 10px 13px; margin: 0 0 12px; background: #FBFCFE; }
.doc-ref summary { cursor: pointer; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 7px; font-size: 13px; }
.doc-ref summary svg { color: var(--primary); }
.doc-fields { margin-top: 8px; }
.doc-fields b { font-size: 12px; color: var(--primary); }
.doc-fields ul { margin: 5px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); }

/* ---------- 目标市场合规 ---------- */
.compliance-market { border: 1px solid var(--border); border-radius: 9px; padding: 10px 14px; margin-bottom: 10px; background: #FBFCFE; }
.compliance-market b { font-size: 13px; display: block; margin-bottom: 5px; }
.compliance-market ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

/* ---------- 打印单证 ---------- */
.doc { background: #fff; color: #17233D; font-size: 13px; line-height: 1.6; max-width: 720px; margin: 0 auto; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #17233D; padding-bottom: 12px; margin-bottom: 14px; gap: 16px; flex-wrap: wrap; }
.doc-brand b { font-size: 16px; }
.doc-web { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.doc-title { text-align: right; }
.doc-title h2 { margin: 0; font-size: 20px; letter-spacing: 1px; }
.doc-title div { color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.doc-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 14px; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.doc-party-label { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-bottom: 3px; }
.doc-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.doc-table th, .doc-table td { border: 1px solid #D5DCEA; padding: 8px 10px; text-align: left; font-size: 12.5px; }
.doc-table th { background: #F1F4FA; }
.doc-table th:nth-child(5), .doc-table th:nth-child(6), .doc-table td:nth-child(5), .doc-table td:nth-child(6) { text-align: right; }
.doc-total-label { text-align: right !important; font-weight: 700; background: #F7F9FD; }
.doc-terms { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; margin-bottom: 18px; }
.doc-terms .full { width: 100%; }
.doc-sign { display: flex; justify-content: space-between; margin: 30px 0 12px; font-size: 12.5px; color: var(--muted); }
.doc-sign div { width: 220px; border-top: 1px solid #B9C5DA; padding-top: 8px; text-align: center; }
.doc-disclaimer { font-size: 11px; color: var(--muted); border-top: 1px dashed #D5DCEA; padding-top: 10px; }
.doc-modal .modal { max-width: 780px; }
.doc-modal .modal-body { max-height: 68vh; overflow-y: auto; }
.print-only { display: none; }

@media print {
  body * { visibility: hidden !important; }
  #printDoc, #printDoc * { visibility: visible !important; }
  #printDoc { display: block !important; position: absolute; left: 0; top: 0; width: 100%; background: #fff; }
}

/* 视觉精简：重点层级 */
.hero { padding: 56px 0 64px; }
.product-card .foot { padding: 9px 14px; }
.section { margin-bottom: 30px; }

@media (max-width: 820px) {
  .brief-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .news-filter-row { flex-direction: column; gap: 6px; }
  .filter-label { padding-top: 0; }
  .quote-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .products-layout { grid-template-columns: 220px 1fr; }
  .dash-layout { grid-template-columns: 180px 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .site-header { position: static; }
  .header-inner { height: auto; padding: 10px 16px 0; flex-wrap: wrap; align-items: center; row-gap: 8px; }
  .brand { width: 100%; }
  .header-actions { width: 100%; justify-content: flex-end; margin-left: 0; gap: 6px; }
  .main-nav { order: 3; width: 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .header-actions .user-chip span:not(.avatar), .header-actions .role-tag { display: none; }
  .header-actions .lang-btn { padding: 6px 8px; font-size: 12px; }
  .hero h1 { font-size: 28px; }
  .products-layout, .dash-layout, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-panel, .dash-side { position: static; }
  .steps, .trust-grid { grid-template-columns: 1fr; }
  .detail-layout .gallery { order: -1; }
  .stat-grid--two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 28px 18px 22px; }
  .login-page { padding: 24px 12px 40px; }
  .hero { padding: 44px 0 54px; }
  .hero-search { flex-direction: column; gap: 8px; background: transparent; box-shadow: none; padding: 0; }
  .hero-search input { border-radius: 10px; background: #fff; }
  .hero-search .btn { width: 100%; }
  .role-cards, .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .review-card { flex-direction: column; }
  .review-card .thumb { width: 100%; height: 160px; }
  .review-card .actions { flex-direction: row; width: 100%; }
  .verify-card { flex-wrap: wrap; }
}

/* Utility */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-20 { margin-top: 20px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.text-danger { color: var(--danger); }
.hidden { display: none !important; }

/* ---------- 右下角帮助吉祥物 ---------- */
.help-widget { position: fixed; right: 18px; bottom: 18px; z-index: 1200; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.help-btn { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border-2); padding: 0; cursor: pointer; background: var(--bg); box-shadow: 0 4px 14px rgba(120, 84, 20, 0.12); position: relative; transition: transform .18s ease; }
.help-btn:hover { transform: translateY(-2px) scale(1.04); }
.help-btn:focus-visible { outline: 3px solid rgba(200, 134, 11, 0.45); outline-offset: 2px; }
.help-btn img { width: 60px; height: 60px; border-radius: 50%; display: block; margin: 1px auto; animation: mascotIdle 3.2s ease-in-out infinite; }
@keyframes mascotIdle { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.015); } }
.help-btn:hover img, .help-btn:focus-visible img { animation-play-state: paused; }
.help-badge { position: absolute; top: -3px; right: -3px; width: 22px; height: 22px; border-radius: 50%; background: #B03A2B; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.help-panel { width: 300px; max-height: min(480px, 65vh); overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(15, 30, 80, 0.18); border: 1px solid #E4EAF6; animation: helpIn .18s ease; }
@keyframes helpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.help-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid #EDF1F8; position: sticky; top: 0; z-index: 2; background: #fff; border-radius: 16px 16px 0 0; }
.help-head-img { width: 34px; height: 34px; border-radius: 50%; }
.help-title { font-weight: 700; flex: 1; font-size: 14px; color: #16233F; }
.help-close { position: static !important; }
.help-banner { width: 100%; height: auto; display: block; aspect-ratio: 5 / 2; object-fit: cover; background: #F8E5C8; }
.help-body { padding: 10px 12px 14px; }
.help-item { padding: 9px 0; border-bottom: 1px dashed #E7EDF7; }
.help-item:last-child { border-bottom: none; }
.help-item b { font-size: 13px; color: var(--accent); display: block; margin-bottom: 2px; }
.help-item p { margin: 0; font-size: 12.5px; color: #4A5A78; line-height: 1.55; }
@media (max-width: 560px) { .help-widget { right: 12px; bottom: 12px; } .help-panel { width: min(300px, calc(100vw - 40px)); } }
@media print { .help-widget { display: none !important; } }

/* ---------- 打赏提示（交易达成后可选） ---------- */
.tip-callout { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #FFF7EC, #FFF1F4); border: 1px solid #FFE3C7; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.tip-callout img { border-radius: 12px; object-fit: cover; flex: none; }
.tip-callout-txt { flex: 1; min-width: 0; }
.tip-callout-txt b { font-size: 13.5px; color: #8A4B08; display: block; }
.tip-callout-txt p { margin: 2px 0 0; font-size: 12.5px; color: #7A5A3A; line-height: 1.5; }
.tip-callout-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.tip-skip { margin-top: 8px; }
@media (max-width: 640px) { .tip-callout { flex-direction: column; align-items: flex-start; } .tip-callout-actions { width: 100%; } .tip-callout-actions .btn { flex: 1; } }

/* ---------- 货物实时跟进 ---------- */
.shipment-box { border: 1px solid #E3EAF6; border-radius: 14px; padding: 12px 14px; margin-top: 12px; background: #FBFDFF; }
.ship-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ship-head b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); }
.ship-meta { font-size: 12.5px; margin: 2px 0 6px; }
.track-wrap { margin: 10px 0 8px; }
.track-bar { position: relative; height: 10px; background: #E7EDF7; border-radius: 99px; }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #2E7CF6, #6A5CF6); transition: width .6s ease; }
.track-pkg { position: absolute; top: 50%; transform: translateY(-50%); font-size: 20px; line-height: 1; animation: pkgBob 1.1s ease-in-out infinite; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
@keyframes pkgBob { 0%, 100% { transform: translateY(-50%) translateY(0); } 50% { transform: translateY(-50%) translateY(-3px); } }
.track-stages { display: flex; justify-content: space-between; margin-top: 7px; }
.track-dot { width: 9px; height: 9px; border-radius: 50%; background: #D5DFEE; border: 2px solid #fff; box-shadow: 0 0 0 1px #D5DFEE; transition: all .3s; }
.track-dot.on { background: #2E7CF6; box-shadow: 0 0 0 1px #2E7CF6, 0 0 8px rgba(46,124,246,.45); }
.ship-loc { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin: 8px 0 4px; }
.ship-loc span { color: #6B7A99; }
.ship-loc b { color: #16233F; }
.ship-events { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px dashed #E4EAF6; }
.ship-events li { display: flex; gap: 10px; padding: 7px 0 0; font-size: 13px; }
.ev-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7CF6; margin-top: 5px; flex: none; box-shadow: 0 0 0 3px rgba(46,124,246,.15); }
.ship-events li:first-child .ev-dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,124,246,.4); } 70% { box-shadow: 0 0 0 7px rgba(46,124,246,0); } 100% { box-shadow: 0 0 0 0 rgba(46,124,246,0); } }

/* ---------- 仓鼠镖局：运输场景动画 ---------- */
.escort-head { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.escort-head img { border-radius: 50%; object-fit: cover; flex: none; background: linear-gradient(135deg, #FFF7EC, #FFE7B8); padding: 2px; box-shadow: 0 2px 8px rgba(120,84,20,.25); }
.escort-txt { flex: 1; min-width: 0; }
.escort-txt b { display: block; font-size: 13.5px; color: #8A4B08; }
.transport-scene-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin: 4px 0 8px; }
.transport-scene { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #F8E5C8; }
.escort-pkg { position: absolute; bottom: 10px; line-height: 0; animation: pkgBob 1.1s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); transition: left .6s ease; }
.escort-pkg svg { display: block; }
.transport-scene-label { position: absolute; top: 8px; left: 8px; background: rgba(74,46,8,.72); color: #FFE9BE; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; backdrop-filter: blur(4px); }
.phase-bar { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin: 8px 0 4px; }
.phase { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); background: #F5EFDD; border: 1px solid var(--border); border-radius: 99px; padding: 4px 0; transition: all .3s; }
.phase.on { background: linear-gradient(135deg, var(--primary-600), var(--primary)); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(200,134,11,.35); }

/* ---------- 第三方存证 ---------- */
.evidence-box { border: 1px solid #E4EAF6; border-radius: 14px; padding: 12px 14px; margin-top: 12px; background: #FDFEFF; }
.ev-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ev-head b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #0F6B4F; }
.ev-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; margin-bottom: 8px; }
.ev-badge.ok { background: #E7F8F0; color: #0E7A4F; }
.ev-badge.bad { background: #FDECEA; color: #C1342A; }
.ev-list { list-style: none; margin: 0 0 8px; padding: 0; }
.ev-list li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #EDF1F8; font-size: 13px; }
.ev-list li:last-child { border-bottom: none; }
.ev-list b { flex: 1; min-width: 0; }
.ev-hash { font-size: 11px; color: #7384A3; background: #F2F6FC; border-radius: 6px; padding: 2px 6px; font-family: ui-monospace, Consolas, monospace; }
.ev-empty { margin: 0 0 8px; }
.ev-actions { flex-wrap: wrap; }

/* ---------- 贸易流程参考 ---------- */
.guide-head { margin: 18px 0 14px; }
.guide-head h1 { font-size: 26px; margin: 0 0 6px; }
.guide-head p { color: #55627E; max-width: 760px; line-height: 1.6; }
.guide-section { margin-bottom: 16px; }
.guide-flow { list-style: none; counter-reset: step; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.guide-flow li { display: flex; align-items: center; gap: 9px; background: #F5F8FE; border: 1px solid #E6EDF8; border-radius: 10px; padding: 9px 11px; font-size: 13px; }
.step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #3A2A00; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.guide-payment { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed #E8EEF7; font-size: 13.5px; }
.guide-payment:last-child { border-bottom: none; }
.guide-payment b { color: var(--accent); font-size: 15px; width: 40px; flex: none; }
.guide-list { margin: 8px 0 0; padding-left: 20px; }
.guide-list li { margin: 6px 0; line-height: 1.6; font-size: 13.5px; }
.guide-table td:first-child { width: 76px; }
.guide-risk { border-color: #F6D6D0; background: #FFFCFB; }
.risk-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.risk-list li { display: flex; gap: 9px; align-items: flex-start; background: #FDECEA; border: 1px solid #F6D2CB; border-radius: 10px; padding: 9px 11px; font-size: 13px; color: #7E2A22; line-height: 1.5; }
.risk-ico { flex: none; }
.guide-disclaimer { margin-top: 12px; text-align: center; }

/* 通用两列 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- 打赏空碗 / 金币状态 ---------- */
.tip-img-wrap { position: relative; text-align: center; margin-bottom: 8px; }
.tip-img-wrap img { border-radius: 16px; background: var(--bg); object-fit: cover; }
.tip-coins { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 22px; letter-spacing: 2px; animation: coinPop .6s ease-out; pointer-events: none; }
@keyframes coinPop { 0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.6); } 70% { transform: translateX(-50%) translateY(-2px) scale(1.08); } 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
.tip-list-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tip-list-head img { border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px rgba(180, 130, 20, .25); }
.tip-list-head span { font-weight: 600; font-size: 13px; color: #8A5A00; }

/* ---------- 存证报告 ---------- */
.ev-report-verdict { margin: 12px 0; padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; text-align: center; }
.ev-report-verdict.ok { background: #E7F8F0; color: #0E7A4F; border: 1px solid #BFEAD7; }
.ev-report-verdict.bad { background: #FDECEA; color: #C1342A; border: 1px solid #F6C9C3; }
.doc-badge { font-size: 30px; }

/* ---------- 按钮忙碌态 ---------- */
.btn.busy { opacity: .65; pointer-events: none; position: relative; }
.btn.busy::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); background-size: 200% 100%; animation: busyShine 1s linear infinite; }
@keyframes busyShine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 试验阶段横幅 ---------- */
.trial-banner[hidden] { display: none !important; }
.trial-banner { display: flex; align-items: center; gap: 6px; justify-content: center; flex-wrap: wrap;
  background: linear-gradient(90deg, #FFF3D6, #FFE3AE); color: #6B4A16; font-size: 12.5px;
  padding: 7px 40px 7px 12px; border-bottom: 1px solid #F0D9A8; position: relative; z-index: 900; }
.trial-banner a { color: #B45309; font-weight: 700; text-decoration: underline; }
.trial-dismiss { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: none; background: none; color: #8A5A2B; font-size: 14px; cursor: pointer; padding: 4px; }

/* ---------- 运输保险（订单内 + 保险页） ---------- */
.insurance-box { border: 1px dashed #E7C98A; background: #FFFBF0; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.insurance-box.on { border-style: solid; border-color: #A8D5A2; background: #F3FBF0; }
.ins-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ins-head b { color: #8A4B08; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.ins-tiers { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.ins-tier.sel { background: linear-gradient(135deg, var(--primary-600), var(--primary)); color: #fff; border-color: var(--primary); }
.ins-providers { display: grid; gap: 12px; }
.ins-provider { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.ins-provider.off { opacity: .62; background: #FAF6EC; }
.ins-provider-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ins-tier-list { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: #5F4A2A; }
.ins-tier-list li { margin: 3px 0; }

/* ---------- 合同草案与平台保管 ---------- */
.contract-doc { margin-top: 12px; }
.contract-pre { background: #FFFDF6; border: 1px solid #EAD9B4; border-radius: 10px; padding: 12px;
  font-family: "Courier New", Consolas, monospace; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; color: #3E2C14; }
.warn-box { background: #FFF4F2; border: 1px solid #F3C1B8; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.warn-box b { color: #B42318; font-size: 13px; display: block; margin-bottom: 4px; }
.warn-box ul { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: #7A2E22; }
.warn-box li { margin: 4px 0; }
.custody-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px dashed #E7DCC3; }
.custody-row:last-child { border-bottom: none; }
.custody-row b { min-width: 140px; color: var(--accent); }

/* ---------- 弹窗增强（焦点陷阱 / 滚动锁定 / 小屏适配） ---------- */
body.modal-open { overflow: hidden; }
.modal { max-height: 88vh; overflow-y: auto; }
@media (max-width: 560px) {
  .modal-mask { padding: 3vh 10px 12px; }
  .doc-modal .modal-body { max-height: 66vh; }
}
@media print { .doc, .doc .doc-table, .doc .ev-seal { page-break-inside: avoid; } }

/* ---------- 打赏快捷金额 ---------- */
.tip-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.tip-chips .chip { border: 1px solid #E2E9F4; background: #F5F8FE; color: #2E4A7A; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; cursor: pointer; transition: all .15s; }
.tip-chips .chip:hover, .tip-chips .chip:focus-visible { background: var(--primary); color: #fff; border-color: var(--primary); outline: none; }

/* ---------- 订单缩略图 ---------- */
.order-head-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.order-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.order-head-main h2 { margin: 0; overflow-wrap: anywhere; }

/* ---------- 存证报告印章 / 二维码 ---------- */
.ev-seal { display: flex; align-items: center; gap: 14px; margin: 12px 0; padding: 12px 14px; border: 1px dashed #CBD8EA; border-radius: 12px; background: #F8FAFD; }
.ev-qr svg { width: 64px; height: 64px; display: block; }
.ev-seal-txt { font-size: 12.5px; color: #4A5A78; }
.ev-seal-txt b { color: #16233F; font-size: 14px; display: block; margin-bottom: 2px; }

/* ---------- 清关参考 / 招商 ---------- */
.customs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.customs-card { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); font-weight: 600; font-size: 13.5px; transition: all .15s; }
.customs-card:hover { border-color: var(--primary); color: var(--primary); }
.customs-card.on { background: var(--primary-050); border-color: var(--primary); color: var(--primary); }
.customs-layout { margin-top: 16px; }
.customs-side h3 { margin: 0 0 8px; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.source-card { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: all .15s; }
.source-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.source-card b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.benefit-card { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.benefit-ico { font-size: 26px; margin-bottom: 8px; }
.benefit-card b { font-size: 15px; display: block; margin-bottom: 4px; }
.benefit-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.recruit-cta { margin-top: 18px; padding: 26px 28px; border-radius: 16px; }
.recruit-cta .btn-accent { background: #fff; color: var(--navy-900); border-color: #fff; }
.recruit-cta .btn-accent:hover { background: var(--primary-050); }

/* ---------- 推广管理 ---------- */
.promo-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 8px; }
.promo-prod { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.promo-prod img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.promo-prod-info { flex: 1; min-width: 0; }
.promo-prod-info b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-req-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.promo-req { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.promo-req b { flex: 1; min-width: 140px; font-size: 13.5px; }
.badge.promo { background: linear-gradient(135deg, #E8A33D, #C8860B); color: #fff; }
.sub-chip { background: var(--primary-050); color: var(--primary); }

/* ---------- 表单错误提示 ---------- */
.field { position: relative; }
.field-error { display: block; color: var(--danger); font-size: 12px; line-height: 1.4; margin-top: 4px; min-height: 0; }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger) !important; background: var(--danger-050); }

/* ---------- 出口资质 ---------- */
.exp-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 13.5px; }
.exp-level b { font-size: 15px; }
.exp-level.ok { background: var(--success-050); color: #126A33; border: 1px solid #B9E5C9; }
.exp-level.mid { background: var(--accent-050); color: #B45309; border: 1px solid #F3D9A4; }
.exp-level.low { background: var(--danger-050); color: #B91C1C; border: 1px solid #F2C9C9; }
.exp-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.exp-item.done { background: #FBFDF9; border-color: #B9E5C9; }
.exp-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.exp-item-head b { flex: 1; min-width: 160px; }
.exp-check { font-size: 15px; color: var(--muted); }
.exp-item.done .exp-check { color: #126A33; }
.exp-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; font-size: 12.5px; color: var(--text-2); }
.exp-item-grid span b { display: block; color: var(--text); font-size: 11.5px; margin-bottom: 2px; }
.exp-item-grid span.full { grid-column: 1 / -1; }
.exp-guide-list { margin-top: 6px; }

/* ---------- 物流指南 ---------- */
.container-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.container-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.container-card b { font-size: 13.5px; }
.port-charge-card { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border-2); border-radius: 12px; background: #FDFBF4; }
.port-charge-card h3 { margin: 0 0 6px; }
.estimate-result { margin-top: 12px; padding: 14px 16px; border: 1px solid #B9E5C9; border-radius: 12px; background: var(--success-050); }
.estimate-result .n { font-size: 22px; font-weight: 700; color: #126A33; }
.screen-result { margin-top: 12px; }
.screen-verdict { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.screen-verdict.ok { background: var(--success-050); color: #126A33; border: 1px solid #B9E5C9; }
.screen-verdict.bad { background: var(--danger-050); color: #B91C1C; border: 1px solid #F2C9C9; }

/* ---------- 合规中心 ---------- */
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.compliance-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.compliance-ico { font-size: 24px; margin-bottom: 6px; }
.compliance-card b { display: block; font-size: 15px; margin-bottom: 8px; }
.compliance-card ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.compliance-screen { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ---------- 售后与纠纷 ---------- */
.as-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.arbitration-box { margin-top: 8px; padding: 10px 12px; border: 1px solid #C7D8F0; border-radius: 10px; background: #F3F7FC; font-size: 13px; color: #1E3A6E; }
.as-order-panel { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--border-2); border-radius: 12px; background: #FDFBF4; }
.as-order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.as-order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.as-order-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }

/* ---------- 单据中心 ---------- */
.doc-center-box { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 12px; background: #FDFBF4; }
.doc-center-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.doc-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.doc-type { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.doc-type b { font-size: 13px; }

/* ---------- 杂项 ---------- */
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.version-line { margin-top: 0 !important; padding-top: 6px !important; border-top: none !important; }

/* ---------- 品类速览（横向滚动，节省纵向空间） ---------- */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cat-strip::-webkit-scrollbar { height: 6px; }
.cat-strip::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.cat-pill { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--primary); }
.cat-pill-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; color: #fff; flex: none; }
.cat-pill-name { white-space: nowrap; }

/* ---------- 产品市场搜索与相关推荐 ---------- */
.products-search { display: flex; gap: 8px; margin-top: 12px; max-width: 640px; }
.products-search input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--border-2); border-radius: 12px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; background: #fff; }
.products-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200, 134, 11, .15); }
.related-section { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--border-2); }
.related-section .section-head p { margin: 2px 0 12px; }
.detail-related { margin-top: 30px; }

/* ---------- 卖家信任主页 ---------- */
.seller-profile-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.sp-logo { width: 72px; height: 72px; border-radius: 18px; background: linear-gradient(135deg, #C8860B, #8A5A0B); color: #fff; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 8px 18px rgba(138, 90, 11, .25); }
.sp-main { flex: 1; min-width: 220px; }
.sp-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-en { font-family: Georgia, serif; color: var(--muted); font-size: 13px; letter-spacing: .5px; margin-top: 3px; }
.sp-meta { color: var(--text-2); font-size: 13px; margin-top: 7px; }
.sp-scope { margin-top: 8px; font-size: 13px; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.sp-stats { display: flex; gap: 22px; margin-left: auto; text-align: center; flex-wrap: wrap; align-self: center; }
.sp-stat b { display: block; font-size: 21px; font-weight: 800; color: var(--text); }
.sp-stat span { font-size: 12px; color: var(--muted); }
.seller-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.trust-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.trust-cell b { font-size: 14px; }
.trust-cell span { font-size: 12.5px; color: var(--muted); }
.cert-block { display: flex; flex-wrap: wrap; gap: 6px; }
.seller-page-link { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--primary); }
@media (max-width: 860px) {
  .seller-trust-grid { grid-template-columns: 1fr; }
  .sp-stats { margin-left: 0; }
}
.pay-order { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); margin-bottom: 12px; }
.pay-provider { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border-2); border-radius: 12px; margin-bottom: 14px; }
.pay-logo { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(160deg, #0070E0, #003087); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pay-provider b { display: block; }

/* ---------- 身份与名片 ---------- */
.identity-box { margin: 2px 0 10px; padding: 10px 12px; border: 1px dashed var(--border-2); border-radius: 10px; background: #FDFBF4; }
.identity-chip { background: var(--primary-050); color: var(--primary); margin-left: 6px; }
.send-card-label { margin-top: 8px; }
.card-preview-box { margin-top: 10px; }
.card-preview-box img { max-width: 340px; max-height: 220px; border: 1px solid var(--border-2); border-radius: 10px; margin-bottom: 8px; }
.card-zoom-btn { display: block; padding: 0; border: none; background: transparent; cursor: zoom-in; }
.card-zoom-img { width: 100%; max-width: 900px; border-radius: 10px; border: 1px solid var(--border-2); display: block; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.tpl-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.tpl-card b { font-size: 13.5px; }
.tpl-card .btn { margin-top: auto; }
.tpl-card.custom { border-style: dashed; background: #FDFBF4; align-items: flex-start; }
.tpl-card.custom .small { line-height: 1.5; }
.tpl-swatch { width: 100%; height: 58px; border-radius: 8px; border: 1px solid rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; }
.tpl-swatch.custom { background: repeating-linear-gradient(45deg, #F6EFE0, #F6EFE0 8px, #EFE5CE 8px, #EFE5CE 16px); color: var(--primary); font-size: 20px; }
.card-customize { margin-top: 14px; padding: 14px; border: 1px dashed var(--border-2); border-radius: 12px; background: #FDFBF4; }
.card-customize h4 { margin: 0 0 12px; font-size: 14px; }
.card-customize input[type="color"] { height: 42px; padding: 3px 6px; cursor: pointer; }
.product-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.product-img-item { position: relative; display: inline-block; }
.product-img-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-2); }
.product-img-item .attach-x { position: absolute; top: -6px; right: -6px; background: #fff; border-radius: 50%; border: 1px solid var(--border-2); width: 20px; height: 20px; }

/* ---------- 附件 ---------- */
.attach-field input[type="file"] { font-size: 13px; color: var(--text-2); }
.attach-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.attach-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.attach-chip a { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.attach-chip a:hover { color: var(--primary); }
.attach-ico { font-size: 15px; flex: none; }
.attach-name { color: var(--text-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px; }
.attach-x:hover { color: var(--danger); }
.attach-img-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 8px; overflow: hidden; }
.attach-img-btn img { width: 46px; height: 46px; object-fit: cover; border: 1px solid var(--border-2); border-radius: 8px; transition: transform .15s; }
.attach-img-btn:hover img { transform: scale(1.06); }
.attach-view img { max-width: 100%; max-height: 68vh; border-radius: 10px; display: block; margin: 0 auto; }
.conv-export { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conv-export .small { margin-right: 4px; }

/* ---------- 名片 3D 查看（旋转 / 翻转 / 背面 / 炫彩流光） ---------- */
.card3d { perspective: 1400px; display: flex; justify-content: center; padding: 8px 0; }
.card3d-inner { position: relative; width: min(560px, 92vw); aspect-ratio: 7 / 4; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .7, .3, 1); cursor: grab; }
.card3d-inner:active { cursor: grabbing; }
.card3d-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); background: #1A1D25; }
.card3d-face.front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card3d-face.back { transform: rotateY(180deg); }
.holo { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: overlay; border-radius: 14px; background: linear-gradient(115deg, transparent 16%, rgba(255,120,180,.30) 30%, rgba(120,220,255,.30) 44%, rgba(255,220,120,.28) 58%, rgba(170,140,255,.26) 70%, transparent 84%); background-size: 230% 230%; animation: holoFlow 5.5s linear infinite; }
@keyframes holoFlow { 0% { background-position: 0% 50%; } 100% { background-position: 230% 50%; } }
.card-back { position: relative; width: 100%; height: 100%; padding: 24px 28px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.cb-frame { position: absolute; inset: 10px; border: 1px solid; border-radius: 10px; pointer-events: none; }
.cb-mark { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 16px; position: relative; }
.cb-mark img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.cb-mark b { font-family: Georgia, "Times New Roman", serif; font-size: 20px; letter-spacing: 2px; }
.cb-mark span { font-size: 11px; letter-spacing: 3px; opacity: .75; }
.cb-motto { font-size: 13px; letter-spacing: 1px; font-style: italic; position: relative; }
.cb-qr { display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.cb-qr svg { filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.cb-qr span { font-size: 10px; letter-spacing: 2px; }
.cb-foot { width: 100%; border-top: 1px solid; padding-top: 8px; font-family: Georgia, serif; font-size: 12px; letter-spacing: 2px; position: relative; }
.cb-holder { font-size: 11px; letter-spacing: 1px; opacity: .85; position: relative; }
.card3d-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0 6px; flex-wrap: wrap; }

/* ---------- 站内消息与通知 ---------- */
.messages-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 14px; min-height: 420px; }
.conv-list { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; padding: 4px; }
.conv-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; cursor: pointer; transition: all .15s; }
.conv-row:hover, .conv-row.on { border-color: var(--primary); background: var(--primary-050); }
.conv-ico img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.conv-ico { font-size: 24px; flex: none; }
.conv-info { flex: 1; min-width: 0; }
.conv-info b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pane {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px;
  background: #fff; overflow: hidden;
  /* 固定高度：消息区自己滚，输入区/快捷短语固定在底部，不会被消息顶走 */
  height: auto; min-height: 620px; max-height: 820px;
}
.chat-pane.empty { align-items: center; justify-content: center; color: var(--muted); height: auto; min-height: 220px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #FDFBF4; }
.chat-msgs {
  flex: 1 1 auto; min-height: 240px; max-height: none;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { display: flex; }
.chat-msg.mine { justify-content: flex-end; }
.chat-bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; background: #F2EEE2; }
.chat-msg.mine .chat-bubble { background: var(--primary-050); border: 1px solid #F3D9A4; }
.chat-bubble b { display: block; font-size: 12px; color: var(--primary); margin-bottom: 3px; }
.chat-bubble p { margin: 0; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.chat-bubble .attach-list { margin-top: 6px; }
.chat-bubble .small { display: block; margin-top: 5px; font-size: 11px; }
.chat-read { color: #126A33; font-weight: 700; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #FDFBF4; }
.chat-input .input { flex: 1; min-width: 0; }
.notif-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-badge { position: absolute; top: -5px; right: -5px; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-height: 360px; overflow-y: auto; background: #fff; border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 90; padding: 10px; }
.notif-row { padding: 9px 10px; border-radius: 9px; margin-bottom: 6px; background: #FDFBF4; }
.notif-row.read { opacity: .62; }
.notif-row { position: relative; cursor: pointer; }
.notif-x {
  position: absolute; right: 6px; top: 6px; border: none; background: transparent;
  color: var(--muted); font-size: 12px; line-height: 1; padding: 4px; cursor: pointer; border-radius: 6px;
}
.notif-x:hover { background: #EFE9DC; color: var(--text); }
.notif-row b { display: block; font-size: 13px; }
.notif-row p { margin: 3px 0; font-size: 12px; color: var(--text-2); }
.notif-panel .btn-block { margin-top: 6px; }
/* ---------- 地址管理 / 表单记录（2026-10-04） ---------- */
.addr-tools, .rec-tools { margin: 6px 0 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.addr-tools .input { flex: 1 1 260px; min-width: 0; }
.addr-list, .rec-list { display: flex; flex-direction: column; gap: 8px; }
.addr-card, .rec-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.addr-card[hidden], .rec-card[hidden] { display: none; }
.addr-card:hover, .rec-card:hover { border-color: #E3D2AE; background: #FFFDF7; }
.addr-main { flex: 1 1 auto; min-width: 0; }
.addr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.addr-title b { font-size: 14px; }
.addr-line { line-height: 1.6; word-break: break-word; }
.addr-line .cc { font-size: 10px; font-weight: 800; letter-spacing: .5px; background: #EEF2FA; border-radius: 4px; padding: 0 4px; }
.addr-ops { display: flex; gap: 6px; flex: 0 0 auto; }
.addr-src { background: #F1F5FB; color: #3E4A63; border: 1px solid #E1E8F4; font-size: 11px; }
.addr-src.order { background: #EAF7EE; color: #126A33; border-color: #CBE7D6; }
.addr-src.inquiry { background: #FFF6E4; color: #8A5A0B; border-color: #F0D8AE; }
.addr-note { margin-top: 12px; }
.rec-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.rec-filter { border: 1px solid var(--border-2); background: #fff; color: var(--text-2); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rec-filter.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.rec-card { flex-direction: column; gap: 6px; }
.rec-card[hidden] { display: none; }
.rec-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.rec-head b { flex: 1 1 auto; min-width: 0; font-size: 13.5px; }
.rec-amount { font-weight: 800; color: #8A5A0B; font-size: 13px; }
.rec-date { flex: 0 0 auto; }
.rec-kind { font-size: 11px; background: #F1F5FB; color: #3E4A63; border: 1px solid #E1E8F4; }
.rec-kind.quote { background: #FFF6E4; color: #8A5A0B; border-color: #F0D8AE; }
.rec-kind.order { background: #EAF7EE; color: #126A33; border-color: #CBE7D6; }
.rec-kind.document { background: #F3EEFB; color: #5B3E9B; border-color: #E0D6F5; }
.rec-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.rec-meta .cc { font-size: 10px; font-weight: 800; background: #EEF2FA; border-radius: 4px; padding: 0 4px; }
.rec-code { font-family: ui-monospace, Consolas, monospace; color: #8A5A0B; }
.rec-ref { font-family: ui-monospace, Consolas, monospace; opacity: .7; }
.rec-fields { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 14px; }
.rec-fields li { display: flex; gap: 8px; font-size: 12px; }
.rec-fields .k { color: var(--muted); min-width: 74px; flex: 0 0 auto; text-transform: uppercase; font-size: 11px; letter-spacing: .3px; }

/* ==================== 防伪验真页（2026-10-04：真二维码 + 服务端核验） ==================== */
/* ---------- 权限管理（2026-10-06） ---------- */
.perm-list { display: flex; flex-direction: column; gap: 10px; }
.perm-row { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.perm-row.self { border-color: #F0D8AE; background: #FFFDF6; }
.perm-main { flex: 1 1 auto; min-width: 0; }
.perm-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.perm-title b { font-size: 14px; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.perm-chip { font-size: 11.5px; background: #F1F5FB; color: #3E4A63; border: 1px solid #E1E8F4; border-radius: 999px; padding: 2px 9px; }
.perm-chip.full { background: #EAF7EE; color: #126A33; border-color: #CBE7D6; }
.perm-chip.none { background: #FDECEC; color: #B42318; border-color: #F7D4D4; }
.perm-chip.self { background: #FFF6E4; color: #8A5A0B; border-color: #F0D8AE; }
.perm-ops { display: flex; gap: 6px; flex: 0 0 auto; align-items: flex-start; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.perm-opt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: #fff; }
.perm-opt:hover { border-color: var(--primary); background: var(--primary-050); }
.perm-opt input { margin-top: 3px; accent-color: var(--primary); }
.perm-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perm-opt b { font-size: 13px; }
.perm-opt i { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ==================== 防伪验真页（2026-10-04：真二维码 + 服务端核验） ==================== */
.verify-page .verify-panel { max-width: 620px; margin: 0 auto; }
.verify-result:empty { display: none; }
.verify-result { margin-top: 14px; }
.verify-result .fake-result { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.verify-result .fake-ico svg { width: 34px; height: 34px; }
.verify-result .verify-code {
  font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 1px;
  background: #FFF6E4; border: 1px solid #F0D8AE; color: #8A5A0B;
  border-radius: 8px; padding: 4px 10px; margin: 2px 0 6px;
}
.verify-qr { background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--border-2); }
.verify-qr svg { width: 108px; height: 108px; display: block; }
.verify-result .verify-list { width: 100%; text-align: left; max-width: 420px; margin-top: 4px; }
.verify-note { margin-top: 12px; }
/* 名片背面的二维码（真码，扫码进官网） */
.cb-qr svg { width: 74px; height: 74px; display: block; background: #fff; border-radius: 6px; padding: 3px; }

/* ==================== emoji 清理后的收尾（2026-10-03） ====================
 * 界面里的彩色 emoji/国旗在 Windows 上会渲染成方块（用户反馈两轮），
 * 已统一换成内联 SVG 或纯文字；这里补齐图标尺寸，并把清空后的空容器隐藏。 */
.benefit-ico svg { width: 28px; height: 28px; }
.role-ico svg { width: 28px; height: 28px; }
.compliance-ico svg { width: 26px; height: 26px; color: var(--primary); }
.empty-state .ico svg { width: 44px; height: 44px; color: var(--muted); }
.attach-ico svg { width: 14px; height: 14px; }
.lang-hint-ico svg { width: 18px; height: 18px; }
.tip-coins svg { width: 18px; height: 18px; }
.empty-state .ico:empty, .benefit-ico:empty, .role-ico:empty, .compliance-ico:empty,
.attach-ico:empty, .tip-coins:empty, .lang-hint-ico:empty { display: none; }

/* ==================== 客服工作台 / 商品卡片（pet0.3，2026-10-03） ==================== */
/* 会话侧栏：搜索 + 仅未读 + 列表 */
.conv-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.conv-tools { display: flex; gap: 6px; }
.conv-search { flex: 1 1 auto; min-width: 0; }
.conv-filter { border: 1px solid var(--border-2); background: #fff; color: var(--text-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.conv-filter.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.conv-row[hidden] { display: none; }
.conv-top { display: flex; align-items: baseline; gap: 8px; }
.conv-top b { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--muted); }
.conv-sub { display: block; font-size: 11px; opacity: .85; }
.conv-sub .cc {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  color: var(--text-2); background: #EEF2FA; border-radius: 4px; padding: 0 4px; margin-right: 5px;
}
.conv-sub .conv-co { font-style: normal; color: var(--muted); }
.conv-sub .conv-co::after { content: ' · '; }
.conv-sub .conv-code { font-style: normal; font-family: ui-monospace, Consolas, monospace; color: #8A5A0B; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.buyer-tag {
  display: inline-flex; align-items: center; max-width: 220px;
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: #F1F5FB; color: #3E4A63; border: 1px solid #E1E8F4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 消息流：时间分隔 + 对方头像 */
.chat-sep { display: flex; justify-content: center; margin: 6px 0 2px; }
.chat-sep span { font-size: 11px; color: var(--muted); background: #F1EEE5; border-radius: 999px; padding: 2px 10px; }
.chat-msg { align-items: flex-end; gap: 8px; }
.chat-avatar {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-050); color: var(--primary); font-size: 11px; font-weight: 800;
}
/* 往上翻时右下角"回到最新" */
.chat-jump {
  position: absolute; right: 18px; bottom: 96px; z-index: 25;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #F0D8AE; background: #FFF6E4; color: #8A5A0B;
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-lg); font-family: inherit;
}
.chat-jump b { background: var(--accent); color: #3A2A00; border-radius: 999px; padding: 0 6px; font-size: 11px; }
.chat-jump svg { width: 14px; height: 14px; transform: rotate(90deg); }
.chat-pane { position: relative; }

/* 客服顶部概览条 */
.service-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.service-strip .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; background: #fff;
  border: 1px solid var(--border-2); font-size: 12.5px; font-weight: 600; color: var(--text-2);
  box-shadow: none;
}
.service-strip .chip svg { width: 14px; height: 14px; }

/* 会话标题栏：客服要看到买家是谁、在问哪款货 */
.chat-head .ch-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-head .ch-buyer { font-size: 11.5px; color: var(--muted); }
.chat-head .ch-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.chat-head .chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 4px 9px; border-radius: 999px;
  background: #FFF6E4; color: #8A5A00; border: 1px solid #F0D8AE;
  font-family: ui-monospace, Consolas, monospace; letter-spacing: .3px;
}
.chat-head .chip svg { width: 13px; height: 13px; }

/* 对话里的商品卡片 */
.chat-prod {
  display: flex; align-items: center; gap: 10px; text-align: left;
  width: min(320px, 80vw); margin-top: 6px; padding: 8px;
  border-radius: 10px; border: 1px solid var(--border-2); background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.chat-prod:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.chat-prod img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--bg-2); }
.chat-prod .cp-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.chat-prod .cp-info b { font-size: 12.5px; }
.chat-prod .cp-meta { font-size: 11px; color: var(--muted); }
.chat-prod .cp-eye { margin-left: auto; color: var(--muted); flex: 0 0 auto; }
.chat-prod .cp-eye svg { width: 16px; height: 16px; }
.chat-prod.missing { font-size: 12.5px; color: var(--muted); padding: 10px; cursor: default; }

/* 客服快捷短语 / 聊天话术 */
.qr { border-top: 1px dashed var(--border-2); background: #FDFBF4; }
.qr { position: relative; }
.qr-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; }
.qr-hint { margin-left: auto; }
.qr-lang-group { display: inline-flex; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; background: #fff; }
.qr-lang { border: 0; background: transparent; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--text-2); cursor: pointer; font-family: inherit; }
.qr-lang + .qr-lang { border-left: 1px solid var(--border-2); }
.qr-lang.on { background: var(--primary); color: #fff; }
.qr-buyer { background: #FFF6E4; color: #8A5A00; border: 1px solid #F0D8AE; }
.qr-direct { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); cursor: pointer; user-select: none; }
.qr-direct input { accent-color: var(--primary); width: 14px; height: 14px; }
/* 快捷短语面板做成"浮层"：展开时盖在对话上方，不挤压消息区（否则聊久了只剩几行高） */
.qr-panel {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 30; margin-bottom: 6px;
  background: #fff; border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto;
  padding: 10px 14px 12px;
}
.qr-scenes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.qr-scene { border: 1px solid var(--border-2); background: #fff; color: var(--text-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.qr-scene.on { background: var(--primary-050); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.qr-items { display: flex; gap: 8px; flex-wrap: wrap; }
.qr-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  border: 1px solid var(--border-2); background: #fff; color: var(--text);
  border-radius: 8px; padding: 7px 11px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qr-chip:hover { border-color: var(--primary); background: var(--primary-050); }
.qr-chip.custom { border-color: #E6D3A8; background: #FFFBF1; }
.qr-chip[hidden] { display: none; }
.qr-tag { font-style: normal; font-size: 10px; color: #8A5A0B; background: #FFF1D6; border-radius: 999px; padding: 1px 6px; }
.qr-empty { padding: 4px 2px; }
.qr-add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qr-add-grid .qr-wide { grid-column: 1 / -1; }
.qr-manage-list { display: flex; flex-direction: column; gap: 8px; }
.qr-manage-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; background: #fff; }
.qr-manage-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.qr-manage-info b { font-size: 13px; }
.qr-manage-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .qr-add-grid { grid-template-columns: 1fr; }
  .qr-hint { display: none; }
}

/* 客服选品抽屉 */
.prod-picker { border-top: 1px dashed var(--border-2); padding: 10px 14px; background: #FDFBF4; }
.prod-picker { position: relative; }
.pk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk-search { flex: 1 1 170px; min-width: 0; }
/* 选品列表同样浮在输入框上方，不占消息区高度 */
.pk-rows {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 30; margin-bottom: 6px;
  max-height: 300px; overflow-y: auto; border: 1px solid var(--border-2); border-radius: 10px;
  background: #fff; box-shadow: var(--shadow-lg);
}
.pk-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; background: #fff; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.pk-row[hidden] { display: none; }
.pk-row:last-child { border-bottom: 0; }
.pk-row:hover { background: var(--primary-050); }
.pk-row img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.pk-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.pk-info b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-send { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 700; flex: 0 0 auto; }

/* 商品速览小窗口 */
.modal.prod-preview { width: min(560px, 94vw); }
.pp-body { display: flex; gap: 14px; padding: 14px 20px 0; }
.pp-img { flex: 0 0 190px; }
.pp-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.pp-info { min-width: 0; flex: 1; }
.pp-info h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.pp-code { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pp-code b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .4px; }
.pp-list { list-style: none; margin: 0 0 8px; padding: 0; }
.pp-list li { display: flex; gap: 10px; font-size: 12.5px; padding: 3px 0; }
.pp-list .k { color: var(--muted); min-width: 70px; flex: 0 0 auto; }
.pp-desc { margin: 0; line-height: 1.6; }
.pp-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 20px 20px; }

/* 货号胶囊（商品管理表 / 商品详情页） */
.code-chip {
  font-family: ui-monospace, Consolas, monospace; font-size: 12px; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 999px; border: 1px solid #E6D3A8;
  background: #FFF8E7; color: #8A5A0B; cursor: pointer;
}
.code-chip:hover { background: #FFF1D6; }

@media (max-width: 640px) {
  .pp-body { flex-direction: column; }
  .pp-img { flex: none; }
  /* 窄屏把对话顶栏/快捷短语栏压扁：原来顶栏 118px + 短语栏 137px，
   * 把消息区挤到只剩 58px（用户反馈"对话拉不动"就是这个）。 */
  .chat-head { padding: 8px 10px; gap: 6px; flex-wrap: nowrap; }
  .chat-head .ch-actions { width: auto; margin-left: auto; flex-wrap: nowrap; }
  .chat-head .btn-sm { padding: 4px 8px; font-size: 12px; }
  .chat-head .ch-buyer { font-size: 11px; }
  .qr-bar { padding: 8px 10px; gap: 6px; }
  .qr-bar .btn { padding: 5px 9px; font-size: 12px; }
  .qr-direct { font-size: 11px; }
  .pk-hint { display: none; }
  .prod-picker { padding: 8px 10px; }
}

/* 无障碍：跳到主内容 */
.skip-link { position: absolute; top: -120px; left: 0; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200; transition: top .15s; }
.skip-link:focus { top: 0; }
@media (max-width: 860px) {
  .messages-layout { grid-template-columns: 1fr; }
  .conv-list { max-height: 220px; }
  /* 窄屏：面板给足高度，消息区至少 200px，控件不够就整体变高、由页面滚动 */
  .chat-pane { height: auto; min-height: 560px; max-height: 760px; }
  .chat-msgs { max-height: none; min-height: 200px; }
}

/* ---------- 视觉打磨：卡片悬浮、焦点态、滚动条 ---------- */
.card, .product-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(200, 134, 11, .35); }
.card.panel:hover { box-shadow: var(--shadow); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D9C396; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #C4A86E; }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 25%, rgba(255, 217, 138, .28), transparent 38%), radial-gradient(circle at 82% 72%, rgba(255, 255, 255, .10), transparent 42%); pointer-events: none; }
.hero-inner, .hero-deals { position: relative; z-index: 1; }
.hero-pilot { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #FFF3DC; font-size: 12.5px; letter-spacing: 1px; font-weight: 600; }
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state .ico { font-size: 38px; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============ v0.2 视觉精修：整体风格 / 用户模块 / 产品展示 ============ */

/* 整体基调：柔和暖色背景、统一间距与层级 */
body {
  background-image: radial-gradient(1000px 500px at 15% -5%, rgba(232, 163, 61, .06), transparent 60%), radial-gradient(900px 480px at 95% 0%, rgba(200, 134, 11, .05), transparent 55%);
  background-attachment: fixed;
}
.page { padding: 30px 0 52px; }
.page-head h1 { font-size: 26px; letter-spacing: .3px; }
.section-head h2 { font-size: 20px; letter-spacing: .2px; }
.card { border-radius: 14px; }
.btn { transition: transform .12s, box-shadow .12s, background .12s, border-color .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { box-shadow: 0 3px 10px rgba(200, 134, 11, .22); }

/* 侧栏用户卡 */
.side-user { display: flex; align-items: center; gap: 10px; }
.side-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #C8860B, #8A5A0B); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; box-shadow: 0 3px 8px rgba(138, 90, 11, .25); }
.side-user-txt { flex: 1; min-width: 0; }
.side-user-txt .name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-txt .sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-role { font-size: 10.5px; font-weight: 700; color: var(--primary); background: var(--primary-050); padding: 2px 7px; border-radius: 999px; flex: none; }

/* 个人中心：双栏 + 完整度进度条 */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-progress { height: 8px; border-radius: 999px; background: #EDE4CE; overflow: hidden; margin-top: 10px; }
.profile-progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #E8A33D, #C8860B); transition: width .4s ease; }
.profile-layout .exp-level { align-items: flex-start; flex-direction: column; }
@media (max-width: 860px) { .profile-layout { grid-template-columns: 1fr; } }

/* 产品卡片：图片圆角与缩放、标题两行等高校验、价格右对齐 MOQ */
.product-card { border-radius: 16px; }
.product-card { display: flex; flex-direction: column; }
.product-card .body { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-card .foot { margin-top: auto; }
/* 卡片文字区统一高度：标题 2 行、适配行与元信息各一行，视觉上不再高低不齐 */
.product-card .title { min-height: 2.85em; }
.product-card .fit-row { min-height: 22px; }
.product-card .meta { min-height: 22px; }
.product-card .price-row { min-height: 26px; }
.chip.recommend { background: #FFF6E4; color: #8A5A00; border: 1px solid #F0D8AE; font-size: 11.5px; }
.product-card .thumb { background: linear-gradient(160deg, #F6E7C4, #EFD9A6); }
.product-card .thumb img { transition: transform .35s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .title { -webkit-line-clamp: 2; min-height: 2.8em; }
.product-card .meta { row-gap: 4px; }
.product-card .foot { padding: 10px 14px; background: linear-gradient(180deg, #FDFCF8, #FBF7EE); border-top-color: #F0E4C8; }
.moq-tag { margin-left: auto; }

/* 产品详情：画廊、规格、卖家卡与操作区 */
.gallery .main-img { border-radius: 18px; box-shadow: var(--shadow); }
.detail-main { border-radius: 16px; }
.detail-main h1 { font-size: 22px; }
.spec-list li { border-bottom-color: var(--border); }
.seller-card { border-radius: 12px; background: linear-gradient(180deg, #FDFCF8, #FBF7EE); }
.tip-box { border-radius: 12px; }
.detail-actions .btn { min-height: 44px; }
.fx-strip { border-radius: 10px; }

/* 产品市场筛选栏吸顶 */
@media (min-width: 821px) {
  .filter-panel { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
}

/* ---------- 像素风 UI（2026-09-11：AI 像素图标 + 硬边阶梯投影） ---------- */
/* 图标：分类与空状态改用 assets/pixel/ui/*.png（洋红底已抠透明） */
.cat-pill-ico { border-radius: 7px; border: 2px solid rgba(38, 48, 74, .16); }
.cat-ico { border-radius: 8px; border: 2px solid rgba(38, 48, 74, .18); }
.cat-pill-ico img, .cat-ico img { display: block; width: 22px; height: 22px; object-fit: contain; }
.cat-ico img { width: 34px; height: 34px; }
.empty-state .ico { font-size: 0; }
.empty-state .ico img { display: inline-block; width: 56px; height: 56px; object-fit: contain; }
.pixel-ico { image-rendering: auto; }

/* 控件：方形硬边 + 阶梯投影，做出像素游戏的“厚块”质感 */
.cat-pill { border-radius: 9px; border-width: 2px; box-shadow: 3px 3px 0 rgba(38, 48, 74, .12); }
.cat-pill:hover { box-shadow: 4px 4px 0 rgba(38, 48, 74, .16); }
.cat-card { border-radius: 10px; border-width: 2px; box-shadow: 4px 4px 0 rgba(38, 48, 74, .10); }
.cat-card:hover { box-shadow: 6px 6px 0 rgba(38, 48, 74, .14); }
.chip { border-radius: 4px; box-shadow: 2px 2px 0 rgba(38, 48, 74, .10); }
.badge { border-radius: 4px; box-shadow: 2px 2px 0 rgba(38, 48, 74, .18); }
.btn { border-radius: 8px; box-shadow: 3px 3px 0 rgba(38, 48, 74, .16); }
.btn:hover { box-shadow: 4px 4px 0 rgba(38, 48, 74, .20); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(38, 48, 74, .16); }
.btn-ghost, .btn-sm { box-shadow: 2px 2px 0 rgba(38, 48, 74, .10); }

/* ==================== pet0.2：门面 / 视频墙 / 关于我们 / 暖色点缀 ==================== */
.storefront {
  /* 用户两次指出"这一块很明显的黄色很突兀"——根因就是这里：
   * 原来是 #FFF7E8 → #FFEFD6 → #FFF9EC 的黄色渐变带（我前两次改的是别处的渐变，没动到这里）。
   * 现在改为透明，让整页底层像素底纹透上来，全站统一一个色系。 */
  background: transparent;
  /* 这条 border-bottom 是黄底时代的"分块线"，背景透明后它就是一条没有意义的孤线
   * （用户 2026-10-12 问"下面有个分界线是什么意思"）。去掉。 */
  border-bottom: 0;
  padding: 30px 0 26px;
}
.store-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px; align-items: center;
}
.store-eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  background: #FFF; border: 1px solid var(--border-2); color: var(--primary);
  font-size: 13px; font-weight: 600;
}
.store-title { margin: 0 0 10px; font-size: 30px; line-height: 1.26; color: var(--navy-900); letter-spacing: .2px; text-wrap: balance; }
.store-sub { margin: 0 0 16px; font-size: 14.5px; line-height: 1.8; color: var(--text-2); max-width: 46em; }
.store-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
.store-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.trust-chip {
  font-size: 12.5px; color: var(--primary); background: #FFF; border: 1px solid var(--border-2);
  border-radius: 6px; padding: 4px 9px;
}
.store-art { position: relative; }
.store-art img {
  width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); background: var(--card, #FFFDF7);
}
.store-art-note {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92);
  border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 11px;
  font-size: 12.5px; color: var(--primary); font-weight: 600;
}
/* 门面里的搜索框：以前用的是深色头图时代的重阴影，落在暖色浅底上像"浮了两层" */
.store-copy .hero-search {
  margin: 0; max-width: 560px;
  border: 1px solid var(--border-2);
  border-radius: 999px; padding: 5px 5px 5px 18px;
  box-shadow: 0 6px 18px rgba(143, 94, 10, .10);
}
.store-copy .hero-search input { min-width: 0; padding: 12px 8px; }
.store-copy .hero-search .btn { border-radius: 999px; white-space: nowrap; }
.store-copy .hero-search:focus-within { border-color: var(--primary); box-shadow: 0 6px 20px rgba(143, 94, 10, .18); }
.store-copy .hero-popular { color: var(--muted); margin-top: 12px; }
.store-copy .hero-popular a { color: var(--primary); }
.store-copy .hero-popular a:hover { color: var(--primary-600, var(--primary)); text-decoration: underline; }
.section-links { display: flex; gap: 14px; align-items: baseline; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sub-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease;
}
.sub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-2); }
.sub-ico { width: 44px; height: 44px; image-rendering: pixelated; flex: 0 0 auto; }
.sub-name { font-weight: 600; font-size: 14.5px; }
.sub-count { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.section-note { margin: -6px 0 16px; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.video-grid--full { margin-top: 8px; }
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #F6EEDC; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--border-2); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none;
}
.video-play--soon { opacity: .55; }
.video-badge {
  position: absolute; left: 10px; top: 10px; background: rgba(74,46,8,.82); color: #FFF;
  font-size: 11.5px; padding: 3px 8px; border-radius: 5px;
}
.video-card h3 { margin: 12px 14px 4px; font-size: 14.5px; color: var(--text); }
.video-card .video-by { margin: 0 14px 14px; font-size: 12.5px; color: var(--muted); }
.oneline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.promise-card { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; }
.promise-card h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy-800); }
.promise-card p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.about-teaser {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 26px; align-items: center;
  background: linear-gradient(135deg, #FFF6E4, #FFFBF2); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
}
.about-teaser-art img { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.about-teaser-copy h2 { margin: 0 0 10px; }
.about-teaser-copy p { margin: 0 0 16px; color: var(--text-2); line-height: 1.85; }
.about-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 30px; align-items: start; }
.about-art img { width: 100%; max-width: 460px; height: auto; display: block; border-radius: 16px; border: 1px solid var(--border-2); background: #FFF6E8; }
.about-copy h1 { margin: 0 0 14px; }
.about-copy p { line-height: 1.9; color: var(--text-2); }
.about-sub { margin: 22px 0 10px; font-size: 17px; }
.contact-list { list-style: none; margin: 0 0 10px; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border-2); font-size: 14px; }
.contact-k { min-width: 64px; color: var(--muted); }
.notice { margin-top: 18px; background: var(--primary-050); border: 1px solid var(--border-2); border-radius: 10px; padding: 14px 16px; }
.notice strong { display: block; margin-bottom: 6px; color: var(--primary); font-size: 14px; }
.notice p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.section-actions { margin-top: 16px; }
.muted { color: var(--muted); }
/* 对话框细节：单行省略 + 悬浮完整；分隔点用 CSS 画，避免字体缺字形时出现方块占位 */
.conv-info { min-width: 0; }
.conv-info b, .conv-info > span { display: block; max-width: 100%; }
.oneline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-sep {
  display: inline-block; width: 3px; height: 3px; margin: 0 6px 2px;
  border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle;
}
/* 统一 emoji 回退字体，避免 Windows 下 ⚡ / 国旗等渲染成方块 */
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.chat-read { color: var(--success); font-weight: 600; }

/* ==================== 第二轮 UI 修正（用户反馈 2026-09-17） ==================== */
/* 1. 顶部导航：窄屏不再把标题/文字挤出视口。导航自身可横向滚动，不撑破页面 */
.header-inner { max-width: 1200px; width: 100%; box-sizing: border-box; }
.main-nav {
  min-width: 0; flex: 1 1 auto;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { flex: 0 0 auto; white-space: nowrap; }
.brand { flex: 0 0 auto; }
.header-actions { flex: 0 0 auto; }
@media (max-width: 1100px) {
  .header-inner { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .main-nav a { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 820px) {
  .brand-name { font-size: 15px; }
  .main-nav a { padding: 0 7px; font-size: 13px; }
  .icon-btn.fav-link { display: none; }
}
@media (max-width: 900px) {
  /* 工作台在右上角用户区已有入口，窄屏时从导航里收起，减少挤压 */
  .main-nav a[data-nav="/dashboard"] { display: none; }
}

/* ==================== 第三轮：顶部重做（用户 2026-09-18 反馈） ==================== */
/* 窄屏不再横向挤导航：收成菜单按钮，点开是竖排菜单，任何一项都不会被截断 */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  border: 1px solid var(--border-2); background: var(--card); color: var(--primary);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.site-header { position: relative; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--border-2);
    box-shadow: var(--shadow-lg); padding: 6px 12px 10px; z-index: 60;
    overflow: visible;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 6px; font-size: 15px; border-bottom: 1px dashed var(--border); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a[data-nav="/dashboard"] { display: block; }
}

/* 右上角用户菜单：个人信息 / 我的询盘 / 我的收藏 / 工作台 / 退出，各走各的入口 */
.user-area { position: relative; display: flex; align-items: center; gap: 6px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 216px;
  background: var(--card); border: 1px solid var(--border-2); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 70;
}
.user-menu-head {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 5px;
}
.user-menu a, .user-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border-radius: 8px; border: 0; background: none;
  font-size: 14px; color: var(--text); text-align: left; cursor: pointer; text-decoration: none;
}
.user-menu a:hover, .user-menu button:hover { background: var(--primary-050); color: var(--primary); }
.user-menu-out { color: var(--danger) !important; }
.user-menu-out:hover { background: var(--danger-050) !important; }
.user-chip[aria-expanded="true"] { border-color: var(--accent); }

/* 演示数据角标：所有商品卡统一标注，避免上线后用户误认示例数据为真实信息 */
.badge.demo {
  left: auto; right: 10px; top: auto; bottom: 10px;
  background: rgba(74, 46, 8, .72); color: #FFF; font-size: 11px; letter-spacing: .3px;
}

/* 搜索联想：不用浏览器原生 datalist（那个默认方框无法美化），改用站点风格标签 */
.search-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.search-suggest .chip {
  font-size: 12.5px; padding: 4px 10px; border-radius: 6px;
  background: var(--primary-050); border: 1px solid var(--border-2);
  color: var(--primary); text-decoration: none;
}
.search-suggest .chip:hover { background: var(--accent-050); }
/* 门面眉标里的像素小图标 */
.eyebrow-ico { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: -5px; margin-right: 6px; }

/* 对话式询价：进度条 + 选项块（沿用站点暖色方硬边风格） */
.ask-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.ask-bar i { flex: 1; height: 4px; border-radius: 3px; background: var(--border-2); }
.ask-bar i.on { background: var(--accent); }
.ask-q { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--navy-800); }
.ask-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ask-opt {
  padding: 9px 14px; border-radius: 8px; cursor: pointer; font-size: 14px;
  background: var(--card); border: 1px solid var(--border-2); color: var(--text);
}
.ask-opt:hover { border-color: var(--accent); background: var(--accent-050); }
.ask-opt.on { background: var(--accent); border-color: var(--accent); color: #FFF; font-weight: 600; }
.ask-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.ask-summary {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  background: var(--primary-050); border: 1px dashed var(--border-2);
  font-size: 13px; color: var(--primary);
}

/* 宠物适配标签：卡片上一行紧凑显示；详情页成块展示 */
.fit-row { display: flex; flex-wrap: nowrap; gap: 5px; margin: 6px 0 2px; overflow: hidden; }
.fit-chip {
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  padding: 2px 7px 2px 5px; border-radius: 6px; font-size: 12px;
  background: var(--primary-050); border: 1px solid var(--border-2); color: var(--primary);
}
.fit-chip img { width: 16px; height: 16px; image-rendering: pixelated; }
.fit-chip.fit-size { background: var(--accent-050); }
.fit-block-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.fit-list { list-style: none; margin: 6px 0 8px; padding: 0; }
.fit-list li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border-2); font-size: 14px; }
.fit-list .k { min-width: 72px; color: var(--muted); }

/* ==================== 移动端打磨第二轮（用户 2026-09-19） ==================== */
/* 详情页固定底栏：手机上价格 + 询问常驻底部，拇指可达（桌面隐藏） */
.sticky-ask { display: none; }
/* 极窄手机（<400px）隐藏"价格区间"四个字，把宽度让给按钮文案 */
@media (max-width: 400px) {
  .sticky-ask .sa-plabel { display: none; }
}
@media (max-width: 640px) {
  .sticky-ask {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--border-2);
    box-shadow: 0 -6px 18px rgba(120, 84, 20, .10);
  }
  /* 底栏跨语言不挤压：价格单行省略、按钮文案单行到 44vw 就省略。
   * 之前价格是 flex:1 的自由文本、按钮又是 nowrap，俄语/日语等长文案下
   * 按钮把价格挤成两三行，底栏高度乱跳。 */
  .sticky-ask .sa-price { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-ask .btn { min-height: 44px; flex: 0 0 auto; }
  .sticky-ask .sa-label { display: block; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:has(.sticky-ask) { padding-bottom: 74px; }

  /* 手机上适配标签允许换行，不再被裁掉 */
  .fit-row { flex-wrap: wrap; }
  .fit-block-icons { margin-top: 6px; }

  /* 详情页操作区手机竖排：横排时"向豆豆鼠询问/收藏/PayPal"在长语言下会挤破容器 */
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions .btn { width: 100%; }

  /* 筛选与排序控件放大到 40px 以上，手指点得准 */
  .radio-row label, .filter-group label, .chip { min-height: 36px; display: inline-flex; align-items: center; }
  .filter-panel .filter-group { padding: 10px 0; }
  .filter-panel h4 { margin-bottom: 6px; }

  /* 商品卡在手机上留白收紧一点，一屏能多看到半张卡 */
  .product-grid { gap: 10px; }
  .product-card .body { padding: 10px 12px 12px; }
  .product-card .title { font-size: 14px; }
}

/* ==================== 搜索框与验证页（用户 2026-09-21） ==================== */
/* 原样式是深色头图时代的：超重深色投影 + 浅色关键词链接，
 * 在现在的浅暖色门面上显得"浮起来、脱离背景"，这里统一改暖色轻投影。 */
.hero-search, .products-search {
  background: #FFFDF9;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 4px 14px rgba(120, 84, 20, .08);
}
.hero-search .btn, .products-search .btn { border-radius: 8px; }
.hero-search input::placeholder, .products-search input::placeholder { color: var(--muted); }
.hero-popular { color: var(--text-2); }
.hero-popular a { color: var(--primary); }
.hero-popular a:hover { color: var(--accent); }

/* 邮箱验证页 */
.verify-card { max-width: 560px; margin: 0 auto; padding: 30px 28px; text-align: center; }
.verify-ico { width: 46px; height: 46px; margin: 0 auto 12px; color: var(--accent); }
.verify-ico svg { width: 100%; height: 100%; }
.verify-card h1 { margin: 0 0 10px; font-size: 22px; }
.verify-actions { margin-top: 18px; }
.verify-actions .field { text-align: left; margin-bottom: 12px; }

/* R2 已于 2026-09-30 开通并绑定（附件 / 商品图片上传恢复可用），
 * 因此原先隐藏 .needs-r2 上传入口的规则已移除。 */
/* 标题里出现的内联图标（盾牌/用户）跟随文字大小与颜色 */
.modal-head h3 svg, .panel-head h2 svg, .detail-block h2 svg { vertical-align: -3px; margin-right: 6px; }

/* 页脚重排：品牌区 + 分栏链接（原来 17 个链接挤成一行） */
.footer-inner { display: grid; grid-template-columns: minmax(210px, 1.1fr) minmax(0, 3fr); gap: 26px; align-items: start; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px 20px; }
.footer-links a, .footer-links button { padding: 4px 0; font-size: 13.5px; text-align: left; }
.demo-note {
  grid-column: 1 / -1; margin: 16px 0 0; padding-top: 12px;
  border-top: 1px dashed var(--border-2); font-size: 12.5px; line-height: 1.8; color: var(--muted);
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==================== 移动端打磨（为后续做 App 预留规范） ==================== */
/* 触控目标统一到 40px 以上（iOS 建议 44px），避免手机上"点不准" */
@media (max-width: 640px) {
  .btn, .icon-btn, .nav-toggle, .user-chip { min-height: 40px; }
  .main-nav a, .footer-links a, .footer-links button, .user-menu a, .user-menu button {
    min-height: 42px; display: flex; align-items: center;
  }
  /* 门面按钮竖排占满，拇指可达 */
  .store-cta { flex-direction: column; }
  .store-cta .btn { width: 100%; justify-content: center; }
  .store-title { font-size: 22px; line-height: 1.32; }
  .store-sub { font-size: 14px; }
  .storefront { padding: 24px 0 20px; }
  .section { padding-top: 18px; padding-bottom: 18px; }
  .sub-card { min-height: 54px; }
  .video-grid, .promise-grid { grid-template-columns: 1fr; }
  .user-menu { right: -6px; left: auto; min-width: 200px; }
  /* 手机端点击反馈更明显 */
  .product-card:active, .sub-card:active, .video-card:active { transform: scale(.985); }
}
@media (hover: none) {
  /* 触屏没有 hover：省略号的完整内容靠长按/点按触发系统菜单，这里给可点区域足够的纵向空间 */
  .oneline { line-height: 1.5; }
}

/* 桌面宽度下导航改为可换行：日语/俄语等长语言不会再被裁掉尾巴 */
@media (min-width: 901px) {
  /* 单行不换行：长语言（日/俄）下宁可让标签自身省略，也不要换行把头部撑高 */
  .main-nav { flex-wrap: nowrap; overflow: visible; row-gap: 0; }
  .main-nav a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .main-nav a { padding: 6px 11px; }
}
@media (max-width: 1100px) {
  /* 工作台在右上角用户菜单里已有入口，这里再提前一档收起，给长语言留出空间 */
  .main-nav a[data-nav="/dashboard"] { display: none; }
}

/* 2. 品类速览：8 个入口排成对称网格（4×2 / 窄屏 2×4），不再出现 6+2 的残缺行 */
.sub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sub-card { padding: 10px 12px; } .sub-count { display: none; } }

/* 3. 客户对话框：贴合站点暖色像素风（方硬边 + 暖色 + 阶梯阴影），替掉通用圆角气泡 */
.conv-row { border-radius: 8px; }
.chat-bubble {
  border-radius: 10px; border: 1px solid var(--border-2);
  background: #FFFDF7; box-shadow: var(--shadow-sm);
}
.chat-msg.mine .chat-bubble { background: var(--accent-050); border-color: var(--border-2); }
.chat-msg.theirs .chat-bubble { background: var(--card); }
.trans-pill, .trans-label {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 6px; background: var(--primary-050); color: var(--primary);
  border: 1px solid var(--border-2); padding: 2px 7px; font-size: 12.5px;
}
.trans-toggle { border-radius: 6px; }
.chat-read { color: var(--success); font-weight: 600; }
@media (max-width: 900px) {
  /* minmax(0,1fr)：单列时也要允许列收缩，否则一行长标题会把整页撑出横向滚动 */
  .store-inner, .about-hero, .about-teaser { grid-template-columns: minmax(0, 1fr); }
  .store-title { font-size: 26px; }
  .store-art { order: -1; }
}
.muted { color: var(--muted); }
.sup-docs { margin: 12px 0 4px; padding: 14px 16px; background: var(--primary-050); border: 1px solid var(--border-2); border-radius: 10px; }
.sup-docs h4 { margin: 0 0 8px; font-size: 14px; color: var(--primary); }
.sup-docs ul { margin: 0 0 8px; padding-left: 18px; }
.sup-docs li { font-size: 13px; line-height: 1.9; color: var(--text-2); }
.sup-docs .small { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--muted); }

/* ---------- 管理员登录：独立入口 + 默认密码提醒 ---------- */
.admin-login-card { border-color: rgba(15, 33, 69, .18); }
.admin-login-card::before { border-color: rgba(15, 33, 69, .24); }
.admin-login-card h1 { display: flex; align-items: center; justify-content: center; gap: 8px; }
.admin-login-card h1 svg { width: 20px; height: 20px; color: var(--navy-900); }
.admin-login-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px 14px;
  font-size: 12.5px; line-height: 1.6; color: var(--text-2); text-align: left;
  background: #F3F6FC; border: 1px solid var(--border-2); border-radius: 9px;
}
.admin-login-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--navy-900); }
.admin-login-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; }
.admin-login-links a { color: var(--primary); text-decoration: none; }
.admin-login-links a:hover { text-decoration: underline; }
.login-admin-link { text-align: center; margin: 16px 0 0; font-size: 12.5px; }
.login-admin-link a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--border-2); padding-bottom: 1px; }
.login-admin-link a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.admin-pwd-warn-wrap { padding-top: 14px; }
.admin-pwd-warn {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; background: #FFF7E6; border: 1px solid #F0C36D; border-radius: 12px;
}
.admin-pwd-warn .apw-ico { font-size: 18px; }
.admin-pwd-warn .apw-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.admin-pwd-warn .apw-txt b { font-size: 14px; color: #8A5A00; }
.admin-pwd-warn .apw-txt span { font-size: 12.5px; color: #9A7A3A; }

/* ---------- 服务器数据到达前的骨架屏（线上不再先渲染演示数据） ---------- */
.boot-loading { padding-top: 26px; }
.boot-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.boot-head img { border-radius: 50%; }
.boot-head-txt { display: flex; flex-direction: column; gap: 2px; }
.boot-head-txt b { font-size: 15px; color: var(--navy-900); }
.boot-head-txt span { font-size: 12.5px; color: var(--muted); }
.boot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.boot-card {
  height: 268px; border-radius: 14px;
  background: linear-gradient(100deg, #F3F1EC 30%, #FAF9F6 50%, #F3F1EC 70%);
  background-size: 220% 100%;
  animation: bootShimmer 1.25s ease-in-out infinite;
}
@keyframes bootShimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .boot-card { animation: none; } }
/* 页头身份未确认前的占位（避免先闪旧账号名） */
.user-area-ghost { display: inline-block; width: 92px; height: 30px; border-radius: 15px; background: #F1EFE9; }
.email-flag { font-size: 10.5px; padding: 1px 6px; }
.email-verified { font-size: 10.5px; padding: 1px 6px; background: #E8F5EC; color: #1B7A45; border: 1px solid #BFE3CC; }
.email-unverified { font-size: 10.5px; padding: 1px 6px; background: #FDF3E7; color: #8A5A00; border: 1px solid #F0D8AE; }

/* ---------- 登录弹窗（页头"登录"直接弹，带主题元素） ---------- */
.login-modal-head {
  background: linear-gradient(120deg, #FFF7E8 0%, #FFEFD6 100%);
  border-bottom: 1px solid var(--border-2);
  align-items: center;
}
.lm-brand { display: flex; align-items: center; gap: 10px; }
.lm-brand img { border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.lm-brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.lm-brand-txt b { font-size: 16px; color: var(--navy-900); }
.lm-brand-txt b span { color: var(--primary); }
.lm-brand-txt > span { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); }
.login-modal-body { padding-top: 16px; }
.login-modal-body .lm-title { margin: 0 0 4px; font-size: 19px; }
.login-modal-body .lm-sub { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.login-modal-body .field { margin-bottom: 12px; }
.lm-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lm-links .btn { flex: 1 1 auto; justify-content: center; }
.lm-trust { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.lm-note {
  margin: 12px 0 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted);
  background: #F7F5F0; border: 1px dashed var(--border-2); border-radius: 9px;
}
.lm-forgot { margin: 10px 0 0; font-size: 13px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label-link { font-size: 12.5px; color: var(--primary); text-decoration: none; }
.label-link:hover { text-decoration: underline; }
.form-message {
  margin: 12px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.7; color: #8A3A2E;
  background: #FDF3F1; border: 1px solid #F2D2CB; border-radius: 9px;
}
.form-message-extra { color: var(--muted); }
.form-message a { color: var(--primary); font-weight: 600; }
.form-message a:hover { text-decoration: underline; }
.reg-next-step { padding: 12px 14px; margin-bottom: 10px; background: #FBF8F1; border: 1px solid var(--border-2); border-radius: 10px; }
.reg-next-step b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--navy-900); }
.reg-next-step .btn { margin-top: 8px; }

/* ---------- 法规/政策页 ---------- */
.legal-page { max-width: 860px; }
.legal-head h1 { margin: 0 0 6px; font-size: 26px; }
.legal-draft {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin: 14px 0 16px;
  background: #FFF7E6; border: 1px solid #F0C36D; border-radius: 12px;
}
.legal-draft svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #8A5A00; }
.legal-draft b { display: block; font-size: 14px; color: #8A5A00; margin-bottom: 3px; }
.legal-draft p { margin: 0; font-size: 13px; line-height: 1.75; color: #9A7A3A; }
.legal-body { padding: 22px 24px; }
.legal-sec { margin-bottom: 20px; }
.legal-sec h2 { font-size: 16px; margin: 0 0 8px; color: var(--navy-900); }
.legal-sec p { margin: 0 0 8px; font-size: 14px; line-height: 1.9; color: var(--text-2); }
.legal-foot { border-top: 1px dashed var(--border-2); padding-top: 14px; }
.legal-foot b { font-size: 14px; }
.legal-foot p { margin: 6px 0 0; }
.legal-back { margin: 16px 0 0; }
.legal-back a { color: var(--primary); text-decoration: none; }
.legal-back a:hover { text-decoration: underline; }

/* ---------- 管理端系统自检卡片 ---------- */
.sys-check { margin-bottom: 18px; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 18px; }
.sys-row { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.sys-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sys-dot.ok { background: #22C55E; }
.sys-dot.warn { background: #F59E0B; }
.sys-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sys-chip { font-size: 12.5px; padding: 4px 10px; background: #FBF8F1; border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-2); }
.sys-chip b { color: var(--navy-900); }
.translate-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.form-section-title {
  margin: 10px 0 2px; padding-bottom: 6px; border-bottom: 1px dashed var(--border-2);
  font-size: 13.5px; font-weight: 700; color: var(--navy-900); letter-spacing: .2px;
}
.form-section-title:first-child { margin-top: 0; }
.lm-forgot a { color: var(--primary); text-decoration: none; }
.lm-forgot a:hover { text-decoration: underline; }
.pwd-panel .panel-head { align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pwd-panel .field-error:empty { display: none; }
.pwd-panel [data-pwd-result]:not([hidden]) { margin: 10px 0 0; color: var(--success, #0a7a3f); }

/* ==================== 手机端主页搜索框：单层（2026-10-04） ====================
 * 门面搜索框在 .store-copy 下是胶囊形（border-radius:999px + 边框），
 * 而早先的窄屏规则写的是 .hero-search（权重更低），压不住它 →
 * 手机上就成了"椭圆外框里套一个白色矩形输入框"。
 * 这里放在文件最后 + 同等权重，彻底拍平：无外框、输入框自己带圆角、按钮同宽。 */
@media (max-width: 560px) {
  .store-copy .hero-search {
    display: flex; flex-direction: column; gap: 8px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0;
    max-width: 100%;
  }
  .store-copy .hero-search input {
    width: 100%; border-radius: 12px; background: #fff;
    padding: 12px 14px; border: 1px solid var(--border-2);
  }
  .store-copy .hero-search .btn { width: 100%; border-radius: 12px; }
}

/* ==================== 第四轮：顶部导航换语言后不再被截断（用户 2026-10-06 反馈） ====================
 * 现象：登录后（右上角有收藏/通知/用户区）切换中英文，导航文字被切掉——英文/德文更长，
 *       1440px 就已经截断（英文 18px、德文 40px）；中文到 901px 截断 46px。
 * 原因：导航项 previous 是 white-space:nowrap + 容器 overflow-x:auto，超出部分只能靠横向滚动看，
 *       视觉上就是"字符跑出去了"。
 * 做法：① 导航文案换成短语（长解释留在页面上）② 允许折成上下两行 ③ 空间不足时自动缩小字号。 */
.main-nav { flex-wrap: wrap; overflow: visible; row-gap: 2px; align-items: center; }
.main-nav a { white-space: normal; line-height: 1.25; max-width: 100%; flex: 0 1 auto; }
.header-inner { height: auto; min-height: 62px; padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 901px) {
  .main-nav a { font-size: 14.5px; padding: 7px 12px; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .main-nav a { font-size: 13.5px; padding: 6px 10px; }
}
@media (min-width: 901px) and (max-width: 1060px) {
  .main-nav a { font-size: 12.5px; padding: 6px 8px; }
}

/* ==================== 商品图裁剪/缩放（用户 2026-10-07 反馈） ====================
 * 上传后自己拖拽+缩放确定构图，避免卡片 cover 裁切把主体切掉。 */
.img-crop-mask { position: fixed; inset: 0; background: rgba(20,16,10,.62); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.img-crop-box { background: #fff; border-radius: 14px; padding: 16px; width: min(560px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.img-crop-box h3 { color: var(--text); }
.img-crop-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #F3EFE7; border-radius: 10px; overflow: hidden; touch-action: none; cursor: grab; }
.img-crop-stage:active { cursor: grabbing; }
.img-crop-stage canvas { display: block; width: 100%; height: 100%; }
.img-crop-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 13px; color: #6B5B45; }
.img-crop-zoom input { flex: 1; }
.img-crop-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ==================== 商品详情缩略图：多了不再顶出容器（用户 2026-10-07 反馈） ==================== */
.gallery-thumbs { flex-wrap: wrap; max-width: 100%; }
.gallery-thumbs img { flex: 0 0 auto; }
.gallery-thumbs .gallery-more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 86px; height: 64px; border-radius: 8px; flex: 0 0 auto;
  background: var(--primary-050); color: var(--primary); font-size: 13px; font-weight: 700;
  border: 1px dashed var(--border-2);
}

/* ==================== 产品市场筛选：细分带图标（用户 2026-10-07） ==================== */
.filter-panel .radio-row label.sub-opt { display: flex; align-items: center; gap: 8px; }
.filter-panel .sub-ico-sm { width: 22px; height: 22px; image-rendering: pixelated; border-radius: 5px; background: var(--primary-050); padding: 1px; flex: 0 0 auto; }
.filter-panel .radio-row label.sub-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 裁剪窗工具行（显示整张 / 铺满画面） */
.img-crop-tools { display: flex; gap: 8px; margin: -4px 0 12px; }

/* ==================== 防伪验证弹窗二维码（用户 2026-10-07） ====================
 * 以前 .verify-qr svg 被写死 108px，而外层 .fake-qr 只有 96px（还要减 12px padding）
 * → 二维码直接溢出到框外。现在统一由容器决定尺寸，并把框放大到更好扫。 */
.fake-qr.verify-qr { width: 136px; height: 136px; margin: 14px auto 8px; }
.fake-qr.verify-qr svg { width: 100%; height: 100%; display: block; }
/* 其它位置的二维码也一律不许超出容器 */
.fake-qr svg, .ev-qr svg { max-width: 100%; max-height: 100%; }

/* ==================== 手机端可点区域（用户 2026-10-07 要求打磨移动端） ====================
 * 体检结果：各页无横向溢出；问题在顶部——语言按钮只有 28px 高、试用条关闭按钮 22×27、
 * 品牌链接高 24px，手指点偏。统一抬到 36–44px 的舒适区。 */
@media (max-width: 900px) {
  .lang-btn { min-height: 36px; padding: 8px 14px; font-size: 13.5px; }
  .lang-btn--more { padding: 8px 12px; }
  .trial-dismiss { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
  .brand { padding: 8px 0; }
  .nav-toggle { width: 42px; height: 40px; font-size: 19px; }
  .icon-btn { min-height: 38px; }
  /* 手机上按钮整体给足高度，避免"点不中" */
  .btn { min-height: 38px; }
  .filter-panel .radio-row label, .check-pill { min-height: 36px; }
}

/* ==================== 手机端第二轮修正（用户 2026-10-08 反馈，逐条对应） ====================
 * 1) 产品页图片区在手机上不再 sticky：桌面端"图片跟随滚动"是为了右栏太长时不留白，
 *    但在手机上它会把图片钉在屏幕上、挡住上滑的内容（用户："固定一个界面，挡住上滑的部分"）。
 * 2) 帮助悬浮球给产品页底部的"向豆豆鼠询问"条让位（两者都 fixed 在右下角，会互相盖住）。
 * 3) hero/眉标长文本允许断词，避免"主页字挤到屏幕外"。
 * 4) ≤480px 做一轮等比缩小（字号/间距/内边距整体收一档），而不是只放大可点区域。 */
@media (max-width: 900px) {
  /* 1) 取消产品页图片区的固定定位 */
  .detail-layout .gallery { position: static !important; top: auto; }
  /* 2) 帮助按钮上移，给底部操作条腾出位置（底部条约 64px 高） */
  .has-detail-bar .help-widget,
  body.has-mobile-detail-bar .help-widget { bottom: 84px; }
}

@media (max-width: 600px) {
  /* 2-b) 兜底：产品详情页一律把帮助球抬高，避免任何底部条遮挡 */
  .help-widget { bottom: 84px; }
  /* 3) 长文本断词，别让英文单词把布局撑出屏幕 */
  h1, h2, h3, .page-title, .store-eyebrow, .section-note, .product-card .title, .detail-main h1 {
    overflow-wrap: anywhere; word-break: break-word; max-width: 100%;
  }
}

@media (max-width: 480px) {
  /* 4) 小屏等比缩小：整体正文小一档、卡片内边距收紧 */
  body { font-size: 15px; }
  .container { padding: 0 14px; }
  .page-title { font-size: 22px; }
  .store-title, .hero-title, .storefront h1 { font-size: 24px; line-height: 1.3; }
  .store-eyebrow { font-size: 12.5px; line-height: 1.5; }
  .section { margin-bottom: 26px; }
  .card.panel { padding: 14px; }
  .detail-main { padding: 16px; }
  .detail-main h1 { font-size: 19px; }
  .product-card .body { padding: 12px 13px; }
  .sub-card { min-width: 0; }
  .store-hero, .storefront { padding-left: 14px; padding-right: 14px; }
}

/* ==================== 正式运行：不再显示"试验阶段"横幅（用户 2026-10-08） ====================
 * 说明：横幅是 JS 控制显示的（dismiss 状态存在本地）。这里先用 CSS 彻底不让它出现，
 * 属于止血；等工具恢复后我会把显示它的那个开关也一并关掉，并清掉本地 dismiss 的旧状态。 */
#trialBanner { display: none !important; }

/* ==================== 手机端第三轮：按移动端规范重排（用户 2026-10-08，实测数据驱动） ====================
 * 实测问题（390×844）：头部 156px、首页总长 4822px、单张商品卡 546px、页脚 885px、
 * 而主标题只有 15.5px（比正文 15px 还小）——层级和密度都是桌面版硬塞的结果。
 * 这一轮统一：头部≤64px、类型层级修好、卡片两列、页脚两列、间距收紧。 */
@media (max-width: 900px) {
  /* ① 头部：一行放完（品牌 + 语言 + 用户 + 汉堡），不再堆成 156px */
  .header-inner { min-height: 56px; height: auto; padding: 6px 14px !important; flex-wrap: nowrap; gap: 8px; }
  .brand { flex: 1 1 auto; min-width: 0; padding: 0; }
  .brand-name { font-size: 16px; }
  .header-actions { width: auto !important; order: 0; margin-left: auto; gap: 6px; }
  .lang-switch-wrap { width: auto; height: auto; }
  .lang-switch { padding: 2px; }
  .lang-btn { min-height: 32px; padding: 6px 10px; font-size: 12.5px; }
  .lang-btn--more { padding: 6px 8px; }
  .nav-toggle { width: 38px; height: 36px; font-size: 18px; }
  .main-nav { order: 4; }
}

@media (max-width: 600px) {
  /* ② 类型层级：主标题必须明显大于正文 */
  h1, .store-title, .hero-title, .storefront h1, .page-title { font-size: 26px !important; line-height: 1.25 !important; }
  h2 { font-size: 18px; line-height: 1.35; }
  .store-eyebrow { font-size: 12.5px !important; }
  .section-note { font-size: 13px; }
  .btn { font-size: 14px !important; min-height: 42px; padding: 0 16px; }
  .product-card .title { font-size: 13.5px; -webkit-line-clamp: 2; }

  /* ③ 首页密度：hero 不再占满一屏，商品卡两列 */
  .storefront { padding: 18px 14px 16px !important; }
  .storefront > img, .store-hero img, .storefront .hero-art img { max-height: 180px; width: auto; margin: 0 auto; object-fit: contain; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .product-card { border-radius: 14px; }
  .product-card .body { padding: 10px 12px; }
  .product-card .meta, .product-card .price, .product-card .foot { font-size: 12.5px; }
  .product-card .thumb { aspect-ratio: 4 / 3; }

  /* ④ 板块与承诺卡：间距收紧、承诺卡两列 */
  .section { margin-bottom: 20px !important; padding: 14px 0 !important; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .promise-card { padding: 12px !important; }
  .promise-card h3 { font-size: 14.5px; }
  .promise-card p { font-size: 12.5px; }
  .cta-band { padding: 18px 16px !important; gap: 12px; }

  /* ⑤ 页脚：链接两列，别占一屏半 */
  .footer-inner { padding: 18px 14px !important; }
  .footer-links { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .footer-links a, .footer-links button { font-size: 13px; padding: 5px 0; }
  .demo-note, .footer-rights { font-size: 11.5px; line-height: 1.5; }

  /* ⑥ 帮助球缩小一点，别挡内容 */
  .help-btn, .help-widget { width: 54px !important; height: 54px !important; }
}

/* ==================== 手机端第四轮：密度与首屏（2026-10-08 第二轮实测） ====================
 * 实测：hero 内部 848px（占掉整屏）、商品卡里两个装饰 chip 各 36px（是我上一轮把
 * "最小可点区域 36px"错加到了非交互元素上）、页脚链接每行 45px。
 * 这一轮：① 36px 只留给真正可点的元素 ② hero 压到 ~520px ③ 页脚行高收紧。 */
@media (max-width: 600px) {
  /* ① 可点区域只作用于交互元素；装饰性 chip 恢复到紧凑尺寸 */
  .chip, .fit-chip, .sub-chip, .badge, .status-pill, .cert, .risk-chip { min-height: 0 !important; }
  .product-card .chip, .product-card .sub-chip, .product-card .fit-chip {
    font-size: 11px !important; padding: 2px 8px !important; line-height: 1.5 !important;
  }
  .product-card .thumb .badge { font-size: 10px !important; padding: 2px 6px !important; }

  /* ② 首屏：hero 不再吃掉一整屏 */
  .store-inner { padding: 14px 14px 14px !important; gap: 10px !important; }
  .store-inner h1, .store-title { margin: 6px 0 8px !important; font-size: 24px !important; }
  .store-inner p, .store-sub { margin: 0 0 10px !important; font-size: 13.5px !important; line-height: 1.55 !important; }
  .store-inner .btn, .store-cta .btn { min-height: 40px !important; }
  .store-inner > div, .store-cta { gap: 8px !important; }
  .trust-chip { font-size: 11px !important; padding: 3px 8px !important; }
  .store-eyebrow { margin-bottom: 6px !important; }

  /* ③ 页脚：每行压到 ~28px */
  .footer-links { gap: 0 12px !important; }
  .footer-links a, .footer-links button { padding: 3px 0 !important; margin: 0 !important; line-height: 1.5 !important; font-size: 12.5px !important; }
  .footer-brand { margin-bottom: 8px !important; }
  .site-footer .footer-inner > * { margin-bottom: 8px !important; }

  /* ④ 商品卡底部信息再压一档 */
  .product-card .body { gap: 6px !important; }
  .product-card .foot { padding: 8px 12px !important; }
}

/* ==================== 手机端第六轮：审核/管理页的操作按钮换行（2026-10-09） ====================
 * 回归测试实测：#/dashboard/review 在 390px 下横向溢出 69px，原因是审核卡片里的
 * 一排操作按钮（查看详情/编辑/下架…）不换行，直接撑破卡片和视口。 */
@media (max-width: 900px) {
  .review-card { display: block !important; }
  .review-card > img.thumb, .review-card .thumb {
    width: 100% !important; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 10px;
  }
  .review-card .actions, .row-actions, .inquiry-item .actions, .card .actions {
    display: flex !important; flex-wrap: wrap !important; gap: 8px !important; width: 100%;
  }
  .review-card .actions .btn, .row-actions .btn, .review-card .actions a.btn,
  .card .actions .btn, .inquiry-item .actions .btn {
    flex: 1 1 calc(50% - 8px); min-width: 0; justify-content: center; white-space: normal; text-align: center;
  }
  /* 表格类管理页：允许横向滚动而不是撑破页面 */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .card.panel, .review-card, .inquiry-item { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}

/* ==================== 首屏大图（用户 2026-10-11：像其他网站点进去第一眼的大图） ====================
 * 像素风金丝熊主体居中、四周留白；底部 26% 用渐变融进页面底色 --bg(#FFF9EC)，
 * 滚动时从大图平滑过渡到功能区，看不到硬边。 */
.hero-banner { position: relative; width: 100%; overflow: hidden; background: #26304A; line-height: 0; }
.hero-banner img {
  display: block; width: 100%; height: auto;
  /* 主体完整保留、只裁掉画面最底部约 7%（那一条有零碎杂物，且是"脚下空白"的来源）。
   * 主体脚线在 89.5% 处，裁到 93% 仍留有余量，不会被砍脚。 */
  max-height: calc(56.25vw * 0.93);
  object-fit: cover; object-position: center top;
}
.hero-banner::after {
  /* 三段式过渡：深藏青 → 暖棕雾（和品牌暖棕呼应）→ 页面底色，比"直接淡出到米白"自然得多 */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 30%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(38,48,74,.18) 14%,
    rgba(38,48,74,.34) 34%,
    rgba(138,90,43,.26) 58%,
    var(--bg-55, rgba(255,249,236,.55)) 80%,
    var(--bg, #FFF9EC) 100%);
  pointer-events: none;
}
/* 顶部与头部栏同色系的细过渡，避免"图片直接切在棕色导航条下面" */
.hero-banner::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14%;
  background: linear-gradient(180deg, rgba(74,46,8,.35) 0%, rgba(74,46,8,0) 100%);
  pointer-events: none; z-index: 1;
}
/* ==================== 四时段细节：让时间变化看得见（用户 2026-10-12） ====================
 * 只在"本来就是深色"的区域叠天空细节（首屏大图顶部 / 页脚过渡图上方），
 * 不动正文区域底色，保证任何时候文字都清晰。 */
.hero-banner::before { transition: background .8s ease; }
html[data-daypart="dawn"] .hero-banner::before  { background: linear-gradient(180deg, rgba(233,166,160,.42) 0%, rgba(233,166,160,0) 100%); }
html[data-daypart="day"] .hero-banner::before   { background: linear-gradient(180deg, rgba(120,180,240,.26) 0%, rgba(120,180,240,0) 100%); }
html[data-daypart="dusk"] .hero-banner::before  { background: linear-gradient(180deg, rgba(233,145,90,.46) 0%, rgba(233,145,90,0) 100%); }
html[data-daypart="night"] .hero-banner::before { background: linear-gradient(180deg, rgba(38,48,74,.58) 0%, rgba(38,48,74,0) 100%); }

/* 撤掉"页脚上方贴一条星空图"的做法（用户反馈：那不是背景，是粘上去的一张丑图）。
 * 时段细节改为作用在**整页最底层**的背景上，见下方 .page-bg。 */
.sky-layer { display: none !important; }

/* ==================== 整页像素风底图（置于所有内容之下，用户 2026-10-12 要求） ====================
 * 背景图就是背景：固定铺满视口、在最底层，正文与卡片都在它上面，
 * 从根上避免"黄一块白一块"以及"图上贴图"的杂乱感。 */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--bg, #FFF9EC);
  background-image: url("assets/pet/bg-tile-v1.jpg");
  background-repeat: repeat;
  background-size: 720px auto;
  opacity: .5;
  transition: opacity .8s ease, background-color .6s ease;
}
/* 夜晚：在最底层再叠一层极淡的 CSS 星空（不用图片，避免"贴图感"），并压深底色 */
html[data-daypart="night"] .page-bg {
  opacity: .42;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 12%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 38%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 64%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 82%, rgba(255,255,255,.3) 50%, transparent 51%),
    url("assets/pet/bg-tile-v1.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 720px auto;
}
html[data-daypart="dusk"] .page-bg { opacity: .5; background-color: #FDEEE0; }
html[data-daypart="dawn"] .page-bg { opacity: .5; background-color: #FDF0EE; }

/* ==================== 产品市场优化（用户 2026-10-12） ==================== */
/* 桌面端：筛选栏固定跟随、商品 3 列（原来 2 列偏空）；工具行排整齐 */
@media (min-width: 1100px) {
  .products-layout { grid-template-columns: 268px minmax(0, 1fr); gap: 22px; align-items: start; }
  .filter-panel { position: sticky; top: 86px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.results-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
}
.results-bar .results-count b { font-size: 17px; }
@media (max-width: 900px) {
  .hero-banner::after { height: 32%; }
}

/* ==================== 页脚过渡图（用户 2026-10-11：最下面要一张与底部衔接的过渡图） ==================== */
.footer-strip-wrap { position: relative; margin-top: 44px; line-height: 0; }
.footer-strip {
  display: block; width: 100%; height: auto;
  /* 换成 8:1 的扁长图后按原图比例完整显示即可（不裁切，所以不会出现"上面被遮住一块"）；
   * max-height 只作极端宽屏下的安全上限。 */
  max-height: 240px; object-fit: contain; object-position: center;
}
/* 关键：页脚自带 margin-top:50px，会和过渡图之间留出一条可见的缝（用户反馈"不丝滑"）。
 * 紧跟在过渡图后面的页脚把这段外边距去掉，让图和页脚真正贴在一起。 */
.footer-strip-wrap + .site-footer { margin-top: 0; }
/* 顶部从页面底色淡入图片，底部淡出到页脚底色，两头都无缝 */
.footer-strip-wrap::before {
  /* 顶部只做很轻的一道融合（8% 高度）：图本身顶部就是深色天空，不需要大面积覆盖，
   * 以前 16% 的盖层会让人以为图被"遮挡了一部分"。 */
  /* 做成"朦胧"过渡：14% 高度、三段柔化，像雾气一样化开（用户要求上下过渡朦胧一些） */
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 14%;
  background: linear-gradient(180deg, var(--bg, #FFF9EC) 0%, var(--bg-55, rgba(255,249,236,.55)) 45%, transparent 100%);
  pointer-events: none;
}
.footer-strip-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 24%;
  background: linear-gradient(180deg, transparent 0%, rgba(22,35,63,.35) 45%, var(--navy-900, #16233F) 100%);
  pointer-events: none;
}
@media (max-width: 900px) { .footer-strip-wrap { margin-top: 30px; } .footer-strip { max-height: 150px; } }

/* ==================== 四时段背景：凌晨 / 白天 / 黄昏 / 夜晚（按本地实时切换） ====================
 * 只调页面底色与过渡色，不动文字颜色，保证任何时段都清晰可读。 */
html[data-daypart="dawn"]  { --bg: #FDF0EE; --bg-55: rgba(253,240,238,.55); --bg-92: rgba(253,240,238,.92); --daypart-accent: #E9A6A0; }
html[data-daypart="day"]   { --bg: #FFF9EC; --bg-55: rgba(255,249,236,.55); --bg-92: rgba(255,249,236,.92); --daypart-accent: #F5C064; }
html[data-daypart="dusk"]  { --bg: #FDEEE0; --bg-55: rgba(253,238,224,.55); --bg-92: rgba(253,238,224,.92); --daypart-accent: #E9915A; }
html[data-daypart="night"] { --bg: #EAEEF7; --bg-55: rgba(234,238,247,.55); --bg-92: rgba(234,238,247,.92); --daypart-accent: #8FA6D8; }
body { background-color: var(--bg); transition: background-color .6s ease; }
/* 时段标识：右下角帮助球旁的小圆点，鼠标悬浮显示当前时段（不影响布局） */
.daypart-dot {
  position: fixed; left: 14px; bottom: 18px; z-index: 40;
  width: 10px; height: 10px; border-radius: 50%; background: var(--daypart-accent, #F5C064);
  box-shadow: 0 0 0 3px rgba(255,255,255,.55); pointer-events: none;
}
@media (max-width: 900px) { .daypart-dot { display: none; } }

/* 首屏"下拉"提示：贴在大图底部渐变之上，轻柔呼吸动画 */
.hero-scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 6%;
  z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(38,48,74,.72); color: #FFF6E8; border: 1px solid rgba(255,246,232,.35);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-family: inherit; cursor: pointer;
  animation: heroBounce 2.4s ease-in-out infinite;
}
.hero-scroll svg { animation: heroChevron 2.4s ease-in-out infinite; }
/* 鼠标移上去/键盘聚焦时停住动画：手指瞄准时按钮别乱动（顺带让自动化测试能点中） */
.hero-scroll:hover, .hero-scroll:focus-visible { animation: none; }
.hero-scroll:hover svg, .hero-scroll:focus-visible svg { animation: none; opacity: 1; }
@keyframes heroBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(4px); } }
@keyframes heroChevron { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll, .hero-scroll svg { animation: none; } }
@media (max-width: 600px) { .hero-scroll { font-size: 12px; padding: 7px 12px; bottom: 7%; } }

/* 小图：区块标题旁的像素图标 + 空态大图（2026-10-11 按用户建议补齐） */
.sec-ico { width: 34px; height: 34px; border-radius: 9px; margin-right: 9px; vertical-align: -7px; image-rendering: pixelated; }
.sec-ico-lg { width: 104px; height: 104px; border-radius: 16px; image-rendering: pixelated; }

/* ==================== 手机端第五轮：按真实结构压缩（2026-10-08 第三次实测） ====================
 * 实测：.store-copy 560px + .store-art 223px = 822px 首屏；页脚每个链接行 42px（被拉伸）。
 * 这一轮针对真实类名下手。 */
@media (max-width: 600px) {
  /* 首屏文案块：按钮并排、段落限 3 行、标题收紧 */
  .store-copy { display: flex; flex-direction: column; gap: 8px !important; }
  .store-copy > * { margin: 0 !important; }
  .store-copy h1 { font-size: 24px !important; line-height: 1.28 !important; }
  .store-copy p { font-size: 13.5px !important; line-height: 1.5 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* 按钮行 / 徽标行：横向排布，省掉一半纵向空间 */
  .store-copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px !important; }
  .store-copy > div .btn { flex: 0 1 auto; min-height: 38px !important; padding: 0 14px !important; font-size: 13.5px !important; }
  .store-copy .trust-chip, .store-copy .chip { font-size: 11px !important; padding: 3px 8px !important; }
  /* 主视觉图压到 150px 高，保留形象但不吃屏 */
  .store-art { max-height: 160px; overflow: hidden; }
  .store-art img { max-height: 150px; width: auto; margin: 0 auto; object-fit: contain; }

  /* 页脚链接行：不再被拉伸成 42px */
  .footer-links a, .footer-links button { min-height: 0 !important; height: auto !important; align-items: center; padding: 3px 0 !important; }
  .footer-links { grid-auto-rows: minmax(0, auto) !important; }
  .demo-note { padding-top: 8px !important; }
  .footer-rights { padding-top: 8px !important; }
}
