/* ============================================================
   jiffly_cat · 个人主页样式（明亮版）
   白底 + 粉 / 紫 / 青 渐变强调，移动优先
   ============================================================ */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --panel: #ffffff;
  --line: #e8eaf2;
  --line-strong: #d8dce8;

  --text: #12151c;
  --text-soft: #333a47;
  --muted: #6a7383;

  --pink: #ff3d7f;
  --violet: #7b4dff;
  --cyan: #0bb8d8;
  --grad: linear-gradient(115deg, var(--pink), var(--violet) 52%, var(--cyan));

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 22px -16px rgba(17, 24, 39, 0.28);
  --shadow-md: 0 2px 4px rgba(17, 24, 39, 0.05), 0 18px 38px -22px rgba(17, 24, 39, 0.35);

  --radius: 20px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(255, 61, 127, 0.18); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 背景装饰 ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(17, 24, 39, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 25%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 25%, transparent 76%);
  pointer-events: none;
}

.bg-aurora {
  position: fixed;
  inset: -18% -10% auto -10%;
  height: 82vh;
  z-index: -1;
  background:
    radial-gradient(38vw 38vw at 16% 10%, rgba(255, 61, 127, 0.16), transparent 64%),
    radial-gradient(42vw 42vw at 84% 6%, rgba(123, 77, 255, 0.14), transparent 64%),
    radial-gradient(34vw 34vw at 55% 30%, rgba(11, 184, 216, 0.12), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
}

/* ---------- 滚动进度条 ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 50;
  background: transparent;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width 0.12s linear;
}

/* ---------- 顶部导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: #f1f3f8;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon-on { display: none; }
.icon-btn[aria-pressed="true"] .icon-on { display: inline; }
.icon-btn[aria-pressed="true"] .icon-off { display: none; }
.icon-btn[aria-pressed="true"] {
  border-color: rgba(255, 61, 127, 0.45);
  background: rgba(255, 61, 127, 0.08);
}

/* ---------- 通用区块 ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.block { padding: 48px 0 8px; scroll-margin-top: 72px; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}
.section-title span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub-title {
  margin: 30px 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b94a4;
}

.meta {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 34px;
  padding: 44px 0 8px;
  align-items: center;
}
#top { scroll-margin-top: 84px; }

.hero-visual { display: flex; justify-content: center; }

.avatar-ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}
.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 61, 127, 0.9),
    rgba(123, 77, 255, 0.85),
    rgba(11, 184, 216, 0.9),
    rgba(255, 61, 127, 0.9)
  );
  filter: blur(9px);
  opacity: 0.55;
  animation: spin 9s linear infinite;
}
.avatar-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(17, 24, 39, 0.08);
}
.avatar {
  position: relative;
  z-index: 1;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #f2f4f9;
  box-shadow: 0 18px 40px -18px rgba(17, 24, 39, 0.45);
}

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

.eyebrow {
  margin: 0 0 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #10131a 4%, var(--pink) 46%, var(--violet) 72%, var(--cyan) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aliases {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--muted);
}
.aliases b {
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  color: #4a5160;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.lead {
  margin: 0 0 20px;
  max-width: 48ch;
  color: var(--text-soft);
  font-size: 1rem;
}
.lead b {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(255, 61, 127, 0.18) 62%);
  padding: 0 2px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 5px 13px;
  font-size: 0.82rem;
  color: #3a4150;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.tags li:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(255, 61, 127, 0.5);
  box-shadow: 0 8px 18px -10px rgba(255, 61, 127, 0.6);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  border: 0;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 26px -12px rgba(255, 61, 127, 0.75);
}
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(123, 77, 255, 0.7); }

.btn-sm { padding: 7px 15px; font-size: 0.82rem; }

/* ---------- 数据 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.stat-num {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- 卡片 ---------- */

.cards {
  display: grid;
  gap: 12px;
}
.card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px 180px at var(--mx, 50%) var(--my, 0%), rgba(255, 61, 127, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::after { opacity: 1; }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.card p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
.card p b { color: var(--text); }
.card-note {
  margin-top: 14px !important;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.74rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink) !important;
}

/* ---------- 中二节奏 ---------- */

.chuni-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 61, 127, 0.25);
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(255, 61, 127, 0.12), transparent 70%),
    #fff;
  box-shadow: var(--shadow-sm);
}
.rating-num {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(2.4rem, 13vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating-label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.br-mobile { display: none; }
.rating-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* 高光成绩卡 */

.best {
  margin-top: 14px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 184, 216, 0.3);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(11, 184, 216, 0.1), transparent 70%),
    #fff;
  box-shadow: var(--shadow-md);
}
.best-cover { position: relative; }
.best-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.best-flag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(255, 61, 127, 0.85);
}
.best-body { padding: 18px 20px 20px; }
.best-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #08748a;
  border: 1px solid rgba(11, 184, 216, 0.4);
  background: rgba(11, 184, 216, 0.1);
}
.best-title {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.best-sub {
  margin: 0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #c2185b;
}
.best-text {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.best-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* B30 */

.b30 {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.b30-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 13px 16px;
  align-items: baseline;
}
.b30-row + .b30-row { border-top: 1px solid #eef0f6; }
.b30-title {
  font-size: 0.92rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.b30-score {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.b30-meta {
  grid-column: 1 / -1;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #c2185b;
}
.b30-aj {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  vertical-align: 2px;
  color: #fff;
  background: var(--grad);
}

/* 谱面倾向 */

.traits { display: grid; gap: 10px; }
.trait {
  display: grid;
  grid-template-columns: 5.6em 1fr 3.4em;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.trait-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #eef0f6;
  overflow: hidden;
}
.trait-bar i {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--violet));
}
.trait-val {
  text-align: right;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--text);
}

/* 推荐 */

.reco { display: grid; gap: 12px; }
.reco-col {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.reco-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #08748a;
  border: 1px solid rgba(11, 184, 216, 0.4);
  background: rgba(11, 184, 216, 0.1);
}
.reco-tag-warn {
  color: #c2185b;
  border-color: rgba(255, 61, 127, 0.35);
  background: rgba(255, 61, 127, 0.09);
}
.reco-col p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text);
}
.reco-col p span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--muted);
}

/* 视频 */

.videos {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.videos li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}
.videos li + li { border-top: 1px solid #eef0f6; }
.video-title { font-size: 0.88rem; color: var(--text); }
.video-meta {
  flex: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- 搭档立绘 ---------- */

.partner {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.6s, box-shadow 0.6s;
}
.partner.is-awake {
  border-color: rgba(255, 61, 127, 0.35);
  box-shadow: 0 24px 60px -34px rgba(255, 61, 127, 0.65), var(--shadow-sm);
}

.partner-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(11, 184, 216, 0.08), transparent 60%),
    #fff;
  isolation: isolate;
}
.partner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 0.7s var(--ease),
    transform 1.15s var(--ease),
    filter 0.7s var(--ease);
  will-change: opacity, transform;
}
.partner-normal { opacity: 1; transform: scale(1) rotate(0deg); }
.partner-awake { opacity: 0; transform: scale(1.08) rotate(1.2deg); }

.partner.is-awake .partner-normal { opacity: 0; transform: scale(0.94) rotate(-1.2deg); }
.partner.is-awake .partner-awake { opacity: 1; transform: scale(1) rotate(0deg); }

/* 切换瞬间的光晕 */
.partner-flash {
  position: absolute;
  inset: -12%;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 61, 127, 0.18) 30%, rgba(123, 77, 255, 0.09) 48%, transparent 64%);
  opacity: 0;
  pointer-events: none;
}
.partner-flash.burst { animation: partner-flash 0.85s var(--ease); }
@keyframes partner-flash {
  0% { opacity: 0; transform: scale(0.55); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.35); }
}

/* 扫光 */
.partner-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
}
.partner-sweep.burst { animation: partner-sweep 0.9s var(--ease); }
@keyframes partner-sweep {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* 台词 */
.partner-quote {
  position: relative;
  margin: 2px 0 18px;
  padding-left: 16px;
  isolation: isolate;
}
.partner-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 61, 127, 0.85), rgba(123, 77, 255, 0.7), rgba(11, 184, 216, 0.65));
  opacity: 0.55;
  transition: opacity 0.8s var(--ease), width 0.8s var(--ease);
}
.partner-quote::after {
  content: "";
  position: absolute;
  inset: -16px -12px -16px -18px;
  z-index: -1;
  border-radius: 20px;
  background: radial-gradient(62% 82% at 22% 50%, rgba(255, 61, 127, 0.1), rgba(123, 77, 255, 0.08) 46%, transparent 72%);
  opacity: 0.75;
  animation: quote-pulse 7s ease-in-out infinite;
}
@keyframes quote-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}

.quote-line {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
    "Songti SC", "Source Han Serif SC", STSong, "MS Mincho", serif;
  font-size: clamp(1.06rem, 5vw, 1.45rem);
  font-weight: 600;
  line-height: 2.05;
  letter-spacing: 0.1em;
  background: linear-gradient(100deg, #171b23 0%, #a3235c 46%, #4f2fd0 78%, #0a8ea8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.quote-line:last-child { letter-spacing: 0.12em; }

.partner.in .quote-line { opacity: 1; transform: none; }
.partner.in .quote-line:nth-child(1) { transition-delay: 0.12s; }
.partner.in .quote-line:nth-child(2) { transition-delay: 0.28s; }
.partner.in .quote-line:nth-child(3) { transition-delay: 0.44s; }
.partner.in .quote-line:nth-child(4) { transition-delay: 0.6s; }

.partner.is-awake .partner-quote::before { opacity: 0.9; width: 3px; }
.partner.is-awake .partner-quote::after { opacity: 1; }

.partner-info { padding: 4px 4px 6px; }
.partner-name {
  margin: 10px 0 8px;
  font-size: 1.16rem;
  letter-spacing: 0.04em;
}
.partner-song {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 16px;
  text-decoration: none;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 5.4vw, 1.42rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  background: linear-gradient(100deg, var(--pink), var(--violet) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.5s var(--ease);
}
.partner-song::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.partner-song:hover::after,
.partner-song:focus-visible::after { opacity: 0.85; transform: scaleX(1); }
.song-go {
  font-size: 0.78em;
  opacity: 0.6;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.partner-song:hover .song-go { transform: translate(2px, -2px); opacity: 1; }
.partner.is-awake .partner-song { filter: brightness(1.05) saturate(1.15); }
.partner-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.partner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s, border-color 0.45s, transform 0.2s var(--ease), box-shadow 0.45s;
}
.partner-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.partner-btn:active { transform: scale(0.97); }
.partner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd5e2;
  transition: background 0.45s, box-shadow 0.45s;
}
.partner-btn[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 12px 26px -14px rgba(255, 61, 127, 0.9);
}
.partner-btn[aria-pressed="true"] .partner-dot {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
.partner-state {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 不支持渐变文字时的回退 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .quote-line { color: #1b2029; background: none; }
  .partner-name { color: var(--text); }
  .partner-song { color: var(--violet); background: none; }
}

/* ---------- 照片卡 ---------- */

.shots { display: grid; gap: 12px; }
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid #f1f3f8;
}

/* ---------- 最近游玩（RinNET 实时） ---------- */

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #0b8f6a;
  background: rgba(62, 201, 138, 0.12);
  border: 1px solid rgba(62, 201, 138, 0.4);
  vertical-align: 2px;
}
.live-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fbf80;
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.recent {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.recent-lead { margin: 0 0 8px; font-size: 0.9rem; color: var(--text); }
.recent-safe {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #8a6a2f;
  background: #fff8e8;
  border: 1px solid #f3e2bd;
  border-radius: 10px;
  padding: 8px 11px;
}
.recent-steps {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.9;
}
.recent-steps code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.76rem;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.recent-steps a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }

.recent-input {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.recent-input input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text);
  caret-color: var(--violet);
}
.recent-input input::placeholder { color: #98a1b3; }
.recent-input input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.12); }

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.recent-status {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.recent-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.recent-list { margin: 0; padding: 0; list-style: none; }
.recent-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2px 10px;
  padding: 11px 0;
  border-top: 1px solid #f1f3f8;
  align-items: baseline;
}
.recent-item:first-child { border-top: 0; }
.recent-rank {
  grid-row: span 2;
  align-self: center;
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 7px;
  text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad);
}
.recent-rank.rank-low { background: #98a1b3; }
.recent-title {
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-meta {
  grid-column: 2;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--muted);
}
.recent-score {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}
.recent-badge {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--pink);
  vertical-align: 1px;
}
.recent-badge.badge-fc { background: #f2a33c; }

.recent-msg {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  min-height: 1em;
}
.recent-msg.err { color: #c2185b; }
.recent-empty {
  padding: 14px 0 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* 一次性登录表单 */
.rn-login {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(123, 77, 255, 0.35);
  background: rgba(123, 77, 255, 0.04);
}
.rn-field { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rn-field label {
  flex: none;
  width: 5.6em;
  font-size: 0.78rem;
  color: var(--muted);
}
.rn-field input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  font-size: 0.84rem;
  color: var(--text);
}
.rn-field input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.12); }
.rn-login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.rn-login-note { flex: 1; min-width: 12em; font-size: 0.72rem; line-height: 1.6; color: var(--muted); }
.rn-alt { margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.rn-alt summary { cursor: pointer; margin-bottom: 8px; }
.rn-alt summary:hover { color: var(--violet); }

/* ---------- 爱听的曲师 ---------- */

.music {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.genre {
  padding: 16px 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.genre:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.genre-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.genre-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--pink));
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}
.genre-count {
  margin-left: auto;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.names li {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.79rem;
  color: #3a4150;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.names li:hover {
  color: var(--text);
  border-color: rgba(255, 61, 127, 0.45);
  background: #fff;
}

/* ---------- 猫咪相册 ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.cat {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f2f4f9;
  box-shadow: var(--shadow-sm);
}
.cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
}
.cat:hover img { transform: scale(1.05); filter: saturate(1.08); }

/* ---------- 联系方式 ---------- */

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}
.link-row + .link-row { border-top: 1px solid #eef0f6; }
.link-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.link-value {
  display: block;
  margin-top: 2px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.92rem;
  word-break: break-all;
  color: var(--text);
  transition: color 0.2s;
}
a.link-value:hover { color: var(--violet); }

.chip {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #4a5160;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.chip-pink {
  color: #c2185b;
  background: rgba(255, 61, 127, 0.09);
  border: 1px solid rgba(255, 61, 127, 0.3);
}

/* ---------- 页脚 ---------- */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer p { margin: 0; }
.footer-sub { margin-top: 6px; font-size: 0.76rem; opacity: 0.85; }

/* ---------- 提示条 ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translate(-50%, 16px);
  padding: 10px 20px;
  border-radius: 999px;
  background: #12151c;
  color: #fff;
  font-size: 0.84rem;
  box-shadow: 0 16px 34px -14px rgba(17, 24, 39, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 点击波纹 ---------- */

.ripples {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
}
.ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 61, 127, 0.75);
  box-shadow: 0 0 16px rgba(255, 61, 127, 0.45), inset 0 0 8px rgba(11, 184, 216, 0.4);
  animation: ripple 0.7s var(--ease) forwards;
}
@keyframes ripple {
  from { transform: scale(0.4); opacity: 0.9; }
  to { transform: scale(5.5); opacity: 0; }
}

/* ---------- 滚动出现 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 759px) {
  .br-mobile { display: inline; }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 300px 1fr;
    gap: 48px;
    padding: 72px 0 16px;
  }
  .avatar-ring { width: 240px; height: 240px; }
  .avatar { width: 212px; height: 212px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .block { padding: 72px 0 8px; }
  .section-title { font-size: 1.15rem; }
  .cats { gap: 16px; }
  .reco { grid-template-columns: 1fr 1fr; }
  .best { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .partner { grid-template-columns: 0.95fr 1fr; align-items: center; gap: 22px; padding: 20px 22px; }
  .partner-stage { margin: 0; }
  .quote-line { font-size: 1.32rem; }
  .best-cover img { height: 100%; aspect-ratio: auto; }
  .b30 { max-width: 720px; }
  .shots { grid-template-columns: 1fr 1fr; }
  .music { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 340px 1fr; }
}

/* ---------- 减少动效 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
