:root {
  color-scheme: dark;
  --bg: #0b1020;
  --text: #fff7fb;
  --muted: #c9d4e5;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(14, 19, 36, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --pink: #ff8fc7;
  --cyan: #7ee7e0;
  --amber: #ffd580;
  --lime: #a8f0c6;
  --violet: #cdb4ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(115deg, rgba(8, 12, 26, 0.96), rgba(35, 18, 45, 0.58), rgba(8, 12, 26, 0.78)),
    radial-gradient(circle at 20% 20%, rgba(255, 143, 199, 0.36), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(126, 231, 224, 0.32), transparent 24rem),
    url("https://api.animepics.me/wallpaper") center / cover;
  transform: scale(1.03);
  filter: saturate(1.12);
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.sakura-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.9rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.58);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
}

.brand-mark,
.round-button,
.avatar-face {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  background: conic-gradient(from 140deg, var(--pink), var(--amber), var(--cyan), var(--pink));
  color: #141827;
  box-shadow: 0 0 28px rgba(255, 143, 199, 0.5);
}

.nav {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  color: var(--muted);
}

.nav a:hover { color: var(--text); }

.round-button {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 16px 46px rgba(0,0,0,0.25);
}

.round-button.large {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.55fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, p, strong, small { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  text-shadow: 0 0 24px rgba(255, 143, 199, 0.35);
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02;
}

.subtitle {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--line);
  font-weight: 900;
}

.button.primary {
  background: linear-gradient(135deg, var(--pink), var(--amber));
  color: #151827;
}

.button.glass {
  background: var(--glass-strong);
}

.anime-panel,
.quote-band,
.nav-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.anime-panel {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  animation: floatPanel 5s ease-in-out infinite;
}

.anime-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(126,231,224,0.28), transparent, rgba(255,143,199,0.3), transparent);
  animation: rotateGlow 9s linear infinite;
}

.anime-panel > * {
  position: relative;
  z-index: 1;
}

.avatar-ring {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: conic-gradient(var(--pink), var(--cyan), var(--amber), var(--pink));
}

.avatar-face {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd6e9 32%, #583d72 100%);
  color: #361a45;
  font-size: 4rem;
  font-weight: 900;
}

.panel-title {
  margin: 0;
  text-align: center;
  font-weight: 900;
  font-size: 1.4rem;
}

.panel-text {
  margin-top: 0.3rem;
  color: var(--muted);
  text-align: center;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.status-grid strong { color: var(--text); }

.quote-band,
.section,
.profile-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.quote-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  font-weight: 800;
}

cite {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-style: normal;
}

.section,
.profile-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.nav-card {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
}

.nav-card span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  font-weight: 900;
}

.nav-card strong {
  margin-top: auto;
  font-size: 1.35rem;
}

.nav-card small,
.profile-copy {
  color: var(--muted);
}

.cyan { border-top: 4px solid var(--cyan); }
.amber { border-top: 4px solid var(--amber); }
.pink { border-top: 4px solid var(--pink); }
.lime { border-top: 4px solid var(--lime); }
.violet { border-top: 4px solid var(--violet); }
.blue { border-top: 4px solid #88b8ff; }
.rose { border-top: 4px solid #ff9aa8; }
.green { border-top: 4px solid #84e7a8; }

.profile-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4.5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 28, 0.5);
}

@keyframes floatPanel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; align-items: flex-start; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .hero,
  .profile-section,
  .link-grid {
    grid-template-columns: 1fr;
  }
  .anime-panel { max-width: 27rem; }
}

@media (max-width: 520px) {
  .brand span:last-child { max-width: 9rem; }
  .nav { font-size: 0.9rem; }
  h1 { font-size: clamp(3.5rem, 22vw, 5.8rem); }
  .quote-band { align-items: flex-start; }
}
