/* cargo-storefront 主题系统：CSS 变量整套换肤（AI 选主题 → 切变量） */
:root {
  --bg: #faf7f4;
  --bg-soft: #f3ede7;
  --card: #ffffff;
  --text: #2b2b2b;
  --text-sub: #8a8178;
  --primary: #7c5cff;
  --primary-soft: #ece7ff;
  --accent: #ffb84d;
  --border: #e8e0d8;
  --radius: 14px;
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --mw: 1200px;              /* 容器最大宽（超大屏放宽） */
  --gap: 16px;
  --cols: repeat(auto-fill, minmax(200px, 1fr));
}
/* 6 套主题 */
[data-theme="boho"] {
  --bg: #fdf6ec; --bg-soft: #f7ead6; --primary: #c97b4a; --primary-soft: #fbe9d9;
  --accent: #e8a87c; --text-sub: #a08a6f; --border: #f0ddc4; --radius: 18px;
}
[data-theme="minimal"] {
  --bg: #f7f7f7; --bg-soft: #efefef; --primary: #1a1a1a; --primary-soft: #e9e9e9;
  --accent: #999999; --text-sub: #777; --border: #e2e2e2; --radius: 8px;
}
[data-theme="vintage"] {
  --bg: #f8f0e3; --bg-soft: #efe1ca; --primary: #8c6b3f; --primary-soft: #f0e3cd;
  --accent: #b8860b; --text-sub: #96836a; --border: #e6d5b8; --radius: 12px;
}
[data-theme="sweet"] {
  --bg: #fdf3f7; --bg-soft: #fbe4ee; --primary: #d6709f; --primary-soft: #fde3ee;
  --accent: #f5a8c9; --text-sub: #b78a9d; --border: #f5d9e5; --radius: 20px;
}
[data-theme="dark"] {
  --bg: #16161a; --bg-soft: #1f1f26; --card: #23232c; --text: #f0eef2;
  --text-sub: #9a97a6; --primary: #8f7bff; --primary-soft: #2a2640;
  --accent: #ff5f8f; --border: #33333d; --radius: 12px;
}

/* 新增 4 套风格主题 */
[data-theme="luxe"] {
  --bg: #121212; --bg-soft: #1a1a1a; --card: #1f1f1f; --text: #f5f0e8;
  --text-sub: #a89f92; --primary: #d4af37; --primary-soft: #2a2418;
  --accent: #f0d890; --border: #33302a; --radius: 10px;
  font-family: Georgia, "Times New Roman", serif;
}
[data-theme="elegant"] {
  --bg: #f7f8fc; --bg-soft: #edf0f8; --primary: #274b8a; --primary-soft: #e3eaf5;
  --accent: #b8962e; --text-sub: #6b7690; --border: #dde3ee; --radius: 10px;
}
[data-theme="gift"] {
  --bg: #fdf6f0; --bg-soft: #faeadd; --primary: #c0392b; --primary-soft: #fde8e4;
  --accent: #e8a13a; --text-sub: #a0806b; --border: #f0d9cc; --radius: 16px;
}
[data-theme="trend"] {
  --bg: #f4f2ff; --bg-soft: #e8e4ff; --primary: #ff4d8d; --primary-soft: #ffe4ee;
  --accent: #4dd2ff; --text-sub: #8a7fa0; --border: #e5e0f5; --radius: 22px;
}
[data-theme="nature"] {
  --bg: #f2f7f0; --bg-soft: #e3efe0; --primary: #5d8a4e; --primary-soft: #e3efe0;
  --accent: #b5c98a; --text-sub: #7d9176; --border: #dce8d6; --radius: 16px;
}

/* ============ 断点体系 ============
   手机 <600 · 平板 600-1023 · PC 1024-1599 · 大屏/会议触屏 ≥1600 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  transition: background .3s, color .3s;
  min-height: 100dvh; display: flex; flex-direction: column;
  -webkit-text-size-adjust: 100%;
}
.main { flex: 1; }

/* 容器（全屏自适应：小屏满宽，大屏按 --mw 居中，超大屏放宽） */
.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 16px; width: 100%; }

/* 顶栏 */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-sub); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 8px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--text-sub); text-decoration: none; margin-left: 12px; }
.topbar a:hover { color: var(--primary); }
/* 右侧：导航+下拉强制单行 flex（不再被行内流折行） */
.top-right { display: flex; flex-wrap: nowrap; align-items: center; margin-left: auto; }
.top-right > a { white-space: nowrap; flex: 0 0 auto; }
.lang-currency { display: flex; align-items: center; gap: 6px; margin-left: 14px; flex: 0 0 auto; }
.lc-select {
  padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text); font-size: 12px; outline: none; cursor: pointer;
  max-width: 120px;
}

/* 中等宽度（窄桌面/平板横屏）：右侧导航+下拉强制单行，避免下拉组被挤到第二行 */
@media (min-width: 600px) and (max-width: 1100px) {
  .topbar .top-right { display: flex; flex-wrap: nowrap; align-items: center; }
  .topbar .top-right > a { margin-left: 10px; white-space: nowrap; }
  .topbar .lang-currency { margin-left: 8px; gap: 4px; }
  .topbar .lc-select { max-width: 88px; padding: 4px 6px; font-size: 11.5px; }
  .topbar-slogan { max-width: 30vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* 头部 */
.header { max-width: var(--mw); margin: 0 auto; padding: 16px; display: flex; align-items: center; gap: 20px; width: 100%; }
.logo { font-size: clamp(19px, 2.2vw, 25px); font-weight: 800; color: var(--primary); letter-spacing: 1px; text-decoration: none; white-space: nowrap; }
.logo small { display: block; font-size: 10px; color: var(--text-sub); font-weight: 400; letter-spacing: 2px; }
/* 主导航（logo 右侧：低价专区/全部商品/询盘） */
.main-nav { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.main-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }
@media (max-width: 899px) { .main-nav { gap: 10px; } .main-nav a { font-size: 13px; } }
.search { flex: 1; display: flex; background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; min-width: 0; }
.search input { flex: 1; border: none; outline: none; padding: 12px 18px; font-size: 14px; background: transparent; color: var(--text); min-width: 0; }
.search button { background: var(--primary); color: #fff; border: none; padding: 0 22px; cursor: pointer; font-size: 15px; }
.search button:hover { opacity: .9; }
.header .cta { display: flex; gap: 10px; flex-shrink: 0; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-ghost { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn:hover { opacity: .88; }

/* 主导航 */
.nav { background: var(--primary); }
.nav .wrap { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { color: #fff; text-decoration: none; padding: 13px 16px; font-size: 14px; display: block; white-space: nowrap; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.15); }

/* Hero */
.hero { max-width: var(--mw); margin: 18px auto 0; padding: 0 16px; width: 100%; }
.hero .banner {
  background: linear-gradient(120deg, var(--primary-soft), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 44px); position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(22px, 3.4vw, 32px); margin-bottom: 10px; color: var(--primary); line-height: 1.3; }
.hero p { color: var(--text-sub); font-size: clamp(13px, 1.4vw, 14.5px); max-width: 620px; line-height: 1.8; }
.hero .banner-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 板块 */
.section { max-width: var(--mw); margin: 28px auto 0; padding: 0 16px; width: 100%; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; }
.section-head h2 { font-size: clamp(17px, 2vw, 20px); display: flex; align-items: center; gap: 8px; }
.sec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); display: inline-block; }
.section-head a { color: var(--text-sub); font-size: 13px; text-decoration: none; white-space: nowrap; }
.section-head a:hover { color: var(--primary); }

/* 产品网格：断点显式控制列数 */
.grid { display: grid; gap: var(--gap); }
/* 手机：2 列 */
.grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
/* 平板：3-4 列 */
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 820px) { .grid { grid-template-columns: repeat(4, 1fr); } }
/* PC：5-6 列 */
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
/* 大屏/会议触屏：8 列 + 更宽容器 */
@media (min-width: 1600px) {
  :root { --mw: 1680px; }
  .grid { grid-template-columns: repeat(8, 1fr); gap: 18px; }
}
@media (min-width: 2200px) {
  :root { --mw: 2100px; }
  .grid { grid-template-columns: repeat(10, 1fr); gap: 20px; }
}
/* 类目块（小卡）用较少列 */
.grid.cats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .grid.cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .grid.cats { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1600px) { .grid.cats { grid-template-columns: repeat(8, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-soft); display: block; }
.noimg { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--text-sub); font-size: 12px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title {
  font-size: clamp(12px, 1.2vw, 13px); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--text); word-break: break-all;
}
.card-price { display: flex; align-items: baseline; gap: 8px; }
.card-price b { color: var(--primary); font-size: clamp(14px, 1.4vw, 16px); }
.card-price small { color: var(--text-sub); font-size: 11px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }

/* 筛选 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters select, .filters input[type=text] {
  padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text); font-size: 13px; outline: none; max-width: 100%;
}
.filters .tag { cursor: pointer; padding: 8px 14px; font-size: 12px; }
.filters .tag.active { background: var(--primary); color: #fff; }

/* 详情页 */
.detail { max-width: var(--mw); margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; }
@media (min-width: 700px) { .detail { grid-template-columns: minmax(320px, 46%) 1fr; gap: 32px; } }
@media (min-width: 1600px) { .detail { grid-template-columns: minmax(480px, 42%) 1fr; } }
.detail .gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.detail .thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.detail .thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.detail .thumbs img.active { border-color: var(--primary); }
.detail h1 { font-size: clamp(17px, 2vw, 22px); line-height: 1.5; margin-bottom: 12px; word-break: break-word; }
.detail .price-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.detail .price-box .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; gap: 10px; }
.detail .price-box .row:last-child { border: none; }
.detail .price-box b { color: var(--primary); font-size: 22px; }
.detail .meta { font-size: 13px; color: var(--text-sub); line-height: 2.1; }
.detail .actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 询盘表单 */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; max-width: 560px; margin: 24px auto; width: 100%; }
.form-card label { display: block; font-size: 13px; margin: 12px 0 6px; }
.form-card input, .form-card textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; background: var(--bg); color: var(--text); font-family: var(--font);
}
.form-card textarea { min-height: 110px; resize: vertical; }

/* 页脚贴底 */
.footer { margin-top: auto; border-top: 1px solid var(--border); padding: 26px 12px; text-align: center; color: var(--text-sub); font-size: 12px; }
.empty { text-align: center; padding: 60px 0; color: var(--text-sub); grid-column: 1 / -1; }

/* ============ 手机优化 ============ */
@media (max-width: 599px) {
  .header { flex-wrap: wrap; padding: 12px 12px; gap: 12px; }
  .logo { order: 1; flex: 1; }
  .header .cta { order: 2; }
  .header .cta .btn { padding: 9px 14px; font-size: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .topbar .wrap { flex-direction: row; align-items: center; gap: 4px; }
  .topbar-slogan { display: none; }
  .topbar .top-right { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; width: 100%; }
  .topbar .top-right > a { margin-left: 0; }
  .lang-currency { margin-left: auto; }
  .card-title { -webkit-line-clamp: 2; }
  .hero .banner { padding: 22px 18px; }
  .section { margin-top: 22px; }
  .btn { padding: 10px 16px; }
}

/* ============ 触屏优化（手机/平板/会议手写屏） ============ */
@media (pointer: coarse) {
  .btn, .nav a, .filters .tag { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .search button { min-width: 48px; }
  .filters select, .filters input[type=text], .form-card input, .form-card textarea { min-height: 46px; font-size: 16px; } /* 16px 防 iOS 聚焦缩放 */
  .card:hover { transform: none; }
  .tag { padding: 6px 12px; }
  .detail .thumbs img { width: 68px; height: 68px; }
}
/* 会议手写大屏（触控笔书写，需更大可点区与宽松间距） */
@media (pointer: coarse) and (min-width: 1600px) {
  .btn { min-height: 52px; font-size: 15px; padding: 12px 26px; }
  .search input { font-size: 17px; padding: 15px 20px; }
  .filters select { min-height: 52px; font-size: 15px; }
  .card-body { padding: 14px 16px 16px; }
  .card-title { font-size: 15px; }
  .card-price b { font-size: 18px; }
}

/* ============ 平板细节 ============ */
@media (min-width: 600px) and (max-width: 1023px) {
  .header .cta .btn { padding: 10px 16px; }
}

/* 前台选货按钮 */
/* SKU 单元格标签 */
.sku-cell .t{display:flex;flex-wrap:wrap;gap:3px;margin-top:3px;justify-content:center}
.sku-cell .t span{font-size:10px;color:var(--primary,#4a7cf7);background:var(--primary-soft,#eef4ff);border-radius:4px;padding:1px 4px;line-height:1.4}
/* SKU 命中规格 badge */
.hit-skus{display:flex;flex-direction:column;gap:4px;margin:4px 0}
.hit-sku{display:flex;align-items:center;gap:6px;background:var(--primary-soft,#eef4ff);border:1px solid var(--primary,#4a7cf7);border-radius:6px;padding:3px 8px;font-size:12px;color:var(--primary,#4a7cf7);text-decoration:none;width:fit-content;max-width:100%}
.hit-sku img{width:22px;height:22px;object-fit:cover;border-radius:4px;flex:none}
.hit-sku span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hit-sku b{margin-left:6px;color:var(--danger,#e63946)}
/* SKU 分组（链接→SKU 两级结构） */
.sku-group-h{background:#f7f4ec;cursor:pointer;user-select:none}
.sku-group-h:hover{background:#f0ead9}
.sku-group-h td{font-size:13px;padding:7px 10px;border-top:2px solid #e2d9c3}
.sku-group-h .g-cnt{display:inline-block;background:#e8f0fe;color:#2f6fd0;border-radius:99px;padding:1px 8px;font-size:11px;margin-left:6px}
.sku-group-h .g-arr{float:right;color:#999}
.sku-gr{background:#fff}
.add-shop-btn{display:block;width:100%;margin-top:8px;padding:8px;border:1.5px solid var(--primary);border-radius:10px;background:var(--primary);color:#fff;font-size:12px;font-weight:600;cursor:pointer;font-family:var(--font)}
.add-shop-btn:hover{opacity:.9}

/* ===== 详情页 v2：法式轻奢通用版式（AI 内容驱动）===== */

/* R16：多语言防撑爆——长词(德/俄/阿等)自动换行，不撑破卡片/表格/按钮 */
.detail2,.d2-hero,.d2-info,.d2-spec-table{overflow-wrap:break-word}
.detail2 h1,.detail2 .d2-sub,.detail2 .d2-sku-no,.detail2 td,.detail2 th,.detail2 .btn{word-break:normal;overflow-wrap:break-word}  /* R28：中文按字换行、英文单词整体换行、超长词才断；keep-all 会导致中文长标题不换行溢出 */


.detail2 { max-width: var(--mw); margin: 0 auto; padding: 26px 16px 40px; width: 100%; }
.d2-hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 820px) { .d2-hero { grid-template-columns: minmax(320px, 46%) 1fr; gap: 44px; } }
.d2-gallery { position: sticky; top: 12px; z-index: 5; }
@media (max-width: 820px) {
  .d2-gallery { position: static; z-index: auto; }
}
.d2-mainimg img { width: 100%; border-radius: 18px; box-shadow: 0 20px 50px rgba(43,29,22,.12); display: block; background: linear-gradient(135deg,#FBF6EE,#F1E4D0); }
.d2-kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #C9A24B; font-weight: 700; margin-bottom: 10px; }
.d2-info h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px,3vw,34px); line-height: 1.35; margin: 0 0 10px; font-weight: 600; }
.d2-sub { color: var(--text-sub); font-size: 15px; line-height: 1.7; margin: 0 0 20px; font-style: italic; }
.d2-price { display: flex; align-items: center; gap: 22px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.d2-price-main { display: flex; flex-direction: column; gap: 2px; }
.d2-price-main span { font-size: 11px; color: var(--text-sub); text-transform: uppercase; letter-spacing: .12em; }
.d2-price-main b { font-size: 30px; color: #C20E3A; font-family: Georgia, 'Times New Roman', serif; line-height: 1.1; }
.d2-price-ref { font-size: 12px; color: var(--text-sub); line-height: 1.5; }
.d2-tiers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.d2-tier { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 13px; }
.d2-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.d2-badges span { font-size: 12px; background: rgba(201,162,75,.12); border: 1px solid rgba(201,162,75,.35); color: #8a6d2f; border-radius: 20px; padding: 6px 12px; }
.d2-meta { margin-top: 16px; font-size: 13px; color: var(--text-sub); line-height: 2; display: flex; flex-direction: column; }
.d2-sec-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(18px,2.2vw,24px); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.d2-sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,162,75,.5), transparent); }
.d2-usp { margin: 44px 0 10px; }
.d2-usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.d2-usp-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; transition: .2s; }
.d2-usp-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.d2-usp-ic { font-size: 22px; line-height: 1.2; }
.d2-usp-item b { display: block; font-size: 14px; margin-bottom: 4px; }
.d2-usp-item span { font-size: 12px; color: var(--text-sub); line-height: 1.6; }
.d2-detail { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 44px; }
@media (min-width: 900px) { .d2-detail { grid-template-columns: 1fr 1fr; gap: 48px; } }
.d2-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.d2-spec-table th { text-align: left; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); width: 38%; font-weight: 600; }
.d2-spec-table td { padding: 10px 12px; border: 1px solid var(--border); }
.d2-story-text { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.9; font-style: italic; }
.d2-scenes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.d2-scenes b { margin-right: 6px; }
.d2-scene { background: var(--bg-soft); border-radius: 18px; padding: 5px 12px; font-size: 12px; }

/* 详情页 v2 缩略图（.detail2 下 thumbs）*/
.detail2 .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail2 .thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; background: var(--bg-soft); }
.detail2 .thumbs img.active { border-color: #C9A24B; }

/* ===== 详情页 v2 图文区 ===== */
.d2-visuals { margin: 48px 0 10px; display: flex; flex-direction: column; gap: 44px; }
.d2-vis { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.d2-vis-img img { width: 100%; border-radius: 18px; display: block; background: var(--bg-soft); }
.d2-vis.wide { position: relative; }
.d2-vis.wide .d2-vis-text { position: absolute; inset-inline: 24px; bottom: 22px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5); background: linear-gradient(90deg, rgba(20,12,8,.55), rgba(20,12,8,.1)); padding: 20px 22px; border-radius: 14px; backdrop-filter: blur(2px); }
.d2-vis-text h3 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(18px, 2.2vw, 26px); margin: 8px 0 10px; font-weight: 600; }
.d2-vis-text p { font-size: 14px; line-height: 1.8; opacity: .95; }
.d2-vis.portrait, .d2-vis.square { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .d2-vis.portrait, .d2-vis.square { grid-template-columns: 1fr 1fr; gap: 40px; }
  .d2-vis.square .d2-vis-img { max-width: 520px; }
  .d2-vis.portrait .d2-vis-img img { max-height: 640px; object-fit: cover; }
  .d2-vis-text h3 { margin-top: 4px; }
}

/* 原图图文版式：细节四宫格 / 图文双栏 */
.d2-vis-grid { margin: 48px 0 10px; }
.d2-grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 820px) { .d2-grid4 { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.d2-grid4 figure { margin: 0; }
.d2-grid4 img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; display: block; background: var(--bg-soft); }
.d2-grid4 figcaption { font-size: 12px; color: var(--text-sub); text-align: center; padding: 8px 0 0; }
.d2-vis.duo { grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) {
  .d2-vis.duo { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .d2-vis.duo .d2-vis-img img { max-height: 620px; object-fit: cover; width: 100%; border-radius: 18px; }
  .d2-vis.duo:nth-of-type(even) .d2-vis-img { order: 2; }
}

/* 欧美审美版式 v2：精选 3 模块 + 留白节奏 */
.d2-visuals { gap: 72px; }
.d2-vis.wide .d2-vis-img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; border-radius: 18px; }
.d2-vis.duo .d2-vis-img img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 18px; }
.d2-grid3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .d2-grid3 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.d2-grid3 figure { margin: 0; }
.d2-grid3 img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; display: block; background: var(--bg-soft); }
.d2-grid3 figcaption { font-size: 12px; color: var(--text-sub); text-align: center; padding: 8px 0 0; letter-spacing: .04em; }
.d2-vis-text h3 { font-size: clamp(17px, 2vw, 22px); }

/* ================================================================

/* HERO：沉浸主图 + 精致信息排版 */
.d2-mainimg img { border-radius: 20px; box-shadow: 0 24px 60px rgba(43,29,22,.14); }
.d2-gallery { align-self: start; }
.d2-kicker {
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: #A9852F;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.d2-kicker::before { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, #C9A24B, transparent); }
.d2-info h1 {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.28; letter-spacing: .01em;
}
.d2-sub { font-style: italic; font-family: Georgia, serif; color: #8a7a63; font-size: 15px; line-height: 1.8; }

.d2-price { border-top: 1px solid rgba(201,162,75,.35); border-bottom: 1px solid rgba(201,162,75,.35); }
.d2-price-main b { font-size: 34px; color: #B3123B; font-family: Georgia, serif; }
.d2-price-main span { letter-spacing: .18em; }
.d2-price-ref { color: #8a7a63; }
.d2-price-ref span { color: #5a4a33; }

.d2-tier { border: 1px solid rgba(201,162,75,.4); background: rgba(201,162,75,.08); color: #6d5420; border-radius: 22px; padding: 6px 16px; }
.d2-badges span { border: 1px solid rgba(201,162,75,.4); background: rgba(255,255,255,.7); color: #6d5420; box-shadow: 0 2px 8px rgba(201,162,75,.15); }

/* 按钮精致化 */
.detail2 .btn-primary {
  background: linear-gradient(135deg, #C9A24B, #A9852F); color: #fff; border: none;
  box-shadow: 0 8px 22px rgba(169,133,47,.35); letter-spacing: .04em; border-radius: 12px; padding: 13px 26px; transition: .25s;
}
.detail2 .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(169,133,47,.45); }
.detail2 .btn-ghost { border: 1.5px solid rgba(169,133,47,.5); color: #6d5420; border-radius: 12px; padding: 12px 24px; letter-spacing: .04em; transition: .25s; }
.detail2 .btn-ghost:hover { background: rgba(201,162,75,.08); }

/* 区块标题：金色菱形 + 衬线 + 细线 */
.d2-sec-title { font-family: Georgia, serif; font-weight: 500; letter-spacing: .02em; }
.d2-sec-title::before { content: '◆'; font-size: 10px; color: #C9A24B; margin-right: 10px; }
.d2-sec-title::after { background: linear-gradient(90deg, rgba(201,162,75,.55), transparent); height: 1px; }

/* USP 卡片：米白底 + 金边 + 悬停浮起 */
.d2-usp-item { background: linear-gradient(180deg, #fffdf8, #fbf5e8); border: 1px solid rgba(201,162,75,.22); border-radius: 16px; padding: 22px 18px; transition: .25s; }
.d2-usp-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(169,133,47,.16); border-color: rgba(201,162,75,.5); }
.d2-usp-ic { font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.08)); }
.d2-usp-item b { font-size: 14px; letter-spacing: .02em; color: #3d2f1d; }
.d2-usp-item span { color: #8a7a63; }

/* 规格表：卡片化 + 斑马纹 + 金角 */
.d2-spec-table { border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(43,29,22,.05); }
.d2-spec-table th { background: #f7efe0; color: #5a4a33; font-weight: 600; letter-spacing: .03em; border: none; border-bottom: 1px solid rgba(201,162,75,.2); }
.d2-spec-table td { border: none; border-bottom: 1px solid rgba(201,162,75,.12); background: #fffdf8; }
.d2-spec-table tr:last-child td { border-bottom: none; }

/* 故事：引号装饰 + 衬线 */
.d2-story-text { font-family: Georgia, serif; font-size: 16px; line-height: 2; color: #4a3a28; position: relative; padding-left: 20px; }
.d2-story-text::before { content: '“'; position: absolute; left: 0; top: -14px; font-size: 52px; color: #C9A24B; font-family: Georgia, serif; line-height: 1; }
.d2-scene { background: rgba(201,162,75,.1); border: 1px solid rgba(201,162,75,.3); color: #6d5420; border-radius: 20px; }

/* 图文区：wide 遮罩精化 + duo 双栏 + grid 悬停 */
.d2-visuals { gap: 84px; }
.d2-vis.wide .d2-vis-img img { box-shadow: 0 30px 70px rgba(43,29,22,.18); }
.d2-vis.wide .d2-vis-text {
  background: linear-gradient(90deg, rgba(20,12,8,.72), rgba(20,12,8,.28) 55%, transparent);
  border-left: 3px solid #C9A24B; border-radius: 0 14px 14px 0; backdrop-filter: blur(3px);
}
.d2-vis.wide .d2-vis-text .d2-kicker { color: #E5C158; }
.d2-vis.wide .d2-vis-text .d2-kicker::before { background: linear-gradient(90deg, #E5C158, transparent); }
.d2-vis.wide .d2-vis-text h3 { font-family: Georgia, serif; font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; }
.d2-vis.wide .d2-vis-text p { opacity: .92; }
.d2-vis.duo .d2-vis-img img { box-shadow: 0 22px 50px rgba(43,29,22,.12); }
.d2-vis.duo .d2-vis-text h3 { font-family: Georgia, serif; }
.d2-vis.duo .d2-vis-text p { font-family: Georgia, serif; font-style: italic; color: #7a6a52; font-size: 15px; line-height: 1.95; }
.d2-grid3 img { transition: transform .45s cubic-bezier(.2,.7,.3,1.2), box-shadow .3s; }
.d2-grid3 figure:hover img { transform: scale(1.05); box-shadow: 0 14px 30px rgba(43,29,22,.18); }
.d2-grid3 figcaption { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8a7a63; padding-top: 10px; }

/* 滚动渐入动效（轻量，阅读引导） */
@keyframes d2fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.d2-hero { animation: d2fadeUp .5s ease both; }
.d2-usp { animation: d2fadeUp .55s ease .08s both; }
.d2-detail { animation: d2fadeUp .55s ease .15s both; }
.d2-visuals { animation: d2fadeUp .6s ease .2s both; }

/* 相似款标题统一 */
.section-head h2 { font-family: Georgia, serif; }

/* ================================================================

/* 主图：4:5 竖幅（杂志感）+ 柔和阴影 + 直角 */
.d2-mainimg img { border-radius: 0; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.07); }
.detail2 .thumbs img { border-radius: 0; border: 1px solid transparent; }
.detail2 .thumbs img.active { border-color: #111; }

/* ===== 图文详情区（Amazon A+ 风格：全宽/交替/三图/规格，图文并茂）===== */
.d2-visuals { margin-top: 64px; display: flex; flex-direction: column; gap: 56px; }
.d2-blk { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
@media (min-width: 900px) {
  .d2-blk.split-l, .d2-blk.split-r, .d2-blk.spec { grid-template-columns: 1fr 1fr; gap: 44px; }
}
.d2-blk-img img { width: 100%; display: block; object-fit: cover; background: #2b2621; }
.d2-blk.full .d2-blk-img img { aspect-ratio: 16/7; }
.d2-blk.split-l .d2-blk-img img, .d2-blk.split-r .d2-blk-img img { aspect-ratio: 4/5; }
.d2-blk.spec .d2-blk-img img { aspect-ratio: 1/1; }
.d2-blk.full { position: relative; }
.d2-blk.full .d2-blk-text {
  position: absolute; inset-inline: 0; bottom: 0; color: #fff; padding: 34px 30px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); text-align: left;
}
.d2-blk-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.d2-blk.full .d2-blk-kicker { color: #E5C158; }
.d2-blk-text h3, .d2-blk-ttl { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(20px, 2.4vw, 30px); margin: 0 0 12px; color: #1a1a1a; }
.d2-blk.full .d2-blk-text h3 { color: #fff; }
.d2-blk-text p { font-size: 14px; line-height: 1.9; color: #666; margin: 0; }
.d2-blk.full .d2-blk-text p { color: rgba(255,255,255,.9); }
.d2-blk-bullets { margin: 16px 0 0; padding: 0; list-style: none; }
.d2-blk-bullets li { font-size: 13px; color: #555; padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid #F0EFEC; }
.d2-blk-bullets li::before { content: '—'; position: absolute; left: 0; color: #C9A24B; }
.d2-blk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.d2-blk-chips span { border: 1px solid #E4E2DD; padding: 5px 14px; font-size: 11px; letter-spacing: .05em; color: #777; text-transform: uppercase; }
.d2-triple { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .d2-triple { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.d2-triple figure { margin: 0; }
.d2-triple img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #F7F6F3; }
.d2-triple figcaption { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #999; padding-top: 10px; text-align: center; }
.d2-blk.spec .d2-spec-table { border-collapse: collapse; }

/* 图文融合 v2：全宽图为主体 + 文字浮层（杂志式，消除左右分割的空旷感） */
.d2-visuals { margin-top: 64px; display: flex; flex-direction: column; gap: 60px; }
.d2-blk { display: block; position: relative; }
.d2-blk-img img { width: 100%; display: block; object-fit: cover; background: #2b2621; }
.d2-blk.full .d2-blk-img img, .d2-blk.split .d2-blk-img img, .d2-blk.spec .d2-blk-img img { aspect-ratio: 16/9; }
@media (max-width: 700px) {
  .d2-blk.full .d2-blk-img img, .d2-blk.split .d2-blk-img img, .d2-blk.spec .d2-blk-img img { aspect-ratio: 4/5; }
}
.d2-blk.full .d2-blk-text, .d2-blk.split .d2-blk-text {
  position: absolute; inset-inline: 0; bottom: 0; color: #fff; padding: 40px 34px;
  background: linear-gradient(180deg, rgba(15,10,6,.12) 0%, rgba(15,10,6,.75) 45%, rgba(15,10,6,.94) 100%);
  text-align: left;
}
/* R15 详情图文浮层文字可读性：白字加阴影，浅色图上也清晰 */
.d2-blk-kicker, .d2-blk.full .d2-blk-text h3, .d2-blk.split .d2-blk-text h3,
.d2-blk.full .d2-blk-text p, .d2-blk.split .d2-blk-text p,
.d2-blk-bullets li, .d2-blk-chips span {
  text-shadow: 0 1px 5px rgba(0,0,0,.65);
}
.d2-blk.full .d2-blk-text { padding: 56px 34px 34px; }
.d2-blk-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #E5C158; margin-bottom: 10px; }
.d2-blk-text h3, .d2-blk-ttl { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 10px; color: #fff; }
.d2-blk.spec .d2-blk-ttl { color: #1a1a1a; }
.d2-blk-text p { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.92); margin: 0; max-width: 640px; }
.d2-blk-bullets { margin: 14px 0 0; padding: 0; list-style: none; }
.d2-blk-bullets li { font-size: 13px; color: rgba(255,255,255,.95); padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid rgba(255,255,255,.2); max-width: 560px; }
.d2-blk-bullets li::before { content: '—'; position: absolute; left: 0; color: #E5C158; }
.d2-blk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.d2-blk-chips span { border: 1px solid rgba(255,255,255,.55); padding: 5px 14px; font-size: 11px; letter-spacing: .05em; color: #fff; text-transform: uppercase; background: rgba(0,0,0,.25); }
.d2-triple { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .d2-triple { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.d2-triple figure { margin: 0; position: relative; }
.d2-triple img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #F7F6F3; }
.d2-triple figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 4px 10px; }
.d2-blk.spec { padding: 0; }
.d2-blk.spec .d2-blk-text { padding: 28px 0 0; }
.d2-blk.spec .d2-spec-table { border-collapse: collapse; }
.d2-blk.spec .d2-spec-table th { background: #F7F6F3; text-align: left; padding: 10px 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #666; border: 1px solid #EDEBE6; width: 36%; }
.d2-blk.spec .d2-spec-table td { padding: 10px 14px; border: 1px solid #EDEBE6; font-size: 13px; color: #444; }

/* 图文融合 v2 优化：三图标签去底框 + 浮层位置交替 + 渐变柔和 */
.d2-triple figcaption { background: none; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.d2-blk.full .d2-blk-text, .d2-blk.split .d2-blk-text { background: linear-gradient(180deg, transparent 0%, rgba(15,10,6,.35) 40%, rgba(15,10,6,.88) 100%); }
.d2-blk.split:nth-child(odd) .d2-blk-text { text-align: left; }
.d2-blk.split:nth-child(even) .d2-blk-text { text-align: right; }
.d2-blk.split:nth-child(even) .d2-blk-text p, .d2-blk.split:nth-child(even) .d2-blk-bullets { margin-inline-start: auto; }
.d2-blk.split:nth-child(even) .d2-blk-bullets li { max-width: 560px; }

/* 首屏：主图 1:1（缩略图区变矮，首屏放得下）+ 右侧设计故事 */
.d2-mainimg img { aspect-ratio: 1/1; object-fit: cover; }
.d2-gallery { position: static !important; }
.d2-story-inline { margin-top: 26px; padding-top: 20px; border-top: 1px solid #ECECEC; }
.d2-story-inline-label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #C9A24B; margin-bottom: 10px; font-weight: 600; }
.d2-story-inline-text { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 15px; line-height: 1.9; color: #4a3a28; margin: 0 0 14px; }
.d2-story-inline-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d2-story-inline-chips span { border: 1px solid #E4E2DD; padding: 4px 12px; font-size: 11px; color: #888; letter-spacing: .04em; }

/* ===== 严谨性修复（v0.3.79）：缩略图单行 / 按钮留白 / story 可读性 / 对齐 ===== */
/* ① 缩略图：8 张单行横向滚动（不换行塌陷） */
.detail2 .thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.detail2 .thumbs::-webkit-scrollbar { display: none; }
.detail2 .thumbs img { flex-shrink: 0; }
/* ② 按钮留白防贴边 */
.detail2 .actions { gap: 10px; }
.detail2 .actions .btn { padding: 12px 22px; white-space: normal; line-height: 1.4; }
.detail2 .actions .btn-ghost { padding: 11px 20px; }
/* ③ story 可读性：正常字体 + 更深的颜色 + 宽松行高 */
.d2-story-inline-text { font-style: normal; font-size: 14.5px; line-height: 2; color: #4a3a28; }
.d2-story-inline { margin-top: 24px; padding-top: 18px; }
/* ④ 标签/徽章垂直居中 */
.d2-badges span { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.d2-tier { display: inline-flex; align-items: center; line-height: 1; }
/* ⑤ 价格区对齐 */
.d2-price { align-items: baseline; }
.d2-price-ref { line-height: 1.6; }
/* ⑥ meta 间距均衡 */
.d2-meta { margin-top: 14px; line-height: 2.1; }

/* 固定板块：规格参数（hero 后、图文区前，所有产品位置一致） */
.d2-spec-fixed { margin-top: 56px; }
.d2-spec-fixed .d2-spec-table { border-collapse: collapse; width: 100%; }
.d2-spec-fixed .d2-spec-table th { background: #F7F6F3; text-align: left; padding: 11px 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #666; border: 1px solid #EDEBE6; width: 34%; font-weight: 600; }
.d2-spec-fixed .d2-spec-table td { padding: 11px 16px; border: 1px solid #EDEBE6; font-size: 13.5px; color: #444; background: #fff; }

/* ===== 高级图片展示（v0.3.81）：放大镜 / 错落拼接 / 滚动渐入 ===== */
/* 放大镜 */
.d2-mainimg { overflow: hidden; }
.d2-mainimg img { transition: transform .18s ease; transform-origin: center center; }
/* mosaic 错落拼接（大图左 + 两小图右，编辑感） */
.d2-mosaic { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 820px) {
  .d2-mosaic { grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .d2-mo-big { grid-row: 1 / 3; }
}
.d2-mosaic figure { margin: 0; position: relative; }
.d2-mosaic img { width: 100%; object-fit: cover; display: block; background: #F7F6F3; }
.d2-mo-big img { height: 100%; min-height: 420px; }
@media (max-width: 820px) { .d2-mo-big img { aspect-ratio: 4/3; } }
.d2-mo-sm img { aspect-ratio: 16/10; }
.d2-mosaic figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
/* 滚动渐入（图片随滚动优雅显现） */
@keyframes d2reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.d2-blk { animation: d2reveal .6s ease both; }
.d2-blk:nth-child(2) { animation-delay: .06s; }
.d2-blk:nth-child(3) { animation-delay: .12s; }
.d2-blk:nth-child(4) { animation-delay: .18s; }
.d2-blk:nth-child(5) { animation-delay: .24s; }

/* ===== 移动端铁律修复（Hallmark：320/375/414/768 零横向滚动 + 可读性）===== */
html, body { overflow-x: clip; }
/* 图文区白字可读性：浮层底部深色实底（浅色图也不吞字） */
.d2-blk.full .d2-blk-text, .d2-blk.split .d2-blk-text {
  background: linear-gradient(180deg, transparent 0%, rgba(15,10,6,.5) 45%, rgba(15,10,6,.96) 100%);
}
.d2-blk.full .d2-blk-kicker, .d2-blk-kicker { color: #E8C66A; }
/* 字体纯净：标题/副标题/故事一律正体（斜体是 AI 味，Hallmark 禁用） */
.d2-sub, .d2-story-inline-text, .d2-blk-text p, .d2-story-inline-label { font-style: normal; }
.d2-sub { letter-spacing: .02em; }
/* 规格表移动端：窄列可读 */
@media (max-width: 600px) {
  .d2-spec-fixed .d2-spec-table th { width: 32%; font-size: 11px; padding: 10px 10px; }
  .d2-spec-fixed .d2-spec-table td { font-size: 12.5px; padding: 10px 10px; }
  .d2-mosaic { grid-template-columns: 1fr; }
  .d2-mo-big img { aspect-ratio: 1/1; }
  .d2-mo-sm img { aspect-ratio: 16/10; }
  .detail2 .actions { gap: 8px; }
  .detail2 .actions .btn { flex: 1 1 100%; font-size: 13px; padding: 12px 14px; text-align: center; }
  .d2-tiers { gap: 6px; }
  .d2-tier { font-size: 11.5px; padding: 5px 10px; }
  .detail2 .thumbs img { width: 68px; height: 68px; }
  .d2-badges span { font-size: 11px; padding: 5px 10px; }
  .d2-kicker { letter-spacing: .24em; }
}

/* ===== 缩略图优化（v0.3.85）：最多 5 张 + 尺寸舒适 + 滑动渐隐提示 ===== */
.detail2 .thumbs { gap: 10px; padding-bottom: 8px; position: relative; }
.detail2 .thumbs::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 8px; width: 40px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,253,248,.92));
}
.detail2 .thumbs img { flex-shrink: 0; }
@media (max-width: 600px) {
  .detail2 .thumbs img { width: 58px; height: 58px; }
  .detail2 .thumbs { gap: 8px; }
}
/* 移动端主图：1:1 不过高（首屏给信息留位） */
@media (max-width: 600px) {
  .d2-mainimg img { aspect-ratio: 1/1; }
  .detail2 { padding: 20px 12px 48px; }
  .d2-hero { gap: 18px; }
}

/* ===== 断行设计（v0.3.89）：标题视觉平衡断行 / 段落避免孤词 ===== */
.d2-info h1, .d2-kicker, .d2-blk-kicker, .d2-blk-text h3, .d2-blk-ttl,
.d2-usp-item b, .d2-story-inline-label, .d2-mosaic figcaption, .d2-triple figcaption,
.d2-blk-bullets li, .d2-blk-chips span, .d2-story-inline-chips span {
  text-wrap: balance;
}
.d2-sub, .d2-blk-text p, .d2-story-inline-text, .d2-usp-item span, .d2-meta {
  text-wrap: pretty;
}

/* 修复：mosaic/triple 标题（浅色背景上白字不可见）→ 深色 */
.d2-blk-ttl { color: #1a1a1a !important; }

/* 第三轮修复：kicker 浅底可读（深金）+ 手机工具栏紧凑 */
.d2-kicker { color: #8a6d2f; }
.d2-blk-kicker { color: #8a6d2f; }
.d2-blk.full .d2-blk-kicker, .d2-blk.split .d2-blk-kicker { color: #E8C66A; }
.d2-story-inline-label { color: #8a6d2f; }

/* ================================================================
   分销商店铺定制版式（reseller_product：tk / ig / b2b / brand）
   ================================================================ */
.sk { max-width: var(--mw); margin: 24px auto; padding: 0 16px 40px; display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 820px) { .sk { grid-template-columns: minmax(340px, 46%) 1fr; gap: 44px; align-items: start; } }
.sk-img img { width: 100%; display: block; background: var(--bg-soft); }
.sk-info h1 { font-size: clamp(19px, 2.4vw, 27px); line-height: 1.4; margin: 6px 0 14px; }
.sk-price b { font-size: 30px; }
.sk-buy { width: 100%; padding: 15px; font-size: 15px; border: none; cursor: pointer; border-radius: 10px; margin-top: 8px; letter-spacing: .04em; }
.sk-kicker { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-sub); margin-bottom: 8px; }
.sk-sub { color: var(--text-sub); font-size: 13.5px; line-height: 1.8; margin: 0 0 14px; }
.sk-note { margin-top: 14px; color: var(--text-sub); font-size: 12.5px; }
.sk-meta { font-size: 12.5px; color: var(--text-sub); margin: 8px 0; }

/* TK 爆款：黑金促单 */
.sk-tk .sk-img img { border-radius: 16px; }
.sk-tk .sk-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sk-tk .sk-badges span { font-size: 11px; background: #FFE9E0; color: #C0392B; border-radius: 20px; padding: 5px 11px; font-weight: 600; }
.sk-tk .sk-price b { color: #C0392B; }
.sk-tk .sk-buy { background: #C0392B; color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(192,57,43,.3); }

/* IG 审美：极简留白 */
.sk-ig .sk-img img { border-radius: 20px; }
.sk-ig .sk-info h1 { font-family: Georgia, serif; font-weight: 400; letter-spacing: .01em; }
.sk-ig .sk-price b { font-weight: 400; }
.sk-ig .sk-buy { background: #111; color: #fff; border-radius: 999px; }

/* B2B 批发：理性表格 */
.sk-b2b .sk-img img { border-radius: 8px; border: 1px solid #E5E2DC; }
.sk-b2b .sk-tiers { border: 1px solid #E5E2DC; border-radius: 8px; overflow: hidden; margin: 14px 0; }
.sk-b2b .sk-tiers-row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #EFEDE8; font-size: 13.5px; }
.sk-b2b .sk-tiers-row:last-child { border: none; }
.sk-b2b .sk-buy { background: #2C3E50; color: #fff; }

/* 品牌旗舰：高端衬线金点缀 */
.sk-brand .sk-img img { border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.sk-brand .sk-info h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(22px, 2.8vw, 32px); }
.sk-brand .sk-price b { font-family: Georgia, serif; font-weight: 400; color: #A9852F; }
.sk-brand .sk-buy { background: #A9852F; color: #fff; border-radius: 4px; letter-spacing: .1em; }
.sk-brand .sk-kicker { color: #A9852F; }

/* ===== 全局 header 移动端优化（v0.3.97）：不拥挤、不溢出、可点 ===== */
@media (max-width: 600px) {
  /* 顶部工具栏：隐藏次要链接，只留语言/币种（紧凑） */
  .topbar .top-right a { display: none; }
  .topbar .top-right { display: flex; gap: 6px; }
  .topbar .lc-select { font-size: 12px; padding: 4px 6px; max-width: 86px; }
  .topbar .topbar-slogan { max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* 主 header：logo + 搜索 + 申请开店 */
  .header { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .header .logo { width: 100%; }
  .search { order: 2; flex: 1 1 100%; }
  .search input { padding: 11px 14px; font-size: 14px; }
  .search button { padding: 0 16px; }
  .header .cta { order: 1; flex: 1 1 auto; justify-content: flex-end; gap: 8px; }
  .header .cta .btn-primary { font-size: 13px; padding: 10px 14px; }
  /* 导航：单行滚动 */
  .nav .wrap a { padding: 12px 14px; font-size: 13.5px; }
}

/* ===== 前台首页/列表页设计打磨（v0.3.101）：现代珠宝品牌感 ===== */
/* Banner：衬线标题 + 装饰线 + 留白 */
.hero .banner { text-align: left; padding: 60px 6% 52px; position: relative; }
.hero .banner::before { content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 3px; background: linear-gradient(90deg, var(--primary), transparent); }
.hero .banner h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(28px, 4.2vw, 46px); letter-spacing: .02em; line-height: 1.3; margin: 0 0 14px; }
.hero .banner p { color: var(--text-sub); font-size: 15px; max-width: 560px; line-height: 1.9; margin: 0 0 26px; }
.hero .banner .btn-primary { border-radius: 0; letter-spacing: .06em; padding: 13px 28px; }
.hero .banner .btn-ghost { border-radius: 0; }

/* 产品卡片：去廉价感，图片统一 1:1，信息层级清晰 */
.card { border-radius: 12px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
.card img { aspect-ratio: 1/1; object-fit: cover; }
.card-title { font-size: 13.5px; line-height: 1.55; }
.card-price { margin-top: 2px; }
.card-price b { font-size: 15px; letter-spacing: .01em; }
.card-price small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.card-tags { gap: 5px; margin-top: 6px; }
.card-tags .tag { background: transparent; border: 1px solid var(--border); color: var(--text-sub); font-size: 10.5px; padding: 3px 10px; border-radius: 999px; letter-spacing: .03em; }

/* 无图占位：优雅品牌感（不再是粗糙的灰块） */
.noimg { display: flex; align-items: center; justify-content: center; min-height: 220px; background: linear-gradient(160deg, var(--bg-soft), var(--bg)); color: var(--text-sub); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-radius: 10px; }

/* 分类卡：简洁留白 */
.grid.cats .card { background: var(--bg-soft); border: none; font-size: 13px; }
.grid.cats .card:hover { background: var(--primary-soft); }

/* 筛选区：紧凑优雅 */
.filters { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 22px; }
.filters select, .filters input { border-radius: 8px; font-size: 13px; }
.filters .tag { border-radius: 999px; }

/* 区块标题：统一衬线（与详情页一致） */
.section-head h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: .02em; }

/* ===== 首页打磨 v2（v0.3.102）：Banner 图文 + 占位/标签/导航 ===== */
.hero .banner { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
@media (min-width: 900px) { .hero .banner { grid-template-columns: 1fr 1fr; } }
.banner-text { position: relative; z-index: 1; }
.banner-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; font-weight: 600; }
.banner-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: 0 22px 50px rgba(0,0,0,.12); }
/* 占位符优雅化 */
.noimg { position: relative; background: linear-gradient(160deg, var(--bg-soft), var(--bg)); }
.noimg::before { content: '✦'; display: block; font-size: 28px; color: var(--primary); opacity: .5; margin-bottom: 8px; }
/* 标签淡色实底 */
.card-tags .tag { background: color-mix(in srgb, var(--primary) 8%, transparent); border: none; color: var(--text); font-weight: 500; }
/* 导航条浅色（去沉重棕条） */
.nav { background: transparent; }
.nav .wrap { border-bottom: 1px solid var(--border); }
.nav a { color: var(--text); }
.nav a:hover, .nav a.active { color: var(--primary); background: transparent; }

/* ===== 首页打磨 v3（v0.3.103）：类目卡装饰 + Footer + Banner 按钮锚点 ===== */
/* 类目卡：✦ 装饰 + 悬停 */
.grid.cats .card { position: relative; }
.grid.cats .card::before { content: '✦'; display: block; font-size: 22px; color: var(--primary); opacity: .55; margin-bottom: 10px; }
/* Banner 主按钮：深色视觉锚点（对比米底） */
.hero .banner .btn-primary { background: #3a2c1a; color: #fff; }
.hero .banner .btn-primary:hover { background: #2a1f12; }
/* Footer：深色底块收尾 */
.footer { margin-top: 60px; background: #2f261a; color: rgba(255,255,255,.75); border-top: none; padding: 34px 12px; font-size: 12.5px; letter-spacing: .02em; }

/* ===== 列表页/挑品筛选区打磨（v0.3.104）：整齐胶囊 ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 13px; min-width: 112px; cursor: pointer; transition: border-color .2s; }
.filters select:focus { outline: none; border-color: var(--primary); }
.filters .tag { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text-sub); cursor: pointer; transition: all .2s; }
.filters .tag:hover { border-color: var(--primary); color: var(--primary); }
.filters .tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== 分销商后台打磨（v0.3.105）：容器/表格/按钮/徽章统一 ===== */
.box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.box h3 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.box table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.box th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--border); color: var(--text-sub); font-weight: 600; white-space: nowrap; }
.box td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.box tr:hover td { background: var(--bg-soft); }
.box button { border-radius: 8px; padding: 8px 14px; font-size: 12.5px; cursor: pointer; border: none; background: var(--primary); color: #fff; }
.box button.ghost { background: var(--bg-soft); color: var(--text); }
.prod { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--card); }
.prod img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; }
.badge { border-radius: 99px; font-size: 11px !important; }
.hint { color: var(--text-sub); font-size: 12.5px; line-height: 1.8; }

/* ===== 表单打磨（v0.3.106）：申请/登录/询盘统一 ===== */
.form-card { border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.form-card input, .form-card textarea, .form-card select { border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.form-card .btn-primary { border-radius: 10px; letter-spacing: .04em; }
.section-head h2 { display: flex; align-items: center; gap: 8px; }

/* 免运费标识（卖点） */
.ff-badge { position: absolute; top: 10px; left: 10px; z-index: 3; background: #2e7d32; color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 99px; letter-spacing: .04em; }
.card { position: relative; }

/* 主题选择移到顶栏（与语言/币种并排） */
.topbar .lang-currency { display: flex; gap: 4px; align-items: center; }
.topbar .lc-select { padding: 4px 8px; font-size: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
@media (max-width: 600px) {
  .topbar .lc-select { max-width: 88px; font-size: 11.5px; padding: 4px 6px; }
  .topbar #themeSel { max-width: 76px; }
}
/* 浮动客服按钮（桌面+手机） */
#platFloat:hover { transform: scale(1.08); }
@media (max-width: 600px) {
  #platFloat { width: 48px; height: 48px; font-size: 21px; right: 14px; bottom: 14px; }
}
/* 手机浮动按钮：覆盖内联尺寸 */
@media (max-width: 600px) {
  #platFloat { width: 48px !important; height: 48px !important; font-size: 21px !important; right: 14px !important; bottom: 14px !important; }
}
/* 主题选择：统一在顶栏（低价区/语言/币种/主题同一行，桌面+手机） */
#themeSelM { display: inline-block; max-width: 80px; }
@media (max-width: 600px) {
  #themeSelM { max-width: 68px; }
}
/* 客服弹窗：桌面更大 + 手机贴近全屏 */
#platChat { width: 400px; height: 560px; }
@media (max-width: 600px) {
  #platChat { width: 94vw !important; height: 80vh !important; right: 3vw !important; bottom: 84px !important; }
}
/* 客服弹窗：560x680 默认居中 */
#platChat { width: 560px; height: 680px; left: 50% !important; top: 50% !important; transform: translate(-50%,-50%); }
@media (max-width: 600px) {
  #platChat { width: 94vw !important; height: 82vh !important; left: 3vw !important; top: 9vh !important; transform: none; }
}
/* SKU 选择器 */
.d2-skus{background:var(--primary-soft);border:1px solid var(--primary-soft);border-radius:12px;padding:10px 12px;margin:10px 0}
.sku-btn{padding:6px 12px;border:1px solid var(--primary-soft);background:#fff;color:var(--text);border-radius:20px;font-size:12px;cursor:pointer;transition:all .15s}
.sku-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.d2-sku-price{margin-top:8px;font-size:14px}
.d2-sku-price b{color:var(--primary);font-size:16px}
/* SKU 多规格网格（带图滚动） */
.sku-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:6px;max-height:330px;overflow-y:auto;padding:2px 2px 6px}
.sku-cell{border:1px solid #ece5d8;border-radius:10px;padding:6px;cursor:pointer;text-align:center;background:#fff;transition:all .15s}
.sku-cell:hover{border-color:var(--primary)}
.sku-cell.active{border-color:var(--primary);background:var(--primary-soft)}
.sku-cell img{width:100%;height:68px;object-fit:cover;border-radius:6px;margin-bottom:4px;display:block;background:#f5f5f5}
.sku-cell .n{font-size:11px;color:#666;white-space:normal;word-break:keep-all;overflow-wrap:break-word;line-height:1.35;margin-bottom:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sku-cell .p{font-size:12px;color:var(--primary);font-weight:600}
