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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.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;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: #333;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav ul li a:hover, 
.nav ul li a.active {
    color: #007bff;
}

/* 轮播图样式 */
.swiper {
    width: 100%;
    height: 500px;
    margin-top: 70px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主要内容区域样式 */
.main {
    padding: 40px 0;
}

.about-section, .products-section, .advantage-section {
    padding: 60px 0;
}

.about-section h2, .products-section h2, .advantage-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
    position: relative;
}

.about-section h2:after, .products-section h2:after, .advantage-section h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    transform: translateX(-50%);
}

.about-section p {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 800px;
    font-size: 16px;
    line-height: 1.8;
}

.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn-more {
    display: inline-block;
    padding: 10px 25px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 16px;
}

.btn-more:hover {
    background-color: #0056b3;
}

/* 产品部分 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.product-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 5px;
}

.product-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.product-item p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.product-item .btn-more {
    padding: 8px 15px;
    font-size: 14px;
}

/* 企业优势 */
.advantage-section {
    background-color: #f9f9f9;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3, .footer-links h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #007bff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .nav {
        width: 100%;
        display: none;
    }
    
    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    .nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .swiper {
        height: 300px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
} 

/* 语言切换下拉菜单样式 */
.language-switch.dropdown {
    position: relative;
}
.language-switch .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    font-size: 12px;
    padding: 2px 7px;
    min-width: 60px;
    height: 24px;
}
.language-switch .lang-icon {
    margin-left: 4px;
    font-size: 12px;
}
.language-switch .dropdown-toggle svg {
    width: 13px !important;
    height: 9px !important;
}
.language-switch .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 4px;
    z-index: 9999;
    padding: 6px 0;
}
.language-switch.dropdown.open .dropdown-menu {
    display: block;
}
.language-switch .dropdown-menu li {
    list-style: none;
}
.language-switch .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.2s;
}
.language-switch .dropdown-menu a:hover {
    background: #f0f4fa;
    color: #007bff;
}
.language-switch .dropdown-menu a svg {
    width: 13px !important;
    height: 9px !important;
} 