:root {
  --ink: #2f3542;
  --muted: #7b8494;
  --line: rgba(255, 255, 255, 0.65);
  --card: rgba(255, 255, 255, 0.58);
  --shadow: 0 10px 34px rgba(80, 90, 120, 0.10);
  --shadow-hover: 0 20px 48px rgba(80, 90, 120, 0.16);
  --radius: 24px;
  --grad: linear-gradient(120deg, #ff9ec7, #b8a7ff 45%, #7fd4c1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fdfdff 0%, #f4f7fc 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* 背景漂浮光斑 */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; }
.blob-a { width: 480px; height: 480px; top: -120px; left: -80px; background: #ffd6e7; animation: drift 24s ease-in-out infinite; }
.blob-b { width: 440px; height: 440px; top: 18%; right: -140px; background: #dcd2ff; animation: drift 28s ease-in-out infinite reverse; }
.blob-c { width: 400px; height: 400px; bottom: -120px; left: 28%; background: #d4f3ea; animation: drift 32s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(42px, -30px) scale(1.06); }
  66% { transform: translate(-30px, 26px) scale(0.96); }
}

/* 毛玻璃 */
.glass {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255, 255, 255, 0.88); }
}

/* 顶部导航 */
.site-header { position: sticky; top: 16px; z-index: 10; padding: 0 20px; }
.nav {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-radius: 999px;
}
.brand { font-size: 20px; font-weight: 800; text-decoration: none; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color 0.25s ease; }
.nav-links a:hover { color: var(--ink); }

/* 主视觉 */
.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 32px rgba(184, 167, 255, 0.38);
  animation: float 6s ease-in-out infinite;
}
.hero-hi { margin: 26px 0 0; color: var(--muted); font-size: 18px; }
.hero-name {
  margin: 4px 0 6px;
  font-size: clamp(56px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease infinite;
}
.hero-tag { margin: 0; color: var(--muted); font-size: 18px; }
.hero-links { margin-top: 30px; display: flex; justify-content: center; }
.link-card {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 22px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease;
}
.icon-link:hover { color: var(--ink); background: rgba(255, 255, 255, 0.65); }
.divider { width: 1px; height: 26px; background: rgba(120, 130, 150, 0.25); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 区块与卡片 */
.section { max-width: 1000px; margin: 0 auto; padding: 76px 20px 0; }
.section-title { font-size: 30px; font-weight: 800; margin: 0 0 26px; }
.card {
  border-radius: var(--radius);
  padding: 28px;
  line-height: 1.8;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.motto { color: var(--muted); margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.item { text-align: center; }
.item-icon { font-size: 34px; line-height: 1; }
.item-title { margin: 14px 0 4px; font-size: 18px; }
.item-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* 联系 */
.contact .contact-links { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.footer { text-align: center; color: var(--muted); padding: 70px 20px 44px; font-size: 14px; }

/* 滚动进入动画 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.visible { opacity: 1; transform: none; }

.hero .reveal:nth-child(1) { transition-delay: 0s; }
.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }

/* 无障碍 */
:focus-visible { outline: 2px solid #b8a7ff; outline-offset: 3px; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}