/* ================= G++研究院 WWW 主站 - 全局样式 ================= */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1f2330;
  --ink-2: #5a6172;
  --ink-3: #9aa1b2;
  --accent: #6c5ce7;
  --accent-2: #8f7bff;
  --accent-soft: #efecff;
  --green: #16a34a;
  --orange: #ea8a1f;
  --red: #dc2626;
  --border: #e6e8f0;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(31, 35, 48, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.logo {
  font-size: 20px; font-weight: 800; color: var(--accent);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--ink-2);
}
.nav-links a:hover, .nav-links a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-cta { display: flex; align-items: center; }
.btn-cta {
  padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: var(--accent); color: #fff; transition: background .15s;
}
.btn-cta:hover { background: var(--accent-2); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #1f2330 0%, #34306b 55%, #4834d4 100%);
  color: #fff; text-align: center; padding: 72px 20px 56px;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: 13px; margin-bottom: 22px; letter-spacing: 1px;
}
.hero h1 { font-size: 44px; font-weight: 900; letter-spacing: 2px; }
.hero h1 .hl {
  background: linear-gradient(90deg, #a29bfe, #7be0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; margin-top: 12px; color: rgba(255,255,255,.92); font-weight: 600; }
.hero-desc { font-size: 14px; margin-top: 14px; color: rgba(255,255,255,.66); }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }
.btn-primary {
  padding: 11px 28px; border-radius: 24px; font-size: 14px; font-weight: 700;
  background: #fff; color: var(--accent); transition: transform .15s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  padding: 11px 28px; border-radius: 24px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.4); color: #fff; transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 40px;
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats b { font-size: 26px; font-weight: 800; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- 布局 ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 20px 20px 60px; }
.section { margin-top: 26px; }
.cat-title {
  font-size: 20px; margin: 22px 0 16px; padding-left: 12px;
  border-left: 4px solid var(--accent);
}

/* ---------- 站点卡片 ---------- */
.site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.site-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.site-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(31,35,48,.1); }
.site-card.disabled { opacity: .82; }
.site-card.disabled:hover { transform: none; box-shadow: var(--shadow); }
.site-cover {
  height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.site-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.site-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.site-desc { font-size: 13px; color: var(--ink-2); flex: 1; }
.site-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.site-card:not(.disabled):hover .site-meta span:last-child { color: var(--accent); }
.tag {
  background: var(--accent-soft); color: var(--accent); padding: 2px 10px;
  border-radius: 10px; font-size: 12px;
}
.badge { padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge.published { background: #e7f8ee; color: var(--green); }
.badge.draft { background: #fef3e2; color: var(--orange); }

/* ---------- 特色卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; box-shadow: var(--shadow); transition: transform .15s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { font-size: 30px; margin-bottom: 10px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--ink-2); }

/* ---------- 关于 ---------- */
.about-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px; font-size: 14px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 12px;
}
.about-note { font-size: 12px; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--border); background: var(--card);
  text-align: center; padding: 22px 20px; font-size: 13px; color: var(--ink-3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .site-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 28px; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
