/* ===== 全局样式与变量 ===== */
:root {
    --primary-color: #2e7d32;      /* 农场绿 */
    --secondary-color: #f57f17;    /* 丰收橙 */
    --bg-color: #f9fbf9;           /* 极浅灰绿背景 */
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== 导航栏 ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-links a {
    margin-left: 30px;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ===== 首屏 Hero 区块 ===== */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 52px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 30px;
}

.hero-content .description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

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

/* ===== 应用介绍 Features ===== */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eef2ef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #d1e2d6;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== 实机展示 Gallery ===== */
.gallery {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #9bb0a5, #6c8276); /* 莫兰迪低饱和灰绿色，优雅柔和 */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.gallery .section-title {
    color: var(--white);
}

.gallery .section-title::after {
    background-color: var(--secondary-color);
}

/* 手机轮廓 Phone Mockup */
.phone-mockup-wrapper {
    position: relative;
    max-width: 600px; /* 限制最大宽度，让左右箭头紧靠手机 */
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 620px;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 0 0 4px #e0e0e0, /* 外边框银色 */
        0 20px 40px rgba(0,0,0,0.2); /* 悬浮阴影 */
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.gallery-swiper {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background-color: #ffffff;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* 自定义 Swiper 左右切换按钮 */
.custom-swiper-button {
    position: static;
    margin-top: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.custom-swiper-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.custom-swiper-button::after {
    font-size: 20px;
    font-weight: bold;
}

/* 移动端隐藏左右按钮 */
@media (max-width: 768px) {
    .custom-swiper-button {
        display: none;
    }
}

/* 覆盖 Swiper 分页器颜色 */
.swiper-pagination-bullet {
    background-color: rgba(255,255,255,0.5) !important;
}
.swiper-pagination-bullet-active {
    background-color: var(--secondary-color) !important;
}

/* ===== 页脚 Footer ===== */
.footer {
    background-color: #1a1a1a;
    color: #aaaaaa;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 30px;
    width: 30px;
    border-radius: 6px;
}

.footer-info h3 {
    color: var(--white);
    font-size: 20px;
}

.footer-info a {
    color: var(--secondary-color);
}

.footer-legal {
    border-top: 1px solid #333;
    padding-top: 20px;
    width: 100%;
    font-size: 14px;
}

.footer-legal p {
    margin-bottom: 5px;
}

.footer-legal a {
    color: #aaaaaa;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ===== 动画与动效 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }
    
    .nav-links {
        display: none; /* 移动端简易处理：隐藏导航菜单 */
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }

    .gallery {
        padding: 60px 0;
    }

    .custom-swiper-button {
        display: none; /* 移动端隐藏左右箭头，释放屏幕空间 */
    }

    .phone-mockup-wrapper {
        margin: 20px auto;
    }
}

@media (max-width: 400px) {
    .phone-mockup {
        width: 270px;
        height: 560px;
        border-radius: 35px;
    }
    .phone-notch {
        width: 90px;
        height: 22px;
    }
}
