/* ===== AI Tools Compared — 全站样式 ===== */
:root {
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --max: 760px;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---- 顶部导航 ---- */
.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 800; font-size: 18px; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links a { color: var(--body); margin-left: 22px; font-size: 15px; font-weight: 500; }

/* ---- 通用容器 ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- 首页 Hero ---- */
.hero { text-align: center; padding: 64px 20px 40px; }
.hero h1 { font-size: 40px; line-height: 1.2; color: var(--ink); font-weight: 800; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- 文章卡片网格 ---- */
.section-title { font-size: 22px; color: var(--ink); font-weight: 700; margin: 40px 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding-bottom: 60px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,23,42,.08); border-color: #c7d2fe; text-decoration: none; }
.card .thumb {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  letter-spacing: 1px;
}
.card .body { padding: 18px 18px 20px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.card h3 { font-size: 18px; color: var(--ink); margin: 12px 0 8px; line-height: 1.4; }
.card p { font-size: 14px; color: var(--muted); }

/* ---- 文章页 ---- */
.article { padding: 48px 0 64px; }
.article .eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.article h1 { font-size: 34px; line-height: 1.25; color: var(--ink); font-weight: 800; margin: 10px 0 14px; letter-spacing: -.5px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.article h2 { font-size: 24px; color: var(--ink); margin: 38px 0 14px; font-weight: 700; }
.article h3 { font-size: 19px; color: var(--ink); margin: 26px 0 10px; font-weight: 700; }
.article p { margin: 14px 0; }
.article ul, .article ol { margin: 14px 0 14px 24px; }
.article li { margin: 7px 0; }

/* TL;DR / 提示框 */
.callout {
  background: var(--accent-soft); border: 1px solid #c7d2fe;
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0;
}
.callout strong { color: var(--ink); }

/* 对比表格 */
.table-wrap { overflow-x: auto; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.win { color: #16a34a; font-weight: 700; }

/* 你来补充的占位提示(发布前删掉) */
.note {
  background: #fffbeb; border: 1px dashed #f59e0b; color: #92400e;
  border-radius: 10px; padding: 12px 16px; margin: 18px 0; font-size: 14px;
}

/* ---- 页脚 ---- */
footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 30px 20px; color: var(--muted); font-size: 14px; text-align: center; }

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .article h1 { font-size: 27px; }
  .nav-links a { margin-left: 14px; }
}
