:root {
    --farm-green: #177245;
    --farm-deep: #123d2a;
    --farm-mint: #36CFC9;
    --farm-ink: #172033;
    --farm-muted: #667085;
    --farm-line: #e6eaf2;
    --farm-soft: #f5f7fa;
}

body {
    color: var(--farm-ink);
    background: #fff;
}

.page-header {
    min-height: 440px;
    margin-top: 80px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: left;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(10, 35, 24, 0.88), rgba(18, 61, 42, 0.68)), url('../images/farm/养殖场环境.jpg') center/cover no-repeat;
}

.page-header::after { display: none; }

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 3.6rem;
    line-height: 1.12;
    font-weight: 700;
}

.page-subtitle {
    margin: 0 0 28px;
    color: rgba(255,255,255,0.86);
    font-size: 1.2rem;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.78);
}

.breadcrumb a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
}

.breadcrumb .current {
    color: #fff;
}

.farm-overview,
.farm-facilities,
.farm-compliance,
.farm-advantages,
.farm-gallery {
    padding: 92px 0;
}

.farm-facilities,
.farm-gallery {
    background: var(--farm-soft);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-header h2,
.overview-text h2 {
    margin: 0 0 16px;
    color: var(--farm-ink);
    font-size: 2.35rem;
    line-height: 1.28;
    font-weight: 700;
}

.section-header .subtitle,
.overview-text p {
    color: var(--farm-muted);
    font-size: 1.05rem;
    line-height: 1.9;
}

.overview-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 52px;
    align-items: center;
}

.overview-text {
    padding-right: 12px;
}

.overview-text p {
    margin: 0 0 18px;
}

.overview-text strong {
    color: var(--farm-green);
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--farm-line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, #f7fbf8 100%);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.stat-item {
    min-height: 132px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--farm-line);
}

.stat-number {
    margin-bottom: 8px;
    color: var(--farm-green);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 800;
}

.stat-number span {
    color: var(--farm-muted);
    font-size: 1rem;
    font-weight: 600;
}

.stat-label {
    color: var(--farm-muted);
    font-size: 0.92rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.facility-card,
.compliance-item {
    padding: 30px;
    border: 1px solid var(--farm-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.facility-card:hover,
.compliance-item:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 114, 69, 0.32);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.facility-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 6px;
    background: rgba(23, 114, 69, 0.1);
    font-size: 1.8rem;
}

.facility-card h3,
.compliance-item h3,
.advantage-text h3 {
    margin: 0 0 12px;
    color: var(--farm-ink);
    font-size: 1.22rem;
    font-weight: 700;
}

.facility-card p,
.compliance-item p,
.advantage-text p {
    margin: 0;
    color: var(--farm-muted);
    line-height: 1.8;
}

.farm-compliance {
    background: #fff;
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.compliance-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--farm-green);
    font-weight: 800;
}

.farm-advantages {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #123d2a 0%, #177245 100%);
    overflow: hidden;
}

.farm-advantages::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .35;
}

.farm-advantages .container {
    position: relative;
    z-index: 1;
}

.farm-advantages .section-header h2,
.farm-advantages .section-header .subtitle {
    color: #fff;
}

.farm-advantages .section-header .subtitle {
    opacity: .82;
}

.advantages-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advantage-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 22px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.advantage-number {
    color: rgba(255,255,255,0.34);
    font-size: 2.55rem;
    line-height: 1;
    font-weight: 800;
}

.advantage-text h3 {
    color: #fff;
}

.advantage-text p {
    color: rgba(255,255,255,0.86);
}

.advantage-text strong {
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #dbe4dd;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    cursor: zoom-in;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
}

.gallery-caption h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.gallery-caption p {
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: 0.9rem;
    line-height: 1.55;
}

@media screen and (max-width: 1200px) {
    .overview-content {
        grid-template-columns: 1fr;
    }

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

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media screen and (max-width: 992px) {
    .facilities-grid,
    .advantages-content {
        grid-template-columns: 1fr;
    }

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

@media screen and (max-width: 768px) {
    .page-header {
        min-height: 420px;
        margin-top: 60px;
    }

    .page-header h1 {
        font-size: 2.35rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .farm-overview,
    .farm-facilities,
    .farm-compliance,
    .farm-advantages,
    .farm-gallery {
        padding: 58px 0;
    }

    .section-header h2,
    .overview-text h2 {
        font-size: 1.8rem;
    }

    .overview-stats,
    .compliance-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-auto-rows: 260px;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .advantage-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-caption {
        padding: 18px;
    }
}

@media screen and (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .facility-card,
    .compliance-item,
    .advantage-item {
        padding: 22px;
    }
}
