/* 万域公装平台 · 全局样式 */
:root {
    --primary: #1E4A76;
    --primary-dark: #0F2C44;
    --accent: #F59E0B;
    --bg: #F4F7FC;
    --text: #1F2A3E;
    --muted: #6B7280;
    --border: #EDF2F7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* 导航 */
.navbar { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-flex { display: flex; align-items: center; padding: 14px 0; gap: 16px; flex-wrap: nowrap; }
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 380px;
}
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; margin-left: auto; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.nav-links a { text-decoration: none; color: #4B5563; font-weight: 500; padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #EFF6FF; }
.nav-links .btn-join { background: var(--accent); color: #1F2937 !important; border-radius: 40px; padding: 8px 20px; font-weight: 600; }
.nav-links .btn-join:hover { background: #d97706; color: #fff !important; }

/* 按钮 */
.btn-outline { border: 1.5px solid var(--primary); background: transparent; padding: 8px 22px; border-radius: 40px; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-solid { background: var(--primary); border: none; padding: 10px 28px; border-radius: 40px; color: #fff; font-weight: 600; text-decoration: none; display: inline-block; }
.tag { background: #EFF6FF; padding: 4px 12px; border-radius: 30px; font-size: 0.75rem; font-weight: 600; color: var(--primary); display: inline-block; margin: 2px 4px 2px 0; }
.tag-expo { background: #FEF3C7; color: #B45309; }
.rating { color: var(--accent); margin: 8px 0; font-size: 0.9rem; }

/* 装修公司卡片 · 按钮底部对齐 */
.contractor-grid, .company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.contractor-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.contractor-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1); }
.contractor-card h3 { font-size: 1.05rem; margin: 12px 0 6px; line-height: 1.4; }
.contractor-card .card-intro { flex: 1; color: var(--muted); font-size: 0.88rem; margin: 10px 0 16px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.contractor-card .card-footer { margin-top: auto; padding-top: 8px; }
.contractor-card .btn-outline { margin-top: 0; text-align: center; width: 100%; }

/* 案例卡片 */
.insight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.insight-card {
    background: #F9FCFE; border-radius: 24px; padding: 20px; border: 1px solid var(--border);
    display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
    overflow: hidden;
}
.insight-card .card-thumb {
    width: calc(100% + 40px);
    margin: -20px -20px 14px;
    height: 160px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    overflow: hidden;
    flex-shrink: 0;
}
.insight-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.insight-card .card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.5;
}
.aigeo-cover {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin: 16px 0 20px;
    display: block;
}
.insight-card p { flex: 1; color: var(--muted); font-size: 0.9rem; margin: 8px 0 12px; }
.insight-card .read-more { color: var(--primary); font-weight: 600; margin-top: auto; }

/* FAQ */
.faq-item { background: #fff; border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; border: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { color: var(--primary); font-weight: 800; flex-shrink: 0; }
.faq-answer { margin-top: 12px; padding-left: 36px; color: #4B5563; line-height: 1.7; }

/* 页脚 */
footer { background: var(--primary-dark); color: #CDDFE7; padding: 40px 0 24px; margin-top: 48px; text-align: center; }
footer a { color: #CDDFE7; text-decoration: none; margin: 0 10px; }
footer a:hover { color: #fff; }
footer .icp { margin-top: 16px; font-size: 0.8rem; color: #9CA3AF; }
footer .icp a { color: #9CA3AF; margin: 0; }

/* 当前站点标识 */
.city-site-banner {
    background: linear-gradient(90deg, #EFF6FF, #fff);
    border: 1px solid #BFDBFE;
    border-radius: 16px;
    padding: 12px 20px;
    margin: 16px 0 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.92rem;
}
.city-site-banner.local {
    background: linear-gradient(90deg, #FEF3C7, #fff);
    border-color: #FCD34D;
}
.city-site-label { color: var(--muted); }
.city-site-banner strong { color: var(--primary); font-size: 1.05rem; }
.city-site-url {
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}
.city-site-banner.local .city-site-url { background: #B45309; }
.city-site-tag { color: #B45309; font-size: 0.82rem; }
.city-site-switch {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}
.city-site-switch:hover { text-decoration: underline; }
.nav-city-badge {
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1.3;
}
.nav-city-badge--hub { background: #EFF6FF; color: #1E4A76; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-size: 1.35rem; font-weight: 800; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.hot-cities a.active { background: var(--primary) !important; color: #fff !important; }

/* 首页 Hero 卡片（与下方表单同宽） */
.hero-wrap { margin-top: 16px; margin-bottom: 0; }
.hero-card {
    background: linear-gradient(135deg, #1E4A76 0%, #0F2C44 100%);
    color: #fff;
    border-radius: 32px;
    padding: 28px 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}
.hero-card h1 { font-size: 2.1rem; margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.25; }
.hero-card .hero-highlight { color: #F59E0B; }
.hero-card .hero-desc { font-size: 0.95rem; margin-top: 8px; opacity: 0.92; }
.hero-card .hero-stats { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.hero-card .stat-item h3 { font-size: 1.45rem; font-weight: 800; }
.hero-card .stat-item span { font-size: 0.85rem; opacity: 0.88; }
.hero-card .hero-actions { margin-top: 18px; }

/* 平台联系弹窗 */
.contact-modal-overlay {
    position: fixed; inset: 0; background: rgba(15,44,68,0.45);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 24px; animation: fadeIn 0.2s;
}
.contact-modal {
    background: #fff; border-radius: 24px; padding: 32px 36px;
    max-width: 420px; width: 100%; box-shadow: 0 24px 48px rgba(0,0,0,0.18);
    position: relative; text-align: center;
}
.contact-modal h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 8px; }
.contact-modal .contact-phone {
    font-size: 1.75rem; font-weight: 800; color: var(--accent);
    margin: 16px 0; letter-spacing: 0.02em;
}
.contact-modal .contact-phone a { color: var(--accent); text-decoration: none; }
.contact-modal .contact-row { color: #4B5563; font-size: 0.92rem; line-height: 1.7; margin: 8px 0; }
.contact-modal .contact-close {
    position: absolute; top: 12px; right: 16px; border: none; background: none;
    font-size: 1.5rem; color: #9CA3AF; cursor: pointer; line-height: 1;
}
.contact-modal .btn-call {
    display: inline-block; margin-top: 20px; background: var(--accent); color: #1F2937;
    padding: 12px 32px; border-radius: 40px; font-weight: 700; text-decoration: none;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 960px) {
    .nav-flex { flex-wrap: wrap; }
    .nav-left { min-width: 0; max-width: none; flex: 1 1 100%; }
    .nav-links { flex-wrap: wrap; justify-content: flex-start; margin-left: 0; }
}
@media (max-width: 700px) {
    .hero-card h1 { font-size: 1.75rem; }
    .hero-card { padding: 22px 20px; border-radius: 24px; }
}
