/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e7d32;
    --secondary: #4caf50;
    --accent: #81c784;
    --light-green: #c8e6c9;
    --bg-light: #f1f8f4;
    --bg-white: #ffffff;
    --text-dark: #1b5e20;
    --text: #2e7d32;
    --text-light: #66bb6a;
    --text-gray: #757575;
    --border: #c8e6c9;
    --shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
    --shadow-lg: 0 8px 24px rgba(46, 125, 50, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 顶部栏 */
.top-bar {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.top-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.brand-slogan {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.top-nav {
    display: flex;
    gap: 35px;
}

.nav-item {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

/* 主视觉区 */
.main-visual {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85) 0%, rgba(27, 94, 32, 0.9) 100%);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    padding: 0 20px;
    max-width: 900px;
}

.visual-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.visual-subtitle {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--light-green);
    font-weight: 500;
}

.visual-desc {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}

/* 内容区域 */
.content-area {
    padding: 0;
}

.block-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 区块标题 */
.block-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 80px;
}

.block-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.block-subtitle {
    font-size: 18px;
    color: var(--text-light);
    font-style: italic;
}

/* 介绍区块 */
.intro-block {
    background: var(--bg-white);
}

.intro-text {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* 服务区块 */
.services-block {
    background: var(--bg-light);
    padding-bottom: 80px;
}

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

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.card-link:hover {
    color: var(--secondary);
}

.card-tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--light-green);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 特色区块 */
.features-block {
    background: var(--bg-white);
    padding-bottom: 80px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

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

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border);
    transition: all 0.3s;
}

.feature-item:hover .feature-icon {
    border-color: var(--primary);
    transform: scale(1.1);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--text-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--bg-white);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* 详情页面 */
.about-detail {
    padding: 80px 0;
    background: var(--bg-white);
}

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.detail-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.detail-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.detail-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 项目展示 */
.projects-showcase {
    padding: 80px 0;
    background: var(--bg-light);
}

/* 新闻列表 */
.news-list {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.news-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.news-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 联系页面 */
.contact-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.detail-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 信息区块 */
.info-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.info-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.info-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.info-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 页脚 */
.main-footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .top-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        z-index: 99;
    }

    .top-nav.active {
        left: 0;
    }

    .top-nav .nav-item {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .visual-title {
        font-size: 42px;
    }

    .detail-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .visual-title {
        font-size: 32px;
    }

    .block-title {
        font-size: 32px;
    }

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

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-container {
        padding: 0 20px;
    }

    .block-container {
        padding: 0 20px;
    }

    .visual-title {
        font-size: 28px;
    }

    .page-title {
        font-size: 32px;
    }
}
