/* ===== 变量与基础 ===== */
:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f0eeeb;
    --color-surface: #ffffff;
    --color-text: #2d2a26;
    --color-text-muted: #6b6560;
    --color-primary: #2d6a4f;
    --color-primary-light: #40916c;
    --color-accent: #e07a5f;
    --color-accent-soft: #f4a261;
    --color-border: #e8e4df;
    --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
    --shadow-md: 0 8px 30px rgba(45, 42, 38, 0.08);
    --shadow-lg: 0 20px 60px rgba(45, 42, 38, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --font-heading: 'Outfit', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* ===== 导航 ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(45, 106, 79, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(244, 162, 97, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(224, 122, 95, 0.06), transparent);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

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

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* ===== 应用区块 ===== */
.apps-section {
    padding: 3rem 1.5rem 5rem;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ===== 应用卡片 ===== */
.app-card {
    margin-bottom: 3rem;
}

.app-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s, transform 0.3s;
}

.app-card-inner:hover {
    box-shadow: var(--shadow-md);
}

.app-card:nth-child(even) .app-card-inner {
    direction: rtl;
}

.app-card:nth-child(even) .app-card-inner > * {
    direction: ltr;
}

/* 截图区域 */
.app-preview {
    min-height: 200px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.screenshot {
    aspect-ratio: 9/16;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-alt);
}

.screenshot.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    border: none;
    font-weight: 500;
}

/* 截图占位符渐变 - 每张不同色调 */
.screenshot-grid .screenshot.placeholder:nth-child(1) {
    background: linear-gradient(145deg, #2d6a4f 0%, #40916c 100%);
}
.screenshot-grid .screenshot.placeholder:nth-child(2) {
    background: linear-gradient(145deg, #5c4d7d 0%, #8b7ba8 100%);
}
.screenshot-grid .screenshot.placeholder:nth-child(3) {
    background: linear-gradient(145deg, #e07a5f 0%, #f4a261 100%);
}

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

/* 应用信息 */
.app-info {
    padding: 0.5rem 0;
}

.app-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.app-icon img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.app-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.app-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* 下载按钮 */
.download-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-download.ios {
    background: #000;
    color: #fff;
}

.btn-download.ios:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-download.android {
    background: #3ddc84;
    color: #1a1a1a;
}

.btn-download.android:hover {
    background: #2dc770;
    transform: translateY(-1px);
}

.btn-download.harmony {
    background: linear-gradient(135deg, #eb2f2f 0%, #c41e3a 100%);
    color: #fff;
}

.btn-download.harmony:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--color-bg-alt);
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-content h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

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

.copyright {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-content .company,
.footer-content .icp {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-content .icp a {
    color: inherit;
    text-decoration: none;
}

.footer-content .icp a:hover {
    text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .app-card-inner {
        grid-template-columns: 1fr;
        direction: ltr !important;
    }

    .app-card:nth-child(even) .app-card-inner {
        direction: ltr;
    }

    .app-card:nth-child(even) .app-card-inner > * {
        direction: ltr;
    }

    .app-preview {
        order: -1;
    }

    .screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 280px;
        margin: 0 auto;
    }

    .hero {
        min-height: 50vh;
        padding: 6rem 1.5rem 3rem;
    }
}

@media (max-width: 480px) {
    .download-btns {
        flex-direction: column;
    }

    .btn-download {
        justify-content: center;
    }
}
