/* 
* css/main.css 
* 全局样式 - 完整补全，自适应电脑端与手机端，完美匹配
* 设计理念：轻量、现代、强调图片展示与可读性，SEO 友好
*/

/* 基础重置与字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2D7AFF;        /* 波场蓝 */
    --primary-dark: #1A5AD1;
    --dark: #1E1F2C;
    --gray: #F8F9FC;
    --text: #333;
    --light-text: #6B7280;
    --white: #fff;
    --border: #E5E7EB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 头部导航 */
.site-header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    max-height: 44px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    font-weight: 500;
    color: var(--dark);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* 英雄区 Hero */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.highlight {
    color: var(--primary);
}

.subhead {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 16px;
}

.seo-tagline {
    background: rgba(45, 122, 255, 0.1);
    display: inline-block;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 28px;
    border: 1px solid rgba(45,122,255,0.2);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 18px rgba(45,122,255,0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(45,122,255,0.05);
}

.trust-badge {
    display: flex;
    gap: 24px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.trust-badge i {
    color: var(--primary);
    margin-right: 6px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 区块通用标题 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1.15rem;
}

/* 卡片区域 - 展示四个入口 */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--light-text);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link i {
    font-size: 0.8rem;
}

/* 图片展示区 Gallery */
.gallery-section {
    padding: 80px 0;
    background: var(--gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 6px 14px rgba(0,0,0,0.04);
    background: #eee; /* 图片加载前占位 */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* 下载推广块 */
.download-promo {
    padding: 80px 0;
    background: linear-gradient(145deg, #0B1120 0%, #19213A 100%);
    color: white;
}

.download-promo .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.promo-content h2 {
    font-size: 2.4rem;
    line-height: 1.3;
    margin-bottom: 16px;
}

.promo-keywords {
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.store-badges a img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.store-badges a:hover img {
    opacity: 0.85;
}

.promo-image img {
    max-width: 100%;
    border-radius: 24px;
}

/* 底部 footer */
.site-footer {
    background: var(--dark);
    color: #C5C9D6;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #C5C9D6;
}

.footer-col a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 18px;
    font-size: 1.4rem;
}

.social-icons a {
    color: #C5C9D6;
}

.social-icons a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 24px;
    font-size: 0.9rem;
}

.footer-seo {
    text-align: center;
    border-top: 1px solid #2C3147;
    padding-top: 24px;
    font-size: 0.85rem;
    color: #7F85A2;
}

/* 响应式设计 (电脑端与手机端完美匹配) */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 2.8rem; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-flex { height: 70px; }
    .main-nav { display: none; }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 20px;
    }
    .main-nav.active ul {
        flex-direction: column;
        gap: 16px;
    }
    .mobile-menu-toggle { display: block; }

    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.4rem; }
    .trust-badge { justify-content: center; }
    .cta-buttons { justify-content: center; }

    .section-title { font-size: 2rem; }
    .card-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }

    .download-promo .container { grid-template-columns: 1fr; text-align: center; }
    .store-badges { justify-content: center; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 1.9rem; }
    .btn { width: 100%; justify-content: center; }
    .trust-badge { flex-wrap: wrap; }
}