/* =====================================================
   北京贷款公司 - 单页样式 v1.0
   整合：原 theme.css + site-enhance.css
   重点：Hero/服务/流程/优势/FAQ/CTA + 悬浮工具
   ===================================================== */

/* ===== 基础重置与变量 ===== */
*,*::before,*::after { box-sizing: border-box; }
:root {
    --c-primary: #1e6bb8;
    --c-primary-dark: #0f2c52;
    --c-primary-light: #2a8bd6;
    --c-accent: #ffd166;
    --c-warn: #ee0979;
    --c-orange: #ff6a00;
    --c-success: #07c160;
    --c-text: #1a202c;
    --c-text-2: #4a5568;
    --c-text-3: #718096;
    --c-bg: #f7faff;
    --c-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15,44,82,.06);
    --shadow-md: 0 8px 24px rgba(15,44,82,.10);
    --shadow-lg: 0 16px 40px rgba(15,44,82,.14);
    --radius: 14px;
    --grad-primary: linear-gradient(135deg,#0f2c52 0%,#1e6bb8 60%,#2a8bd6 100%);
    --grad-warm: linear-gradient(135deg,#ff6a00 0%,#ee0979 100%);
}
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-warn); }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--c-warn); }
.section { padding: 60px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { font-size: 30px; margin: 0 0 8px; font-weight: 800; color: var(--c-text); }
.sec-head p { color: var(--c-text-3); margin: 0; font-size: 15px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 700;
    border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s;
    text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--grad-warm); color: #fff !important; box-shadow: 0 6px 18px rgba(238,9,121,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(238,9,121,.45); }
.btn-ghost { background: rgba(255,255,255,.18); color: #fff !important; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.30); }
.btn-white { background: #fff; color: var(--c-warn) !important; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff !important; border: 2px solid #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ===== 顶部导航 ===== */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-white);
    box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-text); font-weight: 800; }
.brand:hover { color: var(--c-text); }
.brand-mark {
    width: 38px; height: 38px; line-height: 38px; text-align: center;
    background: var(--grad-primary); color: #fff; border-radius: 10px;
    font-size: 18px; font-weight: 800;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 16px; }
.brand-text small { font-size: 11px; color: var(--c-text-3); font-weight: 500; }
.navlinks { display: flex; gap: 24px; margin-left: auto; }
.navlinks a { color: var(--c-text-2); font-size: 14px; font-weight: 600; }
.navlinks a:hover { color: var(--c-primary); }
.nav-phone {
    background: var(--grad-warm); color: #fff !important;
    padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(238,9,121,.30);
    white-space: nowrap;
}

/* ===== Hero 主视觉 ===== */
.hero { position: relative; overflow: hidden; color: #fff; padding: 70px 0 80px; background: var(--grad-primary); }
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.15), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255,209,102,.18), transparent 50%);
}
.hero-inner { position: relative; z-index: 1; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.hero-text { flex: 1 1 480px; }
.hero-tag {
    display: inline-block; padding: 6px 16px; background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 13px;
    margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero-text h1 {
    font-size: 42px; line-height: 1.25; margin: 0 0 18px; font-weight: 800; letter-spacing: 1px;
}
.hero-text h1 .accent { color: var(--c-accent); }
.hero-desc { font-size: 16px; line-height: 1.85; opacity: .95; margin: 0 0 28px; max-width: 580px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; max-width: 540px; }
.hero-points li { font-size: 14px; opacity: .9; }
.hero-points li::before { content: "✓"; color: var(--c-accent); font-weight: 800; margin-right: 6px; }

.hero-card {
    flex: 0 1 360px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px; padding: 26px; backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.card-label { font-size: 13px; opacity: .85; }
.card-phone {
    display: block; font-size: 32px; font-weight: 800; color: var(--c-accent) !important;
    margin: 6px 0 4px; letter-spacing: 1px;
}
.card-tip { font-size: 12px; opacity: .8; margin-bottom: 14px; }
.card-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; line-height: 2; }
.card-list li::before { content: "✓"; color: var(--c-accent); margin-right: 6px; font-weight: 700; }
.card-btn {
    width: 100%; padding: 12px; border-radius: 10px; border: none;
    background: var(--grad-warm); color: #fff; font-size: 15px; font-weight: 700;
    box-shadow: 0 4px 12px rgba(238,9,121,.35);
    transition: transform .2s;
}
.card-btn:hover { transform: translateY(-2px); }

/* ===== 数据条 ===== */
.stats { padding: 0 0 30px; margin-top: -30px; position: relative; z-index: 5; }
.stat-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    background: var(--c-white); border-radius: var(--radius);
    box-shadow: var(--shadow-md); padding: 20px 0; gap: 10px;
}
.stat { text-align: center; padding: 8px 0; border-right: 1px solid #eef0f3; }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 32px; font-weight: 800; color: var(--c-primary); letter-spacing: 1px; }
.stat b span { color: var(--c-warn); font-size: 16px; margin-left: 2px; }
.stat span { display: block; font-size: 13px; color: var(--c-text-3); margin-top: 4px; }

/* ===== 业务介绍 ===== */
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.svc {
    background: var(--c-white); border-radius: var(--radius); padding: 26px 20px;
    text-align: center; border: 1px solid #eef2f7;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc:hover { transform: translateY(-5px); border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.svc-ico {
    width: 60px; height: 60px; line-height: 60px; margin: 0 auto 14px;
    background: var(--grad-primary); color: #fff; font-size: 30px;
    border-radius: 50%; box-shadow: 0 6px 16px rgba(30,107,184,.30);
}
.svc h3 { margin: 0 0 6px; font-size: 17px; color: var(--c-text); }
.svc p { color: var(--c-text-3); font-size: 13px; margin: 0; line-height: 1.7; }

/* ===== 办理流程 ===== */
.steps { background: linear-gradient(180deg,#fff 0%,#f7faff 100%); }
.step-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
    counter-reset: step;
}
.step-list li {
    position: relative; background: var(--c-white); border-radius: var(--radius);
    padding: 32px 22px 26px; text-align: center;
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.step-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 38px; line-height: 38px; border-radius: 50%;
    background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 16px;
    box-shadow: 0 4px 10px rgba(30,107,184,.40);
}
.step-list li::after {
    content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
    color: var(--c-primary); font-size: 22px; font-weight: 700; opacity: .5;
}
.step-list li:last-child::after { display: none; }
.step-list h3 { margin: 14px 0 6px; font-size: 17px; color: var(--c-text); }
.step-list p { color: var(--c-text-3); font-size: 13px; margin: 0; line-height: 1.7; }

/* ===== 为什么选我们 ===== */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.why-card {
    background: var(--c-white); border-radius: var(--radius); padding: 26px 20px;
    text-align: center; border: 1px solid #eef2f7;
    transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-ico {
    width: 64px; height: 64px; line-height: 64px; margin: 0 auto 14px;
    background: var(--grad-warm); color: #fff; font-size: 30px;
    border-radius: 50%; box-shadow: 0 6px 16px rgba(238,9,121,.30);
}
.why-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--c-text); }
.why-card p { color: var(--c-text-3); font-size: 13px; margin: 0; line-height: 1.7; }

/* ===== 常见问题 ===== */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-list details {
    background: var(--c-white); border-radius: 12px; margin-bottom: 12px;
    box-shadow: var(--shadow-sm); transition: box-shadow .25s;
    overflow: hidden;
}
.faq-list details:hover { box-shadow: var(--shadow-md); }
.faq-list summary {
    list-style: none; cursor: pointer; padding: 18px 22px; font-size: 16px; font-weight: 700;
    color: var(--c-text); position: relative; padding-right: 50px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    color: var(--c-primary); font-size: 22px; font-weight: 700; transition: transform .2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
    margin: 0; padding: 0 22px 18px; color: var(--c-text-2); font-size: 14px; line-height: 1.85;
}

/* ===== CTA 行动召唤 ===== */
.cta-strip {
    background: var(--grad-warm); color: #fff; padding: 50px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.cta-text h2 .accent { color: var(--c-accent); }
.cta-text p { margin: 0; font-size: 15px; opacity: .95; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 关键词 SEO 长尾 ===== */
.seo { background: #f5f5f5; padding: 40px 0; }
.seo h2 { font-size: 20px; margin: 0 0 16px; color: var(--c-text); }
.seo p { color: var(--c-text-2); font-size: 14px; line-height: 1.95; margin: 0 0 12px; }
.seo a { color: var(--c-primary); font-weight: 700; }

/* ===== 页脚 ===== */
.footer { background: var(--c-primary-dark); color: rgba(255,255,255,.85); padding: 40px 0 100px; }
.foot-top { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.foot-phone, .foot-wx {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 700;
    border: none; cursor: pointer; transition: transform .2s;
}
.foot-phone { background: var(--grad-warm); color: #fff !important; box-shadow: 0 4px 12px rgba(238,9,121,.35); }
.foot-wx { background: var(--c-success); color: #fff !important; box-shadow: 0 4px 12px rgba(7,193,96,.35); }
.foot-phone:hover, .foot-wx:hover { transform: translateY(-2px); }
.foot-info { margin: 0 0 6px; font-size: 14px; }
.foot-copy { margin: 0; font-size: 12px; opacity: .65; }

/* ===== 底部联系栏（移动端） ===== */
.bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    display: flex; gap: 10px; padding: 10px 12px;
    background: linear-gradient(90deg,#1e6bb8 0%,#2a8bd6 100%);
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.bb-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 16px; border-radius: 999px; font-size: 15px; font-weight: 700;
    color: #fff !important; border: none; cursor: pointer; text-decoration: none;
    transition: transform .2s;
}
.bb-btn:hover { transform: translateY(-1px); }
.bb-phone { background: var(--grad-warm); }
.bb-wx { background: linear-gradient(135deg,#07c160,#00b894); }

/* ===== 悬浮二维码 + 回到顶部 ===== */
.float-card {
    position: fixed; right: 16px; top: 30%; z-index: 90;
    width: 150px; background: var(--c-white); border-radius: 14px; padding: 14px 12px;
    box-shadow: var(--shadow-lg); text-align: center;
    border: 1px solid #eef2f7;
}
.fc-title { font-size: 14px; font-weight: 800; color: var(--c-text); line-height: 1.4; }
.fc-title small { font-size: 11px; color: var(--c-warn); font-weight: 700; }
.fc-qr { width: 124px; height: 124px; margin: 10px auto 8px; border-radius: 8px; background: #f0f3f7; }
.fc-tip { font-size: 11px; color: var(--c-text-3); line-height: 1.5; margin-bottom: 10px; }
.fc-phone, .fc-wx {
    display: block; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 700;
    color: #fff !important; text-decoration: none; margin-top: 6px; border: none; cursor: pointer; width: 100%;
}
.fc-phone { background: var(--grad-warm); }
.fc-wx { background: linear-gradient(135deg,#07c160,#00b894); }

.back-top {
    position: fixed; right: 16px; bottom: 88px; z-index: 89;
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: var(--grad-primary); color: #fff; font-size: 22px; line-height: 1;
    box-shadow: 0 4px 14px rgba(30,107,184,.35);
    cursor: pointer; opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity .3s, transform .3s, background .2s;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--c-primary-dark); }

/* ===== 二维码弹窗 ===== */
.qr-modal {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.6); align-items: center; justify-content: center;
    animation: fadeIn .2s ease;
}
.qr-modal.show { display: flex; }
.qr-box {
    background: #fff; border-radius: 14px; padding: 28px 24px 22px;
    max-width: 90%; max-height: 90%; width: 320px;
    text-align: center; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    animation: popIn .25s ease;
}
.qr-box img { width: 240px; height: 240px; margin: 0 auto 14px; border-radius: 8px; }
.qr-box p { margin: 0 0 8px; font-size: 14px; color: var(--c-text-2); }
.qr-phone { font-size: 15px; font-weight: 700; }
.qr-phone a { color: var(--c-warn); }
.qr-close {
    position: absolute; top: 6px; right: 12px; background: none; border: none;
    font-size: 26px; color: #999; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.qr-close:hover { color: #ff4d4f; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .float-card { display: none; }
    .service-grid, .why-grid { grid-template-columns: repeat(2,1fr); }
    .step-list { grid-template-columns: repeat(2,1fr); }
    .step-list li::after { display: none; }
}
@media (max-width: 720px) {
    .section { padding: 44px 0; }
    .sec-head h2 { font-size: 24px; }
    .nav { gap: 10px; height: 56px; }
    .navlinks { display: none; }
    .brand-text small { display: none; }
    .nav-phone { padding: 7px 12px; font-size: 13px; }
    .hero { padding: 36px 0 50px; }
    .hero-text h1 { font-size: 26px; }
    .hero-desc { font-size: 14px; }
    .hero-points { grid-template-columns: 1fr; }
    .hero-card { flex: 1 1 100%; }
    .stats { padding-bottom: 22px; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat b { font-size: 24px; }
    .service-grid, .why-grid, .step-list { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-text h2 { font-size: 22px; }
    .btn { padding: 11px 22px; font-size: 14px; }
    .footer { padding-bottom: 110px; }
    .back-top { right: 12px; bottom: 76px; width: 40px; height: 40px; font-size: 18px; }
}
