/* ===== 优纯严选 全局样式 ===== */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #2b2825;
  --ink-2: #6b655c;
  --ink-3: #9a9388;
  --line: #ece7de;
  --primary: #24304f;
  --nav-bg: rgba(30,40,66,.97);
  --hero-glow: rgba(201,168,106,.25);
  --hero-glow2: rgba(53,69,110,.35);
  --hero-grad: linear-gradient(160deg, #24304f 0%, #1b2440 55%, #202b49 100%);
  --primary-2: #35456e;
  --gold: #b08d57;
  --gold-2: #c9a86a;
  --nav-text: #f5efe4;
  --nav-sub: rgba(255,255,255,.8);
  --nav-gold: var(--gold-2);
  --nav-search-bg: rgba(255,255,255,.1);
  --nav-search-focus-bg: #fff;
  --nav-search-border: rgba(255,255,255,.16);
  --nav-search-focus-border: var(--gold);
  --nav-ph: rgba(255,255,255,.55);
  --hero-text: #f5efe4;
  --hero-sub: rgba(245,239,228,.75);
  --hero-gold: var(--gold-2);
  --foot-bg: var(--nav-bg);
  --foot-text: rgba(245,239,228,.7);
  --foot-sub: rgba(245,239,228,.45);
  --price: #b2593c;
  --shadow-sm: 0 1px 2px rgba(45, 38, 28, .04), 0 2px 8px rgba(45, 38, 28, .05);
  --shadow: 0 1px 3px rgba(45, 38, 28, .05), 0 6px 20px rgba(45, 38, 28, .07);
  --shadow-lg: 0 4px 12px rgba(45, 38, 28, .08), 0 16px 40px rgba(45, 38, 28, .12);
  --radius: 14px;
  --ease: cubic-bezier(.25, .8, .3, 1);
  --font-serif: "FusionPixel", "Songti SC", "Noto Serif SC", "STSong", serif;
}

/* ===== 像素字体（2026-09-21 飞哥定：标题/按钮/价格/品牌字用像素字，小个性；正文不动保生意感）=====
   缝合像素 Fusion Pixel 12px 简中 · OFL 开源协议可免费商用 · TakWolf/fusion-pixel-font */
@font-face {
  font-family: 'FusionPixel';
  src: url('/fonts/fusion-pixel-12px-zh_hans.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(201, 168, 106, .28); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ddd2bf; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #cbbca2; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 20px rgba(20, 27, 48, .22);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(176, 141, 87, .4);
}
.brand-name { color: var(--nav-text); font-size: 20px; font-weight: 700; font-family: var(--font-serif); letter-spacing: 2px; }
.brand-region {
  font-style: normal; font-size: 11px; font-weight: 400;
  background: rgba(201, 168, 106, .22); color: var(--nav-gold);
  padding: 2px 8px; border-radius: 20px; margin-left: 6px;
  letter-spacing: 1px; vertical-align: 2px;
}
.nav-search {
  flex: 1; max-width: 460px; display: flex; margin: 0 auto;
  background: var(--nav-search-bg); border: 1px solid var(--nav-search-border);
  border-radius: 24px; overflow: hidden; transition: all .25s;
}
.nav-search:focus-within { background: var(--nav-search-focus-bg); border-color: var(--nav-search-focus-border); }
.nav-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--nav-text); padding: 9px 16px; font-size: 15px;
}
.nav-search:focus-within input { color: var(--ink); }
.nav-search input::placeholder { color: var(--nav-ph); }
.nav-search:focus-within input::placeholder { color: var(--ink-3); }
.nav-search button {
  border: none; background: transparent; color: var(--nav-sub);
  padding: 0 16px; cursor: pointer; font-size: 15px;
}
.nav-search:focus-within button { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 22px; font-size: 14px;
  border: none; cursor: pointer; transition: all .2s; font-weight: 500;
  font-family: 'FusionPixel', -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #fff; box-shadow: 0 3px 10px rgba(176, 141, 87, .35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(176, 141, 87, .45); }
.btn-ghost { background: transparent; color: var(--nav-sub); border: 1px solid var(--nav-search-border); }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-primary { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 2px 8px rgba(36, 48, 79, .16); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(36, 48, 79, .24); }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ===== Hero（Frette 式：亚麻大图 + 编辑排印） ===== */
.hero {
  background:
    linear-gradient(180deg, rgba(246,244,239,.72) 0%, rgba(246,244,239,.38) 45%, rgba(246,244,239,.85) 100%),
    radial-gradient(ellipse 900px 400px at 80% -20%, var(--hero-glow), transparent 60%),
    var(--hero-img, none) center 55%/cover no-repeat,
    var(--hero-grad);
  color: var(--hero-text);
  padding: 148px 20px 128px; text-align: center;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-kicker {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 13px; letter-spacing: 6px; color: var(--hero-text); opacity: .78;
  text-transform: uppercase; font-weight: 500;
}
.hk-line { width: 36px; height: 1px; background: var(--hero-gold); opacity: .7; }
.hero-title {
  font-family: var(--font-serif); font-weight: 600; line-height: 1.25;
  display: flex; flex-direction: column; align-items: center;
  margin-top: 22px; text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.hero-title .ht-1 {
  font-size: clamp(40px, 5.6vw, 62px); letter-spacing: 12px;
  color: var(--hero-text);
  text-shadow: 0 1px 16px rgba(246,244,239,.85), 0 0 2px rgba(246,244,239,.5);
}
.hero-title .ht-2 {
  font-size: clamp(24px, 3.4vw, 38px); letter-spacing: 16px; font-weight: 500;
  color: var(--hero-text); opacity: .72; margin-top: 10px;
  text-shadow: 0 1px 12px rgba(246,244,239,.9), 0 0 2px rgba(246,244,239,.6);
}
.hero-sub {
  margin-top: 26px; font-size: 16px; color: var(--hero-sub);
  letter-spacing: 5px;
}

/* ===== 两大入口（面料存货 / 成品存货） ===== */
.group-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 26px auto 0;
  padding: 0 20px;
}
.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.group-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-2), transparent 72%);
  opacity: 0;
  transition: opacity .25s ease;
}
.group-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.group-card:hover::before,
.group-card.active::before { opacity: 1; }
.group-card.active {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(176, 141, 87, .14);
}
.gc-icon { color: var(--ink); opacity: .85; margin-bottom: 12px; line-height: 0; }
.gc-icon svg { display: block; }
.gc-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink);
}
.gc-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; letter-spacing: .8px; }

/* ===== 分类（细线条标签） ===== */
.cats-wrap {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px 0;
}
.cats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 1px solid var(--line);
}
.cat-btn {
  padding: 10px 20px; border: none; border-bottom: 2px solid transparent;
  background: transparent; color: var(--ink-2); font-size: 16px; font-weight: 500;
  cursor: pointer; transition: all .2s; letter-spacing: 1px;
  margin-bottom: -1px;
}
.cat-btn:hover { color: var(--nav-gold); }
.cat-btn.active {
  border-bottom-color: var(--nav-gold); color: var(--ink);
  font-weight: 500;
}
/* 面料重点品类：金色渐变高亮（识别度优先） */
.cat-btn.cat-hot {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #fff; font-weight: 600; border-radius: 6px 6px 0 0;
  border-bottom-color: transparent;
}
.cat-btn.cat-hot:hover { color: #fff; opacity: .9; }
.cat-btn.cat-hot.active {
  border-bottom-color: #fff; color: #fff; font-weight: 700;
}

/* ===== 列表（2列大卡） ===== */
.main { max-width: 1080px; margin: 24px auto 80px; padding: 0 20px; }
.mix-banner {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--primary);
  opacity: .85;
  padding: 2px 0 10px;
}
.mix-banner b { color: var(--gold); font-weight: 600; }
.list-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px;
}
.list-head h2 {
  font-family: var(--font-serif); font-size: 28px; letter-spacing: 3px; font-weight: 600;
}
.list-count { color: var(--ink-3); font-size: 14px; letter-spacing: 1px; }
.list-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tb-select {
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fdfcf9; font-size: 13px; color: var(--ink-2); outline: none;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.tb-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .14); }
.tb-price { display: flex; align-items: center; gap: 6px; }
.tb-input {
  width: 92px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fdfcf9; font-size: 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.tb-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .14); }
.tb-sep { color: var(--ink-3); font-size: 13px; }
.tb-btn {
  padding: 7px 16px; border: none; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 13px; cursor: pointer;
  letter-spacing: 1px;
}
.tb-btn:hover { background: var(--primary-2); }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: #ddcdb2; box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 4/5; background: #f0ece4; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card-img.noimg { display: flex; align-items: center; justify-content: center; }
/* 91式图片角标（2026-09-28）：规格数，右下角半透明黑底白字 */
.img-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; line-height: 1; padding: 4px 8px;
  border-radius: 4px; letter-spacing: .5px; backdrop-filter: blur(2px);
}
.noimg-txt { font-family: var(--font-serif); color: var(--ink-3); font-size: 16px; letter-spacing: 6px; }
.video-badge {
  position: absolute; right: 10px; top: 10px;
  background: rgba(20, 18, 14, .6); color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 1px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 50px; letter-spacing: .5px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 6px; letter-spacing: .5px; }
.tag-material { background: #f6efe3; color: #8a6d3b; border: 1px solid #e8dcc4; }
.tag-size { background: #faf0ea; color: #a9573b; border: 1px solid #ecd6c8; }
.tag-insp { background: #eef7ee; color: #2d7d3a; border: 1px solid #d3e8d3; }
.tag-verif { background: #eef7ee; color: #2d7d3a; border: 1px solid #d3e8d3; }

/* 工具条选项（本周上新/只看收藏） */
.tb-check {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fdfcf9; transition: all .2s;
}
.tb-check:hover { border-color: var(--nav-gold); color: var(--ink); }
.tb-check input { accent-color: var(--nav-gold); cursor: pointer; }

/* 卡片收藏心标 */
.fav-mark {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.92); border-radius: 50%;
  width: 26px; height: 26px; line-height: 26px; text-align: center;
  font-size: 13px; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.card-views { color: var(--ink-3); font-size: 12px; }

/* 最近浏览（首页底部） */
.recent-block { margin-top: 34px; }
.recent-title {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: 2px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.recent-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.recent-item {
  display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.recent-item:hover { border-color: #ddcdb2; transform: translateY(-3px); box-shadow: var(--shadow); }
.recent-img { height: 96px; overflow: hidden; background: #f5f2ed; display: flex; align-items: center; justify-content: center; }
.recent-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-img .noimg-txt { font-size: 12px; color: var(--ink-3); }
.recent-name {
  font-size: 13px; color: var(--ink); padding: 8px 10px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recent-price { font-size: 14px; color: var(--price); font-weight: 600; padding: 0 10px 10px; }

/* 新到货区块（首页，最近 7 天） */
.new-block { margin-top: 26px; }
.new-sub { font-size: 12px; color: var(--ink-3); letter-spacing: 1px; margin-left: 8px; font-weight: 400; }
.new-item { position: relative; }
.new-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(178, 89, 60, .92); color: #fff; font-size: 10px; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
  backdrop-filter: blur(4px);
}
.recent-min { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }

/* 意见箱弹窗（首页底部） */
.fb-btn {
  background: transparent; border: 1px solid var(--nav-search-border); color: var(--nav-sub);
  font-size: 12px; padding: 6px 14px; border-radius: 4px; cursor: pointer; transition: all .2s;
}
.fb-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.foot-fb { margin-top: 10px; }
.fb-overlay {
  position: fixed; inset: 0; z-index: 999; background: rgba(20, 18, 14, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fb-modal {
  width: 100%; max-width: 420px; background: var(--surface); border-radius: 10px;
  padding: 24px; box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.fb-modal h3 { font-size: 17px; letter-spacing: 1px; margin-bottom: 8px; color: var(--ink); }
.fb-tip { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; line-height: 1.6; }
.fb-input {
  width: 100%; box-sizing: border-box; margin-bottom: 10px; padding: 10px 12px;
  border: 1px solid var(--nav-search-border); border-radius: 6px; background: var(--surface);
  color: var(--ink); font-size: 13px; outline: none;
}
.fb-input:focus { border-color: var(--gold-2); }
.fb-area { min-height: 96px; resize: vertical; }
.fb-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* 在线私信（详情页弹窗 + 商家中心会话） */
#chatThread::-webkit-scrollbar, .msg-thread::-webkit-scrollbar { width: 4px; }
#chatThread::-webkit-scrollbar-thumb, .msg-thread::-webkit-scrollbar-thumb { background: #d8cdb8; border-radius: 2px; }
.msg-thread { max-height: 220px; overflow-y: auto; }

/* 同款比价（详情页） */
.similar-block { margin-top: 22px; }
.similar-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.similar-item {
  display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.similar-item:hover { border-color: #ddcdb2; transform: translateY(-3px); box-shadow: var(--shadow); }
.similar-img { height: 110px; overflow: hidden; background: #f5f2ed; display: flex; align-items: center; justify-content: center; }
.similar-img img { width: 100%; height: 100%; object-fit: cover; }
.similar-img .noimg-txt { font-size: 12px; color: var(--ink-3); }
.similar-name {
  font-size: 12px; color: var(--ink); padding: 8px 10px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.similar-meta { font-size: 11px; color: var(--ink-3); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.similar-price { font-size: 14px; color: var(--price); font-weight: 600; padding: 6px 10px 10px; }
.similar-min { font-size: 10px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }

/* 发布页草稿条 */
.draft-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: #fdf6e3; border: 1px solid #e8d49a; border-radius: 8px;
  font-size: 13px; color: #8a6d3b;
}
.draft-bar span { flex: 1; }

/* 商家中心：上架提醒（中性提示，不作积压定性） */
.s-warn {
  margin-top: 6px; font-size: 12px; color: #7a6a4a;
  background: #faf7f0; border: 1px solid #e8e0d0;
  padding: 4px 8px; border-radius: 4px; display: inline-block;
}

/* 质检报告区 */
.insp-section { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.insp-title { font-size: 15px; margin-bottom: 12px; }
.insp-list { display: flex; flex-wrap: wrap; gap: 12px; }
.insp-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  background: #faf7f0; transition: all .2s;
}
.insp-item:hover { border-color: var(--nav-gold); color: var(--nav-gold); }
.insp-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 13px; color: var(--ink-3);
}
.card-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.price { color: var(--price); font-size: 26px; font-weight: 600; font-family: var(--font-serif); }
.card-min { font-size: 12px; color: var(--ink-3); margin-left: 8px; letter-spacing: .5px; }
.card-factory { font-size: 13px; color: var(--ink-2); max-width: 45%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .5px; }

/* ===== 空状态 ===== */
.empty {
  text-align: center; padding: 88px 0; color: var(--ink-3);
}
.empty p {
  font-size: 16px; font-family: var(--font-serif);
  letter-spacing: 3px;
}
.empty p::after {
  content: ''; display: block; width: 32px; height: 1px;
  background: var(--gold-2); margin: 18px auto 0; opacity: .6;
}
.empty a { color: var(--gold); text-decoration: underline; }

/* ===== 页脚 ===== */
.foot {
  background: var(--foot-bg); color: var(--foot-text);
  text-align: center; padding: 32px 20px; font-size: 13px;
}
.foot-tip { margin-top: 6px; font-size: 12px; color: var(--foot-sub); }

/* ===== 详情页 ===== */
.detail-wrap { max-width: 1100px; margin: 30px auto 70px; padding: 0 20px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 14px; margin-bottom: 18px;
}
.back-link:hover { color: var(--gold); }
.detail-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 28px;
}
.gallery-main {
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: #f4f0e8; position: relative;
  box-shadow: inset 0 0 0 1px rgba(45, 38, 28, .05);
}
/* v1.4: cover→contain，竖图/长图完整显示不再裁掉下方；点击大图可看原图 */
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-main video { width: 100%; height: 100%; object-fit: contain; }
/* 2026-09-28 布局崩修复：grid 第一列子项默认 min-width:auto，
   横滑缩略图（32×64px≈2048px）把 1.25fr 列从内部撑爆 → 必须 min-width:0 收口 */
.gallery-col { min-width: 0; }
/* 2026-09-28 学91排版：缩略图单行横滑不换行（图多时不再堆一大片） */
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.gallery-thumbs .thumb { flex: 0 0 64px; }

/* 91式花型分类网格（同系列花型缩略图+款名，点击切换） */
.pattern-block { margin: 2px 0 14px; }
.pattern-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.pattern-sub { font-size: 12px; color: var(--ink-3); font-weight: normal; margin-left: 6px; }
.pattern-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pattern-item { width: 84px; text-decoration: none; cursor: pointer; display: inline-block; }
.pattern-item .pattern-img {
  width: 84px; height: 84px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #f4f0e8;
}
.pattern-item.active .pattern-img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .18); }
.pattern-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pattern-name {
  font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pattern-item.active .pattern-name { color: var(--gold); font-weight: 600; }
.thumb {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; opacity: .7; transition: all .25s var(--ease);
}
.thumb:hover { opacity: 1; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--gold); opacity: 1; box-shadow: 0 0 0 3px rgba(176, 141, 87, .18); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; border: none;
  font-size: 17px; cursor: pointer; display: none; align-items: center; justify-content: center;
}
.gallery-main:hover .gallery-nav { display: flex; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.detail-info h1 { font-family: var(--font-serif); font-size: 30px; line-height: 1.4; letter-spacing: .5px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.detail-price-row {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  margin-bottom: 16px;
}
.detail-price { color: var(--price); font-size: 34px; font-weight: 700; font-family: var(--font-serif); }
.detail-min { color: var(--ink-3); font-size: 13px; }
.detail-rows { font-size: 14px; }
.detail-rows .row {
  display: flex; padding: 9px 0; border-bottom: 1px solid #f6f1e8;
}
.detail-rows .row b { width: 88px; color: var(--ink-3); font-weight: 500; flex-shrink: 0; }
.detail-rows .row span { color: var(--ink); }
.detail-desc {
  margin-top: 18px; padding: 16px 18px; background: #faf8f2;
  border-radius: 10px; font-size: 14px; color: var(--ink-2); white-space: pre-wrap;
  line-height: 1.8;
}

/* 商家卡 */
.factory-card {
  margin-top: 20px; padding: 18px; border: 1px solid var(--line);
  border-radius: 12px; background: #fdfcf9;
}
.factory-card h3 { font-size: 15px; margin-bottom: 8px; }
.factory-row { font-size: 13px; color: var(--ink-2); margin: 4px 0; display: flex; gap: 8px; align-items: center; }
.wechat-row { justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.wechat-num { font-size: 14px; letter-spacing: .5px; }
.btn-copy {
  padding: 3px 12px; font-size: 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--nav-gold); color: var(--nav-gold); background: transparent;
  transition: all .2s; flex-shrink: 0;
}
.btn-copy:hover { background: var(--nav-gold); color: #fff; }
.stars { color: var(--gold-2); letter-spacing: 2px; font-size: 13px; }
.contact-box {
  margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap;
}

/* 评价区 */
.section-title {
  font-family: var(--font-serif); font-size: 26px; margin: 40px 0 18px;
  display: flex; align-items: center; gap: 12px; letter-spacing: 1px;
}
.section-title::before {
  content: ''; width: 4px; height: 18px; background: var(--gold);
  border-radius: 2px;
}
.rating-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.rating-form h4 { margin-bottom: 12px; }
.star-picker { display: flex; gap: 6px; margin-bottom: 12px; }
.star-picker button {
  font-size: 26px; background: none; border: none; cursor: pointer;
  color: #e3dccd; transition: all .15s;
}
.star-picker button.on { color: var(--gold-2); transform: scale(1.1); }
.rating-form textarea {
  width: 100%; min-height: 70px; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; resize: vertical; outline: none;
}
.rating-form textarea:focus { border-color: var(--gold-2); }
.rating-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.rating-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rating-name { font-weight: 600; font-size: 14px; }
.rating-date { font-size: 12px; color: var(--ink-3); }
.rating-content { font-size: 14px; color: var(--ink-2); }

/* 举报 */
.report-toggle {
  margin-top: 26px; color: var(--ink-3); font-size: 13px; cursor: pointer;
  text-decoration: underline; display: inline-block;
}
.report-toggle:hover { color: #c0392b; }
.report-form {
  background: #fdf6f4; border: 1px solid #f0d6ce; border-radius: 12px;
  padding: 18px; margin-top: 12px;
}
.report-form textarea, .report-form input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; margin: 6px 0; outline: none; background: #fff;
}

/* ===== 发布页 ===== */
.publish-wrap { max-width: 860px; margin: 34px auto 70px; padding: 0 20px; }
.remember-row {
  display: flex; align-items: center; margin-bottom: 18px;
  padding: 10px 14px; background: #faf7f2; border: 1px dashed var(--line);
  border-radius: 8px; font-size: 13px; color: var(--ink-2);
}
.remember-box { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-box input { accent-color: var(--nav-gold); width: 15px; height: 15px; }
.publish-wrap h1 {
  font-family: var(--font-serif); font-size: 26px; letter-spacing: 1px;
  margin-bottom: 6px;
}
.publish-sub { color: var(--ink-3); font-size: 13px; margin-bottom: 26px; }
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin-bottom: 20px;
}
.form-card h2 {
  font-size: 16px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.form-card h2 .step {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
/* minmax(0,1fr) 强制真两等分——裸 1fr 带 min-content 保底，长选项文字会把一列撑肥、另一列挤瘦
   （成品模式实测被挤成 181px/579px 的根因）；dense 让隐藏字段留下的空格自动补齐 */
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; grid-auto-flow: row dense; }
/* 2026-09-28 面料专属参数区（publish.html）：占满整行 + 内部同样两列对齐 + dense 补空格
   —— 修"面料表单挤在半边、选择块一会大一会小"。显隐由 JS 只切 display:none/''，布局全走这里 */
#fieldFabricParams { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; grid-auto-flow: row dense; }
#fieldFabricParams .form-field.full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.form-field label .req { color: #c0392b; margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
  outline: none; background: #fdfcf9; transition: all .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--gold-2); background: #fff; box-shadow: 0 0 0 3px rgba(201,168,106,.15);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field .hint { font-size: 12px; color: var(--ink-3); }
.form-field .opt { font-size: 12px; color: var(--ink-3); margin-top: -2px; }

/* 2026-09-23 多尺寸行内编辑（publish.html 尺寸·价格·库存 行组） */
.vrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.vrow .v_size { flex: 1.4; min-width: 0; }
.vrow .v_price { flex: 1; min-width: 0; }
.vrow .v_stock { flex: 1; min-width: 0; }
.vrow .v_del {
  flex: 0 0 30px; width: 30px; height: 38px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: #c0392b; font-size: 15px; cursor: pointer;
}
.vrow .v_del:hover { background: #fdecea; }
.vrow input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none; background: #fdfcf9; min-width: 0; }
.vrow input:focus { border-color: var(--gold-2); background: #fff; box-shadow: 0 0 0 3px rgba(201,168,106,.15); }
.vrow .v_price::placeholder, .vrow .v_stock::placeholder { font-size: 12px; }
.addvbtn {
  border: 1px dashed var(--gold-2); border-radius: 10px; background: #fdfbf6;
  color: #8a6d2f; font-size: 13px; padding: 9px 14px; cursor: pointer; width: 100%;
}
.addvbtn:hover { background: #f7f1e3; }
/* 校验失败定位：字段整栏红框提示（配合 scrollIntoView 用） */
.field-err { outline: 2px solid #e74c3c; outline-offset: 2px; border-radius: 12px; }

/* 上传区 */
.upload-box {
  border: 2px dashed var(--line); border-radius: 12px;
  padding: 26px; text-align: center; cursor: pointer;
  transition: all .2s; background: #fdfcf9;
}
.upload-box:hover { border-color: var(--gold-2); background: #fbf7ef; }
.upload-box .up-icon { font-size: 34px; }
.upload-box .up-tip { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.upload-box .up-sub { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.up-item {
  position: relative; width: 96px; height: 96px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line);
}
.up-item img, .up-item video { width: 100%; height: 100%; object-fit: cover; }
.up-item .up-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,.6); color: #fff;
  border: none; cursor: pointer; font-size: 12px; line-height: 1;
}
.up-item.video-item::after {
  content: '▶'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%); color: #fff; font-size: 22px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.up-item.pdf-item {
  width: 180px; height: 96px; display: flex; align-items: center; justify-content: center;
  padding: 8px; background: #faf7f0; font-size: 13px; color: var(--ink-2);
}
.up-item.pdf-item a { color: var(--ink-2); text-decoration: none; word-break: break-all; display: flex; align-items: center; gap: 6px; }
.up-item.pdf-item a:hover { color: var(--nav-gold); }

/* ===== 管理后台 ===== */
.admin-wrap { max-width: 1100px; margin: 34px auto 70px; padding: 0 20px; }
.admin-wrap h1 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 24px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.admin-card h2 {
  font-size: 16px; font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.badge {
  font-size: 11px; padding: 2px 10px; border-radius: 12px; font-weight: 500;
}
.badge-pending { background: #faf0ea; color: #a9573b; }
.badge-processed { background: #eef1f8; color: #35456e; }
.badge-rejected { background: #f5f0f8; color: #7a5c8a; }
.report-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px;
}
.report-item .r-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.report-item .r-type { font-weight: 600; font-size: 14px; }
.report-item .r-reason { font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.report-item .r-detail { font-size: 13px; color: var(--ink-3); }
.report-item .r-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fac-item {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px;
}
.fac-item .f-name { font-weight: 600; font-size: 14px; }
.fac-item .f-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ===== Toast ===== */
#toast { font-family: inherit; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .nav-search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hero-title .ht-1 { font-size: 30px; }
  .hero-stats { gap: 30px; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  #fieldFabricParams { grid-template-columns: minmax(0, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost.nav-admin { display: none; }
}

/* ===== H5 手机端精细适配 ===== */
@media (max-width: 520px) {
  .nav-inner { padding: 10px 14px; gap: 8px; }
  .brand-logo { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
  .brand-name { font-size: 16px; letter-spacing: 1px; }
  .brand-region { font-size: 10px; padding: 1px 6px; margin-left: 4px; }
  .nav-search input { padding: 8px 12px; font-size: 13px; }
  .nav-actions .btn { padding: 7px 12px; font-size: 13px; }
  .hero { padding: 72px 16px 64px; }
  .hero-kicker { font-size: 11px; letter-spacing: 4px; gap: 10px; }
  .hk-line { width: 22px; }
  .hero-title { margin-top: 14px; }
  .hero-title .ht-1 { font-size: 30px; letter-spacing: 6px; }
  .hero-title .ht-2 { font-size: 17px; letter-spacing: 8px; margin-top: 6px; }
  .hero-sub { font-size: 13px; letter-spacing: 3px; margin-top: 16px; }
  .cats-wrap { padding: 18px 14px 0; }
  .group-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 14px; margin-top: 18px; }
  .group-card { padding: 13px 12px; border-radius: 10px; }
  .gc-icon svg { width: 22px; height: 22px; }
  .gc-icon { margin-bottom: 6px; }
  .gc-title { font-size: 14px; letter-spacing: 1px; }
  .gc-sub { font-size: 10px; margin-top: 3px; line-height: 1.4; }
  .cats { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-left: 14px; overscroll-behavior-x: contain; touch-action: pan-x; height: 46px; align-items: stretch; }
  .cats::-webkit-scrollbar { display: none; }
  .cat-btn { height: 100%; padding: 0 16px; font-size: 16px; white-space: nowrap; scroll-snap-align: start; display: inline-flex; align-items: center; line-height: 1; flex-shrink: 0; border-bottom-width: 2px; margin-bottom: 0; }
  .main { padding: 0 14px; margin-top: 16px; }
  .list-head h2 { font-size: 18px; letter-spacing: 1px; }
  .grid { gap: 14px; grid-template-columns: 1fr 1fr; }
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 14px; min-height: 38px; -webkit-line-clamp: 2; }
  .card-tags { gap: 4px; margin-top: 8px; }
  .tag { font-size: 11px; padding: 1px 6px; }
  .card-meta { font-size: 12px; }
  .card-score { color: var(--gold-2); font-size: 13px; letter-spacing: 1px; margin-left: auto; }
  .price { font-size: 20px; }
  .card-min { font-size: 11px; margin-left: 4px; }
  .card-factory { font-size: 12px; max-width: 55%; }
  .card-foot { margin-top: 10px; padding-top: 10px; }
  .list-toolbar { gap: 10px; padding: 10px 12px; }
  .tb-input { width: 74px; font-size: 12px; padding: 6px 8px; }
  .tb-select { font-size: 12px; padding: 6px 8px; }
  .tb-price { flex: 1; justify-content: flex-start; }
  .tb-btn { padding: 6px 12px; font-size: 12px; }
  .foot { padding: 24px 14px; font-size: 12px; }
  .detail-wrap { padding: 0 14px; margin-top: 16px; }
  .detail-grid { padding: 16px; gap: 18px; }
  .detail-info h1 { font-size: 20px; }
  .detail-price { font-size: 28px; }
  .detail-rows .row b { width: 72px; font-size: 13px; }
  .thumb { width: 54px; height: 54px; }
  .gallery-nav { display: flex; width: 32px; height: 32px; }
  .publish-wrap { padding: 0 14px; }
  .form-card { padding: 18px 16px; }
  .up-item { width: 80px; height: 80px; }
  .insp-item { padding: 6px 10px; font-size: 12px; }
  .insp-item img { width: 60px; height: 60px; }
  .contact-box .btn { padding: 8px 14px; font-size: 13px; }
  .report-form { padding: 14px; }
  .admin-wrap { padding: 0 14px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .recent-row, .similar-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .recent-img { height: 80px; }
  .similar-img { height: 92px; }
  .tb-check { font-size: 12px; padding: 6px 8px; }
  .fb-modal { padding: 18px; }
  .fb-btns .btn { flex: 1; }
}

/* ===== 小优 AI 导购（横幅 + 悬浮球） ===== */
.xy-band {
  max-width: 1080px; margin: 26px auto 0; padding: 30px 36px;
  background: var(--primary);
  color: #f7f3ec;
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.xy-band::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-2, var(--gold)), transparent 70%);
  opacity: .16; pointer-events: none;
}
.xy-band-l { min-width: 0; }
.xy-band-figure {
  flex: none; align-self: flex-end; position: relative; z-index: 1;
  width: auto; height: 172px; margin: 0 0 -30px -6px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.38));
  animation: xyFloat 3.8s ease-in-out infinite;
  user-select: none; pointer-events: none;
}
@keyframes xyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.xy-band-title {
  font-family: var(--font-serif); font-size: 22px; letter-spacing: 2px;
  display: flex; align-items: center; gap: 12px; font-weight: 600;
}
.xy-band-title svg { color: var(--gold-2, var(--gold)); flex: none; }
.xy-band-sub { margin-top: 9px; font-size: 13.5px; opacity: .78; letter-spacing: .5px; }
.xy-band-btn {
  flex: none; padding: 12px 27px; border-radius: 999px;
  background: var(--gold); color: #241f18;
  font-size: 14px; font-weight: 600; letter-spacing: 2px;
  text-decoration: none;
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease);
}
.xy-band-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.28); }

/* 小优悬浮形象（3D 人物 + 常显气泡） */
.xy-fabwrap {
  position: fixed; right: 22px; bottom: 26px; z-index: 96;
  display: flex; align-items: center; gap: 11px;
  animation: xyFloat 4.2s ease-in-out infinite;
}
.xy-fab {
  position: relative; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  display: block; text-decoration: none;
}
.xy-fab-halo {
  position: absolute; inset: -9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,87,.5), transparent 70%);
  animation: xyPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
.xy-fab-face {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; overflow: hidden;
  background: linear-gradient(160deg, #2e2a23, #1c1a17);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 22px rgba(28,26,23,.38);
}
/* 每 5.5s 一道扫光（flash 质感） */
.xy-fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%);
  background-size: 280% 100%; background-position: 135% 0;
  background-repeat: no-repeat;
  animation: xyShine 5.5s ease-in-out infinite;
  mix-blend-mode: screen; pointer-events: none;
}
.xy-fab-dot {
  position: absolute; right: 2px; top: 2px; z-index: 2;
  width: 12px; height: 12px; border-radius: 50%;
  background: #3fae6a; border: 2px solid #fff;
}
@keyframes xyShine { 0%, 58% { background-position: 135% 0; } 80%, 100% { background-position: -45% 0; } }
@keyframes xyPulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .95; transform: scale(1.14); } }
.xy-bubble {
  position: relative; max-width: 208px;
  background: #fffdf9; color: #2b2a27;
  font-size: 12.5px; line-height: 1.55; letter-spacing: .3px;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  border: 1px solid #ece4d4;
  box-shadow: 0 6px 20px rgba(28,26,23,.18);
  text-decoration: none;
  animation: xyPop .55s cubic-bezier(.34,1.56,.64,1) .35s both;
}
.xy-bubble::after {
  content: ''; position: absolute; right: -5px; bottom: 12px;
  width: 10px; height: 10px; background: inherit;
  border-right: 1px solid #ece4d4; border-top: 1px solid #ece4d4;
  transform: rotate(45deg);
}
@keyframes xyPop { from { opacity: 0; transform: translateX(16px) scale(.82); } to { opacity: 1; transform: none; } }
/* 移动端 8s 后自动收起气泡（避免遮挡内容），桌面常显 */
.xy-bubble.hide { opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
@media (prefers-reduced-motion: reduce) {
  .xy-fabwrap, .xy-fab-halo, .xy-fab::after, .xy-band-figure { animation: none; }
}

@media (max-width: 860px) {
  .xy-band { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; margin: 18px 14px 0; }
  .xy-band-figure { height: 96px; margin: 0 0 -22px 0; align-self: center; }
  .xy-band-title { font-size: 18px; }
  .xy-band-btn { padding: 11px 22px; }
  .xy-fabwrap { right: 14px; bottom: 18px; gap: 9px; }
  .xy-fab { width: 52px; height: 52px; }
  .xy-bubble { max-width: 150px; font-size: 11.5px; padding: 8px 11px; }
}

/* ===== 2026-09-21 首页改版（飞哥拍板）：黑金动态标语 + 银灰光泽卡片 + 存货拆子页 ===== */

/* Hero 大标语：深灰金属光泽 + 流动光（飞哥 2026-09-22：黑金改深灰金属，浅色亚麻大图上） */
.hero-title .ht-1,
.hero-title .ht-2 {
  background: linear-gradient(115deg,
    #2e3033 0%, #55585d 18%, #232527 36%, #aeb3b9 50%,
    #2a2c2f 62%, #84898f 74%, #1f2123 90%, #3c3f43 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: hgSheen 5.5s ease-in-out infinite;
}
.hero-title .ht-2 { opacity: 1; }
@keyframes hgSheen {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

/* 顶栏品牌字：深灰金属（深色导航上，暗底+金属高光保证可读） */
header.nav .brand-name .brand-steel {
  background: linear-gradient(120deg,
    #6a6f77 0%, #d6dade 22%, #9aa0a8 40%, #eef1f4 52%,
    #7d8289 68%, #c6cbd1 84%, #8b9098 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: hgSheen 7s ease-in-out infinite;
}

/* 两大入口卡片：银灰光泽动态底 + 放大气派 */
.group-cards { gap: 22px; }
.group-card {
  background: linear-gradient(135deg,
    #f2f3f5 0%, #e0e3e7 16%, #ced2d8 32%, #ebedf0 48%,
    #d9dce0 64%, #eff0f2 80%, #dde0e4 100%);
  background-size: 260% 260%;
  border: 1px solid #d0d4d9;
  border-top: 2px solid #b3b8bf;
  animation: gcSheen 10s ease-in-out infinite;
  padding: 46px 38px 66px;
  min-height: 230px;
}
.group-card:hover { border-color: var(--gold); }
@keyframes gcSheen {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
.group-card:nth-child(2) { animation-delay: -5s; }
.gc-title {
  font-size: 31px; letter-spacing: 5px;
  background: linear-gradient(115deg,
    #2e3033 0%, #565a60 20%, #242628 40%, #a9aeb5 55%,
    #2b2d30 70%, #7f848b 85%, #202225 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: hgSheen 6s ease-in-out infinite;
}
.gc-sub { font-size: 14px; color: #6d6a72; margin-top: 10px; }
.gc-icon { color: #33313b; opacity: .9; }
@media (max-width: 860px) {
  .group-card { padding: 30px 24px 24px; min-height: 0; }
  .gc-title { font-size: 24px; }
}

/* 新品角标：当天有新品 → 卡片右上角 */
.gc-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: #b2593c; color: #fff;
  font-size: 11.5px; letter-spacing: 1px;
  padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(178, 89, 60, .35);
  animation: badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: .88; }
}

/* 小优底宽：新形象挥手律动 */
.xy-band-figure { animation: xyWave 3.8s ease-in-out infinite; }
@keyframes xyWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(2.4deg); }
  50% { transform: translateY(-7px) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(-1.6deg); }
}

/* 黑金标语不需要奶油光晕（那是浅色字用的），去掉防止发灰 */
.hero-title { text-shadow: none; }
.hero-title .ht-1,
.hero-title .ht-2 { text-shadow: 0 1px 2px rgba(255,255,255,.35); }

/* ===== 2026-09-23 多尺寸价格库存表（详情页 SKU 块，淘宝式：主尺寸在上，其余从小到大） ===== */
.sku-box { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f4; padding: 10px 12px; }
.sku-title { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.sku-row { display: flex; align-items: baseline; gap: 12px; padding: 7px 2px; border-top: 1px dashed var(--line); font-size: 14px; }
.sku-row:first-of-type { border-top: none; }
.sku-size { font-weight: 600; min-width: 96px; }
.sku-price { color: var(--price); font-weight: 700; }
.sku-stock { color: var(--ink-3); font-size: 12px; margin-left: auto; white-space: nowrap; }
.sku-main { background: rgba(176,128,60,0.07); border-radius: 6px; border-top: none; padding-left: 6px; }
.sku-main + .sku-row { border-top: none; }
/* 2026-09-28 91式SKU选择器：行可点击、选中金框高亮、hover反馈 */
.sku-row.sku-selected { background: rgba(176,141,87,0.12); border: 1px solid var(--gold); border-radius: 8px; padding: 7px 10px; box-shadow: 0 1px 4px rgba(176,141,87,0.15); }
.sku-row.sku-selected .sku-size { color: var(--gold); }
.sku-row[data-vi]:hover { background: rgba(176,141,87,0.06); border-radius: 8px; }
.sku-row.sku-selected + .sku-row { border-top: none; }
.price-qi { font-size: 11px; color: var(--ink-3); font-weight: normal; margin-left: 2px; }
/* ===== 2026-09-28 工艺细节（选填区块）：勾选才展开细节，全部选填 ===== */
.craft-block { width: 100%; border: 1px solid #e8e4dc; border-radius: 10px; padding: 12px 14px; background: #faf9f6; }
.craft-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: #3d3a35; margin: 2px 0 8px; cursor: pointer; }
.craft-line b { color: #2f2c27; }
.craft-line label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.craft-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px 24px; }
.craft-sub select, .craft-sub input { max-width: 260px; }
.craft-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; margin-top: 4px; }
.craft-grid select { width: 100%; }
@media (max-width: 768px) { .craft-grid { grid-template-columns: minmax(0,1fr); } }
/* 2026-09-28 A/B/C版材质：三个下拉一行，各带 A/B/C 角标 */
.abc-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.abc-item { position: relative; }
.abc-tag { position: absolute; left: 8px; top: 9px; font-size: 11px; font-weight: 600; color: #8a6a3a; background: #f6efe2; border-radius: 4px; padding: 1px 5px; pointer-events: none; z-index: 1; }
.abc-item select { width: 100%; padding-left: 42px; }
/* 2026-09-28 A/B/C版面料子字段（织造/纱支/风格）：选了版材质才展开 */
.abc-sub { margin-top: 6px; border-top: 1px dashed #e5e1da; padding-top: 6px; }
.abc-sub select, .abc-sub input { width: 100%; margin-top: 6px; font-size: 12px; }
.abc-sub select { padding-left: 8px; }
@media (max-width: 768px) { .abc-row { grid-template-columns: minmax(0,1fr); } }
