/* =============================================================
   顾惜朝 · 个人主页  —  极光玻璃 + 编辑感
   纯静态 / 仅深色 / 移动优先
   ============================================================= */

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Design tokens ---------- */
:root {
  --bg:        #08070d;
  --ink:       #ECEAF5;
  --muted:     rgba(236,234,245,.64);
  --faint:     rgba(236,234,245,.42);

  --glass:        rgba(255,255,255,.045);
  --glass-hover:  rgba(255,255,255,.08);
  --line:         rgba(255,255,255,.09);
  --line-strong:  rgba(255,255,255,.16);

  --violet:#7c3aed; --cyan:#22d3ee; --pink:#ec4899; --blue:#3b82f6;
  --accent:#a78bfa;

  --serif: "Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Songti SC","STSong",serif;
  --mono:  "SF Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --sans:  -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;

  --maxw: 440px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 22px 72px;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora__blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5; will-change: transform;
}
.aurora__blob--1 { width: min(70vw,520px); height: min(70vw,520px); background: var(--violet); top: -16%; left: -14%; animation: drift1 26s ease-in-out infinite; }
.aurora__blob--2 { width: min(62vw,460px); height: min(62vw,460px); background: var(--cyan);   top: -8%;  right: -18%; animation: drift2 32s ease-in-out infinite; }
.aurora__blob--3 { width: min(60vw,440px); height: min(60vw,440px); background: var(--pink);   top: 42%;  left: -18%; animation: drift3 29s ease-in-out infinite; }
.aurora__blob--4 { width: min(54vw,380px); height: min(54vw,380px); background: var(--blue);   bottom: -16%; right: -14%; animation: drift2 35s ease-in-out infinite; }

.aurora__veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 28%, rgba(8,7,13,.55) 72%, var(--bg) 100%);
}
.aurora__grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@keyframes drift1 { 50% { transform: translate(60px,42px) scale(1.10); } }
@keyframes drift2 { 50% { transform: translate(-52px,50px) scale(1.06); } }
@keyframes drift3 { 50% { transform: translate(44px,-40px) scale(1.12); } }

/* ---------- Page column ---------- */
.page {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Language switch ---------- */
.lang {
  position: fixed; top: 16px; right: 18px; z-index: 10;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
  font-variant-numeric: tabular-nums; cursor: pointer; user-select: none;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: color .2s, border-color .2s, background .2s;
}
.lang:hover { color: #fff; border-color: var(--line-strong); background: var(--glass-hover); }

/* ---------- Hero ---------- */
.hero__avatar-wrap { position: relative; margin-top: 84px; }
.hero__avatar {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  position: relative; z-index: 2; border: 1px solid var(--line-strong);
}
.hero__avatar-wrap::after {
  content: ""; position: absolute; inset: -10px; z-index: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--pink), var(--violet));
  filter: blur(15px); opacity: .6; animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__name {
  font-family: var(--serif); font-size: 34px; font-weight: 600;
  letter-spacing: .01em; margin-top: 22px;
}
.hero__kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: #9b93c7; margin-top: 12px;
}
.hero__lede {
  color: var(--muted); font-size: 14.5px; line-height: 1.7;
  margin-top: 16px; max-width: 340px;
}

/* ---------- Section label ---------- */
.section-label {
  width: 100%; display: flex; align-items: center; gap: 14px;
  margin: 42px 0 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em;
  text-transform: uppercase; color: #7b749f;
}
.section-label::before,
.section-label::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- App link cards ---------- */
.links { width: 100%; display: flex; flex-direction: column; gap: 11px; }
.link-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 13px 15px; border-radius: 16px; position: relative; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, background .25s;
}
.link-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  opacity: 0; transition: opacity .25s;
}
.link-card:hover { transform: translateX(4px); background: var(--glass-hover); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.link-card:hover::before { opacity: 1; }
.link-card__icon {
  width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.link-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-card__title { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.link-card__desc { font-size: 12px; color: var(--faint); margin-top: 2px; }
.link-card__arrow { font-family: var(--mono); font-size: 13px; color: #6f6896; flex: none; transition: transform .25s, color .25s; }
.link-card:hover .link-card__arrow { color: var(--accent); transform: translate(2px,-2px); }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .22s, border-color .22s, background .22s;
}
.social:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: var(--glass-hover); }
.social img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 46px; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--faint); line-height: 2;
}
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--accent); }

/* ---------- Small screens ---------- */
@media (max-width: 380px) {
  .hero__avatar-wrap { margin-top: 64px; }
  .hero__name { font-size: 30px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
