/**
 * 沁园汝瓷 - 产品页面样式 (product-list.html, product-detail.html)
 */

/* ==================== 页面特定header样式 ==================== */
body.product-page .header {
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ==================== 页面横幅 ==================== */
.page-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-banner-content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-top: 150px;
    margin: 0 auto;
}

.page-banner-content h1 {
    font-family: var(--font-family-serif);
    font-size: 70px;
    font-weight: var(--font-weight-semibold);
    color: #FFFDF9;
    margin-bottom: 25px;
    letter-spacing: 6px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.page-banner-content .banner-seal {
    width: auto;
    height: 64px;
}

.page-banner-content p {
    font-size: 22px;
    color: #FFFDF9;
    line-height: 1.8;
    max-width: 1000px;
}

/* ==================== 产品区域 ==================== */
.content-section {
    padding: var(--section-padding-sm);
    background-color: var(--color-bg-primary);
}

.product-section {
    padding: 80px 0;
}

/* ==================== 礼器分组 ==================== */
.gift-section {
    margin-bottom: 100px;
}

.gift-section:last-child {
    margin-bottom: 0;
}

.gift-header {
    text-align: center;
    margin-bottom: 40px;
}

.gift-title {
    font-family: var(--font-family-serif);
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: 0;
    letter-spacing: 2px;
    text-align: center;
}

.gift-subtitle {
    font-size: 26px;
    color: #5D5F60;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-top: 10px;
    text-align: center;
}

/* ==================== 礼器主图 ==================== */
.gift-hero {
    max-width: 1400px;
    margin: 0 auto 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: var(--color-bg-secondary);
}

.gift-hero img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    display: block;
}

.gift-arrow {
    display: none;
}

/* ==================== 礼器小产品卡片 ==================== */
.gift-products-wrapper {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.gift-products {
    display: flex;
    gap: 40px;
    transition: transform 0.3s ease;
}

.gift-product-link {
    display: block;
    flex: 0 0 calc((100% - 120px) / 4);
    text-decoration: none;
    color: inherit;
}

.gift-product {
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-fast);
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #E9E9E9;
    overflow: hidden;
}

.gift-products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.gift-products-nav:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gift-products-nav.prev {
    left: 10px;
}

.gift-products-nav.next {
    right: 10px;
}

.gift-product:hover {
    transform: translateY(-4px);
}

.gift-product-img {
    width: 100%;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background-color: var(--color-bg-secondary);
}

.gift-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gift-product:hover .gift-product-img img {
    transform: scale(1.05);
}

.gift-product-name {
    font-family: var(--font-family-serif);
    font-size: 28px;
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin: 0 28px;
    /* padding: 26px 26px 20px 26px; */
    padding: 26px 0px 20px;
    border-bottom: 1px dashed #D2A866;
    line-height: 1.4;
}

.gift-product-desc {
    font-size: 20px;
    color: #878787;
    margin: 0;
    padding: 15px 26px 26px 26px;
    line-height: 1.5;
}

/* ==================== 按关系分量选礼 ==================== */
.gift-relationship-section {
    padding: 80px 0;
    background-color: var(--color-bg-primary);
}

.gift-relationship-header {
    text-align: center;
    margin-bottom: 60px;
}

.gift-relationship-header h2 {
    font-family: var(--font-family-serif);
    font-size: 40px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0;
}

.gift-relationship-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
}

.gift-relationship-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.gift-relationship-card {
    position: relative;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E9E9E9;
    transition: transform var(--transition-fast);
    aspect-ratio: 3/5;
}

.gift-relationship-card:hover {
    transform: translateY(-4px);
}

.gift-relationship-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform var(--transition-slow);
}

.gift-relationship-card:hover .gift-relationship-bg {
    transform: scale(1.05);
}

.gift-relationship-text {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
}

.gift-relationship-card h3 {
    font-family: var(--font-family-serif);
    font-size: 30px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0;
    padding-bottom: 15px;
}

.gift-relationship-title-divider {
    width: 40px;
    height: 2px;
    background-color: #707070;
    margin: 0 auto 15px;
}

.gift-relationship-subtitle {
    font-size: 22px;
    color: var(--color-primary);
    margin: 0;
    padding-bottom: 15px;
    line-height: 1.5;
}

.gift-relationship-desc {
    font-size: 18px;
    color: #000000;
    margin: 0;
    line-height: 1.6;
}

.gift-relationship-footer {
    text-align: center;
    font-size: 24px;
    color: #5D5F60;
    margin: 0;
    line-height: 1.6;
}

/* ==================== 旧样式覆盖 ==================== */
.page-subtitle {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: var(--letter-spacing-sm);
    margin-bottom: 20px;
}

.category-tabs,
.product-grid,
.pagination,
.product-card,
.product-link,
.product-image,
.product-info,
.product-name,
.product-desc,
.product-price,
.product-overlay,
.view-detail,
.gift-intro,
.gift-text,
.gift-image {
    display: none;
}

/* ==================== 响应式设计 ==================== */

/* 平板横屏 (992px以下) */
@media (max-width: 992px) {
    .page-banner {
        height: 500px;
    }

    .page-banner-content {
        padding-top: 120px;
    }

    .page-banner-content h1 {
        font-size: 42px;
    }

    .page-banner-content p {
        font-size: 18px;
    }

    .gift-product-img {
        width: 130px;
        height: 130px;
    }

    .gift-product-img img {
        width: auto;
        height: auto;
    }

    .gift-hero {
        max-width: 90%;
    }

    .gift-products-wrapper {
        max-width: 90%;
        margin: 0 auto;
    }

    .gift-relationship-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gift-relationship-header h2 {
        font-size: 32px;
    }
}

/* 平板竖屏 (768px以下) */
@media (max-width: 768px) {
    .page-banner {
        height: 400px;
    }

    .page-banner-content {
        padding-top: 100px;
        text-align: center;
    }

    .page-banner-content h1 {
        font-size: 32px;
    }

    .page-banner-content p {
        font-size: 16px;
        padding: 0 20px;
        margin: 0 auto;
    }

    .gift-section {
        margin-bottom: 60px;
    }

    .product-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .gift-subtitle {
        font-size: 13px;
    }

    .gift-hero img {
        height: 160px;
    }

    .gift-products-wrapper {
        overflow: hidden;
    }

    .gift-products {
        gap: 16px;
    }

    .gift-product-link {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .gift-product-img {
        width: auto;
        height: auto;
        aspect-ratio: 1;
    }

    .gift-product-img img {
        width: auto;
        height: auto;
    }

    .gift-hero {
        max-width: 100%;
    }

    .gift-products-wrapper {
        max-width: 100%;
    }

    .gift-product-name {
        font-size: 18px;
    }

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

    .gift-relationship-header h2 {
        font-size: 28px;
    }

    .gift-relationship-section {
        padding: 60px 0;
    }

    .gift-relationship-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* 手机 (480px以下) */
@media (max-width: 480px) {
    .page-banner {
        height: 350px;
    }

    .page-banner-content {
        padding-top: 80px;
    }

    .page-banner-content h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .page-banner-content .banner-seal {
        height: 50px;
    }

    .gift-title {
        font-size: 24px;
    }

    .gift-section {
        margin-bottom: 50px;
    }

    .gift-hero img {
        height: 130px;
    }

    .gift-products {
        gap: 16px;
    }

    .gift-product-img {
        width: auto;
        height: auto;
    }

    .gift-product-name {
        font-size: 16px;
    }

    .gift-product-desc {
        font-size: 12px;
    }

    .gift-relationship-header h2 {
        font-size: 24px;
    }

    .gift-relationship-section {
        padding: 40px 0;
    }

    .gift-relationship-footer {
        font-size: 16px;
    }
}

@media (max-width: 375px) {
    .page-banner { height: 300px; }
    .page-banner-content { padding-top: 60px; }
    .page-banner-content h1 { font-size: 22px; margin-bottom: 12px; letter-spacing: 3px; }
    .gift-title { font-size: 22px; }
    .gift-subtitle { font-size: 12px; }
    .gift-hero img { height: 110px; }
    .gift-product-img { width: 80px; height: 80px; }
    .gift-product-name { font-size: 15px; padding: 16px 0px 12px; }
    .gift-product-desc { font-size: 11px; padding: 10px 12px 16px; }
    .gift-products-nav { width: 32px; height: 32px; }
    .gift-relationship-header h2 { font-size: 22px; }
    .gift-relationship-card h3 { font-size: 22px; }
    .gift-relationship-footer { font-size: 14px; }
}
@media (max-width: 320px) {
    .page-banner { height: 250px; }
    .page-banner-content { padding-top: 50px; }
    .page-banner-content h1 { font-size: 20px; }
    .page-banner-content p { font-size: 14px; }
    .gift-title { font-size: 20px; }
    .gift-hero img { height: 90px; }
    .gift-product-img { width: 70px; height: 70px; }
    .gift-product-name { font-size: 14px; }
    .gift-relationship-header h2 { font-size: 20px; }
    .gift-relationship-card h3 { font-size: 20px; }
    .gift-relationship-subtitle { font-size: 16px; }
    .gift-relationship-desc { font-size: 13px; }
}