/* =====================================================
   产品详情页公共样式
   适用于所有产品详情页（硅部件、碳化硅部件）
   路径: pages/products/assets/css/product-page.css
===================================================== */

/* ==================== 面包屑导航 ==================== */
.breadcrumb-nav {
    background: none;
    justify-content: flex-start;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 15px;
}

.breadcrumb-nav .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--dark);
}

.breadcrumb-nav .breadcrumb-item+.breadcrumb-item::before {
    color: var(--dark-light);
}

/* ==================== 产品详情区域 ==================== */
.product-detail-section {
    padding: 60px 0;
}

.product-detail-section.bg-light {
    background: var(--gray-lighter);
}

/* ==================== 产品标题栏 ==================== */
.product-header-bar {
    display: flex;
    align-items: center;
    height: 60px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.product-category {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    padding: 0 25px;
    background: #005BBB;
    border-right: 2px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.product-title-wrapper {
    color: #fff;
    display: flex;
    align-items: center;
    /* gap: 15px; */
    padding: 0 25px;
    background: linear-gradient(90deg, #005BBB 0%, #FFFFFF 100%);
    flex: 1;
    border-radius: 42px 0 0 42px;
}

.product-title-wrapper::before{
    content: '';
    position: relative;
    left: -16px;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.product-title-main {
    font-size: 24px;
    font-weight: 700;
}

.product-title-en {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    padding-left: 16px;
}

/* ==================== 产品详情布局 ==================== */
.product-detail-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-image-wrapper {
    width: 30%;
    flex-shrink: 0;
    display: block;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.product-image-wrapper img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    left: 26%;
    margin-top: 20px;
    width: 46%;
    height: 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    border-radius: 100%;
    filter: blur(2.5px);
}

.product-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 400px;
}

/* ==================== 视图切换标签 ==================== */
.view-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-tab-btn {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.view-tab-btn.active {
    background: var(--primary);
    color: #fff;
    padding: 8px 22px;
    border: 2px solid var(--primary);
    align-self: flex-start;
    border-radius: 30px;
}

.view-tab-btn:hover {
    background: rgba(0, 91, 187, 0.1);
}

.view-tab-btn.active:hover {
    background: var(--primary);
}

.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

/* ==================== 描述文本 ==================== */
.description-text {
    color: #333;
    font-size: 15px;
    line-height: 2;
    text-align: justify;
}

/* ==================== 详情区块标题 ==================== */
.detail-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0px;
    margin-top: 0px;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

/* ==================== 详细参数卡片左右排列（>= 1024px） ==================== */
#details.view-content.active {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px;
    align-items: stretch;
}
#details.view-content.active > .detail-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
#details.view-content.active > .detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 91, 187, 0.12);
    border-color: rgba(0, 91, 187, 0.3);
}
#details.view-content.active > .detail-card .detail-section-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
    border-left: none;
    padding-left: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
#details.view-content.active > .detail-card .process-list {
    margin-bottom: 0;
    padding-left: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    flex: 1;
    display: flex;
    flex-direction: column;
}
#details.view-content.active > .detail-card .process-list li {
    padding: 10px 0;
    list-style: none;
    position: relative;
    padding-left: 16px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px dashed #f0f0f0;
    flex: 1;
    display: flex;
    align-items: center;
}
#details.view-content.active > .detail-card .process-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
#details.view-content.active > .detail-card .process-list li:last-child {
    border-bottom: none;
}

/* ==================== 规格网格 ==================== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.spec-label {
    font-weight: 600;
    color: #666;
    margin-right: 8px;
}

/* ==================== 工艺参数列表 ==================== */
.process-list {
    padding-left: 20px;
    margin-bottom: 40px;
}

.process-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.process-list li:last-child {
    border-bottom: none;
}

/* ==================== CTA 区域 ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    text-align: center;
    color: #fff;
    margin-top: 40px;
}

.cta-section h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-cta {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
}

.cta-section .btn-cta:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    /* 详细参数恢复上下排列 */
    #details.view-content.active {
        display: block;
    }
    #details.view-content.active > .detail-card {
        margin-bottom: 20px;
    }
    #details.view-content.active > .detail-card:last-child {
        margin-bottom: 0;
    }
    #details.view-content.active > .detail-card {
        padding: 20px 22px;
    }
}

@media (max-width: 767px) {
    .product-detail-section {
        padding: 30px 0;
    }

    .product-detail-row {
        flex-direction: column;
        gap: 20px;
    }

    .product-image-wrapper {
        width: 100%;
    }

    .product-content {
        width: 100%;
    }

    .product-header-bar {
        flex-direction: column;
        height: auto;
    }

    .product-category {
        width: 100%;
        text-align: center;
        border-right: none;
        border-bottom: 2px solid rgba(255,255,255,0.3);
        padding: 12px 25px;
        font-size: 18px;
    }

    .product-title-wrapper {
        width: 100%;
        /* flex-direction: column; */
        align-items: center;
        gap: 5px;
        padding: 12px 25px;
        border-radius: 52px 0 0 52px;
    }

    .product-title-wrapper::before{
        content: '';
        position: relative;
        left: -16px;
        border: 2px solid #fff;
        border-radius: 50%;
        width: 40px;
        height: 40px;
    }

    .product-title-main {
        font-size: 18px;
    }

    .product-title-en {
        font-size: 14px;
    }

    .view-tabs {
        flex-wrap: wrap;
    }

    .view-tab-btn {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h3 {
        font-size: 20px;
    }
}
