.products-showcase {
    padding: 60px 0;
    background: transparent; /* 露出方案A灰蓝底 */
}

.product-categories {
    padding: 40px 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 12px 25px;
    border: 2px solid #007bff;
    border-radius: 25px;
    background: none;
    color: #007bff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.category-btn i {
    font-size: 18px;
}

.category-btn:hover,
.category-btn.active {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-item {
    background: rgba(255,255,255,0.60);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeIn 0.6s ease-out;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: saturate(1.05) blur(2px);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-overlay button {
    width: 80%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.85);
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-overlay button:hover {
    background: #007bff;
    color: #fff;
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    border-top: 1px solid #eee;
}

.product-info h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

/* 查看详情按钮放到底部信息区 */
.product-info .btn-view {
    display: block;
    margin-top: 12px;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.product-info .btn-view:hover {
    background: #0056b3;
    transform: translateY(-1px);
}


.product-specs {
    display: grid;
    gap: 12px;
    color: #666;
}

.product-specs p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    animation: slideIn 0.4s ease-out;
    animation-fill-mode: both;
}

.product-specs p i {
    color: #007bff;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.product-specs p:nth-child(1) {
    animation-delay: 0.1s;
}

.product-specs p:nth-child(2) {
    animation-delay: 0.2s;
}

.product-specs p:nth-child(3) {
    animation-delay: 0.3s;
}

/* 产品详情弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(255,255,255,0.96);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    backdrop-filter: saturate(1.05) blur(3px);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255,255,255,0.9);
    transform: rotate(90deg);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    max-height: 80vh;
    overflow-y: auto;
}

.product-images {
    position: relative;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #007bff;
    transform: scale(1.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-description {
    padding-right: 20px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.specs-table th {
    color: #666;
    font-weight: 500;
    width: 35%;
}

.product-features {
    margin-top: 30px;
}

.product-features h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #666;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.product-actions button {
    flex: 1;
    min-width: 150px;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-3d-view {
    background: #007bff;
    color: #fff;
}

.btn-add-inquiry {
    background: #28a745;
    color: #fff;
}

.btn-download-specs {
    background: #6c757d;
    color: #fff;
}

.product-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 3D预览 */
.model-viewer {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
}

#3d-canvas {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
}

.model-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
}

/* 询价表单 */
.inquiry-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.file-hint {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: #0056b3;
}

/* 询价购物车 */
.inquiry-cart {
    position: relative;
}

.inquiry-cart-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.inquiry-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.inquiry-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1000;
}

.inquiry-cart:hover .inquiry-dropdown {
    display: block;
}

.inquiry-list {
    max-height: 300px;
    overflow-y: auto;
}

.inquiry-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.inquiry-item:last-child {
    border-bottom: none;
}

.inquiry-item-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.inquiry-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inquiry-item-info {
    flex: 1;
}

.inquiry-item-title {
    font-size: 14px;
    color: #333;
    margin: 0 0 5px;
}

.inquiry-item-specs {
    font-size: 12px;
    color: #666;
}

.btn-remove-inquiry {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
}

.inquiry-actions {
    margin-top: 15px;
    text-align: center;
}

.btn-submit-inquiry {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit-inquiry:hover {
    background: #0056b3;
}

/* 搜索和筛选 */
.product-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.85);
}

.search-box input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.btn-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    color: #007bff;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options select {
    padding: 12px 35px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-6-6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    min-width: 180px;
    transition: all 0.3s ease;
}

.filter-options select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        max-width: 600px;
        margin: 0 auto;
    }

    .product-description {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .category-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
    }

    .product-filters {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .filter-options {
        width: 100%;
        justify-content: space-between;
    }

    .filter-options select {
        flex: 1;
        min-width: 0;
    }

    .product-overlay button {
        width: 90%;
        padding: 10px 15px;
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .product-detail {
        padding: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-item {
        max-width: 400px;
        margin: 0 auto;
    }

    .product-info {
        padding: 20px;
    }

    .product-info h3 {
        font-size: 18px;
    }

    .product-specs {
        font-size: 13px;
    }

    .product-overlay button {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .product-item,
    .product-item:hover,
    .product-overlay,
    .product-overlay button,
    .category-btn,
    .search-box input,
    .filter-options select,
    .thumbnail,
    .product-actions button {
        transition: none;
        animation: none;
        transform: none;
    }
}

/* 高对比度模式 */
@media (forced-colors: active) {
    .product-item,
    .category-btn,
    .search-box input,
    .filter-options select {
        border: 2px solid;
    }

    .product-overlay {
        background: Canvas;
    }

    .product-overlay button {
        border: 1px solid;
    }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #fff;
    }

    .product-categories {
        background-color: #2a2a2a;
        border-color: #333;
    }

    .product-item {
        background: #2a2a2a;
        border-color: #333;
    }

    .product-info h3 {
        color: #fff;
    }

    .product-specs {
        color: #ccc;
    }

    .modal-content {
        background: #2a2a2a;
    }

    .close-modal {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .specs-table th,
    .specs-table td {
        border-color: #333;
    }

    .form-group label {
        color: #fff;
    }

    .form-group input,
    .form-group textarea {
        background: #333;
        border-color: #444;
        color: #fff;
    }

    .inquiry-dropdown {
        background: #2a2a2a;
    }

    .inquiry-item {
        border-color: #333;
    }

    .inquiry-item-title {
        color: #fff;
    }

    .inquiry-item-specs {
        color: #ccc;
    }

    .search-box input,
    .filter-options select {
        background: #333;
        border-color: #444;
        color: #fff;
    }

    .search-box input:focus,
    .filter-options select:focus {
        border-color: #007bff;
    }

    .category-btn {
        color: #007bff;
        border-color: #007bff;
    }

    .category-btn:hover,
    .category-btn.active {
        background: #007bff;
        color: #fff;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 悬停效果增强 */
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.product-overlay button:hover {
    transform: scale(1.05);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.2);
}

/* 加载状态 */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 过滤动画 */
.product-item.filtered-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* 搜索框动画 */
.search-box input:focus {
    transform: scale(1.02);
}

.btn-search:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}