/* ===== 产品详情页样式 ===== */

/* 产品面包屑导航 */
.product-breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

.product-breadcrumb a {
    color: var(--text-secondary, #6b7280);
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: var(--primary, #2563eb);
}

.product-breadcrumb .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.product-breadcrumb .current {
    color: var(--text-primary, #111827);
    font-weight: 500;
}

/* 产品详情头部 */
.product-detail-hero {
    padding: 3rem 0 2rem;
}

.product-detail-hero .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-hero .detail-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-detail-hero .detail-text .product-model {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-detail-hero .detail-text .product-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
}

.product-detail-hero .detail-text .product-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary, #4b5563);
    margin-bottom: 1.5rem;
}

.product-detail-hero .detail-images {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.product-detail-hero .detail-images img {
    width: 100%;
    height: auto;
    display: block;
}

/* 产品参数表格 */
.product-params-section {
    padding: 2rem 0;
}

.product-params-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-params-section .section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary, #2563eb);
    border-radius: 2px;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.param-table thead th {
    background: rgba(37, 99, 235, 0.06);
    color: var(--text-primary, #111827);
    font-weight: 600;
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(37, 99, 235, 0.15);
}

.param-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-secondary, #4b5563);
    vertical-align: top;
}

.param-table tbody td:first-child {
    font-weight: 500;
    color: var(--text-primary, #111827);
    white-space: nowrap;
    width: 200px;
}

.param-table tbody tr:last-child td {
    border-bottom: none;
}

.param-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

/* 应用场景 */
.product-application {
    padding: 2rem 0;
}

.product-application .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-application .section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary, #2563eb);
    border-radius: 2px;
}

.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.app-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.app-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
    transform: translateY(-1px);
}

.app-card .app-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.app-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 0.375rem;
}

.app-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
}

/* 产品优势 */
.product-advantages {
    padding: 2rem 0;
}

.product-advantages .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-advantages .section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary, #2563eb);
    border-radius: 2px;
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.advantage-list-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    transition: all 0.2s;
}

.advantage-list-item:hover {
    border-color: rgba(37, 99, 235, 0.15);
}

.advantage-list-item .adv-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-weight: 700;
    font-size: 0.875rem;
}

.advantage-list-item .adv-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 0.25rem;
}

.advantage-list-item .adv-content p {
    font-size: 0.8125rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
}

/* 相关产品推荐 */
.related-products {
    padding: 2rem 0 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.related-products .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-products .section-title::before {
    content: '';
    width: 4px;
    height: 1.25rem;
    background: var(--primary, #2563eb);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.related-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-card .related-info {
    padding: 1rem;
}

.related-card .related-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #111827);
    margin-bottom: 0.25rem;
}

.related-card .related-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.4;
}

.related-card .related-info .view-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--primary, #2563eb);
    font-weight: 500;
}

/* 产品CTA区域 */
.product-cta {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 12px;
    padding: 2rem;
    color: #fff;
    text-align: center;
    margin: 2rem 0;
}

.product-cta h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-cta p {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.product-cta .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.product-cta .btn {
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.product-cta .btn-white {
    background: #fff;
    color: #1e40af;
}

.product-cta .btn-white:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
}

.product-cta .btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.product-cta .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 响应式 */
@media (max-width: 768px) {
    .product-detail-hero .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-hero .detail-text h1 {
        font-size: 1.5rem;
    }

    .param-table {
        display: block;
        overflow-x: auto;
    }

    .param-table tbody td:first-child {
        white-space: nowrap;
        width: 140px;
    }

    .app-cards,
    .advantage-list,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-detail-hero {
        padding: 2rem 0 1rem;
    }

    .product-cta .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .product-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}
