/* 万域公装平台 · 全局样式 */
: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: 420px;
}
.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; cursor: pointer; }
.nav-links .btn-join:hover { background: #d97706; color: #fff !important; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; white-space: nowrap; letter-spacing: 0.02em; }
.nav-city-badge { font-size: 0.75rem; background: #EFF6FF; color: var(--primary); padding: 4px 12px; border-radius: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.nav-city-badge--hub { background: #F0FDF4; color: #166534; }
.toast-msg { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1000; }

/* 按钮 */
.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; }

/* 服务页：办公/展厅/招标 */
/* 服务页 Hero：与 .container 内 section-block 同宽 */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 28px 32px;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}
.page-hero--expo { background: linear-gradient(135deg, #0F2C44 0%, #7C2D12 100%); }
.page-hero h1 { font-size: 2rem; margin-bottom: 10px; }
.page-hero p { opacity: 0.92; font-size: 1rem; }
.section-block { margin-bottom: 32px; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.section-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.style-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,0.04); text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.style-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(30,74,118,0.12); }
.style-card-thumb { height: 180px; overflow: hidden; background: #EFF6FF; }
.style-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-card-body { padding: 16px 18px 20px; }
.style-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.style-card-body p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-bottom: 10px; }
.style-card-link { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.page-hero--bids { background: linear-gradient(135deg, #1E4A76 0%, #0F2C44 100%); }
.bids-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.bids-count { color: var(--muted); font-size: 0.9rem; }
.bids-list-full { padding: 8px 28px 20px; }
.bids-list-full .demand-item { padding: 20px 0; }
.bids-list-full .demand-item:last-child { border-bottom: none; }
.style-detail-hero { border-radius: 24px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.style-detail-hero img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.style-detail-body { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.style-detail-body h1 { font-size: 1.75rem; color: var(--primary); margin: 12px 0; }
.style-detail-sub { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.style-detail-desc { line-height: 1.8; color: #374151; margin-bottom: 24px; }
.style-detail-badge { display: inline-block; background: #EFF6FF; color: var(--primary); padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }
.style-detail-features { margin: 12px 0 24px 20px; line-height: 1.9; color: #4B5563; }
.style-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 8px; }
.back-link:hover { color: var(--primary); }
.empty-hint { text-align: center; padding: 60px 20px; color: var(--muted); }
@media (max-width: 960px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .style-grid { grid-template-columns: 1fr; } .style-detail-body { padding: 20px; } }
.publish-card, .demand-list-card { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 0.95rem; }
.btn-block { width: 100%; margin-top: 8px; text-align: center; border: none; cursor: pointer; padding: 12px; border-radius: 40px; }
.demand-item { border-bottom: 1px solid var(--border); padding: 16px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.demand-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.demand-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; color: var(--muted); font-size: 0.85rem; }
.bid-btn { background: var(--accent); border: none; padding: 8px 22px; border-radius: 40px; font-weight: 600; cursor: pointer; color: #1F2937; }
.bid-btn:hover { background: #d97706; color: #fff; }
.page-header-block { margin: 32px 0 16px; }
.filter-bar { margin-top: 16px; }
.filter-bar select { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); margin-left: 8px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } .nav-links a { font-size: 0.82rem; padding: 6px 8px; } }

/* 当前站点标识 */
.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.5rem; font-weight: 800; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.hot-cities a.active { background: var(--primary) !important; color: #fff !important; }

/* 首页热门城市条：背景在 container 内，与 section-block 同宽 */
.city-bar {
    background: #fff;
    border-radius: 60px;
    padding: 12px 24px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}

/* 首页 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; }
    .page-hero { padding: 22px 20px; border-radius: 24px; }
}
