/* 基础变量 */
:root {
    --primary: #43A047;
    --primary-dark: #2E7D32;
    --primary-light: #66BB6A;
    --accent: #FF9800;
    --accent-light: #FFB74D;
    --bg: #FAFAF5;
    --bg-warm: #FFF8E1;
    --text: #1B1B1B;
    --text-secondary: #616161;
    --text-light: #9E9E9E;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border: #E8E8E0;
    --shadow-sm: 0 2px 8px rgba(27, 94, 32, 0.06);
    --shadow: 0 8px 30px rgba(27, 94, 32, 0.1);
    --shadow-lg: 0 20px 50px rgba(27, 94, 32, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.25);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-menu a {
    color: var(--text-secondary);
}

.nav-menu a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

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

.navbar.scrolled .nav-toggle span {
    background: var(--text);
}

/* 首屏 */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 50%, #66BB6A 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.grain {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 20s infinite ease-in-out;
}

.grain-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.grain-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -80px;
    animation-delay: -7s;
}

.grain-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title .brand {
    display: block;
    font-size: 64px;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.icon {
    width: 18px;
    height: 18px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

/* 手机展示 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-showcase {
    position: relative;
    width: 360px;
    height: 520px;
}

.phone-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-frame img {
    width: 100%;
    height: auto;
    border-radius: 34px;
    display: block;
    aspect-ratio: 9/19.5;
    object-fit: cover;
    object-position: top;
}

.phone-main {
    position: absolute;
    width: 280px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-sub {
    position: absolute;
    width: 220px;
    opacity: 0.85;
    z-index: 2;
}

.phone-sub-1 {
    left: -30px;
    bottom: 20px;
    transform: rotate(-12deg);
    animation: phoneFloat 6s ease-in-out infinite -2s;
}

.phone-sub-2 {
    right: -30px;
    top: 20px;
    transform: rotate(12deg);
    animation: phoneFloat 6s ease-in-out infinite -4s;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.phone-sub-1 { animation-name: phoneFloatLeft; }
.phone-sub-2 { animation-name: phoneFloatRight; }

@keyframes phoneFloatLeft {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(-10px) rotate(-12deg); }
}

@keyframes phoneFloatRight {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(12deg); }
}

/* 通用区块 */
section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(67, 160, 71, 0.1);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
}

/* 功能亮点 */
.features {
    background: var(--bg);
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(67, 160, 71, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

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

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

/* 界面展示 */
.screenshots {
    background: var(--bg-warm);
    position: relative;
    overflow: hidden;
}

.screenshots::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(67, 160, 71, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.screenshots::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item .phone-frame {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 16px;
    border-radius: 28px;
    padding: 7px;
}

.screenshot-item .phone-frame::before {
    width: 50px;
    height: 14px;
    border-radius: 0 0 10px 10px;
}

.screenshot-item .phone-frame img {
    border-radius: 22px;
}

.screenshot-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 下载区 */
.download {
    background: var(--bg);
}

.download-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 64px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.download-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 480px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.download-buttons .btn-primary {
    color: var(--primary-dark);
}

.download-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
}

.download-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.qr-placeholder img,
.qr-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-label {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* 关于 */
.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

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

.about-visual {
    display: flex;
    justify-content: center;
}

.about-phone {
    width: 280px;
}

.about-phone .phone-frame {
    animation: phoneFloat 6s ease-in-out infinite;
}

/* 页脚 */
.footer {
    background: #1a2e1a;
    color: var(--white);
    padding: 64px 0 24px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 16px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 8px;
}

.footer-slogan {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

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

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.icp {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

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

    .hero-desc {
        max-width: 600px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-title .brand {
        font-size: 52px;
    }

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

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

    .download-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .about-content .section-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu a {
        color: var(--text) !important;
        font-size: 16px;
    }

    .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 {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title .brand {
        font-size: 40px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        gap: 24px;
    }

    .phone-showcase {
        width: 300px;
        height: 440px;
    }

    .phone-main {
        width: 220px;
    }

    .phone-sub {
        width: 170px;
    }

    .phone-sub-1 {
        left: -10px;
    }

    .phone-sub-2 {
        right: -10px;
    }

    section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

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

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

    .download-card {
        padding: 40px 28px;
    }

    .download-content h2 {
        font-size: 26px;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 480px) {
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }

    .screenshot-item .phone-frame {
        max-width: 220px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .stat-item {
        align-items: center;
    }
}
