:root{
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-mute: #f0f0f1;
  --border: #e6e6e8;
  --border-strong: #d8d8db;
  --text: #1a1a1a;
  --text-2: #55555a;
  --text-3: #8b8b90;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.1);
  --shadow-lg: 0 8px 24px rgba(16,24,40,.1), 0 2px 6px rgba(16,24,40,.05);
  --ease: cubic-bezier(.4,0,.2,1);
}
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

[hidden]{ display:none !important; }
html,body{
  margin:0;
  padding:0;
  min-height:100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size:14px;
  color:var(--text);
  background:transparent;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
html{ background:#f2f2f3; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
.boot{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  z-index:100; background:var(--bg-soft);
  transition:opacity .3s var(--ease), visibility .3s;
}
.boot.hide{ opacity:0; visibility:hidden; }
.boot-spin{
  width:28px; height:28px; border-radius:50%;
  border:2px solid var(--border-strong); border-top-color:var(--text);
  animation:bootspin .7s linear infinite;
}
@keyframes bootspin{ to{ transform:rotate(360deg); } }
.bg{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  background-color:#f2f2f3;
  filter:blur(2px) brightness(.97);
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.bg-veil{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.62) 100%);
}
.page{
  position:relative;
  z-index:2;
  min-height:100vh;
  padding:24px 20px 80px;
  max-width:1040px;
  width:100%;
  margin:0 auto;
  opacity:1;
  box-sizing:border-box;
}
body.intro-anim .page{ animation:pageIn 1s var(--ease) both; }
@keyframes pageIn{
  0%{ opacity:0; }
  100%{ opacity:1; }
}
body.intro-anim .bg{ animation:bgIn 1s var(--ease) both; }
@keyframes bgIn{
  0%{ filter:blur(18px) brightness(.97); }
  100%{ filter:blur(2px) brightness(.97); }
}
.card{
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(16px) saturate(140%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  margin-bottom:18px;
  position:sticky;
  top:16px;
  z-index:30;
}
.nav-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.nav-avatar{ width:32px; height:32px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.nav-avatar-fallback{
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--text); color:#fff; font-weight:500; font-size:13px;
}
.nav-name{ font-size:14.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav-right{ display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.icon-btn{
  width:34px;
  height:34px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-2);
  text-decoration:none;
  border:1px solid transparent;
  background:transparent;
  transition:background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn svg{ width:16px; height:16px; }
.icon-btn img{ width:17px; height:17px; object-fit:contain; border-radius:3px; }
.icon-btn:hover{ background:var(--bg-mute); color:var(--text); border-color:var(--border); }
@keyframes riseIn{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}
.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal.no-anim{ opacity:1; transform:none; transition:none; }
.layout{
  display:grid;
  grid-template-columns:288px minmax(0,1fr);
  gap:18px;
  align-items:start;
  min-width:0;
}
@media (max-width:860px){ .layout{ grid-template-columns:minmax(0,1fr); } }
.sidebar{
  padding:30px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-width:0;
}
.avatar-wrap{ position:relative; }
.avatar{
  width:112px; height:112px; border-radius:50%; object-fit:cover;
  display:block; border:1px solid var(--border);
}
.avatar-fallback{
  width:112px; height:112px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--text); color:#fff; font-weight:500; font-size:38px;
}
.avatar-wrap.anim-avatar .avatar{ transition:transform .35s var(--ease); }
@media (hover:hover) and (pointer:fine){
  .avatar-wrap.anim-avatar:hover .avatar{ transform:scale(1.04); }
}
.name{ margin:18px 0 3px; font-size:21px; font-weight:600; word-break:break-word; }
.username{ margin:0; font-size:13px; color:var(--text-3); word-break:break-word; }
.bio-quote{ margin:14px 0 0; font-size:13px; line-height:1.65; color:var(--text-2); word-break:break-word; }
.social-list{ width:100%; display:flex; flex-direction:column; gap:6px; margin-top:22px; }
.social-btn{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px;
  border-radius:8px;
  color:var(--text-2);
  text-decoration:none;
  font-size:13px;
  font-weight:400;
  border:1px solid var(--border);
  background:rgba(255,255,255,.6);
  transition:background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.social-btn svg{ width:16px; height:16px; flex-shrink:0; }
.social-btn img{ width:16px; height:16px; object-fit:contain; flex-shrink:0; border-radius:3px; }
.social-btn span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.social-btn:hover{ background:var(--bg-mute); color:var(--text); border-color:var(--border-strong); }
.content{ display:flex; flex-direction:column; gap:18px; min-width:0; }
.content .card{ padding:26px 28px; min-width:0; }
.section-title{ margin:0 0 14px; font-size:16px; font-weight:600; }
.about-text{ margin:0; font-size:13.5px; line-height:1.8; color:var(--text-2); word-break:break-word; white-space:pre-wrap; }
.tg-card{
  display:flex; flex-direction:column; gap:3px;
  text-decoration:none; color:var(--text);
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.tg-card:hover{ border-color:var(--border-strong); box-shadow:var(--shadow-lg); transform:translateY(-1px); }
.tg-title{ font-size:14.5px; font-weight:600; display:flex; align-items:center; gap:8px; }
.tg-title svg{ width:16px; height:16px; flex-shrink:0; color:var(--text-2); }
.tg-sub{ font-size:12.5px; color:var(--text-3); }
.repo-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
@media (max-width:760px){ .repo-grid{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:480px){
  .page{ padding:14px 14px 60px; }
  .navbar{ padding:10px 14px; flex-wrap:wrap; row-gap:8px; }
  .sidebar{ padding:24px 18px; }
  .content .card{ padding:20px 18px; }
  .avatar{ width:96px; height:96px; }
  .avatar-fallback{ width:96px; height:96px; font-size:32px; }
  .name{ font-size:19px; }
}
.repo-card{
  border-radius:10px;
  padding:14px 16px;
  text-decoration:none;
  color:var(--text);
  display:flex;
  flex-direction:column;
  gap:6px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.6);
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.repo-card:hover{ border-color:var(--border-strong); background:var(--bg-mute); }
.repo-name{ font-size:13.5px; font-weight:600; word-break:break-word; }
.repo-desc{
  font-size:12.5px; color:var(--text-2); line-height:1.5;
  overflow:hidden; text-overflow:ellipsis;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.repo-meta{ display:flex; align-items:center; gap:12px; font-size:11.5px; color:var(--text-3); margin-top:2px; }
.repo-meta span{ display:flex; align-items:center; gap:4px; }
.lang-dot{ width:7px; height:7px; border-radius:50%; background:var(--text-3); display:inline-block; }
.repo-meta svg{ width:12px; height:12px; }
.projects-status{ color:var(--text-3); font-size:13px; }
.contribution-wrap{ width:100%; min-width:0; overflow-x:auto; border-radius:8px; -webkit-overflow-scrolling:touch; }
.contribution-wrap img{ display:block; width:100%; min-width:640px; height:auto; filter:grayscale(1); opacity:.85; }
.site-footer{
  text-align:center;
  margin-top:28px;
  padding:0 20px;
  font-size:12.5px;
  line-height:1.6;
  word-break:break-word;
}
.site-footer a{ color:inherit; text-decoration:none; border-bottom:1px solid currentColor; }

.source-note{
  position:fixed;
  left:20px;
  bottom:18px;
  z-index:20;
  font-size:12px;
  line-height:1.4;
}
.source-note a{
  color:var(--text-3);
  text-decoration:none;
  transition:color .15s var(--ease);
}
.source-note a:hover{ color:var(--text-2); text-decoration:underline; }

@media (max-width:480px){
  .source-note{ left:14px; bottom:14px; font-size:11px; }
}
.player{
  position:fixed;
  right:20px;
  bottom:20px;
  display:flex;
  flex-direction:column;
  border-radius:14px;
  z-index:40;
  max-width:calc(100vw - 40px);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid var(--border);
  box-shadow:var(--shadow-lg);
}
.player.anim-player{ animation:riseIn .6s var(--ease) both; animation-delay:.4s; }
.player.no-anim-player{ animation:none; }
.player-main{ display:flex; align-items:center; gap:10px; padding:8px 9px; cursor:pointer; }
.art-wrap{ position:relative; width:40px; height:40px; flex-shrink:0; }
.progress-ring{ position:absolute; inset:-3px; width:46px; height:46px; transform:rotate(-90deg); pointer-events:none; }
.ring-bg{ fill:none; stroke:var(--border-strong); stroke-width:2; }
.ring-fg{ fill:none; stroke:var(--text); stroke-width:2; stroke-linecap:round; stroke-dasharray:131.9; stroke-dashoffset:131.9; transition:stroke-dashoffset .25s linear; }
.player-art{ width:40px; height:40px; border-radius:8px; object-fit:cover; display:block; background:var(--bg-mute); border:1px solid var(--border); }
.player-art.spin{ animation:spin 8s linear infinite; }
@keyframes spin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
.player-text{ display:flex; flex-direction:column; min-width:0; }
.player-title{ font-size:13px; font-weight:500; color:var(--text); max-width:140px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player-hint{ font-size:11px; color:var(--text-3); max-width:140px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; height:14px; }
.player-toggle{
  width:30px; height:30px; border-radius:7px; border:1px solid var(--border);
  background:var(--bg); color:var(--text);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; padding:0;
  transition:background .15s var(--ease);
}
.player-toggle:hover{ background:var(--bg-mute); }
.player-toggle svg{ width:13px; height:13px; }
.player-chevron{
  width:24px; height:24px; border-radius:6px; border:none; background:transparent;
  color:var(--text-3); display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; padding:0;
  transition:background .15s var(--ease);
}
.player-chevron:hover{ background:var(--bg-mute); }
.player-chevron svg{ width:12px; height:12px; transition:transform .25s var(--ease); }
.player.expanded .player-chevron svg{ transform:rotate(180deg); }
.player-expand{
  max-height:0; opacity:0; padding:0 14px;
  transition:max-height .3s var(--ease), opacity .2s var(--ease), padding .3s var(--ease);
}
.player.expanded .player-expand{ max-height:50px; opacity:1; padding:0 14px 12px; }
.seek-row{ display:flex; align-items:center; gap:8px; }
.seek-time{ font-size:10.5px; color:var(--text-3); min-width:28px; text-align:center; font-variant-numeric:tabular-nums; }
.seek-bar{
  -webkit-appearance:none; appearance:none; flex:1; height:3px; border-radius:99px;
  background:linear-gradient(to right, var(--text) var(--seek-pct,0%), var(--border-strong) 0);
  outline:none; cursor:pointer;
}
.seek-bar::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:11px; height:11px; border-radius:50%;
  background:var(--text); border:2px solid #fff; box-shadow:0 1px 3px rgba(0,0,0,.3);
}
.seek-bar::-moz-range-thumb{ width:11px; height:11px; border-radius:50%; background:var(--text); border:2px solid #fff; }
.not-ready{
  max-width:460px; margin:16vh auto; padding:36px 32px; text-align:center;
}
.not-ready h1{ margin:0 0 10px; font-size:19px; font-weight:600; }
.not-ready p{ margin:0 0 8px; color:var(--text-2); font-size:13.5px; line-height:1.7; }
.not-ready code{
  display:inline-block; margin-top:6px; padding:3px 8px; border-radius:6px;
  background:var(--bg-mute); font-size:12.5px; font-family:ui-monospace,monospace;
}