/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.navbar {
    background: #C6AA76 !important;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 30px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-menu li {
    position: relative;
    margin: 0 15px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #C6AA76;
}

.dropdown-menu .active {
    background-color: #C6AA76;
    color: #fff !important;
}

/* 导航控制 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.music-toggle {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.music-toggle:hover,
.music-control:hover .music-toggle {
    color: #f0f0f0;
}

.music-control:hover .music-icon {
    filter: brightness(0) invert(0.9); /* hover时稍微变暗 */
}

.language-switch {
    color: #fff;
    font-size: 14px;
}

.language-switch .active {
    font-weight: bold;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主容器 - 调整布局间距 */
.product-main {
    padding: 80px 0 60px 0;
    background: #ffffff;
}

.product-main .container {
    display: flex;
    gap: 110px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1520px;
    margin: 0 auto;
    padding: 80px;
    background-color: #f5f5f5;
}

.product-content {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.product-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
}

/* 产品信息区域 */
.product-info-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* PRODUCT标题 - 金色 */
.product-title {
    font-size: 48px;
    font-weight: 300;
    color: #c6aa76;
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-family: 'Arial', sans-serif;
}

/* 产品规格 */
.product-specs {
    margin-bottom: 50px;
}

.product-specs .spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.product-specs .spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    color: #c6aa76;
    font-weight: 500;
    min-width: 80px;
    font-size: 18px;
}

.spec-value {
    color: #c6aa76;
    font-weight: 600;
    font-size: 18px;
}

/* 面料解析区域 */
.fabric-analysis {
    margin-top: 70px;
}

.analysis-title {
    font-size: 24px;
    font-weight: 600;
    color: #c6aa76;
    margin-bottom: 8px;
}

.analysis-subtitle {
    font-size: 12px;
    color: #c6aa76;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.analysis-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

/* 大图容器 */
.main-product-image {
    width: 100%;
    max-width: 600px;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    transition: transform 0.3s ease;
}

.main-product-image img:hover {
    transform: scale(1.02);
}

/* 轮播图容器 - 统一结构 */
.product-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 70px;
    width: 100%;
    max-width: 580px;
    justify-content: center;
}

/* 轮播图按钮样式 */
.carousel-btn-prev,
.carousel-btn-next {
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    z-index: 10;
    border-radius: 50%;
    background-color: rgba(198, 170, 118, 0.1);
}

/* 移除按钮hover效果 */

/* 确保按钮正确排列 */
.carousel-btn-prev {
    order: 1 !important;
}

.carousel-btn-next {
    order: 3 !important;
}

.carousel-btn-prev img,
.carousel-btn-next img,
.carousel-btn-icon {
    width: 50px;
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* 左按钮旋转180度（除了套装和T恤页面） */
.carousel-btn-prev img {
    transform: rotate(180deg);
}

/* 套装和T恤页面的左按钮不旋转 */
body.suit-page .carousel-btn-prev img,
body.tshirt-page .carousel-btn-prev img {
    transform: none;
}

/* 移除图标hover效果 */

/* 轮播图片容器 */
.carousel-images {
    display: flex;
    justify-content: flex-start; /* 改为左对齐，避免居中造成位移 */
    align-items: center;
    gap: 0;
    order: 2;
    flex: 1;
    overflow: hidden;
    width: 450px;
}

.carousel-images-container {
    display: flex;
    gap: 0;
    transition: transform 0.3s ease;
    justify-content: center;
    font-size: 0; /* 消除行内元素间隙 */
    border-radius: 0; /* 去掉圆角 */
}

/* 轮播小图 */
.carousel-thumb {
    width: 80px;
    height: 120px;
    min-width: 80px;
    object-fit: cover;
    border-radius: 0; /* 去掉圆角 */
    cursor: pointer;
    transition: transform 0.3s ease;
    border: none;
    flex-shrink: 0;
    display: block; /* 确保是块级元素 */
    font-size: 14px; /* 重置字体大小 */
}

.carousel-thumb.active {
    transform: scale(1.1);
    border: none;
}

.carousel-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
    border: none;
}

/* 底部标语区域 */
.bottom-slogan-section {
    background-color: #fff;
    padding: 80px 0;
    text-align: center;
}

.bottom-slogan-image {
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-main {
        padding: 120px 0 60px 0;
    }
    
    .product-main .container {
        gap: 60px;
        padding: 40px 20px;
    }
    
    .product-title {
        font-size: 32px;
    }
    
    .main-product-image {
        height: 500px;
    }
    
    .product-carousel {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .product-main {
        padding: 100px 0 60px 0;
        background: #f5f5f5;
    }
    
    .product-main .container {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
        align-items: stretch;
    }
    
    .product-content {
        max-width: 100%;
        flex: none;
        margin-left: 0;
    }
    
    .product-image-section {
        max-width: 100%;
        order: -1;
        flex: none;
        height: auto;
        justify-content: center;
        margin-right: 0;
    }
    
    .main-product-image {
        height: 400px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .carousel-images {
        justify-content: center;
    }
    
    .carousel-thumb {
        width: 80px;
        height: 120px;
        min-width: 80px;
    }
    
    .product-carousel {
        width: 350px;
    }
    
    .carousel-btn-prev,
    .carousel-btn-next {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .product-main {
        padding: 80px 0 40px 0;
    }
    
    .product-main .container {
        gap: 30px;
        padding: 20px 15px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .main-product-image {
        height: 300px;
    }
    
    .product-carousel {
        width: 280px;
    }
    
    .carousel-btn-prev,
    .carousel-btn-next {
        width: 30px;
        height: 30px;
    }
    
    .carousel-thumb {
        width: 45px;
        height: 60px;
        min-width: 45px;
    }
} 

/* 修复文字符号按钮方向 */
.carousel-btn-prev:not([alt]) {
    transform: scaleX(-1);
    font-size: 24px;
    color: #c6aa76;
}

.carousel-btn-next:not([alt]) {
    font-size: 24px;
    color: #c6aa76;
} 

/* 旧结构的轮播图图片容器 */
.carousel-images-container .carousel-images {
    display: flex;
    gap: 0;
    justify-content: center;
    max-width: 580px;
    margin: 0 auto;
}

/* 旧结构的按钮样式 */
.product-carousel .carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(198, 170, 118, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #c6aa76;
    transition: all 0.3s ease;
}

/* 移除旧按钮hover效果 */

/* 兼容按钮ID选择器 */
#prevBtn,
#nextBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(198, 170, 118, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #c6aa76;
    transition: all 0.3s ease;
}

/* 为ID按钮的左按钮添加旋转 */
#prevBtn img {
    transform: rotate(180deg);
}

/* 为其他结构的按钮也添加支持 */
.carousel-btn.prev-btn img,
.carousel-btn.carousel-btn-prev img {
    transform: rotate(180deg);
}

/* 套装和T恤页面的左按钮不旋转 */
body.suit-page .carousel-btn.prev-btn img,
body.suit-page .carousel-btn.carousel-btn-prev img,
body.tshirt-page .carousel-btn.prev-btn img,
body.tshirt-page .carousel-btn.carousel-btn-prev img {
    transform: none;
}

/* 移除ID按钮hover效果 */ 

/* JavaScript控制的轮播状态类 */
.carousel-active {
    width: 400px; /* 5张图 × 80px = 400px */
    overflow: hidden;
    position: relative;
}

.carousel-container-active {
    display: flex;
    gap: 0;
    transition: transform 0.3s ease;
    font-size: 0; /* 消除行内元素间隙 */
}

.carousel-container-active .carousel-thumb {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    object-fit: cover;
    font-size: 14px; /* 重置字体大小 */
} 

/* 移除轮播按钮背景色 */
.carousel-btn-prev,
.carousel-btn-next,
.carousel-btn,
#prevBtn,
#nextBtn {
    background: none !important;
} 

/* 全局强制移除轮播按钮背景色，覆盖所有媒体查询 */
.product-carousel .carousel-btn-prev,
.product-carousel .carousel-btn-next,
.product-carousel .carousel-btn,
#prevBtn,
#nextBtn {
    background: none !important;
}  

.music-control {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.music-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* 将图标变为白色 */
}

.music-icon.rotating {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}