/* ============================================
   基础重置 - 移动端优先
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #ff9800;
    --text-dark: #212121;
    --text-gray: #616161;
    --bg-light: #f1f8f4;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ============================================
   容器
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   导航栏 - 移动端优先
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 2.75rem;
    width: auto;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-btn span {
    width: 1.75rem;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

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

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.nav-menu {
    position: fixed;
    top: 4.75rem;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: calc(100vh - 4.75rem);
    overflow-y: auto;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    text-align: left;
    transition: all 0.3s ease;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

/* ============================================
   Hero区域
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 4.75rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.85) 0%, rgba(255, 152, 0, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

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

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

.btn-full {
    width: 100%;
}

/* ============================================
   通用区块样式
   ============================================ */
section {
    padding: 4rem 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ============================================
   介绍区块
   ============================================ */
.intro {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.intro-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-img img {
    border-radius: 1rem;
    box-shadow: var(--shadow);
    width: 100%;
}

.intro-content h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.intro-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ============================================
   服务区块
   ============================================ */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-list {
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-list li {
    color: var(--text-gray);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ============================================
   新闻区块
   ============================================ */
.news {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.news-item {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.news-img {
    overflow: hidden;
    height: 200px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-img img {
    transform: scale(1.1);
}

.news-body {
    padding: 1.5rem;
}

.news-time {
    color: var(--text-gray);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.75rem;
}

.news-body h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.news-body p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-more:hover {
    gap: 1rem;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 3rem 0 1.5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #cccccc;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

.social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
}

/* ============================================
   页面头部
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
    margin-top: 4.75rem;
}

.page-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   产品页面
   ============================================ */
.filter-bar {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-item {
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    border: 2px solid #ddd;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.filter-item:hover,
.filter-item.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products {
    padding: 3rem 0;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.product-box {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.product-photo {
    height: 250px;
    overflow: hidden;
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-box:hover .product-photo img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
}

.product-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-info h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.highlight {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.product-btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-box.hidden {
    display: none;
}

/* ============================================
   关于我们页面
   ============================================ */
.history {
    padding: 4rem 0;
}

.history-list {
    position: relative;
    padding: 2rem 0;
}

.history-list::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.history-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.history-year {
    flex-shrink: 0;
    width: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.history-content {
    flex: 1;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.history-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.history-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.history-content img {
    border-radius: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.team {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.team-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-member {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

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

.member-photo {
    height: 200px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.member-info p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.values {
    padding: 4rem 0;
}

.values-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-box {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.value-img {
    margin-bottom: 1.5rem;
}

.value-img img {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto;
    border-radius: 50%;
}

.value-box h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-box p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ============================================
   联系我们页面
   ============================================ */
.contact {
    padding: 4rem 0;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-form-area h2,
.contact-info-area h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-form-area p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-block {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 1rem;
}

.info-icon img {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.info-text p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-hint {
    display: block;
    color: var(--primary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.map-area {
    margin-top: 2rem;
}

.map-area h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.map-box {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-box img {
    width: 100%;
    height: auto;
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ============================================
   响应式设计 - 平板
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .menu-btn {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        background: none;
        box-shadow: none;
        transform: none;
        padding: 0;
        gap: 0;
        max-height: none;
        overflow-y: visible;
    }

    .nav-link {
        padding: 0.5rem 1.25rem;
        border: none;
        text-align: center;
    }

    .nav-link:hover {
        background-color: transparent;
    }

    .nav-link.active::after {
        width: 100%;
        height: 3px;
        bottom: 0;
        left: 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .intro-wrapper {
        flex-direction: row;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-box {
        flex-direction: row;
    }

    .product-photo {
        width: 40%;
        height: auto;
        min-height: 300px;
    }

    .product-info {
        width: 60%;
    }

    .product-btns {
        flex-direction: row;
    }

    .form-grid {
        flex-direction: row;
    }

    .contact-wrapper {
        flex-direction: row;
    }

    .contact-form-area {
        flex: 1;
    }

    .contact-info-area {
        flex: 1;
    }

    .team-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   响应式设计 - 桌面
   ============================================ */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .values-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .history-list::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .history-item {
        width: 50%;
    }

    .history-item:nth-child(odd) {
        flex-direction: row;
        padding-right: 3rem;
    }

    .history-item:nth-child(even) {
        flex-direction: row-reverse;
        margin-left: auto;
        padding-left: 3rem;
    }

    .history-year {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

