:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1f2430;
  --text-muted: #6b7280;
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 36, 48, 0.06);
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 85% -5%, rgba(79, 70, 229, 0.08), transparent 60%),
    radial-gradient(500px 260px at 5% 20%, rgba(79, 70, 229, 0.05), transparent 60%);
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav__logo:hover {
  color: var(--primary);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.hero__greeting {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero__name {
  font-size: clamp(44px, 8vw, 68px);
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #1f2430, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__role {
  margin-top: 14px;
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 600;
  color: var(--primary);
  min-height: 1.7em;
}

.typed-caret {
  animation: blink 1s step-end infinite;
  color: var(--primary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__tagline {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 17px;
  color: var(--text-muted);
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.4);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}

/* 章节通用 */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.section__lead {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-top: 4px;
  margin-bottom: 48px;
}

/* 关于我 */
.about__content {
  max-width: 720px;
  margin: 0 auto;
}

.about__text {
  font-size: 17px;
  color: var(--text);
  text-align: center;
}

.about__facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fact:hover {
  transform: translateY(-4px);
}

.fact__label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fact__value {
  font-size: 16px;
  font-weight: 600;
}

/* 技能 */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

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

.skill:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.skill__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill__name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 10px;
  vertical-align: middle;
}

.skill__desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* 联系 */
.contact__hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 36px;
}

.contact__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* 入场动画 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation: fadeUp 0.6s ease forwards;
}

/* 响应式 */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    font-size: 26px;
  }

  .nav__links {
    gap: 16px;
  }
}
