/* ============================================================
   晶非商城 PC 站 · 精品选品风设计系统
   低饱和纸感底 + 衬线标题 + 品牌橙小面积点缀
   tokens 与 mobile/src/uni.scss「JF 设计语言」同源（低饱和变体）
   ============================================================ */

:root {
  /* 色板 */
  --paper: #faf8f5;          /* 页面纸感底 */
  --card: #ffffff;
  --ink: #26221e;            /* 主文字·墨 */
  --sub: #6b655d;            /* 次级文字 */
  --muted: #9c958a;          /* 弱化文字 */
  --line: #ede9e3;           /* 发丝线 */
  --line-strong: #e0dad1;
  --brand: #e8590c;          /* 品牌橙（点缀用，低饱和） */
  --brand-deep: #c74a08;
  --brand-soft: #fdf1e7;     /* 品牌浅底 */
  --price: #d6402a;          /* 价格红 */
  --ok: #3f9b6d;

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 形状与光影 */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(38, 34, 30, .04), 0 8px 24px -14px rgba(38, 34, 30, .10);
  --shadow-hover: 0 2px 6px rgba(38, 34, 30, .06), 0 18px 36px -14px rgba(38, 34, 30, .18);
  --maxw: 1200px;
}

/* ---------- 基础 ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }
ol, ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.main { min-height: 60vh; }

::selection { background: var(--brand-soft); color: var(--brand-deep); }

h1, h2, h3 { font-weight: 600; }

/* 淡入动画（IntersectionObserver 加 .in）；无 JS 环境直接可见（静态站/SEO 兜底） */
[data-fade] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
[data-fade].in { opacity: 1; transform: none; }
html.no-js [data-fade] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 顶部导航 ---------- */

.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.hd.scrolled { box-shadow: 0 6px 24px -12px rgba(38, 34, 30, .14); }

.hd-in { display: flex; align-items: center; gap: 36px; height: 68px; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; display: block; }

.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a { position: relative; padding: 6px 2px; color: var(--sub); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; }
.nav a.on::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 2px; background: var(--brand);
}

.hd-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.hd-search { display: flex; align-items: center; }
.hd-search input {
  width: 170px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-right: 0;
  border-radius: 17px 0 0 17px; background: var(--paper);
  outline: none; font-size: 13px; color: var(--ink);
  transition: width .25s ease, border-color .2s;
}
.hd-search input:focus { width: 210px; border-color: var(--brand); }
.hd-search input::placeholder { color: var(--muted); }
.hd-search button {
  width: 36px; height: 34px; border: 1px solid var(--line-strong); border-left: 0;
  border-radius: 0 17px 17px 0; background: var(--paper); color: var(--sub);
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s;
}
.hd-search button:hover { color: var(--brand); border-color: var(--brand); }

/* 小程序码悬浮气泡 */
.hd-qr { position: relative; outline: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: 17px;
  font-size: 13px; white-space: nowrap;
}
.pill-brand {
  background: linear-gradient(135deg, #ff8a3c, var(--brand));
  color: #fff; box-shadow: 0 4px 12px -4px rgba(232, 89, 12, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hd-qr:hover .pill-brand, .hd-qr:focus .pill-brand { transform: translateY(-1px); }

.hd-qr-pop {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 190px; padding: 16px 14px 12px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .22s ease;
}
.hd-qr-pop::before {
  content: ""; position: absolute; top: -5px; right: 28px;
  width: 8px; height: 8px; background: var(--card);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.hd-qr:hover .hd-qr-pop, .hd-qr:focus .hd-qr-pop, .hd-qr:focus-within .hd-qr-pop {
  opacity: 1; visibility: visible; transform: none;
}
.hd-qr-pop img { width: 132px; height: 132px; margin: 0 auto; }
.hd-qr-pop p { margin-top: 8px; font-size: 12.5px; color: var(--sub); }
.hd-qr-pop .hd-qr-alt { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.hd-qr-pop.off { display: flex; flex-direction: column; justify-content: center; min-height: 120px; }
.hd-qr-pop.off p:first-of-type { display: none; }

/* ---------- 页脚 ---------- */

.ft { margin-top: 72px; background: #221e1a; color: #cfc8bf; }

.ft-grid {
  display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.2fr; gap: 48px;
  padding: 56px 24px 44px;
}

/* 深色页脚上的单色白 logo（保可读性，经典 monochrome 处理） */
.logo-ft .logo-img { filter: brightness(0) invert(1); opacity: .92; height: 40px; }
.ft-slogan { margin-top: 14px; font-family: var(--serif); font-size: 16px; letter-spacing: .1em; color: #e8e1d6; }
.ft-desc { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: #918980; max-width: 300px; }

.ft-col h4 {
  font-size: 13px; letter-spacing: .14em; color: #e8e1d6; font-weight: 600;
  margin-bottom: 16px;
}
.ft-col a { display: block; font-size: 13px; color: #918980; padding: 4px 0; transition: color .2s; }
.ft-col a:hover { color: #ffb27d; }

.ft-guide ol { counter-reset: step; margin-bottom: 18px; }
.ft-guide li {
  counter-increment: step; position: relative; padding-left: 26px;
  font-size: 12.5px; color: #918980; line-height: 2;
}
.ft-guide li::before {
  content: counter(step); position: absolute; left: 0; top: 7px;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid #4a443c; color: #b3a99d;
  font-size: 10.5px; display: flex; align-items: center; justify-content: center;
}
/* 深色页脚上的小程序码盒 */
.ft .qrbox-frame { background: #fff; border-color: #3a352e; }
.ft .qrbox-tip { color: #918980; }

.ft-bar { border-top: 1px solid #322d27; }
.ft-bar-in {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 18px;
  font-size: 12px; color: #7a7268;
}

/* ---------- 小程序码盒（公共） ---------- */

.qrbox { text-align: center; flex-shrink: 0; }
.qrbox-frame {
  position: relative; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.qrbox-frame img { width: 148px; height: 148px; border-radius: 6px; }
.qrbox-sm .qrbox-frame { padding: 8px; }
.qrbox-sm .qrbox-frame img { width: 104px; height: 104px; }
.qrbox-tip { margin-top: 10px; font-size: 12.5px; color: var(--sub); letter-spacing: .04em; }
.qrbox-alt {
  display: none; width: 148px; height: 148px;
  align-items: center; justify-content: center; text-align: center;
  font-size: 12px; color: var(--muted); line-height: 2;
}
.qrbox-sm .qrbox-alt { width: 104px; height: 104px; font-size: 11px; }
.qrbox-alt b { color: var(--brand); font-size: 13px; }
.qrbox.qr-fail .qrbox-alt { display: flex; }

/* ---------- 首页 · Hero 轮播 ---------- */

.hero {
  position: relative; max-width: var(--maxw); margin: 24px auto 0; padding: 0 24px;
}
.hero-slide {
  display: none; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-slide.on { display: block; animation: heroIn .6s ease; }
.hero-slide img { width: 100%; height: 400px; object-fit: cover; }
@keyframes heroIn { from { opacity: .4; } to { opacity: 1; } }

.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-dot {
  width: 22px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .45); transition: all .25s ease;
}
.hero-dot.on { width: 34px; background: #fff; }

/* ---------- 首页 · 信任栏 ---------- */

.trust { margin-top: 40px; border-block: 1px solid var(--line); background: var(--card); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.trust-item svg { color: var(--brand); flex-shrink: 0; }
.trust-item b { display: block; font-size: 14.5px; letter-spacing: .04em; }
.trust-item span { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 区块 ---------- */

.sec { margin-top: 64px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.sec-hd h2 {
  font-family: var(--serif); font-size: 27px; letter-spacing: .08em;
  position: relative; padding-left: 16px;
}
.sec-hd h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 2px;
  background: linear-gradient(180deg, #ff8a3c, var(--brand));
}
.sec-hd p { margin-top: 4px; padding-left: 16px; font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.sec-more { font-size: 13.5px; color: var(--sub); padding-bottom: 4px; transition: color .2s; }
.sec-more:hover { color: var(--brand); }

.empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .1em; }

/* ---------- 分类金刚区 ---------- */

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px 18px; text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.cat-img {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%;
  overflow: hidden; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat b { display: block; font-size: 14.5px; letter-spacing: .03em; }
.cat i { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ---------- 商品卡片 ---------- */

.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.gcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.gcard-img { aspect-ratio: 4 / 3; overflow: hidden; background: #f3f0eb; }
.gcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gcard:hover .gcard-img img { transform: scale(1.045); }
.gcard-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; flex: 1; }
.gcard-name {
  font-size: 14.5px; font-weight: 500; line-height: 1.5; letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 43px;
}
.gcard-brand { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.gcard-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--price); }
.price i { font-style: normal; font-size: 13px; margin-right: 1px; }
.gcard-sales { font-size: 11.5px; color: var(--muted); }
.gcard-store {
  font-size: 11.5px; color: var(--sub); padding-top: 8px; margin-top: 6px;
  border-top: 1px dashed var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 店铺卡片 ---------- */

.scard {
  display: flex; gap: 18px; align-items: center; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.scard-logo {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  background: var(--paper); border: 1px solid var(--line); flex-shrink: 0;
}
.scard-body h3 { font-size: 16px; font-family: var(--serif); letter-spacing: .03em; }
.scard-tag {
  margin-top: 4px; font-size: 12.5px; color: var(--sub);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.scard-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }

/* ---------- 品牌带 ---------- */

.brands-band { margin-top: 64px; border-block: 1px solid var(--line); background: var(--card); }
.brands { display: flex; align-items: center; gap: 12px; padding: 20px 24px; overflow-x: auto; }
.brands-label {
  flex-shrink: 0; font-family: var(--serif); font-size: 15px; letter-spacing: .12em;
  color: var(--sub); padding-right: 8px; border-right: 1px solid var(--line); margin-right: 4px;
}
.brand-chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: 18px;
  font-size: 13px; color: var(--sub); background: var(--paper);
  transition: all .2s ease;
}
.brand-chip i { font-style: normal; font-size: 11px; color: var(--muted); }
.brand-chip:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.brand-chip:hover i { color: var(--brand); }

/* ---------- CTA 引导带 ---------- */

.cta {
  margin-top: 72px;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255, 138, 60, .14), transparent 60%),
    linear-gradient(160deg, #2b2520, #221e1a 70%);
  color: #e8e1d6;
}
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 60px 24px; }
.cta-txt h2 { font-family: var(--serif); font-size: 30px; letter-spacing: .1em; color: #f5f0e8; }
.cta-txt p { margin-top: 14px; font-size: 14.5px; color: #a89e92; max-width: 520px; line-height: 2; }
.cta-steps {
  display: inline-block; margin-top: 20px; padding: 8px 20px;
  border: 1px solid #4a443c; border-radius: 20px;
  font-size: 12.5px; letter-spacing: .14em; color: #cfc8bf;
}
.cta .qrbox-frame { border-color: #3a352e; }
.cta .qrbox-tip { color: #a89e92; }

/* ---------- 列表页（两栏布局） ---------- */

.page-hd { padding-top: 44px; }
.page-hd h1 { font-family: var(--serif); font-size: 30px; letter-spacing: .1em; }
.page-hd p { margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: .05em; }

.layout-2c { display: grid; grid-template-columns: 216px 1fr; gap: 32px; margin-top: 28px; align-items: start; }

.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.side-box h4 {
  font-size: 12.5px; letter-spacing: .16em; color: var(--muted); font-weight: 600;
  margin-bottom: 10px; padding-left: 8px;
}
.side-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--sub); transition: all .18s ease;
}
.side-link i { font-style: normal; font-size: 11px; color: var(--muted); }
.side-link:hover { color: var(--brand); background: var(--brand-soft); }
.side-link.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.side-link.on i { color: var(--brand); }
.side-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.side-brands .brand-chip { padding: 4px 12px; font-size: 12px; }
.side-qr { display: flex; justify-content: center; }

.main-col { min-width: 0; }
.main-col .grid4 { grid-template-columns: repeat(3, 1fr); }
.main-col .grid3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 分页 ---------- */

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 44px 0 8px; flex-wrap: wrap; }
.pg-btn {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card); font-size: 13.5px; color: var(--sub);
  transition: all .18s ease;
}
a.pg-btn:hover { color: var(--brand); border-color: var(--brand); }
.pg-cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pg-dots { color: var(--muted); padding: 0 4px; }

/* ---------- 面包屑 ---------- */

.crumbs { padding: 22px 24px 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--brand); }
.crumb-sep { margin: 0 8px; color: var(--line-strong); }
.crumb-cur { color: var(--sub); max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 商品详情 ---------- */

.gd { display: grid; grid-template-columns: 480px 1fr; gap: 48px; margin-top: 22px; align-items: start; }

.gd-gallery { position: sticky; top: 92px; }
.gd-main {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.gd-main-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gd-thumb {
  flex-shrink: 0; width: 68px; height: 68px; padding: 2px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  background: var(--card); box-shadow: var(--shadow-card);
  transition: border-color .2s;
}
.gd-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.gd-thumb.on, .gd-thumb:hover { border-color: var(--brand); }

.gd-name { font-family: var(--serif); font-size: 27px; line-height: 1.5; letter-spacing: .03em; }
.gd-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  padding: 4px 14px; border-radius: 15px; font-size: 12px;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--sub);
  transition: all .2s;
}
.chip:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

.gd-price {
  margin-top: 22px; padding: 20px 24px;
  background: linear-gradient(140deg, #fdf4ec, #fbefe4);
  border: 1px solid #f3e2d2; border-radius: var(--radius);
  display: flex; align-items: baseline; gap: 18px;
}
.gd-price-num { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--price); line-height: 1; }
.gd-price-num i { font-style: normal; font-size: 20px; margin-right: 2px; }
.gd-meta { font-size: 12.5px; color: var(--sub); }

.gd-buy {
  margin-top: 24px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex; gap: 28px; align-items: center;
}
.gd-buy-note b { font-size: 14.5px; letter-spacing: .06em; }
.gd-buy-note p { margin-top: 6px; font-size: 13px; color: var(--sub); }

.gd-store {
  margin-top: 24px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.gd-store:hover { border-color: var(--brand); box-shadow: var(--shadow-card); }
.gd-store img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.gd-store-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gd-store-info b { font-size: 14.5px; }
.gd-store-info i {
  font-style: normal; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd-store-go { font-size: 13px; color: var(--brand); flex-shrink: 0; }

.gd-desc-body {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 36px; font-size: 14.5px; line-height: 2.1; color: var(--sub);
  white-space: pre-line;
}
/* 富文本描述剥离后的安全块（老库迁移数据）：图片自适应居中，文本成段 */
.gd-desc-body img.desc-img {
  display: block; max-width: 100%; height: auto;
  margin: 12px auto; border-radius: 10px;
}
.gd-desc-body p.desc-text { margin: 4px 0; }
.gd-desc-body video.desc-video {
  display: block; width: 100%; max-width: 720px;
  margin: 14px auto; border-radius: 12px; background: #000;
}

/* ---------- 店铺详情 ---------- */

.sd-hd {
  margin-top: 22px; padding: 36px;
  display: flex; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.sd-logo {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  background: var(--paper); border: 1px solid var(--line); flex-shrink: 0;
}
.sd-info { flex: 1; min-width: 0; }
.sd-info h1 { font-family: var(--serif); font-size: 26px; letter-spacing: .04em; }
.sd-tag { margin-top: 8px; font-size: 14px; color: var(--sub); }
.sd-meta { display: flex; gap: 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sd-contact { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--sub); }
.sd-contact a { color: var(--brand); }
.sd-contact a:hover { text-decoration: underline; }

/* ---------- 搜索页 ---------- */

.srch-hd {
  padding: 56px 0 40px; text-align: center;
  background:
    radial-gradient(700px 260px at 50% -40%, rgba(255, 138, 60, .10), transparent 70%),
    var(--card);
  border-bottom: 1px solid var(--line);
}
.srch-hd h1 { font-family: var(--serif); font-size: 32px; letter-spacing: .2em; text-indent: .2em; }
.srch-hd > .wrap > p { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }

.srch-bar {
  margin: 26px auto 0; max-width: 620px;
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--line-strong); border-radius: 28px;
  background: var(--paper); padding: 5px 5px 5px 8px;
  transition: border-color .2s, box-shadow .2s;
}
.srch-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.srch-tabs { display: flex; gap: 2px; flex-shrink: 0; }
.srch-tabs button {
  padding: 7px 14px; border-radius: 18px; font-size: 13px; color: var(--muted);
  transition: all .18s;
}
.srch-tabs button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-card); }
#srch-kw {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  padding: 10px 14px; font-size: 14.5px; color: var(--ink);
}
.btn-brand {
  flex-shrink: 0; height: 42px; padding: 0 30px; border-radius: 21px;
  background: linear-gradient(135deg, #ff8a3c, var(--brand)); color: #fff;
  font-size: 14.5px; letter-spacing: .1em;
  box-shadow: 0 6px 16px -6px rgba(232, 89, 12, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(232, 89, 12, .65); }

.btn-ghost {
  height: 42px; padding: 0 34px; border-radius: 21px;
  border: 1px solid var(--line-strong); background: var(--card);
  font-size: 14px; color: var(--sub); letter-spacing: .08em;
  transition: all .2s;
}
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }

.srch-tip { margin-top: 14px; font-size: 12.5px; color: var(--muted); min-height: 20px; }
.srch-more { display: flex; justify-content: center; margin: 36px 0 12px; }
#srch-goods, #srch-stores { margin-top: 36px; }

/* 搜索结果里的商品卡（JS 生成，复用 gcard 样式） */
.srch-sec-title { margin: 36px 0 18px; font-family: var(--serif); font-size: 18px; letter-spacing: .08em; color: var(--sub); }

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .grid5 { grid-template-columns: repeat(4, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .gd { grid-template-columns: 420px 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-slide img { height: 300px; }
  .trust-in { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid5, .grid4, .main-col .grid4 { grid-template-columns: repeat(3, 1fr); }
  .layout-2c { grid-template-columns: 1fr; }
  .side { position: static; flex-direction: row; overflow-x: auto; }
  .side-box { min-width: 240px; }
  .side-qr { display: none; }
  .gd { grid-template-columns: 1fr; }
  .gd-gallery { position: static; }
  .cta-in { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .hd-search { display: none; }
  .grid5, .grid4, .grid3, .main-col .grid4, .main-col .grid3 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hero-slide img { height: 200px; }
  .sec-hd h2 { font-size: 22px; }
  .gd-buy { flex-direction: column; }
  .sd-hd { flex-direction: column; text-align: center; }
  .ft-grid { grid-template-columns: 1fr; gap: 32px; }
}
