/* Tao Language 官网样式 v2 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Segoe UI', system-ui, sans-serif; color: var(--text); line-height: 1.7; background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* 容器 */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* 导航 */
header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 60px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text) !important; text-decoration: none !important; }
.logo img { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; margin-left: auto; color: var(--text); }

/* Hero */
.hero { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: #fff; padding: 80px 24px; text-align: center; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.hero-sub { font-size: 18px; color: #94a3b8; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-code { max-width: 600px; margin: 0 auto; text-align: left; }
.hero-code pre { background: #1e293b; border: 1px solid #334155; border-radius: var(--radius); padding: 20px; overflow-x: auto; }
.hero-code code { color: #e2e8f0; font-size: 14px; font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.code-caption { text-align: center; color: #94a3b8; font-size: 13px; margin-top: 8px; }

/* 语法高亮色 */
.hero-code .kw { color: #818cf8; }
.hero-code .fn { color: #fbbf24; }
.hero-code .str { color: #34d399; }
.hero-code .cm { color: #64748b; }

/* 特性 */
.features { padding: 64px 24px; }
.features h2, .container > h2 { font-size: 28px; margin-bottom: 32px; text-align: center; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 48px; }

/* 卡片 */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.feature-card code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* 统计数据 */
.stats { padding: 48px 24px; background: var(--bg-alt); border-radius: 12px; margin: 48px auto; }
.stats h2 { margin-bottom: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.stat { padding: 20px; }
.stat-num { display: block; font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* 版本日志 */
.version-log { padding: 48px 24px; }
.version-log ul { padding-left: 20px; }
.version-log li { margin: 8px 0; font-size: 15px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; background: var(--primary); color: #fff !important; border-radius: 6px; font-size: 15px; font-weight: 500; transition: background 0.2s; text-decoration: none !important; }
.btn:hover { background: var(--primary-dark); }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff !important; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* 下载 */
.lead { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; text-align: center; }
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.download-info { flex: 1; }
.dl-desc { color: var(--text-muted); margin: 8px 0; font-size: 14px; }
.dl-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin: 8px 0; }
.dl-meta span { background: #f1f5f9; padding: 2px 10px; border-radius: 4px; }
.dl-sha256 { font-size: 11px; color: #94a3b8; word-break: break-all; }
pre { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; font-size: 14px; margin: 12px 0; }
code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* 关于 */
.about-section { margin-bottom: 40px; }
.about-section h2 { text-align: left; }
.version-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.version-table th, .version-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.version-table th { background: var(--bg-alt); font-weight: 600; }

/* 社区 */
.community-cards { margin-bottom: 48px; }
.community-meta { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* 留言板 */
.board-container { max-width: 700px; margin: 0 auto; }
.msg-success { padding: 12px; background: #dcfce7; color: #166534; border-radius: var(--radius); margin-bottom: 16px; }
.msg-error { padding: 12px; background: #fef2f2; color: #991b1b; border-radius: var(--radius); margin-bottom: 16px; }
.board-form { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-bottom: 32px; }
.board-form input, .board-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; margin: 8px 0; box-sizing: border-box; }
.board-form textarea { resize: vertical; min-height: 100px; }
.board-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.board-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.board-name { font-weight: 600; }
.board-time { font-size: 13px; color: var(--text-muted); }
.board-msg { font-size: 14px; line-height: 1.6; }
.board-reply { margin-top: 12px; padding: 12px; background: #f0f9ff; border-radius: 6px; font-size: 14px; }
.board-admin { font-weight: 600; color: var(--primary); }

/* 页脚 */
footer { background: #1e293b; color: #94a3b8; padding: 48px 24px 24px; margin-top: 64px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col h4 { color: #f1f5f9; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; font-size: 14px; margin: 8px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid #334155; font-size: 13px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px; gap: 12px; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { flex-direction: column; text-align: center; }
  .dl-meta { justify-content: center; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
