/*
 * Fonts are self-hosted (originally mirrored via fontsource from Google Fonts).
 * Self-hosting removes a third-party origin from the critical path: the fonts now
 * reuse the existing connection instead of paying another DNS + TLS handshake,
 * which is the dominant cost on slow cross-border links.
 * Only the latin subset is shipped (each weight ~11-17KB, fetched on demand).
 * Site copy is Simplified Chinese, so the Chinese glyphs still fall back to
 * PingFang SC / Microsoft YaHei.
 */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("assets/fonts/nunito-latin-400-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("assets/fonts/nunito-latin-500-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("assets/fonts/nunito-latin-600-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("assets/fonts/nunito-latin-700-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("assets/fonts/nunito-latin-800-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url("assets/fonts/nunito-latin-900-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("assets/fonts/zen-maru-gothic-latin-400-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("assets/fonts/zen-maru-gothic-latin-500-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("assets/fonts/zen-maru-gothic-latin-700-normal.woff2") format('woff2');
}
@font-face {
  font-family: 'Zen Maru Gothic';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url("assets/fonts/zen-maru-gothic-latin-900-normal.woff2") format('woff2');
}

:root {
  --ink: #16213d;
  --deep: #202d52;
  --blue: #607aa9;
  --mist: #dfe8f5;
  --paper: #f7f8fb;
  --white: #ffffff;
  --gold: #b99a67;
  --coral: #f1c7c5;
  --line: rgba(22, 33, 61, 0.13);
  --muted: #73809a;
  --sticker-shadow: #182544;
  --tape-coral: rgba(241, 199, 197, 0.86);
  --tape-mist: rgba(223, 232, 245, 0.92);
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
  --round: 'Zen Maru Gothic', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

::selection {
  color: var(--deep);
  background: var(--coral);
}

/* 细窄的深海色滚动条,和贴纸白底拉开一点层次 */
html {
  scrollbar-color: rgba(96, 122, 169, 0.55) transparent;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-thumb {
  background: rgba(96, 122, 169, 0.5);
  border: 3px solid var(--paper);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--deep);
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(223, 232, 245, 0.92), transparent 23rem),
    radial-gradient(circle at 94% 54%, rgba(241, 199, 197, 0.24), transparent 22rem),
    var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: '';
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.bubble,
.wave,
.sea-band,
.hero-wave {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.sea-band {
  right: 0;
  left: 0;
  overflow: hidden;
}

.sea-band svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sea-band-a {
  bottom: 40px;
  height: 130px;
  transform: rotate(-1.5deg) scaleY(0.9);
  animation: seaDrift 22s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.sea-band-b {
  bottom: -64px;
  height: 150px;
  transform: rotate(1deg);
  animation: seaDrift 28s ease-in-out -6s infinite alternate;
}

.hero-wave {
  top: 18%;
  right: -90px;
  width: 640px;
  height: 170px;
  transform: rotate(160deg) scaleX(-1);
  animation: heroWaveFloat 9s ease-in-out infinite;
}

@keyframes seaDrift {
  from {
    transform: rotate(-1.5deg) scaleY(0.9) translateX(-16px);
  }
  to {
    transform: rotate(1.5deg) scaleY(1) translateX(18px);
  }
}

@keyframes heroWaveFloat {
  0%,
  100% {
    transform: rotate(160deg) scaleX(-1) translateY(0);
  }
  50% {
    transform: rotate(160deg) scaleX(-1) translateY(-12px);
  }
}

.bubble {
  border: 2px solid rgba(96, 122, 169, 0.2);
  border-radius: 50%;
}

.bubble::after {
  position: absolute;
  top: 17%;
  left: 20%;
  width: 17%;
  height: 17%;
  content: '';
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.bubble-one {
  top: 19%;
  left: 3%;
  width: 25px;
  height: 25px;
  animation: float 7s ease-in-out infinite;
}

.bubble-two {
  top: 29%;
  right: 3%;
  width: 52px;
  height: 52px;
  border-color: rgba(241, 199, 197, 0.55);
  animation: float 9s ease-in-out -2.4s infinite;
}

.bubble-three {
  right: 16%;
  bottom: 18%;
  width: 18px;
  height: 18px;
  animation: float 6s ease-in-out -1s infinite;
}

.wave {
  width: 340px;
  height: 78px;
  border-top: 3px solid rgba(96, 122, 169, 0.15);
  border-radius: 50%;
}

.wave::after {
  position: absolute;
  top: 6px;
  width: 230px;
  height: 58px;
  content: '';
  border-top: 3px solid rgba(96, 122, 169, 0.1);
  border-radius: 50%;
}

.wave-one {
  top: 35%;
  left: -255px;
  animation: drift 13s ease-in-out infinite;
}

.wave-two {
  right: -245px;
  bottom: 10%;
  height: 68px;
  border-color: rgba(241, 199, 197, 0.22);
  animation: drift 15s ease-in-out -6s infinite reverse;
}

.wave-two::after {
  top: 7px;
  width: 190px;
  border-color: rgba(241, 199, 197, 0.14);
}

/* 水下光束:浅蓝斜光柱,乘色混合像是被海水滤过,只压顶部一片 */
.sea-rays {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 76vh;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 8%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 8%, transparent 88%);
}

.sea-ray {
  position: absolute;
  top: -20%;
  height: 132%;
  background: linear-gradient(to bottom, rgba(96, 122, 169, 0.2), rgba(96, 122, 169, 0) 76%);
  filter: blur(15px);
  transform-origin: top center;
  animation: raySway 15s ease-in-out infinite alternate;
}

.sea-ray-one {
  left: 13%;
  width: 190px;
  transform: rotate(9deg);
}

.sea-ray-two {
  left: 44%;
  width: 96px;
  opacity: 0.8;
  transform: rotate(7deg);
  animation-duration: 19s;
  animation-delay: -4s;
}

.sea-ray-three {
  left: 71%;
  width: 250px;
  opacity: 0.62;
  transform: rotate(11deg);
  animation-duration: 23s;
  animation-delay: -9s;
}

@keyframes raySway {
  from {
    transform: rotate(6deg) translateX(-16px) scaleX(0.94);
  }
  to {
    transform: rotate(12deg) translateX(18px) scaleX(1.05);
  }
}

/* 海底一隅:左下角的海草、海星和小鱼群,让页面角落也有故事 */
.sea-floor {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: min(430px, 42vw);
  height: 300px;
  pointer-events: none;
}

.sea-weed {
  position: absolute;
  bottom: 24px;
  left: -14px;
  width: 132px;
  height: 232px;
  transform-origin: center bottom;
  animation: weedSway 7s ease-in-out infinite alternate;
}

.sea-weed-strand {
  fill: none;
  stroke: rgba(96, 122, 169, 0.34);
  stroke-linecap: round;
  stroke-width: 8;
}

.sea-weed-strand:nth-child(2) {
  stroke: rgba(96, 122, 169, 0.26);
  stroke-width: 7;
}

.sea-weed-strand:nth-child(3) {
  stroke: rgba(241, 199, 197, 0.42);
  stroke-width: 6;
}

.sea-weed-leaf {
  fill: rgba(96, 122, 169, 0.22);
}

.sea-weed-leaf-alt {
  fill: rgba(96, 122, 169, 0.15);
}

@keyframes weedSway {
  from {
    transform: rotate(-3deg) scaleY(0.98);
  }
  to {
    transform: rotate(3.5deg) scaleY(1.02);
  }
}

.sea-starfish {
  position: absolute;
  bottom: 66px;
  left: 168px;
  width: 58px;
  height: 58px;
  filter: drop-shadow(3px 4px 0 rgba(24, 37, 68, 0.16));
  transform: rotate(-12deg);
  animation: stickerBob 9s ease-in-out -2s infinite;
}

.sea-starfish-shape {
  fill: var(--coral);
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 12;
}

.sea-starfish-dot {
  fill: var(--deep);
  opacity: 0.4;
}

.sea-fish {
  position: absolute;
  filter: drop-shadow(3px 4px 0 rgba(24, 37, 68, 0.14));
  animation: fishSwim 12s ease-in-out infinite;
}

.sea-fish-body {
  fill: var(--mist);
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 4;
}

.sea-fish-tail {
  fill: var(--blue);
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 4;
}

.sea-fish-eye {
  fill: var(--deep);
  opacity: 0.55;
}

.sea-fish-one {
  bottom: 150px;
  left: 214px;
  width: 62px;
}

.sea-fish-two {
  bottom: 108px;
  left: 236px;
  width: 42px;
  opacity: 0.86;
  animation-duration: 15s;
  animation-delay: -3.5s;
}

.sea-fish-two .sea-fish-body {
  fill: var(--coral);
}

.sea-fish-two .sea-fish-tail {
  fill: var(--mist);
}

.sea-fish-three {
  bottom: 196px;
  left: 126px;
  width: 34px;
  opacity: 0.7;
  animation-duration: 18s;
  animation-delay: -7s;
}

@keyframes fishSwim {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  35% {
    transform: translate(72px, -16px) rotate(-3deg);
  }
  70% {
    transform: translate(30px, -30px) rotate(2deg);
  }
}

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

@keyframes drift {
  0%,
  100% {
    transform: translateX(0) rotate(-10deg);
  }
  50% {
    transform: translateX(20px) rotate(-4deg);
  }
}

.site-nav,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

/* 导航常驻顶部:滚动后浮起成一块白色贴纸,毛玻璃托住下层滚动的内容 */
.site-nav {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  margin-top: 2px;
  padding: 0 14px;
  border: 3px solid transparent;
  border-radius: 20px 26px 21px 25px;
  transition: background 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease), backdrop-filter 320ms var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--white);
  box-shadow: 5px 6px 0 rgba(24, 37, 68, 0.16), 0 20px 38px rgba(32, 45, 82, 0.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.25);
  backdrop-filter: blur(11px) saturate(1.25);
}

.wordmark,
.nav-links,
.nav-action,
.hero-kicker,
.art-note,
.license-note,
.site-footer,
.wall-squiggle {
  font-family: var(--body);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.wordmark picture,
.footer-brand picture {
  display: block;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

/* 彩色 logo 是细节多的位图,实心硬投影在 36px 下会被看成重影,改用柔和投影托起来 */
.brand-logo-color {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 5px rgba(32, 45, 82, 0.32));
  transform: rotate(-5deg);
  transition: transform 350ms var(--ease);
}

.wordmark:hover .brand-logo-color {
  transform: rotate(3deg) translateY(-2px) scale(1.05);
}

.brand-logo-black {
  width: 31px;
  height: 31px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--deep);
  font-weight: 900;
  transition: transform 300ms var(--ease);
}

.footer-brand .brand-logo-black {
  opacity: 0.78;
  transition: opacity 300ms var(--ease);
}

.footer-brand:hover .brand-logo-black {
  opacity: 1;
}

.footer-brand:hover {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* 导航项做成小贴纸块,悬停浮起来一点点(文字颜色沿用原有的 --blue 悬停色) */
.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.nav-links a:hover {
  background: var(--mist);
  box-shadow: 2px 3px 0 rgba(24, 37, 68, 0.14);
  transform: translateY(-2px);
}

.nav-links a,
.site-footer a {
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* 三级层次：社交图标最轻 → 入群按钮次级 → 「去看看」是唯一实心主按钮。
   社交图标只留细描边圆圈，不和右侧两个胶囊抢注意力。 */
.nav-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 14px;
}

/* 一条极淡的竖线，把图标组和两个行动按钮分成两组 */
.nav-social::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 22px;
  content: '';
  background: rgba(96, 122, 169, 0.28);
  transform: translateY(-50%);
}

/* 默认就是品牌色实心圆章、白色图标：一眼认得出是 B 站和 GitHub。
   体量比右侧两个胶囊小一档，所以依旧排在主按钮之后。 */
.nav-social-link {
  --link-brand: var(--deep);
  --link-brand-hover: #16223c;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--link-brand);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--link-brand) 34%, transparent);
  transition: background 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.nav-social-link:first-child {
  --link-brand: #e2517f;
  --link-brand-hover: #c93e6b;
}

.nav-social-link:last-child {
  --link-brand: #24292f;
  --link-brand-hover: #101418;
}

.nav-social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 300ms var(--ease);
}

.nav-social-link:last-child svg {
  fill: currentColor;
  stroke: none;
}

.nav-social-link:hover {
  background: var(--link-brand-hover);
  box-shadow: 0 7px 16px color-mix(in srgb, var(--link-brand) 42%, transparent);
  transform: translateY(-3px);
}

.nav-social-link:hover svg {
  transform: scale(1.12);
}

.nav-social-link:active {
  box-shadow: none;
  transform: translateY(0) scale(0.95);
}

.nav-social-link:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.site-footer a {
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

/* 唯一的主按钮：最深、最高、投影最实，视线先落在这里。
   右侧白色圆钮里放箭头，悬停翻成珊瑚粉，和入群按钮的粉色互相呼应。 */
.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 4px 4px 20px;
  color: var(--white);
  background: linear-gradient(140deg, #33496f, #16223c);
  border: 1px solid rgba(12, 22, 42, 0.55);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 0 #101b31,
    0 14px 26px rgba(20, 32, 60, 0.22);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), background 260ms var(--ease);
}

.nav-action span:last-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--deep);
  background: var(--white);
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(24, 37, 68, 0.12);
  font-size: 15px;
  font-weight: 800;
  transition: transform 300ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
}

.nav-action:hover {
  background: linear-gradient(140deg, #3b5480, #1d2c4c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 3px 0 #101b31,
    0 18px 30px rgba(20, 32, 60, 0.28);
  transform: translateY(-2px);
}

.nav-action:hover span:last-child {
  color: var(--deep);
  background: var(--coral);
  transform: rotate(-6deg) scale(1.05);
}

.nav-action:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 #101b31,
    0 8px 16px rgba(20, 32, 60, 0.2);
  transform: translateY(1px) scale(0.99);
}

.hero-cta:active,
.source-card:active,
.sticker-card:active,
.action-button:active,
.lightbox-close:active {
  transform: translate(1px, 1px) scale(0.99);
}

.nav-action:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(235px, 0.7fr) minmax(420px, 1.18fr) minmax(230px, 0.62fr);
  min-height: 730px;
  padding: 76px 0 125px;
  align-items: center;
  gap: clamp(28px, 4vw, 78px);
}

.hero-stickers {
  position: absolute;
  z-index: 0;
  inset: 5% 18% 13% 23%;
  overflow: hidden;
  pointer-events: none;
}

.hero-copy,
.hero-art-area,
.source-panel {
  position: relative;
  z-index: 2;
}

.hero-sticker {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(5px 6px 0 var(--sticker-shadow));
  opacity: 0.94;
}

.hero-sticker path,
.hero-sticker rect,
.hero-sticker circle {
  vector-effect: non-scaling-stroke;
}

.sticker-outline,
.sticker-wave-line,
.sticker-wave-line-light,
.sticker-chip-circuit,
.sticker-apron-line,
.sticker-apron-lace,
.sticker-shell-line {
  fill: none;
  stroke: var(--deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.sticker-wave {
  top: 9%;
  left: 24%;
  width: 260px;
  height: 112px;
  opacity: 0.78;
  transform: rotate(-7deg);
  animation: stickerWaveFloat 8s ease-in-out infinite;
}

.sticker-wave-fill {
  fill: var(--mist);
  stroke: var(--white);
  stroke-width: 13;
}

.sticker-wave-line {
  stroke: var(--blue);
  stroke-width: 4;
}

.sticker-wave-line-light {
  stroke: var(--coral);
  stroke-width: 3;
}

.sticker-bow {
  --sticker-rotation: 12deg;
  top: 13%;
  right: 28%;
  width: 78px;
  height: 62px;
  transform: rotate(var(--sticker-rotation));
  animation: stickerBob 6s ease-in-out -1.2s infinite;
}

.sticker-bow-wing,
.sticker-bow-tail {
  fill: var(--coral);
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 11;
}

.sticker-bow-wing-right {
  fill: var(--mist);
}

.sticker-bow-knot {
  fill: var(--blue);
  stroke: var(--white);
  stroke-width: 9;
}

.sticker-bow-tail {
  fill: none;
  stroke: var(--deep);
  stroke-width: 5;
}

.sticker-chip {
  right: 3%;
  bottom: 16%;
  width: 92px;
  height: 92px;
  transform: rotate(9deg);
  animation: chipPulse 5s ease-in-out infinite;
}

.sticker-scan {
  top: 43%;
  right: -3%;
  width: 126px;
  height: 70px;
  opacity: 0.7;
  transform: rotate(-8deg);
  animation: scanFloat 6s ease-in-out -2s infinite;
}

.sticker-scan-line {
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-width: 11;
}

.sticker-scan-beam {
  fill: none;
  stroke: var(--blue);
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  stroke-width: 4;
}

.sticker-scan-dot {
  fill: var(--coral);
  stroke: var(--deep);
  stroke-width: 3;
  animation: scanBlink 2.4s ease-in-out infinite;
}

.sticker-scan-dot-two {
  fill: var(--blue);
  animation-delay: -1.1s;
}

@keyframes scanFloat {
  0%,
  100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  50% {
    transform: rotate(-4deg) translate(-8px, -5px);
  }
}

@keyframes scanBlink {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.sticker-chip-body {
  fill: var(--deep);
  stroke: var(--white);
  stroke-width: 11;
}

.sticker-chip-core {
  fill: var(--mist);
  stroke: var(--blue);
  stroke-width: 5;
}

.sticker-chip-circuit {
  stroke: var(--blue);
  stroke-width: 4;
}

.sticker-chip-light {
  fill: var(--coral);
  stroke: var(--white);
  stroke-width: 4;
}

.sticker-apron {
  --sticker-rotation: -11deg;
  left: 1%;
  bottom: 10%;
  width: 82px;
  height: 96px;
  transform: rotate(var(--sticker-rotation));
  animation: stickerBob 7s ease-in-out -3s infinite;
}

.sticker-apron-shape {
  fill: var(--white);
  stroke: var(--white);
  stroke-width: 12;
  stroke-linejoin: round;
}

.sticker-apron-line,
.sticker-apron-lace {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
}

.sticker-apron-lace {
  stroke: var(--coral);
  stroke-width: 3;
}

.sticker-apron-dot {
  fill: var(--coral);
  stroke: var(--deep);
  stroke-width: 3;
}

.sticker-shell {
  --sticker-rotation: -17deg;
  top: 48%;
  left: 7%;
  width: 69px;
  height: 69px;
  transform: rotate(var(--sticker-rotation));
  animation: stickerBob 7s ease-in-out -4s infinite;
}

.sticker-shell-shape {
  fill: var(--coral);
  stroke: var(--white);
  stroke-width: 12;
  stroke-linejoin: round;
}

.sticker-shell-line {
  stroke: var(--deep);
  stroke-width: 4;
}

@keyframes stickerWaveFloat {
  0%,
  100% {
    transform: rotate(-7deg) translate(0, 0);
  }
  50% {
    transform: rotate(-3deg) translate(12px, -7px);
  }
}

@keyframes stickerBob {
  0%,
  100% {
    transform: rotate(var(--sticker-rotation, 0deg)) translateY(0);
  }
  50% {
    transform: rotate(var(--sticker-rotation, 0deg)) translateY(-8px);
  }
}

@keyframes chipPulse {
  0%,
  100% {
    transform: rotate(9deg) scale(1);
  }
  50% {
    transform: rotate(4deg) scale(1.06);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-bottom: 70px;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 24px;
  padding: 7px 13px 6px;
  color: var(--deep);
  background: var(--coral);
  border: 3px solid var(--white);
  border-radius: 8px 12px 10px 11px;
  box-shadow: 3px 4px 0 var(--sticker-shadow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  transform: rotate(-3deg);
  animation: nudge 5s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(-1deg) translateY(-2px);
  }
}

.sticker-spark {
  animation: sparkTwinkle 3.4s ease-in-out infinite;
}

.spark-one {
  top: 12px;
  left: -21px;
}

.spark-two {
  right: -19px;
  top: 29%;
  color: var(--blue);
  font-size: 25px;
  animation-delay: -1.3s;
}

@keyframes sparkTwinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: rotate(-15deg) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: rotate(-5deg) scale(1.1);
  }
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 8.2em;
  margin-bottom: 19px;
  color: var(--deep);
  font-family: var(--round);
  font-size: clamp(3.1rem, 5vw, 5.7rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 span {
  position: relative;
  display: inline-block;
  color: var(--blue);
  white-space: nowrap;
  /* 白描边 + 硬投影,让"档案馆"三个字像一张贴纸贴在标题上 */
  text-shadow:
    0 2px 0 var(--white),
    2px 0 0 var(--white),
    -2px 0 0 var(--white),
    0 -2px 0 var(--white),
    2px 2px 0 var(--white),
    -2px 2px 0 var(--white),
    2px -2px 0 var(--white),
    -2px -2px 0 var(--white),
    6px 7px 0 rgba(24, 37, 68, 0.13);
}

h1 span::after {
  position: absolute;
  right: -0.13em;
  bottom: -0.08em;
  width: 0.72em;
  height: 0.11em;
  content: '';
  background: var(--coral);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.hero-lede {
  margin-bottom: 34px;
  color: var(--muted);
  font-family: var(--round);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 9px 8px 21px;
  color: var(--white);
  background: var(--deep);
  border: 3px solid var(--white);
  border-radius: 12px 19px 14px 17px;
  box-shadow: 5px 6px 0 var(--sticker-shadow);
  font-size: 13px;
  font-weight: 800;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 350ms var(--ease);
}

.hero-cta:hover {
  background: var(--blue);
  box-shadow: 2px 3px 0 var(--sticker-shadow);
  transform: translate(3px, 3px) rotate(-1deg);
}

.cta-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--deep);
  background: var(--mist);
  border-radius: 9px 13px 10px 12px;
  font-size: 20px;
  line-height: 1;
  transition: transform 350ms var(--ease), background 350ms var(--ease);
}

.hero-cta:hover .cta-arrow {
  background: var(--white);
  transform: rotate(8deg) translate(2px, 2px);
}

.hero-art-area {
  position: relative;
  align-self: center;
  width: min(100%, 570px);
  justify-self: center;
}

.hero-art-sticker {
  position: relative;
  padding: 13px;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: 27px 36px 31px 40px;
  box-shadow: 10px 12px 0 var(--sticker-shadow), 0 30px 60px rgba(32, 45, 82, 0.16);
  transform: rotate(2deg);
  transition: transform 650ms var(--ease), box-shadow 650ms var(--ease);
}

.hero-art-sticker::before {
  position: absolute;
  z-index: -1;
  top: 18px;
  left: -12px;
  width: 70%;
  height: 72%;
  content: '';
  border: 4px solid rgba(96, 122, 169, 0.24);
  border-radius: 34px 42px 36px 45px;
  transform: rotate(-7deg);
}

.hero-art-sticker::after {
  position: absolute;
  right: 16px;
  bottom: -14px;
  left: 16px;
  height: 34px;
  content: '';
  background: radial-gradient(50% 100% at 50% 0%, rgba(32, 45, 82, 0.25), transparent 70%);
  border-radius: 50%;
}

.hero-art-sticker:hover {
  box-shadow: 7px 9px 0 var(--sticker-shadow), 0 38px 72px rgba(32, 45, 82, 0.2);
  transform: rotate(-1deg) translateY(-7px);
}

.hero-art-sticker:hover::after {
  opacity: 0;
}

.hero-art-window {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 17px 24px 20px 27px;
  box-shadow: inset 0 2px 6px rgba(32, 45, 82, 0.06);
}

.hero-art-window img {
  display: block;
  width: 100%;
  height: min(67vh, 650px);
  min-height: 500px;
  object-fit: contain;
  object-position: center;
  transition: transform 800ms var(--ease);
}

.hero-art-sticker:hover img {
  transform: scale(1.03);
}

.art-note {
  position: absolute;
  right: -24px;
  bottom: -23px;
  padding: 8px 13px;
  color: var(--white);
  background: var(--blue);
  border: 3px solid var(--white);
  border-radius: 9px 15px 11px 13px;
  box-shadow: 4px 5px 0 var(--sticker-shadow);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(5deg);
}

/* 和纸胶带:撕口 + 斜纹,像手账里把立绘贴进档案页 */
.tape {
  position: absolute;
  z-index: 3;
  width: 104px;
  height: 25px;
  background: var(--tape-coral);
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.45) 0 5px, rgba(255, 255, 255, 0) 5px 11px);
  box-shadow: 0 3px 7px rgba(32, 45, 82, 0.14);
  clip-path: polygon(3% 2%, 97% 0, 100% 46%, 96% 100%, 4% 98%, 0 52%);
  opacity: 0.93;
}

.tape-hero-left {
  top: -14px;
  left: 5%;
  width: 122px;
  transform: rotate(-7deg);
}

.tape-hero-right {
  top: -15px;
  right: 8%;
  width: 92px;
  background-color: var(--tape-mist);
  transform: rotate(6deg);
}

/* 档案馆的编号标签,给立绘一个"藏品"身份 */
.art-tag {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: -19px;
  padding: 7px 12px 6px;
  color: var(--deep);
  background: var(--white);
  border: 3px dashed rgba(96, 122, 169, 0.55);
  border-radius: 11px 14px 10px 13px;
  box-shadow: 4px 5px 0 var(--sticker-shadow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: rotate(-6deg);
}


.source-panel {
  align-self: end;
  padding: 22px 0 20px;
  scroll-margin-top: 110px;
}

.source-panel h2 {
  margin-bottom: 17px;
  color: var(--deep);
  font-family: var(--round);
  font-size: 19px;
  font-weight: 900;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 69px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.78);
  border: 3px solid var(--white);
  border-radius: 13px 17px 12px 15px;
  box-shadow: 4px 5px 0 rgba(32, 45, 82, 0.17), 0 9px 18px rgba(32, 45, 82, 0.06);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 350ms var(--ease);
}

.source-card:nth-child(2) {
  transform: rotate(1.5deg);
}

.source-card:hover {
  background: var(--white);
  box-shadow: 2px 3px 0 var(--sticker-shadow), 0 12px 22px rgba(32, 45, 82, 0.1);
  transform: translate(2px, 2px) rotate(-1deg);
}

.source-card:nth-child(2):hover {
  transform: translate(2px, 2px) rotate(0deg);
}

.source-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 9px 12px 9px 11px;
  box-shadow: 2px 2px 0 var(--sticker-shadow);
  font-size: 17px;
  font-weight: 800;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}

.source-card:hover .source-icon {
  background: var(--deep);
  transform: rotate(-6deg) scale(1.1);
}

.source-card:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

.source-body {
  display: grid;
  gap: 4px;
}

.source-body strong {
  color: var(--deep);
  font-family: var(--round);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.source-body small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.license-note {
  margin: 18px 0 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.65;
}

.wall-section {
  position: relative;
  padding: 70px 0 165px;
  /* 给吸顶导航让位,锚点跳转后标题不会被导航条压住 */
  scroll-margin-top: 104px;
}

.wall-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: '';
  background: repeating-linear-gradient(90deg, var(--deep) 0 16px, rgba(96, 122, 169, 0.25) 16px 28px);
  border-radius: 3px;
}

/* 水线边上晃过的鱼、气泡和海星,把两段内容"潜"在一起 */
.wall-divider {
  position: absolute;
  top: -27px;
  right: 0;
  left: 0;
  height: 52px;
  pointer-events: none;
}

.divider-fish {
  position: absolute;
  top: 0;
  left: 4%;
  width: 58px;
  opacity: 0.7;
  animation: dividerFishSwim 11s ease-in-out infinite;
}

.divider-fish .sea-fish-body {
  fill: var(--coral);
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 4;
}

.divider-fish .sea-fish-tail {
  fill: var(--mist);
  stroke: var(--white);
  stroke-linejoin: round;
  stroke-width: 4;
}

.divider-fish .sea-fish-eye {
  fill: var(--deep);
  opacity: 0.5;
}

.divider-bubbles {
  position: absolute;
  top: 6px;
  left: 46%;
  display: block;
  width: 60px;
  height: 42px;
}

.divider-bubbles i {
  position: absolute;
  bottom: 0;
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(96, 122, 169, 0.4);
  border-radius: 50%;
  animation: bubbleRise 5.6s ease-in-out infinite;
}

.divider-bubbles i:nth-child(1) {
  left: 0;
}

.divider-bubbles i:nth-child(2) {
  left: 22px;
  width: 8px;
  height: 8px;
  animation-duration: 6.8s;
  animation-delay: -2.1s;
}

.divider-bubbles i:nth-child(3) {
  left: 42px;
  width: 6px;
  height: 6px;
  animation-duration: 7.6s;
  animation-delay: -4.3s;
}

.divider-starfish {
  position: absolute;
  top: 2px;
  right: 3%;
  width: 42px;
  transform: rotate(14deg);
  animation: stickerBob 8s ease-in-out -3s infinite;
}

@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.7);
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-26px) scale(1.05);
  }
}

@keyframes dividerFishSwim {
  0%,
  100% {
    transform: translate(0, 6px) rotate(0deg);
  }
  50% {
    transform: translate(96px, -4px) rotate(-2deg);
  }
}

.wall-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 41px 2px 23px;
}

.wall-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px 18px;
}

.wall-heading h2 {
  color: var(--deep);
  font-family: var(--round);
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 1;
}

.sticker-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px 6px;
  color: var(--white);
  background: var(--blue);
  border: 3px solid var(--white);
  border-radius: 10px 15px 11px 14px;
  box-shadow: 3px 4px 0 var(--sticker-shadow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transform: rotate(3deg);
}

.sticker-count[hidden] {
  display: none;
}

.wall-section .eyebrow {
  display: block;
  margin: 0 0 13px;
  color: var(--blue);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.wall-squiggle {
  position: relative;
  display: block;
  width: 115px;
  height: 22px;
  margin-bottom: 3px;
  border-bottom: 4px solid var(--coral);
  border-radius: 50%;
  transform: rotate(-4deg);
}

.wall-squiggle::after {
  position: absolute;
  right: -2px;
  bottom: -8px;
  width: 11px;
  height: 11px;
  content: '';
  background: var(--coral);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: rotate(-8deg);
}

.sticker-grid {
  columns: 4 210px;
  column-gap: 16px;
}

.sticker-card {
  break-inside: avoid;
}

.sticker-card[hidden] {
  display: none !important;
}

.sticker-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
  min-height: 130px;
  margin: 0 0 16px;
  padding: 9px 9px 12px;
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 18px 25px 21px 27px;
  box-shadow: 7px 8px 0 var(--sticker-shadow), 0 16px 30px rgba(32, 45, 82, 0.11);
  cursor: pointer;
  opacity: 0;
  transform: rotate(var(--tilt)) translateZ(0);
  animation: stickerCardWaterfall 760ms var(--ease) both;
  animation-delay: var(--sticker-delay, 0ms);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
  will-change: opacity;
}

.sticker-card:nth-child(3n + 2) {
  border-radius: 25px 17px 27px 20px;
}

.sticker-card:nth-child(2n) {
  margin-top: 13px;
}

.sticker-card:nth-child(4n + 1) {
  background: var(--mist);
}

.sticker-card:nth-child(4n + 3) {
  background: var(--coral);
}

.sticker-card:hover {
  z-index: 1;
  box-shadow: 3px 4px 0 var(--sticker-shadow), 0 24px 42px rgba(32, 45, 82, 0.2);
  transform: rotate(0deg) translateY(-9px) scale(1.02);
}

.sticker-card:focus-visible,
.source-card:focus-visible,
.hero-cta:focus-visible,
.nav-action:focus-visible,
.lightbox-close:focus-visible,
.action-button:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

.sticker-card-inner {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 112px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 10px 16px 12px 17px;
  opacity: 0;
  animation: stickerInnerWaterfall 760ms var(--ease) both;
  animation-delay: var(--sticker-delay, 0ms);
  will-change: opacity, transform;
}

@keyframes stickerCardWaterfall {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes stickerInnerWaterfall {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.965);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.005);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.sticker-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: transform 500ms var(--ease), opacity 460ms var(--ease);
}

/* 图片真正到位才淡入,免得懒加载时一排排空框闪 */
.sticker-card.is-loaded img {
  opacity: 1;
}

/* 悬停时一道高光扫过,像翻动亮面贴纸 */
.sticker-card-inner::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 66%);
  transform: translateX(-130%);
  transition: transform 720ms var(--ease);
  pointer-events: none;
}

.sticker-card:hover .sticker-card-inner::before {
  transform: translateX(130%);
}

/* 少数卡片随手贴一段和纸胶带,整面墙更像手账 */
.card-tape {
  position: absolute;
  z-index: 3;
  top: -12px;
  left: 16px;
  width: 74px;
  height: 20px;
  background: var(--tape-mist);
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0 4px, rgba(255, 255, 255, 0) 4px 9px);
  box-shadow: 0 2px 5px rgba(32, 45, 82, 0.13);
  clip-path: polygon(3% 2%, 97% 0, 100% 46%, 96% 100%, 4% 98%, 0 52%);
  transform: rotate(-6deg);
}

.card-tape.is-right {
  right: 16px;
  left: auto;
  width: 64px;
  background-color: var(--tape-coral);
  transform: rotate(7deg);
}

/* 骨架卡:白色贴纸底 + 一道浅蓝扫光 */
.skeleton-card {
  break-inside: avoid;
  height: var(--skeleton-height, 200px);
  margin: 0 0 16px;
  overflow: hidden;
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 18px 25px 21px 27px;
  box-shadow: 7px 8px 0 rgba(24, 37, 68, 0.09), 0 16px 30px rgba(32, 45, 82, 0.06);
}

.skeleton-card::after {
  display: block;
  width: 100%;
  height: 100%;
  content: '';
  background: linear-gradient(100deg, rgba(223, 232, 245, 0.1) 22%, rgba(223, 232, 245, 0.9) 50%, rgba(223, 232, 245, 0.1) 78%);
  background-size: 220% 100%;
  animation: skeletonSweep 1.6s linear infinite;
}

@keyframes skeletonSweep {
  from {
    background-position: 160% 0;
  }
  to {
    background-position: -60% 0;
  }
}

/* 空档案室:碗底朝天的鲸鱼娘等着投喂 */
.wall-empty {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 54px 20px 72px;
  text-align: center;
}

.wall-empty[hidden] {
  display: none;
}

.wall-empty-art {
  width: 168px;
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(5px 6px 0 rgba(24, 37, 68, 0.12));
}

.empty-bowl-wave {
  fill: none;
  stroke: rgba(96, 122, 169, 0.45);
  stroke-linecap: round;
  stroke-width: 5;
}

.empty-bowl {
  fill: var(--white);
  stroke: var(--white);
  stroke-width: 12;
  stroke-linejoin: round;
}

.wall-empty-art .empty-bowl {
  fill: var(--mist);
}

.empty-bowl-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 5;
}

.empty-bubble {
  fill: var(--coral);
  stroke: var(--white);
  stroke-width: 4;
  animation: bubbleRise 4.4s ease-in-out infinite;
}

.empty-bubble-mid {
  animation-duration: 5.4s;
  animation-delay: -1.6s;
}

.empty-bubble-small {
  animation-duration: 6.4s;
  animation-delay: -3.2s;
}

.wall-empty strong {
  color: var(--deep);
  font-family: var(--round);
  font-size: 19px;
  font-weight: 900;
}

.wall-empty p {
  max-width: 30em;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.retry-button {
  margin-top: 8px;
  padding: 9px 19px;
  color: var(--deep);
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 11px 16px 12px 15px;
  box-shadow: 4px 5px 0 var(--sticker-shadow);
  font-size: 12px;
  font-weight: 900;
  transition: transform 300ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease);
}

.retry-button:hover {
  background: var(--coral);
  box-shadow: 2px 3px 0 var(--sticker-shadow);
  transform: translate(2px, 2px);
}

.retry-button:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

.sticker-card:hover img {
  transform: scale(1.05) rotate(-1.2deg);
}

.sticker-card::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  content: '↗';
  color: var(--deep);
  background: var(--white);
  border: 3px solid var(--deep);
  border-radius: 10px 13px 9px 12px;
  box-shadow: 2px 2px 0 var(--sticker-shadow);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: rotate(8deg) translateY(7px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.sticker-card:hover::after {
  opacity: 1;
  transform: rotate(8deg) translateY(0);
}

.sticker-card.is-animated::before {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 4px 8px;
  color: var(--white);
  background: var(--deep);
  border: 2px solid var(--white);
  border-radius: 7px 10px 8px 11px;
  box-shadow: 2px 2px 0 var(--sticker-shadow);
  content: 'GIF';
  font-size: 8px;
  font-weight: 900;
}

.sticker-card.is-animated .sticker-card-inner::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 7px;
  height: 7px;
  content: '';
  background: var(--coral);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 1px 1px 0 var(--sticker-shadow);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 100px;
  padding: 12px 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

/* 页脚改用一条波浪水线代替直边,和背景的海浪呼应 */
.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 11px;
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 11' preserveAspectRatio='none'%3E%3Cpath d='M0 7.5Q9 2.5 18 7.5T36 7.5T54 7.5T72 7.5' fill='none' stroke='%23202d52' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 72px 11px;
  opacity: 0.62;
}

.footer-bubbles {
  top: -30px;
  left: 2%;
  height: 40px;
}

.footer-brand {
  color: var(--deep);
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a {
  justify-self: end;
  color: var(--deep);
  font-size: 21px;
  font-weight: 900;
}

.sticker-card.is-animated::before,
.sticker-card.is-animated .sticker-card-inner::after,
.lightbox-media-shell::before,
.lightbox-media-shell::after {
  pointer-events: none;
}

@media (max-width: 700px) {
  .sticker-card.is-animated::before {
    top: 12px;
    left: 12px;
    padding: 3px 6px;
    border-width: 2px;
    font-size: 7px;
  }

  .sticker-card.is-animated .sticker-card-inner::after {
    right: 9px;
    bottom: 9px;
    width: 6px;
    height: 6px;
  }

  .lightbox-media-shell::after {
    right: 14px;
    bottom: 12px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .hero-kicker {
    animation: none;
  }

  .sea-band {
    height: 90px;
  }

  .sea-band-b {
    height: 110px;
  }

  .hero-wave {
    right: -140px;
    width: 520px;
    opacity: 0.5;
  }
}

@media (max-width: 700px) {
  .wordmark {
    gap: 7px;
  }

  .brand-logo-color {
    width: 30px;
    height: 30px;
  }

  .wordmark span:last-child {
    font-size: 10.5px;
  }
}

.mascot {
  position: fixed;
  z-index: 25;
  bottom: 22px;
  right: 22px;
  width: clamp(88px, 12vw, 142px);
  touch-action: none;
  user-select: none;
  cursor: grab;
  filter: drop-shadow(7px 9px 0 rgba(24, 37, 68, 0.72)) drop-shadow(0 18px 26px rgba(32, 45, 82, 0.18));
}

.mascot.is-dragging {
  cursor: grabbing;
}

.mascot-sticker {
  display: block;
  transform-origin: 50% 92%;
  animation: mascotFloat 4.6s ease-in-out infinite;
  will-change: transform;
}

.mascot-body {
  display: block;
  transform-origin: 50% 92%;
  transition: transform 260ms cubic-bezier(0.18, 1.4, 0.28, 1);
  will-change: transform;
}

.mascot picture,
.mascot img {
  display: block;
}

.mascot img {
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}

.mascot-bubble {
  position: absolute;
  right: 66%;
  bottom: 78%;
  min-width: 46px;
  padding: 5px 9px;
  color: var(--deep);
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 12px 16px 12px 15px;
  box-shadow: 3px 4px 0 var(--sticker-shadow);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: rotate(-7deg) translateY(8px) scale(0.9);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  pointer-events: none;
}

.mascot:hover .mascot-bubble,
.mascot:focus-visible .mascot-bubble,
.mascot.is-talking .mascot-bubble,
.mascot.is-holding .mascot-bubble {
  opacity: 1;
  transform: rotate(-7deg) translateY(0) scale(1);
}

.mascot.is-pressed .mascot-body {
  transform: translateY(9px) scaleX(1.18) scaleY(0.76) rotate(-2deg);
}

.mascot.is-holding .mascot-body {
  animation: mascotSquishShake 86ms linear infinite;
}

.mascot.is-bopping .mascot-body {
  animation: mascotJelly 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mascot.is-combo-bopping .mascot-body {
  animation: mascotComboJelly 460ms cubic-bezier(0.2, 1.35, 0.26, 1) both;
}

.mascot:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 7px;
  border-radius: 22px;
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

@keyframes mascotJelly {
  0% {
    transform: translateY(8px) scaleX(1.18) scaleY(0.78) rotate(-2deg);
  }
  24% {
    transform: translateY(-10px) scaleX(0.84) scaleY(1.2) rotate(4deg);
  }
  48% {
    transform: translateY(4px) scaleX(1.09) scaleY(0.92) rotate(-2deg);
  }
  68% {
    transform: translateY(-3px) scaleX(0.97) scaleY(1.05) rotate(1deg);
  }
  84% {
    transform: translateY(1px) scaleX(1.02) scaleY(0.98) rotate(-0.4deg);
  }
  100% {
    transform: translateY(0) scaleX(1) scaleY(1) rotate(0deg);
  }
}

@keyframes mascotComboJelly {
  0% {
    transform: translateY(3px) scaleX(1.08) scaleY(0.92) rotate(-1deg);
  }
  28% {
    transform: translateY(-8px) scaleX(0.9) scaleY(1.14) rotate(4deg);
  }
  54% {
    transform: translateY(2px) scaleX(1.12) scaleY(0.88) rotate(-3deg);
  }
  76% {
    transform: translateY(-2px) scaleX(0.98) scaleY(1.04) rotate(1deg);
  }
  100% {
    transform: translateY(0) scaleX(1) scaleY(1) rotate(0deg);
  }
}

@keyframes mascotSquishShake {
  0% {
    transform: translate(-4px, 9px) scaleX(1.22) scaleY(0.72) rotate(-4deg);
  }
  25% {
    transform: translate(3px, 12px) scaleX(1.18) scaleY(0.76) rotate(3deg);
  }
  50% {
    transform: translate(4px, 8px) scaleX(1.24) scaleY(0.7) rotate(4deg);
  }
  75% {
    transform: translate(-3px, 11px) scaleX(1.2) scaleY(0.74) rotate(-3deg);
  }
  100% {
    transform: translate(-4px, 9px) scaleX(1.22) scaleY(0.72) rotate(-4deg);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  visibility: hidden;
  padding: 21px;
  place-items: center;
  opacity: 0;
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 4%, rgba(96, 122, 169, 0.35), transparent 58%),
    rgba(22, 33, 61, 0.87);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* 预览面板顶上压一段和纸胶带,像把这张表情贴到眼前 */
.tape-panel {
  top: -12px;
  left: 50%;
  width: 134px;
  height: 26px;
  transform: translateX(-50%) rotate(-2deg);
}

.lightbox-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--deep);
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 4px 5px 0 rgba(12, 20, 42, 0.5);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  transition: transform 300ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-nav span {
  transform: translateY(-1px);
}

.lightbox-prev {
  left: -25px;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -25px;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  background: var(--coral);
  box-shadow: 2px 3px 0 rgba(12, 20, 42, 0.5);
  transform: translate(2px, calc(-50% + 2px)) rotate(-6deg);
}

.lightbox-next:hover {
  background: var(--coral);
  box-shadow: 2px 3px 0 rgba(12, 20, 42, 0.5);
  transform: translate(2px, calc(-50% + 2px)) rotate(6deg);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translate(1px, calc(-50% + 1px)) scale(0.97);
}

.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

/* 图下的档案条:第几张、什么格式、多大 */
.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 10px 7px 1px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lightbox-meta {
  color: var(--deep);
}

.lightbox-hint {
  opacity: 0.62;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 12px;
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 20px 29px 24px 31px;
  box-shadow: 10px 12px 0 rgba(12, 20, 42, 0.58), 0 45px 100px rgba(6, 12, 28, 0.4);
  transform: translateY(25px) rotate(-1deg) scale(0.97);
  transition: transform 500ms var(--ease);
}

.lightbox.is-open .lightbox-panel {
  transform: translateY(0) rotate(0deg) scale(1);
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: -17px;
  right: -17px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--deep);
  background: var(--coral);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 3px 4px 0 var(--sticker-shadow);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}

.lightbox-close:hover {
  background: var(--mist);
  transform: rotate(90deg);
}

.lightbox-media-shell {
  display: grid;
  width: fit-content;
  max-width: min(100%, 92vw);
  max-height: min(76vh, 760px);
  place-items: center;
  overflow: hidden;
  background-color: var(--white);
  background-image: linear-gradient(45deg, #edf1f7 25%, transparent 25%), linear-gradient(-45deg, #edf1f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf1f7 75%), linear-gradient(-45deg, transparent 75%, #edf1f7 75%);
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-size: 18px 18px;
  border-radius: 12px 18px 14px 19px;
}

.lightbox-media-shell::after {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  padding: 5px 9px;
  color: var(--deep);
  background: rgba(223, 232, 245, 0.82);
  border: 2px solid var(--white);
  border-radius: 7px 10px 8px 11px;
  box-shadow: 2px 2px 0 var(--sticker-shadow);
  content: '动态表情';
  font-size: 9px;
  font-weight: 900;
}

.lightbox-media-shell:not(.is-animated)::after {
  display: none;
}

.lightbox-media-shell img {
  display: block;
  width: auto;
  max-width: min(100%, 92vw);
  height: auto;
  max-height: min(76vh, 760px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

/* 大图解码完再显形,翻页时不会先闪出半张图 */
.lightbox-media-shell img.is-ready {
  opacity: 1;
}

.lightbox-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 17px;
  border: 3px solid var(--white);
  border-radius: 12px 17px 13px 15px;
  box-shadow: 4px 5px 0 var(--sticker-shadow);
  font-size: 12px;
  font-weight: 900;
  transition: transform 300ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease);
}

.action-button:hover {
  box-shadow: 2px 3px 0 var(--sticker-shadow);
  transform: translate(2px, 2px);
}

.action-primary {
  color: var(--white);
  background: var(--deep);
}

.action-primary:hover {
  background: var(--blue);
}

.action-secondary {
  color: var(--deep);
  background: var(--mist);
}

.action-secondary:hover {
  background: var(--coral);
}

.action-status {
  min-height: 15px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1060px) {
  .site-nav,
  .page-shell,
  .site-footer {
    width: min(100% - 44px, 900px);
  }

  .hero {
    grid-template-columns: minmax(235px, 0.72fr) minmax(340px, 1fr);
    gap: 42px;
  }

  .source-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 130px 1fr 180px;
    gap: 22px;
    align-items: start;
    padding-top: 20px;
  }

  .source-panel h2 {
    margin-top: 6px;
  }

  .license-note {
    margin-top: 7px;
  }

  .sticker-grid {
    columns: 3 190px;
  }
}

@media (max-width: 700px) {
  .site-nav,
  .page-shell,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-nav {
    height: 73px;
  }

  .wordmark {
    font-size: 11px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-social {
    gap: 4px;
    padding-right: 9px;
  }

  .nav-social-link {
    width: 33px;
    height: 33px;
  }

  .nav-social-link svg {
    width: 16px;
    height: 16px;
  }

  .nav-action {
    min-height: 42px;
    padding: 3px 3px 3px 14px;
    font-size: 12px;
  }

  .nav-action span:last-child {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 54px;
    padding: 57px 0 102px;
  }

  .hero-copy {
    padding: 0;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-lede {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .hero-stickers {
    display: none;
  }

  .hero-copy,
  .hero-art-area,
  .source-panel {
    z-index: 3;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .wall-section {
    padding-top: 22px;
  }

  .wall-heading {
    padding-top: 28px;
  }

  .sticker-card:nth-child(2n) {
    margin-top: 5px;
  }

  .sticker-card {
    margin-bottom: 9px;
  }

  .sticker-grid {
    column-gap: 9px;
  }

  .hero-art-area {
    width: calc(100% - 23px);
    margin-inline: auto;
  }

  .hero-art-sticker {
    padding: 9px;
    border-width: 4px;
    border-radius: 22px 29px 25px 32px;
    box-shadow: 7px 8px 0 var(--sticker-shadow), 0 22px 42px rgba(32, 45, 82, 0.14);
  }

  .hero-art-window {
    border-radius: 14px 19px 16px 21px;
  }

  .hero-art-window img {
    height: min(119vw, 580px);
    min-height: 400px;
  }

  .art-note {
    right: -13px;
    bottom: -20px;
  }

  .spark-one {
    left: -13px;
  }

  .spark-two {
    right: -14px;
  }

  .source-panel {
    display: block;
    padding: 0;
  }

  .source-panel h2 {
    margin-bottom: 14px;
  }

  .license-note {
    margin-top: 16px;
  }

  .wall-section {
    padding: 18px 0 105px;
  }

  .wall-section::before {
    top: 0;
  }

  .wall-heading {
    align-items: start;
    padding-top: 25px;
    padding-bottom: 16px;
  }

  .wall-heading h2 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .wall-title-row {
    gap: 10px 13px;
  }

  .sticker-count {
    min-height: 30px;
    padding: 6px 10px 5px;
    font-size: 10.5px;
  }

  .wall-squiggle {
    width: 72px;
    transform: scale(0.75) rotate(-4deg);
    transform-origin: right bottom;
  }

  .sticker-grid {
    columns: 2 140px;
    column-gap: 11px;
  }

  .sticker-card {
    min-height: 100px;
    margin-top: 0;
    margin-bottom: 9px;
    padding: 6px;
    border-width: 3px;
    box-shadow: 4px 5px 0 var(--sticker-shadow), 0 10px 20px rgba(32, 45, 82, 0.08);
  }

  .sticker-card-inner {
    min-height: 90px;
  }

  .sticker-card::after {
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    border-width: 2px;
    font-size: 11px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding: 25px 0;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    text-align: left;
  }

  .site-footer > a {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
  }

  .mascot {
    right: 12px;
    bottom: 14px;
    width: clamp(76px, 24vw, 104px);
  }

  .mascot-bubble {
    right: 56%;
    font-size: 10px;
  }

  .lightbox {
    padding: 13px;
  }

  .lightbox-panel {
    padding: 8px;
  }

  .lightbox-close {
    top: -13px;
    right: -9px;
    width: 33px;
    height: 33px;
  }

  .lightbox-media-shell {
    max-width: min(100%, 94vw);
    max-height: 70vh;
  }

  .lightbox-media-shell img {
    max-width: min(100%, 94vw);
    max-height: 70vh;
  }

  .lightbox-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  /* 面板两侧挤不下时,翻页按钮收进图内 */
  .lightbox-nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 22px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 700px) {
  .sea-rays {
    height: 60vh;
  }

  .sea-ray-one {
    left: 7%;
    width: 128px;
  }

  .sea-ray-three {
    width: 158px;
  }

  .sea-floor {
    display: none;
  }

  .site-nav {
    top: 8px;
    height: 70px;
    padding: 0 9px;
    border-radius: 18px 23px 19px 22px;
  }

  .site-nav.is-scrolled {
    box-shadow: 4px 5px 0 rgba(24, 37, 68, 0.14), 0 14px 26px rgba(32, 45, 82, 0.12);
  }

  .tape-hero-left {
    top: -11px;
    width: 96px;
  }

  .tape-hero-right {
    top: -12px;
    width: 72px;
  }

  .art-tag {
    bottom: 24px;
    left: -12px;
    padding: 6px 9px 5px;
    font-size: 9px;
  }

  .wall-divider {
    top: -21px;
    height: 42px;
  }

  .divider-fish {
    width: 42px;
  }

  .divider-starfish {
    width: 31px;
  }

  .divider-bubbles {
    left: 62%;
  }

  .skeleton-card {
    margin-bottom: 9px;
    border-width: 3px;
    border-radius: 14px 19px 16px 21px;
  }

  .skeleton-card:nth-child(2n) {
    margin-top: 5px;
  }

  .card-tape {
    top: -9px;
    left: 12px;
    width: 56px;
    height: 16px;
  }

  .card-tape.is-right {
    right: 12px;
    width: 50px;
  }

  .wall-empty {
    padding: 38px 12px 58px;
  }

  .wall-empty-art {
    width: 126px;
  }

  .tape-panel {
    top: -10px;
    width: 108px;
    height: 22px;
  }

  .lightbox-caption {
    justify-content: center;
    padding-top: 9px;
    font-size: 10px;
  }

  .lightbox-hint {
    display: none;
  }

  .footer-bubbles {
    top: -25px;
  }
}

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

  .sticker-card {
    opacity: 1;
    animation: none !important;
    will-change: auto;
  }

  .sticker-card-inner {
    opacity: 1;
    animation: none !important;
    transform: none;
    will-change: auto;
  }

  .mascot-sticker,
  .mascot-body,
  .mascot.is-holding .mascot-body,
  .mascot.is-bopping .mascot-body,
  .mascot.is-combo-bopping .mascot-body,
  .sea-band,
  .hero-wave {
    animation: none !important;
  }

  .mascot.is-pressed .mascot-body,
  .mascot.is-holding .mascot-body {
    transform: translateY(4px) scaleX(1.08) scaleY(0.9);
  }
}


/* 收藏册细节：统一中文排版、安静的卡片与清晰的预览操作。 */
:root {
  --body: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --round: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --muted: #62718b;
}

body {
  font-size: 15px;
  line-height: 1.65;
}

h1 {
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.16;
}

.wall-heading h2 {
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0;
}

.hero-lede {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.wordmark {
  font-weight: 700;
}

.nav-links, .hero-cta {
  font-size: 14px;
  font-weight: 600;
}

.hero-cta {
  min-height: 44px;
}

.source-body strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.source-body small, .license-note, .site-footer, .wall-empty p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.wall-section .eyebrow {
  font-size: 11px;
  font-weight: 600;
}

.sticker-count {
  padding: 5px 11px;
  border: 1px solid rgba(96,122,169,.16);
  border-radius: 8px;
  color: var(--blue);
  background: #edf2f9;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  transform: none;
  font-variant-numeric: tabular-nums;
}

/* 标签筛选:和卡片同一套细线/浅底语言,不做成彩色按钮墙 */
.tag-filter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -2px 0 18px;
  padding: 0 2px;
}

.tag-filter[hidden] {
  display: none;
}

/* 分类行在标签行上方,两行属于同一组筛选器,间距收小一点 */
.category-filter {
  margin-bottom: 10px;
}

.tag-filter-label {
  flex: none;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.tag-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 11px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.16);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tag-chip:hover {
  color: var(--deep);
  background: #f6f8fc;
  border-color: rgba(96, 122, 169, 0.34);
}

.tag-chip:focus-visible {
  outline: 3px solid #607aa9;
  outline-offset: 2px;
}

.tag-chip.is-active {
  color: var(--white);
  background: #344f7d;
  border-color: #344f7d;
}

.tag-chip-count {
  color: inherit;
  font-size: 11px;
  opacity: 0.58;
  font-variant-numeric: tabular-nums;
}

.filter-empty {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.filter-empty[hidden] {
  display: none;
}

.sticker-grid {
  column-gap: 20px;
}

.sticker-card, .sticker-card:nth-child(n) {
  margin: 0 0 20px;
  padding: 8px;
  border: 1px solid rgba(96,122,169,.12);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(32,45,82,.045);
  transform: none;
  animation-duration: 280ms;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.sticker-card-inner {
  border-radius: 10px;
  animation: none;
  opacity: 1;
  will-change: auto;
}

.sticker-card img {
  transition: opacity 180ms ease;
}

.sticker-card:hover, .sticker-card:hover img {
  transform: none;
}

.sticker-card:hover {
  border-color: rgba(96,122,169,.24);
  box-shadow: 0 8px 20px rgba(32,45,82,.08);
}

.sticker-card:active {
  transform: scale(.99);
}

.sticker-card-inner::before, .sticker-card::after, .sticker-card.is-animated .sticker-card-inner::after {
  display: none;
}

.sticker-card.is-animated::before {
  top: 14px;
  left: 14px;
  padding: 3px 7px;
  content: '动图';
  border: 1px solid rgba(96,122,169,.15);
  border-radius: 6px;
  box-shadow: none;
  color: var(--deep);
  background: rgba(247,248,251,.94);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

/* 站长自作:和「动图」徽章同一套样式,放右上角,两个徽章可以同时出现 */
.sticker-card .sticker-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 3px 7px;
  color: var(--deep);
  background: rgba(247,248,251,.94);
  border: 1px solid rgba(96,122,169,.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  pointer-events: none;
}

/* 卡片底部的标签:只做展示,筛选交给上面的标签条 */
.sticker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px 1px 0;
  text-align: left;
}

.sticker-tag {
  padding: 2px 7px;
  color: var(--blue);
  background: #edf2f9;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.skeleton-card {
  margin-bottom: 20px;
  border: 1px solid rgba(96,122,169,.1);
  border-radius: 16px;
  box-shadow: none;
  background: #eef2f8;
}

.skeleton-card::after {
  animation-duration: 2s;
  opacity: .55;
}

.retry-button {
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

.wall-empty strong {
  font-weight: 600;
}

button:focus-visible, a:focus-visible, .sticker-card:focus-visible, .source-card:focus-visible, .hero-cta:focus-visible, .nav-action:focus-visible, .lightbox-close:focus-visible, .action-button:focus-visible, .lightbox-prev:focus-visible, .lightbox-next:focus-visible, .retry-button:focus-visible, .mascot:focus-visible {
  outline: 3px solid #607aa9;
  outline-offset: 4px;
}

.lightbox {
  padding: 24px;
  transition-duration: 180ms;
}

.lightbox-backdrop {
  background: rgba(16,25,45,.76);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(6,12,28,.25);
  transform: translateY(10px) scale(.99);
  transition: transform 180ms var(--ease);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 12px;
  padding-right: 52px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.lightbox-title {
  font-size: 15px;
  font-weight: 600;
}

.lightbox-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lightbox-position {
  min-width: 68px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.lightbox-nav, .lightbox-prev, .lightbox-next {
  position: static;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--deep);
  background: var(--white);
  box-shadow: none;
  transform: none;
  transition: background 160ms ease;
}

.lightbox-prev:hover, .lightbox-next:hover, .lightbox-prev:active, .lightbox-next:active {
  background: #edf2f9;
  box-shadow: none;
  transform: none;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #f2f5f9;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 26px;
  font-weight: 400;
  transition: background 160ms ease;
}

.lightbox-close:hover {
  transform: none;
  background: #e8edf5;
}

.lightbox-media-shell {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  border-radius: 12px;
  background-color: #f8fafc;
  background-image: linear-gradient(45deg, #f0f3f7 25%, transparent 25%), linear-gradient(-45deg, #f0f3f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f0f3f7 75%), linear-gradient(-45deg, transparent 75%, #f0f3f7 75%);
}

.lightbox-media-shell img {
  max-width: 100%;
  max-height: min(60dvh, 640px);
  transition-duration: 160ms;
}

.lightbox-media-shell::after {
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(96,122,169,.12);
  border-radius: 6px;
  background: rgba(247,248,251,.94);
  box-shadow: none;
  font-size: 11px;
  font-weight: 500;
}

/* 站长自作:和「动态表情」提示同一套样式,并肩放左下角 */
.lightbox-media-shell.is-self-made::before {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  padding: 4px 8px;
  content: '站长自作';
  color: var(--deep);
  background: rgba(247,248,251,.94);
  border: 1px solid rgba(96,122,169,.12);
  border-radius: 6px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 500;
}

.lightbox-caption {
  padding: 12px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  flex-shrink: 0;
}

/* 大图下方的可读描述与标签;标签可点,关掉预览并回到墙上筛选 */
.lightbox-alt {
  max-width: min(100%, 92vw);
  margin: 10px 0 0;
  padding: 0 1px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.lightbox-alt[hidden],
.lightbox-tags[hidden] {
  display: none;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lightbox-tag {
  min-height: 28px;
  padding: 3px 9px;
  color: var(--blue);
  background: #edf2f9;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

.lightbox-tag:hover {
  color: var(--deep);
  background: #e2eaf5;
}

.lightbox-tag:focus-visible {
  outline: 3px solid #607aa9;
  outline-offset: 2px;
}

.lightbox-hint {
  opacity: 1;
  color: var(--muted);
}

.lightbox-actions {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  flex-shrink: 0;
}

.action-button {
  min-height: 48px;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease;
}

.action-button:hover {
  box-shadow: none;
  transform: none;
}

.action-button:active {
  transform: scale(.98);
}

.action-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-primary {
  background: #344f7d;
}

.action-primary:hover {
  background: #293f65;
}

.action-primary.is-copied {
  background: #376858;
}

.action-button:disabled {
  opacity: .65;
  cursor: wait;
}

.action-secondary {
  background: #f2f5fa;
  border-color: #e0e7f0;
}

.action-secondary:hover {
  background: #e9eff7;
}

.action-status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  flex-shrink: 0;
}

/* 环境装饰停留在背景，反馈动画集中在操作发生时。 */
.bubble, .wave, .sea-band, .hero-wave, .sea-ray, .sea-weed, .sea-starfish, .sea-fish, .hero-sticker, .sticker-scan-dot, .hero-kicker, .sticker-spark, .divider-fish, .divider-starfish, .divider-bubbles i, .mascot-sticker {
  animation: none;
}

[data-reveal] {
  transform: translateY(10px);
  transition-duration: 280ms;
}

.mascot {
  bottom: 66px;
  filter: drop-shadow(0 6px 12px rgba(32,45,82,.18));
}

.mascot-bubble {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(32,45,82,.06);
  font-weight: 500;
}

.mascot-tools {
  position: fixed;
  z-index: 25;
  top: auto;
  left: 50%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 1px;
  border: 1px solid rgba(96,122,169,.14);
  border-radius: 7px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 2px 7px rgba(32,45,82,.08);
  transform: translateX(-50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mascot-tools:not(.is-positioned) {
  bottom: max(16px, env(safe-area-inset-bottom));
}

.mascot-tool {
  min-width: 38px;
  min-height: 32px;
  padding: 0 7px;
  color: var(--deep);
  background: transparent;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  transition: background 160ms ease;
}

.mascot-tool:hover, .mascot-tool[aria-pressed='true'] {
  background: #edf2f9;
}

.mascot-restore {
  position: fixed;
  right: 22px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(32,45,82,.06);
}

.mascot[hidden], .mascot-tools[hidden], .mascot-restore[hidden], .is-previewing .mascot, .is-previewing .mascot-tools, .is-previewing .mascot-restore {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .sticker-card:hover {
    transform: translateY(-3px);
  }
}

@media (min-width: 701px) and (max-width: 1060px) {
  .art-note {
    right: 0;
  }
}

@media (max-width: 700px) {
  .wordmark {
    font-size: 12px;
  }
  .nav-action {
    font-size: 12px;
  }
  .sticker-grid {
    column-gap: 12px;
  }
  .sticker-card, .sticker-card:nth-child(n) {
    margin: 0 0 12px;
    padding: 6px;
    border-radius: 12px;
  }
  .sticker-card-inner {
    border-radius: 7px;
  }
  .skeleton-card {
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .sticker-count {
    min-height: 30px;
    font-size: 12px;
  }
  .tag-filter {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
  }
  .tag-filter-label {
    padding-top: 0;
  }
  .tag-chip {
    min-height: 30px;
    padding: 3px 9px;
    font-size: 12px;
  }
  .sticker-tags {
    margin-top: 5px;
  }
  .sticker-tag {
    padding: 1px 6px;
    font-size: 10px;
  }
  .lightbox-alt {
    font-size: 13px;
  }
  .lightbox {
    padding: 12px;
  }
  .lightbox-panel {
    padding: 14px;
    border-radius: 16px;
    max-height: calc(100dvh - 24px);
  }
  .lightbox-header {
    gap: 6px;
    padding-right: 48px;
    margin-bottom: 12px;
  }
  .lightbox-title {
    font-size: 14px;
  }
  .lightbox-pagination {
    gap: 0;
  }
  .lightbox-position {
    min-width: 55px;
    font-size: 12px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
  }
  .lightbox-media-shell img {
    max-height: max(80px, calc(100dvh - 260px));
  }
  .lightbox-caption {
    font-size: 12px;
  }
  .lightbox-hint {
    display: none;
  }
  .lightbox-actions {
    gap: 8px;
    padding-top: 12px;
  }
  .action-button {
    min-height: 46px;
    padding: 0 10px;
    font-size: 14px;
  }
  .mascot {
    bottom: calc(72px + env(safe-area-inset-bottom));
    right: 12px;
    width: 80px;
  }
  .mascot-tools {
    gap: 1px;
    padding: 2px;
    border-radius: 9px;
  }
  .mascot-tool {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12px;
  }
  .mascot-restore {
    right: 12px;
  }
}

@media (max-height: 480px) {
  .lightbox {
    padding: 8px;
  }
  .lightbox-panel {
    padding: 10px;
    max-height: calc(100dvh - 16px);
  }
  .lightbox-header {
    margin-bottom: 6px;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  .lightbox-media-shell img {
    max-height: max(60px, calc(100dvh - 220px));
  }
  .lightbox-caption {
    padding-top: 6px;
  }
  .lightbox-actions {
    padding-top: 6px;
  }
  .action-status {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .sticker-card, .sticker-card:hover {
    transform: none;
  }
}


.is-previewing .mascot, .is-previewing .mascot-tools, .is-previewing .mascot-restore {
  visibility: hidden;
  pointer-events: none;
}



/* About 页面：档案说明书的版式，沿用首页的收藏册语言，靠留白和细线分区。 */
.about-shell {
  padding: 24px 0 130px;
}

/* 次级动作：白底 + 珊瑚粉细边，比主按钮轻一档；
   左侧圆形图标底片用珊瑚粉，把入群这件事单独标出来。 */
.nav-join {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 18px 4px 4px;
  color: var(--deep);
  background: linear-gradient(160deg, #fffaf9, #fdf0ef);
  border: 1px solid rgba(214, 138, 133, 0.42);
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(214, 138, 133, 0.18), 0 8px 16px rgba(32, 45, 82, 0.06);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease);
}

.nav-join svg {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  padding: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  background: var(--coral);
  border-radius: 50%;
  transition: transform 320ms var(--ease), background 240ms var(--ease);
}

.nav-join:hover {
  background: var(--white);
  border-color: rgba(214, 138, 133, 0.78);
  box-shadow: 0 2px 0 rgba(214, 138, 133, 0.28), 0 12px 22px rgba(32, 45, 82, 0.09);
  transform: translateY(-2px);
}

.nav-join:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.nav-join:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(214, 138, 133, 0.24), 0 4px 10px rgba(32, 45, 82, 0.06);
}

/* 首页入口组合：游戏与手册并排各占一张大卡，图鉴横跨一行。
   整张卡就是一个链接，点击面积也更实在。 */
.entry-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  /* 和表情墙顶部的虚线分隔线拉开距离，否则两条线会粘在一起 */
  margin-bottom: 38px;
}

.entry-card-wide {
  grid-column: 1 / -1;
}

.entry-card {
  position: relative;
  isolation: isolate;
  color: var(--deep);
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.16);
  border-radius: 20px;
  box-shadow: 5px 6px 0 rgba(32, 45, 82, 0.12), 0 18px 32px rgba(32, 45, 82, 0.06);
  /* 带上 opacity，data-reveal 的入场淡入才不会被这条 transition 覆盖掉 */
  transition: opacity 620ms var(--ease), transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
}

.entry-card:hover {
  border-color: rgba(96, 122, 169, 0.32);
  box-shadow: 3px 4px 0 rgba(32, 45, 82, 0.14), 0 12px 24px rgba(32, 45, 82, 0.07);
  transform: translate(2px, 2px);
}

.entry-card:active {
  box-shadow: 2px 2px 0 rgba(32, 45, 82, 0.12), 0 8px 16px rgba(32, 45, 82, 0.05);
  transform: translate(3px, 3px);
}

.entry-card:focus-visible {
  outline: 3px solid #607aa9;
  outline-offset: 4px;
}

/* ---------- 新作大卡 ---------- */

.entry-card-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 238px;
  padding: 24px 26px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(241, 199, 197, 0.5), transparent 58%),
    linear-gradient(150deg, #fff9f8, var(--white) 62%);
  border-color: rgba(241, 199, 197, 0.8);
}

.entry-card-feature:hover {
  border-color: rgba(241, 199, 197, 0.98);
}

/* 右下角探出的海浪，呼应站点水线。左侧用渐隐遮罩淡出，
   避免波浪路径起始处露出一条竖直硬边；圆角单独裁，和卡片内缘对齐。 */
.entry-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(64%, 340px);
  height: 74%;
  overflow: hidden;
  border-radius: 0 0 19px 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 46%);
  mask-image: linear-gradient(to right, transparent 0%, #000 46%);
}

.entry-tape {
  top: -14px;
  right: 34px;
  width: 92px;
  height: 24px;
  transform: rotate(5deg);
}

.entry-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-icon {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--deep);
  background: var(--coral);
  border-radius: 16px 19px 15px 18px;
  box-shadow: 3px 4px 0 rgba(24, 37, 68, 0.16);
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}

.entry-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.entry-icon svg .entry-icon-fill {
  fill: currentColor;
  stroke: none;
}

.entry-card:hover .entry-icon {
  transform: rotate(-5deg) scale(1.05);
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  color: var(--deep);
  background: var(--coral);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.entry-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.entry-title {
  color: var(--deep);
  font-family: var(--round);
  font-weight: 900;
  line-height: 1.35;
}

.entry-card-feature .entry-title {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  letter-spacing: -0.01em;
}

.entry-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  text-wrap: pretty;
}

.entry-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  min-height: 46px;
  margin-top: auto;
  padding: 0 20px;
  color: var(--white);
  background: linear-gradient(135deg, #3a5684, #26395f);
  border-radius: 999px;
  box-shadow: 4px 5px 0 rgba(24, 37, 68, 0.2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 240ms ease, box-shadow 240ms var(--ease);
}

.entry-card:hover .entry-cta {
  background: linear-gradient(135deg, #2f4976, #1f3054);
  box-shadow: 3px 4px 0 rgba(24, 37, 68, 0.22);
}

.entry-cta-arrow {
  font-size: 15px;
  transition: transform 240ms var(--ease);
}

.entry-card:hover .entry-cta-arrow {
  transform: translate(2px, -2px);
}

/* ---------- 图鉴 / 手册窄卡 ---------- */

.entry-card-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 16px 18px;
}

.entry-card-mist {
  background: linear-gradient(120deg, #f1f6fc, var(--white) 68%);
  border-color: rgba(96, 122, 169, 0.24);
}

/* 手册大卡：米色方格纸 + 左侧装订虚线，和游戏的粉色大卡区分开 */
.entry-card-manual {
  background:
    linear-gradient(rgba(185, 154, 103, 0.1) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(185, 154, 103, 0.1) 1px, transparent 1px) 0 0 / 26px 100%,
    linear-gradient(150deg, #fdf8ee, var(--white) 66%);
  border-color: rgba(185, 154, 103, 0.42);
}

.entry-card-manual:hover {
  border-color: rgba(185, 154, 103, 0.72);
}

.entry-card-manual::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 12px;
  z-index: 0;
  content: "";
  border-left: 2px dashed rgba(185, 154, 103, 0.38);
}

.entry-tape-gold {
  background-color: rgba(226, 205, 167, 0.92);
}

.entry-card-compact .entry-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px 17px 13px 16px;
}

.entry-card-compact .entry-icon svg {
  width: 24px;
  height: 24px;
}

.entry-card-mist .entry-icon {
  background: var(--mist);
}

.entry-card-manual .entry-icon {
  color: #7a6134;
  background: #f1e6d2;
}

.entry-card-compact .entry-badge {
  justify-self: start;
  min-height: 20px;
  padding: 0 9px;
  font-size: 10px;
}

.entry-card-mist .entry-badge {
  color: #3d557f;
  background: var(--mist);
}

.entry-badge-gold {
  color: #7a6134;
  background: #f1e6d2;
}

.entry-card-compact .entry-body {
  gap: 4px;
}

.entry-card-compact .entry-title {
  font-size: 16px;
}

.entry-card-compact .entry-desc {
  font-size: 13px;
  line-height: 1.65;
}

/* 手册大卡的分类小标签，让「里面有什么」一眼可见 */
.entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.entry-chips span {
  padding: 3px 10px;
  color: #6d5730;
  background: rgba(241, 230, 210, 0.8);
  border: 1px solid rgba(185, 154, 103, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.entry-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--deep);
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.22);
  border-radius: 50%;
  box-shadow: 2px 3px 0 rgba(24, 37, 68, 0.12);
  font-size: 15px;
  transition: color 240ms var(--ease), background 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.entry-card:hover .entry-arrow {
  color: var(--white);
  background: var(--deep);
  box-shadow: 2px 2px 0 rgba(24, 37, 68, 0.16);
  transform: translateX(3px);
}

/* 两栏 Bento 在 1180px 以下会把窄卡的说明挤成两三行，
   改成大卡独占一行、图鉴与手册并排，读完一行再往下扫。 */
@media (max-width: 1180px) {
  .entry-hub {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-card-feature {
    min-height: 0;
  }
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(196px, 0.7fr);
  align-items: center;
  gap: clamp(26px, 4vw, 60px);
  padding: 42px 2px 46px;
}

/* 和首页表情墙同款的虚线水线，把 hero 与正文分开 */
.about-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: '';
  background: repeating-linear-gradient(90deg, var(--deep) 0 16px, rgba(96, 122, 169, 0.25) 16px 28px);
  border-radius: 3px;
}

.about-hero .eyebrow {
  display: block;
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.about-hero h1 {
  margin: 0 0 16px;
  color: var(--deep);
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.about-lede {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

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

/* 和导航主按钮同一套：胶囊 + 顶部内高光 + 硬投影 + 右侧白圆钮 */
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 5px 5px 5px 22px;
  color: var(--white);
  background: linear-gradient(140deg, #33496f, #16223c);
  border: 1px solid rgba(12, 22, 42, 0.55);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 0 #101b31,
    0 14px 26px rgba(20, 32, 60, 0.22);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 260ms var(--ease), transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.about-cta-knob {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: 2px;
  place-items: center;
  color: var(--deep);
  background: var(--white);
  border-radius: 50%;
  box-shadow: inset 0 -2px 0 rgba(24, 37, 68, 0.12);
  font-size: 15px;
  font-weight: 800;
  transition: transform 300ms var(--ease), background 300ms var(--ease), color 300ms var(--ease);
}

.about-cta:hover {
  background: linear-gradient(140deg, #3b5480, #1d2c4c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 3px 0 #101b31,
    0 18px 30px rgba(20, 32, 60, 0.28);
  transform: translateY(-2px);
}

.about-cta:hover .about-cta-knob {
  color: var(--deep);
  background: var(--coral);
  transform: rotate(-6deg) scale(1.05);
}

.about-cta:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 #101b31,
    0 8px 16px rgba(20, 32, 60, 0.2);
  transform: translateY(1px) scale(0.99);
}

/* 次按钮按住时不抢主按钮的注意力 */
.about-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  color: #344f7d;
  background: #f2f5fa;
  border: 1px solid #e0e7f0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 180ms ease, transform 180ms ease;
}

.about-cta-ghost:hover {
  background: #e9eff7;
}

.about-cta-ghost:active {
  transform: scale(.98);
}

/* 右侧档案卡：和纸胶带 + 虚线圆框，像从档案盒里抽出来的一页 */
.about-art {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  justify-self: center;
  width: min(238px, 100%);
  padding: 26px 22px 18px;
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.14);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(32, 45, 82, 0.08), 0 2px 6px rgba(32, 45, 82, 0.04);
  transform: rotate(1.5deg);
}

.tape-about {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 23px;
  background-color: var(--tape-mist);
  transform: translateX(-50%) rotate(-3deg);
}

/* 档案编号沿用首页的标签样式，但压到卡片左上角，不再和卡内文字抢位置 */
.about-art .art-tag {
  top: 12px;
  bottom: auto;
  left: -14px;
  padding: 5px 9px 4px;
  font-size: 9px;
  transform: rotate(-6deg);
}

.about-art-frame {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px dashed rgba(96, 122, 169, 0.4);
  border-radius: 50%;
}

.about-art-frame img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(32, 45, 82, 0.2));
}

.about-art-note {
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-art small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* 三个作用做成并列卡片，比一串列表更容易一眼扫完 */
.about-features {
  padding: 38px 0 4px;
}

.about-features h2 {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-feature {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.12);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(32, 45, 82, 0.045);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.about-feature:hover {
  border-color: rgba(96, 122, 169, 0.26);
  box-shadow: 0 10px 22px rgba(32, 45, 82, 0.08);
  transform: translateY(-3px);
}

.about-feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #344f7d;
  background: #edf2f9;
  border: 1px solid rgba(96, 122, 169, 0.16);
  border-radius: 12px;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about-feature h3 {
  margin: 0;
  color: var(--deep);
  font-size: 16px;
  font-weight: 600;
}

.about-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

/* 投稿卡里的两个直达入口：卡内次要按钮，比正文链接更明确一点 */
.about-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.about-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 13px;
  color: #344f7d;
  background: #edf2f9;
  border: 1px solid rgba(96, 122, 169, 0.18);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.about-feature-link:hover {
  background: #e3ebf5;
  border-color: rgba(96, 122, 169, 0.32);
}

.about-feature-link:active {
  transform: scale(.98);
}

/* ---------- 开放数据通栏 ----------
   不塞进普通卡片：给足通栏宽度和深色代码面板，开发者一眼能认出这是接入入口。 */
.about-api {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: clamp(26px, 4vw, 52px);
  margin-top: 38px;
  padding: clamp(26px, 3.4vw, 40px);
  background:
    radial-gradient(95% 130% at 0% 0%, rgba(223, 232, 245, 0.85), transparent 56%),
    radial-gradient(80% 120% at 100% 100%, rgba(241, 199, 197, 0.34), transparent 62%),
    var(--white);
  border: 1px solid rgba(96, 122, 169, 0.22);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(32, 45, 82, 0.08);
  scroll-margin-top: 110px;
}

/* 沿用站点的胶带贴纸语言，提示这是一块被"贴"上来的公告 */
.tape-api {
  top: -13px;
  left: 38px;
  width: 104px;
  height: 24px;
  transform: rotate(-4deg);
}

.about-api-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.about-api-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.about-api-eyebrow::before {
  width: 22px;
  height: 3px;
  content: '';
  background: var(--coral);
  border-radius: 3px;
}

.about-api h2 {
  margin: 0;
  color: var(--deep);
  font-family: var(--round);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}

.about-api-lede {
  max-width: 44em;
  margin: 0;
  color: #4a5878;
  font-size: 14.5px;
  line-height: 1.8;
}

/* 接口地址做成可点的药丸，GET 用深蓝小标签标出来 */
.about-api-endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px 6px 6px;
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.28);
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(32, 45, 82, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease);
}

.about-api-endpoint:hover {
  border-color: rgba(96, 122, 169, 0.5);
  box-shadow: 0 6px 16px rgba(32, 45, 82, 0.1);
  transform: translateY(-1px);
}

.about-api-method {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--white);
  background: var(--deep);
  border-radius: 7px;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-api-endpoint code {
  min-width: 0;
  overflow: hidden;
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-api-open {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 4px;
  color: var(--blue);
  font-size: 15px;
}

.about-api-fields {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-api-fields li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.about-api-fields li::before {
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 6px;
  height: 6px;
  content: '';
  background: var(--mist);
  border: 1px solid rgba(96, 122, 169, 0.5);
  border-radius: 50%;
}

.about-api-fields code,
.about-api-note code {
  padding: 1px 6px;
  color: var(--deep);
  background: rgba(223, 232, 245, 0.7);
  border-radius: 5px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.92em;
  white-space: nowrap;
}

.about-api-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.about-api-meta a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-api-meta a:hover {
  color: var(--deep);
}

/* ---------- 代码面板 ---------- */

.about-api-code {
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  background: #16213d;
  border: 1px solid rgba(24, 37, 68, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(22, 33, 61, 0.28);
}

.about-api-code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-api-dots {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}

.about-api-dots i {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.about-api-dots i:first-child {
  background: var(--coral);
}

.about-api-dots i:nth-child(2) {
  background: var(--mist);
}

.about-api-code-title {
  color: rgba(232, 238, 251, 0.66);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.about-api-copybtn {
  margin-left: auto;
  padding: 5px 11px;
  color: #e8eefb;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.about-api-copybtn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.about-api-copybtn.is-copied {
  color: #16213d;
  background: var(--coral);
  border-color: var(--coral);
}

.about-api-copy-status:empty {
  display: none;
}

.about-api-copy-status {
  margin: 0;
  padding: 8px 16px 0;
  color: #e8eefb;
  font-size: 12px;
}

.about-api-code pre {
  margin: 0;
  padding: 16px 16px 14px;
  overflow-x: auto;
  color: #dbe5f7;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  tab-size: 2;
}

.about-api-code pre code {
  font: inherit;
}

.about-api-note {
  margin: 0;
  padding: 11px 16px 14px;
  color: rgba(219, 229, 247, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  line-height: 1.7;
}

/* 双栏放不下时改成「说明在上、代码在下」，代码面板仍保持完整宽度 */
@media (max-width: 980px) {
  .about-api {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .about-api {
    margin-top: 28px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .tape-api {
    left: 26px;
    width: 88px;
  }

  .about-api-endpoint code {
    font-size: 11.5px;
  }

  .about-api-code pre {
    padding: 14px;
    font-size: 11.5px;
  }
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(288px, 340px);
  gap: 20px;
  align-items: start;
  padding-top: 38px;
}

.about-main,
.about-side {
  display: grid;
  gap: 20px;
}

/* 侧栏跟着滚动，读长文时入群入口一直在手边 */
.about-side {
  position: sticky;
  top: 104px;
}

.about-card {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.12);
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(32, 45, 82, 0.045);
  scroll-margin-top: 110px;
}

.about-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--deep);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* 标题前一小段竖线，代替加粗来分组 */
.about-card h2::before {
  width: 4px;
  height: 15px;
  flex: 0 0 auto;
  content: '';
  background: var(--blue);
  border-radius: 2px;
}

.about-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 13px;
}

.about-card-head h2 {
  margin: 0;
}

.about-badge {
  padding: 5px 11px;
  color: var(--deep);
  background: #edf2f9;
  border: 1px solid rgba(96, 122, 169, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.about-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.about-list li::before {
  position: absolute;
  top: 0.72em;
  left: 3px;
  width: 7px;
  height: 7px;
  content: '';
  background: var(--mist);
  border: 1px solid rgba(96, 122, 169, 0.45);
  border-radius: 50%;
}

.about-list strong {
  color: var(--deep);
  font-weight: 600;
}

.about-card .source-list {
  margin-bottom: 14px;
}

.about-card .about-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  font-size: 13px;
}

.about-card .about-author a {
  color: var(--blue);
  font-weight: 500;
}

.about-card .about-author a:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 入群卡：站点唯一一张带珊瑚粉描边的卡，因为它是这页的主要行动点 */
.about-qq {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  background: linear-gradient(172deg, #fdf6f6, var(--white) 46%);
  border-color: rgba(241, 199, 197, 0.62);
}

.about-qq::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: '';
  background: linear-gradient(90deg, var(--coral), var(--mist));
}

.about-qq > h2 {
  margin: 0;
}

.about-qq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px 9px 14px;
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.14);
  border-radius: 12px;
}

.about-qq-value {
  color: var(--deep);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.about-copy {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  color: #344f7d;
  background: #edf2f9;
  border: 1px solid rgba(96, 122, 169, 0.18);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.about-copy:hover {
  background: #e3ebf5;
}

.about-copy.is-copied {
  color: #376858;
  background: #e6f0ea;
  border-color: rgba(55, 104, 88, 0.24);
}

/* 状态行常驻高度：复制反馈出现时二维码不会跳一下 */
.about-status {
  min-height: 16px;
  margin: -8px 0 -4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.about-qr {
  display: grid;
  gap: 9px;
  width: 100%;
  justify-items: center;
  padding: 14px 14px 11px;
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.14);
  border-radius: 14px;
  transition: border-color 160ms ease, background 160ms ease;
}

.about-qr:hover {
  background: #fbfcfe;
  border-color: rgba(96, 122, 169, 0.28);
}

.about-qr img {
  display: block;
  width: 100%;
  max-width: 236px;
  height: auto;
  border-radius: 8px;
}

.about-qr-hint {
  color: var(--muted);
  font-size: 12px;
}

/* 二维码弹窗：首页与关于页共用同一份结构与逻辑 */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  visibility: hidden;
  padding: 20px;
  place-items: center;
  opacity: 0;
  transition: opacity 200ms var(--ease), visibility 200ms var(--ease);
}

.qr-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 25, 45, 0.76);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.qr-modal-panel {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(340px, 100%);
  max-height: calc(100dvh - 40px);
  justify-items: center;
  padding: 26px 24px 22px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(6, 12, 28, 0.25);
  transform: translateY(10px) scale(.99);
  transition: transform 200ms var(--ease);
}

.qr-modal.is-open .qr-modal-panel {
  transform: none;
}

.qr-modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--deep);
  background: #f2f5f9;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: background 160ms ease;
}

.qr-modal-close:hover {
  background: #e8edf5;
}

.qr-modal-badge {
  padding: 4px 10px;
  color: var(--deep);
  background: var(--coral);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.qr-modal-title {
  margin: 2px 0 0;
  color: var(--deep);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.qr-modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.qr-modal-code {
  display: grid;
  width: 100%;
  place-items: center;
  padding: 10px;
  background: var(--white);
  border: 1px solid rgba(96, 122, 169, 0.16);
  border-radius: 14px;
}

.qr-modal-code img {
  display: block;
  width: 100%;
  max-width: 228px;
  height: auto;
  border-radius: 6px;
}

.qr-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 9px 8px 14px;
  background: #f7f8fb;
  border: 1px solid rgba(96, 122, 169, 0.12);
  border-radius: 12px;
}

.qr-modal-number {
  color: var(--deep);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.qr-modal-status {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1060px) {
  /* 导航放不下三个按钮：优先留入群，弱化「去看看」 */
  .nav-action {
    display: none;
  }
}

@media (max-width: 940px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-side {
    position: static;
  }

  .about-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 2px 38px;
  }

  .about-art {
    justify-self: start;
    width: min(260px, 100%);
  }
}

@media (max-width: 700px) {
  .about-shell {
    padding-bottom: 96px;
  }

  .about-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .about-card {
    padding: 18px;
  }

  .about-feature {
    padding: 17px;
  }

  .about-card .about-author {
    gap: 4px 10px;
  }

  .qr-modal-panel {
    padding: 24px 18px 18px;
  }

  .nav-join {
    min-height: 42px;
    padding: 3px 13px 3px 3px;
    font-size: 12px;
  }

  .nav-join svg {
    width: 14px;
    height: 14px;
    padding: 8px;
  }

  /* 窄屏下大卡与两张窄卡都改成单列，图标和文字保持同行 */
  .entry-hub {
    gap: 14px;
    margin-bottom: 30px;
  }

  .entry-card-feature {
    min-height: 0;
    padding: 22px 20px;
  }

  .entry-card-compact {
    gap: 13px;
    padding: 15px 16px;
  }

  .entry-wave {
    width: 54%;
    opacity: 0.85;
  }
}

/* ==========================================================================
   角色立绘参考页（characters.html）
   卡片沿用表情墙的贴纸语言，但把编号、识别要点和 Q 版缩略图收进同一张
   档案卡里；查看器只加载当前这一张大图，翻页时再按需预取相邻角色。
   ========================================================================== */

/* 当前页做成实心贴纸：浅灰底看起来像卡住的悬停态，深蓝底才能一眼看出位置 */
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: var(--deep);
  box-shadow: 2px 3px 0 rgba(24, 37, 68, 0.22);
}

.nav-links a[aria-current="page"]:hover {
  color: var(--white);
  background: var(--deep);
}

.characters-shell {
  padding-bottom: 96px;
}

.character-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
  padding: 52px 2px 70px;
}

.character-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: '';
  background: repeating-linear-gradient(90deg, var(--deep) 0 16px, rgba(96, 122, 169, 0.25) 16px 28px);
  border-radius: 3px;
}

.character-hero-copy {
  position: relative;
  z-index: 2;
}

.character-hero .eyebrow {
  display: block;
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.character-hero h1 {
  margin: 0 0 20px;
  color: var(--deep);
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.character-lede {
  max-width: 30em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.character-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}

.character-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  transition: color 240ms var(--ease), transform 240ms var(--ease);
}

.character-hero-link:hover {
  color: var(--deep);
  transform: translateY(-1px);
}

/* 右侧的“档案规格卡”：纯 CSS 纸片堆叠，不额外下载图片 */
.character-hero-deck {
  position: relative;
  width: min(100%, 350px);
  min-height: 344px;
  justify-self: center;
}

.deck-card {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 24px 33px 26px 35px;
}

.deck-card-back {
  background: var(--mist);
  border: 4px solid var(--white);
  box-shadow: 7px 8px 0 var(--sticker-shadow), 0 18px 34px rgba(32, 45, 82, 0.1);
  transform: rotate(-6deg) translate(-13px, 14px);
}

.deck-card-mid {
  background: var(--coral);
  border: 4px solid var(--white);
  box-shadow: 7px 8px 0 var(--sticker-shadow), 0 18px 34px rgba(32, 45, 82, 0.1);
  transform: rotate(4deg) translate(12px, -8px);
}

.deck-card-front {
  position: relative;
  inset: auto;
  display: flex;
  min-height: 344px;
  flex-direction: column;
  padding: 27px 25px 23px;
  background: var(--white);
  border: 4px solid var(--white);
  box-shadow: 8px 10px 0 var(--sticker-shadow), 0 26px 48px rgba(32, 45, 82, 0.15);
  transform: rotate(-1.5deg);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}

.character-hero-deck:hover .deck-card-front {
  box-shadow: 5px 7px 0 var(--sticker-shadow), 0 32px 58px rgba(32, 45, 82, 0.18);
  transform: rotate(0deg) translateY(-6px);
}

.deck-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 23px;
  background: var(--tape-coral);
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.48) 0 5px, rgba(255, 255, 255, 0) 5px 10px);
  box-shadow: 0 3px 7px rgba(32, 45, 82, 0.14);
  clip-path: polygon(3% 2%, 97% 0, 100% 46%, 96% 100%, 4% 98%, 0 52%);
  transform: translateX(-50%) rotate(-3deg);
}

.deck-eyebrow {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.deck-stamp {
  position: absolute;
  top: 19px;
  right: 19px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--blue);
  border: 3px dashed rgba(96, 122, 169, 0.45);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.9;
  transform: rotate(9deg);
}

.deck-stats {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.deck-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(96, 122, 169, 0.22);
}

.deck-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.deck-stats dd {
  margin: 0;
  color: var(--deep);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.deck-stats dd small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.deck-divider {
  height: 3px;
  margin: 17px 0 14px;
  background: repeating-linear-gradient(90deg, var(--deep) 0 12px, transparent 12px 22px);
  border-radius: 3px;
  opacity: 0.32;
}

.deck-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.character-roster {
  position: relative;
  padding: 70px 0 0;
  scroll-margin-top: 104px;
}

.character-roster::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: '';
  background: repeating-linear-gradient(90deg, var(--deep) 0 16px, rgba(96, 122, 169, 0.25) 16px 28px);
  border-radius: 3px;
}

.character-roster .eyebrow {
  display: block;
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.character-hint {
  max-width: 62ch;
  margin: -4px 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

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

.character-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 13px 13px 15px;
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 21px 28px 23px 30px;
  box-shadow: 6px 7px 0 var(--sticker-shadow), 0 16px 30px rgba(32, 45, 82, 0.1);
  transform: rotate(var(--tilt, -0.45deg));
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}

.character-card:nth-child(2n) {
  --tilt: 0.5deg;
  border-radius: 28px 20px 30px 22px;
}

.character-card:nth-child(3n) {
  --tilt: -0.2deg;
}

.character-card:nth-child(4n) {
  --tilt: 0.7deg;
}

.character-card:hover,
.character-card:focus-within {
  z-index: 1;
  box-shadow: 3px 4px 0 var(--sticker-shadow), 0 26px 46px rgba(32, 45, 82, 0.19);
  transform: rotate(0deg) translateY(-8px);
}

.character-card::before {
  position: absolute;
  top: -1px;
  right: 18px;
  left: 18px;
  height: 5px;
  content: '';
  background: linear-gradient(90deg, var(--character-accent, var(--blue)), rgba(96, 122, 169, 0) 82%);
  border-radius: 0 0 4px 4px;
  opacity: 0.9;
}

.character-tape {
  position: absolute;
  z-index: 2;
  top: -11px;
  left: 24px;
  width: 72px;
  height: 19px;
  background: var(--tape-mist);
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0 4px, rgba(255, 255, 255, 0) 4px 9px);
  box-shadow: 0 2px 5px rgba(32, 45, 82, 0.13);
  clip-path: polygon(3% 2%, 97% 0, 100% 46%, 96% 100%, 4% 98%, 0 52%);
  transform: rotate(-5deg);
}

.character-card:nth-child(2n) .character-tape {
  right: 22px;
  left: auto;
  background-color: var(--tape-coral);
  transform: rotate(4deg);
}

.character-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 12px;
}

.character-no {
  flex: 0 0 auto;
  color: var(--character-accent, var(--blue));
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.character-name {
  min-width: 0;
  margin: 0;
  color: var(--deep);
  font-family: var(--round);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.character-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.character-download {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  color: var(--deep);
  background: #edf2f9;
  border: 1px solid rgba(96, 122, 169, 0.16);
  border-radius: 10px;
  transition: background 220ms var(--ease), transform 220ms var(--ease), border-color 220ms var(--ease);
}

.character-download:hover {
  background: var(--coral);
  border-color: rgba(241, 199, 197, 0.9);
  transform: translateY(-2px);
}

.character-download svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.character-stage {
  position: relative;
}

.character-art {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 14px 20px 16px 22px;
  box-shadow: inset 0 0 0 1px rgba(96, 122, 169, 0.09);
}

.character-art img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  transition: transform 700ms var(--ease);
}

.character-card:hover .character-art img,
.character-card:focus-within .character-art img {
  transform: scale(1.025);
}

.character-zoom {
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  padding: 5px 9px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 8px 11px 9px 12px;
  box-shadow: 2px 3px 0 rgba(24, 37, 68, 0.16);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
  pointer-events: none;
}

.character-art:hover .character-zoom,
.character-art:focus-visible .character-zoom {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .character-zoom {
    opacity: 1;
    transform: none;
  }
}

.character-chibi {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  display: block;
  width: 76px;
  padding: 4px 4px 3px;
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 10px 14px 11px 15px;
  box-shadow: 3px 4px 0 var(--sticker-shadow), 0 8px 18px rgba(32, 45, 82, 0.18);
  transform: rotate(3deg);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.character-chibi:hover,
.character-chibi:focus-visible {
  box-shadow: 2px 3px 0 var(--sticker-shadow), 0 12px 24px rgba(32, 45, 82, 0.22);
  transform: rotate(-2deg) translateY(-4px) scale(1.05);
}

.character-chibi img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 6px 9px 7px 10px;
}

.character-chibi span {
  display: block;
  margin-top: 3px;
  color: var(--deep);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
}

.character-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 0;
  padding-top: 12px;
}

.character-tags span {
  padding: 3px 8px;
  color: var(--muted);
  background: #f1f5fa;
  border: 1px solid rgba(96, 122, 169, 0.12);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.character-tags span:first-child {
  color: var(--deep);
  background: color-mix(in srgb, var(--character-accent, var(--blue)) 13%, white);
  border-color: color-mix(in srgb, var(--character-accent, var(--blue)) 26%, white);
}

.character-art:focus-visible,
.character-chibi:focus-visible,
.character-download:focus-visible,
.viewer-close:focus-visible,
.viewer-nav:focus-visible,
.viewer-tabs button:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 3px;
}

/* ---------- 立绘查看器 ---------- */

.character-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  visibility: hidden;
  padding: 22px;
  place-items: center;
  opacity: 0;
  transition: opacity 340ms var(--ease), visibility 340ms var(--ease);
}

.character-viewer.is-open {
  visibility: visible;
  opacity: 1;
}

.character-viewer-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 4%, rgba(96, 122, 169, 0.32), transparent 58%),
    rgba(22, 33, 61, 0.88);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.character-viewer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  width: min(1120px, 100%);
  max-height: min(90vh, 860px);
  overflow: hidden;
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 24px 32px 26px 34px;
  box-shadow: 10px 12px 0 rgba(12, 20, 42, 0.56), 0 45px 100px rgba(6, 12, 28, 0.4);
  transform: translateY(22px) rotate(-0.6deg) scale(0.985);
  transition: transform 440ms var(--ease);
}

.character-viewer.is-open .character-viewer-panel {
  transform: translateY(0) rotate(0deg) scale(1);
}

.viewer-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--deep);
  background: var(--coral);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 3px 4px 0 var(--sticker-shadow);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transition: transform 280ms var(--ease), background 280ms var(--ease);
}

.viewer-close:hover {
  background: var(--mist);
  transform: rotate(90deg);
}

.viewer-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 20px 48px;
  overflow: hidden;
  background: #fff;
}

.viewer-tape {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 112px;
  height: 22px;
  background: var(--tape-mist);
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0 4px, rgba(255, 255, 255, 0) 4px 9px);
  box-shadow: 0 2px 5px rgba(32, 45, 82, 0.13);
  clip-path: polygon(3% 2%, 97% 0, 100% 46%, 96% 100%, 4% 98%, 0 52%);
  opacity: 0.9;
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}

.viewer-media {
  display: grid;
  width: 100%;
  min-height: 0;
  place-items: center;
}

.viewer-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(76vh, 760px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

.viewer-media img.is-ready {
  opacity: 1;
}

.viewer-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 3px 4px 0 rgba(24, 37, 68, 0.32);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.viewer-nav:hover {
  background: var(--coral);
  box-shadow: 1px 2px 0 rgba(24, 37, 68, 0.32);
  transform: translateY(-50%) scale(0.96);
}

.viewer-prev {
  left: 8px;
}

.viewer-next {
  right: 8px;
}

.viewer-info {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 13px;
  padding: 28px 25px 22px;
  overflow-y: auto;
  background: linear-gradient(180deg, #fbfcfe, var(--white));
  border-left: 1px solid rgba(96, 122, 169, 0.13);
}

.viewer-kicker {
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.viewer-info h2 {
  margin: 0;
  color: var(--deep);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.viewer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  background: #edf2f9;
  border-radius: 12px;
}

.viewer-tabs button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  transition: color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}

.viewer-tabs button:hover {
  color: var(--deep);
}

.viewer-tabs button[aria-pressed="true"] {
  color: var(--white);
  background: var(--deep);
  box-shadow: 2px 3px 0 rgba(24, 37, 68, 0.18);
}

.viewer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.viewer-tags span {
  padding: 4px 9px;
  color: var(--deep);
  background: #f1f5fa;
  border: 1px solid rgba(96, 122, 169, 0.14);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}

.viewer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.viewer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto;
  padding-top: 8px;
}

.viewer-actions .action-button {
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}

.viewer-actions .action-button.is-copied {
  background: var(--blue);
}

.viewer-info .action-status {
  margin: 0;
  min-height: 14px;
}

.viewer-hint {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0.75;
}

@media (max-width: 1180px) {
  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .character-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 38px 2px 52px;
  }

  .character-hero-deck {
    width: 100%;
    min-height: 0;
  }

  .deck-card-back,
  .deck-card-mid,
  .deck-eyebrow,
  .deck-divider,
  .deck-note,
  .deck-stamp,
  .deck-tape {
    display: none;
  }

  .deck-card-front {
    min-height: 0;
    padding: 15px 17px;
    transform: none;
  }

  .character-hero-deck:hover .deck-card-front {
    transform: none;
  }

  .deck-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .deck-stats div {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px 0 0;
    border-right: 1px dashed rgba(96, 122, 169, 0.22);
    border-bottom: 0;
  }

  .deck-stats div:last-child {
    border-right: 0;
  }

  .deck-stats dd {
    margin-top: 5px;
    font-size: 22px;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-viewer {
    padding: 12px;
  }

  .character-viewer-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 92dvh;
    border-radius: 20px;
  }

  .viewer-stage {
    padding: 16px 42px 10px;
  }

  .viewer-media img {
    max-height: 48dvh;
  }

  .viewer-info {
    gap: 11px;
    padding: 17px 18px 20px;
    border-top: 1px solid rgba(96, 122, 169, 0.13);
    border-left: 0;
  }

  .viewer-info h2 {
    font-size: 24px;
  }

  .viewer-nav {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .viewer-prev {
    left: 4px;
  }

  .viewer-next {
    right: 4px;
  }

  .viewer-hint {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 9px;
  }
}

@media (max-width: 700px) {
  .characters-shell {
    padding-bottom: 80px;
  }

  .character-hero {
    padding: 28px 2px 44px;
  }

  .character-hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.3rem);
  }

  .character-lede {
    font-size: 14px;
  }

  .character-roster {
    padding-top: 52px;
  }

  .character-hint {
    font-size: 12px;
  }

  .character-chibi {
    width: 64px;
  }
}

@media (max-width: 560px) {
  .character-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .character-grid .character-card {
    --tilt: 0deg;
  }

  .character-chibi {
    width: 76px;
  }

  .character-viewer {
    padding: 6px;
  }

  .character-viewer-panel {
    max-height: 96dvh;
    border-width: 3px;
    border-radius: 17px;
  }

  .viewer-stage {
    padding: 10px 32px 6px;
  }

  .viewer-media img {
    max-height: 50dvh;
  }

  .viewer-nav {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .viewer-close {
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }

  /* 窄屏把信息区压紧，把高度让给立绘本身 */
  .viewer-info {
    gap: 8px;
    padding: 12px 14px 14px;
  }

  .viewer-kicker {
    font-size: 8.5px;
  }

  .viewer-info h2 {
    font-size: 21px;
  }

  .viewer-tabs {
    padding: 3px;
  }

  .viewer-tabs button {
    min-height: 34px;
  }

  .viewer-tags {
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .viewer-tags::-webkit-scrollbar {
    display: none;
  }

  .viewer-tags span {
    flex: 0 0 auto;
    padding: 3px 8px;
    font-size: 10px;
  }

  .viewer-meta {
    display: none;
  }

  .viewer-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 2px;
  }

  .viewer-actions .action-button {
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }

  .viewer-actions .action-button svg {
    width: 15px;
    height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .character-card,
  .character-card:hover,
  .character-card:focus-within,
  .character-card:hover .character-art img,
  .character-card:focus-within .character-art img,
  .character-chibi,
  .character-chibi:hover,
  .character-chibi:focus-visible,
  .character-hero-deck:hover .deck-card-front {
    transform: none;
  }
}

/* ==========================================================================
   首页 hero 增强：快捷入口、热门标签、档案卡，以及导航里的手册高亮
   ========================================================================== */

/* 导航常驻高亮：手册是新板块，需要比普通文字链接更容易被注意到 */
.nav-links a.is-featured {
  position: relative;
  padding: 7px 16px;
  color: var(--deep);
  background: var(--coral);
  border-radius: 999px;
  box-shadow: 2px 3px 0 rgba(24, 37, 68, 0.22);
  transform: rotate(-1.5deg);
  transition: color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.nav-links a.is-featured::after {
  position: absolute;
  top: -8px;
  right: -9px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  content: "新";
  color: var(--deep);
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: 50%;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(6deg);
}

.nav-links a.is-featured:hover {
  color: var(--deep);
  background: #f6bab7;
  box-shadow: 3px 5px 0 rgba(24, 37, 68, 0.2);
  transform: rotate(-1.5deg) translateY(-2px);
}

.nav-links a.is-featured[aria-current="page"] {
  color: var(--white);
  background: var(--deep);
  box-shadow: 2px 3px 0 rgba(24, 37, 68, 0.28);
}

.nav-links a.is-featured[aria-current="page"]::after {
  color: var(--white);
  background: var(--coral);
  border-color: var(--white);
}

/* hero 操作区：主按钮 + 随机入口 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-random {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.78);
  border: 3px solid var(--white);
  border-radius: 12px 17px 13px 16px;
  box-shadow: 4px 5px 0 rgba(32, 45, 82, 0.17);
  font-size: 13px;
  font-weight: 800;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 350ms var(--ease);
}

.hero-random svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-random:hover {
  background: var(--white);
  box-shadow: 2px 3px 0 var(--sticker-shadow);
  transform: translate(2px, 2px) rotate(-1deg);
}

.hero-random[hidden],
.hero-tags[hidden] {
  display: none;
}

/* hero 热门标签：直接从 manifest 里取数量最多的几个 */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags button {
  padding: 5px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 2px 3px 0 rgba(32, 45, 82, 0.1);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  transition: color 200ms ease, background 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease;
}

.hero-tags button:hover {
  color: var(--deep);
  background: var(--white);
  box-shadow: 2px 4px 0 rgba(32, 45, 82, 0.14);
  transform: translateY(-2px);
}

/* 右侧档案卡：数量、规格、来源和授权收进同一张卡 */
.archive-panel {
  position: relative;
  align-self: center;
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 3px solid var(--white);
  border-radius: 18px 24px 16px 22px;
  box-shadow: 6px 7px 0 rgba(32, 45, 82, 0.16), 0 18px 34px rgba(32, 45, 82, 0.08);
  transform: rotate(0.8deg);
}

.archive-tape {
  position: absolute;
  top: -11px;
  right: 26px;
  width: 76px;
  height: 22px;
  background: var(--tape-coral);
  border-radius: 3px;
  transform: rotate(4deg);
}

.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.archive-head h2 {
  margin: 0;
  color: var(--deep);
  font-family: var(--round);
  font-size: 18px;
  font-weight: 900;
}

.archive-stamp {
  padding: 3px 8px;
  color: var(--deep);
  background: var(--mist);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(-4deg);
}

.archive-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}

.archive-specs > div {
  padding: 9px 10px;
  background: rgba(223, 232, 245, 0.55);
  border-radius: 10px;
}

.archive-specs dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.archive-specs dd {
  margin: 0;
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.archive-specs b {
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.archive-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.archive-panel .source-card {
  min-height: 58px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 2px 3px 0 rgba(32, 45, 82, 0.12);
}

.archive-panel .license-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(22, 33, 61, 0.12);
  font-size: 11px;
  line-height: 1.7;
}

@media (max-width: 1060px) {
  .hero-actions {
    gap: 10px;
  }

  .hero-cta,
  .hero-random {
    padding-inline: 14px;
    font-size: 12px;
  }

  .hero-cta {
    gap: 10px;
  }

  .cta-arrow {
    width: 27px;
    height: 27px;
    font-size: 17px;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags button {
    padding: 4px 10px;
    font-size: 11px;
  }
}

@media (max-width: 1060px) {
  .archive-panel {
    display: block;
    grid-column: 1 / -1;
    justify-self: end;
    width: min(100%, 460px);
    margin-top: 6px;
  }
}

@media (max-width: 700px) {
  .hero-actions {
    gap: 10px;
  }

  .hero-random {
    padding: 0 13px;
    font-size: 12px;
  }

  .hero-tags {
    margin-top: 18px;
  }

  .archive-panel {
    width: 100%;
    margin-top: 14px;
  }

  .archive-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
