/* ===== Landing Page 样式 ===== */

/* 导航 */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 12px;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
}
:root.dark .landing-nav {
    background: rgba(15,23,42,0.85);
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-brand span { color: var(--primary); }

.landing-nav-links {
    display: flex;
    gap: 4px;
    margin-left: 32px;
}
.landing-nav-links a {
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.15s;
}
.landing-nav-links a:hover { background: var(--bg-subtle); color: var(--text); }

.landing-nav-spacer { flex: 1; }

/* Hero */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}
:root.dark .hero::before {
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.88rem;
    padding: 6px 18px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 20px;
    margin-bottom: 24px;
    font-weight: 500;
    border: 1px solid rgba(59,130,246,0.15);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}
.hero-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}
.hero-btn-outline {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.hero-btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

/* 代码框 */
.hero-code {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.08);
}
.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.code-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}
.hero-code pre {
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.75;
}
.hero-code code {
    color: #e2e8f0;
    font-family: 'SFMono-Regular', 'Fira Code', Consolas, monospace;
}
.code-comment { color: #64748b; }
.code-string { color: #a5f3fc; }

/* Section 通用 */
.section {
    padding: 80px 24px;
}
.section-alt {
    background: var(--bg-subtle);
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* 特性卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 32px 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(59,130,246,0.08);
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* 数据统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 分类网格 */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cat-card {
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}
.cat-card:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
}
.cat-card-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: 10px;
    flex-shrink: 0;
}
.cat-card-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}
.cat-card-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 热门 API */
.hot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.hot-card {
    padding: 20px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}
.hot-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.08);
}
.hot-card-method {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--green-bg);
    color: var(--green);
    margin-bottom: 8px;
}
.hot-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.hot-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* CTA */
.cta-section {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    color: #fff;
}
.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.cta-inner h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-inner p {
    opacity: 0.85;
    margin-bottom: 32px;
    font-size: 1.05rem;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.cta-actions .hero-btn-primary {
    background: #fff;
    color: #3b82f6;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta-actions .hero-btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.cta-actions .hero-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Footer */
.landing-footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 48px 24px 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 40px;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}
.footer-links {
    display: flex;
    gap: 64px;
}
.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-col a {
    display: block;
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 0.82rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .landing-nav { padding: 0 16px; }
    .landing-nav-links { display: none; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hot-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 32px; }
    .hero-code pre { font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
}
