/*
 * 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: 14px;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* 两个社交图标做成品牌色小贴纸:白底时用品牌色线条,悬停整块翻成品牌色 */
.nav-social-link {
  --link-brand: var(--deep);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--link-brand);
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 10px 13px 9px 12px;
  box-shadow: 3px 4px 0 var(--sticker-shadow);
  transition: color 300ms var(--ease), background 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

/* 哔哩哔哩粉,压深一点保证白底上看得清 */
.nav-social-link:first-child {
  --link-brand: #ea5c8c;
  transform: rotate(-5deg);
}

.nav-social-link:last-child {
  --link-brand: #24292f;
  transform: rotate(5deg);
}

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

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

.nav-social-link:hover {
  color: var(--white);
  background: var(--link-brand);
  box-shadow: 1px 2px 0 var(--sticker-shadow);
  transform: translate(2px, 2px) rotate(0deg) scale(1.03);
}

.nav-social-link:hover svg {
  transform: rotate(-7deg) scale(1.06);
}

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

.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;
  padding: 8px 9px 8px 16px;
  color: var(--white);
  background: var(--deep);
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 4px 5px 0 var(--sticker-shadow);
  font-size: 11px;
  font-weight: 800;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background 300ms var(--ease);
}

.nav-action span:last-child {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--deep);
  background: var(--mist);
  border-radius: 50%;
  font-size: 15px;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}

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

.nav-action:hover span:last-child {
  background: var(--white);
  transform: translateY(2px);
}

.nav-action:active,
.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::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;
  }

  .nav-social-link {
    width: 28px;
    height: 28px;
    border-width: 2px;
    box-shadow: 2px 3px 0 var(--sticker-shadow);
  }

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

  .nav-action {
    padding-left: 13px;
    font-size: 10px;
  }

  .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);
  }
}
