/* ==================== 基础变量 ==================== */
:root {
    --primary: #16DEBD;
    --primary-dark: #14c9ad;
    --primary-light: #2ee5d6;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

/* ==================== 工具类 ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(22, 222, 189, 0.3);
    z-index: -1;
    border-radius: 4px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 222, 189, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.logo-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

/* ==================== Hero区域 ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(22, 222, 189, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-desc {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 36px;
    max-width: 520px;
}

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

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

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

.stat-num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* 手机预览 */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--dark);
    border-radius: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    border-radius: 32px;
    overflow: hidden;
}

.map-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #a5f3fc 0%, #a7f3d0 100%);
    position: relative;
}

.map-header {
    padding: 48px 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-name {
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.search-icon {
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.map-markers {
    flex: 1;
    position: relative;
}

.marker {
    position: absolute;
    background: linear-gradient(135deg, #16DEBD, #14c9ad);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.marker-1 { top: 30%; left: 20%; }
.marker-2 { top: 45%; right: 15%; }
.marker-3 { top: 60%; left: 35%; }
.marker-4 { top: 25%; right: 30%; }

.cluster-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #14c9ad;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(20, 201, 173, 0.4);
}

.bottom-nav-preview {
    background: white;
    padding: 12px;
    display: flex;
    justify-content: space-around;
    font-size: 10px;
    color: var(--gray);
}

/* ==================== 通用区块 ==================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-desc {
    font-size: 18px;
    color: var(--gray);
}

/* ==================== 功能特点 ==================== */
.features {
    padding: 100px 0;
    background: var(--white);
}

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

.feature-card {
    background: var(--light);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

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

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

/* ==================== 活动分类 ==================== */
.categories {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

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

.category-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.1s + 0.1s);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(22, 222, 189, 0.2);
}

.category-icon {
    font-size: 44px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.category-card p {
    font-size: 14px;
    color: var(--gray);
}

/* ==================== 适用场景 ==================== */
.scenes {
    padding: 100px 0;
    background: var(--white);
}

.scenes-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.scene-card {
    flex: 1;
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.scene-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--dark);
    text-align: center;
}

.scene-divider {
    width: 2px;
    height: 400px;
    background: linear-gradient(180deg, transparent, var(--gray-light), transparent);
}

.scene-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.scene-list li:last-child {
    margin-bottom: 0;
}

.scene-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.scene-list strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.scene-list p {
    font-size: 14px;
    color: var(--gray);
}

/* ==================== 下载使用 ==================== */
.download {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(22, 222, 189, 0.12) 0%, transparent 50%),
        var(--white);
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.download-desc {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 48px;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.download-card {
    background: var(--light);
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.download-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.download-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.download-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.download-qr {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.download-note {
    font-size: 14px;
    color: var(--gray);
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer-links {
    display: flex;
    gap: 80px;
}

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

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    font-size: 20px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
}

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

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

    .hero-desc {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .scenes-flex {
        flex-direction: column;
    }

    .scene-divider {
        width: 100%;
        height: 2px;
    }

    .download-options {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

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

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
