/* ==========================================
   用卡屋官网 — 公共样式
   主色: #1a3a5c (深蓝)  辅色: #d4a843 (金色)
   ========================================== */

/* 基础重置 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: #333; background: #f5f7fa; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ========== 颜色变量 ========== */
:root {
    --blue: #1a3a5c;
    --blue-dark: #0d2137;
    --blue-light: #2a5a8c;
    --gold: #d4a843;
    --gold-dark: #b8912e;
    --gold-light: #e8c77b;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --text-on-dark: #8fa8c4;
    --border: #e8ecf1;
    --green: #27ae60;
    --red: #e74c3c;
}

/* ========== 通用组件 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn-gold {
    display: inline-block; padding: 12px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff; font-size: 15px; font-weight: 600;
    border-radius: 6px; transition: all 0.3s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,67,0.35); }

.btn-outline {
    display: inline-block; padding: 12px 32px;
    background: transparent; color: var(--gold);
    border: 2px solid var(--gold); font-size: 15px; font-weight: 600;
    border-radius: 6px; transition: all 0.3s;
}
.btn-outline:hover { background: var(--gold); color: #fff; }

.section-title {
    font-size: 28px; color: var(--blue); text-align: center;
    margin-bottom: 40px; font-weight: 700;
}

/* ========== 顶部导航 ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26,58,92,0.95); backdrop-filter: blur(10px);
    height: 70px; transition: all 0.3s;
}
.navbar .container {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo span { color: var(--gold); font-size: 20px; font-weight: 700; }

.nav-menu { display: flex; gap: 32px; }
.nav-menu a {
    color: #c0cdd9; font-size: 15px; position: relative;
    padding: 4px 0; transition: color 0.2s;
}
.nav-menu a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--gold); transition: width 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-cta {
    padding: 9px 22px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff; font-size: 14px; font-weight: 600; border-radius: 6px;
    transition: all 0.3s;
}
.nav-cta:hover { box-shadow: 0 4px 12px rgba(212,168,67,0.4); }

/* 汉堡菜单按钮 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: all 0.3s; }

/* ========== 页面Hero ========== */
.page-hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #0a1a2e 100%);
    padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,168,67,0.06) 0%, transparent 60%);
}
.page-hero * { position: relative; }
.page-hero h1 { color: #fff; font-size: 40px; font-weight: 700; margin-bottom: 16px; }
.page-hero h1 .gold { color: var(--gold); }
.page-hero .subtitle { color: var(--text-on-dark); font-size: 17px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; }

/* ========== 数据展示条 ========== */
.stats-bar {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    padding: 48px 0;
}
.stats-grid {
    display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 40px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 14px; color: var(--text-on-dark); margin-top: 6px; }

/* ========== 卡片通用 ========== */
.card {
    background: var(--bg-card); border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s; overflow: hidden;
}
.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* ========== CTA条 ========== */
.cta-bar {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    padding: 50px 0; text-align: center;
}
.cta-bar h2 { color: #fff; font-size: 26px; margin-bottom: 24px; }
.cta-row { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-qr {
    width: 90px; height: 90px; background: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #999;
}

/* ========== Footer ========== */
.footer { background: #0d1a2a; padding: 50px 0 20px; color: #6b8299; }
.footer-grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
    margin-bottom: 30px;
}
.footer-col h4 { color: var(--gold); font-size: 15px; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col a { display: block; font-size: 13px; line-height: 2.2; color: #6b8299; }
.footer-col a:hover { color: var(--gold); }
.footer-qr {
    width: 90px; height: 90px; background: #1a2d42; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #4a6a8a; margin-top: 10px;
}
.footer-bottom {
    border-top: 1px solid #1a2d42; padding-top: 16px;
    text-align: center; font-size: 12px;
}

/* ========== 浮窗客服按钮 ========== */
.float-contact {
    position: fixed; bottom: 100px; right: 24px; z-index: 900;
}
.float-btn {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(212,168,67,0.4);
    cursor: pointer; transition: all 0.3s; position: relative;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 26px; height: 26px; fill: #fff; }
.float-popup {
    display: none; position: absolute; bottom: 64px; right: 0;
    background: #fff; border-radius: 12px; padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15); width: 200px; text-align: center;
}
.float-popup.show { display: block; }
.float-popup .qr {
    width: 140px; height: 140px; background: #f0f4f8; border-radius: 8px;
    margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #999;
}
.float-popup p { font-size: 13px; color: #666; }

/* ========== 移动端底部固定条 ========== */
.mobile-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--blue); padding: 10px 16px; z-index: 900;
    gap: 10px;
}
.mobile-bar a {
    flex: 1; text-align: center; padding: 10px; border-radius: 6px;
    font-size: 14px; font-weight: 600;
}
.mobile-bar .bar-consult { background: var(--gold); color: #fff; }
.mobile-bar .bar-call { background: rgba(255,255,255,0.15); color: #fff; }

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* 数字滚动 */
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .navbar .container { padding: 0 16px; }
    .nav-menu {
        display: none; position: fixed; top: 70px; left: 0; right: 0;
        background: var(--blue-dark); flex-direction: column;
        padding: 20px; gap: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    .page-hero { padding: 100px 16px 60px; }
    .page-hero h1 { font-size: 26px; }
    .page-hero .subtitle { font-size: 14px; }
    .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
    .hero-btns .btn-gold, .hero-btns .btn-outline { width: 200px; text-align: center; }

    .section-title { font-size: 22px; margin-bottom: 24px; }
    .container { padding: 0 16px; }

    .stats-grid { gap: 24px; }
    .stat-num { font-size: 28px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .mobile-bar { display: flex; }
    .float-contact { bottom: 80px; }

    .cta-bar h2 { font-size: 20px; }
}
