/* 智慧化工园解决方案专属样式 */

/* Hero 区域 */
.cp-hero {
    height: 400px;
    padding: 0;
    display: flex;
    align-items: center;
    background: url('../static/chemical-park/智慧化工园解决方案.png') center center / cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cp-hero .container {
    position: relative;
    z-index: 1;
    text-align: left;
}

.cp-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    line-height: 1.2;
}

.cp-hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.cp-hero-desc {
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0 0 28px;
    max-width: 700px;
}

.cp-hero-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cp-hero-tags span {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
}

/* 通用区块 */
.cp-section {
    padding: 60px 0;
    background: #F9FAFB;
}

.cp-section-gray {
    background: #fff;
}

.cp-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 auto 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid #176BF8;
    display: block;
    text-align: center;
    width: fit-content;
}

.cp-section-title-light {
    color: #fff;
    border-bottom-color: #fff;
}

/* 解决方案特性卡片 */
.cp-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cp-feature-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.cp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(23, 107, 248, 0.12);
    border-color: #176BF8;
}

.cp-feature-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-feature-icon img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.cp-feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cp-feature-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* 产品介绍 */
.cp-intro-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.cp-intro-img {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-intro-img img {
    width: 100%;
    height: auto;
}

.cp-intro-card {
    flex: 1;
    padding: 36px 40px;
    background: #F5F8FC;
    border-left: 4px solid #005BAC;
    border-radius: 0;
}

.cp-intro-card p {
    font-size: 16px;
    color: #333;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

/* 行业痛点 */
.cp-pain-section {
    padding: 60px 0;
    background: url('../static/chemical-park/行业痛点.png') center center / cover no-repeat;
    position: relative;
}

.cp-pain-section .container {
    position: relative;
    z-index: 1;
}

.cp-pain-section .cp-section-title {
    color: #fff;
    border-bottom-color: #fff;
}

.cp-pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cp-pain-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cp-pain-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(23, 107, 248, 0.2);
    border-color: #176BF8;
}

.pain-num {
    width: 56px;
    height: 56px;
    font-size: 22px;
    font-weight: 700;
    color: #024ECC;
    line-height: 56px;
    text-align: center;
    flex-shrink: 0;
    background: url('../static/chemical-park/数字圈.png') no-repeat center/contain;
}

.pain-content p {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

/* 核心功能 */
.cp-core-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cp-core-item {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.cp-core-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(23, 107, 248, 0.12);
    border-color: #176BF8;
}

.cp-core-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EAF2FF;
    border-radius: 20px;
}

.cp-core-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.cp-core-item h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.cp-core-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* 产品核心优势 */
.cp-advantage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cp-advantage-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #e8edf2;
}

.cp-advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(23, 107, 248, 0.12);
    border-color: #176BF8;
}

.cp-advantage-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #005BAC;
    margin-bottom: 12px;
}

.cp-advantage-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* 应用价值 */
.cp-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cp-value-card {
    text-align: center;
    transition: all 0.3s ease;
}

.cp-value-card:hover {
    transform: translateY(-4px);
}

.cp-value-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: block;
    object-fit: contain;
}

.cp-value-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.cp-value-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* CTA */
.cp-cta {
    padding: 80px 0;
    background: url('../static/chemical-park/免费咨询方案.png') center center / cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cp-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cp-cta-content h3 {
    font-size: clamp(15px, 4vw, 28px);
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    line-height: 1.8;
}

.cp-cta-btn {
    display: inline-block;
    padding: 16px 56px;
    background: #fff;
    color: #005BAC;
    text-decoration: none;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cp-cta-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Tab 切换 */
.cp-tabs-section {
    background: #fff;
    padding: 16px 0;
    margin-top: -1px;
}

.cp-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    border-bottom: none;
}

.cp-tabs .nav-item {
    margin: 0;
}

.cp-tabs .nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    padding: 12px 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cp-tabs .nav-link:hover {
    color: #005BAC;
    background: #f0f5ff;
}

.cp-tabs .nav-link.active {
    color: #fff;
    background: #005BAC;
}

.tab-content {
    background: #fff;
}

/* 响应式 */
@media (max-width: 992px) {
    .cp-feature-cards,
    .cp-value-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cp-core-features,
    .cp-advantage-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cp-pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-hero-title {
        font-size: 32px;
    }

    .cp-intro-wrapper {
        flex-direction: column;
    }

    .cp-intro-img {
        flex: none;
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .cp-section,
    .cp-pain-section,
    .cp-cta {
        padding: 40px 0;
    }

    .cp-feature-cards,
    .cp-core-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cp-pain-grid,
    .cp-advantage-grid,
    .cp-value-grid {
        grid-template-columns: 1fr;
    }

    .cp-advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cp-advantage-card {
        padding: 20px 16px;
    }

    .cp-feature-card {
        padding: 20px 12px;
    }

    .cp-feature-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }

    .cp-feature-icon img {
        width: 64px;
        height: 64px;
    }

    .cp-feature-card h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .cp-feature-card p {
        font-size: 13px;
    }

    .cp-core-item {
        padding: 20px 12px;
    }

    .cp-core-item h5 {
        font-size: 15px;
    }

    .cp-core-item p {
        font-size: 12px;
    }

    .cp-hero {
        height: 240px;
        padding: 0;
    }

    .cp-hero-title {
        font-size: 26px;
    }

    .cp-hero-subtitle {
        font-size: 18px;
    }

    .cp-section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .cp-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
        gap: 8px;
    }

    .cp-tabs::-webkit-scrollbar {
        display: none;
    }

    .cp-tabs .nav-link {
        font-size: 14px;
        padding: 10px 20px;
        white-space: nowrap;
        border-radius: 6px;
    }
}

/* 化工园区全域封闭化管理平台页行列适配 */
.cp-core-features.cp-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cp-advantage-grid.cp-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .cp-core-features.cp-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cp-advantage-grid.cp-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cp-core-features.cp-col-3 {
        grid-template-columns: 1fr;
    }

    .cp-advantage-grid.cp-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
