/* city_page.css —— 前端落地页样式（原内联 <style> 段外置）
   主题色由页面内联注入：--wyseo-theme / --wyseo-theme-dark / --wyseo-theme-light
   注意：三个落地页的公共选择器定义并不一致，不可合并为一份共用文件 */
    :root {
        --primary: var(--wyseo-theme, #2890FF);
        --primary-dark: var(--wyseo-theme-dark, #2890FFdd);
        --primary-light: var(--wyseo-theme-light, #2890FF18);
        --text-dark: #1e293b;
        --text-gray: #64748b;
        --text-light: #94a3b8;
        --bg-light: #f8fafc;
        --bg-white: #ffffff;
        --border: #e2e8f0;
        --shadow: 0 4px 20px rgba(0,0,0,0.08);
        --radius: 12px;
        --container-max: 1450px;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
        line-height: 1.6; color: var(--text-dark); background: var(--bg-light);
    }
    .container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

    /* Header + Navigation */
    header {
        background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        position: sticky; top: 0; z-index: 1000;
    }
    .header-content { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; position: relative; }
    .header-left { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
    .logo { font-size: 20px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
    .logo img { height: 36px; border-radius: 6px; }
    .logo i { font-size: 24px; }
    .main-nav { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
    .main-nav a {
        padding: 8px 16px; color: var(--text-dark); text-decoration: none;
        font-size: 14px; font-weight: 500; border-radius: 6px; transition: all 0.3s;
    }
    .main-nav a:hover { color: var(--primary); background: var(--primary-light); }
    .header-contact { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-gray); flex-shrink: 0; }
    .header-contact span { display: flex; align-items: center; gap: 6px; }
    .header-contact i { color: var(--primary); }
    .nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary); cursor: pointer; padding: 4px 8px; }

    /* Hero - 增加高度 */
    .hero {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: #fff; padding: 120px 0; text-align: center; position: relative; overflow: hidden;
        min-height: 480px; display: flex; align-items: center;
    }
    .hero-bg-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-size: cover; background-position: center; opacity: 0.15;
    }
    .hero > .container { position: relative; z-index: 1; width: 100%; }
    .hero h1 { font-size: 44px; margin-bottom: 20px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    .hero p { font-size: 20px; opacity: 0.95; max-width: 800px; margin: 0 auto 36px; line-height: 1.6; }
    .hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
    .hero-btns a {
        padding: 14px 36px; border-radius: 8px; font-size: 16px; font-weight: 600;
        text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
    }
    .btn-primary { background: #fff; color: var(--primary); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
    .btn-outline { border: 2px solid #fff; color: #fff; }
    .btn-outline:hover { background: rgba(255,255,255,0.1); }

    /* Hero Slideshow */
    .hero-slider { position: relative; width: 100%; overflow: hidden; }
    .hero-slide {
        display: none; background-size: cover; background-position: center;
        color: #fff; padding: 120px 0; text-align: center; position: relative;
        min-height: 480px; align-items: center;
    }
    .hero-slide::before {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        opacity: 0.75;
    }
    .hero-slide > .container { position: relative; z-index: 1; width: 100%; }
    .hero-slide.active { display: flex; }
    .hero-slide h1 { font-size: 44px; margin-bottom: 20px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    .hero-slide p { font-size: 20px; opacity: 0.95; max-width: 800px; margin: 0 auto 36px; }
    .slider-dots {
        position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
        display: flex; gap: 8px; z-index: 2;
    }
    .slider-dot {
        width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4);
        cursor: pointer; transition: all 0.3s;
    }
    .slider-dot.active { background: #fff; width: 28px; border-radius: 5px; }

    /* Metrics */
    .metrics-bar { background: #fff; padding: 30px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
    .metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
    .metric-item { padding: 16px; }
    .metric-item .num { font-size: 36px; font-weight: 800; color: var(--primary); display: block; }
    .metric-item .label { font-size: 14px; color: var(--text-gray); margin-top: 4px; }

    /* Section */
    .section { padding: 60px 0; }
    .section-title {
        font-size: 28px; font-weight: 700; color: var(--text-dark); text-align: center;
        margin-bottom: 40px; position: relative; padding-bottom: 16px;
    }
    .section-title::after {
        content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
        width: 60px; height: 4px; background: var(--primary); border-radius: 4px;
    }

    /* About */
    .about-section { background: #fff; }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
    .about-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
    .about-image-placeholder {
        width: 100%; height: 300px; background: var(--bg-light); border-radius: var(--radius);
        display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px;
    }
    .about-text h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
    .about-text p { font-size: 16px; color: var(--text-gray); line-height: 1.8; }

    /* Advantages */
    .advantages-section { background: var(--bg-light); }
    .advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
    .advantage-card {
        background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow);
        text-align: center; transition: transform 0.3s; border-top: 4px solid var(--primary);
    }
    .advantage-card:hover { transform: translateY(-4px); }
    .advantage-card .icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
    .advantage-card .icon i { font-size: 24px; color: var(--primary); }
    .advantage-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
    .advantage-card p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

    /* Products - 图片自适应 */
    .products-section { background: #fff; }
    .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
    .product-card {
        background: var(--bg-light); border-radius: var(--radius); overflow: hidden;
        border: 1px solid var(--border); transition: all 0.3s; display: flex; flex-direction: column;
    }
    .product-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
    .product-image-wrap {
        width: 100%; overflow: hidden; background: #f1f5f9;
        display: flex; align-items: center; justify-content: center;
    }
    .product-image-wrap img {
        width: 100%; height: auto; max-height: 280px; object-fit: contain; display: block;
    }
    .product-image-placeholder {
        width: 100%; height: 200px; background: #f1f5f9;
        display: flex; align-items: center; justify-content: center; color: var(--text-light);
    }
    .product-body { padding: 20px; }
    .product-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
    .product-body p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }

    /* Industry */
    .industry-section { background: var(--bg-light); }
    .industry-content { max-width: 900px; margin: 0 auto; text-align: center; }
    .industry-content p { font-size: 16px; color: var(--text-gray); line-height: 1.8; margin-bottom: 24px; }
    .industry-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
    .industry-tag {
        padding: 8px 20px; background: var(--primary-light); color: var(--primary);
        border-radius: 20px; font-size: 14px; font-weight: 500;
    }

    /* Other Cities - 其他城市切换 */
    .other-cities-section { background: var(--bg-light); }
    .cities-grid {
        display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 32px;
    }
    .city-link-card {
        background: #fff; padding: 20px 12px; border-radius: 10px; text-align: center;
        text-decoration: none; color: var(--text-dark); transition: all 0.3s;
        border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .city-link-card:hover {
        border-color: var(--primary); transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }
    .city-link-card .city-name { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
    .city-link-card .city-prov { font-size: 12px; color: var(--text-light); }
    .city-link-card i { color: var(--primary); font-size: 14px; margin-right: 4px; }
    .cities-more-btn {
        display: block; margin: 0 auto; padding: 12px 36px; background: var(--primary);
        color: #fff; border-radius: 8px; text-decoration: none; font-size: 15px;
        font-weight: 600; transition: all 0.3s; width: fit-content;
    }
    .cities-more-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

    /* FAQ */
    .faq-section { background: var(--bg-light); }
    .faq-list { max-width: 900px; margin: 0 auto; }
    .faq-item {
        background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }
    .faq-question {
        padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--text-dark);
        cursor: pointer; display: flex; justify-content: space-between; align-items: center;
        background: #fff; transition: background 0.3s;
    }
    .faq-question:hover { background: #f0f9ff; }
    .faq-question i { color: var(--primary); transition: transform 0.3s; font-size: 14px; }
    .faq-question.active i { transform: rotate(180deg); }
    .faq-answer { padding: 0 24px; font-size: 15px; color: var(--text-gray); line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; }
    .faq-answer.active { padding: 12px 24px 20px; max-height: 500px; }

    /* Contact */
    .contact-section { background: var(--primary); color: #fff; }
    .contact-section .section-title { color: #fff; }
    .contact-section .section-title::after { background: #fff; }
    .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
    .contact-card { background: rgba(255,255,255,0.1); padding: 30px; border-radius: var(--radius); backdrop-filter: blur(10px); }
    .contact-card i { font-size: 32px; margin-bottom: 12px; display: block; }
    .contact-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
    .contact-card p { font-size: 14px; opacity: 0.9; }

    /* Footer */
    footer { background: #1e293b; color: #94a3b8; padding: 40px 0; text-align: center; }
    footer p { font-size: 14px; margin-bottom: 8px; }
    .footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
    .footer-links a { color: #94a3b8; text-decoration: none; font-size: 13px; transition: color 0.3s; }
    .footer-links a:hover { color: var(--primary); }
    .footer-nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
    .footer-nav a { color: #cbd5e1; text-decoration: none; font-size: 14px; transition: color 0.3s; }
    .footer-nav a:hover { color: var(--primary); }

    /* Floating Customer Service */
    .cs-float {
        position: fixed; right: 20px; bottom: 60px; z-index: 9999;
        display: flex; flex-direction: column; gap: 10px;
    }
    .cs-float-item {
        position: relative; width: 52px; height: 52px;
        background: #fff; border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.3s;
        color: var(--primary); font-size: 22px; border: 1px solid #f0f0f0;
    }
    .cs-float-item:hover {
        background: var(--primary); color: #fff; transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40,144,255,0.3);
    }
    .cs-float-item .cs-tooltip {
        position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
        background: #1e293b; color: #fff; padding: 10px 16px;
        border-radius: 8px; font-size: 13px; white-space: nowrap;
        opacity: 0; pointer-events: none; transition: opacity 0.3s;
    }
    .cs-float-item:hover .cs-tooltip { opacity: 1; }
    .cs-float-item .cs-tooltip::after {
        content: ''; position: absolute; right: -6px; top: 50%;
        transform: translateY(-50%); border: 6px solid transparent;
        border-left-color: #1e293b;
    }
    .cs-float-item .cs-popup {
        position: absolute; right: 60px; bottom: 0;
        background: #fff; border-radius: 12px; padding: 16px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.15);
        opacity: 0; pointer-events: none; transition: opacity 0.3s;
        min-width: 160px; color: #333;
    }
    .cs-float-item:hover .cs-popup { opacity: 1; pointer-events: auto; }
    .cs-popup img { width: 140px; height: 140px; border-radius: 6px; display: block; margin: 0 auto; }
    .cs-popup .cs-popup-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--primary); text-align: center; }
    .cs-popup .cs-popup-text { font-size: 12px; color: #666; text-align: center; margin-top: 8px; line-height: 1.5; }

    /* City badge */
    .city-badge {
        display: inline-block; padding: 6px 18px; background: rgba(255,255,255,0.15);
        border-radius: 20px; font-size: 14px; margin-bottom: 20px;
        border: 1px solid rgba(255,255,255,0.2);
    }
    .city-badge i { margin-right: 6px; }

    /* Keyword tags in content */
    .keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
    .keyword-tag {
        padding: 6px 14px; background: var(--primary-light); color: var(--primary);
        border-radius: 16px; font-size: 13px; font-weight: 500;
    }

    /* Mobile Navigation */
    .mobile-nav {
        display: none; position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
        background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.1); z-index: 1001;
        flex-direction: column; padding: 60px 20px 20px; transition: right 0.3s;
    }
    .mobile-nav.open { right: 0; }
    .mobile-nav a {
        padding: 14px 16px; color: var(--text-dark); text-decoration: none;
        font-size: 15px; border-bottom: 1px solid var(--border); transition: all 0.3s;
    }
    .mobile-nav a:hover { color: var(--primary); background: var(--primary-light); padding-left: 24px; }
    .mobile-nav-close {
        position: absolute; top: 16px; right: 16px; background: none; border: none;
        font-size: 22px; color: var(--text-gray); cursor: pointer;
    }
    .nav-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.4); z-index: 1000;
    }
    .nav-overlay.show { display: block; }

    /* Responsive */
    @media (max-width: 1024px) {
        .cities-grid { grid-template-columns: repeat(4, 1fr); }
    }
    @media (max-width: 768px) {
        .main-nav, .header-contact { display: none; }
        .nav-toggle { display: block; }
        .mobile-nav { display: flex; }
        .hero { padding: 80px 0; min-height: 360px; }
        .hero-slide { padding: 80px 0; min-height: 360px; }
        .hero h1, .hero-slide h1 { font-size: 28px; }
        .hero p, .hero-slide p { font-size: 16px; }
        .about-grid { grid-template-columns: 1fr; }
        .section-title { font-size: 22px; }
        .container { padding: 0 16px; }
        .cities-grid { grid-template-columns: repeat(2, 1fr); }
        .cs-float { right: 10px; bottom: 20px; }
        .cs-float-item { width: 44px; height: 44px; font-size: 18px; }
        .cs-float-item .cs-popup, .cs-float-item .cs-tooltip { display: none; }
    }

    /* §58 city_page.html 二次精细化外迁style（前端页内联<style>块镜像，确保不加载pages.css时仍生效）*/
    .pg-city_page .cp-btns-mt24{ margin-top: 24px; }
    .pg-city_page .cp-tags-left{ justify-content: flex-start; }
    .pg-city_page .cp-icon-fs32{ font-size: 32px; }
    .pg-city_page .cp-custom-text{ max-width: 900px; margin: 0 auto; font-size: 16px; color: #475569; line-height: 1.8; }
    

/* ===== 城市版式轮换（body.cp-layout-standard|split|compact）=====
   同一批品牌内容，三种排布，避免所有城市页结构完全同构 */
.cp-layout-split .hero {
    text-align: left; padding: 96px 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 78%);
}
.cp-layout-split .hero-btns { justify-content: flex-start; }
.cp-layout-split .section-title { text-align: left; }
.cp-layout-split .section-title::after { left: 0; transform: none; }
.cp-layout-split .about-image { order: 2; }
.cp-layout-split .advantages-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.cp-layout-split .advantage-card { text-align: left; display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; align-items: start; }
.cp-layout-split .advantage-card .icon { grid-row: span 2; margin: 0; }
.cp-layout-split .products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cp-layout-split .product-body { padding: 14px; }
.cp-layout-split .product-body h3 { font-size: 15px; }

.cp-layout-compact .hero { min-height: 380px; padding: 72px 0; }
.cp-layout-compact .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-layout-compact .metric-item .num { font-size: 26px; }
.cp-layout-compact .section-title { font-size: 24px; margin-bottom: 28px; }
.cp-layout-compact .products-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.cp-layout-compact .product-card { flex-direction: row; align-items: stretch; }
.cp-layout-compact .product-image-wrap { width: 180px; flex: 0 0 180px; }
.cp-layout-compact .product-image-wrap img { height: 100%; max-height: none; }
.cp-layout-compact .product-body { display: flex; flex-direction: column; justify-content: center; }
.cp-layout-compact .advantages-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cp-layout-compact .advantage-card { padding: 22px; }

@media (max-width: 768px) {
    .cp-layout-compact .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-layout-split .advantage-card { display: block; text-align: center; }
    .cp-layout-split .advantage-card .icon { margin: 0 auto 16px; }
    .cp-layout-compact .product-card { flex-direction: column; }
    .cp-layout-compact .product-image-wrap { width: 100%; flex: none; }
}
