/* ============================================================
   大肥鱼的泡泡屋 — 视觉升级版
   深海底色 + 极光光晕 + 玻璃卡片 + 气泡
   ============================================================ */

:root {
  --bg: #03101c;
  --bg2: #072033;
  --ink: #eaf6ff;
  --muted: #9fc4dd;
  --accent: #58c7ff;
  --accent2: #7ef0d0;
  --pink: #ffb3d1;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --max: 1080px;
  --radius: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 12% -12%, #10557a 0%, transparent 58%),
    radial-gradient(900px 700px at 105% -5%, #0d4a63 0%, transparent 55%),
    radial-gradient(1000px 900px at 50% 115%, #0a3752 0%, transparent 60%),
    linear-gradient(180deg, #04121f 0%, #061a2b 42%, #030c16 100%);
  background-attachment: fixed;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}

/* 极光 + 光柱 + 暗角 */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(45vw 30vw at 20% 12%, rgba(88, 199, 255, .16), transparent 65%),
    radial-gradient(40vw 26vw at 82% 22%, rgba(126, 240, 208, .1), transparent 70%),
    url("assets/bg.svg") center / cover no-repeat;
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 38%, rgba(160, 220, 255, .045) 45%, transparent 52%),
    linear-gradient(112deg, transparent 55%, rgba(160, 220, 255, .035) 64%, transparent 71%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 6, 12, .55) 100%);
}

a { color: var(--accent2); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent); }

::selection { background: rgba(88, 199, 255, .32); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(88, 199, 255, .45), rgba(126, 240, 208, .35));
  border-radius: 999px;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 22, 37, .55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 40px -22px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.brand {
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d9f6ff, var(--accent));
  box-shadow: 0 0 12px rgba(88, 199, 255, .9);
}
.nav .links { display: flex; gap: 8px; font-size: 14px; }
.nav .links a {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav .links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav .links a.active { color: var(--ink); background: rgba(88, 199, 255, .16); }

/* ---------------- 首页 hero ---------------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4vh 24px 2vh;
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 480px;
  height: 480px;
  max-width: 120vw;
  transform: translate(-50%, -22%);
  background: radial-gradient(closest-side, rgba(88, 199, 255, .22), rgba(126, 240, 208, .08) 55%, transparent 72%);
  filter: blur(6px);
  z-index: -1;
  animation: halo 9s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: .8; transform: translate(-50%, -22%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -22%) scale(1.07); }
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(140, 228, 255, .55);
  box-shadow:
    0 0 0 8px rgba(88, 199, 255, .07),
    0 0 60px rgba(88, 199, 255, .38),
    0 22px 50px -20px rgba(0, 0, 0, .85);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.tag {
  color: var(--muted);
  letter-spacing: .3em;
  margin: 30px 0 10px;
  font-size: 11.5px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(40px, 8.4vw, 76px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: .05em;
  font-weight: 800;
  background: linear-gradient(96deg, #ffffff 0%, #cdf3ff 22%, #58c7ff 52%, #7ef0d0 78%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(88, 199, 255, .28));
  animation: sheen 12s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.typing {
  color: var(--muted);
  min-height: 1.9em;
  margin-top: 16px;
  font-size: 15.5px;
  letter-spacing: .04em;
}
.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid rgba(88, 199, 255, .45);
  background: linear-gradient(180deg, rgba(88, 199, 255, .26), rgba(88, 199, 255, .12));
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: .04em;
  box-shadow: 0 10px 26px -14px rgba(88, 199, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .28s var(--ease), background .28s var(--ease), box-shadow .28s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(88, 199, 255, .4), rgba(88, 199, 255, .2));
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(88, 199, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn.ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-strong);
  color: var(--muted);
  box-shadow: none;
}
.btn.ghost:hover { color: var(--ink); border-color: rgba(126, 240, 208, .5); background: rgba(255, 255, 255, .07); }

/* ---------------- 主体 ---------------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 22px 80px; position: relative; z-index: 1; }
section { margin: 80px 0; }
h2 {
  font-size: clamp(21px, 3.4vw, 28px);
  margin: 0 0 18px;
  letter-spacing: .03em;
  font-weight: 700;
}
.muted { color: var(--muted); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.section-head h2 { margin-bottom: 4px; }
.section-head .eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.section-head .side-link { font-size: 13px; color: var(--muted); }
.section-head .side-link:hover { color: var(--accent); }

/* ---------------- 卡片 ---------------- */
.grid3, .cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028) 55%, rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  color: var(--ink);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 199, 255, .16), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 240, 208, .4);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95), 0 0 40px -18px rgba(126, 240, 208, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
}
.card:hover::after { opacity: 1; }
.card h2 { font-size: 18.5px; margin-bottom: 8px; color: var(--accent2); letter-spacing: .02em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.card:hover .more { gap: 10px; }

/* ---------------- 内页 ---------------- */
.page { padding-top: 6vh; }
.page-head { margin: 26px 0 48px; position: relative; }
.kicker { color: var(--accent); letter-spacing: .32em; font-size: 11px; margin: 0 0 10px; text-transform: uppercase; }
.page-head h1 { font-size: clamp(32px, 6vw, 52px); }
.lead { color: var(--muted); max-width: 46em; font-size: 15.5px; }

/* ---------------- 对话 ---------------- */
.chat-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.chat-list li {
  max-width: 76%;
  padding: 11px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  color: #d9eeff;
  font-size: 15px;
  line-height: 1.75;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.chat-list li.me {
  margin-left: auto;
  background: linear-gradient(160deg, rgba(88, 199, 255, .22), rgba(88, 199, 255, .1));
  border-color: rgba(88, 199, 255, .35);
}
.chat-list .who { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; letter-spacing: .08em; }
.chat-list li.loading { max-width: none; text-align: center; color: var(--muted); background: none; border: none; box-shadow: none; }
.chat-list.small li { font-size: 14px; }

/* ---------------- 图集 ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 24px 48px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
figure:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 240, 208, .4);
  box-shadow: 0 34px 60px -32px rgba(0, 0, 0, 1), 0 0 40px -20px rgba(126, 240, 208, .5);
}
figure img { display: block; width: 100%; height: 290px; object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease); }
figure:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1.03); }
figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 13px;
  color: #e9f7ff;
  font-size: 13.5px;
  letter-spacing: .02em;
  background: linear-gradient(180deg, transparent, rgba(2, 10, 18, .82) 55%, rgba(2, 10, 18, .92));
}

blockquote {
  margin: 16px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(88, 199, 255, .1), rgba(255, 255, 255, .02));
  border-radius: 0 16px 16px 0;
  color: #cfeaff;
}

footer {
  text-align: center;
  color: #5f819a;
  padding: 44px 20px 64px;
  font-size: 12.5px;
  letter-spacing: .06em;
  position: relative;
  z-index: 1;
}

/* ---------------- 气泡 ---------------- */
.bubbles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bubbles span {
  position: absolute;
  bottom: -80px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(210, 245, 255, .95), rgba(88, 199, 255, .16) 60%, transparent 72%);
  box-shadow: 0 0 12px rgba(88, 199, 255, .25);
  animation: rise linear infinite;
  opacity: .55;
}
.bubbles span:nth-child(1) { left: 8%;  animation-duration: 15s; }
.bubbles span:nth-child(2) { left: 24%; animation-duration: 19s; animation-delay: 2s; width: 8px; height: 8px; }
.bubbles span:nth-child(3) { left: 42%; animation-duration: 13s; animation-delay: 4s; }
.bubbles span:nth-child(4) { left: 61%; animation-duration: 21s; animation-delay: 1s; width: 15px; height: 15px; }
.bubbles span:nth-child(5) { left: 78%; animation-duration: 17s; animation-delay: 3s; }
.bubbles span:nth-child(6) { left: 92%; animation-duration: 23s; animation-delay: 5s; width: 9px; height: 9px; }
@keyframes rise {
  0%   { transform: translateY(0) scale(.8); opacity: 0; }
  15%  { opacity: .55; }
  100% { transform: translateY(-115vh) scale(1.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar, .bubbles span, body::before, h1, .hero-inner::before { animation: none; }
  * { transition-duration: .01ms !important; }
}

@media (max-width: 600px) {
  .nav { top: 10px; padding: 9px 14px; }
  .nav .links { gap: 2px; font-size: 13px; }
  .nav .links a { padding: 5px 9px; }
  .hero { min-height: 66vh; padding-top: 5vh; }
  .avatar { width: 130px; height: 130px; }
  h1 { font-size: clamp(26px, 8vw, 34px); letter-spacing: .01em; }
  .tag { letter-spacing: .2em; font-size: 10.5px; }
  figure img { height: 230px; }
  section { margin: 56px 0; }
  main { padding: 0 16px 64px; }
}

/* ---------------- 日记式对话 ---------------- */
.chat-list { gap: 8px; }
.chat-list li.day {
  max-width: none;
  margin: 30px 0 12px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--muted);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.chat-list li.day::before { content: "· "; }
.chat-list li.day::after { content: " ·"; }
.chat-list li.her, .chat-list li.me {
  max-width: 78%;
  padding: 11px 16px;
  line-height: 1.75;
  position: relative;
}
.chat-list li.her { border-bottom-left-radius: 6px; }
.chat-list li.me { border-bottom-right-radius: 6px; }
.chat-list li .body { white-space: pre-wrap; }
.chat-list li .who { font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-bottom: 2px; }
.chat-list li.her .who { color: #7ef0d0; }
.chat-list li.mini { font-size: 13.5px; padding: 9px 14px; }

/* 分类泡泡 */
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.cat-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 208, .32);
  background: radial-gradient(circle at 30% 20%, rgba(126, 240, 208, .16), rgba(88, 199, 255, .06));
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.cat-bubble:hover { transform: translateY(-3px) scale(1.02); border-color: var(--accent2); box-shadow: 0 14px 30px -18px rgba(126, 240, 208, .8); }
.cat-bubble.on {
  background: radial-gradient(circle at 30% 20%, rgba(126, 240, 208, .38), rgba(88, 199, 255, .16));
  border-color: var(--accent2);
  box-shadow: 0 0 30px rgba(126, 240, 208, .28), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.cat-bubble .cat-name { letter-spacing: .04em; }
.cat-bubble .cat-n {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px;
}
.cat-hint { color: var(--muted); font-size: 13px; min-height: 1.4em; margin: 0 0 14px; }

/* 对话段卡片 */
.chat-list li.block {
  max-width: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 14px;
  margin: 20px 0;
  box-shadow: 0 24px 50px -38px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.chat-list li.block:hover { border-color: rgba(126, 240, 208, .28); transform: translateY(-2px); }
.block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.block-time { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.chip {
  font-size: 11px;
  padding: 1px 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 208, .3);
  color: var(--accent2);
  background: rgba(126, 240, 208, .07);
}
.chip.mushy { border-color: rgba(255, 160, 200, .4); color: #ffb3d1; background: rgba(255, 160, 200, .08); }
.chip.scold { border-color: rgba(255, 190, 120, .4); color: #ffd08a; background: rgba(255, 190, 120, .08); }
.turns { display: grid; gap: 8px; }
.turn {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 86%;
  padding: 9px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .05);
}
.turn.her { border-bottom-left-radius: 4px; }
.turn.me { margin-left: auto; background: rgba(88, 199, 255, .16); border-color: rgba(88, 199, 255, .2); border-bottom-right-radius: 4px; }
.turn .who { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.turn.her .who { color: #7ef0d0; }
.turn .body { white-space: pre-wrap; font-size: 14.5px; }
.turn .hm { font-size: 10px; color: rgba(159, 196, 221, .55); white-space: nowrap; margin-left: auto; }
.chat-list li.mini { max-width: 86%; padding: 9px 14px; font-size: 13.5px; }

/* 灯箱 */
figure img.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 4vh 4vw;
  background: rgba(2, 8, 15, .93);
  backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08);
}
.lb-bar { display: flex; gap: 10px; }
.lb-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 208, .45);
  background: rgba(126, 240, 208, .12);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s var(--ease);
}
.lb-btn:hover { background: rgba(126, 240, 208, .26); }
body.lb-open { overflow: hidden; }

/* Kira 的记录 */
.rec-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.rec-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.rec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.rec-date { font-size: 12px; color: var(--muted); }
.rec-rating { color: #ffd08a; font-size: 12px; letter-spacing: 2px; }
.rec-title { font-size: 17px; margin: 0 0 6px; }
.rec-note { margin: 0 0 6px; color: #cfe7f6; font-size: 14.5px; }
.rec-why { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.rec-status {
  display: inline-block;
  font-size: 11px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid rgba(126, 240, 208, .3);
  color: var(--accent2);
}
.chip.idea { border-color: rgba(126, 240, 208, .4); color: var(--accent2); }
.chip.movie { border-color: rgba(255, 180, 220, .4); color: #ffb8dd; }
.chip.game { border-color: rgba(140, 190, 255, .45); color: #a8c8ff; }
.chip.book { border-color: rgba(255, 210, 140, .4); color: #ffd6a0; }
.chip.fitness { border-color: rgba(160, 255, 190, .4); color: #b9ffcd; }
/* 时间线 / 汇总 切换 */
.view-row { display: flex; gap: 8px; margin: 6px 0 10px; }
.view-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.view-btn.on { border-color: var(--accent2); color: var(--ink); background: rgba(126, 240, 208, .12); }
.rec-card.sum .rec-note { color: var(--muted); font-size: 13px; }
/* 番剧式海报墙 */
.grid-row { list-style: none; margin: 0; padding: 0; }
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px 12px;
}
.poster { display: block; color: var(--ink); }
.poster-box {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #12324a, #0a1c2c);
}
.poster-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--muted);
}
.poster-rating {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  color: #ffd08a;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px #000;
}
.poster-status {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(4, 12, 20, .62);
  color: #dff3ff;
}
.poster-title {
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 0;
  height: 2.9em;
  overflow: hidden;
}
.poster-sub { font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.chat-list li.day { margin-top: 22px; }
/* 记录详情 */
.detail-box {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(3, 10, 18, .9);
  backdrop-filter: blur(6px);
}
.detail-box[hidden] { display: none; }
.detail-card {
  position: relative;
  width: min(760px, 94vw);
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(180deg, #0d2537, #081a29);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor: pointer;
}
.detail-top { display: flex; gap: 20px; flex-wrap: wrap; }
.detail-cover { width: 160px; border-radius: 12px; border: 1px solid var(--line); }
.detail-meta { flex: 1; min-width: 200px; }
.detail-meta h2 { margin: 8px 0 6px; font-size: 22px; }
.detail-line { color: #ffd08a; font-size: 14px; margin: 0 0 10px; }
.detail-note { color: #d5ecfa; font-size: 15px; line-height: 1.8; }
.detail-why { color: var(--muted); font-size: 13px; }
.detail-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 18px; }
.detail-shots img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.detail-empty { color: var(--muted); font-size: 13px; margin-top: 16px; }
/* 条目详情页 */
.subject-grid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.subject-side { position: sticky; top: 90px; }
.subject-cover img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.subject-cover .poster-fallback { aspect-ratio: 3/4; border-radius: 14px; border: 1px solid var(--line); }
.subject-meta { margin-top: 16px; display: grid; gap: 8px; }
.meta-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.6; }
.meta-k { color: var(--muted); min-width: 76px; flex: none; }
.meta-v { color: #dceefb; }
.subject-title { font-size: clamp(24px, 4.5vw, 34px); margin: 0 0 12px; }
.kira-score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.score-label { color: var(--muted); font-size: 13px; }
.score-stars { color: #ffd08a; letter-spacing: 2px; }
.score-num { color: #ffd08a; font-size: 13px; }
.subject-desc { color: #d5ecfa; line-height: 1.9; font-size: 15px; }
.subject-note, .subject-why { color: var(--muted); font-size: 14px; }
.shots-head { font-size: 16px; margin: 26px 0 12px; color: var(--accent2); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.shots .shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; display: block; }
.loading-bar { color: var(--muted); }
@media (max-width: 720px) {
  .subject-grid { grid-template-columns: 1fr; gap: 20px; }
  .subject-side { position: static; }
  .subject-cover { max-width: 200px; }
}
/* 评分 */
.rate-box { margin: 4px 0 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.rate-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.rate-stars button {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: rgba(255,255,255,.22); padding: 0 2px;
}
.rate-stars button.on { color: #ffd08a; }
.rate-note {
  width: 100%; min-height: 70px; resize: vertical;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.rate-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.rate-msg { color: var(--muted); font-size: 12.5px; }
.rate-token { font-size: 12px; color: #6f93ab; }
.shots video { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
/* Kira 二级分组 */
.group-row { display: flex; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.group-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.group-btn.on { border-color: var(--accent); color: var(--ink); background: rgba(88, 199, 255, .14); }
/* Kira：主内容 + 右侧时间线 */
.rec-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 30px; align-items: start; margin-top: 18px; }
.rec-main { min-width: 0; }
.rec-side {
  position: sticky;
  top: 92px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.side-title { font-size: 12px; letter-spacing: .2em; color: var(--muted); margin: 0 0 10px; }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-date, .side-clear {
  text-align: left;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.side-date:hover, .side-clear:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.side-date.on { background: rgba(88, 199, 255, .16); color: var(--ink); }
.side-clear { margin-top: 6px; color: var(--accent2); }
.sec-title { font-size: 15px; color: var(--accent2); margin: 22px 0 12px; letter-spacing: .06em; }
@media (max-width: 820px) {
  .rec-layout { grid-template-columns: 1fr; gap: 18px; }
  .rec-side { position: static; border-left: none; padding-left: 0; order: 2; }
}
/* 时间线页 */
.tl-link-row { margin: 14px 0 6px; }
.tl-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(126,240,208,.4);
  color: var(--accent2);
  font-size: 13.5px;
}
.tl-date { font-size: 13px; color: var(--muted); letter-spacing: .1em; margin: 26px 0 10px; }
.tl-rows { display: grid; gap: 10px; }
.tl-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.tl-thumb { width: 54px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; background: #0b2032; display: grid; place-items: center; }
.tl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-body { min-width: 0; flex: 1; }
.tl-head { display: flex; gap: 8px; align-items: center; }
.tl-time { font-size: 11px; color: var(--muted); }
.tl-title { margin: 2px 0 2px; font-size: 14.5px; }
.tl-note { margin: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 截图横向条 */
.shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.shots .shot { flex: 0 0 auto; margin: 0; }
.shots img { height: 260px; width: auto; border-radius: 10px; cursor: zoom-in; display: block; }
.shots video { height: 260px; width: auto; }
@media (max-width: 720px) { .shots img, .shots video { height: 200px; } }
/* 右侧时间线（可滚动） */
.rec-side {
  position: sticky;
  top: 92px;
  max-height: 72vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  scrollbar-width: thin;
}
.side-list { display: grid; gap: 5px; }
.side-date {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 5px 6px;
  cursor: pointer;
  color: var(--muted);
}
.side-date:hover { background: rgba(255,255,255,.05); }
.side-date.on { background: rgba(88,199,255,.14); border-color: rgba(88,199,255,.3); }
.side-thumb { width: 30px; height: 40px; flex: none; border-radius: 5px; overflow: hidden; background: #0b2032; display: grid; place-items: center; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb .poster-fallback { font-size: 14px; }
.side-body { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.side-d { font-size: 12.5px; color: var(--ink); }
.side-n { font-size: 11px; color: var(--muted); }
/* 时间线视图里的日期标题 */
.sec-title.date {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
/* 右侧时间线：小字日期 */
.side-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.side-date .side-d { color: var(--ink); font-size: 12px; }
.side-date .side-n { color: var(--muted); font-size: 11px; }
.side-date:hover { background: rgba(255,255,255,.05); }
.side-date.on { background: rgba(88,199,255,.16); }
/* 截图缩略：一排放五个 */
.shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
.shots .shot { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.shots .shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  cursor: zoom-in;
  display: block;
}
.shots video { width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 720px) {
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 顶部：分组 + 右侧小字视图切换 */
.rec-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-row { display: flex; gap: 10px; margin-left: auto; }
.view-link {
  background: none;
  border: none;
  padding: 2px 4px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.view-link.on { color: var(--ink); border-bottom-color: var(--accent); }
/* 截图：一排四个，预览更大 */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shots .shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.shots .shot img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; cursor: zoom-in;
}
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 游玩录屏 */
.video-wrap { display: block; }
.video-wrap video { width: 100%; max-height: 520px; border-radius: 12px; border: 1px solid var(--line); background: #000; }
/* 灯箱：居中 + 左右翻页 */
.lightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.lightbox img {
  margin: auto;
  max-width: 92vw;
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(8,20,30,.55);
  color: #eaf6ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 80;
}
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-nav:hover { background: rgba(88,199,255,.25); }
@media (max-width: 720px) {
  .lb-nav { width: 38px; height: 38px; font-size: 20px; }
  .lightbox img { max-height: 68vh; }
}
/* 多个录屏，按时间排 */
.video-list { display: grid; gap: 18px; }
.video-item { margin: 0; }
.video-item figcaption { font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .06em; }
.video-item video { width: 100%; max-height: 520px; border-radius: 12px; border: 1px solid var(--line); background: #000; }
/* 灯箱：透明玻璃 UI */
.lightbox {
  background: rgba(2, 8, 14, .82);
  backdrop-filter: blur(10px);
}
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(12, 26, 38, .28);
  backdrop-filter: blur(8px);
  color: rgba(234, 246, 255, .82);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 80;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
  opacity: .75;
}
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }
.lb-nav:hover { background: rgba(88, 199, 255, .18); border-color: rgba(88,199,255,.45); color: #fff; opacity: 1; }
.lb-bar { background: rgba(10, 22, 32, .35); backdrop-filter: blur(8px); padding: 8px; border-radius: 999px; }
.lb-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
@media (max-width: 720px) {
  .lb-nav { width: 40px; height: 40px; font-size: 20px; left: 8px; right: 8px; }
  .lb-nav.next { left: auto; right: 8px; }
}
/* 左右大面积点击区 */
.lb-zone {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 30%;
  z-index: 78;
  cursor: pointer;
  background: transparent;
}
.lb-zone.left { left: 0; }
.lb-zone.right { right: 0; }
/* 翻页按钮加大 */
.lb-nav {
  width: 84px;
  height: 84px;
  font-size: 42px;
  background: rgba(10, 22, 32, .32);
  border-color: rgba(255,255,255,.18);
  opacity: .8;
}
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 720px) {
  .lb-nav { width: 56px; height: 56px; font-size: 28px; }
}
/* 翻页按钮再加大 */
.lb-nav {
  width: 112px;
  height: 112px;
  font-size: 56px;
  border-radius: 50%;
  background: rgba(10, 22, 32, .28);
  border: 1px solid rgba(255,255,255,.16);
  opacity: .8;
}
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }
@media (max-width: 900px) {
  .lb-nav { width: 70px; height: 70px; font-size: 34px; }
  .lb-nav.prev { left: 8px; }
  .lb-nav.next { right: 8px; }
}
/* 录屏：两列网格，不超出屏宽 */
.video-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.video-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.03); }
.video-item figcaption { font-size: 12px; color: var(--muted); padding: 8px 12px 4px; letter-spacing: .05em; }
.video-item video { width: 100%; aspect-ratio: 16 / 9; max-height: 300px; object-fit: cover; display: block; background: #000; }
@media (max-width: 720px) {
  .video-list { grid-template-columns: 1fr; }
  .video-item video { max-height: 240px; }
}
/* 灯箱近似全屏 */
.lightbox { padding: 0; }
.lightbox img {
  max-width: 96vw;
  max-height: 86vh;
  border-radius: 8px;
}
.lightbox:fullscreen img { max-height: 82vh; }
.lightbox:fullscreen { background: #02080e; }
/* 预览图尽量撑满 */
.lightbox { padding: 0; }
.lightbox img {
  max-width: 97vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 6px;
}
/* 预览图强制撑满 */
.lightbox img {
  width: 97vw;
  height: 88vh;
  max-width: 97vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
}
/* 预览图真正撑满 */
.lightbox { background: #01060b; padding: 0; }
.lightbox img {
  display: block;
  margin: auto;
  width: 100vw !important;
  height: 92vh !important;
  max-width: 100vw !important;
  max-height: 92vh !important;
  object-fit: contain;
  border-radius: 0;
}
/* 灯箱底部：只留关闭，下载缩到右下角小字 */
.lb-close {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10, 22, 32, .45);
  backdrop-filter: blur(8px);
  color: rgba(234, 246, 255, .85);
  font-size: 13px;
  cursor: pointer;
  z-index: 82;
}
.lb-close:hover { background: rgba(88, 199, 255, .2); color: #fff; }
.lb-dl {
  position: fixed;
  right: 16px;
  bottom: 14px;
  font-size: 11px;
  color: rgba(234, 246, 255, .42);
  text-decoration: underline;
  z-index: 82;
}
.lb-dl:hover { color: rgba(234, 246, 255, .8); }
/* 灯箱细节修正 */
.lightbox { justify-content: center; }
.lightbox img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  margin: auto;
  object-fit: contain;
}
.lb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px 0;
  line-height: 1;
}
.lb-close {
  padding: 6px 18px;
  font-size: 12px;
  bottom: 12px;
  background: rgba(10, 22, 32, .6);
}
.lb-dl { bottom: 12px; right: 12px; font-size: 10.5px; }
/* 截图折叠 + 移动端方向适配 */
.shot-hidden { display: none !important; }
.shots-more {
  margin: 12px auto 0;
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.video-item video { max-height: 300px; }
@media (orientation: landscape) and (max-height: 560px) {
  .video-item video { max-height: 46vh; }
  .lightbox img { max-height: 78vh; }
}
@media (max-width: 720px) {
  .video-item video { max-height: 220px; }
}