/* ============================================================
   星宠萌主榜 · 全局样式
   深色渐变 + 玻璃拟态 + 微动效
   ============================================================ */

:root {
  --bg-0: #0a0e1d;
  --bg-1: #121a33;
  --bg-2: #1c2445;
  --ink: #f3f5ff;
  --ink-soft: #c3c9e6;
  --ink-dim: #8a92b8;
  --brand-1: #ff7eb6;
  --brand-2: #ffb26b;
  --brand-3: #8f7bff;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-soft: rgba(255, 255, 255, 0.07);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 10px 34px -8px rgba(255, 126, 182, 0.55);
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --nav-h: 64px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景氛围层 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(143, 123, 255, 0.28), transparent 60%),
    radial-gradient(50% 45% at -10% 30%, rgba(255, 126, 182, 0.2), transparent 60%),
    radial-gradient(55% 55% at 50% 115%, rgba(255, 178, 107, 0.16), transparent 60%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; border: 3px solid var(--bg-0); }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(255, 126, 182, 0.35); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10, 14, 29, 0.6);
  border-bottom: 1px solid var(--stroke-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}
.brand .logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  box-shadow: var(--shadow-glow);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.nav-links a.active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 126, 182, 0.22), rgba(143, 123, 255, 0.22));
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: 0.3s var(--ease);
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(16, 21, 44, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 12px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: 0.28s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; text-align: center; }
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 64px) 22px 60px;
  text-align: center;
}
.hero-inner { position: relative; z-index: 1; }
.hero-floats { position: absolute; inset: 0; pointer-events: none; }
.float {
  position: absolute;
  font-size: 34px;
  opacity: 0.35;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.15;
  background: linear-gradient(120deg, #fff, var(--brand-1) 40%, var(--brand-2) 70%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-stats span {
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 14.5px;
  color: var(--ink-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-stats b { color: var(--ink); font-size: 17px; font-weight: 800; margin-right: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 99px;
  padding: 13px 26px;
  color: #1a1030;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 10px 24px -8px rgba(255, 126, 182, 0.6);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(255, 126, 182, 0.7); filter: brightness(1.06); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.lg { padding: 15px 30px; font-size: 16px; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px var(--stroke), 0 10px 24px -12px rgba(255, 255, 255, 0.2); }

/* ---------- 投票按钮 ---------- */
.vote-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.22s var(--ease);
}
.vote-btn:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
  background: rgba(255, 126, 182, 0.1);
  transform: translateY(-1px);
}
.vote-btn.on {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(255, 126, 182, 0.55);
}
.vote-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: saturate(0.4);
  transform: none !important;
  box-shadow: none !important;
}
.vote-btn .heart { display: inline-block; transition: transform 0.25s; }
.vote-btn.pop .heart { animation: heartpop 0.45s var(--ease); }
@keyframes heartpop {
  0% { transform: scale(1); }
  35% { transform: scale(1.55) rotate(-8deg); }
  100% { transform: scale(1); }
}
.vote-float {
  position: absolute;
  top: -6px;
  right: 4px;
  font-weight: 900;
  font-size: 16px;
  color: var(--brand-1);
  pointer-events: none;
  z-index: 5;
  text-shadow: 0 2px 12px rgba(255, 126, 182, 0.6);
  animation: rise 0.9s var(--ease) forwards;
}
@keyframes rise {
  0% { opacity: 0; transform: translateY(6px) scale(0.7); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-34px) scale(1.1); }
}

/* ---------- 分区标题 ---------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 6px;
  text-align: center;
}
.section-head h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 900; }
.section-head p { color: var(--ink-dim); margin-top: 6px; font-size: 15px; }

/* ---------- 云吸宠治愈墙 ---------- */
.cloud-wrap { padding: 30px 0 8px; }
.cloud-wall {
  overflow: hidden;
  padding: 20px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cloud-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: cloud 36s linear infinite;
  will-change: transform;
}
.cloud-track:hover { animation-play-state: paused; }
@keyframes cloud { to { transform: translateX(-50%); } }
.cloud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
  padding: 10px 22px;
  border-radius: 99px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- 分类筛选 ---------- */
.chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px auto 8px;
  max-width: var(--maxw);
  padding: 0 22px;
}
.chip {
  padding: 9px 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke-soft);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--stroke); }
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(143, 123, 255, 0.5);
}

/* ---------- 瀑布流卡片 ---------- */
.masonry {
  columns: 3;
  column-gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 22px 80px;
}
@media (max-width: 980px) { .masonry { columns: 2; } }
@media (max-width: 620px) { .masonry { columns: 1; } }

.pcard {
  position: relative;
  break-inside: avoid;
  margin-bottom: 22px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pcard:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 26px 48px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 126, 182, 0.18);
}
.pmedia {
  position: relative;
  display: grid;
  place-items: center;
  height: 230px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  text-decoration: none;
}
.pmedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.pemoji {
  font-size: 86px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.25));
  transition: transform 0.45s var(--ease);
}
.pcard:hover .pemoji { transform: scale(1.12) rotate(-4deg); }
.pbadge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(10, 14, 29, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.pbody { padding: 16px 18px 18px; }
.pname { font-size: 19px; font-weight: 800; }
.pname a { color: var(--ink); text-decoration: none; }
.pname a:hover { background: linear-gradient(120deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pmeta {
  display: flex;
  gap: 14px;
  color: var(--ink-dim);
  font-size: 13px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.pstory {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ptags { margin-top: 12px; }
.tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(143, 123, 255, 0.14);
  border: 1px solid rgba(143, 123, 255, 0.25);
  color: #cfc6ff;
  font-size: 12px;
  font-weight: 600;
}
.pfoot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-soft);
}
.pmore { color: var(--brand-2); font-weight: 700; font-size: 14px; text-decoration: none; transition: letter-spacing 0.25s var(--ease); }
.pmore:hover { letter-spacing: 1px; }

.empty { text-align: center; color: var(--ink-dim); padding: 60px 0; font-size: 15px; }

/* ---------- 投票榜 ---------- */
.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 46px) 22px 10px;
  text-align: center;
}
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.page-head p { color: var(--ink-soft); margin-top: 8px; }
.vote-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 20px;
  border-radius: 99px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vote-info .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 12px var(--brand-1);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
.rank-tip { text-align: center; color: var(--ink-dim); font-size: 13.5px; margin: 6px auto 40px; padding: 0 22px; }

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  max-width: 800px;
  margin: 36px auto 14px;
  padding: 0 22px;
}
.slot { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.slot .avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 44px;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5), inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.slot .pname { font-weight: 800; font-size: 17px; }
.slot .pname a { color: var(--ink); text-decoration: none; }
.slot .sub { color: var(--ink-dim); font-size: 12.5px; margin-top: -6px; }
.slot .tower {
  width: 100%;
  min-height: 96px;
  border-radius: 18px 18px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18px;
  gap: 6px;
  box-shadow: var(--shadow-card);
}
.slot .medal { font-size: 30px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)); }
.slot .votes { color: #fff; font-weight: 900; font-size: 19px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.slot.first .tower { height: 188px; background: linear-gradient(180deg, #ffd27a, #ff9a3c); }
.slot.second .tower { height: 150px; background: linear-gradient(180deg, #dbe4ff, #9fb0e0); }
.slot.third .tower { height: 112px; background: linear-gradient(180deg, #ffb27a, #e0845a); }
@media (max-width: 640px) {
  .podium { gap: 10px; }
  .slot .avatar { width: 62px; height: 62px; font-size: 32px; }
  .slot .tower { min-height: 74px; padding-top: 12px; }
  .slot.first .tower { height: 138px; }
  .slot.second .tower { height: 112px; }
  .slot.third .tower { height: 86px; }
  .slot .medal { font-size: 22px; }
  .slot .votes { font-size: 15px; }
}

.rank-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px 58px minmax(0, 1fr) auto 120px;
  gap: 16px;
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.rank-row:hover { transform: translateX(6px); border-color: rgba(255, 126, 182, 0.35); }
.rank-no { font-size: 22px; font-weight: 900; text-align: center; color: var(--ink-soft); }
.rank-avatar {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.rank-name { font-weight: 800; font-size: 16px; }
.rank-name a { color: var(--ink); text-decoration: none; }
.rank-name a:hover { color: var(--brand-1); }
.rank-name .breed { color: var(--ink-dim); font-weight: 600; font-size: 13px; margin-left: 8px; }
.rank-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); margin-top: 9px; overflow: hidden; }
.rank-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-3), var(--brand-1));
  transition: width 1.1s var(--ease);
}
.rank-votes { text-align: right; font-weight: 900; font-size: 17px; color: var(--ink); white-space: nowrap; }
.rank-votes small { font-weight: 600; color: var(--ink-dim); font-size: 12px; }
@media (max-width: 760px) {
  .rank-row { grid-template-columns: 42px 52px minmax(0, 1fr) auto; gap: 12px; }
  .rank-row .vote-btn { grid-column: 2 / -1; justify-content: center; }
  .rank-no { font-size: 18px; }
  .rank-avatar { width: 52px; height: 52px; font-size: 26px; }
}

/* ---------- 宠物详情 ---------- */
.detail-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 22px 80px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  transition: 0.25s var(--ease);
}
.back:hover { color: var(--ink); gap: 10px; }
.detail-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  padding: 34px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}
.detail-art {
  width: 260px; height: 260px;
  flex: none;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 120px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 20px 40px -16px rgba(0, 0, 0, 0.55);
}
.detail-kicker { color: var(--brand-2); font-weight: 800; font-size: 14px; letter-spacing: 2px; }
.detail-info h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; margin-top: 8px; }
.detail-owner { color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
.detail-vote-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.detail-vote-line .vote-btn { padding: 13px 26px; font-size: 15px; }
.detail-votes { color: var(--ink-soft); font-weight: 600; }
.detail-votes b { color: var(--brand-1); font-size: 26px; font-weight: 900; }
.detail-tip { color: var(--ink-dim); font-size: 13px; margin-top: 16px; }
@media (max-width: 720px) {
  .detail-hero { flex-direction: column; text-align: center; padding: 26px; }
  .detail-art { width: 190px; height: 190px; font-size: 88px; }
  .detail-vote-line { justify-content: center; }
}
.detail-sec {
  margin-top: 26px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 28px 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.detail-sec h2 { font-size: 21px; font-weight: 900; margin-bottom: 14px; }
.detail-sec p { color: var(--ink-soft); font-size: 15.5px; }
.sec-note { color: var(--ink-dim) !important; font-size: 13px !important; margin-bottom: 16px; }
.facts { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-soft);
  border-radius: 14px;
  padding: 12px 16px;
}
.facts li::before { content: "✨"; flex: none; }
.photo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.wall-tile {
  aspect-ratio: 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--ease);
}
.wall-tile:hover { transform: rotate(0deg) scale(1.04) !important; }
.wall-tile i {
  position: absolute;
  bottom: 10px; left: 12px;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.25);
  padding: 3px 10px;
  border-radius: 99px;
}
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.related-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke-soft);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: 0.3s var(--ease);
}
.related-card:hover { transform: translateY(-4px); border-color: rgba(255, 126, 182, 0.4); }
.related-card .avatar {
  width: 76px; height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.related-card .rname { font-weight: 800; }
.related-card .rsub { color: var(--ink-dim); font-size: 13px; margin-top: 4px; }

/* ---------- 关于 / 投稿 ---------- */
.about-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 46px) 22px 80px;
}
.about-head { text-align: center; margin-bottom: 34px; }
.about-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.about-head p { color: var(--ink-soft); margin-top: 10px; }
.about-sec {
  margin-top: 22px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 26px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.about-sec h2 { font-size: 20px; font-weight: 900; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.about-sec p, .about-sec li { color: var(--ink-soft); font-size: 15px; }
.about-sec a { color: var(--brand-2); font-weight: 700; }
.about-sec code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke-soft);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #ffd9a8;
}
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin-top: 4px; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-soft);
  border-radius: 14px;
  padding: 14px 16px;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.about-list { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-soft);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.about-list li::before { content: "🐾"; flex: none; }
.about-list li b { color: var(--ink); }
.about-list small { color: var(--ink-dim); }
.faq-item { border: 1px solid var(--stroke-soft); border-radius: 14px; margin-top: 12px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
}
.faq-q .faq-arrow { flex: none; color: var(--brand-1); font-size: 18px; font-weight: 900; transition: transform 0.35s var(--ease); }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { padding: 0 18px 16px; color: var(--ink-dim); font-size: 14px; }
.faq-item.open .faq-a { max-height: 280px; }

/* ---------- 提示 / 页脚 / 回到顶部 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  background: rgba(20, 26, 54, 0.92);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 13px 22px;
  border-radius: 99px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: 0.32s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.footer {
  border-top: 1px solid var(--stroke-soft);
  padding: 26px 22px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 13.5px;
  background: rgba(8, 11, 24, 0.5);
}
.footer p + p { margin-top: 6px; }

#backTop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 70;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.3s var(--ease);
}
#backTop.show { opacity: 1; pointer-events: auto; transform: none; }
#backTop:hover { background: linear-gradient(135deg, var(--brand-1), var(--brand-3)); border-color: transparent; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
