/* ============================================
   春尚青甜 - 官网公共样式表
   Brand: 春尚青甜 | 赣南脐橙
   Version: 1.0
   ============================================ */

/* --- CSS Variables --- */
:root {
    --green: #4a7c59;
    --green-dark: #3a6147;
    --green-light: #5a9c6f;
    --orange: #e8863a;
    --orange-dark: #d4742c;
    --orange-light: #f0a05c;
    --bg: #fafaf7;
    --bg-warm: #f5f0e8;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --border: #e8e4dd;
    --shadow: rgba(74, 124, 89, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

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

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

body {
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

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

.site-nav.scrolled {
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
}

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

.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--green);
    color: var(--white);
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: var(--transition);
}

.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 Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(180deg, rgba(74, 124, 89, 0.05) 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 134, 58, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 124, 89, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(74, 124, 89, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--green);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--green);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: var(--orange);
    position: relative;
}

.hero-slogan {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: 4px;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(232, 134, 58, 0.3);
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(232, 134, 58, 0.4);
    color: var(--white);
}

/* --- Sections Common --- */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--green);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header .section-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--orange));
    margin: 16px auto 0;
    border-radius: 3px;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--orange));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow);
    border-color: transparent;
}

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

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.1), rgba(74, 124, 89, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 12px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Placeholder Image --- */
.img-placeholder {
    background: linear-gradient(135deg, #f0ece4, #e8e4dd);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    aspect-ratio: 16/10;
    border: 2px dashed var(--border);
    gap: 8px;
}

.img-placeholder .camera-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.img-placeholder span {
    opacity: 0.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 124, 89, 0.4);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--green);
    color: var(--white);
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232, 134, 58, 0.3);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 134, 58, 0.4);
    color: var(--white);
}

/* --- Footer --- */
.site-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 30px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
}

.footer-col a:hover {
    color: var(--orange-light);
}

.footer-brand .footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-brand .footer-slogan {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Page Hero (内页顶部) --- */
.page-hero {
    padding: 140px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(74, 124, 89, 0.06) 0%, var(--bg) 100%);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--green);
    margin-bottom: 12px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--green), var(--orange));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 10px 40px var(--shadow);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--orange);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(232, 134, 58, 0.2);
    z-index: 1;
}

.timeline-year {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Process Steps --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.3);
}

.process-step h3 {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Trace Section --- */
.trace-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 2px solid var(--border);
    text-align: center;
}

.trace-input-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.trace-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-family);
}

.trace-input-group input:focus {
    border-color: var(--green);
}

/* --- Products --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow);
}

.product-img {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f0ece4, #e8e4dd);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border);
    margin: 10px;
    border-radius: var(--radius);
}

.product-info {
    padding: 20px 24px 30px;
}

.product-info h3 {
    font-size: 1.15rem;
    color: var(--green);
    margin-bottom: 8px;
}

.product-info .product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-info .product-spec {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-info .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
}

/* --- Feature List --- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--green);
    box-shadow: 0 5px 20px var(--shadow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(74, 124, 89, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--green);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f0ece4, #e8e4dd);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border);
    transition: var(--transition);
    font-size: 0.85rem;
    gap: 8px;
}

.gallery-item:hover {
    border-color: var(--green);
    background: rgba(74, 124, 89, 0.03);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px var(--shadow);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.1), rgba(232, 134, 58, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.contact-card .contact-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--orange);
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.05), rgba(232, 134, 58, 0.05));
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 1200px;
}

.cta-section h2 {
    font-size: 1.8rem;
    color: var(--green);
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 30px;
}

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Background Sections --- */
.bg-warm {
    background: var(--bg-warm);
}

.bg-green {
    background: var(--green);
    color: var(--white);
}

.bg-green h2, .bg-green h3 {
    color: var(--white);
}

.bg-green p {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Full Width Section --- */
.section-full {
    padding: 80px 20px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px var(--shadow);
        transform: translateY(-120%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 20px 60px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }

    .card-grid,
    .process-steps,
    .feature-list,
    .product-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .trace-input-group {
        flex-direction: column;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

@media (max-width: 480px) {
    .nav-container {
        height: 60px;
    }

    .nav-links {
        top: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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