/* ============================================================
   成都铭源星辰 · 视觉体系
   星辰深蓝头部 / 云白底 / 星际蓝主色 / 星光金点缀 / 图文轮播
   ============================================================ */
:root {
  --ink: #1F2530;
  --ink-soft: #39414F;
  --muted: #6B7382;
  --faint: #98A0AE;
  --bg: #F5F7FB;
  --panel: #FFFFFF;
  --panel-warm: #F8FAFD;
  --line: #E3E8F1;
  --line-strong: #CBD4E4;
  --dark: #101E3C;
  --dark-2: #182A52;
  --accent: #2456A6;
  --accent-deep: #173A75;
  --accent-soft: #E8EFFA;
  --amber: #C9942F;
  --amber-soft: #F7EEDB;
  --red: #B4452F;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(16, 30, 60, 0.06);
  --shadow-lift: 0 10px 28px rgba(16, 30, 60, 0.14);
  --serif: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "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; }
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: #0C1730; color: #AEB8CC; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: #D5DCEA; }
.topbar a:hover { color: #fff; }

/* ===== 主头部 ===== */
.site-header { background: linear-gradient(90deg, #101E3C 0%, #16294F 100%); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 18.5px; letter-spacing: 0.5px; }
.brand-text em { display: block; font-style: normal; font-size: 11.5px; color: #9AA3B2; letter-spacing: 1px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 16px; font-size: 15px; color: #C6CBD4; border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent; transition: color .15s;
}
.site-nav a:hover { color: #fff; }
.site-nav a.is-active { color: #fff; border-bottom-color: var(--amber); }
.auth-actions { display: flex; gap: 10px; align-items: center; }
.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: transparent; border-color: #3D4E74; color: #C9D2E4; }
.btn-ghost:hover { border-color: #7C90BC; color: #fff; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #B07F24; }
.btn-teal { background: var(--accent); color: #fff; }
.btn-teal:hover { background: var(--accent-deep); }
.btn-dark { background: var(--dark); 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: #FDF2EF; color: var(--red); border-color: #EED6CF; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.account-name { color: #DDE4F2; font-size: 13px; white-space: nowrap; }

/* ===== 首页 HERO 图文轮播 ===== */
.hero-carousel { position: relative; overflow: hidden; background: var(--dark); }
.hc-track { display: flex; transition: transform .55s ease; }
.hc-slide { position: relative; flex: none; width: 100%; min-height: 440px; display: flex; align-items: center; }
.hc-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-shade { position: absolute; inset: 0; background: linear-gradient(92deg, rgba(13,24,50,0.88) 0%, rgba(13,24,50,0.62) 46%, rgba(13,24,50,0.22) 100%); }
.hc-content { position: relative; z-index: 1; padding: 74px 0 78px; color: #F2F5FB; max-width: 640px; }
.hc-eyebrow { color: var(--amber); font-size: 13px; letter-spacing: 3px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.hc-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.hc-content h2 { font-family: var(--serif); font-size: 38px; line-height: 1.3; letter-spacing: 1px; }
.hc-content h2 em { font-style: normal; color: #F0C868; }
.hc-lead { color: #C4CDDF; font-size: 15px; margin: 16px 0 0; max-width: 520px; }
.hc-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hc-actions .btn-line { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); color: #fff; }
.hc-actions .btn-line:hover { border-color: #fff; color: #fff; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hc-dot { width: 26px; height: 4px; border-radius: 2px; border: none; background: rgba(255,255,255,0.34); transition: all .2s; }
.hc-dot.active { background: var(--amber); width: 40px; }
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(13,24,50,0.35); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.hc-arrow:hover { background: rgba(13,24,50,0.7); border-color: #fff; }
.hc-prev { left: 22px; }
.hc-next { right: 22px; }

/* 优势横条 */
.svc-strip { background: var(--dark); color: #C9D2E4; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.08); }
.svc-item { background: var(--dark); padding: 22px 24px; }
.svc-item strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.svc-item span { font-size: 12.5px; color: #9BA7C2; }

/* ===== 通用区块 ===== */
.section { padding: 54px 0; }
.section-tint { background: var(--panel); 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: 24px; margin-bottom: 30px; }
.section-head h2 { font-family: var(--serif); font-size: 26px; letter-spacing: 1px; }
.section-head h2::before { content: ""; display: block; width: 34px; height: 3px; background: var(--accent); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 14px; max-width: 460px; margin: 0; }
.more-link { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* 分类卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 18px; position: relative; overflow: hidden; transition: all .18s; cursor: pointer;
}
.cat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transition: transform .18s; }
.cat-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.cat-card:hover::before { transform: scaleY(1); }
.cat-card .cat-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 26px; padding: 0 8px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 13px; font-weight: 800; letter-spacing: 1px;
}
.cat-card h3 { font-size: 17px; margin: 12px 0 6px; }
.cat-card p { font-size: 13px; color: var(--muted); margin: 0 0 10px; min-height: 44px; }
.cat-card .cat-count { font-size: 12.5px; color: var(--accent); font-weight: 700; }

/* 目录式信息行 */
.dir-list { display: flex; flex-direction: column; gap: 12px; }
.dir-row {
  display: grid; grid-template-columns: 56px 1fr 210px; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-strong);
  border-radius: var(--radius); padding: 16px 20px; transition: all .15s;
}
.dir-row:hover { border-left-color: var(--accent); box-shadow: var(--shadow); }
.dir-row.is-rec { border-left-color: var(--amber); }
.dir-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--panel-warm); border: 1px solid var(--line); overflow: hidden; }
.dir-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-img { width: 100%; max-height: 340px; object-fit: cover; }
.cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-prod img { width: 54px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); flex: none; }
.dir-main h3 { font-size: 16.5px; }
.dir-main h3 a:hover { color: var(--accent); }
.dir-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.tag-chip { font-size: 11.5px; color: var(--muted); background: var(--panel-warm); border: 1px solid var(--line); padding: 1px 8px; border-radius: 3px; }
.tag-cat { color: var(--accent); background: var(--accent-soft); border-color: transparent; font-weight: 600; }
.tag-rec { color: var(--amber); background: var(--amber-soft); border-color: transparent; font-weight: 600; }
.dir-summary { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dir-side { border-left: 1px dashed var(--line-strong); padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.dir-side strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-side .dir-phone { color: var(--accent-deep); font-weight: 700; }
.login-hint { color: var(--amber); font-size: 12px; }
.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; }

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

/* 套餐 */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-align: left; position: relative; }
.plan-card.hot { border-color: var(--accent); box-shadow: var(--shadow-lift); }
.plan-card .plan-badge { position: absolute; top: -11px; left: 20px; background: var(--accent); color: #fff; font-size: 11.5px; padding: 2px 10px; border-radius: 3px; }
.plan-card h3 { font-family: var(--serif); font-size: 19px; }
.plan-price { color: var(--red); font-size: 30px; font-weight: 800; margin: 10px 0 4px; }
.plan-price em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-card ul { margin: 12px 0 18px; }
.plan-card li { font-size: 13.5px; color: var(--ink-soft); padding: 5px 0 5px 22px; position: relative; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* 商城商品卡 */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.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); transform: translateY(-3px); }
.goods-cover { height: 210px; display: block; position: relative; background: var(--panel-warm); 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: 10px; top: 10px; font-size: 11px; background: rgba(255,255,255,0.92); border: 1px solid var(--line); color: var(--ink-soft); padding: 1px 8px; border-radius: 3px; }
.goods-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.goods-body h3 { font-size: 14.5px; line-height: 1.45; min-height: 42px; }
.goods-body h3 a:hover { color: var(--accent); }
.goods-desc { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-price { color: var(--red); font-size: 19px; font-weight: 800; }
.goods-price em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); }
.goods-meta { font-size: 12px; color: var(--faint); margin: 8px 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-actions { margin-top: auto; display: flex; gap: 8px; }
.goods-actions .btn { flex: 1; text-align: center; padding: 7px 8px; font-size: 13px; }

/* 商城顶部横幅 */
.mall-banner { background: linear-gradient(120deg, #101E3C 0%, #1B3468 62%, #24507E 100%); color: #fff; padding: 40px 0; position: relative; overflow: hidden; }
.mall-banner::after { content: ""; position: absolute; right: -60px; top: -70px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(201,148,47,0.28), transparent 65%); }
.mall-banner h1 { font-family: var(--serif); font-size: 30px; letter-spacing: 1px; position: relative; z-index: 1; }
.mall-banner p { color: #C6D2E8; margin: 8px 0 0; font-size: 14.5px; position: relative; z-index: 1; }
.mall-svc { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.mall-svc span { font-size: 12.5px; color: #D8C08A; display: flex; align-items: center; gap: 6px; }
.mall-svc span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.mall-tools { display: flex; gap: 12px; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.mall-search { display: flex; flex: 1; min-width: 240px; max-width: 420px; }
.mall-search input { flex: 1; border: 1px solid var(--line-strong); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 9px 14px; background: var(--panel); font-size: 14px; outline: none; }
.mall-search input:focus { border-color: var(--accent); }
.mall-search button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.mall-sort { display: flex; gap: 8px; }
.mall-sort button { padding: 8px 16px; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--radius-sm); font-size: 13px; color: var(--ink-soft); }
.mall-sort button.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); font-weight: 700; }
.result-count { font-size: 13px; color: var(--muted); }

/* ===== 详情页 ===== */
.page-title-bar { background: var(--panel); border-bottom: 1px solid var(--line); padding: 26px 0; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a:hover { color: var(--accent); }
.page-title-bar h1 { font-family: var(--serif); font-size: 27px; letter-spacing: 0.5px; }
.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-family: var(--serif); font-size: 19px; 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; font-family: var(--serif); }
.prod-price-line { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.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; }
.form-card h1 { font-family: var(--serif); font-size: 23px; 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: #FEF8F7; }
.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; }
.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-deep); 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-family: var(--serif); font-size: 20px; 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-deep); }
.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: 3px; font-weight: 600; }
.badge-ok { background: var(--accent-soft); color: var(--accent-deep); }
.badge-wait { background: var(--amber-soft); color: #8A5A13; }
.badge-off { background: #EDEEF0; color: var(--muted); }
.badge-pay { background: #FDF2EF; color: var(--red); }
.notice-strip { background: var(--amber-soft); border: 1px solid #EBD9BC; color: #7A5312; 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-family: var(--serif); font-size: 26px; 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: #0C1730; color: #9BA7C2; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; padding: 46px 0 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #E6EBF5; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand strong { font-family: var(--serif); font-size: 16px; }
.footer-grid p { font-size: 13px; line-height: 1.8; }
.footer-col h4 { color: #E6EBF5; font-size: 14.5px; margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: #9BA7C2; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.copyright { border-top: 1px solid #1C2C52; padding: 16px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.copyright a { color: #7686AB; }
.copyright a:hover { color: #fff; }
.tech-support { color: #6B7382; font-size: 12px; }

/* ===== 商家入驻 ===== */
.ma-banner { background: linear-gradient(135deg, #C77F24 0%, #A4641A 100%); color: #fff; padding: 44px 0; }
.ma-banner-eyebrow { font-size: 13px; letter-spacing: 3px; margin-bottom: 10px; opacity: .9; }
.ma-banner h1 { font-family: var(--serif); font-size: 32px; letter-spacing: 1px; }
.ma-banner p { color: #F5E6D0; 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-family: var(--serif); font-size: 22px; 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-deep); 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-family: var(--serif); font-size: 20px; 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-deep); 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: #FEF8F7; }
.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-family: var(--serif); font-size: 22px; 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-deep); }
.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: var(--amber); 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(23, 26, 31, 0.55); 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); }
.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-family: var(--serif); font-size: 20px; 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) {
  .detail-layout, .prod-layout, .dash-layout { grid-template-columns: 1fr; }
  .cat-grid, .goods-grid { grid-template-columns: repeat(2, 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; }
  .dir-row { grid-template-columns: 1fr; }
  .dir-side { border-left: none; border-top: 1px dashed var(--line-strong); padding: 10px 0 0; }
  .side-panel { position: static; }
  .dash-aside { position: static; }
  .site-nav { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-content h2 { font-size: 30px; }
  .hc-content { padding: 56px 0 66px; }
  .hc-arrow { display: none; }
}
@media (max-width: 560px) {
  .cat-grid, .goods-grid, .plan-grid, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .ma-benefits, .ma-categories { grid-template-columns: 1fr; }
  .hc-content h2 { font-size: 25px; }
  .hc-slide { min-height: 360px; }
  .ma-banner h1 { font-size: 26px; }
  .ma-info-grid { grid-template-columns: 1fr; }
  .ma-step { flex-basis: 45%; }
  .shell { width: calc(100% - 28px); }
  .svc-grid { grid-template-columns: 1fr; }
}
