/* =======================================================================
   南京聚佰伦网络科技有限公司 · 平台样式
   商城三方平台 + 第三方信息发布平台
   ======================================================================= */

:root {
  --ink: #1f2733;
  --ink-soft: #5c6779;
  --ink-mute: #8b95a5;
  --paper: #f4f6fa;
  --paper-2: #eef1f7;
  --white: #ffffff;
  --line: #e2e7f0;
  --line-2: #d3dae6;
  --brand: #1c5fd0;
  --brand-d: #14479e;
  --brand-l: #eef4ff;
  --accent: #c8503a;
  --accent-l: #fdf1ee;
  --ok: #2c7a5b;
  --ok-l: #e9f5ef;
  --warn: #a4761c;
  --warn-l: #fbf3e0;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 18px rgba(31, 39, 51, .06);
  --shadow-md: 0 8px 28px rgba(31, 39, 51, .10);
  --shadow-lg: 0 16px 44px rgba(31, 39, 51, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }
.wrap { width: min(1200px, 94vw); margin: 0 auto; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- 顶栏 ---------- */
#siteHeader {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  background: var(--ink); color: #cfd6e2; font-size: 12.5px;
}
.header-top .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.header-top .ht-l { display: flex; gap: 18px; }
.header-top .ht-r { display: flex; gap: 18px; align-items: center; }
.header-top span { display: inline-flex; align-items: center; gap: 5px; }
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { display: flex; flex-shrink: 0; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav-link { padding: 9px 15px; border-radius: 9px; font-size: 15px; color: var(--ink-soft); transition: background .18s, color .18s; }
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link.active { background: var(--brand); color: #fff; font-weight: 600; }
.header-right { margin-left: auto; display: flex; gap: 9px; align-items: center; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--ink-soft); }
.cart-link:hover { border-color: var(--brand); color: var(--brand); }
.cart-badge {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 9px; font-size: 11.5px; line-height: 18px;
  text-align: center; font-weight: 700;
}
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; color: var(--ink); }
.user-chip:hover { border-color: var(--brand); color: var(--brand); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; cursor: pointer; color: var(--ink-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 1px solid transparent; border-radius: 9px; padding: 11px 20px;
  font-size: 15px; font-weight: 600; transition: all .16s; background: none;
}
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(28, 95, 208, .22); }
.btn-solid:hover { background: var(--brand-d); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(200, 80, 58, .2); }
.btn-accent:hover { background: #ad402c; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #226048; }
.btn-danger { background: #fff; color: #b03a25; border-color: #eccfc8; }
.btn-danger:hover { background: #fdf3f1; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 首屏 ---------- */
.hero {
  background:
    radial-gradient(120% 100% at 88% 0%, rgba(28, 95, 208, .09), transparent 58%),
    radial-gradient(90% 90% at 4% 100%, rgba(200, 80, 58, .06), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--paper));
  border-bottom: 1px solid var(--line);
  padding: 58px 0 54px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.28; margin: 0 0 16px; font-weight: 800; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 26px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 25px; color: var(--brand); display: block; line-height: 1.2; }
.hero-stats .stat span { font-size: 13px; color: var(--ink-soft); }
.hero-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.hero-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.entry-card {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.entry-icon { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.entry-icon.blue { background: var(--brand-l); color: var(--brand); }
.entry-icon.clay { background: var(--accent-l); color: var(--accent); }
.entry-body { flex: 1; min-width: 0; }
.entry-body b { display: block; font-size: 17px; margin-bottom: 3px; }
.entry-body span { font-size: 13.5px; color: var(--ink-soft); }
.entry-arrow { color: var(--ink-mute); flex-shrink: 0; }

/* ---------- 区块 ---------- */
.section { padding: 52px 0; }
.section-tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-head h2 { font-size: 25px; margin: 0 0 6px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.section-head .more { font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }
.sec-mark { display: inline-block; width: 4px; height: 20px; border-radius: 2px; background: var(--brand); }

/* ---------- 类目胶囊 ---------- */
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: 14px; cursor: pointer; color: var(--ink-soft);
  transition: all .16s;
}
.chip svg { color: var(--brand); }
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.chip.active svg { color: #fff; }
.chip .cnt { font-size: 12px; color: var(--ink-mute); }
.chip.active .cnt { color: rgba(255,255,255,.8); }

/* ---------- 商品卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card-media { aspect-ratio: 1/1; background: var(--paper-2); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-flag {
  position: absolute; left: 11px; top: 11px; background: rgba(255,255,255,.94); color: var(--brand);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow);
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { font-size: 13px; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-seller { font-size: 12.5px; color: var(--ink-mute); display: flex; align-items: center; gap: 5px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { color: var(--accent); font-weight: 800; font-size: 19px; }
.price i { font-style: normal; font-size: 13px; font-weight: 700; margin-right: 1px; }
.price-orig { color: var(--ink-mute); font-size: 12.5px; text-decoration: line-through; }
.price-suffix { font-size: 12.5px; color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); font-size: 12px; color: var(--ink-soft); }
.tag-blue { background: var(--brand-l); color: var(--brand); }
.tag-ok { background: var(--ok-l); color: var(--ok); }
.tag-warn { background: var(--warn-l); color: var(--warn); }
.tag-clay { background: var(--accent-l); color: var(--accent); }

/* ---------- 信息卡 ---------- */
.icard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.icard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.icard-media { aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; }
.icard-media img { width: 100%; height: 100%; object-fit: cover; }
.icard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.icard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icard-title { font-size: 16.5px; font-weight: 700; margin: 0; line-height: 1.45; }
.icard-sum { font-size: 13.5px; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icard-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-mute); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.icard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.icard-price { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- 商家墙 ---------- */
.merchant-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.merchant-cell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; text-align: center; transition: transform .18s, box-shadow .18s; }
.merchant-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mc-avatar { width: 52px; height: 52px; border-radius: 13px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0; }
.mc-avatar.a0 { background: linear-gradient(135deg, #2f6fd0, #1b4b98); }
.mc-avatar.a1 { background: linear-gradient(135deg, #3d8b74, #2a6455); }
.mc-avatar.a2 { background: linear-gradient(135deg, #a2703c, #7d5326); }
.mc-avatar.a3 { background: linear-gradient(135deg, #6a6fa8, #4a4f83); }
.mc-avatar.a4 { background: linear-gradient(135deg, #b76a52, #8e4c37); }
.merchant-cell b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.merchant-cell span { font-size: 12.5px; color: var(--ink-soft); display: block; }
.merchant-cell .mc-cnt { margin-top: 9px; font-size: 12.5px; color: var(--brand); }

/* ---------- 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.flow-item .step { font-size: 12.5px; font-weight: 700; color: var(--brand); letter-spacing: 1px; }
.flow-item b { display: block; margin: 8px 0 6px; font-size: 16px; }
.flow-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 面包屑 ---------- */
.crumb { font-size: 13.5px; color: var(--ink-soft); padding: 22px 0 16px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--line-2); }

/* ---------- 工具栏 ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-box input { width: 100%; padding: 11px 40px 11px 38px; border: 1px solid var(--line); border-radius: 9px; font-size: 14.5px; background: #fff; color: var(--ink); }
.search-box input:focus { outline: none; border-color: var(--brand); }
.search-box .si { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); display: flex; }
.select-box { padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: #fff; color: var(--ink); cursor: pointer; }
.filter-block { margin-bottom: 16px; }
.filter-label { font-size: 13px; color: var(--ink-mute); margin-bottom: 9px; }

/* ---------- 商品详情 ---------- */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 26px; align-items: start; }
.pd-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pd-top { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 0; }
.gallery-scroll {
  background: var(--paper-2); max-height: 560px; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line);
}
.gallery-scroll::-webkit-scrollbar { width: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.gallery-scroll::-webkit-scrollbar-track { background: #e9edf4; border-radius: 4px; }
.gallery-scroll img { width: 100%; border-radius: 9px; background: #fff; }
.gallery-tip { text-align: center; font-size: 12px; color: var(--ink-mute); display: flex; align-items: center; justify-content: center; gap: 5px; }
.pd-info { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 15px; }
.pd-info h1 { font-size: 25px; line-height: 1.35; margin: 0; font-weight: 800; }
.pd-sub { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.pd-price-box { background: linear-gradient(90deg, var(--accent-l), #fff); border: 1px solid #f2ddd7; border-radius: var(--radius); padding: 16px 18px; }
.pd-price-line { display: flex; align-items: baseline; gap: 12px; }
.pd-price-line .now { font-size: 30px; font-weight: 800; color: var(--accent); }
.pd-price-line .now i { font-style: normal; font-size: 17px; margin-right: 2px; }
.pd-price-line .orig { color: var(--ink-mute); text-decoration: line-through; font-size: 14px; }
.pd-price-line .save { margin-left: auto; font-size: 13px; color: var(--accent); background: #fff; border: 1px solid #f2ddd7; border-radius: 999px; padding: 3px 11px; }
.pd-stats { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; }
.spec-list li { display: flex; gap: 10px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.spec-list .sk { color: var(--ink-mute); min-width: 76px; flex-shrink: 0; }
.pd-highlight { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.pd-highlight li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.pd-highlight svg { flex-shrink: 0; color: var(--ok); margin-top: 5px; }
.qty-row { display: flex; align-items: center; gap: 14px; }
.qty-label { font-size: 14px; color: var(--ink-soft); }
.qty-ctrl { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.qty-ctrl button { width: 38px; height: 38px; border: none; background: #fff; font-size: 18px; color: var(--ink-soft); cursor: pointer; }
.qty-ctrl button:hover { background: var(--paper-2); color: var(--brand); }
.qty-ctrl input { width: 56px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.qty-stock { font-size: 13px; color: var(--ink-mute); }
.pd-actions { display: flex; gap: 12px; }
.pd-actions .btn { flex: 1; }
.pd-promise { display: flex; gap: 8px; flex-wrap: wrap; }

/* 商家信息栏（右侧，可上下滑动） */
.seller-col { position: sticky; top: 92px; }
.seller-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.seller-head { display: flex; gap: 13px; align-items: center; padding: 18px 18px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--brand-l), #fff); }
.seller-logo { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #2f6fd0, #1b4b98); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; flex-shrink: 0; }
.seller-base { min-width: 0; }
.seller-base b { display: block; font-size: 15.5px; line-height: 1.4; }
.seller-base .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.seller-scroll { max-height: 468px; overflow-y: auto; }
.seller-scroll::-webkit-scrollbar { width: 8px; }
.seller-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.seller-stats div { text-align: center; padding: 14px 6px; border-right: 1px solid var(--line); }
.seller-stats div:last-child { border-right: none; }
.seller-stats b { display: block; font-size: 18px; color: var(--brand); }
.seller-stats span { font-size: 12px; color: var(--ink-soft); }
.seller-meta { padding: 14px 18px; }
.seller-meta .row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.seller-meta .row:last-child { border-bottom: none; }
.seller-meta .row .k { color: var(--ink-mute); flex-shrink: 0; }
.seller-meta .row .v { text-align: right; color: var(--ink); }
.phone-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.phone-cell .login-tip { font-style: normal; font-size: 11.5px; color: var(--brand); }
.phone-cell.clickable { cursor: pointer; }
.phone-cell.clickable:hover .num { color: var(--brand); text-decoration: underline; }
.seller-actions { padding: 0 18px 16px; display: flex; gap: 10px; }
.seller-actions .btn { flex: 1; padding: 10px 12px; font-size: 14px; }
.seller-section { border-top: 1px solid var(--line); padding: 14px 18px 18px; }
.seller-section h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.seller-goods { display: flex; flex-direction: column; gap: 10px; }
.seller-good { display: flex; gap: 11px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; transition: border-color .16s; }
.seller-good:hover { border-color: var(--brand); }
.seller-good img { width: 54px; height: 54px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.seller-good .g-info { min-width: 0; flex: 1; }
.seller-good .g-name { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seller-good .g-price { font-size: 13.5px; color: var(--accent); font-weight: 700; margin-top: 3px; }
.shop-entry { display: block; text-align: center; font-size: 13.5px; color: var(--brand); padding: 12px; border-top: 1px solid var(--line); }
.shop-entry:hover { background: var(--brand-l); }

/* ---------- 详情正文 ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin-top: 24px; }
.panel > h3 { margin: 0 0 18px; font-size: 19px; display: flex; align-items: center; gap: 9px; }
.panel > h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--brand); }
.article p { font-size: 15.5px; color: #37404e; line-height: 1.95; margin: 0 0 15px; }
.article h4 { font-size: 16px; margin: 24px 0 10px; }
.article-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 6px; }
.article-images img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.rv-summary { display: flex; align-items: baseline; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.rv-score { font-size: 32px; font-weight: 800; color: var(--accent); }
.rv-label { font-size: 13px; color: var(--ink-soft); }
.rv-count { margin-left: auto; font-size: 13.5px; color: var(--ink-soft); }
.rv-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rv-item:last-child { border-bottom: none; }
.rv-head { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.rv-user { font-weight: 600; }
.rv-stars { display: inline-flex; align-items: center; gap: 2px; color: #d99a1e; }
.rv-stars .st-off { opacity: .45; }
.rv-date { margin-left: auto; color: var(--ink-mute); font-size: 12.5px; }
.rv-text { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- 店铺页 ---------- */
.shop-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; display: flex; gap: 20px; align-items: center; box-shadow: var(--shadow); margin-bottom: 26px; flex-wrap: wrap; }
.shop-hero .sh-logo { width: 66px; height: 66px; border-radius: 16px; background: linear-gradient(135deg, #2f6fd0, #1b4b98); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex-shrink: 0; }
.shop-hero .sh-body { flex: 1; min-width: 240px; }
.shop-hero .sh-body h1 { margin: 0 0 8px; font-size: 22px; }
.shop-hero .sh-body p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.shop-hero .sh-facts { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }
.shop-hero .sh-facts b { color: var(--ink); }

/* ---------- 购物车 / 结算 ---------- */
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cart-head-row, .cart-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px 128px 108px 76px; gap: 12px; align-items: center; padding: 15px 20px; }
.cart-head-row { background: var(--paper-2); font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.cart-row { border-top: 1px solid var(--line); }
.cart-good { display: flex; gap: 14px; align-items: center; min-width: 0; }
.cart-good img { width: 76px; height: 76px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.cart-good .cg-info { min-width: 0; }
.cart-good .cg-name { font-size: 14.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-good .cg-seller { font-size: 12.5px; color: var(--ink-mute); margin-top: 5px; }
.cart-sum { text-align: right; font-weight: 700; color: var(--accent); }
.cart-bar { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 24px; margin-top: 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
.cart-bar .cb-total { margin-left: auto; font-size: 14px; color: var(--ink-soft); display: flex; align-items: baseline; gap: 8px; }
.cart-bar .cb-total b { font-size: 24px; color: var(--accent); }
.link-del { background: none; border: none; color: var(--ink-mute); font-size: 13px; cursor: pointer; padding: 4px; }
.link-del:hover { color: var(--accent); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.form-card > h3 { margin: 0 0 20px; font-size: 18px; }
.option-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.option-box { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: all .16s; background: #fff; }
.option-box:hover { border-color: var(--brand); }
.option-box.on { border-color: var(--brand); background: var(--brand-l); box-shadow: 0 0 0 1px var(--brand) inset; }
.option-box b { display: block; font-size: 15px; margin-bottom: 3px; }
.option-box span { font-size: 12.5px; color: var(--ink-soft); }
.sum-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; position: sticky; top: 92px; box-shadow: var(--shadow); }
.sum-card h4 { margin: 0 0 16px; font-size: 16px; }
.sum-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 300px; overflow-y: auto; }
.sum-list li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.sum-list img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.sum-list .sl-name { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sum-list .sl-qty { color: var(--ink-mute); }
.sum-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); padding: 7px 0; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 13px; font-size: 15px; color: var(--ink); }
.sum-line.total b { font-size: 22px; color: var(--accent); }

/* ---------- 订单 ---------- */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden; }
.order-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--paper-2); font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap; }
.order-head .ono { color: var(--ink); font-weight: 600; }
.order-head .oact { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.order-body { padding: 6px 20px; }
.order-item { display: flex; gap: 13px; align-items: center; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.order-item:last-child { border-bottom: none; }
.order-item img { width: 62px; height: 62px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.order-item .oi-name { flex: 1; min-width: 0; font-size: 14px; }
.order-item .oi-meta { font-size: 12.5px; color: var(--ink-mute); }
.order-foot { display: flex; gap: 20px; align-items: center; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap; }
.order-foot .of-total { font-size: 14px; }
.order-foot .of-total b { font-size: 20px; color: var(--accent); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.st-pending { background: var(--warn-l); color: var(--warn); }
.st-confirmed { background: var(--brand-l); color: var(--brand); }
.st-shipped { background: #eef0fb; color: #4a54a8; }
.st-done { background: var(--ok-l); color: var(--ok); }
.st-cancelled { background: #f0f1f4; color: var(--ink-mute); }

/* ---------- 信息广场 ---------- */
.info-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 92px; }
.side-panel h4 { margin: 0; padding: 16px 18px 12px; font-size: 15px; }
.side-nav { list-style: none; margin: 0; padding: 0 10px 14px; }
.side-nav li a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.side-nav li a:hover { background: var(--paper-2); color: var(--ink); }
.side-nav li a.on { background: var(--brand-l); color: var(--brand); font-weight: 600; }
.side-note { border-top: 1px solid var(--line); padding: 16px 18px; background: linear-gradient(180deg, #fbfcfe, #fff); }
.side-note b { display: block; font-size: 13.5px; margin-bottom: 7px; }
.side-note p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- 信息详情 ---------- */
.id-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.id-article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 34px 34px; }
.id-article h1 { font-size: 26px; line-height: 1.4; margin: 0 0 16px; font-weight: 800; }
.id-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-mute); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.id-meta span { display: inline-flex; align-items: center; gap: 5px; }
.id-cover { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 22px; }
.id-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.pub-card h4 { margin: 0 0 14px; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.pub-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pub-row:last-of-type { border-bottom: none; }
.pub-row .k { color: var(--ink-mute); }
.pub-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-l); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.pub-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pub-head b { display: block; font-size: 15px; }
.pub-head span { font-size: 12.5px; color: var(--ink-mute); }
.pub-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.notice-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 18px 20px; }
.notice-card b { display: block; font-size: 14px; margin-bottom: 8px; }
.notice-card p { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); }
.notice-card p:last-child { margin-bottom: 0; }

/* ---------- 表单 ---------- */
.auth-wrap { max-width: 460px; margin: 46px auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--accent); margin-left: 3px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 9px;
  font-size: 15px; background: #fff; color: var(--ink); transition: border .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28,95,208,.08); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.field .hint { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-soft); margin: 11px 0; line-height: 1.7; }
.check-row input { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; }
.check-row a { color: var(--brand); text-decoration: underline; }
.form-error { color: #b03a25; font-size: 13.5px; min-height: 20px; margin: 2px 0 10px; }
.form-ok { color: var(--ok); font-size: 13.5px; min-height: 20px; margin: 2px 0 10px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.auth-switch a { color: var(--brand); font-weight: 600; }
.upload-box { border: 1px dashed var(--line-2); border-radius: 10px; padding: 20px; text-align: center; color: var(--ink-soft); font-size: 13.5px; cursor: pointer; background: var(--paper); }
.upload-box:hover { border-color: var(--brand); color: var(--brand); }
.upload-preview { margin-top: 12px; display: none; }
.upload-preview img { max-height: 180px; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- 个人中心 ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow); margin: 24px 0; flex-wrap: wrap; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #2f6fd0, #1b4b98); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.profile-head .info b { font-size: 19px; }
.profile-head .info p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.profile-head .ph-stats { margin-left: auto; display: flex; gap: 26px; }
.profile-head .ph-stats div { text-align: center; }
.profile-head .ph-stats b { display: block; font-size: 20px; color: var(--brand); }
.profile-head .ph-stats span { font-size: 12.5px; color: var(--ink-soft); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab { padding: 11px 18px; cursor: pointer; font-size: 15px; color: var(--ink-soft); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.my-item { display: flex; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; margin-bottom: 13px; align-items: center; }
.my-thumb { width: 104px; height: 76px; border-radius: 9px; overflow: hidden; background: var(--paper-2); flex-shrink: 0; }
.my-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-body { flex: 1; min-width: 0; }
.my-body .t { font-weight: 700; font-size: 15.5px; margin: 0 0 5px; }
.my-body .m { font-size: 12.5px; color: var(--ink-mute); margin: 0 0 5px; }
.my-body .s { font-size: 13px; color: var(--ink-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.mini-btn { padding: 7px 13px; font-size: 13px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--ink-soft); }
.mini-btn:hover { border-color: var(--brand); color: var(--brand); }
.mini-btn.danger:hover { border-color: #dda79a; color: #b03a25; }
.reject-note { font-size: 12.5px; color: #b03a25; background: #fdf3f1; border: 1px solid #f2ddd7; border-radius: 8px; padding: 7px 11px; margin-top: 7px; }

/* ---------- 后台 ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 24px 0; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px; }
.admin-stat b { font-size: 25px; color: var(--brand); display: block; line-height: 1.25; }
.admin-stat span { font-size: 12.5px; color: var(--ink-soft); }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--paper-2); font-weight: 700; color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafbfd; }
.admin-table .t-title { font-weight: 600; font-size: 14px; }
.admin-table .t-sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.admin-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-actions .mini-btn { padding: 6px 12px; font-size: 12.5px; }
.mini-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini-btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.mini-btn.no { background: #fff; border-color: #dda79a; color: #b03a25; }
.admin-toolbar { display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-toolbar .sp { margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

/* ---------- 弹窗 / 提示 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(22, 30, 42, .48); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 22px; }
.modal { background: #fff; border-radius: var(--radius-lg); padding: 26px 28px; max-width: 620px; width: 100%; box-shadow: var(--shadow-lg); max-height: 86vh; overflow-y: auto; }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal .modal-sub { font-size: 13px; color: var(--ink-mute); margin: 0 0 18px; }
.modal .modal-body { font-size: 14.5px; color: #37404e; line-height: 1.9; }
.modal .modal-body p { margin: 0 0 12px; }
.modal .modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.modal textarea { width: 100%; min-height: 100px; border: 1px solid var(--line-2); border-radius: 9px; padding: 12px; font-size: 14px; font-family: inherit; resize: vertical; }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .26s, transform .26s; z-index: 300; pointer-events: none; max-width: 82vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 空态 / 分页 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty svg { color: var(--line-2); margin-bottom: 12px; }
.empty p { margin: 0 0 6px; font-size: 15px; }
.loading { text-align: center; padding: 50px; color: var(--ink-mute); }
.pagination { display: flex; gap: 7px; justify-content: center; margin: 30px 0 0; flex-wrap: wrap; }
.page-btn { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.page-btn:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.page-btn[disabled] { opacity: .4; cursor: not-allowed; }
.text-muted { color: var(--ink-mute); }

/* ---------- 内容页 ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 40px; }
.doc h1 { font-size: 26px; margin: 0 0 8px; }
.doc .doc-sub { color: var(--ink-mute); font-size: 13.5px; margin: 0 0 26px; }
.doc h2 { font-size: 18px; margin: 30px 0 12px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: 15px; color: #37404e; line-height: 1.95; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--brand); text-decoration: underline; }
.about-hero { padding: 40px 0 6px; }
.about-hero h1 { font-size: 30px; margin: 0 0 12px; }
.about-hero p { color: var(--ink-soft); max-width: 800px; font-size: 16px; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin: 26px 0 0; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow); }
.about-card h3 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 9px; }
.about-card h3::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--brand); }
.about-card p, .about-card li { color: #37404e; font-size: 14.5px; line-height: 1.95; }
.about-card ul { padding-left: 20px; margin: 10px 0 0; }
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.info-item { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.info-item b { display: block; font-size: 12.5px; color: var(--ink-mute); margin-bottom: 4px; font-weight: 600; }
.info-item span { font-size: 14.5px; }
.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 22px; margin: 8px 0 0; }
.timeline li { position: relative; margin-bottom: 16px; font-size: 14.5px; color: #37404e; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline b { display: block; color: var(--ink); }

/* ---------- 页脚 ---------- */
#siteFooter { background: #1b2432; color: #a9b3c2; margin-top: 56px; padding: 46px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 15.5px; margin-bottom: 13px; line-height: 1.5; }
.footer-desc { font-size: 13px; line-height: 1.9; max-width: 330px; margin: 0; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .5px; }
.footer-col a { display: block; font-size: 13px; color: #99a4b4; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-line { font-size: 12.5px; color: #8b96a6; margin: 0 0 8px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: 12.5px; color: #8b96a6; flex-wrap: wrap; }
.footer-bottom a { color: #b9c3d1; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .fb-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .merchant-row { grid-template-columns: repeat(3, 1fr); }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 980px) {
  .hero-grid, .pd-layout, .checkout-layout, .id-layout, .info-layout, .about-grid { grid-template-columns: 1fr; }
  .pd-top { grid-template-columns: 1fr; }
  .gallery-scroll { max-height: 420px; border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .gallery-scroll img { width: 78%; flex-shrink: 0; }
  .seller-col, .sum-card, .side-panel, .id-side { position: static; }
  .seller-scroll { max-height: none; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .burger { display: inline-flex; }
  .header-top .ht-l span:nth-child(2) { display: none; }
}
@media (max-width: 760px) {
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .merchant-row { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .spec-list { grid-template-columns: 1fr; }
  .field-row, .option-row { grid-template-columns: 1fr; }
  .cart-head-row { display: none; }
  .cart-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .article-images { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .doc { padding: 24px 20px; }
  .id-article { padding: 22px 20px 26px; }
  .panel { padding: 20px; }
  .brand-name { font-size: 15px; white-space: normal; }
  .section { padding: 38px 0; }
}
@media (max-width: 520px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
