/* ===== CSS Variables ===== */
:root {
    --color-primary: #1A883E;
    --color-primary-dark: #13662E;
    --color-primary-deeper: #167334;
    --color-primary-light: #1C9544;
    --color-primary-lighter: #21AA4E;
    --color-accent: #29D561;
    --color-text: #121619;
    --color-text-secondary: #2E3A43;
    --color-text-light: #5A6872;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7f6;
    --color-bg-dark: #121619;
    --color-border: #e0e5e2;
    --color-white: #ffffff;
    --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-cn);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--color-primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
    background: rgba(26, 136, 62, 0.06);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 20px;
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-en);
    letter-spacing: 0.5px;
}

.lang-switch:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 22, 25, 0.75) 0%, rgba(26, 136, 62, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.hero-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 28px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
    letter-spacing: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-cn);
}

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

.btn-primary:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 136, 62, 0.35);
}

.hero-btn svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-line-light {
    background: rgba(255,255,255,0.5);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

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

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

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 3px solid var(--color-primary);
    z-index: 1;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(26, 136, 62, 0.15);
}

.timeline-content {
    background: var(--color-white);
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--color-primary);
    transition: all var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: var(--font-en);
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* ===== Products ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.product-card {
    background: var(--color-bg-alt);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    background: var(--color-white);
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.product-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

.photo-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.photo-strip img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.6s ease;
}

.photo-strip img:hover {
    transform: scale(1.02);
}

/* ===== Advantages ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.advantage-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text);
}

.advantage-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ===== Affiliates ===== */
.affiliates-intro {
    max-width: 800px;
    margin: -20px auto 48px;
    text-align: center;
}

.affiliates-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.affiliates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.affiliate-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.affiliate-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.affiliate-image {
    height: 220px;
    overflow: hidden;
}

.affiliate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.affiliate-card:hover .affiliate-image img {
    transform: scale(1.05);
}

.affiliate-info {
    padding: 28px;
}

.affiliate-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
}

.affiliate-location {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 12px !important;
}

.affiliate-info p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ===== Vision ===== */
.vision-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.vision-section .section-header h2 {
    color: var(--color-white);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.vision-item {
    text-align: center;
    padding: 20px;
}

.vision-number {
    display: block;
    font-size: 56px;
    font-weight: 800;
    font-family: var(--font-en);
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
    line-height: 1;
}

.vision-item p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    transition: all var(--transition);
}

.contact-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.contact-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.contact-card a {
    color: var(--color-primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo img {
    height: 30px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-group {
    font-size: 13px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.5;
}

.footer-beian {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.45;
}

.footer-beian a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-beian a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.beian-divider {
    margin: 0 8px;
    opacity: 0.4;
}

.beian-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: 500px;
    }

    .hero-logo {
        width: 64px;
        height: 64px;
    }

    .section {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        order: -1;
    }

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

    .photo-strip {
        grid-template-columns: 1fr;
    }

    .photo-strip img {
        height: 200px;
    }

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

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

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

    .timeline {
        padding-left: 32px;
    }

    .timeline-dot {
        left: -32px;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: 20px 24px;
    }
}

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

    .hero h1 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .nav-logo img {
        height: 28px;
    }
}
