* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f9f7f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    background: linear-gradient(135deg, #f1eeeb, #369168);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

/* 确保header-content内部的容器正确居中 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* 限制内容区域最大宽度 */
    margin: 0 auto; /* 居中 */
    padding: 0 20px;
    width: 100%; /* 确保容器填满header */
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-left: 12px;
    font-weight: 700;
}

.logo-icon {
    width: 180px;
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

nav li {
    flex-shrink: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    white-space: nowrap;
    display: block;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* 联系我们二维码样式 */
.contact-item {
    position: relative;
}

.qrcode-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    width: 180px;
    text-align: center;
    border: 1px solid #eee;
}

.qrcode-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.qrcode-popup img {
    width: 140px;
    height: 140px;
    display: block;
    margin: 0 auto 12px;
    border-radius: 4px;
}

.qrcode-popup p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* 关闭按钮 - 桌面端隐藏 */
.qrcode-popup .close-btn {
    margin-top: 10px;
    padding: 6px 15px;
    background: #369168;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
    display: none; /* 默认隐藏 */
    /* 添加水平居中 */
    margin-left: auto;
    margin-right: auto;
    display: block; /* 确保是块级元素才能居中 */
}

.qrcode-popup .close-btn:hover {
    background: #2a7a55;
}


/* 移动端遮罩层 */
.qrcode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: none; /* 默认隐藏 */
}

.qrcode-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .qrcode-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 280px;
        padding: 25px;
    }

    .qrcode-popup.active {
        transform: translate(-50%, -50%) scale(1);
    }

    .qrcode-popup img {
        width: 200px;
        height: 200px;
    }

    .qrcode-popup p {
        font-size: 1rem;
    }

    /* 移动端显示关闭按钮和遮罩层 */
    .qrcode-popup .close-btn {
        display: block; /* 移动端显示 */
        font-size: 0.9rem;
        padding: 8px 20px;
        /* 确保在移动端也居中 */
        margin-left: auto;
        margin-right: auto;
    }

    .qrcode-overlay {
        display: block; /* 移动端显示 */
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Hero区域样式 */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(rgba(241, 238, 235, 0.1), rgba(54, 145, 104, 0.1)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f9f7f5"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="%23369168" stroke-width="0.5" stroke-opacity="0.2"/></svg>');
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(241, 238, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(54, 145, 104, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #2a7a55;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto;
    color: #555;
    max-width: 700px;
    font-weight: 400;
    line-height: 2;
}

.hero p:first-of-type {
    margin-bottom: 1.2rem;
}

.hero p:last-of-type {
    margin-bottom: 10rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(to right, #369168, #2a7a55);
    color: white;
    box-shadow: 0 4px 15px rgba(54, 145, 104, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(54, 145, 104, 0.4);
}

.btn-secondary {
    background: white;
    color: #369168;
    border: 2px solid #369168;
    box-shadow: 0 4px 15px rgba(54, 145, 104, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(54, 145, 104, 0.3);
    background: rgba(54, 145, 104, 0.05);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #369168;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    nav a {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .logo h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    nav {
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }

    nav ul {
        justify-content: center;
        gap: 0.3rem;
    }

    nav a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    nav {
        margin-top: 0.5rem;
    }

    nav ul {
        gap: 0.2rem;
    }

    nav a {
        font-size: 0.8rem;
        padding: 5px 6px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}