/* 耳机产品页面样式 */

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* 页面标题区域 */
.headphones-hero {
    padding: 60px 206px 40px;
    background: #fff;
    text-align: center;
}

.headphones-title {
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.headphones-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* 筛选和排序区域 */
.filters-section {
    padding: 0 206px 30px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.filters-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.filter-tab.active {
    color: #333;
    font-weight: 600;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
}

.filter-tab:hover {
    color: #007bff;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:hover {
    border-color: #007bff;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.sort-section label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.sort-select {
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.3s;
}

.sort-select:hover {
    border-color: #007bff;
}

.sort-select:focus {
    outline: none;
    border-color: #007bff;
}

/* 产品网格区域 */
.products-section {
    padding: 40px 206px 60px;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.new-badge {
    background: #007bff;
    color: #fff;
}

.sale-badge {
    background: #ff4444;
    color: #fff;
}

.recommended-badge {
    background: #ffc107;
    color: #333;
    top: auto;
    bottom: 12px;
    left: 12px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 16px 16px 8px;
    line-height: 1.4;
    min-height: 50px;
}

.product-colors {
    display: flex;
    gap: 8px;
    margin: 0 16px 12px;
    flex-wrap: wrap;
}

.color-option {
    font-size: 14px;
    color: #666;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 12px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.review-count {
    font-size: 14px;
    color: #666;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 16px 16px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.current-price {
    color: #333;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
}

.product-btn {
    margin: 0 16px 16px;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.product-btn:hover {
    background: #0056b3;
}

/* 产品特性说明区域 */
.features-section,
.more-features-section {
    padding: 60px 206px;
    background: #f8f9fa;
}

.more-features-section {
    background: #fff;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* FAQ 部分 */
.faq-section {
    padding: 60px 206px;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #007bff;
}

.faq-question svg {
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 0 24px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .headphones-hero,
    .filters-section,
    .products-section,
    .features-section,
    .more-features-section,
    .faq-section {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 1024px) {
    .headphones-hero,
    .filters-section,
    .products-section,
    .features-section,
    .more-features-section,
    .faq-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .headphones-hero,
    .filters-section,
    .products-section,
    .features-section,
    .more-features-section,
    .faq-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .headphones-title {
        font-size: 32px;
    }

    .headphones-description {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }
}

/* 隐藏产品（用于筛选） */
.product-card.hidden {
    display: none;
}

