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

body {
    font-family: "Microsoft YaHei", sans-serif;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-name {
    display: flex;
    flex-direction: column;
}

.company-name h1 {
    font-size: 20px;
    color: var(--dark-green);
    font-weight: bold;
}

.company-name p {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 2px;
}

.logo {
    height: 40px;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: #333;
}

/* 底部样式优化 */
.footer {
    padding: 50px 0 20px;
    background-color: var(--light-green);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--dark-green);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #92c95e;
}

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

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

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #92c95e;
}

.footer-contact {
    text-align: center;
}

.contact-info {
    margin-bottom: 30px;
}

.service-time {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.phone {
    font-size: 24px;
    color: #92c95e;
    font-weight: bold;
}

.qr-code img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qr-code p {
    color: #999;
    font-size: 14px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer-bottom p {
    margin: 5px 0;
}

/* 响应式适配 */
@media screen and (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-nav {
        margin-bottom: 40px;
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-section {
        flex: 0 0 calc(33.33% - 20px);
    }

    .company-name h1 {
        font-size: 16px;
    }

    .company-name p {
        font-size: 10px;
    }
}

@media screen and (max-width: 768px) {
    .footer-section {
        flex: 0 0 calc(50% - 15px);
    }

    .company-name p {
        display: none;
    }

    .logo-container {
        gap: 10px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }

    .nav-menu li {
        margin: 10px 0;
    }
}

@media screen and (max-width: 576px) {
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        flex: 0 0 100%;
    }

    .phone {
        font-size: 20px;
    }

    .qr-code img {
        width: 100px;
        height: 100px;
    }
}

/* 汉堡菜单按钮样式 */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    margin-right: 15px;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* 菜单打开时的动画效果 */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu li a {
        font-size: 16px;
        padding: 10px 20px;
    }
}

:root {
    --primary-color: #92c95e;      /* 主题绿色 */
    --secondary-color: #7ab042;    /* 深一点的绿色，用于悬停等状态 */
    --light-green: #e8f4d9;        /* 浅绿色，用于背景等 */
    --dark-green: #5c8a23;         /* 深绿色，用于重要文字等 */
    --text-color: #333333;
    --light-text: #666666;
    --lighter-text: #999999;
    --white: #ffffff;
    --border-color: #e8e8e8;
    --bg-gray: #f5f5f5;
}

/* 按钮样式 */
.btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* 链接样式 */
a {
    color: var(--dark-green);
}

a:hover {
    color: var(--secondary-color);
}

/* 导航菜单激活状态 */
.nav-menu .active {
    color: var(--primary-color);
}

/* 标题装饰 */
.section-title h2::after {
    background-color: var(--primary-color);
}

/* 表单元素焦点状态 */
input:focus, textarea:focus {
    border-color: var(--primary-color);
}

/* 按钮和交互元素 */
.more-link, .read-more {
    color: var(--dark-green);
}

.more-link:hover, .read-more:hover {
    color: var(--secondary-color);
}

/* 卡片悬停效果 */
.product-card:hover, .news-card:hover {
    border-color: var(--primary-color);
}

/* 页面banner背景 */
.page-banner {
    background-color: var(--light-green);
}