/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1600px;
    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;
}

/* 导航控制区域 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.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);
    }
}

.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;
}

/* 激活状态 */
.dropdown.active .nav-link,
.nav-menu .active .nav-link {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 产品中心内容区域 */
.products-content {
    padding: 80px 0 60px;
    background: linear-gradient(to right, 
        transparent 0%, 
        transparent calc(50% - 780px), 
        #f8f8f8 calc(50% - 780px), 
        #f8f8f8 calc(50% + 780px), 
        transparent calc(50% + 780px), 
        transparent 100%);
}

.products-content .container {
    max-width: 1300px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
    padding: 0 20px;
}

.product-item {
    background: #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px 20px;
    text-align: center;
    background: #f0f0f0;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: #999;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #999;
    transform: translateY(-1px);
}

/* 底部标语 */
.bottom-slogan-section {
    background: #fff;
    padding: 80px 0;
    text-align: center;
}

.bottom-slogan-image {
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .product-image {
        height: 300px;
    }
    
    .product-name {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #C6AA76;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: 0.3s;
        padding-top: 50px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-controls {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .products-content {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .products-content {
        padding: 30px 0 50px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .read-more-btn {
        padding: 10px 25px;
        font-size: 12px;
    }
    
    .product-image {
        height: 200px;
    }
}  

.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);
    }
}