/* 主内容区样式 */
.product-detail-container {
    max-width: 1200px;
    margin: 50px auto;
}

.product-detail-top {
    display: flex;
    justify-content: space-between;
}

/* 返回按钮 */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #009b4c;
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
    transition: color 0.3s;
}

.product-detail-link {
    display: flex;
}

.other-link {
    display: inline-flex;
    align-items: center;
    color: #009b4c;
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
    transition: color 0.3s;
    margin-left: 15px;
    cursor: pointer;
}

.back-link:hover {
    color: #009b4c;
}

.other-link:hover {
    color: #009b4c;
}

.back-link i {
    margin-right: 8px;
}

.other-link i {
    margin-right: 3px;
}

/* 产品详情卡片 */
.product-detail-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    padding: 32px;
}

/* 产品图片 */
.product-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    padding: 32px;
}

.main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* 产品信息 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #ebf5fb;
    color: #009b4c;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 500;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.3;
}

/* 保留编辑器样式 */
.product-description ol {
    list-style: unset;
}
.product-description ul {
    list-style: unset;
}
.product-description ol li {
    list-style-type: decimal;
}
.product-description ul li {
    list-style-type: disc;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.product-manufacturer {
    display: flex;
    align-items: center;
    color: #666;
}

.product-manufacturer i {
    margin-right: 8px;
    color: #999;
}

/* 规格参数 */
/* 规格书 */
/* 相关产品 */
.specifications, .related-products, .specifications-pdf {
    padding: 32px;
    border-top: 1px solid #eee;
}

.spec-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 24px;
}

.spec-title::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 30px;
    height: 2px;
    background: #009b4c;
}

.products-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 24px;
}

.products-title::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 30px;
    height: 2px;
    background: #009b4c;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 3px;
}

.spec-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    margin-bottom: 8px;
}

.spec-key-en {
    flex: 0 0 160px;
    color: #999;
    font-weight: 500;
}

.spec-key {
    flex: 0 0 100px;
    color: #999;
    font-weight: 500;
}

.spec-value {
    flex: 1;
    color: #333;
}

/* 加载中样式 */
.loading {
    text-align: center;
    padding: 80px 0;
    color: #999;
}

.loading i {
    font-size: 48px;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 购买区域 */
.purchase-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #eee;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 16px;
}

.add-to-cart {
    padding: 12px 32px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 响应式样式 */
/*
@media (max-width: 992px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        padding: 24px;
    }

    .main-image {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .product-detail-content {
        padding: 24px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .purchase-section {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart {
        width: 100%;
        justify-content: center;
    }

    .product-title {
        font-size: 24px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .product-detail-content {
        padding: 16px;
    }

    .product-gallery {
        padding: 16px;
    }

    .specifications, .specifications-pdf, .related-products {
        padding: 24px 16px;
    }
}
*/

/* 无产品样式 */
.no-product {
    text-align: center;
    padding: 80px 0;
    color: #999;
}

.no-product i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

/* 相关产品 */
.products-product-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.products-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.products-product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 24px;
}

.products-product-info {
    padding: 16px;
}

.products-product-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.spec-pdf-item {
    min-width: 150px;
    max-width: 150px;
    min-height: 100px;
    max-height: 100px;
    text-align: center;
}

.spec-pdf-item a {
    color: #009b4c;
}

.spec-pdf-item a:hover {
    color: #009b4c;
}
