/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: #e67e22;
    margin-bottom: 15px;
}

.section-title .line {
    width: 80px;
    height: 3px;
    background-color: #e67e22;
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #d35400;
}

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

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

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

.logo p {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.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 ease;
}

.nav ul li a:hover {
    color: #e67e22;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 移动端导航菜单 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 20px 0;
}

.mobile-menu ul li {
    text-align: center;
    padding: 15px 0;
}

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

.mobile-menu ul li a:hover {
    color: #e67e22;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

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

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

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

/* 产品展示 */
.products {
    padding: 80px 0;
}

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

.product-item {
    background-color: #fff;
    border-radius: 8px;
    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 20px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    padding: 15px;
    font-size: 18px;
    color: #333;
}

.product-item p {
    padding: 0 15px 20px;
    color: #666;
    font-size: 14px;
}

/* 联系方式 */
.contact {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: #e67e22;
    margin-right: 15px;
}

.contact-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: #666;
    text-decoration: none;
}

.contact-item a:hover {
    color: #e67e22;
}

.wechat-qr {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.wechat-qr h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.wechat-qr img {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
}

.wechat-qr p {
    margin-top: 15px;
    color: #666;
}

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

/* 移动端底部联系菜单 */
.mobile-contact {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.contact-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s ease;
}

.contact-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.contact-btn.phone i {
    color: #27ae60;
}

.contact-btn.wechat i {
    color: #e74c3c;
}

.contact-btn span {
    font-size: 12px;
}

.contact-btn:hover {
    background-color: #f5f5f5;
}

/* 微信二维码模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666;
}

.btn-wechat {
    display: inline-block;
    padding: 10px 20px;
    background-color: #07C160;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-text,
    .contact-info {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .mobile-contact {
        display: flex;
    }
    
    /* 为移动端添加底部边距，避免内容被底部菜单遮挡 */
    .footer {
        padding-bottom: 80px;
    }
    
    .contact {
        padding-bottom: 120px;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}