/* 产品详情页样式 */

/* 产品详情容器 */
.product-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

/* 产品详情部分 */
.product-detail-section {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
}

/* 面包屑导航 */
.product-breadcrumb {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.product-breadcrumb a:hover {
    color: #2980b9;
}

.product-breadcrumb i {
    margin: 0 8px;
    font-size: 12px;
    color: #999;
}

/* 产品主内容区 */
.product-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* 产品图片区 */
.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image-container {
    position: relative;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: #f9f9f9;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-main-image:hover {
    transform: scale(1.02);
}

.image-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* 产品信息区 */
.product-info {
    flex: 1;
    min-width: 300px;
}

.product-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 产品元信息 */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    align-items: center;
}

.product-code {
    color: #666;
}

.product-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 22px;
}

.in-stock {
    color: #2ecc71;
    background-color: #f0f9eb;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-meta i {
    margin-right: 5px;
}

/* 产品亮点 */
.product-highlights {
    margin: 25px 0;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    border-left: 3px solid #3498db;
    padding-left: 10px;
    font-weight: 500;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}

.highlight-list i {
    margin-right: 10px;
    color: #3498db;
    width: 18px;
    text-align: center;
}

.highlight-list strong {
    margin-right: 5px;
    font-weight: 500;
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* 产品描述 */
.product-description {
    margin-bottom: 30px;
}

.content-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.content-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

.content-body {
    line-height: 1.8;
    color: #555;
}

.feature-intro {
    font-weight: 500;
    color: #333;
    margin: 20px 0 10px;
}

.feature-intro i {
    color: #f39c12;
    margin-right: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
}

.feature-list i {
    color: #2ecc71;
    margin-right: 10px;
    margin-top: 3px;
}

/* 产品细节图 */
.product-detail-image {
    margin: 20px 0;
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.image-caption {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

/* 详细规格表 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.specs-table th, 
.specs-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 500;
}

.specs-table i {
    color: #3498db;
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* 下载区域 */
.downloads-container {
    margin-top: 15px;
}

.download-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.download-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #3498db;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.download-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 13px;
    margin: 8px 0;
}

.file-type {
    text-transform: uppercase;
}

.download-btn {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.download-btn:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #f1c40f;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-main-content {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .specs-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .download-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .download-meta {
        justify-content: center;
    }
}