/* ============================================================
   巧赢财务 - 全局样式（移动端自适应）
   ============================================================ */
:root {
    --primary: #1b4f9c;      /* 主蓝 */
    --primary-dark: #123b75;
    --gold: #d9a441;         /* 金色点缀 */
    --green: #1f9d55;        /* 价格绿 */
    --text: #2b2f36;
    --muted: #6b7280;
    --bg: #f5f7fb;
    --card: #ffffff;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(27, 79, 156, .10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    padding-bottom: 64px; /* 给移动端底部栏留位 */
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------------- 顶部条 ---------------- */
.site-topbar {
    background: var(--primary-dark);
    color: #cfe0f5;
    font-size: 13px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-tel { color: #ffd98a; font-weight: 600; }

/* ---------------- 头部导航 ---------------- */
.site-header {
    background: var(--card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 22px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--gold);
}
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.logo-text small { display: block; font-size: 10px; font-weight: 600; color: var(--gold); letter-spacing: 1px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
    padding: 8px 14px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500;
}
.site-nav a:hover { color: var(--primary); background: #eef3fb; }
.site-nav a.active { color: #fff; background: var(--primary); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--primary-dark); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 52px 0; }
.section-tint { background: var(--card); }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 28px; color: var(--primary-dark); }
.section-head h2 i { color: var(--gold); font-style: normal; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------------- 首页 Hero ---------------- */
.hero {
    background: linear-gradient(135deg, #123b75 0%, #1b4f9c 55%, #2a6bc4 100%);
    color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px;
    width: 380px; height: 380px; border-radius: 50%;
    background: rgba(217, 164, 65, .18);
}
.hero-inner { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; }
.hero-copy { flex: 1.2; }
.hero-copy h1 { font-size: 38px; line-height: 1.35; margin-bottom: 16px; }
.hero-copy h1 .gold { color: #ffd98a; }
.hero-copy p { font-size: 16px; color: #d7e4f7; margin-bottom: 26px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 12px 26px; border-radius: 30px;
    font-size: 16px; font-weight: 700; transition: .25s; border: 0; cursor: pointer; text-align: center;
}
.btn-gold { background: linear-gradient(135deg, #e7b95c, var(--gold)); color: #3c2a00; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217, 164, 65, .45); }
.btn-line { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); }
.hero-card {
    flex: 0 0 340px; background: rgba(255, 255, 255, .97); color: var(--text);
    border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.hero-card h3 { color: var(--primary-dark); font-size: 20px; margin-bottom: 14px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 9px 0; border-bottom: 1px dashed #e5eaf3; font-size: 14px; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li b { color: var(--green); }

/* ---------------- 特色卡片 ---------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
    background: var(--card); border-radius: var(--radius); padding: 24px 20px;
    box-shadow: var(--shadow); text-align: center; transition: .3s;
}
.feature:hover { transform: translateY(-4px); }
.feature .ico {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px;
    background: linear-gradient(135deg, #e8f1fb, #d4e4f8); color: var(--primary);
    font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.feature h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---------------- 流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
    background: var(--card); border-radius: var(--radius); padding: 24px 18px;
    box-shadow: var(--shadow); position: relative; text-align: center;
}
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; font-size: 34px; font-weight: 800; color: rgba(27, 79, 156, .16); line-height: 1;
}
.step h3 { font-size: 16px; color: var(--primary-dark); margin: 8px 0 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* ---------------- 报价中心 ---------------- */
.price-table-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table thead th {
    background: var(--primary); color: #fff; padding: 14px 12px; font-size: 15px; white-space: nowrap;
}
.price-table tbody td {
    padding: 14px 12px; text-align: center; font-size: 14px; border-bottom: 1px solid #eef1f6;
}
.price-table tbody tr:nth-child(even) { background: #f7f9fd; }
.price-table tbody tr:hover { background: #eef4fc; }
.price-table td.price { color: var(--green); font-weight: 800; font-size: 15px; }
.price-table td.note { color: var(--muted); font-size: 13px; text-align: left; }
.table-scroll { overflow-x: auto; }
.price-remark {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px;
}
.remark-card {
    background: var(--card); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow); border-left: 4px solid var(--gold);
}
.remark-card.warn { border-left-color: #e05d5d; }
.remark-card h4 { font-size: 17px; color: var(--primary-dark); margin-bottom: 8px; }
.remark-card p { font-size: 14px; color: var(--muted); }
.remark-card.warn p { color: #b23b3b; }
.remark-card .big { font-size: 26px; font-weight: 800; color: var(--gold); }

/* ---------------- 表单 ---------------- */
.form-card { max-width: 620px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.form-group label em { color: #e05d5d; font-style: normal; }
.form-control {
    width: 100%; padding: 11px 14px; border: 1px solid #d5dce8; border-radius: 8px;
    font-size: 15px; background: #fbfcfe; transition: .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27, 79, 156, .12); background: #fff; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-submit { width: 100%; padding: 13px; font-size: 17px; }
.alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px;
}
.alert-success { background: #e6f7ed; color: #156b3a; border: 1px solid #b7e5c8; }
.alert-error { background: #fdecec; color: #b23b3b; border: 1px solid #f2c2c2; }

/* ---------------- 记录查询 ---------------- */
.records-list { max-width: 720px; margin: 0 auto; }
.record-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px; border-left: 4px solid var(--primary); }
.record-item .tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 20px; background: #eef3fb; color: var(--primary); margin-right: 8px; }
.record-item h4 { font-size: 15px; margin: 6px 0 4px; }
.record-item p { font-size: 14px; color: var(--muted); }
.record-item .time { font-size: 12px; color: #9aa3b2; margin-top: 6px; }
.empty-tip { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #102c55; color: #c7d6ec; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 44px 16px 30px; }
.footer-col h4 { color: #ffd98a; font-size: 16px; margin-bottom: 14px; }
.footer-col p { font-size: 13.5px; }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 13.5px; padding: 4px 0; }
.footer-col a { color: #c7d6ec; }
.footer-col a:hover { color: #ffd98a; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 12.5px; color: #8ea6c8; text-align: center; }

/* ---------------- 移动端底部快捷栏 ---------------- */
.mobile-bar {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    height: 58px; background: #fff; box-shadow: 0 -3px 14px rgba(0, 0, 0, .10);
}
.mobile-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
}
.mb-tel { color: var(--primary); }
.mb-consult { background: var(--gold); color: #3c2a00; }
.mb-message { background: var(--primary); color: #fff; }

/* ---------------- 关于页 ---------------- */
.about-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center; }
.about-block h2 { font-size: 26px; color: var(--primary-dark); margin-bottom: 16px; }
.about-block p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.about-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-num {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px; text-align: center;
}
.about-num b { display: block; font-size: 30px; color: var(--gold); }
.about-num span { font-size: 13px; color: var(--muted); }
.about-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.about-panel h3 { color: var(--primary-dark); margin-bottom: 12px; }
.about-panel li { list-style: none; padding: 8px 0; border-bottom: 1px dashed #e5eaf3; font-size: 14px; }
.about-panel li:last-child { border-bottom: 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
    .features, .steps { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { flex-direction: column; }
    .hero-card { flex: 1 1 auto; width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-block { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .topbar-inner { justify-content: center; }
    .topbar-tel { display: none; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; top: 64px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 10px 16px 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 13px 14px; border-bottom: 1px solid #f0f3f8; border-radius: 0; }
    .site-nav a:last-child { border-bottom: 0; }
    .hero { padding: 44px 0; }
    .hero-copy h1 { font-size: 28px; }
    .mobile-bar { display: flex; }
    .section { padding: 40px 0; }
    .section-head h2 { font-size: 23px; }
    .form-row { grid-template-columns: 1fr; }
    .price-remark { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .hero-btns .btn { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
    .features, .steps { grid-template-columns: 1fr; }
    .form-card { padding: 22px 18px; }
}
