/* Clash Forge — 官方文档风（简洁深蓝 × 白底） */
:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #2b6cb0;
  --bg: #f7fafc;
  --bg-white: #ffffff;
  --text: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(26, 54, 93, 0.08);
  --radius: 8px;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.75; min-height: 100vh; }
h1, h2, h3 { font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.logo img { width: 40px; height: 40px; border-radius: 6px; }
.nav-links { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-secondary); padding: 8px 14px; font-size: 0.9rem; font-weight: 500;
  border-radius: var(--radius);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #edf2f7; }

.hero { padding: 56px 0 48px; background: var(--bg-white); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-text h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 16px; line-height: 1.25; }
.hero-text .lead { color: var(--text-secondary); margin-bottom: 24px; font-size: 1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  font-size: 0.78rem; padding: 4px 12px; border-radius: 4px;
  background: #ebf8ff; color: var(--accent); font-weight: 600;
}
.badge-warn { background: #fffaf0; color: #c05621; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 11px 22px; font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius); cursor: pointer; border: none; transition: 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); color: white; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(135deg, #3182ce 0%, #1a365d 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.35);
}
.btn-download:hover {
  background: linear-gradient(135deg, #4299e1 0%, #2c5282 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 54, 93, 0.42);
}
.btn-outline { background: var(--bg-white); color: var(--primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-image img { width: 100%; border-radius: var(--radius); }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-white); }
.section-header { margin-bottom: 36px; }
.section-header h2 { font-size: 1.45rem; margin-bottom: 10px; }
.section-header p { color: var(--text-secondary); max-width: 640px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { text-align: center; padding: 24px 16px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-number { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 24px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); }
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: 0.2s; }
.news-card:hover { box-shadow: var(--shadow); }
.news-card img { width: 100%; height: 170px; object-fit: cover; border-radius: 0; }
.news-card-body { padding: 18px; }
.news-tag { font-size: 0.72rem; font-weight: 600; color: var(--accent); }
.news-card h3 { font-size: 0.95rem; margin: 8px 0; line-height: 1.4; color: var(--primary); }
.news-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.news-meta { font-size: 0.75rem; color: var(--text-muted); }

.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.category-block { display: flex; gap: 16px; padding: 20px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); }
.category-block img { width: 130px; height: 96px; object-fit: cover; flex-shrink: 0; }

.timeline { padding-left: 0; }
.timeline-item { margin-bottom: 20px; padding: 18px 22px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.timeline-item h3 { font-size: 0.95rem; margin-bottom: 6px; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--bg-white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.compare-table th { background: var(--primary); color: white; font-weight: 600; }
.compare-table td { color: var(--text-secondary); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 18px 22px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-item h3 { font-size: 0.95rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.88rem; color: var(--text-secondary); }

.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.platform-card { padding: 28px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); display: flex; gap: 20px; }
.platform-icon { font-size: 2.5rem; }

.article-hero { padding: 40px 0 24px; }
.article-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; line-height: 1.3; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.article-cover { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 400px; object-fit: cover; }
.article-content { max-width: 760px; margin: 0 auto; }
.article-content h2 { font-size: 1.3rem; margin: 32px 0 14px; }
.article-content h3 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--accent); }
.article-content p { margin-bottom: 16px; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 0 0 16px 20px; color: var(--text-secondary); }
.article-content code { background: #edf2f7; padding: 2px 6px; border-radius: 4px; font-size: 0.85em; color: var(--primary); }
.article-content pre { background: #1a202c; color: #e2e8f0; border-radius: var(--radius); padding: 18px; overflow-x: auto; margin: 18px 0; font-size: 0.84rem; }
.article-content blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; margin: 20px 0; background: #ebf8ff; color: var(--text-secondary); border-radius: 0 var(--radius) var(--radius) 0; }

.breadcrumb { padding: 14px 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }

.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 10px; }
.footer-col h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--primary); }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-muted); font-size: 0.85rem; }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero-inner, .feature-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid, .category-grid, .footer-grid { grid-template-columns: 1fr; }
}
