/* ==================== Banner ==================== */
.product-banner {
    height: 60vh;
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.product-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.product-banner-bg .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-banner-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.product-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 40px;
}

.product-banner .breadcrumb {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.product-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-banner .breadcrumb a:hover {
    color: white;
}

.product-banner h1 {
    font-family: 'Cormorant Garamond', 'STZhongYuan', 'Heiti SC', 'Microsoft YaHei', serif;
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 3px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.product-banner .banner-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==================== 页面头部 ==================== */
.page-header {
    padding: 160px 40px 80px;
    text-align: center;
    background: var(--bg-cream);
}

.page-header .breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.page-header .breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-header .breadcrumb a:hover {
    color: var(--primary);
}

.page-header h1 {
    font-family: 'Cormorant Garamond', 'STZhongYuan', 'Heiti SC', 'Microsoft YaHei', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== 分类筛选 ==================== */
.filter-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 40px;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 30px;
}

.filter-tab {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-sort label {
    font-size: 0.85rem;
    color: var(--text-gray);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-sort select {
    padding: 8px 30px 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-tab-icon {
    height: 15px;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==================== 子分类筛选样式 ==================== */
.filter-subcategory {
    display: flex;
    align-items: center;
}

.subcategory-select {
    padding: 8px 30px 8px 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    width: 220px; /* 与搜索框保持一致 */
    transition: border-color 0.3s ease;
}

.subcategory-select:hover {
    border-color: var(--primary);
}

.subcategory-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== 搜索框样式 ==================== */
.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    background: white;
    transition: border-color 0.3s ease;
    width: 220px; /* 与子分类选择框保持一致 */
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-input {
    padding: 8px 12px;
    border: none;
    font-size: 0.85rem;
    color: var(--text-dark);
    width: 100%; /* 填充父容器 */
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary);
}

.search-clear {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: var(--bg-cream);
    color: var(--primary);
}

/* ==================== 产品网格 ==================== */
.products-section {
    padding: 60px 40px 120px;
    background: var(--bg-white);
}

.products-container {
    max-width: 100%;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1; /* 正方形 */
    margin-bottom: 20px;
    background: var(--bg-cream);
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.product-badge.new {
    background: var(--gold);
}

.product-badge.sale {
    background: #c44;
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover .product-wishlist {
    opacity: 1;
    transform: translateY(0);
}

.product-wishlist svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-gray);
    fill: none;
    transition: all 0.3s ease;
}

.product-wishlist:hover svg {
    stroke: #c44;
    fill: #c44;
}

.product-info {
    text-align: center;
}

.product-category {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--primary);
}

.product-price .original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 8px;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
}

.pagination-btn {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-dark);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 25px;
    letter-spacing: 1px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.pagination-info #currentPage {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.pagination-info #totalPages {
    color: var(--text-dark);
}

/* ==================== 咨询区域 ==================== */
.inquiry-section {
    margin-top: 60px;
    text-align: center;
    padding: 50px 40px;
    background: var(--bg-cream);
    border: 1px solid var(--border-light);
}

.inquiry-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.inquiry-title {
    font-family: 'Cormorant Garamond', 'STZhongYuan', 'Heiti SC', 'Microsoft YaHei', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.inquiry-desc {
    color: var(--text-gray);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.inquiry-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 143, 122, 0.3);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-banner {
        height: 50vh;
        min-height: 400px;
    }

    .product-banner h1 {
        font-size: 2.5rem;
    }

    .product-banner .banner-subtitle {
        font-size: 0.95rem;
    }

    .page-header {
        padding: 120px 20px 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .filter-bar {
        padding: 15px 20px;
        top: 70px;
    }

    .filter-container {
        flex-direction: column;
        gap: 15px;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .filter-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .filter-subcategory {
        width: 100%;
    }

    .subcategory-select {
        width: 100%;
    }

    .filter-search {
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .filter-sort {
        width: 100%;
        gap: 10px;
    }

    .filter-sort select {
        flex: 1;
        min-width: 0;
    }

    .products-section {
        padding: 40px 20px 80px;
    }

    .products-grid {
        gap: 20px;
    }

    .pagination {
        gap: 15px;
    }

    .pagination-btn {
        height: 40px;
        padding: 0 20px;
        font-size: 0.8rem;
    }

    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }

    .pagination-info {
        font-size: 0.85rem;
    }

    .pagination-info #currentPage {
        font-size: 1rem;
    }
}

