/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    max-height: 50px;
}

/* 语言切换 */
.language-switch {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.lang-btn {
    padding: 5px 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

/* 导航菜单 */
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e91e63;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* 确保移动端菜单按钮在手机上可见 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: relative;
    }
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* 移动端导航菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* 移动端菜单激活状态 */
.mobile-menu.active {
    display: block;
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 10px 0;
}

/* 主内容区 */
main {
    margin-top: 80px;
}

/* 横幅区域 */
.banner {
    background-color: #e91e63;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
}

.banner-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 关于我们区域 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #333;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 联系客服区域 */
.contact {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.qrcode {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qrcode img {
    max-width: 200px;
    margin-bottom: 20px;
}

.qrcode p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* 产品列表页面 */
.page-title {
    background-color: #e91e63;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 2rem;
}

/* 产品列表 */
.products {
    padding: 80px 0;
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 289;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.product-desc {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 导航栏响应式 */
    .nav {
        display: none;
    }
    
    .language-switch {
        margin-right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    /* 横幅区域 */
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    /* 关于我们区域 */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    /* 产品网格 */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端菜单按钮动画 */
    .mobile-menu-btn.active .menu-icon {
        background-color: transparent;
    }
    
    .mobile-menu-btn.active .menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-menu-btn.active .menu-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }
}

@media (max-width: 480px) {
    /* 容器内边距 */
    .container {
        padding: 0 15px;
    }
    
    /* 横幅区域 */
    .banner {
        padding: 60px 0;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    /* 标题样式 */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    /* 各区域内边距 */
    .about,
    .contact,
    .products {
        padding: 50px 0;
    }
    
    /* 二维码大小 */
    .qrcode img {
        max-width: 150px;
    }
}