/* ========== 全局基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #05050a;
  --bg-card: #101018;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --text-dim: #9a9aad;
  --accent: #8b5cf6;      /* 紫色主色调 */
  --accent-soft: rgba(139, 92, 246, 0.35);
  --amber: #f5b942;       /* 琥珀色点缀 */
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

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

/* ========== 导航栏 ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 5, 10, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 17px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .badge {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--amber);
  border-radius: 999px;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ========== Hero 首屏 ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    var(--accent-soft) 0%,
    rgba(139, 92, 246, 0.12) 40%,
    transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner { position: relative; padding: 120px 24px 80px; }

.hero-pill {
  display: inline-block;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero-sub {
  margin: 24px 0 40px;
  font-size: 18px;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #0c0c14;
  color: var(--text);
  box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--accent-soft);
}

.btn-primary:hover { box-shadow: 0 0 0 2px var(--accent), 0 0 36px var(--accent-soft); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.hero-stats {
  margin-top: 80px;
  display: flex;
  gap: 64px;
  justify-content: center;
}

.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
}

.stat strong span { color: var(--amber); }

.stat > span:last-child, .stat span:last-child {
  font-size: 13px;
  color: var(--text-dim);
}

/* ========== 通用板块 ========== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 30px;
}

.section-head { text-align: center; margin-bottom: 48px; }

.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-dim); }

/* ========== 关于我 ========== */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
}

.about-card p + p { margin-top: 16px; }
.about-card p { color: var(--text-dim); }

.about-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
}

.card h3 { font-size: 19px; margin-bottom: 8px; }

.card-sub {
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.project .status {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 12px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags span, .about-tags span {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
}

/* ========== 资源链接 ========== */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: block;
  transition: transform 0.2s, border-color 0.2s;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
}

.link-card h4 { font-size: 16px; margin-bottom: 6px; }

.link-cat {
  display: inline-block;
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 8px;
}

.link-card p { font-size: 13px; color: var(--text-dim); }

/* ========== 联系我 ========== */
.contact { text-align: center; padding-bottom: 90px; }

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ========== 页脚 ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a:hover { color: var(--text); }

/* ========== 响应式 ========== */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: center; }
  .about-card { padding: 28px; }
}
