/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #777;
    background-color: #fff;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 首页导航栏样式 */
.navbar {
    background: transparent;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 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: #C6AA76;
    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(0, 0, 0, 0.3);
    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: #777;
    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-toggle {
    color: #C6AA76;
    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: #C6AA76;
    font-size: 14px;
}

.language-switch .active {
    font-weight: bold;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #C6AA76;
    margin: 3px 0;
    transition: 0.3s;
}

/* 激活状态 */
.dropdown.active .nav-link,
.nav-menu .active .nav-link {
    background-color: rgba(0, 0, 0, 0.3);
}

/* 首页专用样式 */

/* Banner轮播区域 */
.banner-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 左侧植物装饰 */
.hero-left-plants {
    position: absolute;
    left: 5%;
    top: 20%;
    z-index: 2;
}

.plant-left {
    max-height: 400px;
    width: auto;
}

/* 中央主要展示区域 */
.hero-main-display {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.stepped-platform {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform {
    max-width: 400px;
    height: auto;
}

/* 金色毛巾搭在展示台上 */
.golden-towel-display {
    position: absolute;
    left: -100px;
    top: -50px;
    z-index: 4;
}

.golden-towel {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* 白色鹿角装饰品在展示台顶部 */
.antler-decoration {
    position: absolute;
    top: -80px;
    right: 20px;
    z-index: 5;
}

.antler {
    max-width: 120px;
    height: auto;
}

/* 底部粉色花朵 */
.bottom-flower {
    position: absolute;
    bottom: -150px;
    left: 50px;
    z-index: 2;
}

.flower {
    max-width: 100px;
    height: auto;
}

/* 右侧英文标语和植物 */
.hero-right-content {
    position: absolute;
    right: 5%;
    top: 15%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 150px;
}

.hero-text {
    text-align: right;
    line-height: 1.1;
}

.text-line {
    font-size: 48px;
    font-weight: 300;
    color: #C6AA76;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.text-line:first-child {
    font-weight: 600;
    color: #B8956F;
}

/* 右侧植物装饰 */
.hero-right-plants {
    align-self: flex-end;
}

.plant-right {
    max-height: 200px;
    width: auto;
}

/* Banner轮播控制 */
.banner-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 30px;
}

.banner-prev,
.banner-next {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* 公司建筑区域 */
.building-section {
    padding: 100px 0;
    background: #fff;
}

.building-section .container {
    max-width: 1400px;
}

.building-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.building-image {
    width: 100%;
}

.building-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.building-content {
    padding-left: 40px;
}

.mission-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mission-item p {
    font-size: 18px;
    color: #777;
    line-height: 1.8;
}

.mission-label {
    color: #C6AA76;
    font-weight: bold;
}

.mission-text {
    color: #777;
    font-weight: normal;
}

/* 生产设备区域 */
.equipment-section {
    padding: 100px 0;
    background: #fff;
}

.equipment-section .container {
    max-width: 1400px;
}

.equipment-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.equipment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.equipment-overlay {
    position: absolute;
    top: 50px;
    right: 50px;
    text-align: right;
    color: white;
}

.equipment-title {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.equipment-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.explore-button {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    font-weight: normal;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.explore-button:hover {
    background: #fff;
    color: #777;
    transform: translateY(-2px);
}

/* 蓝色毛巾产品区域 */
.product-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.product-image {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img {
    width: 1600px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1600px;
    max-width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 左侧英文定位文字 */
.product-left-text {
    position: absolute;
    top: 50px;
    left: 50px;
    color: #fff;
    pointer-events: auto;
}

.global-text {
    font-size: 22px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* 右侧产品中心文字 */
.product-right-text {
    position: absolute;
    top: 50px;
    right: 50px;
    color: #fff;
    text-align: right;
    pointer-events: auto;
}

.product-center-title {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-center-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-explore-button {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    font-weight: normal;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.product-explore-button:hover {
    background: #fff;
    color: #777;
    transform: translateY(-2px);
}

/* 四个分类图片区域 */
.categories-section {
    padding: 100px 0;
    background: #fff;
}

.categories-section .container {
    max-width: 1400px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-item {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.category-item a {
    text-decoration: none;
    color: #777;
    display: block;
    transition: transform 0.3s ease;
}

.category-item a:hover {
    transform: translateY(-5px);
}

.category-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-item:hover .category-img {
    transform: scale(1.05);
}

.category-title {
    font-size: 18px;
    color: #777;
    margin-top: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-item:hover .category-title {
    color: #C6AA76;
}

/* 底部标语和社交图标区域 */
.bottom-section {
    padding: 80px 0;
    background: #fff;
}

.bottom-content {
    text-align: center;
}

.bottom-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 950px;
    margin: 0 auto 30px auto;
    gap: 30px;
}

.bottom-left,
.bottom-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-text-img,
.right-text-img {
    max-width: 280px;
    height: 28px;
    object-fit: contain;
}

/* 社交图标区域 */
.social-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.social-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #C6AA76;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    position: relative;
}

.social-icon:hover {
    background: #b8956f;
    transform: translateY(-3px);
}

.social-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* 如果图片加载失败，显示背景色 */
.social-icon img:not([src]),
.social-icon img[src=""] {
    display: none;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: transparent;
}

/* 二维码弹出框 */
.qr-popup {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.social-icon:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.qr-popup img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

/* 首页响应式样式 */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .hero-left-plants,
    .hero-right-content {
        position: relative;
        right: auto;
        left: auto;
        top: auto;
    }
    
    .building-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-img {
        height: 250px;
    }
    
    .banner-nav {
        padding: 0 15px;
    }
    
    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .text-line {
        font-size: 32px;
    }
    
    .global-text {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-img {
        height: 200px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .banner-slider {
        height: 60vh;
    }
    
    .banner-nav {
        display: none;
    }
}  

.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);
    }
}