/* Product Detail Styles */
.product-detail-main.detail {
    padding: 2rem 0;
    background-color: #f8f9fa;
    min-height: 80vh;
    margin-top: 0px;
}

.container.detail {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb */
.breadcrumb.detail {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e5e9;
    margin-top: 50px;
}

.breadcrumb.detail ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb.detail li {
    color: #6c757d;
}

.breadcrumb.detail li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #dee2e6;
}

.breadcrumb.detail a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb.detail a:hover {
    color: #0056b3;
}

/* Product Detail Content */
.product-detail-content.detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Product Gallery */
.product-gallery.detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image.detail {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image.detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image.detail img:hover {
    transform: scale(1.05);
}

.thumbnail-gallery.detail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    justify-content: center;
}

.thumbnail.detail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail.detail.active {
    border-color: #007bff;
}

.thumbnail.detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.detail:hover {
    border-color: #007bff;
    transform: scale(1.05);
}


/* Product Info */
.product-info.detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header.detail {
    border-bottom: 1px solid #e1e5e9;
    padding-bottom: 1rem;
}

.product-title.detail {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-meta.detail {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-category.detail,
.product-subcategory.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.product-category.detail i {
    color: #007bff;
}

.product-rating.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stars.detail {
    display: flex;
    gap: 0.25rem;
}

.stars.detail i {
    color: #dee2e6;
    font-size: 1.1rem;
}

.stars.detail i.filled {
    color: #ffc107;
}

.rating-text.detail {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 更新价格区域样式，让购物车功能在同一行 */
.product-price.detail {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price.detail {
    font-size: 1.5em;
    color: #e53935;
    font-weight: 600;
}

/* 购物车操作区域样式调整 */
.product-cart-actions.detail {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quantity-selector.detail {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-selector.detail label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.quantity-controls.detail {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn.detail {
    background: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.qty-btn.detail:hover {
    background: #e9ecef;
}

.qty-btn.detail:active {
    background: #dee2e6;
}

#product-quantity.detail {
    border: none;
    padding: 8px 12px;
    width: 60px;
    text-align: center;
    font-weight: 600;
}

.cart-buttons.detail {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-to-cart-btn.detail {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.add-to-cart-btn.detail:hover {
    background: #0056b3;
}

.wishlist-btn.detail {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.wishlist-btn.detail:hover {
    background: #007bff;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-price.detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product-cart-actions.detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-buttons.detail {
        flex-direction: column;
        width: 100%;
    }
    
    .add-to-cart-btn.detail, 
    .wishlist-btn.detail {
        width: 100%;
        justify-content: center;
    }
    
    .quantity-selector.detail {
        flex-direction: column;
        align-items: flex-start;
    }
}

.product-description.detail {
    line-height: 1.6;
    color: #495057;
}

.product-tags.detail {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag.detail {
    padding: 0.5rem 1rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Product Actions */
.product-actions.detail {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn.detail {
    padding: 20px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

.btn-primary.detail {
    background: #007bff;
    color: white;
}

.btn-primary.detail:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-outline.detail {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline.detail:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Product Specs Summary */
.product-specs-summary.detail {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.product-specs-summary.detail h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.specs-grid.detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item.detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.spec-label.detail {
    font-weight: 600;
    color: #495057;
}

.spec-value.detail {
    color: #6c757d;
}

/* 移动端响应式样式 - 基于现有样式优化 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .product-detail-content.detail {
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .main-image.detail {
        height: 500px;
    }
    
    .product-title.detail {
        font-size: 1.8rem;
    }
    
    .price.detail {
        font-size: 1.3em;
    }
    
    .specs-grid.detail {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动设备 (最大 768px) */
@media (max-width: 768px) {
    .product-detail-content.detail {
        display: block;
        gap: 1.5rem;
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    /* 产品画廊移动端优化 */
    .product-gallery.detail {
        margin-bottom: 2rem;
    }
    
    .main-image.detail {
        height: 300px;
        border-radius: 8px;
    }
    
    .thumbnail-gallery.detail {
        justify-content: flex-start;
        padding: 0.5rem 0;
        gap: 0.75rem;
    }
    
    .thumbnail.detail {
        width: 70px;
        height: 70px;
        border-radius: 6px;
    }
    
    /* 产品信息移动端优化 */
    .product-info.detail {
        gap: 1.25rem;
    }
    
    .product-header.detail {
        padding-bottom: 0.75rem;
    }
    
    .product-title.detail {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .product-meta.detail {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .product-category.detail,
    .product-subcategory.detail {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .product-rating.detail {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .stars.detail i {
        font-size: 1rem;
    }
    
    .rating-text.detail {
        font-size: 0.85rem;
    }
    
    /* 价格和购物车区域移动端优化 */
    .product-price.detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .price.detail {
        font-size: 1.4em;
        margin-bottom: 0.5rem;
    }
    
    .product-cart-actions.detail {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    
    .quantity-selector.detail {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    .quantity-selector.detail label {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .quantity-controls.detail {
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .qty-btn.detail {
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #product-quantity.detail {
        width: 50px;
        height: 40px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
    
    .cart-buttons.detail {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .add-to-cart-btn.detail,
    .wishlist-btn.detail {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        justify-content: center;
        border-radius: 8px;
    }
    
    .add-to-cart-btn.detail {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        font-weight: 600;
    }
    
    .wishlist-btn.detail {
        border-width: 1px;
        font-weight: 500;
    }
    
    /* 产品描述移动端优化 */
    .product-description.detail {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    /* 标签移动端优化 */
    .product-tags.detail {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }
    
    .tag.detail {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    /* 产品操作按钮移动端优化 */
    .product-actions.detail {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .btn.detail {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 8px;
        justify-content: center;
        min-height: 48px;
    }
    
    .btn-primary.detail {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    }
    
    .btn-outline.detail {
        border-width: 1px;
    }
    
    /* 规格摘要移动端优化 */
    .product-specs-summary.detail {
        padding: 1.25rem;
        margin-top: 0;
        border-radius: 8px;
    }
    
    .product-specs-summary.detail h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .specs-grid.detail {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .spec-item.detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .spec-item.detail:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .spec-label.detail {
        font-size: 0.85rem;
        font-weight: 600;
        color: #6c757d;
    }
    
    .spec-value.detail {
        font-size: 0.9rem;
        font-weight: 500;
        color: #2c3e50;
    }
}

/* 小屏移动设备 (最大 480px) */
@media (max-width: 480px) {
    .product-detail-content.detail {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .main-image.detail {
        height: 250px;
    }
    
    .thumbnail.detail {
        width: 60px;
        height: 60px;
    }
    
    .product-title.detail {
        font-size: 1.3rem;
        line-height: 1.25;
    }
    
    .product-category.detail,
    .product-subcategory.detail {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .price.detail {
        font-size: 1.2em;
    }
    
    .quantity-selector.detail {
        padding: 0.6rem;
    }
    
    .qty-btn.detail {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    #product-quantity.detail {
        width: 45px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    .add-to-cart-btn.detail,
    .wishlist-btn.detail,
    .btn.detail {
        padding: 12px 16px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .product-description.detail {
        font-size: 0.85rem;
    }
    
    .tag.detail {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .product-specs-summary.detail {
        padding: 1rem;
    }
    
    .spec-item.detail {
        padding: 0.6rem 0;
    }
    
    .spec-label.detail,
    .spec-value.detail {
        font-size: 0.8rem;
    }
}

/* 超小屏设备 (最大 360px) */
@media (max-width: 360px) {
    .product-detail-content.detail {
        padding: 0.5rem;
    }
    
    .main-image.detail {
        height: 200px;
    }
    
    .thumbnail.detail {
        width: 50px;
        height: 50px;
    }
    
    .product-title.detail {
        font-size: 1.2rem;
    }
    
    .price.detail {
        font-size: 1.1em;
    }
    
    .quantity-selector.detail {
        padding: 0.5rem;
    }
    
    .qty-btn.detail {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    #product-quantity.detail {
        width: 40px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .add-to-cart-btn.detail,
    .wishlist-btn.detail,
    .btn.detail {
        padding: 10px 14px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .product-description.detail {
        font-size: 0.8rem;
    }
    
    .tag.detail {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .product-specs-summary.detail {
        padding: 0.75rem;
    }
    
    .product-specs-summary.detail h3 {
        font-size: 1rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .product-detail-content.detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .main-image.detail {
        height: 250px;
    }
    
    .thumbnail-gallery.detail {
        flex-direction: column;
        height: 150px;
        overflow-y: auto;
        justify-content: flex-start;
    }
    
    .thumbnail.detail {
        width: 60px;
        height: 60px;
    }
    
    .product-info.detail {
        gap: 1rem;
    }
    
    .product-title.detail {
        font-size: 1.3rem;
    }
    
    .product-price.detail {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .product-cart-actions.detail {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cart-buttons.detail {
        flex-direction: row;
    }
    
    .add-to-cart-btn.detail,
    .wishlist-btn.detail {
        flex: 1;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {
    .product-detail-content.detail {
        max-width: 1400px;
        margin: 0 auto 3rem;
    }
    
    .main-image.detail {
        height: 700px;
    }
    
    .product-title.detail {
        font-size: 2.2rem;
    }
    
    .price.detail {
        font-size: 1.6em;
    }
    
    .specs-grid.detail {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .thumbnail.detail:hover {
        transform: none;
        border-color: #007bff;
    }
    
    .main-image.detail img:hover {
        transform: none;
    }
    
    .btn.detail:hover {
        transform: none;
    }
    
    .add-to-cart-btn.detail:hover,
    .wishlist-btn.detail:hover {
        transform: none;
    }
    
    /* 增加触摸目标大小 */
    .qty-btn.detail {
        min-width: 44px;
        min-height: 44px;
    }
    
    .thumbnail.detail {
        min-width: 60px;
        min-height: 60px;
    }
}

/* 打印样式 */
@media print {
    .product-detail-content.detail {
        display: block;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .product-gallery.detail {
        margin-bottom: 1rem;
    }
    
    .main-image.detail {
        height: 300px;
    }
    
    .thumbnail-gallery.detail {
        display: none;
    }
    
    .product-cart-actions.detail,
    .product-actions.detail {
        display: none;
    }
    
    .product-specs-summary.detail {
        background: #f8f9fa;
        border: 1px solid #ddd;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .product-detail-content.detail {
        background: #1a1a1a;
        color: #e9ecef;
    }
    
    .product-title.detail {
        color: #e9ecef;
    }
    
    .product-category.detail,
    .product-subcategory.detail {
        background: #2d2d2d;
        color: #adb5bd;
    }
    
    .product-specs-summary.detail {
        background: #2d2d2d;
        border: 1px solid #495057;
    }
    
    .spec-item.detail {
        border-bottom-color: #495057;
    }
    
    .spec-label.detail {
        color: #adb5bd;
    }
    
    .spec-value.detail {
        color: #e9ecef;
    }
}

/* Product Tabs */
.product-tabs.detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    overflow: hidden;
}

.tab-navigation.detail {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.tab-btn.detail {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.detail:hover {
    color: #007bff;
    background: #e9ecef;
}

.tab-btn.detail.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: white;
}

.tab-content.detail {
    padding: 2rem;
}

.tab-panel.detail {
    display: none;
}

.tab-panel.detail.active {
    display: block;
}

.tab-panel.detail h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* Specifications Table */
.specifications-table.detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-row.detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    align-items: center;
}

.spec-name.detail {
    font-weight: 600;
    color: #495057;
}

.spec-value.detail {
    color: #6c757d;
}

/* Features List */
.features-list.detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.feature-item.detail i {
    color: #28a745;
    font-size: 1.1rem;
}

/* Installation Steps */
.installation-content.detail {
    line-height: 1.6;
    color: #495057;
}

.installation-steps.detail {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step.detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number.detail {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content.detail h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.step-content.detail p {
    margin: 0;
    color: #6c757d;
}

/* Warranty Details */
.warranty-content.detail {
    line-height: 1.6;
    color: #495057;
}

.warranty-details.detail {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.warranty-item.detail {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.warranty-item.detail h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.warranty-item.detail p {
    margin: 0;
    color: #6c757d;
}

/* Related Products */
.related-products.detail {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

/* Related Products 标题样式 */
.related-products.detail h3 {
    margin: 0 0 2rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

/* 添加标题下划线装饰 */
.related-products.detail h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* 或者使用更简洁的标题样式 */
.related-products.detail h3 {
    margin: 0 0 2rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* 标题装饰线 */
.related-products.detail h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #007bff;
    border-radius: 1px;
}

/* 悬停效果 */
.related-products.detail h3:hover::after {
    background: #0056b3;
    width: 100px;
    transition: all 0.3s ease;
}

.related-products-grid.detail {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 固定4列 */
    gap: 2rem;
}

.related-product-card.detail {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.related-product-card.detail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.related-product-image.detail {
    width: 100%;
    height: auto;;
    overflow: hidden;
    position: relative;
}

.related-product-image.detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card.detail:hover .related-product-image.detail img {
    transform: scale(1.1);
}

.related-product-info.detail {
    padding: 1.5rem;
}

.related-product-info.detail h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    /* 限制标题长度 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
}

.related-product-meta.detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.related-product-category.detail {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.related-product-price.detail {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.related-product-actions.detail {
    display: flex;
    gap: 0.5rem;
}

.related-product-actions.detail .btn.detail {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .related-products-grid.detail {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .related-products-grid.detail {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .related-products.detail {
        padding: 1.5rem;
    }
    
    .related-products.detail h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .related-products-grid.detail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-products.detail {
        padding: 1rem;
    }
    
    .related-products.detail h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}


/* 产品规格摘要 */
.product-specs-summary.detail {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.product-specs-summary.detail h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

/* 标题下划线装饰 */
.product-specs-summary.detail h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 1px;
}

/* 规格网格 */
.specs-grid.detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* 规格项目 */
.spec-item.detail {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.spec-item.detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #0056b3);
    border-radius: 0 2px 2px 0;
}

.spec-item.detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

/* 规格标签 */
.spec-label.detail {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* 规格值 */
.spec-value.detail {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .specs-grid.detail {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .product-specs-summary.detail {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .spec-item.detail {
        padding: 0.75rem;
    }
    
    .product-specs-summary.detail h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .product-specs-summary.detail {
        padding: 0.75rem;
        margin-top: 1rem;
    }
    
    .spec-item.detail {
        padding: 0.5rem;
    }
    
    .spec-label.detail {
        font-size: 0.8rem;
    }
    
    .spec-value.detail {
        font-size: 0.9rem;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .product-specs-summary.detail {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .spec-item.detail {
        background: #34495e;
        border-color: #4a5568;
    }
    
    .spec-label.detail {
        color: #a0aec0;
    }
    
    .spec-value.detail {
        color: #e2e8f0;
    }
    
    .product-specs-summary.detail h3 {
        color: #e2e8f0;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .product-specs-summary.detail {
        border-width: 2px;
        border-color: #000;
    }
    
    .spec-item.detail {
        border-width: 2px;
        border-color: #000;
    }
    
    .spec-item.detail::before {
        width: 6px;
        background: #000;
    }
}

/* 打印样式 */
@media print {
    .product-specs-summary.detail {
        background: white;
        border: 2px solid #000;
        break-inside: avoid;
    }
    
    .spec-item.detail {
        background: white;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .spec-item.detail::before {
        background: #000;
    }
}

/* 产品标签页容器 */
.product-tabs.detail {
    margin-top: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* 标签导航 */
.tab-navigation.detail {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

/* 标签按钮 */
.tab-btn.detail {
    flex: 1;
    padding: 1.25rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 标签按钮悬停效果 */
.tab-btn.detail:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

/* 活动标签按钮 */
.tab-btn.detail.active {
    color: #007bff;
    background: white;
    font-weight: 700;
    position: relative;
}

/* 活动标签底部指示器 */
.tab-btn.detail.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px 3px 0 0;
}

/* 标签按钮图标 */
.tab-btn.detail i {
    font-size: 1rem;
    opacity: 0.8;
}

.tab-btn.detail.active i {
    opacity: 1;
    color: #007bff;
}

/* 标签内容区域 */
.tab-content.detail {
    padding: 2rem;
    background: white;
    min-height: 400px;
}

/* 标签面板 */
.tab-panel.detail {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.detail.active {
    display: block;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标签面板标题 */
.tab-panel.detail h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.tab-panel.detail h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 1px;
}

/* 规格表格 */
.specifications-table.detail {
    display: grid;
    gap: 1rem;
}

.spec-row.detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    transition: all 0.2s ease;
}

.spec-row.detail:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.spec-name.detail {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value.detail {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

/* 特性列表 */
.features-list.detail {
    display: grid;
    gap: 1rem;
}

.feature-item.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    transition: all 0.2s ease;
}

.feature-item.detail:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.feature-item.detail i {
    color: #28a745;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.feature-item.detail span {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

/* 安装步骤 */
.installation-content.detail p {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.installation-steps.detail {
    display: grid;
    gap: 1.5rem;
}

.step.detail {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.step.detail:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.step-number.detail {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content.detail h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-content.detail p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
    text-align: left;
}

/* 保修信息 */
.warranty-content.detail p {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.warranty-details.detail {
    display: grid;
    gap: 1.5rem;
}

.warranty-item.detail {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    transition: all 0.2s ease;
}

.warranty-item.detail:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.warranty-item.detail h4 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.warranty-item.detail p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
    text-align: left;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-navigation.detail {
        flex-direction: column;
    }
    
    .tab-btn.detail {
        min-height: 50px;
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .tab-content.detail {
        padding: 1.5rem;
    }
    
    .spec-row.detail {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .step.detail {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .step-content.detail p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tab-content.detail {
        padding: 1rem;
    }
    
    .tab-panel.detail h3 {
        font-size: 1.3rem;
    }
    
    .spec-row.detail,
    .feature-item.detail,
    .step.detail,
    .warranty-item.detail {
        padding: 1rem;
    }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
    .product-tabs.detail {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .tab-navigation.detail {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        border-color: #4a5568;
    }
    
    .tab-btn.detail {
        color: #a0aec0;
    }
    
    .tab-btn.detail:hover {
        color: #63b3ed;
        background: rgba(99, 179, 237, 0.1);
    }
    
    .tab-btn.detail.active {
        background: #2c3e50;
        color: #63b3ed;
    }
    
    .tab-content.detail {
        background: #2c3e50;
    }
    
    .tab-panel.detail h3 {
        color: #e2e8f0;
    }
    
    .spec-row.detail,
    .feature-item.detail,
    .step.detail,
    .warranty-item.detail {
        background: #34495e;
        border-color: #4a5568;
    }
    
    .spec-name.detail,
    .spec-value.detail,
    .feature-item.detail span,
    .step-content.detail h4,
    .warranty-item.detail h4 {
        color: #e2e8f0;
    }
    
    .step-content.detail p,
    .warranty-item.detail p {
        color: #a0aec0;
    }
}

/* 打印样式 */
@media print {
    .tab-navigation.detail {
        display: none;
    }
    
    .tab-panel.detail {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .product-tabs.detail {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* 移除所有焦点状态的外框线 */
.tab-btn.detail:focus,
.tab-btn.detail:focus-visible,
.tab-btn.detail:active {
    outline: none;
    box-shadow: none;
}



/* 基础样式 */
.thumbnail-gallery.detail {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.thumbnail.detail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail.detail:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.thumbnail.detail.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

.thumbnail.detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 桌面端样式 */
@media (min-width: 1024px) {
    .thumbnail-gallery.detail {
        gap: 15px;
        margin: 30px 0;
    }
    
    .thumbnail.detail {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }
    
    .thumbnail.detail:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
    }
}

/* 平板端样式 */
@media (min-width: 768px) and (max-width: 1023px) {
    .thumbnail-gallery.detail {
        gap: 12px;
        margin: 25px 0;
    }
    
    .thumbnail.detail {
        width: 70px;
        height: 70px;
        border-radius: 8px;
    }
    
    .thumbnail.detail:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    }
}

/* 手机端样式 */
@media (max-width: 767px) {
    .thumbnail-gallery.detail {
        gap: 8px;
        margin: 15px 0;
        justify-content: center;
    }
    
    .thumbnail.detail {
        width: 60px;
        height: 60px;
        border-radius: 6px;
        border-width: 1px;
    }
    
    .thumbnail.detail:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    }
    
    /* 手机端触摸优化 */
    .thumbnail.detail:active {
        transform: scale(0.95);
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .thumbnail-gallery.detail {
        gap: 6px;
        margin: 12px 0;
    }
    
    .thumbnail.detail {
        width: 50px;
        height: 50px;
        border-radius: 4px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .thumbnail.detail:hover {
        transform: none;
        box-shadow: none;
    }
    
    .thumbnail.detail:active {
        transform: scale(0.95);
        border-color: #007bff;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .thumbnail.detail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 无障碍访问优化 */
.thumbnail.detail:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 加载状态 */
.thumbnail.detail img[loading] {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.thumbnail.detail img[loading="lazy"]:not([src]) {
    opacity: 0.3;
}


/* 产品画廊基础样式 */
.product-gallery.detail {
    position: relative;
    width: 100%;
}

/* 主图片容器 */
.main-image.detail {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.main-image.detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

/* 鼠标悬停放大效果 */
.main-image.detail:hover img {
    transform: scale(1.05);
}

/* 左右切换按钮 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.main-image.detail:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 缩略图画廊 */
.thumbnail-gallery.detail {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail.detail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail.detail:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.thumbnail.detail.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

.thumbnail.detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail.detail:hover img {
    transform: scale(1.1);
}

/* 桌面端样式 */
@media (min-width: 1024px) {
    .main-image.detail {
        height: 600px;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .thumbnail.detail {
        width: 90px;
        height: 90px;
    }
}

/* 平板端样式 */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-image.detail {
        height: 450px;
    }
    
    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .thumbnail.detail {
        width: 85px;
        height: 85px;
    }
}

/* 手机端样式 */
@media (max-width: 767px) {
    .main-image.detail {
        height: 300px;
        margin-bottom: 15px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
        opacity: 1; /* 手机端始终显示按钮 */
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .image-counter {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .thumbnail-gallery.detail {
        gap: 8px;
    }
    
    .thumbnail.detail {
        width: 70px;
        height: 70px;
        border-radius: 6px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .main-image.detail:hover img {
        transform: none;
    }
    
    .gallery-nav {
        opacity: 1;
    }
    
    .thumbnail.detail:hover {
        transform: none;
        border-color: transparent;
    }
    
    .thumbnail.detail:hover img {
        transform: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .gallery-nav {
        background: #ffffff;
        border: 2px solid #000000;
        color: #000000;
    }
    
    .image-counter {
        background: #000000;
        color: #ffffff;
        border: 1px solid #ffffff;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .main-image.detail img,
    .thumbnail.detail img,
    .gallery-nav {
        transition: none;
    }
    
    .main-image.detail:hover img {
        transform: none;
    }
    
    .thumbnail.detail:hover img {
        transform: none;
    }
}

/* 全屏模态框样式 */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-modal.show {
    opacity: 1;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .fullscreen-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .fullscreen-close {
        top: -50px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}


/* Advanced Testing & Craftsmanship Section */
.testing-craftsmanship-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Waterfall Layout */
.testing-waterfall {
    margin-bottom: 80px;
}

.test-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
}

/* Left Text Layout */
.test-item.left-text {
    flex-direction: row !important;
}

/* Right Text Layout */
.test-item.right-text {
    flex-direction: row-reverse !important;
}

/* Content Styling */
.test-content {
    flex: 1;
    max-width: 500px;
}

.test-text h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.test-text p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.test-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.test-feature i {
    color: #28a745;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Image Styling */
.test-image {
    flex: 1;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.test-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.test-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .test-item {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .test-content {
        max-width: 100%;
        text-align: center;
    }
    
    .test-image {
        max-width: 100%;
    }
    
    .test-image img {
        height: 250px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .test-text h3 {
        font-size: 1.4rem;
    }
    
    .test-text p {
        font-size: 0.95rem;
    }
    
    .test-feature {
        font-size: 0.9rem;
    }
}

/* Showroom Section */
.showroom-section {
    padding: 80px 0;
    background: white;
}

.showroom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showroom-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.showroom-text p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.showroom-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.showroom-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.showroom-feature i {
    font-size: 1.5rem;
    color: #007bff;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.showroom-feature h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.showroom-feature p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.showroom-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.showroom-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showroom-main-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.showroom-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.showroom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showroom-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

.showroom-overlay i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #007bff;
}

.showroom-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
}

.showroom-thumbnails {
    display: flex;
    gap: 10px;
}

.showroom-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.showroom-thumbnail.active {
    border-color: #007bff;
}

.showroom-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showroom-thumbnail:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Product Video Section */
.product-video-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-container {
    position: relative;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background: rgba(0, 123, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button i {
    color: white;
    font-size: 1.5rem;
    margin-left: 3px;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.3;
}

.video-info p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-category {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-views {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 5% auto;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-close:hover {
    color: #007bff;
}

.video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .showroom-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .showroom-actions {
        flex-direction: column;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showroom-main-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .showroom-feature {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .showroom-thumbnails {
        justify-content: center;
    }
    
    .video-info {
        padding: 15px;
    }
}

/* Certifications Section */
.certifications-section {
    padding: 60px 0;
    background: white;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.certification-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
}

.certification-image {
    margin-bottom: 20px;
}

.certification-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.certification-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.certification-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .certification-item {
        padding: 25px 20px;
    }
}

/* 产品选型选择器样式 */
.product-options-selector {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.option-group {
    margin-bottom: 25px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.option-item.selected {
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.option-image {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.option-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .option-image {
        width: 60px;
        height: 60px;
    }
    
    .option-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .product-options-selector {
        padding: 15px;
        margin: 15px 0;
    }
    
    .option-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .option-image {
        width: 50px;
        height: 50px;
    }
    
    .option-name {
        font-size: 10px;
    }
}


/* 询价模态框样式 */
.center-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    overflow-x: hidden;
}

.center-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 模态框内容容器 */
.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
}

/* 关闭按钮 */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6c757d;
    transition: all 0.2s;
    z-index: 10;
    font-weight: bold;
}

.close:hover {
    background: #e9ecef;
    color: #343a40;
    transform: scale(1.1);
}

/* 询价表单容器 */
.inquiry-form {
    padding: 40px 30px 30px;
}

.inquiry-form h2 {
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* 消息提示框 */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* 必填字段标记 */
.form-group label[for*="inquiryName"]::after,
.form-group label[for*="inquiryEmail"]::after,
.form-group label[for*="inquiryPhone"]::after {
    content: " *";
    color: #e74c3c;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* 输入框状态样式 */
.form-group input:valid,
.form-group textarea:valid {
    /*border-color: #28a745;*/
    background: #f8fff9;
}

/*.form-group input:invalid:not(:placeholder-shown),*/
/*.form-group textarea:invalid:not(:placeholder-shown) {*/
/*    background: #fff8f8;*/
/*}*/

/* 加载状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 动画效果 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .center-modal.show {
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 15px auto;
    }
    
    .inquiry-form {
        padding: 30px 20px 20px;
    }
    
    .inquiry-form h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .form-actions {
        flex-direction: column;
        margin-top: 25px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .close {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .center-modal.show {
        padding: 10px;
    }
    
    .modal-content {
        width: 98%;
        margin: 10px auto;
    }
    
    .inquiry-form {
        padding: 25px 15px 15px;
    }
    
    .inquiry-form h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 针对不同屏幕高度的优化 */
@media screen and (max-height: 700px) {
    .center-modal.show {
        align-items: flex-start;
        padding: 10px;
    }
    
    .modal-content {
        margin: 10px auto;
    }
    
    .inquiry-form {
        padding: 25px 20px 20px;
    }
    
    .inquiry-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
    }
}

@media screen and (max-height: 600px) {
    .center-modal.show {
        padding: 5px;
    }
    
    .modal-content {
        margin: 5px auto;
        max-height: calc(100vh - 10px);
        overflow-y: auto;
    }
    
    .inquiry-form {
        padding: 20px 15px 15px;
    }
    
    .inquiry-form h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 确保在100%缩放比例下内容完全可见 */
@media screen and (min-height: 600px) {
    .center-modal.show {
        align-items: center;
    }
}

/* 针对小屏幕设备的特殊处理 */
@media screen and (max-height: 500px) {
    .center-modal.show {
        padding: 0;
    }
    
    .modal-content {
        margin: 5px auto;
        max-height: calc(100vh - 10px);
        overflow-y: auto;
    }
    
    .inquiry-form {
        padding: 15px 15px 15px;
    }
    
    .inquiry-form h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* 产品选型指南样式 */
.product-selection-guide {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.selection-tabs {
    margin-top: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: #4299e1;
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.selection-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.selection-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    color: #2d3748;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card-content p {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-item {
    background: #f7fafc;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4a5568;
    border-left: 3px solid #4299e1;
}

.applications {
    background: #edf2f7;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.applications strong {
    color: #2d3748;
}

/* 选型工具样式 */
.selection-tool {
    margin-top: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}



/* 标签导航 */
.selection-tab-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.selection-tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.selection-tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.selection-tab-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 标签内容 */
.selection-tab-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.selection-tab-pane {
    display: none;
    padding: 2rem;
}

.selection-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 产品网格 - 确保一行显示三个卡片 */
.selection-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 产品卡片 */
.selection-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.selection-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* 卡片头部 */
.selection-card-header {
    position: relative;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 1.5rem;
    text-align: center;
}

.selection-card-image {
    width: 100%;
    height: 330px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
    background: #ffffff;
}

.selection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.selection-product-card:hover .selection-card-image img {
    transform: scale(1.05);
}

.selection-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selection-card-badge.standard {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.selection-card-badge.premium {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.selection-card-badge.ultra-premium {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    color: white;
}

/* 卡片主体 */
.selection-card-body {
    padding: 1.5rem;
}

.selection-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 规格部分 */
.selection-specs-section {
    margin-bottom: 1rem;
}

.selection-specs-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.selection-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.selection-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    border-left: 3px solid #667eea;
}

.selection-spec-label {
    color: #4a5568;
    font-weight: 500;
}

.selection-spec-value {
    color: #2d3748;
    font-weight: 600;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .selection-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .selection-title {
        font-size: 2.5rem;
    }
    
    .selection-subtitle {
        font-size: 1.1rem;
    }
    
    .selection-wrapper {
        padding: 1rem;
    }
    
    .selection-tab-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .selection-tab-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .selection-product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .selection-tab-pane {
        padding: 1.5rem;
    }
    
    .selection-specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .selection-header {
        padding: 3rem 1rem 2rem;
    }
    
    .selection-title {
        font-size: 2rem;
    }
    
    .selection-card-body {
        padding: 1rem;
    }
    
    .selection-card-header {
        padding: 1rem;
    }
    
    .selection-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-card-title {
        font-size: 1.3rem;
    }
}

.selection-tab-pane {
    display: none;
}

.selection-tab-pane.active {
    display: block;
}

.selection-tab-btn.active {
    background-color: #007bff;
    color: white;
}

/* 搜索框容器样式 */
.selection-search-container {
    margin: 20px 0;
    text-align: center;
    padding: 0 20px;
}

/* 搜索输入框样式 */
.selection-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

.selection-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.selection-search-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .selection-search-container {
        margin: 15px 0;
        padding: 0 15px;
    }
    
    .selection-search-input {
        max-width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* 选型摘要容器 */
.selection-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selection-summary h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

/* 选择列表容器 */
.selections-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 选择项目 */
.selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.selection-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

/* 产品名称 */
.selection-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* 移除按钮 */
.remove-selection {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    line-height: 1;
}

.remove-selection:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.remove-selection:active {
    transform: scale(0.95);
}

/* 空状态提示 */
.selections-list:empty::after {
    content: "No selections yet. Click on product cards to make selections.";
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .selection-summary {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .selection-summary h3 {
        font-size: 1.1rem;
    }
    
    .selection-item {
        padding: 0.6rem 0.8rem;
    }
    
    .selection-name {
        font-size: 0.9rem;
    }
    
    .remove-selection {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
}

/* 动画效果 */
.selection-summary {
    animation: slideInUp 0.3s ease;
}

.selection-item {
    animation: fadeInRight 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 主题变体 */
.selection-summary.theme-dark {
    background: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

.selection-summary.theme-dark h3 {
    color: #f8f9fa;
    border-bottom-color: #007bff;
}

.selection-summary.theme-dark .selection-item {
    background: #495057;
    border-color: #6c757d;
    color: #f8f9fa;
}

.selection-summary.theme-dark .selection-name {
    color: #f8f9fa;
}

/* 成功状态 */
.selection-summary.success {
    border-color: #28a745;
    background: #d4edda;
}

.selection-summary.success h3 {
    border-bottom-color: #28a745;
    color: #155724;
}

/* 警告状态 */
.selection-summary.warning {
    border-color: #ffc107;
    background: #fff3cd;
}

.selection-summary.warning h3 {
    border-bottom-color: #ffc107;
    color: #856404;
}


