/* ============================================================
   y0uth.com 个人主页样式
   颜色、圆角、间距都集中在 :root 变量里，改起来方便
   ============================================================ */

:root {
  --bg: #0b0f1a;
  --text: #eef1f8;
  --muted: #9aa3b8;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.10);
  --accent-a: #5b8cff;   /* 蓝 */
  --accent-b: #a06bff;   /* 紫 */
  --accent-c: #ff6bcb;   /* 粉 */
  --radius: 20px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow-x: hidden;
  position: relative;
}

/* ---------- 背景光斑 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.blob-a {
  width: 420px; height: 420px;
  background: var(--accent-a);
  top: -120px; left: -100px;
  animation: drift-a 18s ease-in-out infinite alternate;
}

.blob-b {
  width: 380px; height: 380px;
  background: var(--accent-b);
  bottom: -140px; right: -100px;
  animation: drift-b 22s ease-in-out infinite alternate;
}

.blob-c {
  width: 300px; height: 300px;
  background: var(--accent-c);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: drift-c 26s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-70px, -50px) scale(1.15); } }
@keyframes drift-c { to { transform: translate(-40px, 40px) scale(0.9); } }

/* ---------- 主卡片 ---------- */
.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--accent-a), var(--accent-b), var(--accent-c)) border-box;
  object-fit: cover;
  margin-bottom: 22px;
}

.name {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b), var(--accent-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dot {
  -webkit-text-fill-color: var(--accent-c);
}

.tagline {
  min-height: 1.6em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.tagline::after {
  content: "▍";
  color: var(--accent-b);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.intro {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text);
}

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

.link {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.4);
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .card { padding: 36px 24px; }
  .name { font-size: 32px; }
}

/* 尊重“减少动态效果”的系统设置 */
@media (prefers-reduced-motion: reduce) {
  .blob, .card { animation: none; }
  .tagline::after { animation: none; }
}
