/* ============================================================
   跟 AI 搭班子 —— 公共样式
   ============================================================ */
* { margin:0; padding:0; box-sizing:border-box; }

:root{
  --brand:#4f46e5;
  --brand2:#7c3aed;
  --ink:#0f172a;
  --body:#334155;
  --muted:#64748b;
  --line:#e5e7eb;
  --bg:#ffffff;
  --soft:#f8fafc;
  --max:1060px;
}

html { -webkit-text-size-adjust:100%; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--body); line-height:1.75;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }

/* ---------- 顶部导航 ---------- */
.nav{
  position:sticky; top:0; z-index:30;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--max); margin:0 auto;
  display:flex; align-items:center; gap:11px;
  padding:12px 22px;
}
.logo{
  width:36px; height:36px; border-radius:10px; flex-shrink:0;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; letter-spacing:.5px;
}
.brand{ display:flex; flex-direction:column; line-height:1.25; }
.brand b{ font-size:15.5px; font-weight:800; color:var(--ink); letter-spacing:.2px; }
.brand span{ font-size:11px; color:var(--muted); letter-spacing:1.2px; }
.nav-links{ margin-left:auto; display:flex; gap:26px; font-size:14px; color:var(--muted); }
.nav-links a{ transition:color .15s; }
.nav-links a:hover{ color:var(--brand); }
@media (max-width:720px){ .nav-links{ display:none; } }

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(900px 380px at 12% -10%, #eef2ff 0%, transparent 60%),
    radial-gradient(700px 340px at 92% 0%, #f5f3ff 0%, transparent 55%),
    var(--soft);
  border-bottom:1px solid var(--line);
}
.hero-inner{ max-width:var(--max); margin:0 auto; padding:74px 22px 62px; }
.kicker{
  font-size:12px; font-weight:700; letter-spacing:2.4px;
  color:var(--brand); text-transform:uppercase;
}
.hero h1{
  margin-top:14px; font-size:44px; line-height:1.24;
  font-weight:800; color:var(--ink); letter-spacing:.3px;
}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(96deg,var(--brand),var(--brand2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero .lead{
  margin-top:20px; font-size:17px; color:var(--muted);
  max-width:680px; line-height:1.85;
}
.hero-stats{
  margin-top:38px; display:flex; gap:44px; flex-wrap:wrap;
  padding-top:26px; border-top:1px solid var(--line);
}
.stat b{ display:block; font-size:22px; font-weight:800; color:var(--ink); letter-spacing:.3px; }
.stat span{ font-size:12.5px; color:var(--muted); }
@media (max-width:640px){
  .hero h1{ font-size:31px; }
  .hero-inner{ padding:52px 20px 44px; }
  .hero-stats{ gap:26px; }
}

/* ---------- 区块 ---------- */
.section{ max-width:var(--max); margin:0 auto; padding:58px 22px 10px; }
.section-head{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.section-head h2{
  font-size:22px; font-weight:800; color:var(--ink);
  display:flex; align-items:center; gap:10px;
}
.section-head h2::before{
  content:""; width:4px; height:20px; border-radius:2px;
  background:linear-gradient(180deg,var(--brand),var(--brand2));
}
.section-head .count{ font-size:13px; color:var(--muted); }
.section-head .more{ margin-left:auto; font-size:13.5px; color:var(--brand); font-weight:600; }

/* ---------- 精选文章 ---------- */
.feature{
  margin-top:26px; display:grid; grid-template-columns:1.35fr 1fr; gap:0;
  border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff;
  transition:box-shadow .18s, transform .18s;
}
.feature:hover{ box-shadow:0 16px 38px rgba(15,23,42,.09); transform:translateY(-2px); }
.feature .f-body{ padding:34px 32px; }
.feature .f-tag{
  display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.6px;
  color:var(--brand); background:#eef2ff; border-radius:6px; padding:3px 9px;
}
.feature h3{
  margin-top:16px; font-size:25px; line-height:1.4; font-weight:800; color:var(--ink);
}
.feature p{ margin-top:14px; font-size:14.5px; color:var(--muted); line-height:1.85; }
.feature .f-meta{ margin-top:22px; font-size:12.5px; color:var(--muted); display:flex; gap:14px; }
.feature .f-side{
  background:linear-gradient(150deg,#312e81 0%,#4f46e5 55%,#7c3aed 100%);
  color:#fff; padding:34px 30px; display:flex; flex-direction:column; justify-content:center;
}
.feature .f-side .q{ font-size:15px; line-height:1.8; opacity:.95; }
.feature .f-side .q::before{ content:"“"; font-size:34px; line-height:0; vertical-align:-10px; opacity:.6; margin-right:3px; }
.feature .f-side .src{ margin-top:18px; font-size:12px; opacity:.72; }
@media (max-width:820px){
  .feature{ grid-template-columns:1fr; }
  .feature .f-side{ padding:26px 26px; }
  .feature h3{ font-size:21px; }
}

/* ---------- 文章列表 ---------- */
.posts{ margin-top:22px; display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:18px; }
.post{
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:26px 24px; display:flex; flex-direction:column;
  transition:transform .16s, box-shadow .16s, border-color .16s;
}
.post:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(15,23,42,.08); border-color:#c7d2fe; }
.post .p-cat{ font-size:11.5px; font-weight:700; color:var(--brand2); letter-spacing:.6px; }
.post h3{ margin-top:11px; font-size:18px; line-height:1.5; font-weight:800; color:var(--ink); }
.post p{ margin-top:11px; font-size:13.5px; color:var(--muted); line-height:1.8; flex:1; }
.post .p-meta{ margin-top:18px; font-size:12px; color:var(--muted); display:flex; gap:12px; align-items:center; }
.post .p-meta .dot{ width:3px; height:3px; border-radius:50%; background:#cbd5e1; }

/* ---------- 三个方向 ---------- */
.pillars{ margin-top:26px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.pillar{ background:var(--soft); border:1px solid var(--line); border-radius:14px; padding:26px 24px; }
.pillar .ico{
  width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#eef2ff,#f5f3ff); font-size:19px; margin-bottom:15px;
}
.pillar h3{ font-size:16px; font-weight:800; color:var(--ink); }
.pillar p{ margin-top:9px; font-size:13.5px; color:var(--muted); line-height:1.8; }
@media (max-width:860px){ .pillars{ grid-template-columns:1fr; } }

/* ---------- 关于 ---------- */
.about{
  max-width:var(--max); margin:52px auto 0; padding:0 22px;
}
.about-inner{
  border:1px solid var(--line); border-radius:16px; padding:34px 34px;
  background:linear-gradient(180deg,#fff,#fbfbfe);
}
.about h2{ font-size:20px; font-weight:800; color:var(--ink); }
.about p{ margin-top:14px; font-size:14.5px; color:var(--muted); line-height:1.9; }
.about .tags{ margin-top:20px; display:flex; gap:9px; flex-wrap:wrap; }
.about .tags span{ font-size:12px; color:#475569; background:#f1f5f9; border-radius:99px; padding:5px 13px; }

/* ---------- 页脚 ---------- */
.footer{
  margin-top:64px; border-top:1px solid var(--line); background:var(--soft);
}
.footer-inner{
  max-width:var(--max); margin:0 auto; padding:34px 22px 42px;
  font-size:12.5px; color:var(--muted); line-height:2;
}
.footer .f-top{ display:flex; gap:18px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.footer .f-top b{ color:var(--ink); font-size:13.5px; }
.footer .f-top .sep{ color:#cbd5e1; }
.footer a{ color:var(--muted); }
.footer a:hover{ color:var(--brand); }

/* ---------- 文章页 ---------- */
.article-wrap{ max-width:760px; margin:0 auto; padding:52px 22px 20px; }
.article-cat{ font-size:12px; font-weight:700; letter-spacing:1.6px; color:var(--brand); text-transform:uppercase; }
.article-title{
  margin-top:14px; font-size:35px; line-height:1.35; font-weight:800; color:var(--ink); letter-spacing:.2px;
}
.article-sub{ margin-top:16px; font-size:16px; color:var(--muted); line-height:1.85; }
.article-meta{
  margin-top:24px; padding-bottom:24px; border-bottom:1px solid var(--line);
  font-size:13px; color:var(--muted); display:flex; gap:16px; flex-wrap:wrap; align-items:center;
}
.article-meta .dot{ width:3px; height:3px; border-radius:50%; background:#cbd5e1; }

.prose{ margin-top:34px; font-size:16.5px; line-height:1.95; color:var(--body); }
.prose p{ margin:0 0 22px; }
.prose h2{
  margin:44px 0 18px; font-size:23px; font-weight:800; color:var(--ink);
  padding-left:13px; border-left:4px solid var(--brand); line-height:1.45;
}
.prose h3{ margin:32px 0 14px; font-size:18px; font-weight:800; color:var(--ink); }
.prose ul, .prose ol{ margin:0 0 22px 22px; }
.prose li{ margin-bottom:9px; }
.prose strong{ color:var(--ink); font-weight:700; }
.prose blockquote{
  margin:28px 0; padding:18px 22px; background:var(--soft);
  border-left:4px solid var(--brand); border-radius:0 10px 10px 0;
  font-size:15.5px; color:#475569;
}
.prose blockquote p{ margin:0; }
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:14px; background:#f1f5f9; border-radius:5px; padding:2px 6px; color:#4338ca;
}
.prose pre{
  margin:26px 0; padding:18px 20px; background:#0f172a; color:#e2e8f0;
  border-radius:12px; overflow-x:auto; font-size:13.5px; line-height:1.75;
}
.prose pre code{ background:none; color:inherit; padding:0; }
.prose table{ width:100%; border-collapse:collapse; margin:26px 0; font-size:14.5px; }
.prose th, .prose td{ border:1px solid var(--line); padding:11px 14px; text-align:left; vertical-align:top; }
.prose th{ background:var(--soft); font-weight:700; color:var(--ink); }

.toc{
  margin:30px 0 10px; padding:20px 24px; border:1px solid var(--line);
  border-radius:12px; background:#fcfcfe;
}
.toc b{ display:block; font-size:13px; color:var(--ink); margin-bottom:10px; letter-spacing:.5px; }
.toc ol{ margin:0 0 0 18px; font-size:14px; color:var(--muted); }
.toc li{ margin-bottom:5px; }
.toc a:hover{ color:var(--brand); }

.article-foot{
  margin-top:46px; padding-top:26px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
  font-size:13.5px; color:var(--muted);
}
.article-foot a{ color:var(--brand); font-weight:600; }

.back-link{ display:inline-block; margin-bottom:6px; font-size:13.5px; color:var(--muted); }
.back-link:hover{ color:var(--brand); }

@media (max-width:640px){
  .article-title{ font-size:26px; }
  .prose{ font-size:16px; }
  .prose h2{ font-size:20px; }
  .article-wrap{ padding:34px 20px 10px; }
}
