/* ========== 产品详情页样式 ========== */

.product-detail-page {
    padding: 100px 0 80px;
    background-color: var(--white);
    min-height: calc(100vh - 200px);
}

/* 返回链接样式 */
.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
}

/* 产品详情容器 */
.product-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 加载中样式 */
.loading,
.error {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-light);
}

.error {
    color: #e74c3c;
}

/* 产品详情头部 */
.product-detail-header {
    margin-bottom: 3rem;
    text-align: center;
}

.product-detail-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.product-detail-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    white-space: nowrap;
}

/* 产品详情主体 */
.product-detail-body {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* 产品大图 */
.product-detail-image {
    width: 100%;
    margin-bottom: 2rem;
}

.product-detail-image img,
.product-detail-image .placeholder-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-detail-image .product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-detail-image .placeholder-img.large {
    min-height: 500px;
    background-color: var(--bg-light);
}

/* 详情区块 */
.detail-section {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* 功能亮点 */
.detail-features {
    display: grid;
    gap: 2rem;
}

.detail-feature-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.detail-feature-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.detail-feature-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* 应用场景网格（2行3列） */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.application-item {
    text-align: center;
}

.application-image {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: #f5f7fa;
}

.application-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* 应用场景列表 */
.detail-applications {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-applications li {
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    position: relative;
    padding-left: 2.5rem;
}

.detail-applications li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 响应式设计 - 应用场景 */
@media screen and (max-width: 968px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
}

/* 技术参数表格 */
.detail-specifications {
    display: grid;
    gap: 1rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    align-items: center;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-light);
}

/* 联系方式区域 */
.detail-contact {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 喷墨固化系统选型表格 */
.curing-system-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.curing-system-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.curing-system-table th,
.curing-system-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.curing-system-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.curing-system-table tr:hover {
    background-color: var(--bg-light);
}

.curing-system-table tr:last-child td {
    border-bottom: none;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .product-detail-page {
        padding: 80px 0 60px;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .product-detail-intro {
        font-size: 1rem;
    }
    
    .detail-section-title {
        font-size: 1.5rem;
    }
    
    .spec-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .detail-applications {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image .placeholder-img.large {
        min-height: 300px;
    }
    
    /* 移动端表格适配 */
    .curing-system-table {
        font-size: 0.9rem;
    }
    
    .curing-system-table th,
    .curing-system-table td {
        padding: 0.8rem;
    }
}

/* ========== 图片预览弹窗样式 ========== */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.image-preview-modal.active {
    display: flex;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* 应用场景图片添加光标样式 */
.application-image img {
    cursor: zoom-in;
}