/* 信用卡智能体 · 设计 token 与组件（单一正本，构建时拷到 public/assets/） */
:root {
  --ink: #131a2e; --ink-2: #3a4258; --muted: #5d6478; --line: #e2e6ef; --line-2: #cfd5e3;
  --canvas: #f8f9fc; --surface: #ffffff; --surface-2: #f3f5fa;
  --night: #0d1430; --night-2: #16204a;
  --primary: #2338a8; --primary-ink: #172775; --primary-soft: #eaeefb; /* 宝石蓝：取自卡小帮的眼睛 */
  --gold: #e2b65c; --accent: #c8963a; --accent-soft: #f8f0dc; /* 金色只给卡小帮和关键数字 */
  --ok: #1d8f63; --ok-soft: #e4f4ec; --warn: #a8352e; --warn-soft: #fbe9e7;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(19,26,46,.05), 0 6px 20px rgba(19,26,46,.06);
  --shadow-lift: 0 2px 4px rgba(19,26,46,.06), 0 14px 34px rgba(19,26,46,.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.7 var(--font); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-ink); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(248,249,252,.94); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; letter-spacing: .02em; }
.logo-text { font-size: 17px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink-2); padding: 6px 12px; border-radius: 999px; font-size: 15px; transition: background .2s var(--ease); }
.nav a:hover, .nav a[aria-current] { background: rgba(21,23,31,.06); color: var(--ink); }
.nav-login { margin-left: auto; font-size: 14px; color: var(--ink); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; background: var(--surface); }
@media (max-width: 760px) {
  .topbar-in { gap: 10px; height: auto; padding: 10px 0; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .nav a { white-space: nowrap; font-size: 14px; padding: 5px 10px; }
}

/* 通用 */
.page { padding: 28px 20px 64px; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; margin: 6px 0 14px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 22px; margin: 40px 0 14px; font-weight: 620; }
h3 { font-size: 17px; margin: 0 0 10px; font-weight: 620; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 760px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs i { font-style: normal; opacity: .5; }
.source { font-size: 13px; color: var(--muted); margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.notice { background: var(--accent-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; }
.tag-stop { font-style: normal; font-size: 12px; color: var(--warn); background: var(--warn-soft); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 20px; font: 600 15px/1.2 var(--font); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(35,56,168,.28); }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 卡面小图 */
.chip-card { position: relative; flex: none; width: 74px; height: 47px; border-radius: 8px; color: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 3px 8px rgba(21,23,31,.18); }
.chip-card::before { content: ""; position: absolute; left: 9px; top: 15px; width: 13px; height: 10px; border-radius: 2px; background: linear-gradient(135deg,#f6d98b,#c99a3c); }
.chip-bank { position: absolute; left: 8px; top: 4px; font-size: 9px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.chip-grade { position: absolute; right: 7px; bottom: 4px; font-size: 9px; opacity: .85; }
.tone-std { background: linear-gradient(135deg,#5b6273,#2e3340); }
.tone-gold { background: linear-gradient(135deg,#d9a441,#9c6a1c); }
.tone-plat { background: linear-gradient(135deg,#9aa3b5,#4e5668); }
.tone-diam { background: linear-gradient(135deg,#3346d3,#151b6b); }
.tone-inf { background: linear-gradient(135deg,#2c2c34,#060609); }

/* 列表 */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; } /* 银行目录页仍用 */
.bank-tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.bank-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.bank-tile span { font-size: 13px; color: var(--muted); }
.card-list { display: grid; gap: 10px; }
.card-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; color: var(--ink); transition: box-shadow .2s var(--ease), border-color .2s; }
.card-row:hover { box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.card-row-main { display: flex; flex-direction: column; min-width: 0; }
.card-row-main strong { font-weight: 600; }
.meta { font-size: 13px; color: var(--muted); }
.arrow { margin-left: auto; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.facts b { display: block; font-size: 22px; font-weight: 650; }
.facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.cat-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.cat-list span { color: var(--muted); margin-left: 6px; font-size: 12px; }

/* 单卡页 */
.card-hero { display: flex; gap: 22px; align-items: center; margin: 14px 0 6px; }
.card-hero .chip-card { width: 148px; height: 94px; border-radius: 12px; }
.card-hero .chip-card::before { left: 16px; top: 32px; width: 24px; height: 18px; }
.card-hero .chip-bank { font-size: 13px; left: 14px; top: 8px; }
.card-hero .chip-grade { font-size: 12px; right: 12px; bottom: 8px; }
.card-hero h1 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 34px); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 560px) { .card-hero { flex-direction: column; align-items: flex-start; } }
.fee { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px 14px; margin: 22px 0; }
.fee h2 { margin-top: 16px; font-size: 18px; }
.ben-group { margin: 18px 0 8px; }
.ben-group h3 a { color: var(--ink); }
.ben { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 8px; }
.ben-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.quota { font-size: 13px; color: var(--primary-ink); background: var(--primary-soft); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.cond { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
details { margin-top: 6px; font-size: 13px; }
summary { cursor: pointer; color: var(--muted); }
blockquote { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); color: var(--ink-2); font-size: 13px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--ink-2); position: sticky; top: 0; }
.cmp tr:last-child td { border-bottom: 0; }

.consult { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 36px 0 0; padding: 20px 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.consult p { margin: 4px 0 0; color: rgba(255,255,255,.75); font-size: 14px; }
.consult .btn-ghost { background: #fff; border: 0; }

.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 36px 0 22px; margin-top: 40px; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { max-width: 560px; font-size: 14px; color: var(--ink-2); }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 28px; font-size: 14px; align-content: start; }
.footer-links a { color: var(--ink-2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: all .3s var(--ease); z-index: 50; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 我的卡包 */
.w-hero { padding: 26px 0 6px; }
.w-summary .facts b small { font-size: 13px; color: var(--muted); font-weight: 500; }
.w-cards { display: grid; gap: 16px; margin: 18px 0 8px; }
.w-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.w-card-head { display: flex; gap: 14px; align-items: center; }
.w-card-head h3 { margin: 0; font-size: 17px; }
.w-card-head h3 a { color: var(--ink); }
.w-rm { margin-left: auto; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--warn); }
.w-open { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.w-open input { font: inherit; padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 6px; margin-left: 4px; }
.w-bens { display: grid; gap: 8px; margin-top: 14px; }
.w-ben { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; background: var(--surface-2); }
.w-ben.is-done { opacity: .62; }
.w-ben-main { display: flex; flex-direction: column; min-width: 0; }
.w-meter { text-align: right; white-space: nowrap; }
.w-left { font-size: 22px; font-weight: 700; color: var(--primary); margin-right: 4px; }
.w-ben.is-done .w-left { color: var(--muted); }
.w-hist { grid-column: 1 / -1; margin: 0; }
.w-hist ul { margin: 6px 0 0; padding-left: 18px; }
.w-more { margin-top: 12px; }
.w-more ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.w-more li { margin: 4px 0; }
@media (max-width: 600px) { .w-ben { grid-template-columns: 1fr auto; } .w-ben .btn { grid-column: 1 / -1; } }
.w-pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 20px 20px; margin-top: 22px; }
.w-pick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.w-pick select, .w-pick input[type=search], .w-login input { font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; min-width: 0; }
.w-pick select { flex: 0 1 220px; }
.w-pick input[type=search] { flex: 1 1 240px; }
.w-list { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.w-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color .2s; }
.w-opt:hover { border-color: var(--primary); }
.w-opt input { margin-top: 5px; accent-color: var(--primary); }
.w-opt span { display: flex; flex-direction: column; }
.w-opt.is-have { opacity: .55; }
.w-list-act { grid-column: 1 / -1; position: sticky; bottom: 12px; display: flex; justify-content: flex-end; }
.w-acct { margin-top: 22px; background: var(--primary-soft); border-radius: var(--r-lg); padding: 6px 20px 18px; }
.w-login { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.w-login input { flex: 1 1 220px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.post-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.post-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); }
.post-list a:hover { box-shadow: var(--shadow); color: var(--ink); }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }
.prose { max-width: 820px; }
.prose p, .prose li { color: var(--ink-2); }

/* 攻略文章（旧正文结构沿用：article-page / article-body） */
.article-wrap { max-width: 860px; }
.article-page header h1 { font-size: clamp(26px, 3.6vw, 36px); margin: 12px 0 8px; }
.article-meta { font-size: 13px; color: var(--muted); }
.article-card-tag { display: inline-block; font-size: 12px; color: var(--primary-ink); background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; }
.article-body { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.article-body > h1:first-child { display: none; }
.article-body h2 { color: var(--ink); font-size: 22px; margin: 36px 0 12px; }
.article-body h3 { color: var(--ink); margin: 26px 0 8px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--surface-2); }
.article-body blockquote { font-size: 15px; }
.consult-light { background: var(--primary-soft); color: var(--ink); }
.consult-light p { color: var(--ink-2); }
/* 分类页（gen-category-pages 生成） */
.legacy .section-title { font-size: clamp(26px, 3.6vw, 36px); margin: 8px 0; }
.legacy .section-subtitle { color: var(--muted); }
.legacy .title-line { display: none; }
.cats-grid, .articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.cat-card, .article-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink); transition: box-shadow .2s var(--ease); }
.cat-card:hover, .article-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.cat-name, .article-card-title { font-weight: 600; margin: 6px 0 4px; }
.cat-desc, .article-card-desc, .cat-link { font-size: 13px; color: var(--muted); }
.legacy .btn-primary { display: inline-block; padding: 10px 18px; border-radius: 999px; }
/* 单卡详解 */
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 26px 18px; margin: 22px 0; line-height: 1.85; color: var(--ink-2); }
.guide h2 { color: var(--ink); }
.guide h3 { color: var(--ink); margin-top: 22px; }
.guide table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.guide th, .guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide th { background: var(--surface-2); color: var(--ink); }

/* 卡小帮 */
img.logo-mark { display: block; filter: drop-shadow(0 1px 1.5px rgba(21,23,31,.25)); }
.logo-sub { font-size: 13px; color: var(--ink-2); border-left: 1px solid var(--line-2); padding-left: 10px; margin-left: 4px; font-weight: 500; }
.mascot { margin: 0; position: relative; aspect-ratio: 1 / 1; max-width: 500px; width: 100%; justify-self: end; }
.mascot-fallback { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 28px; }
.mascot-fallback { visibility: hidden; }
.mascot.no-3d .mascot-fallback { visibility: visible; }
.mascot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: manipulation; animation: xk-in .7s var(--ease) both; }
.mascot figcaption { position: absolute; left: 0; right: 0; bottom: 2%; text-align: center; font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.78); pointer-events: none; }
.mascot:not(.is-3d) figcaption { display: none; }
.mascot.is-3d .mascot-fallback { display: none; }
@keyframes xk-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mascot-canvas { animation: none; } }
@media (max-width: 860px) { .mascot { justify-self: center; max-width: 260px; order: -1; margin: -24px auto -8px; } }
.ask-in { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; box-shadow: var(--shadow); }
.ask-in img { flex: none; filter: drop-shadow(0 3px 5px rgba(21,23,31,.18)); }
.ask-in h2 { margin: 0 0 6px; }
.ask-list { margin: 8px 0 16px; padding-left: 18px; color: var(--ink-2); }
.ask-list li { margin: 4px 0; }
@media (max-width: 560px) { .ask-in { flex-direction: column; } }
.consult { align-items: center; }
.consult-avatar { border-radius: 50%; flex: none; }
.consult > div { flex: 1; min-width: 220px; }
.btn-av { margin-right: 2px; vertical-align: middle; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.3)); }
.footer-links .btn-av { margin-right: 4px; }
.xk-float-avatar { display: inline-block; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(21,23,31,.3)); }

/* 3D 小头像：无框，直接站在按钮里 */
canvas.xk-av3d { display: inline-block; vertical-align: middle; filter: none; box-shadow: none; border-radius: 0; background: transparent; }
.btn canvas.xk-av3d { margin: -8px 4px -8px -6px; }
.logo canvas.xk-av3d { margin: -6px -2px -6px -6px; }

/* 首页（2026-10-26 改版：宝石蓝夜色首屏 + 单一搜卡入口） */
.hero { position: relative; color: #fff; padding: 132px 0 76px; overflow: hidden; background-color: var(--night);
  /* 形态①实景大图（视觉标准 §2 / R396）：机场停机坪黄昏实景，左侧压深色遮罩保证文字对比度，右侧留出卡小帮 */
  background-image: linear-gradient(90deg, rgba(9,14,36,.92) 0%, rgba(9,14,36,.78) 42%, rgba(9,14,36,.35) 72%, rgba(9,14,36,.55) 100%), linear-gradient(180deg, rgba(9,14,36,.35) 0%, rgba(9,14,36,0) 30%, rgba(9,14,36,.7) 100%), url("https://img.xinyongka.help/finance/xinyongka-hero-airport-dusk-2026-2000x1334.webp");
  background-size: cover; background-position: center 60%; }
@media (max-width: 760px) { .hero { background-image: linear-gradient(180deg, rgba(9,14,36,.55) 0%, rgba(9,14,36,.72) 45%, rgba(9,14,36,.94) 100%), url("https://img.xinyongka.help/finance/xinyongka-hero-airport-900-dusk-2026-900x600.webp"); background-position: 62% center; } }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.72); }
.hero .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #5fe0a8; box-shadow: 0 0 0 4px rgba(95,224,168,.18); }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.16; margin: 14px 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--gold); }
.hero .sub { font-size: 17px; color: rgba(255,255,255,.8); max-width: 34em; margin: 0 0 26px; }
.hero .sub b { color: var(--gold); font-weight: 650; font-variant-numeric: tabular-nums; }
.find { max-width: 560px; }
.find-box { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 18px; box-shadow: 0 18px 40px rgba(5,10,30,.45), 0 0 0 1px rgba(255,255,255,.08); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.find-box:focus-within { box-shadow: 0 18px 44px rgba(5,10,30,.5), 0 0 0 4px rgba(120,146,255,.45); }
.find-box svg { flex: none; color: var(--muted); }
.find-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 17px/1.4 var(--font); color: var(--ink); background: transparent; padding: 10px 0; }
.find-box input::placeholder { color: #737a8f; }
.find-box .btn { padding: 12px 20px; border-radius: 12px; }
.find-hint { font-size: 13.5px; color: rgba(255,255,255,.7); margin: 12px 2px 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.find-hint a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.find-hint a:hover { color: #fff; border-color: #fff; }
.find-hint .ask { display: inline-flex; align-items: center; gap: 2px; border: 0; }
.find-res { list-style: none; margin: 10px 0 0; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(5,10,30,.4); color: var(--ink); max-height: 360px; overflow: auto; }
.find-res[hidden] { display: none; }
.find-res li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.find-res li:hover, .find-res li.on { background: var(--surface-2); }
.find-res a { flex: 1; min-width: 0; color: var(--ink); font-weight: 550; }
.find-res .meta { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.find-res .add { flex: none; border: 1px solid var(--line-2); background: #fff; color: var(--primary); border-radius: 999px; font: 600 13px/1 var(--font); padding: 8px 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.find-res .add:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.find-res .add:disabled { color: var(--ok); border-color: var(--ok-soft); background: var(--ok-soft); cursor: default; }
.find-res .none { color: var(--muted); font-size: 14px; display: block; padding: 6px 4px; }
@media (max-width: 860px) { .hero { padding: 128px 0 44px; } .hero-in { grid-template-columns: 1fr; gap: 6px; } .find-box .btn { padding: 11px 14px; } }

.band { padding: 60px 0 8px; }
.band h2 { margin-top: 0; font-size: clamp(22px, 3vw, 28px); text-wrap: balance; }
.band .lede { color: var(--ink-2); margin: -4px 0 22px; max-width: 40em; }
/* 三步：真正的先后顺序，用大号序号和一条细线串起来，不装进卡片 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 34px; counter-reset: s; padding: 0; margin: 0; }
.steps li { list-style: none; position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: -2px; left: 0; width: 34px; border-top: 2px solid var(--primary); padding-top: 12px; font: 700 34px/1 var(--font); color: var(--primary); font-variant-numeric: tabular-nums; }
.steps strong { display: block; margin: 40px 0 6px; font-size: 18px; }
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }
/* 按银行：像工具的一张表，卡数用条长直接看 */
.bank-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.bank-cols h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 6px; }
.bank-rows { list-style: none; margin: 0; padding: 0; }
.bank-rows a { display: grid; grid-template-columns: 6.2em 1fr auto; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); color: var(--ink); border-radius: 6px; transition: background .2s; }
.bank-rows a:hover { background: var(--surface); color: var(--ink); }
.bank-rows b { font-weight: 600; }
.bank-rows .bar { height: 8px; border-radius: 99px; background: var(--primary-soft); overflow: hidden; }
.bank-rows .bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #3a52c9, var(--primary)); transform-origin: left; transition: transform .6s var(--ease); }
.bank-rows a:hover .bar i { background: var(--primary-ink); }
.bank-rows .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bank-rows .n em { font-style: normal; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .bank-cols { grid-template-columns: 1fr; gap: 22px; } .bank-rows a { grid-template-columns: 5.4em 1fr auto; gap: 10px; } }
/* 为什么放心：三句短话，不做卡片 */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.trust strong { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.trust strong::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23b0822c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.trust p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; gap: 18px; } }

.list-h { font-size: 18px; margin: 28px 0 10px; }

/* 首页：顶栏先透明压在大图上，下滑后变实色（视觉标准 §2 形态①） */
body.home .topbar { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
body.home .topbar:not(.is-solid) .logo, body.home .topbar:not(.is-solid) .nav a { color: #fff; }
body.home .topbar:not(.is-solid) .logo-sub { color: rgba(255,255,255,.78); border-left-color: rgba(255,255,255,.3); }
body.home .topbar:not(.is-solid) .nav a:hover, body.home .topbar:not(.is-solid) .nav a[aria-current] { background: rgba(255,255,255,.14); }
body.home .topbar:not(.is-solid) .nav-login { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
body.home .topbar.is-solid { background: rgba(248,249,252,.96); border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(19,26,46,.08); }
.hero-photo { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: 11px; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .hero-photo { display: none; } }

/* 审计 2026-10-26 修：正文链接要能和正文区分（axe：链接与正文对比 1.04:1） */
.article-body a, .guide a, .prose a, .page a:not(.btn):not(.bank-rows a) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bank-rows a, .find-hint a, .crumbs a, .nav a, .footer a { text-decoration: none; }
/* 分类页（旧模板）内联金字按钮对比度不足 */
.legacy .btn-primary[style] { background: var(--primary-soft) !important; color: var(--primary-ink) !important; }
@media (max-width: 480px) { .logo canvas.xk-av3d { margin-left: 0; } }
