:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #1a252f;
    --text-color: #333;
    --gray-color: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', 'Times New Roman', Times, serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
p { margin-bottom: 1rem; }
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 80px 0; }

/* Header (保持不变) */
header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; margin-left: 10px; }
.logo-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Playfair Display', 'Times New Roman', Times, serif;
}
.logo-subtitle {
    font-size: 12px;
    color: var(--gray-color);
    letter-spacing: 1px;
    margin-top: 3px;
}
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; }
nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}
nav ul li a:hover { color: var(--secondary-color); }
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}
nav ul li a:hover::after { width: 100%; }
.nav-icons { display: flex; gap: 20px; }
.nav-icons a { color: var(--primary-color); font-size: 18px; transition: var(--transition); }
.nav-icons a:hover { color: var(--secondary-color); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section - 背景图使用带参数优化版 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('https://fastly.jsdelivr.net/gh/1ddddd123/Image@main/DIY-PBY25102801(1).jpg?width=1920&quality=80');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}
.hero h1 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.hero-btns { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}
.btn-primary { background-color: var(--accent-color); color: var(--white); }
.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Section Title (保持不变) */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
.section-title p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 18px;
}

/* 产品网格 (保持不变) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* 商品卡片 (保持不变) */
.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    min-height: 400px;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}
.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.product-image img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
    background-color: #f0f0f0; /* placeholder background to avoid blank area */
}
.product-image img.loading {
    /* light shimmer effect while waiting for real image */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) center/200% 100% no-repeat;
    animation: placeholderShimmer 1.5s infinite;
}
@keyframes placeholderShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-details {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.product-code {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    align-self: flex-start;
    border: 1px solid #e0f0ff;
}
.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
    line-height: 1.4;
    min-height: 40px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.9);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.product-favorite-btn i {
    color: #ddd;
    font-size: 18px;
    transition: var(--transition);
}
.product-favorite-btn.active { background-color: rgba(231, 76, 60, 0.9); }
.product-favorite-btn.active i { color: white; }
.product-favorite-btn:hover { transform: scale(1.1); }

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 12px 24px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--text-color);
}
.filter-btn:hover {
    background-color: #e3f2fd;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}
.filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

/* About Us (保持不变) */
.about-section { background-color: var(--white); padding: 80px 0; }
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-text h2 { font-size: 36px; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; line-height: 1.7; }
.about-image { flex: 1; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.about-image img { width: 100%; height: auto; display: block; }

/* Contact Section (保持不变) */
.contact-section { background-color: var(--dark-color); color: var(--white); padding: 80px 0; text-align: center; }
.contact-section h2 { color: var(--white); margin-bottom: 20px; }
.contact-section p { max-width: 700px; margin: 0 auto 40px; opacity: 0.9; }
.contact-info { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin-top: 50px; }
.contact-item { display: flex; flex-direction: column; align-items: center; gap: 15px; min-width: 200px; }
.contact-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.contact-item h3 { color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 600; }

/* Footer (保持不变) */
footer { background-color: #1a252f; color: #bdc3c7; padding: 60px 0 30px; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-column { flex: 1; min-width: 250px; }
.footer-column h3 { color: var(--white); margin-bottom: 25px; font-size: 20px; font-family: 'Playfair Display', 'Times New Roman', Times, serif; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #bdc3c7; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary-color); padding-left: 5px; }
.copyright { text-align: center; padding-top: 30px; margin-top: 50px; border-top: 1px solid #2c3e50; font-size: 14px; }

/* Modal 相关 (保持不变) */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active { opacity: 1; display: flex; }
.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal.active .modal-content { opacity: 1; transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: var(--gray-color); transition: var(--transition); z-index: 10; }
.close-modal:hover { color: var(--accent-color); }
.modal h3 { margin-bottom: 20px; color: var(--primary-color); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}
.form-group textarea { height: 120px; resize: vertical; }

/* Product Detail Modal (保持不变) */
.detail-modal-content { max-width: 1000px; width: 95%; padding: 30px; }
.detail-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.detail-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; gap: 15px; }
.detail-header h2 { font-size: 28px; color: var(--primary-color); margin: 0; flex: 1; min-width: 250px; }
.detail-code {
    background-color: var(--light-color);
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    align-self: flex-start;
}
.detail-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
.detail-body { display: flex; gap: 40px; flex-wrap: wrap; }
.detail-image-container { flex: 1; min-width: 300px; }
.image-gallery { width: 100%; margin-bottom: 20px; }
.gallery-main {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    margin-bottom: 15px;
    cursor: pointer;
}
.gallery-slides { position: relative; width: 100%; height: 100%; }
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
    padding: 15px;
    transition: transform 0.3s ease;
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-position: center center;
}
.gallery-slide img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}
@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 16px;
    z-index: 10;
}
.gallery-nav:hover { background-color: var(--white); transform: translateY(-50%) scale(1.1); }
.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }
.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-indicator.active { background-color: var(--white); transform: scale(1.2); }
.gallery-indicator:hover { background-color: var(--white); }
.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.thumbnail {
    flex: 0 0 auto;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
    background-color: white;
}
.thumbnail.active { opacity: 1; border-color: var(--secondary-color); }
.thumbnail:hover { opacity: 1; transform: scale(1.05); }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.detail-size {
    background-color: #f0f8ff;
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    font-size: 16px;
    color: var(--primary-color);
}
.detail-info-container { flex: 1; min-width: 300px; }
.detail-section { margin-bottom: 30px; }
.detail-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-section h3 i { color: var(--secondary-color); }
.detail-description { line-height: 1.7; color: var(--text-color); font-size: 16px; }
.detail-includes { list-style-type: none; }
.detail-includes li { margin-bottom: 10px; padding-left: 25px; position: relative; line-height: 1.5; }
.detail-includes li i { position: absolute; left: 0; top: 3px; color: var(--secondary-color); }
.detail-includes-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}
.detail-includes-container::-webkit-scrollbar { width: 6px; }
.detail-includes-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.detail-includes-container::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 10px; }
.detail-includes-container::-webkit-scrollbar-thumb:hover { background: #2980b9; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.spec-item { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px dashed #ddd; }
.spec-label { color: var(--gray-color); font-weight: 500; }
.spec-value { color: var(--primary-color); font-weight: 600; }
.detail-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; min-width: 200px; }
.detail-inquiry-btn { background-color: var(--accent-color); color: white; }
.detail-inquiry-btn:hover { background-color: #c0392b; }

/* 收藏相关样式 (保持不变) */
.favorites-count { background-color: var(--accent-color); color: var(--white); font-size: 12px; padding: 2px 6px; border-radius: 10px; margin-left: 5px; min-width: 18px; display: inline-block; text-align: center; }
.favorite-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 300px;
}
.favorite-toast.show { transform: translateX(0); }
.detail-favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    border: none;
}
.detail-favorite-btn:hover { background-color: #f0f0f0; }
.detail-favorite-btn.active { background-color: var(--accent-color); color: white; }
.detail-favorite-btn.active:hover { background-color: #c0392b; }

/* 搜索模态框 (保持不变) */
.search-modal-content { max-width: 800px; width: 95%; padding: 30px; }
.search-box { display: flex; gap: 10px; margin-bottom: 20px; }
.search-box input { flex: 1; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; transition: var(--transition); }
.search-box input:focus { border-color: var(--secondary-color); outline: none; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); }
.search-filters { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; padding: 15px; background-color: #f8f9fa; border-radius: 8px; }
.search-filters label { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 14px; transition: var(--transition); }
.search-filters label:hover { color: var(--secondary-color); }
.search-preview { margin-bottom: 20px; background-color: #f8f9fa; border-radius: 8px; padding: 15px; border: 1px solid #e9ecef; display: none; }
.search-preview.active { display: block; }
.search-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #e9ecef; }
.search-preview-header h4 { margin: 0; font-size: 16px; color: var(--primary-color); }
.preview-note { font-size: 12px; color: var(--gray-color); margin: 0; font-style: italic; }
.search-preview-results { max-height: 500px; overflow-y: auto; }
.search-results-container { display: none; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.search-results-container.active { display: block; }
.search-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.search-results-header h4 { margin: 0; font-size: 18px; color: var(--primary-color); }
.search-results { max-height: 600px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; transition: var(--transition); cursor: pointer; width: 100%; }
.search-result-item:hover { background-color: #f8f9fa; border-color: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.search-result-content { display: flex; align-items: center; flex: 1; cursor: pointer; }
.search-result-image { width: 120px; height: 120px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; margin-left: 20px; }
.search-result-info h4 { margin-bottom: 8px; font-size: 18px; color: var(--primary-color); }
.search-result-code { font-size: 14px; color: var(--secondary-color); font-weight: 600; margin-bottom: 5px; }
.search-result-category { font-size: 13px; color: var(--gray-color); margin-bottom: 8px; background-color: #f0f8ff; padding: 5px 10px; border-radius: 15px; display: inline-block; cursor: pointer; transition: var(--transition); }
.search-result-category:hover { background-color: var(--secondary-color); color: white; }
.search-result-includes { font-size: 14px; color: var(--text-color); line-height: 1.5; }
.search-result-action { flex-shrink: 0; display: flex; gap: 10px; }
.no-search-results { text-align: center; padding: 40px 20px; color: var(--gray-color); }
.no-search-results i { font-size: 48px; margin-bottom: 15px; color: #ddd; }
.search-stats { margin-top: 15px; padding: 12px 15px; background-color: #f0f8ff; border-radius: 6px; font-size: 14px; color: var(--secondary-color); border-left: 4px solid var(--secondary-color); }
.search-stats-enhanced { padding: 15px; background-color: #f0f8ff; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid var(--secondary-color); }
.search-stats-enhanced h4 { margin-bottom: 10px; color: var(--primary-color); }
.stat-item { display: flex; justify-content: space-between; padding: 8px 12px; background-color: white; border-radius: 6px; border: 1px solid #e0f0ff; }
.stat-label { color: var(--gray-color); font-weight: 500; }
.stat-value { color: var(--secondary-color); font-weight: 600; }
.category-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.category-stat-item { display: inline-block; background-color: white; padding: 5px 10px; border-radius: 15px; font-size: 12px; border: 1px solid #e0f0ff; cursor: pointer; transition: var(--transition); }
.category-stat-item:hover { background-color: var(--secondary-color); color: white; border-color: var(--secondary-color); }
.category-stat-name { color: var(--gray-color); margin-right: 5px; }
.category-stat-count { color: var(--secondary-color); font-weight: 600; }
.category-stat-item:hover .category-stat-name, .category-stat-item:hover .category-stat-count { color: white; }

/* 图片放大模态框 (保持不变) */
.zoom-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.zoom-modal.active { display: flex; opacity: 1; }
.zoom-modal-content { position: relative; max-width: 90%; max-height: 90%; display: flex; justify-content: center; align-items: center; }
.zoom-modal-content img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-close:hover { color: var(--accent-color); transform: scale(1.1); }
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 24px;
    z-index: 2001;
    backdrop-filter: blur(5px);
}
.zoom-nav:hover { background-color: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.1); }
.zoom-prev { left: 20px; }
.zoom-next { right: 20px; }
.zoom-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    max-width: 80%;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}
.zoom-indicators {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2001;
}
.zoom-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.zoom-indicator.active { background-color: white; transform: scale(1.2); }
.zoom-indicator:hover { background-color: white; }
.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}
.gallery-main:hover .zoom-icon { opacity: 1; }
.zoom-icon i { font-size: 18px; }
.empty-state { text-align: center; padding: 60px 20px; grid-column: 1 / -1; background-color: #f9f9f9; border-radius: 10px; margin: 20px 0; }
.empty-state i { font-size: 60px; color: #e0e0e0; margin-bottom: 20px; }
.empty-state h3 { color: var(--gray-color); margin-bottom: 15px; }
.empty-state p { color: var(--gray-color); max-width: 500px; margin: 0 auto 30px; }
#loadMore { padding: 12px 40px; font-size: 16px; border-radius: 30px; margin-top: 20px; transition: all 0.3s ease; margin-bottom: 30px; }
#loadMore:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2); }
.scroll-loader { display: none; }

/* 响应式设计调整 (保持不变) */
@media (max-width: 1920px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: 25px; } }
@media (max-width: 1600px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; } }
@media (max-width: 1400px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 25px; } }
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .product-card { min-height: 380px; }
    .product-image { height: 280px; }
    .search-result-item { flex-direction: column; align-items: flex-start; }
    .search-result-content { width: 100%; }
    .search-result-action { width: 100%; justify-content: flex-end; }
}
@media (max-width: 992px) {
    .about-content { flex-direction: column; }
    .about-image, .about-text { width: 100%; }
    .hero h1 { font-size: 42px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .product-card { min-height: 360px; }
    .product-image { height: 260px; }
    .detail-body { flex-direction: column; }
    .detail-image-container, .detail-info-container { width: 100%; }
    .gallery-main { height: 400px; }
    .detail-includes-container { max-height: 250px; }
    .search-preview-results { max-height: 400px; }
    .search-result-image { width: 100%; height: 200px; }
}
@media (max-width: 768px) {
    nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); flex-direction: column; z-index: 999; }
    nav.active { display: flex; }
    nav ul { flex-direction: column; width: 100%; }
    nav ul li { margin: 10px 0; }
    .nav-icons { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    .section-title h2 { font-size: 32px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 80%; margin-bottom: 10px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-card { min-height: 340px; }
    .product-image { height: 240px; }
    .detail-header-top { flex-direction: column; align-items: flex-start; }
    .detail-code { align-self: flex-start; }
    .detail-actions .btn { min-width: 100%; }
    .gallery-main { height: 350px; }
    .gallery-nav { width: 35px; height: 35px; font-size: 14px; }
    .thumbnail { width: 100px; height: 75px; }
    .favorite-toast { top: 80px; right: 10px; left: 10px; max-width: none; }
    .search-result-item { flex-direction: column; align-items: flex-start; }
    .search-result-image { width: 100%; height: 150px; }
    .search-result-action { width: 100%; }
    .search-result-action .btn { width: 100%; }
    .zoom-nav { width: 50px; height: 50px; font-size: 20px; }
    .zoom-close { font-size: 35px; top: 15px; right: 20px; }
    .search-filters { flex-direction: column; align-items: flex-start; }
    .search-stats-enhanced { padding: 12px; }
    .category-stats { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 576px) {
    .products-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 30px; }
    .section-title h2 { font-size: 28px; }
    .contact-info { flex-direction: column; align-items: center; }
    .detail-modal-content { padding: 20px; }
    .gallery-main { height: 300px; }
    .specs-grid { grid-template-columns: 1fr; }
    .thumbnail { width: 80px; height: 60px; }
    .zoom-nav { width: 40px; height: 40px; font-size: 18px; }
    .zoom-prev { left: 10px; }
    .zoom-next { right: 10px; }
    .zoom-close { font-size: 30px; top: 10px; right: 15px; }
    .product-card { min-height: 320px; }
    .product-image { height: 220px; }
    .search-result-info { margin-left: 0; margin-top: 15px; }
}

/* 修复详情页面图片显示问题 (保持不变) */
.detail-modal-content .gallery-main { background-color: #f5f5f5; min-height: 500px; position: relative; overflow: hidden; }
.detail-large-image { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
@keyframes fadeInImage { from { opacity: 0; } to { opacity: 1; } }
.gallery-slide img { animation: fadeInImage 0.3s ease forwards; }

/* 开屏动画样式 (保持不变) */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}
.splash-content {
    width: 100%;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
    overflow: visible;
}
.splash-text {
    font-family: 'Pacifico', cursive;
    font-size: clamp(60px, 15vw, 180px);
    font-weight: 400;
    color: #2c3e50;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    animation: revealSundy 5s ease-out forwards;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.05);
    letter-spacing: 0.05em;
    overflow: visible;
}
@keyframes revealSundy {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@media (max-width: 576px) {
    .splash-content {
        padding: 30px 10px;
    }
}


#inquiryModal {
    z-index: 1002;
}