/* ==========================================
   用卡屋官网 — 公共样式
   主色: #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);
}

/* ========== 内容站通用模块 ========== */
.section { padding: 64px 0; background: #fff; }
.section.alt { background: var(--bg); }
.intro-text {
    max-width: 760px; margin: -18px auto 36px;
    text-align: center; color: var(--text-light); font-size: 15px; line-height: 1.9;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.content-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.content-card h3, .content-card h4 { color: var(--blue); margin-bottom: 10px; }
.content-card p { color: var(--text-light); font-size: 14px; line-height: 1.8; }
.content-card .tag {
    display: inline-block; margin-bottom: 12px; padding: 4px 10px;
    background: #edf3f8; color: var(--blue); border-radius: 4px; font-size: 12px;
}
.notice-box {
    max-width: 860px; margin: 28px auto 0; padding: 18px 22px;
    border-left: 4px solid var(--gold); background: #fffbf0;
    color: var(--text-light); font-size: 14px; line-height: 1.8;
}

/* ========== 资讯建设中与咨询表单 ========== */
.news-grid, .article-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.news-card, .article-card {
    min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.news-card:not(.is-building):hover, .article-card:not(.is-building):hover {
    transform: translateY(-3px); box-shadow: 0 8px 26px rgba(13,33,55,.10);
}
.news-thumb, .article-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #edf2f7; }
.news-thumb img, .article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-info, .article-info { position: relative; padding: 20px; }
.news-info h4, .article-info h3 { color: var(--blue); margin: 8px 0; line-height: 1.45; }
.news-info p, .article-info p { color: var(--text-light); font-size: 14px; line-height: 1.8; }
.news-date, .article-meta { margin-top: 14px; color: var(--text-muted); font-size: 12px; }
.article-tag, .building-badge {
    display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 999px;
    background: #edf3f8; color: var(--blue); font-size: 12px; line-height: 1.4;
}
.building-badge { margin-top: 14px; background: #fff6dc; color: #775717; font-weight: 700; }
.construction-cover {
    display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px;
    background: linear-gradient(135deg, #eaf0f6, #f8fafc); color: var(--blue);
}
.construction-cover span { padding: 8px 13px; border: 1px solid #cad6e2; border-radius: 999px; font-size: 13px; }
.construction-state {
    grid-column: 1 / -1; padding: 20px; border: 1px dashed #cfd9e3; border-radius: 10px;
    background: #f8fafc; color: var(--text-light); text-align: center; line-height: 1.8;
}
.form-row { margin-bottom: 18px; }
.form-row label, .contact-input-row label { display: block; margin-bottom: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea, .contact-input-row input {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: #f9fafb; color: var(--text); font: inherit;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.contact-input-row { display: none; margin-bottom: 18px; }
.contact-input-row.active { display: block; }
.qr-upload-box { position: relative; padding: 18px; border: 2px dashed var(--border); border-radius: 8px; text-align: center; }
.qr-upload-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#qrPreview { display: none; max-width: 150px; max-height: 150px; margin: 10px auto; border-radius: 8px; }
.form-submit { width: 100%; padding: 13px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; font-size: 16px; font-weight: 700; }
.upload-progress, #formSuccess { display: none; }
.upload-progress.active { display: block; margin-bottom: 18px; color: var(--text-light); text-align: center; }
#formSuccess { padding: 20px 0; text-align: center; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.lead-receipt { margin-top: 10px; color: var(--text-light); font-size: 13px; word-break: break-all; }
.qr-link { display: inline-block !important; line-height: 0 !important; }
.qr-link img { display: block; background: #fff; }
.btn-disabled {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 32px;
    border: 1px solid #d5dce4; border-radius: 6px; background: #eef2f6; color: #667788;
    font-size: 15px; font-weight: 600; cursor: not-allowed;
}

/* ========== 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-row img { margin: 0 auto; }
.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 img { margin-left: 0; }
.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;
}
.footer-bottom a { color: #6b8299; }
.footer-bottom a:hover { color: var(--gold); }

/* ========== 浮窗客服按钮 ========== */
.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 img { margin: 0 auto; }
.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; }
    .grid-2, .grid-3, .grid-4, .news-grid, .article-list { grid-template-columns: 1fr; }

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

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

/* === 20260810 上线完善公共组件 === */
.legal-content{max-width:900px}.legal-content h2{color:var(--blue);font-size:21px;margin:28px 0 10px}.legal-content p{color:var(--text-light);line-height:1.9;margin-bottom:12px}.legal-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:14px 0}.legal-links a{color:inherit;font-size:13px}.search-box{max-width:760px;margin:0 auto 28px}.search-box label{display:block;font-weight:700;color:var(--blue);margin-bottom:8px}.search-row{display:flex;gap:10px}.search-row input{flex:1;padding:13px 15px;border:1px solid var(--border);border-radius:8px;font-size:16px}.search-row button{padding:0 26px;border-radius:8px;background:var(--blue);color:#fff}.search-hint{font-size:12px;color:var(--text-muted);margin-top:8px}.search-results{max-width:760px;margin:0 auto;display:grid;gap:12px}.search-result{display:block;background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px}.search-result h3{color:var(--blue);margin-bottom:5px}.search-result p{color:var(--text-light);font-size:14px}.error-state{text-align:center;padding:40px 0}.error-code{font-size:88px;line-height:1;color:var(--gold);font-weight:800;margin-bottom:18px}.consent-row{font-size:13px;color:var(--text-light);margin:12px 0 16px}.consent-row label{display:flex;gap:8px;align-items:flex-start}.consent-row input{margin-top:4px}.consent-row a{color:var(--blue);text-decoration:underline}@media(max-width:768px){.search-row{flex-direction:column}.search-row button{padding:12px}.error-code{font-size:64px}}

/* === 20260820 常见问题与双站导流 === */
.breadcrumb{display:flex;justify-content:center;gap:9px;margin:0 0 18px;color:#9fb3c9;font-size:13px}.breadcrumb a{color:var(--gold-light)}.cross-brand-card{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:34px;border:1px solid #d9e2eb;border-radius:14px;background:linear-gradient(135deg,#fff,#f4f7fa)}.cross-brand-card>div{min-width:0}.cross-brand-card h2{margin:10px 0;color:var(--blue);font-size:24px}.cross-brand-card p{max-width:760px;color:var(--text-light);line-height:1.8}.cross-brand-card .btn-gold{flex:0 0 auto}.cross-brand-card .link-status{margin-top:8px;color:var(--text-muted);font-size:12px}.section-action{text-align:center;margin-top:30px}.faq-list{display:grid;gap:14px;max-width:900px;margin:0 auto}.faq-item{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}.faq-item summary{position:relative;padding:20px 56px 20px 22px;color:var(--blue);font-weight:700;cursor:pointer;list-style:none}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary::after{content:'+';position:absolute;right:22px;top:16px;color:var(--gold-dark);font-size:25px;font-weight:400}.faq-item[open] summary::after{content:'−'}.faq-item[open] summary{border-bottom:1px solid var(--border)}.faq-answer{padding:0 22px 20px;color:var(--text-light);line-height:1.9}.faq-answer a{color:var(--blue);text-decoration:underline}.nav-toggle{background:transparent}
@media (max-width:1050px) and (min-width:769px){.nav-menu{gap:18px}.nav-menu a{font-size:14px}}
@media (max-width:768px){.cross-brand-card{align-items:flex-start;flex-direction:column;padding:24px}.cross-brand-card h2{font-size:21px}.breadcrumb{margin-bottom:14px}.faq-item summary{padding:18px 48px 18px 18px}.faq-answer{padding:0 18px 18px}}
.nav-toggle{border:0;color:inherit;font:inherit}
