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

:root {
    --primary: #28a745; /* 主绿色 */
    --secondary: #218838; /* 深绿色 */
    --accent: #20c997; /* 蓝绿色 */
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-green: #e8f5e9; /* 浅绿色背景 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h2 {
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary);
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

section {
    padding: 80px 0;
}

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

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 头部导航 */
header {
    background-color: var(--primary);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.logo h1 {
    color: var(--white);
    font-size: 1.4rem;
    margin: 0;
}

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

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: var(--white);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 为锚点添加偏移量，防止被固定导航栏遮挡 */
.project-item {
    scroll-margin-top: 90px;
}

/* 中心简介 */
.center-intro {
    background: var(--light-green);
    padding-top: 120px;
}

.intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-content img {
    width: 45%;
}

.intro-text {
    width: 55%;
}

.intro-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 品牌项目 */
.projects {
    background: var(--white);
}

.project-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    background: var(--light-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-item img {
    width: 45%;
    height: 300px;
    object-fit: cover;
}

.project-info {
    width: 55%;
    padding: 15px;
}

.project-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* 联系我们 */
.contact {
    background: var(--light-green);
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.8;
}

.contact-info i {
    color: var(--primary);
    margin-right: 15px;
    min-width: 20px;
    font-size: 1.2rem;
}

/* 地图容器改为图片展示 */
.map-container {
    margin-top: 30px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    width: 30%;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
    box-shadow: none;
}

.footer-links {
    width: 20%;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links ul li a {
    color: #adb5bd;
}

.footer-links ul li a:hover {
    color: var(--white);
}

/* 关注我们区域 - 二维码展示 */
.footer-qrcode {
    text-align: center;
}
.footer-qrcode img {
    display: inline-block;
    width: 100%;
    max-width: 150px;
    height: auto;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}
.footer-qrcode p {
    color: #adb5bd;
    margin-top: 8px;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
    }
    
    .intro-content img,
    .intro-text {
        width: 100%;
    }
    
    .project-item,
    .project-item:nth-child(even) {
        flex-direction: column;
    }
    
    .project-item img,
    .project-info {
        width: 100%;
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-logo,
    .footer-links {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 12px;
    }
    
    .footer-logo,
    .footer-links {
        width: 100%;
    }
    
    .center-intro {
        padding-top: 100px;
    }
    
    .project-item img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .contact-info {
        padding: 20px;
    }
}