/* ========================================
   Cobblemon Visual Editor - 官网样式
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #08080e;
    --bg-secondary: #0e0e18;
    --bg-card: #16162a;
    --border: #252545;
    --text-primary: #e8e8f0;
    --text-secondary: #9090b0;
    --text-muted: #585878;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99,102,241,0.25);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(8,8,14,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 700;
}

.nav-brand img { width: 36px; height: 36px; }

.nav-links {
    display: flex; gap: 32px; list-style: none;
}

.nav-links a {
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }

/* ===== 英雄区 ===== */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 20px; border-radius: 100px;
    background: var(--accent-glow);
    border: 1px solid rgba(99,102,241,0.3);
    font-size: 13px; color: var(--accent-hover);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    max-width: 800px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px; color: var(--text-secondary);
    max-width: 600px; margin-bottom: 40px;
}

.hero-actions {
    display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 100px;
    font-size: 15px; font-weight: 600; font-family: inherit;
    border: none; cursor: pointer;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ===== 区块通用 ===== */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center; margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700; margin-bottom: 12px;
}

.section-header p {
    font-size: 16px; color: var(--text-secondary); max-width: 600px; margin: 0 auto;
}

/* ===== 功能卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.15);
}

.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    background: var(--accent-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px; font-weight: 600; margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== 技术特性列表 ===== */
.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    list-style: none;
}

.tech-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

.tech-list .check { color: var(--accent); font-size: 18px; }

/* ===== 数据类型网格 ===== */
.data-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.data-type-item {
    padding: 16px; text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.data-type-item:hover {
    border-color: var(--accent); color: var(--text-primary);
}

/* ===== 下载区 ===== */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.version-info {
    font-family: var(--font-mono);
    font-size: 14px; color: var(--accent);
    margin-bottom: 8px;
}

.download-card h3 {
    font-size: 20px; margin-bottom: 20px;
}

.download-meta {
    font-size: 13px; color: var(--text-muted);
    margin-top: 12px;
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { gap: 16px; }
    .features-grid, .tech-list { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .section { padding: 60px 16px; }
}
