/* ===== 解决方案详情页专用样式 ===== */

/* 静态 Banner */
.page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 250px;
    background-image: url('/assets/home/images/solution-detail-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 142, 79, 0.8) 0%, rgba(0, 142, 79, 0.4) 100%);
}

.page-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner h1 span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #008e4f;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.breadcrumb .current {
    color: #008e4f;
    font-weight: 500;
}

/* ===== 主体内容区域 - 左右布局 ===== */
.solution-detail-page {
    max-width: 1400px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
}

/* ===== 左侧联系方式卡片 ===== */
.solution-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.contact-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 100px;
}

.contact-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-card__icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 142, 79, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-card__icon i {
    font-size: 2.5rem;
    color: #008e4f;
}

.contact-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.contact-card__subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.contact-card__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 1.5rem 0;
}

.contact-card__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    text-align: left;      /* 添加：强制左对齐 */
}

.contact-card__item-icon {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008e4f;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.contact-card__item-content {
    flex: 1;
    text-align: left;      /* 添加：强制左对齐 */
}

.contact-card__item-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    text-align: left;      /* 添加：强制左对齐 */
}

.contact-card__item-value {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;      /* 添加：强制左对齐 */
}

.contact-card__item-value a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-card__item-value a:hover {
    color: #008e4f;
}

.contact-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #008e4f;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 1rem;
    border: none;
    width: 100%;
    cursor: pointer;
}

.contact-card__btn:hover {
    background: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.2);
}

.contact-card__btn i {
    font-size: 1.1rem;
}

/* ===== 右侧解决方案详情 ===== */
.solution-main {
    flex: 1;
}

.solution-content {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* 方案头部 */
.solution-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.solution-category {
    display: inline-block;
    background: rgba(0, 142, 79, 0.1);
    color: #008e4f;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.solution-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.solution-meta {
    display: flex;
    gap: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.solution-meta i {
    color: #008e4f;
    margin-right: 0.3rem;
}

/* 方案概述 */
.solution-overview {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.solution-overview__image {
    width: 200px;
    height: 150px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.solution-overview__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.solution-overview__content {
    flex: 1;
}

.solution-overview__content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.solution-overview__content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.solution-overview__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.solution-overview__feature {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.solution-overview__feature i {
    color: #008e4f;
    font-size: 0.8rem;
}

/* 章节通用样式 */
.solution-section {
    margin-bottom: 2.5rem;
}

.solution-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.solution-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #008e4f;
    border-radius: 2px;
}

.solution-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #334155;
    margin: 1.5rem 0 0.8rem;
}

.solution-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.solution-section ul,
.solution-section ol {
    padding-left: 1.5rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.solution-section li {
    margin-bottom: 0.5rem;
}

.solution-section li strong {
    color: #008e4f;
}

/* 技术参数表格 */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.specs-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.specs-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.specs-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
}

/* 应用案例卡片 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.case-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.case-card:hover {
    border-color: #008e4f;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.case-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.case-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.case-card__link {
    color: #008e4f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.case-card__link i {
    transition: transform 0.2s;
}

.case-card__link:hover i {
    transform: translateX(3px);
}

/* 相关产品 */
.related-products {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.related-products h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.2rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-product-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.2s;
    text-decoration: none;
}

.related-product-item:hover {
    border-color: #008e4f;
    transform: translateY(-2px);
}

.related-product-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.related-product-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

/* 文档下载 */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.download-item:hover {
    border-color: #008e4f;
    background: white;
}

.download-item i {
    color: #008e4f;
    font-size: 1.2rem;
}

.download-info {
    flex: 1;
}

.download-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.download-meta {
    font-size: 0.8rem;
    color: #94a3b8;
}

.download-link {
    color: #008e4f;
    padding: 0.3rem 0.8rem;
    border: 1px solid #008e4f;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.download-link:hover {
    background: #008e4f;
    color: white;
}

/* 分享按钮 */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.share-label {
    font-size: 0.9rem;
    color: #64748b;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #008e4f;
    border-color: #008e4f;
    color: white;
    transform: translateY(-2px);
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .solution-detail-page {
        flex-direction: column;
    }

    .solution-sidebar {
        width: 100%;
    }

    .contact-card {
        position: static;
        top: auto;
        max-width: 500px;
        margin: 0 auto 2rem;
    }

    .solution-overview {
        flex-direction: column;
    }

    .solution-overview__image {
        width: 100%;
        height: 200px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 180px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .solution-content {
        padding: 1.5rem;
    }

    .solution-title {
        font-size: 1.8rem;
    }

    .solution-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .solution-detail-page {
        padding: 0 1rem;
    }

    .solution-content {
        padding: 1.2rem;
    }

    .solution-overview__features {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 相关解决方案样式 */
.related-solutions {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-top: 30px;
}

.related-solutions__title {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #008e4f;
}

.related-solutions__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-solution-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.related-solution-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,142,79,0.15);
}

.related-solution-item__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.related-solution-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-solution-item__content {
    flex: 1;
}

.related-solution-item__title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.3s ease;
}

.related-solution-item:hover .related-solution-item__title {
    color: #008e4f;
}

.related-solution-item__meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
}

.related-solution-item__meta i {
    margin-right: 3px;
    color: #008e4f;
}

/* 主色调应用到其他元素 */
.solution-meta i {
    color: #008e4f;
}

.solution-overview__content h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}

.solution-overview__content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #008e4f;
}

.solution-section h2,
.solution-section h3 {
    color: #333;
}

.solution-section h2 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.solution-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #008e4f;
}

.solution-section ul li::before {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: #008e4f;
    margin-right: 8px;
    font-size: 12px;
}

.share-btn:hover {
    background: #008e4f;
    color: #fff;
}