/* ============ 基础变量（「一誓无成」品牌令牌 v1.0） ============ */
:root {
  /* Primary 暖棕 */
  --primary: #8B5E3C;
  --primary-dark: #704A2E;
  --primary-soft: #F5E9DD;
  /* Accent 金 */
  --accent: #E0A82E;
  --accent-hover: #C78E1A;
  --accent-soft: #F9E4B2;
  --accent-dark: #5B3A0A;
  /* Success 叶绿 */
  --success: #5BAE6B;
  --success-soft: #E3F3E6;
  --success-text: #2F6138;
  --on-success: #1A2E1F;
  /* Info 可信蓝 */
  --info: #2F6FED;
  --info-soft: #DBEAFE;
  --info-text: #1E40AF;
  /* Warning / Danger */
  --warn: #F59E0B;
  --warn-soft: #FEF3C7;
  --warn-text: #B45309;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --danger-text: #991B1B;
  /* Neutral 暖灰 */
  --ink: #3D2B1F;
  --ink-soft: #6B5A4A;
  --ink-tertiary: #7A6A58;
  --line: #E8DED0;
  --line-light: #F2EBE0;
  /* Background 奶油 */
  --bg: #FFF9F2;
  --card: #FFFFFF;
  --bg-highlight: #FBF5EC;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 8px rgba(91, 67, 41, 0.08);
  --shadow-hover: 0 8px 24px rgba(91, 67, 41, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.12);
  border-bottom: 2px solid var(--primary);
}
.nav-inner { position: relative; display: flex; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: 18px;
}
.brand-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; box-shadow: var(--shadow); flex: none; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; color: var(--ink-soft);
}
.nav-links a:not(.nav-cta) { position: relative; padding: 8px 2px; transition: color .15s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 800; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0;
  height: 3px; border-radius: 2px; background: var(--primary);
}
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ============ Hero ============ */
.hero {
  background: var(--bg-highlight); color: var(--ink);
  padding: 34px 0 36px; text-align: center; border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; color: var(--primary); }
.hero h1 .hl { color: var(--accent); }
.hero-sub { margin-top: 8px; color: var(--ink-soft); font-size: 16px; max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-tag { background: var(--accent); color: #3D2B1F; font-weight: 800; padding: 4px 14px; border-radius: 999px; font-size: 14px; box-shadow: 0 2px 8px rgba(91,67,41,0.18); }

/* ============ 品牌区（吉祥物 + 品牌名 + Slogan） ============ */
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-mascot {
  width: 120px; height: 120px; border-radius: 24px; object-fit: cover;
  box-shadow: var(--shadow-hover); background: var(--card);
}
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-brand .h-name { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.hero-brand .h-slogan { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.hero-actions { display: flex; justify-content: center; margin-top: 14px; }
.hero-cta {
  background: var(--accent); color: #3D2B1F; border: none; cursor: pointer;
  padding: 11px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; font-family: inherit;
  box-shadow: var(--shadow); transition: all .15s ease;
}
.hero-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
@media (max-width: 640px) {
  .hero-mascot { width: 84px; height: 84px; border-radius: 18px; }
  .hero-brand .h-name { font-size: 24px; }
}

/* ============ 底部 4 身份卡 ============ */
.identity-section { background: var(--card); border-top: 1px solid var(--line); padding: 34px 0; }
.identity-section .container { display: flex; flex-direction: column; align-items: center; }
.id-title { font-size: 22px; font-weight: 800; color: var(--primary); text-align: center; }
.id-sub { font-size: 14px; color: var(--ink-soft); margin: 8px 0 22px; text-align: center; }
.identity-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; max-width: 980px;
}
.id-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 22px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-highlight); cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.id-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.id-card.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--shadow); }
.id-ico { font-size: 34px; line-height: 1; }
.id-card .id-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.id-card .id-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 768px) {
  .identity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .identity-grid { grid-template-columns: 1fr; }
}
.search-box {
  margin: 18px auto 0; max-width: 620px; display: flex; gap: 10px;
  background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow-hover);
}
.search-box input {
  flex: 1; border: none; outline: none; padding: 10px 16px;
  font-size: 15px; border-radius: 999px; color: var(--ink);
}
.search-box button {
  border: none; cursor: pointer; background: var(--primary); color: #fff;
  padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.search-box button:hover { background: var(--primary-dark); }
.hero-stats { margin: 16px auto 0; display: inline-flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 14px; padding: 8px 18px; background: var(--primary-soft); border: 1px solid var(--line); border-radius: 999px; max-width: 90%; }
.hero-stats span { white-space: nowrap; }
.hero-stats strong { font-size: 18px; }

/* ============ 筛选栏 ============ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-end;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 24px; position: relative; box-shadow: var(--shadow);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group > label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.filter-group select {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-size: 14px; background: #fff; color: var(--ink); cursor: pointer; min-width: 130px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============ 租机专区筛选（准入门槛） ============ */
.lease-gate { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mini-select { padding: 7px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; background: #fff; color: #111827; }
.mini-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; cursor: pointer; }

/* ============ 类目磁贴入口 ============ */
.cat-strip { padding: 16px 0 4px; }
.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 8px; cursor: pointer; font-family: inherit; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.cat-tile.active { border-color: var(--primary); background: var(--primary-soft); }
.cat-ico { color: var(--primary); display: grid; place-items: center; height: 26px; }
.cat-ico svg { display: block; }
.cat-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.cat-tile.active .cat-name { color: var(--primary); }
.cat-num { font-size: 12px; color: var(--ink-soft); }
.cat-hint { display: none; }
@media (max-width: 640px) {
  .cat-strip { padding: 12px 0 2px; position: relative; }
  .cat-tiles { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .cat-tile { flex: 0 0 auto; min-width: 88px; padding: 12px 6px; }
  /* 右侧渐隐遮罩：暗示类目可横向滑动（仅移动端） */
  .cat-strip::after {
    content: ""; position: absolute; top: 0; right: 20px; bottom: 0; width: 24px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(245, 247, 250, 0), rgba(245, 247, 250, 0.95));
  }
  /* 滑动提示：仅移动端显示，极浅小字、不占过多首屏高度 */
  .cat-hint { display: block; margin: 0 0 6px; font-size: 12px; color: #94a3b8; }
}
@media (max-width: 400px) {
  .cat-tile { min-width: 80px; padding: 10px 4px; }
  .cat-name { font-size: 13px; }
}

/* ============ 资质智能匹配 ============ */
.match { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 28px; }
.match-title { font-size: 20px; font-weight: 800; }
.match-sub { color: var(--ink-soft); font-size: 14px; margin: 6px 0 16px; }
.identity-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.identity {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.identity:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.identity.active { background: var(--accent); border-color: var(--accent); color: #3D2B1F; }
.qual-wrap { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.qual-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-right: 8px; }
.qual-group-label {
  font-size: 13px; color: var(--ink-soft); font-weight: 700;
  padding-right: 4px; border-right: 1px solid var(--line); margin-right: 6px;
}
.qual {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
  border: 1px solid var(--line); background: #f9fafb; padding: 7px 13px;
  border-radius: 10px; font-size: 13px; cursor: pointer; user-select: none;
}
.qual:hover { border-color: var(--primary); }
.qual input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.qual:has(input:checked) { background: #eef2ff; border-color: var(--primary); color: var(--primary); font-weight: 600; }
.q-num {
  display: block; width: 100%; margin-top: 7px;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font-size: 13px; font-family: inherit; color: var(--ink); cursor: text;
}
.q-num:focus { outline: none; border-color: var(--primary); }
.q-nonum { font-size: 12px; color: #94a3b8; margin-left: 2px; }
.match-hint {
  color: var(--ink-soft); font-size: 14px; line-height: 1.6;
  background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 4px;
}

/* 智能匹配：紧凑头部常驻 + 表单默认收起 */
.match-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.match-head .match-title { margin: 0; }
.match-head .match-sub { margin: 4px 0 0; }
.match-head-hint { color: #64748b; font-size: 13px; line-height: 1.5; margin-top: 6px; }
.match-toggle {
  flex: none; border: 1px solid var(--primary); background: #fff; color: var(--primary);
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: all .15s ease;
}
.match-toggle:hover { background: var(--primary); color: #fff; }
.match-toggle .arrow { transition: transform .2s ease; }
.match-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.match-body { display: none; margin-top: 16px; }
.match-body.open { display: block; }

/* ============ 结果行 ============ */
.result-line {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 2px 14px; font-size: 14px; color: var(--ink-soft);
}
.reset-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
}
.reset-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ============ 产品网格 ============ */
.product-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  padding-bottom: 40px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-text { min-width: 0; }
.inst { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.loan-type {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; vertical-align: middle; line-height: 1.5;
  background: var(--primary-soft); color: var(--primary); border: 1px solid var(--accent-soft);
}
.lt-credit { background: var(--success-soft); color: var(--success-text); border: 1px solid #bfe6d3; }
.lt-mortgage { background: var(--danger-soft); color: var(--danger-text); border: 1px solid #f5b5ae; }
.lt-lease { background: var(--info-soft); color: var(--info-text); border: 1px solid #bfdbfe; }

/* 租机卡片：突出准入条件，不显示额度/利率 */
.lease-card .zhima-badge { display:inline-block; margin-left:8px; font-size:12px; color:#b45309; background:#fffbeb; border:1px solid #fde68a; border-radius:6px; padding:1px 6px; }
.lease-card .lease-entry { font-size:13px; color:#475569; margin:8px 0 12px; line-height:1.5; }
.lease-card .view-btn { width:100%; padding:10px; border:none; border-radius:8px; background:#0f172a; color:#fff; font-size:14px; cursor:pointer; }
.lease-card .view-btn:hover { background:#1e293b; }
.prod-name { font-size: 17px; font-weight: 800; margin-top: 3px; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.tag.hot { background: #fef3c7; color: #b45309; }
.amount-line { display: flex; align-items: baseline; gap: 6px; }
.amount { font-size: 22px; font-weight: 700; color: var(--ink); }
.amount-unit { font-size: 13px; color: var(--ink-soft); }
.amount-label { font-size: 12px; color: var(--ink-soft); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.meta-grid .k { color: var(--ink-soft); }
.meta-grid .v { font-weight: 600; }
.rate { color: #b91c1c; font-weight: 700; }

/* 指标条：关键指标大字化（额度 / 年化利率 / 期限 / 还款方式） */
.metric-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px;
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line);
}
.mb-amount { display: flex; align-items: baseline; gap: 7px; }
.mb-amt { font-size: 25px; font-weight: 800; line-height: 1.02; letter-spacing: -0.4px; color: var(--primary); }
.mb-amt.amount-missing { color: var(--ink-soft); font-size: 22px; }
.mb-unit { font-size: 12px; color: var(--ink-soft); }
.mb-rate { display: flex; flex-direction: column; line-height: 1.15; }
.mb-rate-val { font-size: 15px; font-weight: 800; color: #b91c1c; }
.mb-rate-val.rate-missing { color: var(--ink-soft); font-weight: 600; }
.mb-label { font-size: 11px; color: var(--ink-soft); }
.mb-extra { display: flex; gap: 18px; margin-left: auto; }
.mb-item { display: flex; flex-direction: column; line-height: 1.25; }
.mb-item b { font-size: 13px; font-weight: 700; color: var(--ink); }
.mb-item i { font-size: 11px; color: var(--ink-soft); font-style: normal; }
.apply-btn {
  margin-top: 4px; display: block; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none;
}
.apply-btn:hover { opacity: 0.92; }

.empty-state { text-align: center; color: var(--ink-soft); padding: 60px 0; font-size: 15px; }

/* 额度/利率缺失占位 */
.amount-missing { font-size: 22px; color: var(--ink-soft); font-weight: 700; }
.rate-missing { color: var(--ink-soft) !important; }

/* ============ 分页器 ============ */
.pager {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  padding: 28px 0 48px;
}
.pager-info { font-size: 13px; color: var(--ink-soft); margin-right: 6px; }
.pager-btn {
  min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); border-radius: 9px; cursor: pointer; font-size: 14px; transition: all 0.15s ease;
}
.pager-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-gap { color: var(--ink-soft); padding: 0 4px; }

/* ============ 风险提示 ============ */
.risk { background: var(--bg-highlight); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.risk .container { padding: 30px 20px; }
.risk h2 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
.risk ul { padding-left: 20px; color: var(--ink-soft); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }

/* ============ 页脚 ============ */
.site-footer { background: #3D2B1F; color: #d8c9bb; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-inner .brand-text { color: #fff; }
.footer-note { font-size: 13px; margin-top: 8px; color: #b0a08f; max-width: 460px; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-cta {
  display: inline-block; background: var(--accent); color: #3D2B1F;
  padding: 9px 20px; border-radius: 999px; font-weight: 600;
}
.footer-cta:hover { background: var(--accent-hover); }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid #5b4636; font-size: 12px; color: #9c8b78; }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  /* 顶部导航 → 底部标签栏：保证手机可完整切换页面（含月供试算，桌面端布局不变） */
  .nav-links {
    position: fixed; left: 0; right: 0; bottom: 0; transform: none;
    display: flex; justify-content: space-around; align-items: stretch;
    height: 54px; gap: 0; z-index: 130; padding: 0;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08);
  }
  .nav-links a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 4px 2px; font-size: 12px; color: var(--ink-soft);
  }
  .nav-links a.active { color: var(--primary); font-weight: 700; }
  body { padding-bottom: 54px; }
  .fab-publish { bottom: 64px; }

  /* 首页蓝框压缩（手机再砍一截高度） */
  .hero { padding: 14px 0 16px; }
  .hero h1 { font-size: 23px; }
  .hero-sub { font-size: 13px; margin-top: 6px; }
  .search-box { margin-top: 12px; padding: 4px; gap: 8px; }
  .search-box input { padding: 9px 14px; font-size: 14px; }
  .search-box button { padding: 0 18px; font-size: 14px; }
  .hero-stats { margin: 10px auto 0; gap: 8px; padding: 5px 12px; font-size: 13px; }
  .hero-stats strong { font-size: 16px; }
  .filter-bar { gap: 12px 14px; padding: 14px 16px; margin-top: 24px; }

  .product-grid { grid-template-columns: 1fr; }
}
/* ============ 极窄屏（≤568px）：压缩首屏，露出筛选栏 + 产品卡 ============ */
@media (max-width: 568px) {
  .hero { padding: 12px 0 14px; }
  .hero h1 { font-size: 20px; }
  .hero-sub { font-size: 13px; margin-top: 5px; }
  .search-box { margin-top: 10px; padding: 3px; }
  .search-box input { padding: 8px 12px; font-size: 13px; }
  .search-box button { padding: 0 14px; font-size: 13px; }
  .hero-stats { margin: 8px auto 0; gap: 8px; padding: 4px 10px; font-size: 12px; }
  .hero-stats strong { font-size: 14px; }
  .cat-strip { padding: 10px 0 2px; }
  .match { padding: 16px 0 16px; }
  .match-title { font-size: 17px; }
  .match-sub { font-size: 13px; }
  .match-head-hint { font-size: 12px; margin-top: 4px; }
  .match-toggle { padding: 7px 13px; font-size: 13px; }
  .filter-bar { gap: 10px 12px; padding: 12px 14px; margin-top: 16px; }
  .filter-group > label { font-size: 12px; }
  .chip { padding: 6px 11px; font-size: 12px; }
  .product-grid { gap: 10px; }
  .card { padding: 12px; gap: 8px; }
  .prod-name { font-size: 15px; }
  .amount { font-size: 19px; }
  .mb-amt { font-size: 21px; }
}
@media (max-width: 400px) {
  .hero { padding: 12px 0 14px; }
  .hero h1 { font-size: 21px; }
  .search-box button { padding: 0 14px; }
}

/* ============ 卡片元信息（空字段不渲染，不再显示“—”） ============ */
.meta-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.meta-cell .k { font-size: 12px; color: var(--ink-soft); }
.meta-cell .v { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-word; }
.rate { color: #b91c1c !important; font-weight: 700; }
.rate-missing { color: var(--ink-soft) !important; }

/* 联系顾问按钮（无链接时）与普通申请按钮区分 */
.apply-btn.contact { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.apply-btn.contact:hover { background: #eef2ff; opacity: 1; }

/* ============ 弹窗通用 ============ */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 460px;
  max-height: 88vh; overflow-y: auto; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: pop 0.18s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: none; cursor: pointer;
  background: #f1f5f9; color: var(--ink-soft); border-radius: 50%; font-size: 22px; line-height: 1;
}
.modal-close:hover { background: #e2e8f0; color: var(--ink); }

/* ============ 产品详情弹窗 ============ */
.d-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.d-inst { font-size: 13px; color: var(--ink-soft); }
.d-name { font-size: 22px; font-weight: 800; margin: 4px 0 10px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.d-amount {
  background: linear-gradient(135deg, #eff6ff, #ecfeff); border: 1px solid #bfdbfe;
  border-radius: 12px; padding: 14px 16px; font-size: 26px; font-weight: 800; color: var(--primary);
  margin-bottom: 14px;
}
.d-amount span { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.d-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 14px; }
.d-row { display: flex; flex-direction: column; }
.d-k { font-size: 12px; color: var(--ink-soft); }
.d-v { font-size: 14px; font-weight: 600; word-break: break-word; }
.d-commission {
  font-size: 13px; color: #b45309; background: #fffbeb; border: 1px dashed #fcd34d;
  border-radius: 8px; padding: 8px 10px; margin-bottom: 14px;
}
.d-commission.none { color: var(--ink-soft); background: #f9fafb; border-color: var(--line); }
.d-apply {
  display: block; width: 100%; text-align: center; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px;
}
.d-apply.contact { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.d-apply:hover { opacity: 0.92; }
.d-disclaimer { margin-top: 12px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* ============ 月供试算弹窗 ============ */
.calc-box h3, .contact-box h3 { font-size: 19px; margin-bottom: 16px; }
.calc-form { display: flex; flex-direction: column; gap: 12px; }
.calc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.calc-form input, .calc-form select {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 15px; color: var(--ink);
}
.calc-form input:focus, .calc-form select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.calc-result { margin-top: 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-cell { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; text-align: center; }
.calc-cell span { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.calc-cell strong { font-size: 16px; color: var(--primary); }
.calc-note { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.calc-tip { margin-top: 14px; font-size: 12px; color: var(--ink-soft); }
.calc-empty { font-size: 14px; color: var(--ink-soft); text-align: center; padding: 14px 0; }

/* ============ 联系顾问弹窗 ============ */
.contact-note { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.contact-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.contact-rows > div { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.contact-rows span { font-size: 13px; color: var(--ink-soft); }
.contact-rows strong { font-size: 16px; color: var(--ink); }
.contact-btn {
  display: block; width: 100%; text-align: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px;
}
.contact-btn:hover { opacity: 0.92; }

@media (max-width: 640px) {
  .d-rows { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}

/* ============ 卡片：真实准入要点 ============ */
.card-quals {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 16px; border-top: 1px dashed var(--line); background: #fbfdff;
}
.q-label { font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-right: 2px; }
.q-chip {
  font-size: 11px; color: #1d6f4e; background: #e7f6ee; border: 1px solid #bfe6d3;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.q-chip.age { color: #8a5a00; background: #fff5e0; border-color: #f3dca0; }

.rate-warn {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
  color: #b42318; background: #fee4e2; border: 1px solid #f5b5ae; padding: 1px 7px; border-radius: 999px;
  vertical-align: middle;
}
.match-badge {
  display: inline-flex; align-items: baseline; gap: 1px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  white-space: nowrap; vertical-align: middle;
}
.match-badge b { font-size: 15px; font-weight: 800; line-height: 1; }
.match-badge.low  { background: var(--line-light); color: var(--ink-soft); }
.match-badge.mid  { background: var(--warn-soft); color: var(--warn-text); }
.match-badge.high { background: var(--success-soft); color: var(--success-text); }
.match-badge.top  { background: var(--success); color: var(--on-success); border: 1px solid var(--accent); }

/* ============ 详情：真实准入区块 ============ */
.d-sec { margin: 14px 0; }
.d-sec h4 {
  margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--primary-dark);
  padding-left: 9px; border-left: 3px solid var(--primary);
}
.d-text {
  font-size: 13px; line-height: 1.7; color: var(--ink); white-space: pre-wrap;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  max-height: 320px; overflow-y: auto;
}

/* ============ 导航：当前页高亮 ============ */
.nav-links a.active { color: var(--primary); font-weight: 700; }

/* ============ 子页头部 ============ */
.sub-hero { background: linear-gradient(135deg, #eef2ff, #f0fdfa); padding: 38px 0 30px; }
.sub-hero h1 { font-size: 26px; margin: 0 0 6px; }
.sub-hero .hero-sub { color: var(--ink-soft); margin: 0; font-size: 14px; }

/* ============ 信息发布 ============ */
.publish-layout { display: grid; grid-template-columns: 420px 1fr; gap: 28px; padding: 30px 20px 60px; align-items: start; }
.pub-forms { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.pub-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.pub-tab { flex: 1; padding: 10px; border: 1px solid var(--line); background: #f8fafc; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.pub-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pub-form h3 { margin: 0 0 14px; font-size: 16px; }
.pub-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.pub-form input[type=text], .pub-form input[type=number], .pub-form select, .pub-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.pub-form textarea { resize: vertical; }
.chk-row { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 13px; color: var(--ink-soft); margin: 0; }
.chk input { width: auto; }
.pub-submit { margin-top: 6px; width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: 0; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.pub-submit:hover { opacity: 0.92; }

.publish-list { display: flex; flex-direction: column; gap: 22px; }
.list-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.list-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 999px; padding: 1px 9px; }
.list-items { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.list-item { border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.list-item:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.li-top { display: flex; align-items: center; gap: 8px; }
.li-top strong { font-size: 15px; }
.li-tag { font-size: 11px; font-weight: 700; color: #fff; border-radius: 999px; padding: 1px 8px; }
.li-tag.demand { background: var(--accent); }
.li-tag.product { background: var(--primary); }
.li-amt { margin-left: auto; font-weight: 700; color: var(--primary-dark); }
.li-inst { color: var(--ink-soft); font-size: 13px; }
.li-sub { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.li-quals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.li-quals span { font-size: 11px; color: #1d6f4e; background: #e7f6ee; border: 1px solid #bfe6d3; padding: 1px 8px; border-radius: 999px; }
.list-empty { color: var(--ink-soft); font-size: 13px; padding: 10px 0; }

/* 发布详情弹窗 */
.pub-detail-box { max-width: 460px; }
.pub-detail .pub-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 999px; padding: 2px 9px; margin-bottom: 10px; }
.pub-detail .pub-tag.demand { background: var(--accent); }
.pub-detail .pub-tag.product { background: var(--primary); }
.pub-detail h3 { margin: 0 0 14px; font-size: 19px; }
.pub-rows { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pub-row { display: flex; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pub-row:last-child { border-bottom: 0; }
.pub-row .pk { width: 92px; flex: none; color: var(--ink-soft); }
.pub-row .pv { color: var(--ink); font-weight: 600; }
.pub-apply { display: block; text-align: center; margin-top: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.pub-apply.contact { border: 0; width: 100%; cursor: pointer; font-family: inherit; }
.pub-apply:hover { opacity: 0.92; }
.pub-disclaimer { margin-top: 14px; font-size: 12px; color: var(--ink-soft); }

/* 发布页：身份选择 / 锁定 / 定位 */
.publish-identity { padding: 24px 20px 0; }
.identity-pick { text-align: center; }
.identity-pick h3 { margin: 0 0 6px; font-size: 18px; }
.identity-cards { display: flex; gap: 16px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.identity-card { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 180px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: all .15s; font-family: inherit; }
.identity-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.identity-card .ic-ico { font-size: 30px; }
.identity-card strong { font-size: 15px; }
.identity-card em { font-style: normal; font-size: 12px; color: var(--ink-soft); }
.identity-locked { display: flex; align-items: center; gap: 10px; justify-content: center; background: #f0fdfa; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px; margin-top: 14px; font-size: 14px; }
.identity-locked .lock-ico { font-size: 16px; }
.identity-locked strong { color: var(--accent); }
.identity-locked .lock-note { margin-left: auto; font-size: 12px; color: var(--ink-soft); }
.locate-bar { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.locate-bar label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.loc-sel { display: inline-flex; gap: 8px; }
.locate-bar input, .locate-bar select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-size: 14px; font-family: inherit; }
.locate-bar select { width: 130px; }
.locate-bar .locate-tip { font-size: 12px; color: #94a3b8; }

/* 视图切换（用款 / 产品） */
.view-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.view-tab { flex: 1; padding: 10px; border: 1px solid var(--line); background: #f8fafc; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-soft); font-weight: 600; font-family: inherit; }
.view-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 列表：城市标签 / 投诉标记 */
.li-city { margin-left: auto; font-size: 11px; color: var(--ink-soft); background: #f1f5f9; border-radius: 999px; padding: 2px 9px; }
.li-city.same { color: #047857; background: #d1fae5; font-weight: 700; }
.li-warn { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 1px 8px; }
.li-ok { display: inline-block; margin-top: 6px; margin-left: 6px; font-size: 11px; font-weight: 700; color: #047857; background: #d1fae5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 1px 8px; }

/* ============ 发布 → 匹配弹窗 ============ */
.match-box { max-width: 480px; }
.match-box h3 { margin: 0 0 8px; font-size: 19px; }
.match-desc { margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.match-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; max-height: 42vh; overflow-y: auto; }
.match-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.match-item .mi-top strong { font-size: 14px; }
.match-item .mi-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.match-item .mi-meta { font-size: 12px; color: var(--primary); margin-top: 4px; font-weight: 600; }
.match-actions { display: flex; gap: 10px; }
.match-actions .btn-primary, .match-actions .btn-ghost { flex: 1; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; }
.match-actions .btn-primary { background: var(--primary); color: #fff; }
.match-actions .btn-primary:hover { background: #1d4ed8; }
.match-actions .btn-ghost { background: #f1f5f9; color: var(--ink); }
.match-actions .btn-ghost:hover { background: #e2e8f0; }

/* 详情：互换 / 投诉 */
.pub-swap { margin-top: 14px; font-size: 13px; }
.pub-swap.none { color: var(--ink-soft); }
.pub-swap.ok { color: #047857; font-weight: 600; }
.pub-complain { display: block; width: 100%; margin-top: 12px; background: #fff; color: #b42318; border: 1px solid #fecaca; border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.pub-complain:hover { background: #fef2f2; }
.pub-banned { margin-top: 12px; font-size: 13px; color: #b42318; background: #fee2e2; border: 1px solid #fecaca; border-radius: 10px; padding: 11px 14px; font-weight: 600; }

/* ============ 我的 ============ */
.mine-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 30px 20px 60px; align-items: start; }
.mine-reminders { grid-column: 1 / -1; }
.mine-card.contact-card { grid-column: 1 / -1; }
.mine-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.mine-card h3 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.mine-tip { color: var(--ink-soft); font-size: 13px; margin: 0 0 14px; }
.mine-note { font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }
.upload-btn { display: inline-block; background: #eef2ff; color: var(--primary-dark); border: 1px dashed var(--primary); padding: 12px 18px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.upload-btn:hover { background: #e0e7ff; }
/* 资产证明九宫格 */
.asset-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asset-cell {
  border: 1px dashed var(--line); border-radius: 11px; padding: 14px 10px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 7px; background: #f8fafc; min-height: 96px; justify-content: center;
}
.asset-cell.filled { border-style: solid; border-color: #bbf7d0; background: #f0fdfa; }
.asset-cell .asset-ico { font-size: 24px; line-height: 1; }
.asset-cell .asset-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.asset-cell .asset-file { font-size: 11px; color: var(--ink-soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-cell .asset-size { font-size: 11px; color: #94a3b8; }
.asset-cell .asset-add { border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 8px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.asset-cell .asset-add:hover { background: #eef2ff; }
.asset-cell .asset-actions { display: flex; gap: 6px; }
.asset-cell .asset-replace { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 7px; padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.asset-cell .asset-replace:hover { border-color: var(--primary); color: var(--primary); }
.asset-del, .rm-del, .acc-del, .rm-done { border: 0; background: #fee2e2; color: #b42318; padding: 5px 10px; border-radius: 7px; font-size: 12px; cursor: pointer; font-family: inherit; }
.asset-del:hover, .rm-del:hover, .acc-del:hover { background: #fecaca; }
@media (max-width: 560px) {
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
}

.credit-status { margin-top: 14px; font-size: 13px; color: var(--ink); background: #f0fdfa; border: 1px solid #bbf7d0; border-radius: 9px; padding: 11px 13px; }
.extract-hint { margin-top: 8px; font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.credit-form { margin-top: 14px; }
.credit-form h4 { margin: 0 0 10px; font-size: 14px; }
#creditAccounts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.acc-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr 0.8fr auto; gap: 6px; align-items: center; }
.acc-row input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-family: inherit; min-width: 0; }
.acc-del { padding: 4px 9px; }
.mini-btn { border: 1px dashed var(--primary); background: #eef2ff; color: var(--primary-dark); padding: 7px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; margin-bottom: 10px; }

.reminder-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.reminder-item { border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; padding: 13px 15px; background: #fffbeb; }
.reminder-item.done { border-left-color: var(--accent); background: #f0fdfa; opacity: 0.7; }
.rm-top { display: flex; align-items: center; gap: 8px; }
.rm-org { font-weight: 700; font-size: 15px; }
.rm-acc { font-size: 12px; color: var(--ink-soft); }
.rm-due { margin-top: 6px; font-size: 14px; }
.rm-due strong { color: #b45309; }
.reminder-item.done .rm-due strong { color: var(--accent); }
.rm-amt, .rm-exp { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.rm-actions { display: flex; gap: 8px; margin-top: 10px; }
.rm-done { background: #dcfce7; color: #15803d; }
.rm-done:hover { background: #bbf7d0; }

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
  .publish-layout { grid-template-columns: 1fr; }
  .mine-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .acc-row { grid-template-columns: 1fr 1fr; }
}

/* ============ 资料待核实 / 合规声明 ============ */
.card-thin {
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 8px;
}
.d-notice {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}
.footer-compliance {
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #e5e7eb;
  margin-top: 18px;
  padding-top: 14px;
  line-height: 1.8;
}
.footer-compliance strong { color: #64748b; }
.page-note { margin: 22px auto 0; }
.page-note p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.8;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 11px 14px;
}

/* ============ 全局发布挂件（右下角） ============ */
.fab-publish {
  position: fixed; right: 22px; bottom: 22px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border: 0; cursor: pointer;
  padding: 13px 20px; border-radius: 999px; font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4); transition: transform .15s, box-shadow .15s;
}
.fab-publish:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5); }
.fab-ico { font-size: 18px; line-height: 1; }
@media (max-width: 640px) {
  .fab-publish { padding: 13px 16px; }
  .fab-txt { display: none; }
}

/* ============ 我的信息汇总 ============ */
.my-summary { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ms-row { display: flex; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; gap: 10px; }
.ms-row:last-child { border-bottom: 0; }
.ms-k { width: 96px; flex: none; color: var(--ink-soft); }
.ms-v { color: var(--ink); font-weight: 600; flex: 1; }
@media (max-width: 480px) { .ms-k { width: 80px; } }

/* ============ 发布表单：提醒勾选 ============ */
.pub-notify { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; cursor: pointer; }
.pub-notify input { width: auto; accent-color: var(--primary); }

/* ============ 通用查看详情按钮（产品卡） ============ */
.view-btn {
  width: 100%; padding: 11px; border: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.view-btn:hover { opacity: 0.92; }

/* ============ 征信提取弹窗 ============ */
.credit-modal-box { max-width: 540px; }
.credit-modal-box h3 { margin: 0 0 6px; font-size: 19px; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px;
  z-index: 300; opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  max-width: 88vw; text-align: center; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 等级体系 ============ */
.level-wrap { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.level-badge {
  width: 84px; height: 84px; border-radius: 20px; flex: none; position: relative;
  display: grid; place-items: center; font-size: 46px; font-weight: 900; color: #fff;
  box-shadow: var(--shadow); letter-spacing: 0;
}
.level-badge::after {
  content: "我的网站等级"; position: absolute; bottom: -20px; left: 0; right: 0;
  font-size: 11px; font-weight: 700; color: var(--ink-soft); text-align: center; white-space: nowrap;
}
.lv-S { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.lv-A { background: linear-gradient(135deg, #059669, #10b981); }
.lv-B { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.lv-C { background: linear-gradient(135deg, #d97706, #f59e0b); }
.lv-D { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.level-detail { flex: 1; }
.level-detail .my-summary { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.level-detail .my-summary .ms-row:first-child { background: #eef2ff; }
.level-detail .my-summary .ms-row:first-child .ms-v { color: var(--primary-dark); font-size: 16px; }

/* ============ 封禁横幅 ============ */
.mine-banner { max-width: 1160px; margin: 16px auto 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.mine-banner.ban { background: #fee2e2; color: #b42318; border: 1px solid #fecaca; }

/* ============ 投诉中心 ============ */
.complaint-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.complaint-col h4 { font-size: 14px; margin: 0 0 8px; color: var(--ink-soft); }
.complaint-list { display: flex; flex-direction: column; gap: 10px; }
.complaint-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #f8fafc; }
.cr-top { display: flex; align-items: center; gap: 8px; }
.cr-status { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 9px; color: #fff; }
.s-pending { background: #d97706; } .s-upheld { background: #b91c1c; } .s-rejected { background: #64748b; } .s-appealing { background: #2563eb; }
.cr-other { font-size: 13px; color: var(--ink-soft); }
.cr-reason { margin-top: 6px; font-size: 14px; word-break: break-word; }
.cr-appeal { margin-top: 6px; font-size: 13px; color: var(--primary-dark); background: #eef2ff; border-radius: 8px; padding: 6px 10px; word-break: break-word; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ============ 沟通记录 / 联系人 ============ */
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }
.co-id { font-weight: 700; }
.co-actions { display: flex; gap: 8px; }

/* ============ 聊天弹窗 ============ */
.chat-box { max-width: 480px; display: flex; flex-direction: column; }
.chat-box h3 { margin: 0 0 10px; font-size: 18px; }
.chat-list { flex: 1; min-height: 220px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-msg .bubble { padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg .ts { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.mine .bubble { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.other { align-self: flex-start; align-items: flex-start; }
.chat-msg.other .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-contact-info { margin-top: 8px; font-size: 13px; color: var(--ink); font-weight: 600; min-height: 0; }
.chat-input-row { display: flex; gap: 8px; margin-top: 10px; }
.chat-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.chat-export { width: 100%; margin-top: 10px; height: 120px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12px; font-family: monospace; resize: vertical; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-conv { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; }
.chat-conv:hover { border-color: var(--primary); }
.cc-other { font-weight: 700; }
.cc-preview { flex: 1; font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-go { color: var(--primary); font-weight: 700; }

/* ============ 投诉 / 申诉 表单 ============ */
.complaint-form, .appeal-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.complaint-form label, .appeal-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.complaint-form textarea, .appeal-form textarea { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 14px; font-family: inherit; resize: vertical; }
.complaint-form input[type=file] { font-size: 13px; }
.mine-note { font-size: 12px; color: var(--ink-soft); margin: 0; }

@media (max-width: 560px) {
  .complaint-cols { grid-template-columns: 1fr; }
}

/* ============ 运营配置：公告 / Banner ============ */
.site-banner { width: 100%; font-size: 14px; }
.site-banner .sb-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 1160px; margin: 0 auto; padding: 8px 20px;
  flex-wrap: wrap; text-align: center;
}
.site-banner .sb-title { font-weight: 700; }
.site-banner .sb-text { color: var(--ink-soft); }
.site-banner.bar {
  background: #eff6ff; color: var(--primary-dark);
  border-bottom: 1px solid #bfdbfe;
}
.site-banner.bar .sb-close {
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 50%;
}
.site-banner.bar .sb-close:hover { background: #dbeafe; color: var(--ink); }
.site-banner.carousel { background: #f0fdfa; color: #065f46; border-bottom: 1px solid #a7f3d0; }

/* 弹窗型 banner（进入页面首次弹出） */
.site-banner-box { max-width: 440px; text-align: center; }
.site-banner-box h3 { margin: 0 0 10px; font-size: 19px; }
.site-banner-text { font-size: 14px; color: var(--ink-soft); line-height: 1.7; white-space: pre-wrap; }

@media (max-width: 640px) {
  .site-banner .sb-inner { padding: 7px 16px; font-size: 13px; gap: 6px; }
  .site-banner.bar .sb-close { font-size: 18px; padding: 2px 5px; }
}
@media (max-width: 400px) {
  .site-banner .sb-inner { font-size: 12px; }
}

