:root {
  --bg: #000000;
  --card: #111113;
  --card-hover: #1c1c1e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-dim: #86868b;
  --accent: #2997ff;
  --transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
}

/* 解决跳转位置被 Navbar 遮挡的问题 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* 这里预留出导航栏的高度 */
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  border-bottom: 0.5px solid var(--border);
}

.nav-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-weight: 600; text-decoration: none; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 0.85rem; transition: var(--transition); }
.nav-links a:hover { color: var(--text); }

.lang-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.2rem 0.6rem;
  border-radius: 980px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.avatar-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

/* 修正名字配色：改用纯白到浅灰的高阶感渐变，不再显得发乌 */
.title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: #f5f5f7;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.tagline-box { margin-bottom: 2.5rem; }
.tagline-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #55555a;
  background: rgba(255,255,255,0.03);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; }
.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 980px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-primary { background: #fff; color: #000; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; }
.btn:hover { transform: scale(1.02); }

/* Bento Grid */
.section { max-width: 980px; margin: 0 auto; padding: 4rem 1.5rem; }
.section-header { font-size: 1.8rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.col-span-2 { grid-column: span 2; }

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  transition: var(--transition);
}

.bento-label { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 0.8rem; }
.bento-text { font-size: 1.05rem; line-height: 1.5; color: #d2d2d7; }

.skills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-item {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--text-dim);
}

/* Projects */
.project-card { text-decoration: none; color: inherit; }
.project-card:hover { background: var(--card-hover); transform: translateY(-4px); }
.proj-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.proj-top i { font-size: 1.2rem; color: var(--accent); }
.proj-title { font-weight: 600; font-size: 1.1rem; }
.proj-desc { font-size: 0.9rem; color: var(--text-dim); }

/* Animations */
.reveal { opacity: 0; transform: translateY(15px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .title { font-size: 2.5rem; }
}

/* Footer */
footer { padding: 4rem 1rem; border-top: 0.5px solid var(--border); text-align: center; margin-top: 4rem; }
.social-icons { display: flex; justify-content: center; gap: 1.8rem; margin-bottom: 1.5rem; }
.social-icons a { color: var(--text-dim); font-size: 1.5rem; transition: var(--transition); }
.social-icons a:hover { color: var(--text); transform: translateY(-2px); }
.copyright { font-size: 0.8rem; color: #55555a; }