/* ─────────────────────────────────────────────
   项目空间 · 样式（深色主题，与个人品牌一致）
   无框架、无构建，直接改这里即可。
   ───────────────────────────────────────────── */

:root {
  --bg: #020617;            /* slate-950 */
  --bg-alt: #0f172a;        /* slate-900 */
  --card: #0b1220;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #f59e0b;        /* amber-500 */
  --primary: #0052cc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ── 导航 ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}
.brand strong { display: block; font-size: 14px; color: #fff; }
.brand small { display: block; font-size: 11px; color: var(--muted); }
.nav-links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: #fff; }

/* ── Hero ── */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 20px 72px;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.2;
  color: #fff;
}
.hero-sub { margin-top: 20px; max-width: 560px; color: var(--muted); }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0a5fe0; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ── 通用区块 ── */
.section { max-width: 960px; margin: 0 auto; padding: 64px 20px; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 24px; color: #fff; }
.section-sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.about-text { margin-top: 16px; max-width: 680px; color: var(--muted); font-size: 15px; }

/* ── 项目卡片 ── */
.project-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
}
.card:hover { border-color: #334155; }
.card-head { display: flex; align-items: center; gap: 8px; }
.card-head h3 { font-size: 16px; color: #fff; }
.card-desc { font-size: 14px; color: var(--muted); flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}
.card-link { font-size: 13px; color: var(--accent); }
.card-link:hover { text-decoration: underline; }

.tag { font-size: 11px; border-radius: 999px; padding: 2px 10px; margin-left: auto; }
.tag-green { color: #34d399; border: 1px solid #065f46; background: #052e22; }
.tag-amber { color: #fbbf24; border: 1px solid #92400e; background: #3a2507; }
.tag-slate { color: var(--muted); border: 1px solid var(--border); }

/* ── 页脚（备案号必须保留） ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer a:hover { color: #fff; text-decoration: underline; }
.footer p + p { margin-top: 6px; }

@media (max-width: 600px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .hero { padding: 64px 20px 48px; }
}
