:root {
  --bg: #070a0f;
  --bg-soft: #0a0f16;
  --panel: rgba(13, 19, 28, 0.88);
  --panel-solid: #0d131c;
  --line: #1d2938;
  --line-soft: #151f2c;
  --text: #eef4ff;
  --muted: #8a9bb0;
  --dim: #63748a;
  --lime: #b7ff5a;
  --lime-soft: rgba(183, 255, 90, 0.12);
  --cyan: #5ce1e6;
  --pink: #ff7aa2;
  --yellow: #ffd166;
  --radius: 18px;
  --mono: "Cascadia Code", "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #10170b; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(92, 225, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 230, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
}
.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
  pointer-events: none;
}
.glow-a { left: -180px; top: -180px; background: var(--lime); }
.glow-b { right: -220px; top: 320px; background: var(--cyan); opacity: 0.14; }

.topbar {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-mark {
  color: var(--lime);
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(183, 255, 90, 0.55);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--text); }
.nav-bili {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 28, 0.7);
  color: var(--text);
}
.nav-bili:hover { border-color: var(--lime); color: var(--lime); }

main {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  gap: 45px;
  padding: 46px 0 34px;
}
.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.pulse-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(183, 255, 90, .7);
  animation: pulse 2.2s infinite;
  flex: none;
}
h1 {
  margin: 0;
  font-size: clamp(56px, 9vw, 104px);
  line-height: .94;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.cursor {
  color: var(--lime);
  animation: blink 1.15s steps(1) infinite;
}
.tagline {
  margin: 28px 0 0;
  color: #c5d2e2;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #10170b;
  box-shadow: 0 8px 28px rgba(183, 255, 90, 0.16);
}
.btn-primary:hover { background: #c8ff82; }
.btn-ghost { background: rgba(13, 19, 28, 0.72); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 28, 0.72);
  color: var(--muted);
  font-size: 12px;
}
.live-pill strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
}
.live-state {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-orbit {
  position: relative;
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--lime), transparent 28%, var(--cyan), transparent 58%, var(--pink), transparent 86%, var(--lime));
  opacity: .55;
  animation: spin 14s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}
.avatar-wrap {
  width: 215px;
  height: 215px;
  padding: 7px;
  border-radius: 50%;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 8px rgba(183, 255, 90, .04), 0 25px 70px rgba(0,0,0,.5);
  overflow: hidden;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(.92) contrast(1.04);
}
.slime-card {
  position: absolute;
  right: -10px;
  bottom: 8px;
  width: 165px;
  padding: 20px 14px 13px;
  background: rgba(13, 19, 28, 0.9);
  border: 1px solid var(--line);
  transform: rotate(5deg);
  box-shadow: 0 20px 55px rgba(0,0,0,.38);
  animation: float 5.5s ease-in-out infinite;
}
.slime {
  position: relative;
  width: 110px;
  height: 92px;
  margin: 0 auto;
  border-radius: 48% 52% 44% 56% / 58% 42% 58% 42%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,.85), transparent 10%),
    radial-gradient(circle at 68% 72%, rgba(92,225,230,.35), transparent 34%),
    linear-gradient(145deg, #d4ff8a 0%, #9ee83d 52%, #63b51f 100%);
  box-shadow: inset -10px -12px 25px rgba(38, 93, 0, .32), 0 0 34px rgba(183,255,90,.18);
}
.eye {
  position: absolute;
  top: 39px;
  width: 12px;
  height: 16px;
  border-radius: 50%;
  background: #10170b;
  box-shadow: 0 2px 0 rgba(255,255,255,.1);
}
.eye.left { left: 31px; }
.eye.right { right: 31px; }
.mouth {
  position: absolute;
  left: 50%;
  top: 61px;
  width: 18px;
  height: 9px;
  border-bottom: 2px solid #10170b;
  border-radius: 0 0 50% 50%;
  transform: translateX(-50%);
}
.slime-label {
  margin-top: 11px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-align: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 10px 0 70px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 18px;
  background: var(--panel-solid);
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
}
.stat-value {
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.1;
}
.stat-note { color: var(--dim); font-size: 10px; }

.section { padding: 16px 0 60px; }
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.03em;
}
.section-line {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  flex: 1;
  margin-bottom: 9px;
}

.project {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.project-featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  margin-bottom: 18px;
}
.project-art { position: relative; min-height: 340px; background: #0a1018; }
.project-art img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(7,10,15,.55));
  pointer-events: none;
}
.project-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}
.project-badge.stopped { background: rgba(255, 122, 162, .14); border: 1px solid rgba(255,122,162,.45); color: #ffb0c6; }
.project-body { padding: 28px 28px 26px; display: flex; flex-direction: column; }
.project-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-type, .project-year {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
}
.project-year { color: var(--dim); }
.project h3 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.project-desc { margin: 12px 0 0; color: #aebccd; font-size: 13px; line-height: 1.8; }
.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 22px;
  color: var(--muted);
  font-size: 11px;
}
.project-stats b { color: var(--yellow); font-family: var(--mono); font-size: 15px; font-weight: 500; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: auto; }
.link-btn {
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  transition: color .18s ease, border-color .18s ease;
}
.link-btn:hover { color: var(--cyan); border-color: var(--cyan); }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-compact .project-body { padding: 23px 23px 22px; }
.project-compact h3 { font-size: 24px; }
.toy-art, .bili-art {
  position: relative;
  min-height: 175px;
  padding: 24px 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a1018;
}
.toy-art { display: flex; flex-direction: column; justify-content: center; }
.toy-art-kicker { color: var(--cyan); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; }
.toy-art strong { margin-top: 4px; color: var(--lime); font-family: var(--mono); font-size: 54px; line-height: 1; }
.toy-art > span:not(.toy-art-kicker):not(.toy-art-grid) { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; }
.toy-art-grid {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 190px;
  height: 130px;
  background-image:
    linear-gradient(rgba(183,255,90,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183,255,90,.22) 1px, transparent 1px);
  background-size: 16px 16px;
  transform: rotate(-8deg);
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}
.bili-art { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bili-mark { color: var(--pink); font-family: var(--mono); font-size: 38px; font-weight: 800; letter-spacing: -.08em; }
.bili-line { width: 48px; height: 2px; background: var(--pink); }
.bili-sub { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 18px; }
.mini-stats span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.text-link { color: var(--lime); font-size: 12px; font-weight: 700; }
.text-link:hover { color: var(--cyan); }

.video-list { border-top: 1px solid var(--line); }
.video-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 92px 20px;
  gap: 14px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: #cbd7e5;
  font-size: 13px;
  transition: background .18s ease, padding .18s ease, color .18s ease;
}
.video-item:hover { background: rgba(183,255,90,.035); padding-left: 10px; padding-right: 10px; color: var(--text); }
.video-index { color: var(--dim); font-family: var(--mono); font-size: 10px; }
.video-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-date { color: var(--dim); font-family: var(--mono); font-size: 10px; text-align: right; }
.video-arrow { color: var(--lime); text-align: right; }

.about { padding-bottom: 30px; }
.about-card {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 35px;
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(183,255,90,.045), transparent 45%), var(--panel);
}
.about-card h2 { margin: 0 0 14px; font-size: 30px; letter-spacing: -.03em; }
.about-text { margin: 0 0 10px; color: #c3d0df; font-size: 14px; line-height: 1.85; }
.about-text.muted { color: var(--muted); font-size: 12px; }
.about-links { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); align-self: start; }
.contact-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  background: var(--panel-solid);
  font-size: 11px;
}
.contact-link span:first-child { color: var(--dim); }
.contact-link strong { color: var(--text); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.contact-link span:last-child { color: var(--lime); font-size: 10px; text-align: right; }
a.contact-link:hover strong { color: var(--lime); }

.footer {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  font-size: 10px;
}

.reveal { animation: fade-up .75s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy { animation-delay: .04s; }
.hero-visual { animation-delay: .12s; }
.stats { animation-delay: .2s; }
.project-featured { animation-delay: .05s; }
.project-grid .project:nth-child(1) { animation-delay: .1s; }
.project-grid .project:nth-child(2) { animation-delay: .16s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(183,255,90,.6); }
  70% { box-shadow: 0 0 0 8px rgba(183,255,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(183,255,90,0); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-9px); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 10px; padding-top: 30px; }
  .hero-visual { min-height: 330px; transform: scale(.9); transform-origin: center; }
  .slime-card { right: 3%; bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 50px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-art, .project-art img { min-height: 250px; }
  .project-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; gap: 22px; padding: 26px; }
}
@media (max-width: 620px) {
  .topbar { padding: 18px 16px; }
  .nav { gap: 12px; }
  .nav a:not(.nav-bili) { display: none; }
  main { padding: 0 16px 30px; }
  .hero { padding-top: 18px; }
  h1 { font-size: clamp(52px, 16vw, 78px); }
  .tagline { margin-top: 22px; font-size: 15px; }
  .hero-visual { min-height: 300px; transform: scale(.82); margin: -20px 0; }
  .slime-card { right: -2%; }
  .stat-card { padding: 16px 14px; }
  .stat-value { font-size: 26px; }
  .section { padding-bottom: 42px; }
  .section-head { gap: 12px; }
  .project-body, .project-compact .project-body { padding: 20px 18px; }
  .project h3 { font-size: 25px; }
  .project-compact h3 { font-size: 22px; }
  .project-art, .project-art img { min-height: 210px; }
  .toy-art, .bili-art { min-height: 150px; }
  .video-item { grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 9px; }
  .video-date { display: none; }
  .video-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .about-card { padding: 22px 18px; }
  .about-card h2 { font-size: 25px; }
  .footer { padding: 20px 16px 28px; display: block; line-height: 1.8; }
  .footer span { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
