/* ============================================================
   EMISnap — EMI 贷款月供计算器 · "银行家账本"风
   设计：祖母绿 + 象牙纸 + 琥珀金，账本/硬币元素，Marvellus 衬线标题
   区别于 CurrSwipe 的深蓝金终端风，避免同质化
   ============================================================ */

:root {
  --ink: #12291f;            /* 深绿黑正文 */
  --ink-2: #1c3b2e;
  --primary: #0d6b46;        /* 祖母绿主色 */
  --primary-2: #0a4a33;      /* 深祖母绿 */
  --primary-3: #12875a;      /* 亮祖母绿 */
  --amber: #d9a441;          /* 琥珀金（利息/点缀） */
  --amber-2: #f0c15a;
  --paper: #f6f2e7;          /* 象牙纸背景 */
  --surface: #ffffff;
  --line: #e7e0d0;           /* 暖色边框 */
  --line-strong: #d5ccb8;
  --muted: #5f6d64;
  --faint: #96a39a;
  --success: #1e9e5f;
  --warning: #c9820b;
  --danger: #c2402f;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --shadow-sm: 0 1px 2px rgba(10, 74, 51, .05), 0 6px 18px rgba(10, 74, 51, .07);
  --shadow-md: 0 2px 4px rgba(10, 74, 51, .06), 0 18px 44px rgba(10, 74, 51, .12);
  --sans: "Mulish", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SF Mono", "Fira Code", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); }

/* ===== 两侧账本 + 硬币装饰 ===== */
.ledger-deco { position: fixed; top: 0; bottom: 0; width: 320px; pointer-events: none; z-index: 0; overflow: hidden; }
.ledger-deco.left { left: 0; }
.ledger-deco.right { right: 0; }
.ledger-deco::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13, 107, 70, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 107, 70, .03) 1px, transparent 1px);
  background-size: 100% 34px, 34px 34px;
}
.ledger-deco .coin {
  position: absolute; width: 118px; height: 118px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: rgba(13, 107, 70, .14);
  font-size: 46px; user-select: none; line-height: 1;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(217, 164, 65, .05));
  border: 2px solid rgba(13, 107, 70, .14);
  box-shadow: inset 0 0 0 9px rgba(13, 107, 70, .035), inset 0 0 0 11px rgba(217, 164, 65, .22);
}
.ledger-deco .coin::after {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed rgba(13, 107, 70, .14);
}
.ledger-deco.left .c1 { top: 14%; left: -30px; }
.ledger-deco.left .c2 { top: 44%; left: 70px; width: 96px; height: 96px; font-size: 38px; }
.ledger-deco.left .c3 { bottom: 6%; left: -18px; width: 132px; height: 132px; font-size: 52px; }
.ledger-deco.right .c1 { top: 12%; right: -34px; width: 132px; height: 132px; font-size: 52px; }
.ledger-deco.right .c2 { top: 46%; right: 56px; width: 96px; height: 96px; font-size: 38px; }
.ledger-deco.right .c3 { bottom: 8%; right: -22px; }
@media (max-width: 980px) { .ledger-deco { display: none; } }

/* ===== Header ===== */
.site-header {
  background: rgba(246, 242, 231, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.08rem; letter-spacing: -.3px; }
.logo .logo-img { width: 38px; height: 38px; border-radius: 9px; display: block; }
.logo .logo-name { font-family: var(--serif); color: var(--ink); letter-spacing: .2px; }
.logo .logo-dot { color: var(--amber); font-weight: 600; }
.nav-links { list-style: none; display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--primary); }

/* ===== Hero（祖母绿渐变 + 琥珀） ===== */
.hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(240, 193, 90, .16), transparent 40%),
    linear-gradient(135deg, #093c2a 0%, #0d6b46 60%, #0f7a51 100%);
  color: #fff; padding: 54px 0 62px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; left: -90px; bottom: -150px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 60%);
}
.hero .inner { position: relative; z-index: 1; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-2); background: rgba(240, 193, 90, .12);
  border: 1px solid rgba(240, 193, 90, .35); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px;
}
.hero .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero h1 { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; letter-spacing: -.4px; line-height: 1.16; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--amber-2); }
.hero .lead { color: rgba(255, 255, 255, .84); font-size: 1.02rem; max-width: 660px; margin: 0 auto; }

/* ===== 工具卡（账本/银行对账单感） ===== */
.tool-section { padding: 30px 0 12px; position: relative; z-index: 1; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tool-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: var(--primary-2); color: #fff;
}
.tool-topbar .t-mark { font-family: var(--serif); font-size: 1rem; font-weight: 700; letter-spacing: .3px; }
.tool-topbar .t-mark i { font-style: normal; color: var(--amber-2); }
.tool-topbar .t-title { font-family: var(--mono); font-size: .76rem; color: rgba(255, 255, 255, .65); letter-spacing: .05em; }
.tool-topbar .t-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: rgba(255, 255, 255, .85); }
.tool-topbar .t-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-2); animation: pulse 2s infinite; }

/* 输入区（账本行） */
.tool-body { padding: 24px 26px 6px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 6px; }
.input-suffix { position: relative; }
.field input[type="number"] {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: 11px;
  font-size: 1.12rem; color: var(--ink); background: var(--surface); font-family: var(--mono); font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 107, 70, .14); }
.input-suffix .suffix {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-family: var(--mono); font-size: .8rem; pointer-events: none;
}

.tool-actions { padding: 12px 26px 20px; }
.btn {
  width: 100%; padding: 15px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #0d6b46, #12875a);
  color: #fff; font-family: var(--sans); font-size: 1.02rem; font-weight: 800;
  cursor: pointer; letter-spacing: .3px; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(13, 107, 70, .35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13, 107, 70, .42); }
.btn:active { transform: scale(.99); }

.error-msg { color: var(--danger); font-size: .88rem; padding: 0 26px 6px; display: none; }
.error-msg.show { display: block; }

/* 结果区（对账单） */
.results { padding: 0 26px 26px; display: none; }
.results.show { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.result-hero {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 34px, rgba(217, 164, 65, .10) 34px, rgba(217, 164, 65, .10) 35px),
    linear-gradient(135deg, #fbf3dd, #f7ecc9);
  border: 1px solid rgba(217, 164, 65, .4); border-radius: 14px;
  padding: 24px 26px; text-align: center; margin-top: 8px; position: relative;
}
.result-hero .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #a67c12; }
.result-hero .emi-big {
  font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--primary-2); line-height: 1.1; margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.result-hero .emi-sub { font-size: .85rem; color: var(--muted); margin-top: 6px; font-family: var(--mono); }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.result-item {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: 10px; padding: 14px 16px; text-align: right;
}
.result-item.interest-card { border-left-color: var(--amber); }
.result-item .lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 4px; }
.result-item .num { font-family: var(--mono); font-size: 1.18rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-item .num.interest { color: var(--warning); }

/* 本金/利息占比条 */
.breakdown { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.breakdown h3 { font-family: var(--serif); font-size: .95rem; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.breakdown-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin-bottom: 8px; box-shadow: inset 0 0 0 1px rgba(10, 74, 51, .06); }
.breakdown-bar .seg-principal { background: linear-gradient(90deg, var(--primary-2), var(--primary-3)); }
.breakdown-bar .seg-interest { background: linear-gradient(90deg, var(--amber), var(--amber-2)); }
.breakdown-legend { display: flex; gap: 20px; font-size: .82rem; color: var(--muted); }
.breakdown-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.breakdown-legend .dot.principal { background: var(--primary); }
.breakdown-legend .dot.interest { background: var(--amber); }
.breakdown-legend strong { color: var(--ink); font-family: var(--mono); }

/* 摊销表（账本表） */
.amort-section { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.amort-section h3 { font-family: var(--serif); font-size: .95rem; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.amort-toggle { font-family: var(--mono); font-size: .78rem; color: var(--primary); cursor: pointer; text-decoration: none; font-weight: 600; }
.amort-table-wrap { max-height: 400px; overflow-y: auto; margin-top: 12px; display: none; border: 1px solid var(--line); border-radius: 8px; }
.amort-table-wrap.show { display: block; }
.amort-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.amort-table th, .amort-table td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.amort-table th {
  font-weight: 700; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  position: sticky; top: 0; background: var(--paper); z-index: 1;
}
.amort-table td:first-child, .amort-table th:first-child { text-align: left; }
.amort-table tbody tr:nth-child(even) { background: #fbf9f1; }
.amort-table tbody tr:hover { background: rgba(13, 107, 70, .05); }
.amort-table td.interest-col { color: var(--warning); }

/* ===== 特色卡片 ===== */
.features { padding: 30px 0 6px; position: relative; z-index: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; top: 0; right: 0; width: 52px; height: 52px;
  background: linear-gradient(135deg, transparent 50%, rgba(217, 164, 65, .14) 50%);
}
.feature .f-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-3), var(--primary-2));
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: var(--amber-2); font-size: 1.25rem; font-weight: 800;
}
.feature h3 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin-bottom: 7px; letter-spacing: -.2px; }
.feature p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ===== 内容区 ===== */
.content-section { padding: 34px 0; position: relative; z-index: 1; }
.content-section .inner { max-width: 800px; }
.content-section h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -.3px; margin: 34px 0 14px; color: var(--ink); }
.content-section h2:first-child { margin-top: 0; }
.content-section h2::after { content: ""; display: block; width: 44px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--amber)); border-radius: 2px; margin-top: 8px; }
.content-section h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: 22px 0 8px; color: var(--ink); }
.content-section p { margin-bottom: 14px; color: var(--muted); }
.content-section ul, .content-section ol { margin: 0 0 18px 20px; }
.content-section li { margin-bottom: 8px; color: var(--muted); }
.content-section code { font-family: var(--mono); background: #f4ecd8; color: #8a6416; padding: 2px 7px; border-radius: 5px; font-size: .84em; }
.formula-box {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 14px 18px; font-family: var(--mono); font-size: .9rem;
  color: var(--primary-2); margin: 12px 0 18px; line-height: 1.9;
  box-shadow: var(--shadow-sm);
}

/* ===== FAQ（主页） ===== */
.faq { margin-top: 8px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--primary); box-shadow: 0 2px 14px rgba(13, 107, 70, .1); }
.faq summary {
  padding: 15px 18px; font-weight: 700; font-size: .93rem; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.3rem; color: var(--primary); font-weight: 400; flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { padding: 13px 18px; margin: 0; color: var(--muted); font-size: .9rem; }

/* ===== 文章列表（白色卡片，规范固定） ===== */
.article-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.article-list a {
  display: block; padding: 16px 20px;
  border: 1px solid #e0e0e0; border-radius: 8px;
  background: #ffffff; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  color: #1a1a1a;
}
.article-list a:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, .15); transform: translateY(-1px); }
.article-list .article-title { font-weight: 600; font-size: .95rem; color: #1a1a1a; margin-bottom: 6px; line-height: 1.4; }
.article-list a:hover .article-title { color: #2563eb; }
.article-list .article-desc { font-size: .82rem; color: #666; line-height: 1.5; }
.view-all { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--primary); text-decoration: none; }
.view-all:hover { text-decoration: underline; }
.view-all::after { content: " \2192"; }

/* ===== 文章详情页（亮色阅读区，规范固定） ===== */
.article-content { padding: 44px 0; background: #f5f6f8; }
.article-content .inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.article-content article {
  background: #ffffff; border-radius: 16px;
  padding: 48px 56px; box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}
.article-content h1 { font-size: 2rem; font-weight: 700; color: #111; margin-bottom: 16px; line-height: 1.3; letter-spacing: -.01em; }
.article-content h2 { font-size: 1.45rem; font-weight: 700; color: #111; margin: 46px 0 18px; line-height: 1.35; letter-spacing: -.01em; padding-bottom: 12px; border-bottom: 2px solid #f0f2f5; }
.article-content h3 { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; margin: 32px 0 14px; line-height: 1.4; }
.article-content p { margin-bottom: 20px; color: #333; line-height: 1.9; font-size: 1.06rem; overflow-wrap: break-word; }
.article-content article > p:first-of-type { font-size: 1.13rem; color: #2b2b2b; }
.article-content li { margin-bottom: 12px; color: #333; line-height: 1.85; font-size: 1.06rem; }
.article-content ul li::marker { color: #2563eb; }
.article-content strong { color: #111; font-weight: 700; }
.article-content code { font-family: var(--mono); background: #f0f2f5; color: #d6336c; padding: 2px 7px; border-radius: 4px; font-size: .88em; }
.article-content blockquote { border-left: 4px solid #2563eb; padding: 18px 24px; margin: 28px 0; background: #f8f9fb; border-radius: 0 8px 8px 0; color: #555; font-size: 1rem; line-height: 1.8; }
.article-content blockquote p { margin-bottom: 0; }
.article-content .article-meta { font-size: .85rem; color: #8890a0; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid #eceff3; }
.article-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-size: .88rem; color: #666; text-decoration: none; font-weight: 500; }
.article-back:hover { color: #2563eb; }
.article-back::before { content: '\2190'; font-size: 1.1rem; }

/* FAQ on article page */
.faq-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid #eee; }
.faq-section .faq details { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; background: #fafbfc; overflow: hidden; transition: all .2s; }
.faq-section .faq details[open] { border-color: #2563eb; box-shadow: 0 2px 8px rgba(37, 99, 235, .08); }
.faq-section .faq summary { padding: 16px 20px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; color: #222; display: flex; align-items: center; gap: 10px; }
.faq-section .faq summary::-webkit-details-marker { display: none; }
.faq-section .faq summary::before { content: '+'; color: #2563eb; font-weight: 700; font-size: 1.2rem; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; background: rgba(37, 99, 235, .1); border-radius: 6px; flex-shrink: 0; }
.faq-section .faq details[open] summary::before { content: '\2212'; background: #2563eb; color: #fff; }
.faq-section .faq details p { padding: 0 20px 18px 50px; margin: 0; color: #555; font-size: .92rem; line-height: 1.75; }

/* Related articles */
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--line); }
.related-articles h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; letter-spacing: -.3px; }
.related-articles ul { list-style: none; display: grid; gap: 10px; }
.related-articles a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; transition: all .2s; line-height: 1.5; }
.related-articles a:hover { border-color: var(--primary); color: var(--primary); }

/* ===== 合规页 ===== */
.page-content { max-width: 780px; margin: 0 auto; padding: 44px 24px; position: relative; z-index: 1; }
.page-content h1 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -.3px; }
.page-content h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 26px 0 8px; }
.page-content p { margin-bottom: 12px; color: var(--muted); }
.page-content ul { margin: 0 0 12px 20px; }
.page-content li { margin-bottom: 5px; }
.contact-layout { display: grid; grid-template-columns: 1fr 260px; gap: 32px; margin-top: 24px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: .9rem; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 107, 70, .12); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.btn-submit { background: var(--primary-2); border: none; color: #fff; font-weight: 700; font-size: .9rem; padding: 10px 22px; border-radius: 9px; cursor: pointer; transition: background .15s; }
.btn-submit:hover { background: var(--primary); }
.form-status { font-size: .85rem; margin-top: 10px; }
.contact-info h2 { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.contact-info p { color: var(--muted); font-size: .9rem; }

/* ===== Footer ===== */
.site-footer { background: #0a2f22; color: #fff; padding: 34px 0; margin-top: 28px; position: relative; z-index: 1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-bottom: 14px; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .85rem; transition: color .15s; }
.footer-links a:hover { color: var(--amber-2); }
.copyright { text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .5); }

/* ===== 兼容类（合规页通用） ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.page-content .container { padding: 0; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .15s; }
.main-nav a:hover { color: var(--primary); }
.page-article h1 { margin-bottom: 18px; }
.legal-content a { color: var(--primary); }
.cookie-content { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; max-width: var(--max-width); margin: 0 auto; }
.cookie-buttons { display: flex; gap: 8px; }
.cookie-buttons button { font-size: .82rem; font-weight: 600; padding: 7px 18px; border-radius: 8px; border: 1px solid var(--line-strong); cursor: pointer; transition: all .15s; }
.cookie-buttons button:first-child { background: #fff; color: var(--muted); }
.cookie-buttons button:first-child:hover { background: #f3f6f5; }
.cookie-buttons button:last-child { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.cookie-buttons button:last-child:hover { background: var(--primary); }

/* ===== Cookie 横幅 ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
  padding: 14px 24px; display: none; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: .85rem; color: var(--muted); margin: 0; }
.cookie-banner a { color: var(--primary); }
.cookie-btns { display: flex; gap: 8px; }
.btn-cookie { font-size: .82rem; font-weight: 700; padding: 7px 18px; border-radius: 8px; border: 1px solid var(--line-strong); cursor: pointer; transition: all .15s; }
.btn-decline { background: #fff; color: var(--muted); }
.btn-decline:hover { background: #f3f6f5; }
.btn-accept { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.btn-accept:hover { background: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 1.75rem; }
  .hero .lead { font-size: .95rem; }
  .site-header .inner { height: 58px; }
  .nav-links { gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-hero .emi-big { font-size: 2.2rem; }
  .content-section h2 { font-size: 1.3rem; }
  .tool-body, .tool-actions, .results { padding-left: 18px; padding-right: 18px; }
  .article-content article { padding: 32px 24px; border-radius: 12px; }
  .article-content h1 { font-size: 1.6rem; }
  .article-content h2 { font-size: 1.25rem; margin: 34px 0 14px; }
  .article-content h3 { font-size: 1.08rem; margin: 26px 0 12px; }
  .article-content p, .article-content li { font-size: 1rem; }
  .article-content article > p:first-of-type { font-size: 1.06rem; }
  .faq-section .faq details p { padding-left: 20px; }
  .contact-layout { grid-template-columns: 1fr; }
}
