/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
}

/* 顶部导航 */
.header-children {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

/* 横幅容器 - 核心：约束5:2的宽高比 */
.gucci-banner {
    position: relative;
    width: 100%;
    /* 关键：用padding-top实现5:2的固定比例（2/5=40%） */
    padding-top: 40%;
    overflow: hidden;
    margin-bottom: 60px;
    /* 可选：防止容器高度塌陷，子元素绝对定位时需要 */
    height: 0;
}

/* 横幅图片 - 适配5:2容器 */
.banner-img {
    /* 绝对定位填充整个容器 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* 保持图片比例，覆盖容器（裁剪超出部分） */
    object-fit: cover;
    /* 可选：如果需要图片完整显示（不裁剪），改用object-fit: contain; */
    /* object-fit: contain; */
}

.banner-overlay {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 500px;
    z-index: 10;
}

.banner-overlay h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.banner-overlay p {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* 主内容区 */
.gucci-main {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px 60px;
}

/* 页面标题 */
.gucci-page-title {
    text-align: center;
    margin: 0 0 40px;
    padding: 60px 0 20px;
}

.gucci-page-title h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.gucci-page-title p {
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 筛选按钮 */
.gender-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0 40px;
    position: sticky;
    top: 59px;
    background-color: white;
    z-index: 5;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 50px;
    min-width: 80px;
    text-align: center;
}

.filter-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* 产品网格 */
.gucci-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid #e5e5e5;
}

/* 产品项 */
.gucci-product-item {
    position: relative;
    padding: 40px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gucci-product-item:nth-child(4n+1) {
    border-left: 1px solid #e5e5e5;
}

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

/* 轮播样式（核心） */
.product-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3; /* 固定产品图比例 */
    overflow: hidden;
    margin-bottom: 20px;
}

/* 左右切换箭头（核心调整） */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; /* 增大尺寸 */
    height: 40px;
    background: transparent;
    border: none;
    font-size: 36px; /* 增大符号大小 */
    color: #000;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 0;
    opacity: 0; /* 默认隐藏 */
}

/* 箭头向内侧移动（确保完全显示） */
.carousel-arrow.prev {
    left: 10px; /* 从外部移至内部 */
}

.carousel-arrow.next {
    right: 10px;
}

/* 仅当鼠标在产品格子内时显示箭头 */
.gucci-product-item:hover .carousel-arrow {
    opacity: 1;
}

/* 箭头悬停效果 */
.carousel-arrow:hover {
    color: #666;
}

/* 轮播图片容器 */
.carousel-images {
    width: 100%;
    height: 100%;
}

/* 轮播图片样式 */
.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-img.active {
    opacity: 1;
    z-index: 1;
}

/* 产品信息 */
.product-info {
    text-align: center;
}

.product-name {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 响应式适配 */
@media (max-width: 1400px) {
    .gucci-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gucci-product-item:nth-child(4n) {
        border-right: 1px solid #e5e5e5;
    }
    .gucci-product-item:nth-child(3n) {
        border-right: none;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .gucci-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gucci-product-item:nth-child(3n) {
        border-right: 1px solid #e5e5e5;
    }
    .gucci-product-item:nth-child(2n) {
        border-right: none;
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 28px;
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 768px) {
    .gucci-product-grid {
        grid-template-columns: 1fr;
    }
    .gucci-product-item {
        border-right: none;
    }
    .gucci-page-title h1 {
        font-size: 28px;
    }
    .gender-filter {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 24px;
        left: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .gucci-main {
        padding: 0 20px 40px;
    }
    .gucci-product-item {
        padding: 20px;
    }
    .banner-overlay h2 {
        font-size: 2rem;
    }
    .banner-overlay p {
        font-size: 1rem;
    }
}