/* ===========================================================
   主题变量 —— 改这里即可换配色
   =========================================================== */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #3b82f6;       /* 主题色：蓝 */
  --accent-soft: #eaf1fe;
  --border: #e5e7eb;
  --radius: 14px;
  --maxw: 760px;
}

/* 深色模式（系统偏好自动启用，无需手动切换） */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --text: #e6e8ec;
    --muted: #9aa3af;
    --accent: #60a5fa;
    --accent-soft: #16243d;
    --border: #262b34;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===========================================================
   导航
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { font-weight: 700; color: var(--text); }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 20px; }
.nav__links a { color: var(--muted); font-size: 15px; }
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}
.hero__name {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__tagline {
  margin: 16px auto 32px;
  max-width: 480px;
  color: var(--muted);
  font-size: 1.1rem;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; opacity: .92; transform: translateY(-1px); }

/* ===========================================================
   通用 section
   =========================================================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about__text { color: var(--muted); font-size: 1.05rem; }

/* 技能标签 */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  padding: 8px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* 联系方式 */
.contact__hint { color: var(--muted); margin-bottom: 16px; }
.contact__list { list-style: none; display: grid; gap: 12px; }
.contact__list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact__list span:first-child {
  flex: 0 0 72px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===========================================================
   页脚
   =========================================================== */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ===========================================================
   响应式
   =========================================================== */
@media (max-width: 480px) {
  .nav__links { gap: 14px; }
  .hero { padding-top: 72px; }
  .contact__list li { flex-direction: column; gap: 2px; }
  .contact__list span:first-child { flex: none; }
}
