/* ============================================================
   漫锦日用品商城 · 藏蓝精选视觉体系
   深藏蓝 #12315C / 主蓝 #2A6098 / 金铜 #D9A441
   冷白底 #F3F6FB / 深蓝导航与页脚 / 10px 圆角卡片
   ============================================================ */
:root {
  --ink: #15243B;
  --ink-soft: #2C3D57;
  --muted: #5C6B81;
  --faint: #8996AA;
  --bg: #F3F6FB;
  --panel: #FFFFFF;
  --panel-warm: #F7FAFD;
  --line: #E1E9F4;
  --line-strong: #CBD8E8;
  --dark: #12315C;
  --dark-2: #12345C;
  --navy: #2A6098;
  --navy-deep: #12315C;
  --accent: #2A6098;
  --accent-deep: #12345C;
  --accent-dark: #12315C;
  --accent-soft: #E9F0FA;
  --amber: #D9A441;
  --amber-soft: #F7F0E2;
  --red: #C07A24;
  --danger: #B3423B;
  --gold: #E8C889;
  --ice: #AFCCE8;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(11, 34, 68, 0.06);
  --shadow-lift: 0 14px 34px rgba(11, 34, 68, 0.16);
  --sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.modal-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0 0 10px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ===== 顶部深藏蓝通栏 ===== */
.topbar { background: #12315C; color: #AFCCE8; font-size: 12.5px; border-bottom: 1px solid #12345C; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: #AFCCE8; }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar-user { color: var(--gold); font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.topbar-btn { background: none; border: none; color: #AFCCE8; font-size: 12.5px; padding: 0; }
.topbar-btn:hover { color: var(--gold); }
.topbar-hl { color: var(--gold); font-weight: 600; }
.topbar-sep { color: rgba(255,255,255,0.22); }

/* ===== 白色头部：文字logo + 大搜索框 + 购物车块 ===== */
.site-header { background: #FFFFFF; }
.header-inner { display: flex; align-items: center; gap: 34px; padding: 20px 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1.25; flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-txt { display: flex; flex-direction: column; }
.brand-main { font-size: 30px; font-weight: 900; color: var(--accent); letter-spacing: 2px; white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--faint); letter-spacing: 3px; }
.dd-search { flex: 1; max-width: 560px; }
.dd-search-box { display: flex; }
.dd-search-box input {
  flex: 1; border: 2px solid var(--accent); border-right: none; border-radius: 2px 0 0 2px;
  padding: 10px 14px; font-size: 14px; outline: none; background: #fff; min-width: 0;
}
.dd-search-box input:focus { border-color: var(--accent-dark); }
.dd-search-btn {
  background: var(--amber); color: #fff; border: none; border-radius: 0 2px 2px 0;
  padding: 0 30px; font-size: 15.5px; font-weight: 700; letter-spacing: 4px;
}
.dd-search-btn:hover { background: #C28A2C; }
.dd-hot { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--faint); }
.dd-hot a { color: var(--muted); }
.dd-hot a:hover { color: var(--accent); }
.dd-cart {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 4px; padding: 8px 22px; min-width: 96px;
  border: 1px solid var(--accent-deep);
}
.dd-cart:hover { color: #fff; background: var(--accent-deep); }
.dd-cart-icon { font-size: 15px; font-weight: 800; letter-spacing: 2px; }
.dd-cart-num { font-size: 12px; opacity: .92; }
.dd-cart-num b { color: #F3D79A; font-size: 14px; }

/* ===== 藏蓝横向导航条 ===== */
.main-nav { background: linear-gradient(90deg, #12315C 0%, #2A6098 100%); position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 10px rgba(11,34,68,0.22); }
.main-nav-inner { display: flex; align-items: stretch; height: 44px; }
.nav-all {
  flex: none; display: flex; align-items: center; padding: 0 26px;
  background: var(--accent-dark); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 1px;
}
.nav-all:hover { background: #0A1C38; color: #fff; }
.main-nav-link {
  display: flex; align-items: center; padding: 0 22px; color: #fff; font-size: 15px; font-weight: 600;
}
.main-nav-link:hover { background: rgba(0,0,0,0.12); color: #fff; }
.main-nav-link.is-active { background: rgba(0,0,0,0.18); color: #fff; }
.main-nav-phone { margin-left: auto; display: flex; align-items: center; color: rgba(255,255,255,0.88); font-size: 13px; }
.main-nav-phone b { color: #F3D79A; font-size: 15px; margin-left: 4px; }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 22px; font-size: 14px; font-weight: 600; transition: all .15s; line-height: 1.4;
}
.btn-ghost { background: #fff; border-color: #CBD8E8; color: #44536B; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #C28A2C; }
.btn-teal { background: var(--accent); color: #fff; }
.btn-teal:hover { background: var(--accent-deep); }
.btn-dark { background: #15243B; color: #fff; }
.btn-line { background: var(--panel); border-color: var(--line-strong); color: var(--ink-soft); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #E9F0FA; color: var(--red); border-color: #CFDCEB; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }

/* ===== 商城首页布局：左侧分类栏 + 主区 ===== */
.mall-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; padding: 18px 0 50px; }
.mall-side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-head { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px; padding: 12px 16px; }
.mall-side li + li { border-top: 1px solid #EDF2F8; }
.mall-side button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; padding: 11px 16px; font-size: 14px; color: var(--ink-soft); text-align: left;
}
.mall-side button:hover { background: #EEF4FB; color: var(--accent); }
.mall-side button.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.mall-side button em { font-style: normal; font-size: 12px; color: var(--faint); }
.mall-side button.active em { color: var(--accent); }
.side-foot { border-top: 1px solid var(--line); background: var(--panel-warm); padding: 14px 16px; text-align: center; }
.side-foot p { font-size: 12px; color: var(--muted); margin: 0; }
.side-foot strong { display: block; font-size: 17px; color: var(--accent); }
.side-foot span { font-size: 11.5px; color: var(--faint); }

.mall-main { min-width: 0; }
.promo-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: var(--radius); color: #fff; padding: 26px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
}
.pb-text h2 { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.pb-text p { color: rgba(255,255,255,0.88); font-size: 14px; margin: 8px 0 0; }
.pb-text .pb-note { font-size: 12.5px; color: rgba(255,255,255,0.72); margin-top: 6px; }
.pb-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; flex: none; }
.pb-feat {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm); padding: 10px 20px; font-size: 13.5px; font-weight: 700; text-align: center;
}
.pb-feat a { color: #fff; }

.mall-toolbar { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0 12px; }
.mall-tabs { display: flex; }
.mall-tabs button {
  background: none; border: none; border-right: 1px solid var(--line);
  padding: 11px 24px; font-size: 14px; color: var(--ink-soft); position: relative;
}
.mall-tabs button:hover { color: var(--accent); }
.mall-tabs button.active { color: var(--accent); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.result-count { font-size: 13px; color: var(--muted); padding-right: 18px; }
.shuffle-btn {
  background: #fff; border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 6px 18px; font-size: 13px; color: var(--ink-soft); margin-right: 18px; transition: all .15s;
}
.shuffle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* 筛选条 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar button {
  padding: 5px 16px; border-radius: 2px; border: 1px solid var(--line-strong);
  background: var(--panel); font-size: 13px; color: var(--ink-soft); transition: all .15s;
}
.filter-bar button:hover { border-color: var(--accent); color: var(--accent); }
.filter-bar button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== 商品卡（藏蓝精选式） ===== */
.goods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.goods-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .18s; display: flex; flex-direction: column; }
.goods-card:hover { box-shadow: var(--shadow-lift); }
.goods-cover { height: 220px; display: block; position: relative; background: #fff; overflow: hidden; }
.goods-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.goods-card:hover .goods-cover img { transform: scale(1.04); }
.goods-cover .goods-tag { position: absolute; left: 0; top: 10px; font-size: 11px; background: var(--accent); color: #fff; padding: 2px 10px; border-radius: 0 2px 2px 0; }
.goods-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.goods-body h3 { font-size: 14.5px; line-height: 1.45; min-height: 42px; font-weight: 600; }
.goods-body h3 a:hover { color: var(--accent); }
.goods-priceline { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 2px; }
.goods-priceline .gp { color: var(--red); font-size: 21px; font-weight: 800; }
.goods-priceline .gu { color: var(--faint); font-size: 12px; }
.goods-priceline .gs { margin-left: auto; color: var(--faint); font-size: 12px; }
.goods-meta { font-size: 12px; color: var(--faint); margin: 4px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-buy { width: 100%; text-align: center; margin-top: auto; padding: 8px 0; font-size: 13.5px; border-radius: 2px; }

/* 空状态 */
.empty-state { background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }
.empty-state h3 { font-size: 16px; margin-bottom: 6px; }

/* ===== 内页页头条 ===== */
.page-title-bar { background: var(--panel); border-bottom: 1px solid var(--line); padding: 20px 0; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--accent); }
.page-title-bar h1 { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.nph-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.nph-note { font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 2px; padding: 2px 12px; }

/* ===== 详情页 ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; padding: 30px 0 50px; }
.detail-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.detail-panel h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.detail-panel p { font-size: 14.5px; color: var(--ink-soft); }
.side-panel { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h4 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h4::before { content: ""; width: 14px; height: 2px; background: var(--amber); }
.side-rows { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.side-rows > div { display: flex; justify-content: space-between; gap: 12px; }
.side-rows span { color: var(--muted); white-space: nowrap; }
.side-rows strong { font-weight: 600; text-align: right; word-break: break-all; }
.check-list li { font-size: 13px; color: var(--ink-soft); padding: 6px 0 6px 20px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===== 商品详情 ===== */
.prod-layout { display: grid; grid-template-columns: 400px 1fr; gap: 30px; padding: 32px 0 50px; align-items: start; }
.prod-visual { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.prod-visual img { width: 100%; height: 100%; max-height: 460px; object-fit: contain; }
.prod-info { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.prod-info h1 { font-size: 22px; }
.prod-price-line { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 16px; }
.prod-price-line .p { color: var(--red); font-size: 32px; font-weight: 800; }
.prod-price-line .s { font-size: 13px; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; }
.spec-table td { border: 1px solid var(--line); padding: 8px 14px; font-size: 13.5px; }
.spec-table td:first-child { background: var(--panel-warm); color: var(--muted); width: 96px; }
.prod-actions { display: flex; gap: 12px; margin-top: 18px; }
.comment-block { margin-top: 26px; }
.comment-item { border-bottom: 1px dashed var(--line-strong); padding: 14px 0; }
.comment-item:last-child { border-bottom: none; }
.comment-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.comment-user { font-weight: 700; color: var(--ink-soft); }
.comment-stars { color: var(--amber); letter-spacing: 2px; }
.comment-date { margin-left: auto; font-size: 12px; color: var(--faint); }
.comment-text { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; }

/* ===== 表单 ===== */
.form-page { max-width: 460px; margin: 46px auto 60px; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 36px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 23px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.form-card .form-sub { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 14px; background: #fff; outline: none; transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 96px; }
.field-error { font-size: 12.5px; color: var(--red); margin-top: 5px; display: none; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color: var(--red); background: #F2F7FC; }
.form-field.has-error .field-error { display: block; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-canvas { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; flex: none; }
.agree-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 14px 0 18px; }
.agree-line a { color: var(--accent); }
.agree-line a:hover { text-decoration: underline; }
.form-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-switch a { color: var(--accent); font-weight: 600; }

/* ===== 购物车 ===== */
.cart-table { width: 100%; border-collapse: collapse; background: var(--panel); }
.cart-table th { background: var(--panel-warm); font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.qty-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty-ctl button { width: 30px; height: 30px; background: var(--panel-warm); border: none; font-size: 15px; }
.qty-ctl span { width: 42px; text-align: center; font-size: 14px; }
/* 收货信息表单 */
.ship-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 18px; }
.ship-form h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--accent); }
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 760px) { .ship-grid { grid-template-columns: 1fr; } }
.cart-summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.cart-total { font-size: 15px; }
.cart-total strong { color: var(--red); font-size: 26px; font-weight: 800; }

/* ===== 个人中心 / 后台 ===== */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 30px 0 56px; align-items: start; }
.dash-aside { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 96px; }
.dash-user { padding: 20px; border-bottom: 1px solid var(--line); background: var(--panel-warm); }
.dash-user strong { display: block; font-size: 15px; }
.dash-user span { font-size: 12.5px; color: var(--muted); }
.dash-nav button { display: block; width: 100%; text-align: left; padding: 12px 20px; background: none; border: none; border-left: 3px solid transparent; font-size: 14px; color: var(--ink-soft); }
.dash-nav button:hover { background: var(--panel-warm); }
.dash-nav button.active { border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.dash-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; min-height: 420px; }
.dash-main h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-box { background: var(--panel-warm); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat-box strong { display: block; font-size: 24px; color: var(--accent); }
.stat-box span { font-size: 12.5px; color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--line-strong); white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.data-table .t-title { max-width: 300px; }
.badge { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 2px; font-weight: 600; }
.badge-ok { background: var(--accent-soft); color: var(--accent-deep); }
.badge-wait { background: var(--amber-soft); color: #8A6426; }
.badge-off { background: #EDF2F8; color: var(--muted); }
.badge-pay { background: #E9F0FA; color: var(--red); }
.notice-strip { background: var(--amber-soft); border: 1px solid #E4D6B8; color: #7A5A24; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13.5px; margin-bottom: 18px; }
.record-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.record-row strong { font-size: 14px; }
.record-row .muted { color: var(--muted); }

/* ===== 协议页 ===== */
.doc-layout { padding: 40px 0 60px; }
.doc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 48px; }
.doc-card h1 { font-size: 26px; font-weight: 800; text-align: center; letter-spacing: 2px; }
.doc-intro { text-align: center; color: var(--muted); font-size: 14px; max-width: 720px; margin: 12px auto 26px; }
.doc-card h3 { font-size: 15.5px; margin: 22px 0 8px; color: var(--accent-deep); }
.doc-card p { font-size: 14.5px; color: var(--ink-soft); text-align: justify; }

/* ===== 页脚（深藏蓝） ===== */
.site-footer { background: linear-gradient(160deg, #12315C 0%, #12345C 100%); color: #AFCCE8; margin-top: 0; border-top: 3px solid var(--amber); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; padding: 46px 0 32px; }
.footer-col h4 { color: #FFFFFF; font-size: 14.5px; margin-bottom: 14px; font-weight: 700; position: relative; padding-left: 12px; }
.footer-col h4::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--amber); border-radius: 2px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: #AFCCE8; padding: 3px 0; }
.footer-col a:hover { color: var(--gold); }
.copyright { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #8FAAC8; }
.copyright a { color: #8FAAC8; }
.copyright a:hover { color: var(--gold); }

/* ===== 商家入驻 ===== */
.ma-banner { background: linear-gradient(135deg, #D9A441 0%, #C28A2C 100%); color: #fff; padding: 44px 0; }
.ma-banner-eyebrow { font-size: 13px; letter-spacing: 3px; margin-bottom: 10px; opacity: .9; }
.ma-banner h1 { font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.ma-banner p { color: rgba(255,255,255,0.9); margin: 10px 0 0; font-size: 15px; max-width: 640px; }
.ma-layout { padding-top: 30px; }
.ma-intro-hero { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 22px; }
.ma-intro-hero h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.ma-intro-hero p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.ma-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.ma-benefit { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.ma-benefit strong { display: block; font-size: 15px; color: var(--accent); margin-bottom: 6px; padding-bottom: 8px; border-bottom: 2px solid var(--amber-soft); }
.ma-benefit p { font-size: 12.5px; color: var(--muted); margin: 0; }
.ma-steps { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 22px; }
.ma-steps h3 { font-size: 16px; margin-bottom: 16px; color: var(--ink); }
.ma-steps-grid { display: flex; align-items: center; gap: 8px; }
.ma-step { flex: 1; text-align: center; }
.ma-step h4 { font-size: 14px; margin: 8px 0 4px; }
.ma-step p { font-size: 12px; color: var(--muted); margin: 0; }
.m-step-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; align-items: center; justify-content: center; }
.ma-step-arrow { color: var(--line-strong); font-size: 18px; flex: none; }
.ma-conditions { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 26px; }
.ma-conditions h3 { font-size: 16px; margin-bottom: 10px; color: var(--ink); }
.ma-form-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; }
.m-form-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; padding-left: 12px; border-left: 4px solid var(--amber); }
.m-form-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.required { color: var(--red); }
.m-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.m-step-no { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-warm); border: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 700; align-items: center; justify-content: center; }
#merchantStepBar { display: flex; gap: 8px; margin-bottom: 24px; padding: 0; }
#merchantStepBar li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 14px; border-radius: 999px; background: var(--panel-warm); border: 1px solid var(--line); }
#merchantStepBar li.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
#merchantStepBar li.active .m-step-no { background: var(--accent); border-color: var(--accent); color: #fff; }
#merchantStepBar li.done { color: var(--accent-deep); }
#merchantStepBar li.done .m-step-no { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.ma-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ma-cat-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; transition: all .15s; background: #fff; }
.ma-cat-check:hover { border-color: var(--accent); }
.ma-cat-check input { accent-color: var(--accent); }
.form-field.has-error .ma-categories { border: 1px solid var(--red); border-radius: var(--radius-sm); padding: 6px; background: #F2F7FC; }
.ma-confirm-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.ma-confirm-section { background: var(--panel-warm); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.ma-confirm-section h4 { font-size: 14px; color: var(--accent-deep); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-strong); }
.ma-confirm-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 13.5px; }
.ma-confirm-row span { color: var(--muted); white-space: nowrap; }
.ma-confirm-row strong { font-weight: 600; text-align: right; word-break: break-all; }
.ma-status-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; max-width: 680px; margin: 0 auto; text-align: center; }
.ma-status-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ma-status-card > p { color: var(--ink-soft); font-size: 14px; }
.ma-status-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin: 0 auto 16px; }
.ma-approved .ma-status-icon { background: var(--accent-soft); color: var(--accent); }
.ma-pending .ma-status-icon { background: var(--amber-soft); color: var(--amber); }
.ma-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; text-align: left; background: var(--panel-warm); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin-top: 18px; }
.ma-info-grid > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.ma-info-grid > div:nth-last-child(-n+2) { border-bottom: none; }
.ma-info-grid span { color: var(--muted); white-space: nowrap; }
.ma-info-grid strong { font-weight: 600; text-align: right; word-break: break-all; }
.ma-mall-cta { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px dashed var(--amber); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px; transition: all .15s; }
.ma-mall-cta:hover { background: var(--amber-soft); border-style: solid; }
.ma-mall-cta-icon { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--amber); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ma-mall-cta-text { font-size: 13.5px; color: var(--muted); flex: 1; }
.ma-mall-cta-text strong { color: #8A6426; font-size: 14.5px; margin-right: 4px; }
.ma-mall-cta-arrow { color: var(--amber); font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal.show { display: flex; }
.modal-card { background: var(--panel); border-radius: var(--radius); width: min(440px, 100%); max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lift); }
.modal-card.wide { width: min(620px, 100%); }
.modal-topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); background: var(--panel-warm); border-radius: var(--radius) var(--radius) 0 0; }
.modal-topbar span { font-weight: 700; font-size: 14.5px; }
.modal-close-btn { background: none; border: none; font-size: 22px; line-height: 1; color: var(--muted); }
.modal-close-btn:hover { color: var(--ink); }
.modal-body { padding: 24px 26px; }
.modal-body h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }
.pay-box { background: var(--panel-warm); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 14px 0; font-size: 13.5px; }
.pay-box > div { display: flex; justify-content: space-between; padding: 4px 0; }
.pay-code { text-align: center; margin: 8px 0; }
.pay-code img { width: 210px; height: 210px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 auto; background: #fff; padding: 8px; }
.pay-note { text-align: center; font-size: 12.5px; color: var(--muted); }
.modal-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }

/* ===== 响应式安全 ===== */
@media (max-width: 980px) {
  .mall-layout { grid-template-columns: 1fr; }
  .mall-side { display: none; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .prod-layout, .dash-layout { grid-template-columns: 1fr; }
  .plan-grid, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-benefits { grid-template-columns: repeat(2, 1fr); }
  .ma-categories { grid-template-columns: repeat(2, 1fr); }
  .ma-info-grid { grid-template-columns: 1fr; }
  .ma-steps-grid { flex-wrap: wrap; justify-content: center; }
  .ma-step-arrow { display: none; }
  .pb-feats { display: none; }
  .dd-search { max-width: none; }
  .main-nav-phone { display: none; }
  .topbar-links .topbar-sep:nth-of-type(n+2), .topbar-links a[data-route] { display: none; }
  .side-panel { position: static; }
  .dash-aside { position: static; }
}
@media (max-width: 560px) {
  .goods-grid, .plan-grid, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .ma-benefits, .ma-categories { grid-template-columns: 1fr; }
  .brand-main { font-size: 24px; }
  .dd-cart { padding: 6px 14px; min-width: 0; }
  .ma-banner h1 { font-size: 26px; }
  .ma-info-grid { grid-template-columns: 1fr; }
  .ma-step { flex-basis: 45%; }
  .shell { width: calc(100% - 28px); }
  .mall-tabs button { padding: 10px 14px; }
}

/* ============================================================
   藏蓝精选版 · 首页新区块与信息卡片（2026-11-04）
   ============================================================ */

/* 表单错误态使用独立危险色 */
.btn-danger { background:#FBEFEE; color:var(--danger); border-color:#EFD3D1; }
.btn-danger:hover { background:var(--danger); color:#fff; }
.field-error { color:var(--danger); }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { border-color:var(--danger); background:#FDF6F5; }
.form-field.has-error .ma-categories { border-color:var(--danger); }
.required { color:var(--danger); }

/* ===== HERO 双大图轮播 ===== */
.hero-wrap { width:100%; background:#12315C; }
.hero-slider { position:relative; height:448px; overflow:hidden; }
.hero-slide { position:absolute; inset:0; background-size:cover; background-position:center center; opacity:0; transition:opacity .85s ease; }
.hero-slide.is-active { opacity:1; z-index:2; }
.hslide-1 { background-image:linear-gradient(90deg, rgba(8,24,48,.95) 0%, rgba(8,24,48,.82) 36%, rgba(8,24,48,.30) 72%, rgba(8,24,48,.08) 100%), url("../images/hero/hero1.jpg"); }
.hslide-2 { background-image:linear-gradient(90deg, rgba(8,24,48,.95) 0%, rgba(8,24,48,.84) 38%, rgba(8,24,48,.34) 74%, rgba(8,24,48,.10) 100%), url("../images/hero/hero2.jpg"); }
.hero-inner { position:relative; z-index:3; height:100%; display:flex; align-items:center; }
.hero-copy { max-width:640px; color:#fff; }
.hero-kicker { display:inline-flex; align-items:center; gap:8px; font-size:11.5px; letter-spacing:3px; color:var(--gold); border:1px solid rgba(232,200,137,.5); background:rgba(11,34,68,.42); padding:6px 16px; border-radius:999px; }
.hero-copy h1 { font-size:52px; font-weight:900; letter-spacing:3px; line-height:1.2; margin:22px 0 12px; text-shadow:0 4px 24px rgba(0,0,0,.35); }
.hero-copy > p { font-size:15.5px; color:#D7E4F4; margin:0 0 26px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.btn-gold { background:linear-gradient(135deg,#E8B85C,#D9A441); color:#12315C; border:none; border-radius:999px; padding:12px 30px; font-weight:800; box-shadow:0 8px 24px rgba(0,0,0,.22); }
.btn-gold:hover { color:#12315C; filter:brightness(1.08); transform:translateY(-2px); }
.btn-outline-light { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.55); color:#fff; border-radius:999px; padding:11px 28px; }
.btn-outline-light:hover { background:#fff; color:#12315C; }
.hero-points { display:flex; gap:24px; flex-wrap:wrap; margin-top:30px; padding-top:18px; border-top:1px solid rgba(255,255,255,.22); }
.hero-points span { font-size:12.5px; color:#D7E4F4; display:flex; align-items:center; gap:8px; }
.hero-points span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); }
.hero-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.45); background:rgba(11,34,68,.45); color:#fff; font-size:26px; line-height:1; display:flex; align-items:center; justify-content:center; transition:all .18s; }
.hero-arrow:hover { background:var(--amber); color:#12315C; border-color:var(--amber); }
.hero-prev { left:26px; }
.hero-next { right:26px; }
.hero-dots { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); z-index:5; display:flex; gap:9px; }
.hero-dots button { width:28px; height:5px; padding:0; border:none; border-radius:3px; background:rgba(255,255,255,.45); transition:all .2s; }
.hero-dots button.is-active { width:52px; background:var(--gold); }
.hero-progress { position:absolute; left:0; bottom:0; width:100%; height:3px; z-index:5; background:rgba(255,255,255,.14); }
.hero-progress i { display:block; height:100%; width:0; background:var(--gold); }
.hero-progress.is-running i { animation:heroProgress 5.5s linear forwards; }
@keyframes heroProgress { from { width:0; } to { width:100%; } }

/* ===== 区块通用标题 ===== */
.section-block { margin:36px 0; scroll-margin-top:70px; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.section-head h2 { font-size:24px; font-weight:800; color:var(--ink); letter-spacing:1px; position:relative; padding-left:14px; margin-top:4px; }
.section-head h2::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:4px; border-radius:2px; background:linear-gradient(180deg,var(--amber),var(--accent)); }
.section-head p { font-size:12.5px; color:var(--muted); margin:6px 0 0 14px; }
.eyebrow { font-size:10.5px; letter-spacing:2.6px; color:var(--amber); font-weight:800; }
.sh-link { font-size:13px; color:var(--accent); font-weight:700; white-space:nowrap; cursor:pointer; }
.sh-link:hover { color:var(--amber); }

/* ===== 广告位：三栏品类入口 ===== */
.ad-strip { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-top:22px; }
.ad-card { position:relative; min-height:198px; border-radius:var(--radius); overflow:hidden; color:#fff; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; text-align:left; padding:20px 22px; background-size:cover; background-position:center; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; }
.ad-card::before { content:""; position:absolute; inset:0; background:linear-gradient(155deg, rgba(11,34,68,.88) 0%, rgba(11,34,68,.58) 55%, rgba(11,34,68,.32) 100%); }
.ad-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lift); color:#fff; }
.ad-card > span, .ad-card > h3, .ad-card > p { position:relative; z-index:2; }
.ad-clean { background-image:url("../images/ad/ad-clean.jpg"); }
.ad-kitchen { background-image:url("../images/ad/ad-kitchen.jpg"); }
.ad-store { background-image:url("../images/ad/ad-store.jpg"); }
.ad-kicker { font-size:10.5px; letter-spacing:2px; color:var(--gold); font-weight:700; margin-bottom:6px; }
.ad-card h3 { font-size:20px; font-weight:800; letter-spacing:1px; }
.ad-card p { font-size:12.5px; color:#DBE7F5; margin:7px 0 12px; }
.ad-cta { font-size:12.5px; font-weight:700; color:var(--gold); }

/* ===== 大幅广告位 ===== */
.ad-wide { position:relative; min-height:184px; border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:26px; padding:30px 36px; color:#fff; background:linear-gradient(120deg,#12315C 0%,#2A6098 100%); }
.ad-wide::after { content:""; position:absolute; right:0; top:0; bottom:0; width:48%; background:url("../images/ad/ad-bags.jpg") center center/cover no-repeat; opacity:.32; -webkit-mask-image:linear-gradient(90deg,transparent,#000 48%); mask-image:linear-gradient(90deg,transparent,#000 48%); }
.ad-wide > * { position:relative; z-index:2; }
.ad-wide-copy h2 { font-size:27px; font-weight:800; letter-spacing:1px; margin:8px 0; }
.ad-wide-copy p { font-size:13px; color:#CFE0F2; margin-bottom:18px; }
.ad-coupon { display:flex; gap:12px; flex-wrap:wrap; flex:none; }
.coupon { min-width:96px; border:1px dashed rgba(232,200,137,.75); background:rgba(255,255,255,.08); border-radius:10px; padding:12px 14px; text-align:center; }
.coupon strong { display:block; font-size:24px; line-height:1.2; color:var(--gold); font-weight:800; }
.coupon span { font-size:11.5px; color:#D7E4F4; }

/* ===== 热卖排行 ===== */
.rank-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:14px; }
.rank-card { position:relative; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:12px; display:flex; flex-direction:column; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s; }
.rank-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lift); }
.rank-no { position:absolute; left:0; top:0; z-index:3; width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-size:17px; font-weight:800; color:#fff; background:linear-gradient(135deg,#12315C,#2A6098); border-radius:10px 0 10px 0; }
.rank-card:first-child .rank-no { background:linear-gradient(135deg,#E8B85C,#C08A2C); color:#12315C; }
.rank-thumb { display:block; height:138px; border-radius:8px; overflow:hidden; background:var(--panel-warm); }
.rank-thumb img { width:100%; height:100%; object-fit:cover; }
.rank-name { font-size:13px; font-weight:700; line-height:1.45; margin:10px 0 6px; min-height:38px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rank-price { font-size:19px; font-weight:800; color:var(--red); }
.rank-sold { font-size:11px; color:var(--faint); }
.rank-bar { height:5px; border-radius:3px; background:var(--accent-soft); overflow:hidden; margin:9px 0 12px; }
.rank-bar i { display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,#2A6098,#D9A441); }
.rank-buy { margin-top:auto; width:100%; text-align:center; border:none; border-radius:999px; padding:8px 0; font-size:12.5px; font-weight:700; color:#fff; background:linear-gradient(135deg,#2A6098,#12345C); }
.rank-buy:hover { background:linear-gradient(135deg,#D9A441,#C08A2C); color:#12315C; }

/* ===== 限时促销 ===== */
.promo-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.promo-card { display:grid; grid-template-columns:150px 1fr; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.promo-media { position:relative; min-height:190px; background:var(--panel-warm); }
.promo-media img { width:100%; height:100%; object-fit:cover; }
.promo-flag { position:absolute; left:0; top:0; background:linear-gradient(135deg,#12315C,#2A6098); color:var(--gold); font-size:11px; font-weight:700; letter-spacing:1px; padding:5px 12px; border-radius:0 0 8px 0; }
.promo-info { padding:16px 18px; display:flex; flex-direction:column; min-width:0; }
.promo-info h3 { font-size:15px; font-weight:800; line-height:1.45; }
.promo-desc { font-size:12px; color:var(--muted); margin:6px 0 10px; line-height:1.6; }
.promo-prices { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-top:auto; }
.promo-prices .now { font-size:24px; font-weight:800; color:var(--red); }
.promo-prices .was { font-size:12px; color:var(--faint); text-decoration:line-through; }
.promo-prices .save { font-size:10.5px; color:#fff; background:var(--danger); border-radius:4px; padding:2px 7px; }
.promo-btn { margin-top:12px; width:100%; text-align:center; border:none; border-radius:999px; padding:9px 0; font-size:13px; font-weight:700; color:#12315C; background:linear-gradient(135deg,#E8B85C,#D9A441); }
.promo-btn:hover { filter:brightness(1.07); }

/* ===== 商品卡 / 横幅：藏蓝重绘 ===== */
.goods-card { box-shadow:var(--shadow); }
.goods-cover .goods-tag { top:0; left:0; border-radius:0 0 8px 0; padding:4px 12px; background:linear-gradient(135deg,#12315C,#2A6098); }
.goods-priceline .gp-was { font-size:12px; color:var(--faint); text-decoration:line-through; }
.goods-buy { background:linear-gradient(135deg,#2A6098,#12345C); color:#fff; border:none; border-radius:999px; }
.goods-card .goods-buy:hover { background:linear-gradient(135deg,#D9A441,#C08A2C); color:#12315C; }
.promo-banner { background:linear-gradient(120deg,#12315C 0%,#2A6098 62%,#2B62A6 100%); border:1px solid rgba(232,200,137,.22); }
.pb-feat { background:rgba(255,255,255,.10); border-color:rgba(232,200,137,.38); }

/* ===== 新区块响应式 ===== */
@media (max-width: 1100px) {
  .rank-grid { grid-template-columns:repeat(3, 1fr); }
  .rank-card:nth-child(n+4) { display:none; }
  .promo-grid { grid-template-columns:1fr 1fr; }
  .promo-card:nth-child(n+3) { display:none; }
  .ad-wide { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 980px) {
  .hero-slider { height:390px; }
  .hero-copy h1 { font-size:40px; }
  .ad-strip { grid-template-columns:1fr 1fr; }
  .ad-card:last-child { display:none; }
}
@media (max-width: 560px) {
  /* 头部：品牌 + 购物车一行，搜索框独占一行 */
  .header-inner { flex-wrap:wrap; gap:10px 12px; padding:12px 0 10px; }
  .brand { order:1; }
  .brand-main { font-size:22px; }
  .brand-sub { font-size:10px; letter-spacing:1px; }
  .dd-cart { order:2; margin-left:auto; padding:6px 14px; min-width:0; }
  .dd-search { order:3; flex:1 1 100%; max-width:none; }
  .dd-search-box input { padding:9px 10px; font-size:13px; }
  .dd-search-btn { padding:0 16px; font-size:14px; letter-spacing:1px; }
  .dd-hot { overflow:hidden; white-space:nowrap; }
  /* 导航：单行横向滑动，禁止折行 */
  .main-nav-inner { height:auto; min-height:44px; flex-wrap:nowrap; overflow-x:auto; }
  .nav-all { padding:0 14px; font-size:13px; white-space:nowrap; }
  .main-nav-link { padding:0 12px; font-size:13px; white-space:nowrap; }
  .main-nav-phone { display:none; }
  /* HERO */
  .hero-slider { height:360px; }
  .hero-copy h1 { font-size:31px; letter-spacing:1px; }
  .hero-copy > p { font-size:13px; }
  .hero-points { gap:12px; margin-top:20px; }
  .hero-arrow { display:none; }
  .section-head { flex-direction:column; align-items:flex-start; }
  .section-head h2 { font-size:20px; }
  .ad-strip, .rank-grid, .promo-grid { grid-template-columns:1fr; }
  .ad-card:last-child, .rank-card:nth-child(n+4) { display:flex; }
  .promo-card:nth-child(n+3) { display:grid; }
  .rank-card:nth-child(n+3) { display:none; }
  .ad-wide { padding:24px 20px; }
  .ad-wide-copy h2 { font-size:22px; }
  .ad-coupon { gap:8px; }
  .coupon { min-width:84px; padding:10px; }
  .promo-card { grid-template-columns:120px 1fr; }
  .promo-media { min-height:170px; }
}
