/* ==========================================================================
   星屑町 · STARDUST
   设计系统 / 样式表
   ========================================================================== */

:root {
  --bg: #07060d;
  --bg-soft: #0c0a15;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #120f1e;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ece7f5;
  --muted: #a89fbe;
  --dim: #7c7492;
  --pink: #ff6aa8;
  --pink-soft: rgba(255, 106, 168, 0.14);
  --violet: #8b6cff;
  --cyan: #4de3ff;
  --gold: #ffd166;
  --green: #7fe0b0;
  --grad: linear-gradient(115deg, #ff6aa8 0%, #a879ff 48%, #4de3ff 100%);
  --grad-2: linear-gradient(135deg, rgba(255, 106, 168, 0.16), rgba(139, 108, 255, 0.14));
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 9px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 16px 40px -24px rgba(0, 0, 0, 0.7);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --label: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 1240px;
  --nav-h: 78px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f6f1f7;
  --bg-soft: #fffafd;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --line: rgba(46, 22, 61, 0.1);
  --line-strong: rgba(46, 22, 61, 0.18);
  --text: #241a30;
  --muted: #645a76;
  --dim: #8d84a0;
  --pink-soft: rgba(255, 106, 168, 0.12);
  --shadow: 0 30px 70px -36px rgba(80, 34, 96, 0.32);
  --shadow-soft: 0 16px 40px -28px rgba(80, 34, 96, 0.28);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(255, 106, 168, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 106, 168, 0.4); background-clip: content-box; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 15px; height: 15px; }
.icon--lg { width: 22px; height: 22px; }

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   背景氛围
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.orb-a {
  width: 640px; height: 640px;
  top: -240px; left: -160px;
  background: radial-gradient(circle, rgba(255, 106, 168, 0.32), transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.orb-b {
  width: 720px; height: 720px;
  top: 18%; right: -320px;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.3), transparent 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.orb-c {
  width: 560px; height: 560px;
  bottom: -260px; left: 32%;
  background: radial-gradient(circle, rgba(77, 227, 255, 0.18), transparent 68%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(80px, 60px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-90px, 40px, 0) scale(1.05); } }
@keyframes drift-c { to { transform: translate3d(50px, -70px, 0) scale(1.1); } }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("/assets/grain.png");
  background-size: 180px 180px;
  opacity: 0.22;
  mix-blend-mode: overlay;
}

#petals {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   通用组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s, border-color 0.28s, color 0.28s;
}

.btn-primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: #0a0714;
  font-weight: 700;
  box-shadow: 0 14px 34px -14px rgba(255, 106, 168, 0.75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 20px 40px -16px rgba(255, 106, 168, 0.9);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(255, 106, 168, 0.45);
  background: rgba(255, 106, 168, 0.08);
  transform: translateY(-2px);
}

.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn-white {
  background: #fff;
  color: #170f22;
  font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(255, 255, 255, 0.5); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line);
}

.avatar {
  --size: 40px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a, #ff7eb6), var(--b, #7b5cff));
  color: #fff;
  font-family: var(--serif);
  font-size: calc(var(--size) * 0.4);
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 8px 18px -10px rgba(0, 0, 0, 0.8);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.5), transparent 58%);
}

.avatar span { position: relative; z-index: 1; }

.avatar--ring {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 106, 168, 0.5);
}

.chip {
  --cat: var(--pink);
  --cat-soft: rgba(255, 106, 168, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--cat-soft);
  border: 1px solid color-mix(in srgb, var(--cat) 30%, transparent);
  color: var(--cat);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.chip[data-cat="anime"] { --cat: #ff8cbe; --cat-soft: rgba(255, 140, 190, 0.13); }
.chip[data-cat="doujin"] { --cat: #b59bff; --cat-soft: rgba(181, 155, 255, 0.13); }
.chip[data-cat="figure"] { --cat: #ffd166; --cat-soft: rgba(255, 209, 102, 0.12); }
.chip[data-cat="pilgrimage"] { --cat: #6fe3ff; --cat-soft: rgba(111, 227, 255, 0.12); }
.chip[data-cat="event"] { --cat: #ffad7a; --cat-soft: rgba(255, 173, 122, 0.13); }
.chip[data-cat="chat"] { --cat: #8fe6bb; --cat-soft: rgba(143, 230, 187, 0.12); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
  transition: color 0.2s;
}
.tag:hover { color: var(--pink); }

.tag::before { content: "#"; opacity: 0.55; margin-right: 1px; }

.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); display: inline-block; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 38px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { border-radius: 11px; box-shadow: 0 8px 22px -10px rgba(255, 106, 168, 0.6); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.brand-text em {
  font-style: normal;
  font-family: var(--label);
  font-size: 8px;
  letter-spacing: 0.42em;
  color: var(--dim);
  margin-top: 5px;
  margin-left: 2px;
}

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 6px; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-links a span {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
  opacity: 0.75;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover span, .nav-links a.is-active span { color: var(--pink); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

.user-slot { position: relative; display: flex; align-items: center; margin-left: 4px; }

.nav-login {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--text);
  transition: all 0.25s;
}
.nav-login:hover { border-color: rgba(255, 106, 168, 0.5); background: var(--pink-soft); }

.user-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s;
}

.user-unread { display: none; }
.user-unread[hidden] { display: none !important; }
@media (max-width: 960px) {
  .user-unread {
    display: block;
    position: absolute;
    top: -4px;
    right: -3px;
  }
}
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--line); }
.user-btn .icon { color: var(--dim); width: 14px; height: 14px; }

.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 228px;
  padding: 8px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: all 0.22s var(--ease);
  z-index: 5;
}
.user-menu.is-open { opacity: 1; visibility: visible; transform: none; }

.user-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.user-menu-head strong { display: block; font-size: 13px; line-height: 1.3; }
.user-menu-head span { display: block; font-size: 11px; color: var(--dim); }

.user-menu a, .user-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  transition: all 0.2s;
}
.user-menu a:hover, .user-menu button:hover { background: var(--surface-2); color: var(--text); }
.user-menu .danger:hover { color: #ff7c8b; background: rgba(255, 90, 110, 0.1); }

.menu-toggle { display: none; }

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(var(--nav-h) - 4px);
  left: 16px; right: 16px;
  padding: 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a, .mobile-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  text-align: left;
}
.mobile-menu a span, .mobile-menu button span { font-size: 10px; letter-spacing: 0.2em; color: var(--dim); }
.mobile-menu a:hover, .mobile-menu button:hover { background: var(--surface-2); }

.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 5px 8px env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(22px);
  box-shadow: 0 -12px 30px -22px rgba(0, 0, 0, 0.8);
}
.mobile-tabbar > a,
.mobile-tabbar > button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 54px;
  border-radius: 12px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.06em;
  transition: color 0.2s, background 0.2s;
}
.mobile-tabbar > a .icon,
.mobile-tabbar > button .icon { width: 21px; height: 21px; }
.mobile-tabbar > a.is-active,
.mobile-tabbar > button.is-active { color: var(--pink); }
.mobile-tabbar > a.is-active::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.tabbar-compose { color: var(--text) !important; }
.tabbar-compose-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: 4px solid var(--bg);
  box-shadow: 0 8px 22px -8px rgba(255, 106, 168, 0.65);
}
.tabbar-compose-icon .icon { width: 20px; height: 20px; }
.tabbar-compose > span:last-child { margin-top: -1px; }
.tabbar-badge {
  position: absolute;
  top: 3px;
  right: calc(50% - 19px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--pink);
  color: #120a16;
  font-size: 8px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
body[data-route="admin"] .mobile-tabbar,
body[data-route="agreement"] .mobile-tabbar,
body[data-route="reset"] .mobile-tabbar { display: none !important; }

[data-theme="light"] .mobile-tabbar { background: rgba(255, 252, 255, 0.94); }
[data-theme="light"] .tabbar-compose-icon { border-color: #fbf7ff; }

/* --------------------------------------------------------------------------
   首页 · Hero
   -------------------------------------------------------------------------- */

.app { position: relative; z-index: 2; min-height: 70vh; transition: opacity 0.25s; }
body.route-loading .app { opacity: 0.42; }

.route-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad);
  z-index: 200;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.route-progress.is-loading {
  opacity: 1;
  transform: scaleX(0.75);
  transition: transform 2.2s cubic-bezier(0.1, 0.6, 0.2, 1), opacity 0.2s;
}
.route-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform 0.2s, opacity 0.4s 0.2s; }

.hero {
  position: relative;
  margin-top: calc(var(--nav-h) + 26px);
  min-height: 610px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0713;
  isolation: isolate;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9);
  color: #fff;
}

.hero-slides { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 8s linear;
  filter: saturate(1.05);
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 4, 12, 0.94) 0%, rgba(5, 4, 12, 0.82) 30%, rgba(5, 4, 12, 0.34) 56%, rgba(5, 4, 12, 0.08) 78%, rgba(5, 4, 12, 0.42) 100%),
    linear-gradient(0deg, rgba(5, 4, 12, 0.85) 0%, transparent 38%);
}

.hero::after {
  content: "夢";
  position: absolute;
  right: 3%;
  top: 46%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 420px;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.035);
  z-index: 1;
  pointer-events: none;
}

.hero-stage { position: relative; z-index: 3; min-height: 610px; display: flex; align-items: center; }

.hero-copy-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 64px 0 74px 64px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.hero-copy-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 22px;
}
.hero-kicker::before { content: ""; width: 34px; height: 1px; background: var(--pink); }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  margin: -10px 0 20px;
}

.hero-excerpt {
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 26px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.hero-meta .avatar { --size: 30px; }
.hero-meta strong { color: #fff; font-weight: 500; font-size: 13px; }
.hero-meta .dot { background: rgba(255, 255, 255, 0.35); }

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.hero-nav-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.4); }

.hero-side {
  position: absolute;
  right: 38px;
  bottom: 56px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.hero-count {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
}
.hero-count b { font-size: 30px; color: #fff; font-weight: 500; margin-right: 4px; }

.hero-arrows { display: flex; gap: 8px; }
.hero-dots { display: flex; align-items: center; gap: 9px; }
.hero-dot {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.35s var(--ease);
}
.hero-dot.is-active { width: 52px; background: var(--grad); }

.hero-vertical {
  position: absolute;
  right: 44px;
  top: 48px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.35);
}

/* 数据条 */
.stat-strip {
  position: relative;
  z-index: 5;
  margin: -44px auto 0;
  width: min(1060px, calc(100% - 72px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 16px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(26px) saturate(130%);
  box-shadow: var(--shadow);
}

.stat { position: relative; text-align: center; padding: 0 8px; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 18%;
  height: 64%;
  width: 1px;
  background: var(--line);
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 11px; letter-spacing: 0.22em; color: var(--dim); }

/* --------------------------------------------------------------------------
   区块 / 布局
   -------------------------------------------------------------------------- */

.section { margin-top: 92px; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}
.sec-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }

.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.sec-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-desc { color: var(--muted); font-size: 13.5px; margin-top: 10px; max-width: 520px; }

.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: all 0.25s;
  flex: none;
}
.sec-link:hover { color: var(--pink); border-color: var(--pink); gap: 11px; }

.topic-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  margin-bottom: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
}
.topic-label {
  flex: none;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--dim);
}

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 34px; align-items: start; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.widget-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.widget-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--grad);
}
.widget-more { font-size: 11px; color: var(--dim); transition: color 0.2s; }
.widget-more:hover { color: var(--pink); }

/* --------------------------------------------------------------------------
   帖子卡片 / 热榜
   -------------------------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-grid > .empty { grid-column: 1 / -1; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(165deg, var(--surface), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 106, 168, 0.55), transparent 35%, transparent 65%, rgba(77, 227, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: transparent; }
.post-card:hover::after { opacity: 1; }

.post-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: #0b0814;
}
.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.post-card:hover .post-cover img { transform: scale(1.06); filter: saturate(1.15); }

.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 6, 13, 0.72) 0%, transparent 46%);
  pointer-events: none;
}

.chip-float { position: absolute; left: 14px; top: 14px; z-index: 2; backdrop-filter: blur(8px); }

.cover-read {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
}
.post-card:hover .cover-read { opacity: 1; transform: none; }

.post-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }
.post-tags { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.post-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.62;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
.post-title:hover { color: var(--pink); }

.post-excerpt {
  font-size: 12.8px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.post-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mini-author { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.mini-author .avatar { --size: 26px; }
.mini-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-author:hover { color: var(--text); }

.post-stats { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--dim); flex: none; }
.post-stats span { display: inline-flex; align-items: center; gap: 5px; }
.post-stats .icon { width: 14px; height: 14px; }

/* 热榜 */
.hot-list { display: flex; flex-direction: column; }
.hot-item {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.hot-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.hot-item:first-child { padding-top: 2px; }

.hot-rank {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  width: 30px;
  flex: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.hot-body { min-width: 0; flex: 1; }
.hot-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.hot-title:hover { color: var(--pink); }
.hot-meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--dim); margin-top: 6px; }
.hot-meta .icon { width: 12px; height: 12px; }

/* 番剧侧栏 */
.anime-mini {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  transition: all 0.25s;
}
.anime-mini + .anime-mini { border-top: 1px solid var(--line); }
.anime-mini:hover { transform: translateX(3px); }
.anime-mini-cover {
  width: 46px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
}
.anime-mini-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.anime-mini-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.anime-mini:hover .anime-mini-title { color: var(--pink); }
.anime-mini-sub { font-size: 10.5px; color: var(--dim); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.score { color: var(--gold); font-weight: 600; font-family: var(--label); }

/* 话题 */
.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.25s;
}
.topic-pill b { font-size: 10px; font-weight: 500; color: var(--dim); }
.topic-pill:hover { color: var(--pink); border-color: rgba(255, 106, 168, 0.45); background: var(--pink-soft); }

/* 活跃同好 */
.people { display: flex; flex-direction: column; gap: 1px; }
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.person .avatar { --size: 34px; }
.person-info { flex: 1; min-width: 0; }
.person-name { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.person-name em {
  font-style: normal;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid rgba(255, 106, 168, 0.25);
}
.person-sub { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-stat { font-size: 10px; color: var(--dim); flex: none; font-family: var(--label); }

/* 公告 */
.notice {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 106, 168, 0.2), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255, 106, 168, 0.22);
  overflow: hidden;
}
.notice::after {
  content: "NOTICE";
  position: absolute;
  right: -6px;
  bottom: 4px;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.06);
}
.notice-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--pink);
  margin-bottom: 10px;
}
.notice p { font-size: 12.5px; line-height: 1.85; color: var(--muted); }

/* --------------------------------------------------------------------------
   图集横条 / CTA
   -------------------------------------------------------------------------- */

.gallery-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }

.strip-card {
  position: relative;
  flex: 0 0 268px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: #0b0814;
}
.strip-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.strip-card:hover img { transform: scale(1.07); }
.strip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 5, 12, 0.9) 0%, rgba(6, 5, 12, 0.1) 55%, transparent 100%);
}
.strip-info { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.strip-info h4 { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.strip-info span { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.65); margin-top: 5px; }
.strip-info .icon { width: 13px; height: 13px; }

.cta {
  position: relative;
  margin-top: 92px;
  padding: 60px 64px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 168, 0.22);
  background:
    radial-gradient(120% 160% at 82% 0%, rgba(255, 106, 168, 0.24), transparent 55%),
    radial-gradient(110% 150% at 0% 100%, rgba(77, 227, 255, 0.14), transparent 55%),
    linear-gradient(150deg, #171024, #0b0813);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: #fff;
}
.cta::before {
  content: "WELCOME";
  position: absolute;
  right: 20px;
  top: -26px;
  font-family: var(--serif);
  font-size: 150px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: 0.06em;
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 2; }
.cta-kicker { font-family: var(--label); font-size: 10px; letter-spacing: 0.4em; color: var(--pink); margin-bottom: 14px; }
.cta h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.5; margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, 0.6); font-size: 13.5px; }
.cta-actions { position: relative; z-index: 2; display: flex; gap: 12px; flex: none; flex-wrap: wrap; }

.hero .btn-ghost,
.cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}
.hero .btn-ghost:hover,
.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   页面头部 / 工具栏
   -------------------------------------------------------------------------- */

.page { padding-top: calc(var(--nav-h) + 42px); }
.page-head { position: relative; margin-bottom: 36px; }
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.page-kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; }

.page-title {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.page-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-desc { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 560px; }
.page-jp {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.6em;
  color: var(--dim);
  opacity: 0.5;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 60%, transparent);
  backdrop-filter: blur(16px);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.22s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-btn span { font-family: var(--label); font-size: 9px; letter-spacing: 0.12em; color: var(--dim); }
.chip-btn:hover { color: var(--text); background: var(--surface-2); }
.chip-btn.is-active {
  color: #100a18;
  background: var(--grad);
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(255, 106, 168, 0.7);
}
.chip-btn.is-active span { color: rgba(16, 10, 24, 0.55); }

.toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.segmented button {
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--dim);
  transition: all 0.22s;
}
.segmented button.is-active { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }

.search-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.25s;
}
.search-inline:focus-within { border-color: rgba(255, 106, 168, 0.5); }
.search-inline .icon { width: 15px; height: 15px; color: var(--dim); }
.search-inline input {
  width: 132px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
}
.search-inline input::placeholder { color: var(--dim); }

.result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
.result-line p { font-size: 12.5px; color: var(--dim); }

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   图集
   -------------------------------------------------------------------------- */

.masonry { columns: 3; column-gap: 20px; }

.art-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0814;
  cursor: zoom-in;
}
.art-card img { width: 100%; height: auto; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; display: block; }
.art-card:nth-child(3n + 2) img { aspect-ratio: 4 / 5; }
.art-card:nth-child(3n + 3) img { aspect-ratio: 1 / 1; }
.art-card:nth-child(3n + 1) img { aspect-ratio: 3 / 2; }
.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 4, 10, 0.9) 0%, transparent 52%);
  opacity: 0.65;
  transition: opacity 0.4s;
}
.art-card:hover img { transform: scale(1.04); }
.art-card:hover::after { opacity: 1; }

.art-info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; transform: translateY(6px); transition: transform 0.4s var(--ease); }
.art-card:hover .art-info { transform: none; }
.art-info h3 { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.art-info .meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: rgba(255, 255, 255, 0.65); margin-top: 3px; }
.art-info .meta .icon { width: 12px; height: 12px; }
.art-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(8, 6, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   番剧
   -------------------------------------------------------------------------- */

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

.anime-card { position: relative; cursor: pointer; }
.anime-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0814;
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.anime-card:hover .anime-poster { transform: translateY(-6px); border-color: rgba(255, 106, 168, 0.35); box-shadow: var(--shadow-soft); }
.anime-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.anime-card:hover .anime-poster img { transform: scale(1.06); }
.anime-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 5, 12, 0.95) 0%, rgba(6, 5, 12, 0.2) 45%, transparent 68%);
}
.anime-score {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: rgba(6, 5, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
}
.anime-score .icon { width: 11px; height: 11px; }

.anime-collect {
  position: absolute;
  left: auto; right: 12px; bottom: 12px;
  z-index: 3;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.55;
  transform: none;
  transition: all 0.3s var(--ease);
}
.anime-card:hover .anime-collect, .anime-collect.is-collected { opacity: 1; }
.anime-collect:hover { background: var(--pink); border-color: var(--pink); }
.anime-collect.is-collected { background: rgba(255, 106, 168, 0.85); border-color: transparent; }

.anime-caption { padding: 12px 4px 0; }
.anime-caption h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}
.anime-card:hover .anime-caption h3 { color: var(--pink); }
.anime-caption p { font-size: 11px; color: var(--dim); margin-top: 4px; display: flex; align-items: center; gap: 7px; }

.anime-jp { font-family: var(--label); font-size: 10.5px; color: var(--dim); letter-spacing: 0.04em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------------------------------------------------
   文章详情
   -------------------------------------------------------------------------- */

.article { max-width: 860px; margin: 0 auto; padding-top: calc(var(--nav-h) + 34px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); margin-bottom: 24px; }
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb .icon { width: 12px; height: 12px; }

.article-head { margin-bottom: 28px; }
.article-cat { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.article-cat time { font-size: 12px; color: var(--dim); }

.article-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.article-subtitle {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: -8px 0 22px;
  line-height: 1.6;
}

.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-meta .avatar { --size: 40px; }
.article-author { display: flex; flex-direction: column; line-height: 1.4; }
.article-author strong { font-size: 14px; font-weight: 500; }
.article-author span { font-size: 11px; color: var(--dim); }
.article-meta-stats { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--dim); }
.article-meta-stats span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta-stats .icon { width: 14px; height: 14px; }

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

.prose { color: #d9d3e6; font-size: 16.5px; line-height: 2.05; letter-spacing: 0.01em; }
.prose p { margin: 0 0 24px; }
.prose p:first-of-type { font-size: 18px; color: var(--text); font-weight: 400; }

.article-tags { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 34px 0 30px; padding-top: 24px; border-top: 1px solid var(--line); }

.action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  width: fit-content;
  margin: 0 auto 46px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.25s;
}
.action-btn:hover { background: var(--surface-2); color: var(--text); }
.action-btn .icon { width: 18px; height: 18px; }
.action-btn.is-active { color: var(--pink); background: var(--pink-soft); }
.action-btn.is-active .icon { fill: var(--pink); stroke: var(--pink); }
.action-btn.bookmark.is-active { color: var(--gold); background: rgba(255, 209, 102, 0.1); }
.action-btn.bookmark.is-active .icon { fill: var(--gold); stroke: var(--gold); }


.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface-2), transparent);
  margin-bottom: 48px;
}
.author-card .avatar { --size: 54px; }
.author-card-info { flex: 1; min-width: 0; }
.author-card-info strong { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.author-card-info p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.author-card .btn { flex: none; }

.comments { margin-top: 8px; }
.comments-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.comments-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.comments-head span { font-family: var(--label); font-size: 11px; color: var(--dim); letter-spacing: 0.2em; }
.comments-head .line { flex: 1; height: 1px; background: var(--line); }

.comment-form {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 28px;
}
.comment-form .avatar { --size: 38px; }
.comment-form-body { flex: 1; }
.comment-form textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13.5px;
  line-height: 1.8;
}
.comment-form textarea::placeholder { color: var(--dim); }
.comment-form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

.login-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.comment-list { display: flex; flex-direction: column; }
.comment {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: 0; }
.comment .avatar { --size: 36px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.comment-head strong { font-size: 12.5px; font-weight: 500; }
.comment-head time { font-size: 10.5px; color: var(--dim); }
.comment-text { font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.comment-actions { display: flex; gap: 14px; margin-top: 6px; font-size: 10.5px; color: var(--dim); }
.comment-actions > span { display: inline-flex; align-items: center; gap: 4px; }
.comment-actions button { display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s; }
.comment-actions button:hover { color: var(--pink); }
.comment-actions .icon { width: 12px; height: 12px; }

.related { margin-top: 64px; }

/* --------------------------------------------------------------------------
   个人主页
   -------------------------------------------------------------------------- */

.profile { padding-top: calc(var(--nav-h) + 26px); }

.profile-cover {
  position: relative;
  height: 230px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0814;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); transform: scale(1.03); }
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 4%, rgba(7, 6, 13, 0.78) 42%, rgba(7, 6, 13, 0.12) 100%);
}
.profile-cover-label {
  position: absolute;
  right: 30px;
  top: 24px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.4);
}

.profile-main {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding: 0 34px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.profile-main .avatar { --size: 110px; font-size: 44px; border: 5px solid var(--bg); }
.profile-id { flex: 1; min-width: 220px; padding-bottom: 8px; }
.profile-id h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-id .handle { font-size: 12px; color: var(--dim); font-family: var(--label); letter-spacing: 0.08em; margin-top: 4px; }
.profile-bio { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 520px; }
.profile-actions { display: flex; gap: 10px; padding-bottom: 10px; }

.role-badge {
  font-size: 10px;
  font-family: var(--sans);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid rgba(255, 106, 168, 0.3);
  letter-spacing: 0.1em;
}

.profile-stats {
  display: flex;
  gap: 36px;
  margin: 30px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.profile-stats div { display: flex; align-items: baseline; gap: 8px; }
.profile-stats strong { font-family: var(--serif); font-size: 24px; }
.profile-stats span { font-size: 11px; color: var(--dim); letter-spacing: 0.14em; }
.profile-stats .joined { margin-left: auto; font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 6px; }

.profile-tabs { display: flex; gap: 26px; margin: 30px 0 26px; border-bottom: 1px solid var(--line); }
.profile-tabs button {
  position: relative;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--dim);
  transition: color 0.25s;
}
.profile-tabs button span { font-family: var(--label); font-size: 9px; letter-spacing: 0.14em; margin-left: 5px; color: var(--dim); }
.profile-tabs button::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--grad);
  transition: right 0.3s var(--ease);
}
.profile-tabs button.is-active { color: var(--text); }
.profile-tabs button.is-active::after { right: 0; }

.profile-panel { min-height: 200px; }

/* --------------------------------------------------------------------------
   关于
   -------------------------------------------------------------------------- */

.about { max-width: 780px; margin: 0 auto; padding-top: calc(var(--nav-h) + 48px); }
.about h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 58px); font-weight: 700; margin-bottom: 22px; }
.about h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about .lead { font-size: 16px; line-height: 2; color: var(--muted); margin-bottom: 40px; }
.about h2 { font-family: var(--serif); font-size: 24px; margin: 40px 0 14px; }
.about p { color: var(--muted); font-size: 14px; line-height: 2; margin-bottom: 16px; }
.about .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.about .value { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.about .value strong { display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 8px; }
.about .value span { font-size: 12px; color: var(--dim); line-height: 1.8; }

/* --------------------------------------------------------------------------
   模态框 / 表单
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 3, 9, 0.72);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s;
  overflow-y: auto;
}
.modal-backdrop.is-open { opacity: 1; }

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 26px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface-solid) 96%, #fff 4%), var(--surface-solid));
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.35s var(--ease);
  scrollbar-width: thin;
}
.modal-backdrop.is-open .modal { transform: none; }
.modal.modal-wide { width: min(760px, 100%); }
.modal.modal-composer { width: min(720px, 100%); max-height: 92vh; }
.modal-composer .modal-head { margin-bottom: 16px; }
.modal-composer .field { margin-bottom: 13px; }
.modal-composer .composer-preview { height: 96px; margin-bottom: 14px; }
.modal-composer textarea.input { min-height: 120px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--dim);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-head { margin-bottom: 22px; padding-right: 30px; }
.modal-kicker { font-family: var(--label); font-size: 9px; letter-spacing: 0.34em; color: var(--pink); margin-bottom: 8px; }
.modal-title { font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.35; }
.modal-sub { font-size: 12px; color: var(--dim); margin-top: 6px; }

.auth-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; height: 36px; border-radius: 999px; font-size: 13px; color: var(--dim); transition: all 0.25s; }
.auth-tabs button.is-active { background: var(--surface-2); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }

.field { margin-bottom: 17px; }
.field label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 8px; }
.field label span { color: var(--dim); letter-spacing: 0.04em; font-size: 10px; }
.input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  outline: 0;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
textarea.input { height: auto; min-height: 150px; padding: 13px 15px; line-height: 1.85; resize: vertical; }
.input::placeholder { color: var(--dim); font-size: 13px; }
.input:focus { border-color: rgba(255, 106, 168, 0.55); background: color-mix(in srgb, var(--surface) 80%, var(--pink) 6%); box-shadow: 0 0 0 4px rgba(255, 106, 168, 0.09); }
.input[aria-invalid="true"] { border-color: #ff6f7f; }

.captcha-row { display: flex; align-items: stretch; gap: 9px; }
.captcha-row .input { flex: 1; min-width: 0; letter-spacing: 0.18em; text-transform: uppercase; }
.captcha-image {
  width: 132px;
  height: 46px;
  flex: none;
  padding: 0;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0f0b18;
  cursor: pointer;
}
.captcha-image svg { display: block; width: 100%; height: 100%; }
.captcha-image:hover { border-color: rgba(255, 106, 168, 0.55); }
.captcha-loading { display: grid; place-items: center; height: 100%; font-size: 10px; color: var(--dim); }
.captcha-refresh {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--dim);
  transition: color 0.2s;
}
.captcha-refresh:hover { color: var(--pink); }

@media (max-width: 480px) {
  .captcha-image { width: 112px; }
}

.form-error { min-height: 18px; font-size: 12px; color: #ff7c8b; margin: -4px 0 10px; }

.auth-submit { margin-top: 6px; }
.auth-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}
.auth-demo button { color: var(--pink); font-size: 12px; white-space: nowrap; }
.auth-demo button:hover { text-decoration: underline; }
.auth-note { font-size: 10.5px; color: var(--dim); text-align: center; margin-top: 16px; line-height: 1.7; }

.auth-agree {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 15px;
  font-size: 11px;
  color: var(--dim);
}
.auth-agree label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-agree input {
  width: 14px;
  height: 14px;
  accent-color: var(--pink);
  cursor: pointer;
}
.auth-agree a { color: var(--pink); }
.auth-agree a:hover { text-decoration: underline; }

.auth-forgot-row { display: flex; justify-content: flex-end; margin: -9px 0 14px; }
.auth-forgot { font-size: 11px; color: var(--dim); transition: color 0.2s; }
.auth-forgot:hover { color: var(--pink); }

.account-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.account-state span { display: block; font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.account-state strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
.account-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.account-note { margin-top: 12px; font-size: 10.5px; line-height: 1.75; color: var(--dim); }

.forgot-success { display: grid; justify-items: center; gap: 8px; padding: 24px 8px 8px; text-align: center; }
.forgot-success .icon { width: 30px; height: 30px; color: var(--mint); }
.forgot-success strong { font-family: var(--serif); font-size: 18px; }
.forgot-success p { font-size: 11.5px; line-height: 1.8; color: var(--dim); }

.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--pink-soft);
  border: 1px solid rgba(255, 106, 168, 0.25);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.notice-banner .icon { color: var(--pink); flex: none; margin-top: 2px; }

/* 发帖 */
.composer-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
.cat-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-option {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.22s;
}
.cat-option.is-active { color: #100a18; background: var(--grad); border-color: transparent; font-weight: 700; }

.cover-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cover-option {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.62;
  transition: all 0.22s;
}
.cover-option img { width: 100%; height: 100%; object-fit: cover; }
.cover-option:hover { opacity: 1; }
.cover-option.is-active { border-color: var(--pink); opacity: 1; box-shadow: 0 0 0 3px rgba(255, 106, 168, 0.2); }
.cover-option .pick-check {
  position: absolute;
  right: 5px; top: 5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--pink);
  color: #120a18;
  display: none;
  place-items: center;
}
.cover-option.is-active .pick-check { display: grid; }
.cover-option .pick-check .icon { width: 11px; height: 11px; stroke-width: 3; }

.composer-preview {
  position: relative;
  height: 130px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.composer-preview img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.composer-preview span {
  position: absolute;
  left: 16px; bottom: 12px;
  font-family: var(--serif);
  font-size: 13px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.composer-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 4, 10, 0.8), transparent 70%); }

.composer-foot {
  position: sticky;
  bottom: -30px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px -30px -30px;
  padding: 14px 30px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.composer-foot .hint { font-size: 10.5px; color: var(--dim); }
.composer-foot .actions { display: flex; gap: 10px; }

/* 搜索 */
.search-modal { width: min(720px, 100%); padding: 0; overflow: hidden; }
.search-top { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.search-top .icon { width: 20px; height: 20px; color: var(--pink); }
.search-top input { flex: 1; height: 34px; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-top input::placeholder { color: var(--dim); font-size: 14px; }
.search-kbd { font-family: var(--label); font-size: 10px; color: var(--dim); border: 1px solid var(--line-strong); border-radius: 5px; padding: 2px 6px; }
.search-body { max-height: 56vh; overflow-y: auto; padding: 14px 12px 18px; }
.search-group-title { font-size: 10px; letter-spacing: 0.28em; color: var(--dim); padding: 10px 12px 8px; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background 0.2s; }
.search-item:hover { background: var(--surface-2); }
.search-item img { width: 46px; height: 34px; object-fit: cover; border-radius: 7px; flex: none; }
.search-item .thumb-portrait { width: 34px; height: 46px; }
.search-item-info { min-width: 0; flex: 1; }
.search-item-info strong { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-info span { display: block; font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.search-empty { padding: 48px 20px; text-align: center; color: var(--dim); font-size: 13px; }
.search-hint { padding: 26px 20px 30px; text-align: center; color: var(--dim); font-size: 12px; line-height: 2; }
.search-hint kbd { font-family: var(--label); font-size: 10px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; }

/* 番剧详情 */
.anime-detail { display: grid; grid-template-columns: 190px 1fr; gap: 24px; }
.anime-detail-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.anime-detail-poster .anime-glyph { left: auto; right: 6px; bottom: 18px; font-size: 64px; }
.anime-detail-poster .anime-type-title { left: 14px; top: 44px; font-size: 16px; line-height: 1.45; max-height: 60%; padding-left: 8px; }
.anime-detail-poster .anime-type-jp { display: none; }
.anime-detail-info h2 { font-family: var(--serif); font-size: 24px; line-height: 1.4; margin-bottom: 4px; }
.anime-detail-jp { font-family: var(--label); font-size: 11px; color: var(--dim); margin-bottom: 14px; }
.anime-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11.5px; color: var(--dim); margin-bottom: 16px; }
.anime-detail-meta b { color: var(--gold); font-family: var(--label); font-size: 15px; }
.anime-detail-synopsis { font-size: 13px; line-height: 1.95; color: var(--muted); margin-bottom: 20px; }
.anime-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   灯箱 / Toast / 空状态
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 76px;
  background: rgba(3, 2, 8, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: 10px; box-shadow: 0 40px 100px -30px #000; }
.lightbox-caption { margin-top: 18px; text-align: center; color: #fff; }
.lightbox-caption h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.lightbox-caption p { font-size: 11.5px; color: rgba(255, 255, 255, 0.55); margin-top: 4px; }
.lightbox-close { position: absolute; top: 22px; right: 24px; color: rgba(255, 255, 255, 0.7); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(22, 17, 34, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 12.5px;
  backdrop-filter: blur(16px);
  animation: toast-in 0.35s var(--ease) both;
}
.toast .icon { color: var(--pink); width: 15px; height: 15px; }
.toast.toast-error .icon { color: #ff7c8b; }
.toast.is-leaving { animation: toast-out 0.3s var(--ease) forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(0.97); } }

.empty {
  padding: 64px 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--dim);
}
.empty .icon { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--dim); opacity: 0.6; }
.empty strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--muted); margin-bottom: 6px; }
.empty p { font-size: 12.5px; }

.error-page { padding: 170px 24px 120px; text-align: center; }
.error-page .code { font-family: var(--serif); font-size: 94px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.error-page h1 { font-family: var(--serif); font-size: 26px; margin: 18px 0 10px; }
.error-page p { color: var(--muted); font-size: 13px; margin-bottom: 26px; }

/* 骨架屏 */
.skeleton { position: relative; overflow: hidden; background: var(--surface); border-radius: 10px; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

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

.footer {
  position: relative;
  z-index: 2;
  margin-top: 110px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  padding: 62px 0 28px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 13px; color: var(--muted); }
.footer-motto { display: block; font-family: var(--label); font-size: 11px; letter-spacing: 0.16em; color: var(--dim); margin-top: 8px; }
.footer-links { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-links h4 { font-size: 10px; letter-spacing: 0.3em; color: var(--dim); margin-bottom: 14px; font-weight: 500; }
.footer-links a, .footer-links button, .footer-links span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 9px;
  text-align: left;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-links button:hover { color: var(--pink); }
.footer-note { font-size: 11px !important; color: var(--dim) !important; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--dim);
  flex-wrap: wrap;
}
.footer-made { display: inline-flex; align-items: center; gap: 5px; }
.footer-made .icon { width: 12px; height: 12px; color: var(--pink); fill: var(--pink); stroke: none; }

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-solid) 85%, transparent);
  backdrop-filter: blur(14px);
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}
.to-top .icon { transform: rotate(180deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--text); border-color: var(--pink); }

/* --------------------------------------------------------------------------
   纯排版视觉：占位图形、文字构成、渐变
   -------------------------------------------------------------------------- */

.hero::after { display: none; }

.hero-slide {
  background:
    radial-gradient(58% 92% at 78% 18%, color-mix(in srgb, var(--h-glow, #ff6aa8) 58%, transparent), transparent 64%),
    linear-gradient(135deg, var(--h-1, #3b1330), var(--h-2, #120a1b) 62%, #07050d);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-orbit-1 {
  width: 640px;
  height: 640px;
  right: -90px;
  top: -110px;
  box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.04);
}

.hero-orbit-2 {
  width: 430px;
  height: 430px;
  right: 40px;
  top: 60px;
  border-color: rgba(255, 255, 255, 0.07);
}

.hero-glyph {
  position: absolute;
  right: 1%;
  top: 46%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 380px;
  font-weight: 700;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.04em;
}

[data-cat="anime"], [data-tone="anime"] {
  --panel-1: #3d1733;
  --panel-2: #140b1e;
  --panel-glow: rgba(255, 106, 168, 0.42);
  --panel-ink: #ffc0d9;
}
[data-cat="doujin"], [data-tone="doujin"] {
  --panel-1: #2a1752;
  --panel-2: #100c24;
  --panel-glow: rgba(168, 121, 255, 0.38);
  --panel-ink: #d8c8ff;
}
[data-cat="figure"], [data-tone="figure"] {
  --panel-1: #3a2a12;
  --panel-2: #171008;
  --panel-glow: rgba(255, 209, 102, 0.32);
  --panel-ink: #ffe3a3;
}
[data-cat="pilgrimage"], [data-tone="pilgrimage"] {
  --panel-1: #0f3340;
  --panel-2: #07131b;
  --panel-glow: rgba(77, 227, 255, 0.3);
  --panel-ink: #b9f3ff;
}
[data-cat="event"], [data-tone="event"] {
  --panel-1: #3a1a12;
  --panel-2: #180b07;
  --panel-glow: rgba(255, 173, 122, 0.32);
  --panel-ink: #ffd2b8;
}
[data-cat="chat"], [data-tone="chat"] {
  --panel-1: #123029;
  --panel-2: #081814;
  --panel-glow: rgba(127, 224, 176, 0.28);
  --panel-ink: #c4f5dd;
}

.post-panel,
.anime-type,
.article-band {
  background:
    radial-gradient(90% 110% at 82% 8%, var(--panel-glow, rgba(255, 106, 168, 0.35)), transparent 58%),
    linear-gradient(145deg, var(--panel-1, #2a1730), var(--panel-2, #100b18));
}

.panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
  opacity: 0.55;
}

.panel-no {
  position: absolute;
  top: 15px;
  right: 17px;
  z-index: 2;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.42);
}

.panel-glyph {
  position: absolute;
  right: 22px;
  bottom: -22px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 174px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 70px var(--panel-glow, rgba(255, 106, 168, 0.35));
  transition: transform 0.8s var(--ease), color 0.5s;
}

.post-card:hover .panel-glyph {
  transform: translateY(-8px) scale(1.02);
  color: rgba(255, 255, 255, 0.13);
}

.panel-jp {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.34);
}

.anime-glyph {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 118px;
  font-weight: 700;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.11);
  text-shadow: 0 0 50px var(--panel-glow, rgba(255, 106, 168, 0.3));
  transition: transform 0.6s var(--ease), color 0.5s;
}

.anime-card:hover .anime-glyph {
  transform: translateY(-5px);
  color: rgba(255, 255, 255, 0.16);
}

.anime-type .panel-no {
  left: 13px;
  right: auto;
  top: 13px;
}

.anime-type-jp {
  position: absolute;
  top: 54px;
  right: 13px;
  z-index: 1;
  max-height: 44%;
  overflow: hidden;
  writing-mode: vertical-rl;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
}

.type-mini {
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 100% at 80% 10%, var(--panel-glow, rgba(255, 106, 168, 0.3)), transparent 65%),
    linear-gradient(145deg, var(--panel-1, #2a1730), var(--panel-2, #100b18));
  border: 1px solid var(--line);
}

.type-mini span {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}

.search-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  flex: none;
  border-radius: 7px;
  font-family: var(--serif);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(90% 100% at 80% 10%, var(--panel-glow, rgba(255, 106, 168, 0.3)), transparent 65%),
    linear-gradient(145deg, var(--panel-1, #2a1730), var(--panel-2, #100b18));
  border: 1px solid var(--line);
}

.search-mark.portrait {
  width: 34px;
  height: 46px;
}

.article-band {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 112px;
  margin: 0 0 38px;
  padding: 0 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.article-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.article-band-glyph {
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.13);
}

.article-band-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.article-band-meta {
  position: relative;
  z-index: 1;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.article-band-no {
  position: relative;
  z-index: 1;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
}

.profile-cover {
  background:
    radial-gradient(70% 130% at 86% 4%, color-mix(in srgb, var(--a, #ff7eb6) 48%, transparent), transparent 62%),
    radial-gradient(70% 120% at 14% 100%, color-mix(in srgb, var(--b, #7b5cff) 38%, transparent), transparent 60%),
    linear-gradient(135deg, #1b1028, #0a0712);
}

.profile-cover img { display: none; }

.profile-cover-glyph {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-family: var(--serif);
  font-size: 168px;
  font-weight: 700;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 760px) {
  .panel-glyph { right: 16px; bottom: -14px; font-size: 112px; }
  .panel-jp { left: 14px; bottom: 12px; }
  .panel-no { top: 12px; right: 13px; }
  .anime-glyph { font-size: 76px; left: 12px; bottom: 8px; }
  .anime-type-jp { top: 46px; right: 10px; font-size: 8px; }
  .hero-orbit-1 { width: 420px; height: 420px; right: -160px; top: -80px; }
  .hero-orbit-2 { width: 300px; height: 300px; right: -40px; top: 60px; }
  .hero-glyph { display: none; }
  .article-band { height: 88px; padding: 0 18px; gap: 14px; margin-bottom: 26px; }
  .article-band-glyph { font-size: 54px; }
  .article-band-meta { font-size: 8px; letter-spacing: 0.2em; }
  .article-band-no { display: none; }
  .profile-cover-glyph { font-size: 120px; right: 4%; }
}

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

@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a span { display: none; }
}

@media (max-width: 1120px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
  .anime-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy-slide { padding-left: 48px; max-width: 590px; }
  .hero-title { font-size: clamp(30px, 4.6vw, 46px); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sidebar .notice, .sidebar .widget:first-child { grid-column: 1 / -1; }
  .hero { min-height: 560px; }
  .hero-stage { min-height: 560px; }
  .hero::after { font-size: 300px; }
  .hero-copy-slide { max-width: 100%; padding: 48px 40px 76px; }
  .hero-excerpt { max-width: 480px; }
  .masonry { columns: 2; }
  .anime-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { padding: 44px 40px; }
  .profile-main { padding: 0 20px; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body[data-route="admin"],
  body[data-route="agreement"],
  body[data-route="reset"] { padding-bottom: 0; }
  .mobile-tabbar { display: grid; }
  .compose-btn { display: none; }
  .toolbar-right [data-action="compose"] { display: none; }
  .container { width: calc(100% - 32px); }
  .nav-inner { width: calc(100% - 32px); gap: 12px; }
  .brand-text b { font-size: 18px; }
  .brand-text em { display: none; }
  .compose-btn span { display: none; }
  .compose-btn { width: 38px; padding: 0; }
  .theme-toggle { display: none; }
  .hero { margin-top: calc(var(--nav-h) + 14px); border-radius: 24px; min-height: 540px; }
  .hero-stage { min-height: 540px; }
  .hero-copy-slide { padding: 36px 26px 70px; justify-content: flex-end; }
  .hero-title { font-size: 30px; margin-bottom: 12px; }
  .hero-sub { font-size: 13px; margin: -4px 0 16px; }
  .hero-excerpt { font-size: 13px; -webkit-line-clamp: 3; margin-bottom: 20px; }
  .hero-kicker { margin-bottom: 16px; }
  .hero::after { display: none; }
  .hero-vertical { display: none; }
  .hero-side { display: flex; right: 18px; bottom: 44px; }
  .hero-count, .hero-arrows { display: none; }
  .hero-dots { gap: 6px; }
  .hero-dot { width: 16px; }
  .hero-dot.is-active { width: 32px; }
  .stat-strip { width: calc(100% - 28px); grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 20px 8px; margin-top: -32px; }
  .stat:nth-child(3)::before { display: none; }
  .stat strong { font-size: 23px; }
  .section { margin-top: 62px; }
  .sec-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .sec-link { align-self: flex-start; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .notice, .sidebar .widget:first-child { grid-column: auto; }
  .page { padding-top: calc(var(--nav-h) + 24px); }
  .page-jp { display: none; }
  .toolbar { padding: 12px; gap: 12px; }
  .toolbar-right { width: 100%; }
  .search-inline { flex: 1; }
  .search-inline input { width: 100%; }
  .cta { flex-direction: column; align-items: flex-start; padding: 34px 26px; gap: 26px; }
  .cta::before { font-size: 100px; }
  .cta h2 { font-size: 26px; }
  .article { padding-top: calc(var(--nav-h) + 20px); }
  .article-title { font-size: 27px; }
  .article-cover { border-radius: 18px; margin-bottom: 28px; aspect-ratio: 16 / 10; }
  .prose { font-size: 15.5px; line-height: 2; }
  .prose p:first-of-type { font-size: 16px; }
  .action-bar { width: 100%; justify-content: space-around; }
  .action-btn { flex: 1; justify-content: center; padding: 0 12px; }
  .article-meta-stats { width: 100%; margin-left: 0; }
  .author-card { flex-wrap: wrap; }
  .comments-head h2 { font-size: 20px; }
  .masonry { columns: 2; column-gap: 12px; }
  .art-card { margin-bottom: 12px; border-radius: 13px; }
  .art-info { left: 10px; right: 10px; bottom: 10px; }
  .art-info h3 { font-size: 13px; }
  .art-info .meta { font-size: 9px; }
  .anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .anime-collect { opacity: 1; transform: none; height: 30px; font-size: 11px; }
  .anime-caption h3 { font-size: 14px; }
  .profile-cover { height: 170px; }
  .profile-main { margin-top: -46px; gap: 14px; }
  .profile-main .avatar { --size: 84px; font-size: 34px; }
  .profile-id h1 { font-size: 24px; }
  .profile-stats { gap: 20px; }
  .profile-stats .joined { margin-left: 0; width: 100%; }
  .footer { margin-top: 70px; padding-top: 44px; }
  .footer-inner { gap: 36px; }
  .footer-links { gap: 40px; }
  .to-top { right: 16px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px); }
  .modal { padding: 24px 20px; border-radius: 22px; }
  .modal-backdrop { padding: 12px; }
  .composer-foot { margin: 18px -20px -24px; padding: 14px 20px; bottom: -24px; }
  .cover-picker { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .modal-composer .composer-preview { display: none; }
  .modal-composer .field { margin-bottom: 12px; }
  .modal-composer textarea.input { min-height: 110px; }
  .anime-detail { grid-template-columns: 130px 1fr; gap: 16px; }
  .search-modal { padding: 0; }
  .lightbox { padding: 60px 16px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .gallery-strip { gap: 12px; }
  .strip-card { flex-basis: 220px; }
  .about .values { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .hero { min-height: 500px; }
  .hero-stage { min-height: 500px; }
  .hero-title { font-size: 26px; }
  .hero-actions .btn { height: 42px; padding: 0 18px; font-size: 13px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 1; }
  .anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anime-caption p { display: none; }
  .profile-actions { width: 100%; }
  .nav-login { padding: 0 12px; }
  .footer-links { gap: 28px; }
}

/* --------------------------------------------------------------------------
   浅色主题细节
   -------------------------------------------------------------------------- */

[data-theme="light"] .ambient .orb { opacity: 0.35; }
[data-theme="light"] .grid-lines {
  background-image:
    linear-gradient(rgba(60, 30, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 30, 80, 0.05) 1px, transparent 1px);
}
[data-theme="light"] .grain { opacity: 0.12; mix-blend-mode: multiply; }
[data-theme="light"] #petals { opacity: 0.35; }
[data-theme="light"] .hero, [data-theme="light"] .cta, [data-theme="light"] .profile-cover { color: #fff; }
[data-theme="light"] .post-cover::after { background: linear-gradient(0deg, rgba(7, 6, 13, 0.55), transparent 46%); }
[data-theme="light"] .footer { background: linear-gradient(180deg, transparent, rgba(120, 70, 140, 0.05)); }
[data-theme="light"] .modal { background: linear-gradient(165deg, #fff, #fdf8ff); }
[data-theme="light"] .toast { background: rgba(255, 255, 255, 0.96); color: #241a30; border-color: rgba(46, 22, 61, 0.12); }
[data-theme="light"] .chip-btn.is-active { color: #fff; }
[data-theme="light"] .chip-btn.is-active span { color: rgba(255, 255, 255, 0.65); }
[data-theme="light"] .anime-collect { color: #fff; }
[data-theme="light"] .meetup-join { color: #241a30; border-color: rgba(46, 22, 61, 0.16); background: rgba(46, 22, 61, 0.05); }
[data-theme="light"] .meetup-join:hover { color: #120a16; }
[data-theme="light"] .meetup-join.is-joined { color: #241a30; background: rgba(46, 22, 61, 0.06); }
[data-theme="light"] .stat strong { background: linear-gradient(115deg, #d92f75, #6a3fe0 55%, #0f8fb0); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .prose { color: #443a55; }
[data-theme="light"] .prose p:first-of-type { color: #241a30; }

/* --------------------------------------------------------------------------
   文字优先卡片 / 番剧书脊
   -------------------------------------------------------------------------- */

.post-card--text { min-height: 100%; }

.post-card--text::before {
  content: "";
  position: absolute;
  left: -80px;
  top: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--panel-glow, rgba(255, 106, 168, 0.35));
  filter: blur(64px);
  opacity: 0.32;
  pointer-events: none;
}

.post-card--text .post-body {
  position: relative;
  z-index: 1;
  padding: 24px 24px 20px;
}

.post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.post-no {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.post-card--text .post-tags { margin-bottom: 10px; }
.post-card--text .post-title { font-size: 21px; line-height: 1.6; margin-bottom: 12px; text-wrap: balance; }
.post-card--text .post-excerpt { font-size: 13px; line-height: 1.9; -webkit-line-clamp: 3; margin-bottom: 24px; }
.post-card--text .post-foot { padding-top: 16px; }

.anime-type-title {
  position: absolute;
  left: 20px;
  top: 64px;
  z-index: 2;
  max-height: 64%;
  overflow: hidden;
  writing-mode: vertical-rl;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 11px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.anime-glyph {
  left: auto;
  right: 8px;
  bottom: 30px;
  font-size: 86px;
  color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 760px) {
  .post-card--text .post-body { padding: 20px 18px 16px; }
  .post-card--text .post-title { font-size: 20px; }
  .post-card--text .post-excerpt { -webkit-line-clamp: 2; margin-bottom: 18px; }
  .anime-type-title { left: 12px; top: 44px; font-size: 16px; line-height: 1.4; max-height: 54%; padding-left: 8px; }
  .anime-glyph { font-size: 54px; right: 4px; bottom: 34px; }
}

/* --------------------------------------------------------------------------
   团建
   -------------------------------------------------------------------------- */

[data-type="expo"] { --meet-1: #ffad7a; --meet-2: #3a1a12; --meet-glow: rgba(255, 173, 122, 0.38); --meet-ink: #ffd2b8; }
[data-type="pilgrimage"] { --meet-1: #6fe3ff; --meet-2: #0f3340; --meet-glow: rgba(111, 227, 255, 0.32); --meet-ink: #b9f3ff; }
[data-type="screening"] { --meet-1: #ff8cbe; --meet-2: #3d1733; --meet-glow: rgba(255, 140, 190, 0.36); --meet-ink: #ffc0d9; }
[data-type="boardgame"] { --meet-1: #8fe6bb; --meet-2: #123029; --meet-glow: rgba(143, 230, 187, 0.3); --meet-ink: #c4f5dd; }
[data-type="other"] { --meet-1: #b59bff; --meet-2: #2a1752; --meet-glow: rgba(181, 155, 255, 0.34); --meet-ink: #d8c8ff; }

.chip[data-type="expo"] { --cat: #ffad7a; --cat-soft: rgba(255, 173, 122, 0.13); }
.chip[data-type="pilgrimage"] { --cat: #6fe3ff; --cat-soft: rgba(111, 227, 255, 0.12); }
.chip[data-type="screening"] { --cat: #ff8cbe; --cat-soft: rgba(255, 140, 190, 0.13); }
.chip[data-type="boardgame"] { --cat: #8fe6bb; --cat-soft: rgba(143, 230, 187, 0.12); }
.chip[data-type="other"] { --cat: #b59bff; --cat-soft: rgba(181, 155, 255, 0.13); }

.meetup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.meetup-card {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.meetup-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--meet-1) 38%, transparent);
  box-shadow: var(--shadow-soft);
}
.meetup-card.is-past { opacity: 0.55; }

.meetup-date {
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 10px;
  background:
    radial-gradient(90% 100% at 50% 0%, var(--meet-glow), transparent 70%),
    linear-gradient(165deg, var(--meet-2), #0b0714);
  border-right: 1px solid var(--line);
}
.meetup-month { font-family: var(--label); font-size: 10px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.55); }
.meetup-date strong {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.meetup-weekday { font-size: 10px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.55); }

.meetup-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 22px 18px; }
.meetup-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.meetup-city { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); }
.meetup-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meetup-desc {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.meetup-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; font-size: 11px; color: var(--dim); margin-bottom: 14px; }
.meetup-meta > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.meetup-meta .icon { width: 13px; height: 13px; flex: none; }
.meetup-host { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.meetup-host .avatar { --size: 22px; }

.meetup-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.meetup-capacity { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meetup-capacity span { display: block; height: 100%; background: var(--meet-1); border-radius: inherit; }
.meetup-join {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.meetup-join:hover { background: var(--meet-1); border-color: transparent; color: #120a16; }
.meetup-join.is-joined { color: var(--meet-1); border-color: color-mix(in srgb, var(--meet-1) 42%, transparent); background: color-mix(in srgb, var(--meet-1) 12%, transparent); }
.meetup-join:disabled { opacity: 0.45; cursor: default; }

.meetup-count { font-size: 11.5px; color: var(--dim); }

.meetup-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.meetup-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), transparent);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.meetup-mini:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--meet-1) 38%, transparent); }
.meetup-mini-date { flex: none; display: flex; flex-direction: column; align-items: center; padding-right: 16px; border-right: 1px solid var(--line); }
.meetup-mini-date b { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.meetup-mini-date em { font-style: normal; font-size: 9px; letter-spacing: 0.08em; color: var(--dim); margin-top: 5px; white-space: nowrap; }
.meetup-mini-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.meetup-mini-body strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meetup-mini-meta { font-size: 10.5px; color: var(--dim); }

.form-row { display: grid; grid-template-columns: 1fr 118px; gap: 14px; }

.meetup-detail-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.meetup-detail-date {
  flex: 0 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 100% at 50% 0%, var(--meet-glow), transparent 72%),
    linear-gradient(165deg, var(--meet-2), #0b0714);
}
.meetup-detail-date span { font-family: var(--label); font-size: 9px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.55); }
.meetup-detail-date strong { font-family: var(--serif); font-size: 40px; line-height: 1; color: #fff; }
.meetup-detail-date em { font-style: normal; font-size: 9px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.meetup-detail-title { min-width: 0; }
.meetup-detail-title h2 { font-family: var(--serif); font-size: 25px; line-height: 1.4; margin: 8px 0 6px; }
.meetup-detail-title p { font-size: 11.5px; color: var(--dim); }
.meetup-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.meetup-detail-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.meetup-detail-meta .icon { width: 14px; height: 14px; }
.meetup-detail-desc { font-size: 13.5px; line-height: 1.95; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.meetup-participants { padding: 18px 0 4px; }
.meetup-participants-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.meetup-participants-head strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.meetup-participants-head span { font-family: var(--label); font-size: 11px; color: var(--dim); }
.meetup-participants-list { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.meetup-person { display: inline-flex; align-items: center; gap: 7px; }
.meetup-person .avatar { --size: 30px; }
.meetup-person em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.meetup-person-empty { font-size: 12px; color: var(--dim); }
.meetup-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.meetup-detail-note { font-size: 10.5px; color: var(--dim); margin-top: 14px; }

@media (max-width: 960px) {
  .meetup-mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .meetup-grid { grid-template-columns: 1fr; gap: 16px; }
  .meetup-date { flex-basis: 84px; padding: 14px 8px; }
  .meetup-date strong { font-size: 38px; }
  .meetup-body { padding: 16px 16px 14px; }
  .meetup-title { font-size: 18px; }
  .meetup-desc { -webkit-line-clamp: 2; }
  .meetup-mini-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .meetup-detail-head { gap: 14px; }
  .meetup-detail-date { flex-basis: 86px; }
  .meetup-detail-title h2 { font-size: 21px; }
  .meetup-detail-meta { font-size: 11px; }
}

/* --------------------------------------------------------------------------
   消息 / 好友
   -------------------------------------------------------------------------- */

.nav-links a .nav-unread,
.mobile-menu a .nav-unread,
.user-btn .nav-unread {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--pink);
  color: #120a16;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.nav-links a .nav-unread {
  position: absolute;
  top: -7px;
  left: 28px;
}

.mobile-menu a .nav-unread {
  position: static;
  margin-left: auto;
}

.messages-page { padding-bottom: 20px; }
.messages-head { margin-bottom: 24px; }

.messages-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  height: min(690px, calc(100vh - 230px));
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.msg-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%);
}

.msg-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 12px;
}
.msg-sidebar-head strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.msg-sidebar-head span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.msg-refresh {
  font-size: 11px;
  color: var(--dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.msg-refresh:hover { color: var(--pink); }

.msg-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin: 0 14px 8px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.msg-search .icon { width: 14px; height: 14px; color: var(--dim); }
.msg-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.msg-search input::placeholder { color: var(--dim); }

.msg-sidebar-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 16px; }

.msg-block { margin-top: 10px; }
.msg-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}
.msg-block-head b {
  font-size: 9px;
  color: var(--pink);
  background: var(--pink-soft);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: 0;
}

.msg-friend {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.2s;
}
.msg-friend:hover { background: var(--surface-2); }
.msg-friend.is-active { background: var(--surface-2); }
.msg-friend.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.msg-friend-main { flex: 1; min-width: 0; }
.msg-friend-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.msg-friend-top strong { font-size: 12.5px; font-weight: 500; }
.msg-friend-top time { flex: none; font-size: 9px; color: var(--dim); }
.msg-preview {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-unread {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #120a16;
  font-size: 9px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  flex: none;
}

.msg-request {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  margin-bottom: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
}
.msg-request-info { flex: 1; min-width: 0; }
.msg-request-info strong { display: block; font-size: 12px; font-weight: 500; }
.msg-request-info span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-request-actions { display: flex; gap: 4px; flex: none; }

.msg-mini {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: all 0.2s;
}
.msg-mini:hover { border-color: rgba(255, 106, 168, 0.45); color: var(--pink); }
.msg-mini.is-ghost { background: transparent; color: var(--dim); }

.msg-suggest {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
}
.msg-suggest-name { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-empty-line { padding: 12px 10px; font-size: 11px; line-height: 1.8; color: var(--dim); }

.chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(80% 90% at 80% 0%, rgba(255, 106, 168, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 55%, transparent);
  backdrop-filter: blur(12px);
}
.chat-back { display: none; }
.chat-peer { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-peer strong { display: block; font-size: 13.5px; font-weight: 500; }
.chat-peer em { display: block; margin-top: 1px; font-style: normal; font-size: 10px; color: var(--dim); }
.chat-profile-link { flex: none; }

.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-day { text-align: center; margin: 6px 0; }
.chat-day span {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.chat-row { display: flex; align-items: flex-end; gap: 7px; max-width: 82%; }
.chat-row.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble {
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.chat-row.is-mine .chat-bubble {
  border: 0;
  background: linear-gradient(135deg, rgba(255, 106, 168, 0.88), rgba(139, 108, 255, 0.88));
  border-radius: 14px 14px 4px 14px;
}
.chat-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.chat-row.is-mine .chat-bubble p { color: #fff; }
.chat-bubble time { display: block; margin-top: 2px; font-size: 8.5px; color: var(--dim); text-align: right; }
.chat-row.is-mine .chat-bubble time { color: rgba(255, 255, 255, 0.62); }

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 50%, transparent);
}
.chat-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.6;
  outline: 0;
}
.chat-form textarea:focus { border-color: rgba(255, 106, 168, 0.5); }
.chat-form .btn { height: 42px; padding: 0 18px; font-size: 12.5px; flex: none; }

.chat-empty {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--dim);
}
.chat-empty .icon { width: 32px; height: 32px; color: var(--pink); opacity: 0.7; }
.chat-empty strong { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--muted); }
.chat-empty p { font-size: 11.5px; }
.chat-empty-note { padding: 40px 20px; text-align: center; font-size: 12px; color: var(--dim); }
.chat-loading { padding: 30px; text-align: center; font-size: 12px; color: var(--dim); }

.messages-guest { max-width: 560px; margin: 0 auto; }

[data-theme="light"] .msg-request { background: rgba(46, 22, 61, 0.035); }
[data-theme="light"] .chat-bubble { background: #fff; }
[data-theme="light"] .msg-sidebar { background: linear-gradient(180deg, rgba(46, 22, 61, 0.02), transparent 40%); }

@media (max-width: 860px) {
  .messages-layout {
    grid-template-columns: 1fr;
    height: calc(100vh - 300px);
    height: calc(100dvh - 300px);
    min-height: 420px;
  }
  .messages-page.is-chat { padding-top: calc(var(--nav-h) + 8px); }
  .messages-page.is-chat .messages-head { display: none; }
  .messages-page.is-chat .messages-layout {
    height: calc(100vh - var(--nav-h) - 16px);
    height: calc(100dvh - var(--nav-h) - 16px);
    min-height: 0;
  }
  .chat-pane { display: none; }
  .messages-layout.has-peer .msg-sidebar { display: none; }
  .messages-layout.has-peer .chat-pane { display: flex; }
  .chat-back {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .chat-profile-link { display: none; }
  .chat-body { padding: 16px 14px; }
  .chat-row { max-width: 88%; }
  .chat-head { padding: 10px 12px; }
  .chat-form { padding: 10px 12px; }
}

@media (max-width: 760px) {
  .messages-layout {
    height: calc(100dvh - 300px - var(--tabbar-h));
    min-height: 360px;
  }
  .messages-page.is-chat .messages-layout {
    height: calc(100dvh - var(--nav-h) - var(--tabbar-h) - 16px);
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   管理后台 / 密码重置
   -------------------------------------------------------------------------- */

.admin-console {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
  padding-top: calc(var(--nav-h) + 30px);
  padding-bottom: 60px;
}
.admin-side {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 520px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 8px 7px; }
.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
}
.admin-brand strong { display: block; font-family: var(--serif); font-size: 15px; }
.admin-brand em { display: block; margin-top: 2px; font-style: normal; font-size: 8px; letter-spacing: 0.24em; color: var(--dim); }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--dim);
  transition: all 0.2s;
}
.admin-nav a:hover { color: var(--text); background: var(--surface-2); }
.admin-nav a.is-active { color: var(--text); background: var(--surface-2); }
.admin-nav a.is-active .icon { color: var(--pink); }
.admin-nav a b {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  font-size: 8.5px;
  font-weight: 600;
}
.admin-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 4px; border-top: 1px solid var(--line); }
.admin-side-foot a { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--dim); }
.admin-side-foot a:hover { color: var(--pink); }
.admin-side-foot span { font-size: 8px; letter-spacing: 0.16em; color: var(--dim); opacity: 0.6; }

.admin-main { min-width: 0; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-head h1 { margin: 7px 0 6px; font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: 0.02em; }
.admin-head p { font-size: 12px; color: var(--dim); }
.admin-me {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.admin-me strong { display: block; font-size: 11.5px; font-weight: 500; }
.admin-me span { display: block; margin-top: 1px; font-size: 9px; color: var(--dim); }

.admin-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-bottom: 15px; }
.admin-stat { padding: 15px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-stat strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; }
.admin-stat span { display: block; margin-top: 6px; font-size: 9.5px; letter-spacing: 0.08em; color: var(--dim); }

.admin-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.admin-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.admin-panel-head strong { font-size: 12px; font-weight: 500; }
.admin-panel-head a { font-size: 10px; color: var(--dim); }
.admin-panel-head a:hover { color: var(--pink); }
.admin-mini-list { display: flex; flex-direction: column; }
.admin-mini-row { display: flex; align-items: center; gap: 9px; padding: 10px 15px; border-bottom: 1px solid var(--line); min-width: 0; }
.admin-mini-row:last-child { border-bottom: 0; }
.admin-mini-row > span:not(.avatar) { flex: 1; min-width: 0; }
.admin-mini-row strong { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-mini-row em { display: block; margin-top: 2px; font-style: normal; font-size: 9.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-mini-row time { flex: none; font-size: 9px; color: var(--dim); }
.admin-empty { padding: 22px 15px; font-size: 11px; color: var(--dim); }

.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.admin-toolbar > span { margin-left: auto; font-size: 10px; color: var(--dim); }
.admin-search { display: flex; flex: 1; gap: 7px; max-width: 520px; }
.admin-search .input { height: 38px; font-size: 12px; }
.admin-search .btn { flex: none; }

.admin-user-list { display: flex; flex-direction: column; gap: 7px; }
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 110px 86px 76px 140px auto;
  gap: 9px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.admin-user-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.admin-user-id strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-id strong i { display: inline-block; margin-left: 3px; padding: 1px 4px; border-radius: 3px; background: var(--pink-soft); color: var(--pink); font-style: normal; font-size: 8px; }
.admin-user-id span { display: block; margin-top: 1px; font-size: 9.5px; color: var(--dim); }
.admin-user-phone span { display: block; font-size: 8.5px; color: var(--dim); }
.admin-user-phone strong { display: block; margin-top: 2px; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.04em; }
.admin-user-counts { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 9px; color: var(--dim); }
.admin-user-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.admin-role { font-size: 9.5px; color: var(--muted); }
.admin-self { font-size: 9px; color: var(--dim); }
.admin-select {
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 10px;
  outline: 0;
}
.admin-action {
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 9.5px;
  white-space: nowrap;
  transition: all 0.2s;
}
.admin-action:hover { color: var(--text); border-color: var(--line-strong); }
.admin-action.is-danger { color: #ff8b9a; border-color: rgba(255, 139, 154, 0.28); }
.admin-action.is-danger:hover { background: rgba(255, 139, 154, 0.08); }

.admin-content-list { display: flex; flex-direction: column; gap: 7px; }
.admin-content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.admin-content-main { min-width: 0; }
.admin-content-main > a { font-size: 12.5px; font-weight: 500; }
.admin-content-main > a:hover { color: var(--pink); }
.admin-content-main p { margin: 4px 0 5px; font-size: 10.5px; line-height: 1.6; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-content-meta { font-size: 9.5px; color: var(--dim); }
.admin-content-meta a { color: var(--muted); border-bottom: 1px solid var(--line); }
.admin-content-meta a:hover { color: var(--pink); }
.admin-content-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 9px; color: var(--dim); white-space: nowrap; }
.admin-content-row.is-comment .admin-content-main p { margin: 0 0 5px; font-size: 12px; line-height: 1.7; color: var(--text); white-space: normal; }

.admin-audit-list { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.admin-audit-row { display: grid; grid-template-columns: 105px minmax(0, 1fr) 105px 115px; gap: 10px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 10.5px; align-items: center; }
.admin-audit-row:last-child { border-bottom: 0; }
.admin-audit-action { color: var(--pink); font-size: 9.5px; }
.admin-audit-detail { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-audit-actor { color: var(--dim); font-size: 9.5px; }
.admin-audit-row time { color: var(--dim); font-size: 9px; text-align: right; }
.admin-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 17px; font-size: 10.5px; color: var(--dim); }
.admin-pager a { color: var(--pink); }
.admin-pager em { font-style: normal; }

@media (max-width: 1080px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-user-row { grid-template-columns: minmax(150px, 1fr) 100px 80px 70px auto; }
  .admin-user-counts { display: none; }
}

@media (max-width: 860px) {
  .admin-console { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-top: calc(var(--nav-h) + 18px); overflow: hidden; }
  .admin-side { position: static; width: 100%; min-height: 0; overflow: hidden; }
  .admin-nav { min-width: 0; flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .admin-nav a { flex: none; white-space: nowrap; }
  .admin-side-foot { display: none; }
  .admin-head { flex-direction: column; gap: 12px; }
  .admin-head h1 { font-size: 29px; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-columns { grid-template-columns: 1fr; }
  .admin-user-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .admin-user-id { grid-column: 1 / -1; }
  .admin-user-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-content-row { grid-template-columns: 1fr auto; }
  .admin-content-stats { display: none; }
  .admin-audit-row { grid-template-columns: 95px 1fr; }
  .admin-audit-actor, .admin-audit-row time { display: none; }
  .admin-search { max-width: none; }
}

.admin-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.admin-summary div { display: flex; flex-direction: column; gap: 2px; }
.admin-summary strong { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.admin-summary span { font-size: 10px; letter-spacing: 0.12em; color: var(--dim); }
.admin-summary .btn { margin-left: auto; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}
.admin-request-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-request-id strong { display: block; font-size: 13.5px; font-weight: 500; }
.admin-request-id span { display: block; margin-top: 2px; font-size: 10px; color: var(--dim); }
.admin-request-phone { margin-left: auto; text-align: right; }
.admin-request-phone span { display: block; font-size: 9px; color: var(--dim); letter-spacing: 0.08em; }
.admin-request-phone strong { display: block; margin-top: 2px; font-family: var(--label); font-size: 13px; letter-spacing: 0.08em; }
.admin-request-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 10px; color: var(--dim); }
.admin-request-meta em { font-style: normal; font-size: 9.5px; color: var(--dim); }
.admin-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--dim);
}
.admin-status.is-pending { color: var(--pink); border-color: rgba(255, 106, 168, 0.4); background: var(--pink-soft); }
.admin-status.is-approved { color: var(--mint); border-color: rgba(120, 232, 178, 0.35); }
.admin-status.is-completed { color: var(--mint); border-color: rgba(120, 232, 178, 0.35); }
.admin-status.is-rejected { color: var(--dim); }
.admin-status.is-active { color: var(--mint); border-color: rgba(120, 232, 178, 0.3); }
.admin-status.is-muted { color: #ffd166; border-color: rgba(255, 209, 102, 0.32); }
.admin-status.is-banned { color: #ff8b9a; border-color: rgba(255, 139, 154, 0.32); }
.admin-request-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

.reset-page { display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 120px); padding-block: 44px; }
.reset-card {
  width: min(480px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.reset-card h1 { margin: 8px 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.reset-card > p { margin-bottom: 22px; font-size: 12px; line-height: 1.8; color: var(--dim); }
.reset-card > p strong { color: var(--pink); font-weight: 500; }
.reset-success { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 12px 0; }
.reset-success .icon { width: 36px; height: 36px; color: var(--mint); }
.reset-success h1 { margin: 0; }
.reset-success p { font-size: 12px; line-height: 1.8; color: var(--dim); }
.reset-success .account-actions { justify-content: center; margin-top: 8px; }

@media (max-width: 760px) {
  .admin-summary { gap: 20px; }
  .admin-request { grid-template-columns: 1fr; }
  .admin-request-meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-request-phone { margin-left: 0; text-align: left; }
  .admin-request-main { flex-wrap: wrap; }
  .admin-request-actions { justify-content: flex-start; }
  .reset-card { padding: 24px 20px; }
  .reset-card h1 { font-size: 25px; }
}

/* --------------------------------------------------------------------------
   用户协议
   -------------------------------------------------------------------------- */

.legal-page {
  max-width: 860px;
  padding-top: calc(var(--nav-h) + 38px);
  padding-bottom: 70px;
}
.legal-title {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.legal-meta { margin-bottom: 24px; font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); }
.legal-card {
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.legal-card section { margin-bottom: 21px; }
.legal-card section:last-of-type { margin-bottom: 0; }
.legal-card h2 {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.legal-card p { font-size: 12.5px; line-height: 1.95; color: var(--muted); }
.legal-card ul { margin: 7px 0 0 18px; padding-left: 4px; display: grid; gap: 4px; list-style: disc; }
.legal-card li { font-size: 12px; line-height: 1.8; color: var(--muted); }
.legal-note {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--dim);
}
.legal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }

@media (max-width: 760px) {
  .legal-card { padding: 22px 18px; border-radius: 18px; }
  .legal-card p { font-size: 12px; }
  .legal-actions { flex-direction: column; }
  .legal-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   动效 / 可达性
   -------------------------------------------------------------------------- */

@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.page-enter { animation: page-in 0.5s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  #petals { display: none; }
  .hero-slide { transform: none; }
}

/* --------------------------------------------------------------------------
   移动端触控反馈
   -------------------------------------------------------------------------- */

html { -webkit-tap-highlight-color: transparent; }

@media (hover: none) and (pointer: coarse) {
  .btn,
  .icon-btn,
  .chip-btn,
  .auth-tab,
  .mobile-tabbar > a,
  .mobile-tabbar > button,
  .post-card,
  .meetup-card,
  .anime-card,
  .msg-item,
  .art-card,
  .hero-arrow {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.13s var(--ease), filter 0.13s var(--ease), box-shadow 0.13s var(--ease);
  }

  .btn.is-tapping,
  .icon-btn.is-tapping,
  .chip-btn.is-tapping,
  .auth-tab.is-tapping,
  .hero-arrow.is-tapping {
    transform: scale(0.955) !important;
    filter: brightness(1.08);
  }

  .post-card.is-tapping,
  .meetup-card.is-tapping,
  .anime-card.is-tapping,
  .msg-item.is-tapping,
  .art-card.is-tapping {
    transform: scale(0.985) !important;
    filter: brightness(1.04);
  }

  .mobile-tabbar > a.is-tapping,
  .mobile-tabbar > button.is-tapping {
    transform: scale(0.9) !important;
  }

  .mobile-tabbar .icon { transition: transform 0.13s var(--ease); }
  .mobile-tabbar > a.is-tapping .icon,
  .mobile-tabbar > button.is-tapping .icon { transform: scale(0.86); }

  .btn.is-tapping,
  .tabbar-compose.is-tapping {
    box-shadow: 0 0 0 3px rgba(255, 106, 168, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-tapping { transform: none !important; }
}
