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

:root {
    --blue: #0071E3;
    --blue-hover: #0077ED;
    --text: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #6E6E73;
    --bg: #FFFFFF;
    --bg-gray: #F5F5F7;
    --border: #D2D2D7;
    --radius: 18px;
    --radius-sm: 12px;
    --max-width: 980px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.47059;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body-wrap { flex: 1; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== 导航栏（Apple风格，毛玻璃） ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    height: 48px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
}
.nav-logo:hover { text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 13px;
    color: var(--text);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* ========== 主视觉 Hero ========== */
.hero {
    text-align: center;
    padding: 80px 22px 60px;
}
.hero-body { max-width: 640px; margin: 0 auto; }

.hero-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-icon-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
}
.hero-icon-fallback::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 8px;
    border: 2.5px solid rgba(255,255,255,0.5);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 21px;
    color: var(--text-secondary);
    letter-spacing: 0.1px;
    margin-bottom: 16px;
}

.hero-meta {
    font-size: 15px;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}
.hero-meta-divider { margin: 0 10px; color: var(--border); }

/* 下载按钮 */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 50px;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: -0.2px;
}
.btn-download:hover {
    background: var(--blue-hover);
    text-decoration: none;
    color: #fff;
}
.btn-download:active { transform: scale(0.97); }

.hero-requirements {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 20px;
}

/* ========== 通用 Section ========== */
.section { padding: 60px 22px; }
.section-gray { background: var(--bg-gray); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 32px;
    text-align: center;
}

/* ========== 卡片 ========== */
.card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px solid var(--border);
}

/* ========== 更新日志 ========== */
.changelog-card {
    max-width: 680px;
    margin: 0 auto;
}
.changelog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.badge-new {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.changelog-date {
    font-size: 14px;
    color: var(--text-tertiary);
}
.changelog-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

/* ========== 特性卡片 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #F0F4FF;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== 历史版本列表 ========== */
.version-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.version-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.version-item:hover { border-color: #A1A1AA; }

.version-left {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px;
}

.version-tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.version-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.version-size {
    font-size: 12px;
    color: var(--text-tertiary);
}

.version-body {
    flex: 1;
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
}

.version-right { flex-shrink: 0; }

.btn-text {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    padding: 6px 16px;
    border-radius: 50px;
    transition: background 0.2s;
}
.btn-text:hover { background: rgba(0,113,227,0.06); text-decoration: none; }

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 17px;
    color: var(--text-secondary);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--bg-gray);
    padding: 20px 22px;
    text-align: center;
    border-top: 1px solid var(--border);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { margin-bottom: 6px; }
.footer-brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.footer-bottom {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero { padding: 48px 20px 40px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 17px; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-card { padding: 20px 16px; }

    .section { padding: 40px 20px; }
    .section-title { font-size: 26px; }

    .version-item { flex-direction: column; gap: 10px; }
    .version-left { min-width: auto; }
    .version-right { align-self: flex-end; }

    .nav-links { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-icon { width: 76px; height: 76px; }
    .features-grid { grid-template-columns: 1fr; }
    .btn-download { padding: 12px 28px; font-size: 16px; }
}
