:root {
    /* Color palette inspired by fertile soil, harvest and vitality */
    --color-earth: #8B5A2B;
    --color-earth-dark: #5C3A18;
    --color-harvest: #DAA520;
    --color-leaf: #228B22;
    --color-leaf-light: #4CAF50;
    --color-sky: #F3F7F0;
    --color-beige: #FAF3DD;
    --color-text: #2F2A24;
    --color-muted: #6B5C4D;
    --color-border: rgba(139, 90, 43, 0.18);
    --color-shadow: rgba(44, 32, 19, 0.12);

    /* Typography */
    --font-family-base: "Source Han Sans", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    /* Layout */
    --max-width: 1200px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --radius-sm: 6px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --shadow-soft: 0 10px 40px rgba(69, 42, 21, 0.08);
    --shadow-card: 0 15px 30px rgba(45, 31, 16, 0.1);

    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: linear-gradient(180deg, #F8F4EA 0%, #FFFBEA 30%, #FDF7EF 60%, #FBF3E1 100%);
    min-height: 100vh;
}

body.season-spring {
    background: linear-gradient(180deg, #F0F9EB 0%, #FEF9E7 60%, #FDF6E3 100%);
}

body.season-summer {
    background: linear-gradient(180deg, #F5FFE2 0%, #FFF4D7 70%, #FFECC1 100%);
}

body.season-autumn {
    background: linear-gradient(180deg, #FFF8E3 0%, #FFE9CC 65%, #F6D9B0 100%);
}

body.season-winter {
    background: linear-gradient(180deg, #F8F9FA 0%, #FFF4E2 55%, #F9EBD6 100%);
}

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

p {
    margin-bottom: var(--space-sm);
    color: var(--color-muted);
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-earth);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo span {
    padding: 3px 10px;
    background: radial-gradient(circle at top, var(--color-harvest), var(--color-earth));
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    align-items: center;
    justify-content: center;
    color: var(--color-earth);
    font-size: 1.3rem;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.nav-menu.active {
    max-height: 1000px;
}

.nav-item {
    border-bottom: 1px solid var(--color-border);
}

.nav-link,
.dropdown-toggle {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
}

.nav-link:hover,
.dropdown-toggle:hover {
    background: rgba(218, 165, 32, 0.1);
}

.nav-link > span,
.dropdown-toggle > span {
    font-weight: 700;
    color: var(--color-earth);
}

.has-dropdown .dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #fffaf0;
    transition: max-height 0.3s ease;
}

.has-dropdown.open .dropdown-menu {
    max-height: 800px;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 2.5rem;
    color: var(--color-muted);
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    color: var(--color-earth);
    border-left-color: var(--color-harvest);
    background: rgba(34, 139, 34, 0.08);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-leaf), var(--color-leaf-light));
    color: #fff;
    box-shadow: 0 10px 25px rgba(34, 139, 34, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.content-padding {
    padding-top: 90px;
}

section {
    padding: var(--space-xl) 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.section-heading h2 {
    font-size: 2.2rem;
    color: var(--color-earth);
    margin-bottom: var(--space-sm);
}

.section-heading p {
    margin: 0;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: left;
    overflow: hidden;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    background: var(--color-sky);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(22, 30, 18, 0.6), rgba(59, 92, 49, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: var(--space-xl) var(--space-md);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 540px;
}

.hero-actions {
    margin-top: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
    z-index: 0;
}

.season-pills {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--space-md);
}

.season-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.8;
}

.season-pill.active {
    background: rgba(218, 165, 32, 0.9);
    border-color: transparent;
    color: #2F1605;
    opacity: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(218, 165, 32, 0.1), rgba(34, 139, 34, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-top: 0;
    color: var(--color-earth);
}

.card p {
    margin-bottom: 0;
}

.product-card img {
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    height: 200px;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.stat-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--color-earth);
}

.before-after {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.before-after img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.before-layer,
.after-layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.before-layer {
    width: 100%;
}

.after-layer {
    overflow: hidden;
    width: 50%;
}

.after-layer img {
    clip-path: inset(0 -999px 0 0);
}

.slider-control {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    z-index: 5;
}

.slider-control input[type="range"] {
    width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.map-panel {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: grid;
    gap: var(--space-md);
    box-shadow: var(--shadow-card);
}

.map-visual {
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 30% 30%, rgba(218, 165, 32, 0.3), rgba(34, 139, 34, 0.15));
    position: relative;
    height: 320px;
}

.map-visual::after {
    content: "";
    position: absolute;
    inset: 10%;
    border: 2px dashed rgba(107, 92, 77, 0.2);
    border-radius: 60% 40% 42% 58% / 40% 60% 55% 45%;
}

.map-visual span {
    position: absolute;
    padding: 0.35rem 0.75rem;
    background: #fff;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
}

.map-visual .north { top: 15%; left: 40%; }
.map-visual .south { bottom: 18%; left: 35%; }
.map-visual .east { top: 45%; right: 15%; }
.map-visual .west { top: 40%; left: 12%; }
.map-visual .central { top: 35%; left: 45%; }

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-muted);
}

.list-check li::before {
    content: "✔";
    color: var(--color-leaf);
}

.cta-panel {
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.9), rgba(139, 90, 43, 0.9));
    border-radius: var(--radius-lg);
    color: #fff;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.cta-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/app_precision_drone.png") no-repeat right bottom / 240px;
    opacity: 0.25;
}

.cta-panel h3 {
    margin-top: 0;
    color: #fff;
}

footer {
    background: #20160F;
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Component variations for sub pages */
.page-hero {
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 90, 43, 0.2), rgba(34, 139, 34, 0.15));
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: var(--space-sm);
}

.page-hero img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.breadcrumb a {
    color: var(--color-earth);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-earth), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-harvest);
    border: 3px solid #fff;
    box-shadow: var(--shadow-soft);
}

.info-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid rgba(139, 90, 43, 0.08);
    box-shadow: var(--shadow-soft);
}

.split-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
}

.table th,
.table td {
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.85rem;
    text-align: left;
}

.table th {
    background: rgba(218, 165, 32, 0.15);
}

.tab-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.tab-pill {
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.tab-pill.active {
    background: var(--color-earth);
    color: #fff;
    border-color: var(--color-earth);
}

.knowledge-list {
    display: grid;
    gap: var(--space-md);
}

.knowledge-item {
    background: #fff;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.news-card img {
    height: 220px;
    object-fit: cover;
}

.news-card-content {
    padding: var(--space-md);
}

[data-tip] {
    position: relative;
}

.tip-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -0.5rem);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.case-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.case-card img {
    height: 220px;
    object-fit: cover;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

label {
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.3rem;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    font-family: inherit;
}

textarea {
    min-height: 140px;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        background: transparent;
        max-height: none;
        overflow: visible;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: none;
    }

    .nav-item {
        border: none;
        position: relative;
    }

    .nav-link,
    .dropdown-toggle {
        width: auto;
        padding: 0.5rem 0.7rem;
        text-align: center;
    }

    .has-dropdown .dropdown-menu {
        position: absolute;
        top: 120%;
        left: 0;
        min-width: 220px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-card);
        padding: var(--space-sm) 0;
        max-height: none;
        overflow: visible;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        transform: translateY(10px);
    }

    .has-dropdown:hover .dropdown-menu,
    .has-dropdown.open .dropdown-menu {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero {
        min-height: 70vh;
    }

    section {
        padding: var(--space-lg) 0;
    }

    .page-hero-content {
        padding: var(--space-md);
    }
}
