/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green-900: #1b4332;
    --green-700: #2d6a4f;
    --green-600: #40916c;
    --green-500: #52b788;
    --green-100: #d8f3dc;
    --green-050: #f0faf3;
    --text-dark: #1a2e23;
    --text-body: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f8faf9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-500); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--text-dark); font-weight: 700; line-height: 1.3; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
}
.btn-primary { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.btn-primary:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover { background: #fff; color: var(--green-700); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-700); color: #fff; }

/* ===== Header ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--green-900); letter-spacing: 1px; }

.main-nav { display: flex; gap: 8px; }
.main-nav a {
    padding: 8px 18px; border-radius: var(--radius);
    color: var(--text-body); font-weight: 500; font-size: 15px;
}
.main-nav a:hover, .main-nav a.active { color: var(--green-700); background: var(--green-050); }

.header-phone {
    display: flex; align-items: center; gap: 6px;
    color: var(--green-700); font-weight: 700; font-size: 16px;
}
.phone-icon { font-size: 18px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; transition: var(--transition); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(27,67,50,.75), rgba(45,106,79,.55)), url('../images/hero.jpg') center/cover no-repeat;
    color: #fff; padding-top: 72px;
}
.hero-content { max-width: 720px; }
.hero-tag {
    display: inline-block; padding: 6px 18px; border-radius: 100px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    font-size: 14px; letter-spacing: 2px; margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.25);
}
.hero h1 { color: #fff; font-size: 52px; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 19px; opacity: .9; margin-bottom: 36px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 48px; margin-top: 64px; padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num { font-size: 40px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 14px; opacity: .8; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-light); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
    display: inline-block; color: var(--green-600); font-size: 14px;
    font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: 36px; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-light); }

/* ===== About preview ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-image img { width: 100%; height: 480px; object-fit: cover; transition: transform .6s ease; }
.about-image:hover img { transform: scale(1.03); }
.about-text h2 { font-size: 32px; margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.about-features { list-style: none; margin-top: 28px; }
.about-features li {
    padding: 10px 0; padding-left: 32px; position: relative;
    font-weight: 500; color: var(--text-dark);
}
.about-features li::before {
    content: ''; position: absolute; left: 0; top: 16px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--green-100);
}
.about-features li::after {
    content: ''; position: absolute; left: 5px; top: 21px;
    width: 8px; height: 4px; border-left: 2px solid var(--green-700);
    border-bottom: 2px solid var(--green-700); transform: rotate(-45deg);
}

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    background: #fff; border-radius: var(--radius-lg); padding: 40px 32px;
    border: 1px solid var(--border); transition: all var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.service-icon {
    width: 56px; height: 56px; border-radius: 14px; background: var(--green-050);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--text-light); }

/* ===== Projects ===== */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 16/10; cursor: pointer;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(27,67,50,.92) 0%, rgba(27,67,50,.3) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px; color: #fff; opacity: 1; transition: var(--transition);
}
.project-overlay h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.project-overlay p { font-size: 14px; opacity: .85; }
.project-partner {
    display: inline-block; margin-top: 10px; font-size: 13px;
    padding: 3px 12px; border-radius: 100px; background: rgba(255,255,255,.2);
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    color: #fff; text-align: center; padding: 80px 0;
}
.cta-banner h2 { color: #fff; font-size: 34px; margin-bottom: 16px; }
.cta-banner p { font-size: 17px; opacity: .9; margin-bottom: 32px; }
.cta-banner .btn-primary { background: #fff; color: var(--green-700); border-color: #fff; }
.cta-banner .btn-primary:hover { background: var(--green-050); }

/* ===== Page Banner ===== */
.page-banner {
    padding: 140px 0 80px; text-align: center; color: #fff;
    background: linear-gradient(135deg, rgba(27,67,50,.8), rgba(45,106,79,.65)), url('../images/garden1.jpg') center/cover no-repeat;
}
.page-banner h1 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.page-banner p { font-size: 17px; opacity: .9; }

/* ===== About Page ===== */
.about-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.about-info-item { display: flex; gap: 12px; padding: 16px 20px; background: var(--green-050); border-radius: var(--radius); }
.about-info-item .label { color: var(--text-light); min-width: 80px; font-size: 14px; }
.about-info-item .value { color: var(--text-dark); font-weight: 600; }

.timeline { margin-top: 48px; }
.timeline-item { display: flex; gap: 24px; padding-bottom: 32px; position: relative; padding-left: 28px; }
.timeline-item::before {
    content: ''; position: absolute; left: 6px; top: 8px; bottom: 0;
    width: 2px; background: var(--green-100);
}
.timeline-item:last-child::before { display: none; }
.timeline-item::after {
    content: ''; position: absolute; left: 0; top: 6px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--green-500); border: 3px solid var(--green-100);
}
.timeline-year { font-weight: 700; color: var(--green-700); min-width: 100px; }
.timeline-content h4 { font-size: 17px; margin-bottom: 4px; }
.timeline-content p { font-size: 14px; color: var(--text-light); }

/* ===== Services Page ===== */
.services-detail-list { display: flex; flex-direction: column; gap: 32px; }
.service-detail { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border); }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-img { border-radius: var(--radius); overflow: hidden; }
.service-detail-img img { width: 100%; height: 240px; object-fit: cover; }
.service-detail h3 { font-size: 24px; margin-bottom: 12px; }
.service-detail ul { list-style: none; margin-top: 16px; }
.service-detail ul li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; }
.service-detail ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }

/* ===== Projects Page ===== */
.project-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 24px; border-radius: 100px; border: 1px solid var(--border);
    background: #fff; cursor: pointer; font-size: 15px; color: var(--text-body);
    transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info-card { background: var(--green-050); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-card h3 { margin-bottom: 28px; font-size: 22px; }
.contact-row { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-row-icon {
    width: 44px; height: 44px; border-radius: 12px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.contact-row-text h4 { font-size: 15px; margin-bottom: 2px; }
.contact-row-text p { font-size: 15px; color: var(--text-body); }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text-dark); font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 15px; font-family: inherit;
    transition: border var(--transition); background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--green-500); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.form-msg.success { background: var(--green-050); color: var(--green-700); border: 1px solid var(--green-100); }
.form-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 40px; }
.footer-logo span { font-size: 18px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a { color: rgba(255,255,255,.7); }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero-stats { gap: 28px; }
    .hero-stat-num { font-size: 30px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 28px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { height: 320px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .service-detail { grid-template-columns: 1fr; }
    .service-detail:nth-child(even) { direction: ltr; }
    .about-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 16px;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        transform: translateY(-120%); transition: transform var(--transition);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 12px 16px; }
    .header-phone { display: none; }
    .nav-toggle { display: block; }
    .hero h1 { font-size: 28px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 30px; }
    .cta-banner h2 { font-size: 26px; }
}
