:root {
  --navy: #1f3a5f;
  --navy-d: #16304d;
  --gold: #c79a3a;
  --gold-d: #a87f25;
  --ink: #23262b;
  --muted: #6b7280;
  --line: #e3e6ea;
  --bg: #f5f6f8;
  --card: #ffffff;
  --red: #b3432f;
  --green: #2f7d4f;
  --shadow: 0 1px 3px rgba(20, 40, 70, 0.08), 0 6px 18px rgba(20, 40, 70, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-d); }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ic { vertical-align: -4px; }

/* 顶部条 */
.topbar { background: var(--navy-d); color: #cdd6e3; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #cdd6e3; }
.topbar .right a { margin-left: 16px; }

/* 导航 */
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .name { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: .3px; line-height: 1.2; }
.brand .name small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .5px; }
.menu { display: flex; gap: 4px; align-items: center; }
.menu a { padding: 8px 14px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.menu a:hover { background: #f0f3f7; color: var(--navy); }
.menu a.active { color: var(--navy); background: #eef2f7; font-weight: 600; }
.menu .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; cursor: pointer; background: var(--navy); color: #fff; font-weight: 600; }
.btn:hover { background: var(--navy-d); color: #fff; }
.btn.gold { background: var(--gold); color: #2a1f00; }
.btn.gold:hover { background: var(--gold-d); color: #2a1f00; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* 区块 */
section.block { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: 26px; margin: 0 0 8px; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { color: var(--gold-d); font-weight: 600; letter-spacing: 2px; font-size: 13px; }

/* Hero */
.hero { background: linear-gradient(135deg, #16304d 0%, #1f3a5f 55%, #2a4a72 100%); color: #fff; padding: 70px 0; }
.hero h1 { font-size: 38px; margin: 0 0 14px; line-height: 1.25; }
.hero p { font-size: 17px; color: #d6e0ec; max-width: 680px; }
.hero .cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.3); }

/* 类目网格 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; display: flex; gap: 14px; align-items: center; transition: .15s; box-shadow: var(--shadow); }
.cat-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.cat-ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 48px; }
.cat-card h4 { margin: 0 0 2px; font-size: 16px; color: var(--ink); }
.cat-card p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* 卡片列表 */
.card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .15s; }
.info-card:hover { transform: translateY(-3px); border-color: var(--navy); }
.info-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 20px; background: #eef2f7; color: var(--navy); }
.tag.vip { background: #fbf0d6; color: var(--gold-d); }
.tag.supply { background: #e7f1ea; color: var(--green); }
.tag.demand { background: #eef1f8; color: #3a5aa0; }
.price-badge { font-weight: 700; color: var(--gold-d); }
.info-card h3 { font-size: 16px; margin: 0 0 8px; line-height: 1.4; color: var(--ink); }
.info-card .summary { color: var(--muted); font-size: 13.5px; flex: 1; margin-bottom: 12px; }
.info-card .meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow .step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; box-shadow: var(--shadow); }
.flow .num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.flow h4 { margin: 0 0 6px; font-size: 16px; }
.flow p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* 数据概览 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--navy); color: #fff; border-radius: 14px; padding: 26px 20px; text-align: center; }
.stat .n { font-size: 34px; font-weight: 800; color: var(--gold); }
.stat .l { color: #cdd6e3; font-size: 14px; }

/* 双栏 */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }

/* 详情 */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 18px 0; }
.breadcrumb a { color: var(--muted); }
.detail { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.detail h1 { font-size: 24px; margin: 0 0 14px; }
.detail .dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 18px 0; }
.detail .dl div { font-size: 14px; }
.detail .dl b { color: var(--muted); font-weight: 500; margin-right: 6px; }
.locked { background: #fbf6ea; border: 1px solid #ecd9a8; border-radius: 12px; padding: 20px; text-align: center; margin: 18px 0; }
.locked .price { font-size: 28px; font-weight: 800; color: var(--gold-d); }

/* 微信扫码支付 */
.wechat-pay-box { background:#fff; border:1px solid #e8f5e9; border-radius:12px; padding:20px 16px; margin:16px auto 0; max-width:280px; }
.wechat-pay-title { font-size:15px; font-weight:600; color:#07c160; margin-bottom:12px; display:flex;align-items:center;justify-content:center;gap:6px; }
.wechat-pay-title::before { content:''; display:inline-block; width:18px;height:18px; border-radius:50%; background:#07c160; flex-shrink:0; }
.wechat-qrcode { width:200px; height:200px; object-fit:contain; border-radius:10px; border:1px solid #e0e0e0; display:block;margin:0 auto; }
.wechat-pay-hint { font-size:13px; color:var(--muted); margin-top:10px; }
.body-text { white-space: pre-wrap; color: #333; line-height: 1.8; font-size: 15px; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.side h4 { margin: 0 0 14px; font-size: 16px; color: var(--navy); }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv b { color: var(--muted); font-weight: 500; }

/* 表单 */
.form-box { max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); margin: 0 auto; }
.form-box h1 { font-size: 22px; margin: 0 0 6px; color: var(--navy); }
.form-box .sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.error-note { background: #fdecea; color: var(--red); border: 1px solid #f5c6bd; border-radius: 9px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }
.agree input { margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 页脚 */
footer.site { background: var(--navy-d); color: #c6d0de; margin-top: 50px; padding: 44px 0 24px; font-size: 14px; }
footer.site h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
.foot-grid a { color: #c6d0de; display: block; padding: 4px 0; }
.foot-grid a:hover { color: var(--gold); }
.foot-about { color: #aeb9c9; font-size: 13.5px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #9fb0c4; }
.foot-bottom a { color: var(--gold); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { background: #f3f6fa; color: var(--navy); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 20px; }
.badge.pending { background: #fff3da; color: #9a6b00; }
.badge.approved { background: #e7f1ea; color: var(--green); }
.badge.rejected { background: #fdeeec; color: var(--red); }
.badge.offline { background: #eceff2; color: var(--muted); }
.badge.paid { background: #e7f1ea; color: var(--green); }
.badge.unpaid { background: #fff3da; color: #9a6b00; }

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; }
.tabs a.active { color: var(--navy); border-color: var(--gold); font-weight: 600; }

/* 提示 */
.notice { background: #f0f6f1; border: 1px solid #cfe3d4; color: var(--green); border-radius: 9px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.plat-note { background: #eef2f7; border-left: 3px solid var(--navy); border-radius: 0 9px 9px 0; padding: 14px 16px; font-size: 14px; color: #3a4759; margin: 16px 0; }

/* 收银台 */
.pay-box { max-width: 720px; margin: 0 auto; }
.pay-method { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.pay-method.sel { border-color: var(--gold); background: #fbf6ea; }
.pay-method .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 18px; }
.pay-method.sel .radio { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 40%, #fff 45%); }
.qr-box { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.qr-box svg { width: 200px; height: 200px; }
.balance-line { font-size: 14px; color: var(--muted); }

/* 响应式 */
@media (max-width: 980px) {
  .cat-grid, .card-list, .flow, .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .nav-toggle { display: block; }
  .cat-grid, .card-list, .flow, .stats, .row2, .detail .dl { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
