/* ═══════════════════════════════════════════
   AI编程人才孵化基地 · 共享设计系统
   Design Token + 通用组件
   ═══════════════════════════════════════════ */
:root {
  /* ── 暖色品牌 ── */
  --cream: #faf6f0;
  --cream-light: #fdfbf8;
  --gold: #c8a96e;
  --gold-light: rgba(200,169,110,0.12);
  --gold-mid: rgba(200,169,110,0.25);
  --warm-bg: #f5f0e8;
  --warm-card: #ffffff;
  --warm-card-hover: #fcf9f4;
  --stone: #6b6258;
  --stone-light: #9e9488;
  --charcoal: #3d3630;
  --charcoal-light: #5a524a;
  --border: #e8e0d4;
  --border-light: #f0eae0;
  --accent-green: #7aa87a;
  --accent-blue: #7a9fb5;
  --accent-terra: #c48a6e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.07);
  --max-w: 980px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--warm-bg);
  color: var(--charcoal);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 动画 ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.fade-up {
  transition: opacity .8s ease, transform .8s ease;
}
.js .fade-up {
  opacity: 0; transform: translateY(36px);
}
.js .fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ── 统一导航栏 ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
}
.navbar-inner {
  width: 100%; max-width: var(--max-w);
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  font-size: 15px; font-weight: 600;
  color: var(--charcoal); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 55vw;
}
.navbar-links {
  display: flex; gap: 6px; align-items: center;
}
.navbar-links a {
  font-size: 13px; color: var(--stone);
  text-decoration: none; padding: 6px 12px;
  border-radius: 20px; transition: var(--transition);
  white-space: nowrap;
}
.navbar-links a:hover { background: var(--gold-light); color: var(--charcoal); }
.navbar-links a.active { background: var(--gold-mid); color: var(--charcoal); font-weight: 500; }

/* ── 通用容器 ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.top-spacer { height: 72px; }

/* ── 按钮 ── */
.btn, .btn-primary, a.btn, a.btn-primary, .btn-join {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #b8912e);
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover, .btn-primary:hover, a.btn:hover, a.btn-primary:hover, .btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}
.btn-secondary, a.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold) !important;
  border: 1.5px solid var(--gold);
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ── 卡片通用 ── */
.card, .course-card, .tool-card, .feature-card {
  background: var(--warm-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.card:hover, .course-card:hover, .tool-card:hover, .feature-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-light);
}

/* ── 标签 ── */
.tag, .badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag-green, .status-ready { background: #e8f5e9; color: #2e7d32; }
.tag-gold, .status-new { background: var(--gold-light); color: #8d6e00; }
.tag-blue { background: #e3f2fd; color: #1565c0; }
.tag-stone { background: #f0eee9; color: var(--stone); }

/* ── 排版 ── */
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }
p { color: var(--charcoal-light); line-height: 1.8; margin-bottom: 12px; }
.section-title {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 0;
}
.section-title h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 8px;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px auto 0;
}
.section-subtitle {
  font-size: 14px; color: var(--stone-light);
  margin-top: 4px;
}

/* ── 网格 ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  .navbar-links a { font-size: 12px; padding: 5px 10px; }
  .navbar-logo { font-size: 13px; max-width: 40vw; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px 60px; }
  .navbar-links a { font-size: 11px; padding: 4px 8px; }
  .navbar-links { gap: 3px; }
}

/* ── 进度/状态 ── */
.status-bar {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.status-dot.ready { background: #4caf50; }
.status-dot.beta { background: #ff9800; }
.status-dot.plan { background: #9e9e9e; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border-light);
  color: var(--stone-light);
  font-size: 13px;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── 淡入滚动 ── */
@media (prefers-reduced-motion: reduce) {
  .fade-up, * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
