/* ==========================================================================
   四川哈咪熊科技有限公司 —— 站点样式（ICP 证核验用）
   纯静态、零第三方依赖，可直接部署到境内服务器，无外链资源加载失败风险。
   ========================================================================== */

:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #eef3ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #f5f7fb;
  --white: #ffffff;
  --ok: #0f766e;
  --ok-soft: #e7f6f3;
  --warn: #b45309;
  --warn-soft: #fff7e6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.35; font-weight: 600; }
h1 { font-size: 32px; letter-spacing: -.4px; }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 4px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.7; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; } .mb-8 { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; } .mb-24 { margin-bottom: 24px; }

/* ---------- 顶部示例提示条（正式上线前删除该 div） ---------- */
.demo-banner {
  background: var(--warn-soft);
  border-bottom: 1px solid #f2dfb8;
  color: var(--warn);
  font-size: 13px;
  padding: 7px 0;
}
.demo-banner .wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-banner strong { font-weight: 600; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff; font-weight: 600; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15.5px; }
.brand-text small { font-size: 11.5px; color: var(--muted); }

.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-2); font-size: 14.5px; padding: 6px 11px; border-radius: 8px;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }

.header-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  cursor: pointer; font-family: inherit; line-height: 1.5; white-space: nowrap;
  transition: .16s ease;
}
.btn:hover { border-color: #c8d2e2; text-decoration: none; }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 10px rgba(29, 78, 216, .22);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-lg { padding: 12px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- 通用板块 ---------- */
.section { padding: 54px 0; }
.section.tight { padding: 36px 0; }
.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--primary); background: var(--primary-soft);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 420px at 82% -12%, #dbe6ff 0%, rgba(245, 247, 251, 0) 62%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 60px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero h1 { font-size: 38px; }
.hero .lead { font-size: 16.5px; color: var(--ink-2); margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pill {
  font-size: 13px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.pill::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* 订单预览卡 */
.order-preview { padding: 0; overflow: hidden; }
.order-preview .op-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line); background: #fbfcfe;
}
.order-preview .op-head strong { font-size: 14.5px; }
.op-body { padding: 8px 20px 18px; }
.op-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.op-row:last-child { border-bottom: 0; }
.op-row .k { color: var(--muted); }
.op-row .v { font-weight: 500; text-align: right; }
.op-total { font-size: 22px; font-weight: 600; color: var(--primary); }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-block; font-size: 12.5px; font-weight: 500;
  padding: 2px 9px; border-radius: 999px; line-height: 1.7; white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-line { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.badge-hot {
  background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff;
}

/* ---------- 价格 ---------- */
.price { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 4px; }
.price .num { font-size: 32px; font-weight: 600; letter-spacing: -1px; }
.price .unit { font-size: 14px; color: var(--muted); }

.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: #c7d7ff; box-shadow: 0 12px 34px rgba(29, 78, 216, .13); position: relative; }
.plan.featured::after {
  content: "推荐"; position: absolute; top: -11px; right: 20px;
  background: var(--primary); color: #fff; font-size: 12px;
  padding: 1px 10px; border-radius: 999px;
}
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; font-size: 14px; }
.plan ul li { padding-left: 22px; position: relative; color: var(--ink-2); }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}
.plan .plan-foot { margin-top: auto; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl {
  width: 100%; border-collapse: collapse; font-size: 14px; background: #fff;
}
table.tbl th, table.tbl td {
  padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: middle;
}
table.tbl thead th {
  background: #fbfcfe; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid #dfe5ee; white-space: nowrap;
}
table.tbl tbody tr:hover { background: #fafbff; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl .ctr { text-align: center; }

/* ---------- 流程 / 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 14px; position: relative;
}
.step .no {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary-dark); font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.step strong { display: block; font-size: 14px; margin-bottom: 3px; }
.step span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 订购步骤条 */
.flowbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.flowbar .fi {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: var(--muted); padding: 6px 14px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
}
.flowbar .fi b {
  width: 22px; height: 22px; border-radius: 50%; background: #eef1f6; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 12.5px;
}
.flowbar .fi.on { color: var(--primary-dark); border-color: #c7d7ff; background: var(--primary-soft); font-weight: 600; }
.flowbar .fi.on b { background: var(--primary); color: #fff; }
.flowbar .sep { color: #cbd5e1; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label {
  display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2);
}
.field .req { color: #dc2626; }
input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; font-size: 14.5px; font-family: inherit;
  color: var(--ink); background: #fff; line-height: 1.6;
  border: 1px solid #d7dde8; border-radius: 9px; outline: none; transition: .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
textarea { min-height: 84px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* 单选卡片（套餐选择） */
.radio-card {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; background: #fff; transition: .15s;
}
.radio-card:hover { border-color: #c8d2e2; }
.radio-card input { margin: 5px 0 0; accent-color: var(--primary); flex: none; }
.radio-card.sel { border-color: var(--primary); background: var(--primary-soft); }
.radio-card .rc-main { flex: 1; }
.radio-card .rc-main strong { font-size: 15px; }
.radio-card .rc-price { font-weight: 600; color: var(--primary); white-space: nowrap; }

.check-line { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check-line input { margin: 5px 0 0; accent-color: var(--primary); flex: none; }

/* 支付方式 */
.pay-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pay-opt {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: center; cursor: pointer; background: #fff;
  font-size: 14px; transition: .15s;
}
.pay-opt:hover { border-color: #c8d2e2; }
.pay-opt input { accent-color: var(--primary); flex: none; }
.pay-opt.sel { border-color: var(--primary); background: var(--primary-soft); }
.pay-opt .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* 提示框 */
.note {
  border-radius: 10px; padding: 14px 16px; font-size: 13.5px; line-height: 1.7;
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #d5e0ff;
}
.note.warn { background: var(--warn-soft); color: var(--warn); border-color: #f2dfb8; }
.note.ok { background: var(--ok-soft); color: var(--ok); border-color: #c9e9e3; }
.note strong { font-weight: 600; }

/* ---------- 会员中心 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.stat .lb { font-size: 13px; color: var(--muted); }
.stat .vl { font-size: 24px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; font-family: inherit;
  font-size: 14.5px; color: var(--muted); padding: 9px 14px; cursor: pointer;
}
.tab:hover { color: var(--primary-dark); }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* 登录注册面板 */
.auth-panel { max-width: 420px; }

/* ---------- 订购页布局 ---------- */
.order-grid { grid-template-columns: 1.35fr .8fr; gap: 24px; align-items: start; }
.order-summary { position: sticky; top: 88px; }

@media (max-width: 900px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

/* ---------- 协议正文 ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 40px; }
.doc h2 { font-size: 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 15.5px; margin-top: 22px; color: var(--primary-dark); }
.doc p, .doc li { font-size: 14px; color: var(--ink-2); }
.doc .doc-meta { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

/* ---------- 资质公示 ---------- */
.cert-card { display: flex; gap: 18px; align-items: flex-start; }
.cert-thumb {
  width: 148px; height: 108px; flex: none; border-radius: 8px;
  border: 1px dashed #c8d2e2; background: #fbfcfe; color: var(--muted);
  font-size: 12.5px; display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.5; padding: 8px;
}

/* 真实证照缩略图 */
.cert-thumb-img {
  display: block; padding: 0; background: #fff;
  border-style: solid; overflow: hidden;
}
.cert-thumb-img img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  transition: transform .2s ease;
}
.cert-thumb-img:hover img { transform: scale(1.03); }
.cert-thumb-lg { width: 320px; height: 240px; }
.cert-thumb-wide { width: 400px; height: 234px; }

@media (max-width: 860px) {
  .cert-thumb-lg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .cert-thumb-wide { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 4px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 44px 0 26px; font-size: 13.5px; }
.site-footer h4 { color: #e2e8f0; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 30px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-mark { border-radius: 9px; }
.footer-brand strong { color: #e2e8f0; font-size: 15px; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid #1e293b;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px;
}
.license-line { margin-top: 10px; line-height: 1.9; }
.license-line span { margin-right: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 30px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
  .header-actions { margin-left: auto; }
  .doc { padding: 24px 20px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-opts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-card { flex-direction: column; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}
