/* ============================================================
   八爪桌宠 OctoPal · 浅蓝波点清新视觉系统（匹配官方形象）
   ============================================================ */

:root {
  --bg-top: #eaf7ff;
  --bg-mid: #def2fc;
  --bg-bottom: #d2ecfa;
  --card: rgba(255, 255, 255, .78);
  --card-solid: #ffffff;
  --stroke: #d8ecf9;
  --stroke-strong: #c4e0f3;
  --text: #17364d;
  --text-dim: #5a7d99;
  --pink: #2f9de0;
  --pink-deep: #1f7ec0;
  --pink-soft: #bde4f7;
  --sky: #2f9de0;
  --sky-deep: #1f7ec0;
  --sky-light: #8fd4f2;
  --gold: #f2a93b;
  --cream: #f6e3c5;
  --navy: #2b3a55;
  --font-display: 'ZCOOL KuaiLe', 'Baloo 2', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-latin: 'Baloo 2', var(--font-body);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  background: var(--bg-bottom);
}

/* 固定背景改用伪元素层（GPU 合成），替代 background-attachment:fixed 消除滚动重绘卡顿 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 25%, rgba(143, 212, 242, .18) 3px, transparent 3.6px),
    radial-gradient(circle at 75% 75%, rgba(143, 212, 242, .12) 2px, transparent 2.6px),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, .8), transparent 55%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
  background-size: 76px 76px, 52px 52px, auto, auto;
}

/* 细腻噪点 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--pink); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #e4f2fb; }
::-webkit-scrollbar-thumb { background: #a8d4ef; border-radius: 99px; border: 2px solid #e4f2fb; }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px dashed var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 48px); }

main { position: relative; z-index: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  padding: 13px 26px;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px) scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, #5cb8ea, var(--pink));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 157, 224, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(47, 157, 224, .5), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.btn-ghost {
  border: 1.5px solid var(--stroke-strong);
  color: var(--text);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--sky);
  color: var(--sky-deep);
  box-shadow: 0 10px 26px rgba(47, 157, 224, .18);
}

.btn-sm { padding: 9px 20px; font-size: .95rem; }
.btn-lg { padding: 16px 32px; font-size: 1.12rem; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  padding: 9px 0;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--stroke), 0 10px 30px rgba(47, 157, 224, .1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-octo { width: 38px; height: 38px; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); filter: drop-shadow(0 3px 6px rgba(23, 54, 77, .18)); }
.logo:hover .logo-octo { transform: rotate(-12deg) scale(1.12); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .05em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--text);
}
.logo-text em {
  font-family: var(--font-latin);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .42em;
  color: var(--sky);
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: .98rem;
  color: var(--text-dim);
  position: relative;
  transition: color .25s;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 3px;
  border-radius: 99px;
  background: var(--pink);
  transform: translateX(-50%);
  transition: width .3s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 70%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 70%; }

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

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
}
.nav-burger span {
  width: 22px; height: 2.5px;
  border-radius: 99px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: fixed;
  top: 68px; left: 16px; right: 16px;
  z-index: 99;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 10px;
  flex-direction: column;
  box-shadow: 0 24px 50px rgba(47, 157, 224, .16);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.nav-menu a {
  padding: 13px 18px;
  border-radius: 12px;
  font-family: var(--font-display);
  letter-spacing: .06em;
  color: var(--text-dim);
  transition: background .2s, color .2s;
}
.nav-menu a:hover { background: rgba(47, 157, 224, .1); color: var(--text); }
.nav.open .nav-menu { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 150px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  font-size: .88rem;
  color: var(--text-dim);
  box-shadow: 0 4px 14px rgba(47, 157, 224, .08);
  transition: border-color .3s, color .3s, transform .3s;
}
.hero-badge:hover { border-color: var(--pink); color: var(--text); transform: translateY(-2px); }
.hero-badge svg { width: 15px; height: 15px; color: var(--pink); }
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(47, 157, 224, .5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(47, 157, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 157, 224, 0); }
}

/* 玩具立体字 */
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 9.5vw, 7.8rem);
  line-height: 1.05;
  margin: 22px 0 8px;
  user-select: none;
}
.hero-title .char {
  display: inline-block;
  transform: rotate(var(--rot));
  animation: charIn .8s cubic-bezier(.34, 1.56, .64, 1) backwards;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.hero-title .char:hover { transform: rotate(var(--rot)) scale(1.12) translateY(-6px); }
.c1 { color: var(--sky); animation-delay: .05s; text-shadow: 0 4px 0 #cfe9f8, 0 16px 32px rgba(47, 157, 224, .3); }
.c2 { color: #7ec8e3; animation-delay: .14s; text-shadow: 0 4px 0 #d8edfb, 0 16px 32px rgba(126, 200, 227, .32); }
.c3 { color: var(--gold); animation-delay: .23s; text-shadow: 0 4px 0 #fbe8c4, 0 16px 32px rgba(242, 169, 59, .28); }
.c4 { color: #3d6ea8; animation-delay: .32s; text-shadow: 0 4px 0 #d9e7f4, 0 16px 32px rgba(61, 110, 168, .3); }

@keyframes charIn {
  0% { opacity: 0; transform: translateY(60px) scale(.5) rotate(var(--rot)); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--rot)); }
}

.hero-latin {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.14rem;
  color: var(--text-dim);
  max-width: 32em;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  padding-top: 26px;
  border-top: 1.5px dashed var(--stroke-strong);
}
.stat { display: flex; align-items: center; gap: 11px; }
.stat svg { width: 21px; height: 21px; color: var(--gold); }
.stat b {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--text);
  letter-spacing: .01em;
}
.stat span { font-size: .82rem; color: var(--text-dim); display: block; line-height: 1.3; }
.stat div { display: flex; flex-direction: column; }

/* --- 官方形象舞台 --- */
.hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
}

.octo-glow {
  position: absolute;
  top: 4%; left: 50%;
  width: 118%; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(143, 212, 242, .4), transparent 62%);
  pointer-events: none;
}

.octo-wrap {
  position: relative;
  z-index: 2;
  animation: floaty 4.6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.octopus-btn { display: block; cursor: pointer; }
.octopus {
  width: min(520px, 80vw);
  aspect-ratio: 1;
  filter: drop-shadow(0 26px 46px rgba(47, 157, 224, .3));
  user-select: none;
  transition: filter .3s;
}
.octopus-btn:hover .octopus {
  filter: drop-shadow(0 32px 60px rgba(47, 157, 224, .42));
}

/* 戳一戳 Q 弹 */
.octopus.squish { animation: squish .5s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 88%; }
@keyframes squish {
  0% { transform: scale(1, 1); }
  28% { transform: scale(1.1, .86); }
  55% { transform: scale(.93, 1.08); }
  75% { transform: scale(1.04, .96); }
  100% { transform: scale(1, 1); }
}

.octo-shadow {
  width: 52%;
  height: 28px;
  margin-top: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47, 130, 190, .28), transparent 68%);
  animation: shadowPulse 4.6s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: .9; }
  50% { transform: scaleX(.8); opacity: .55; }
}

/* 对话气泡 */
.speech {
  position: absolute;
  top: 7%;
  right: 3%;
  z-index: 3;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: .05em;
  font-size: 1.02rem;
  padding: 11px 20px;
  border-radius: 20px 20px 20px 4px;
  border: 1.5px solid var(--pink-soft);
  box-shadow: 0 10px 26px rgba(47, 157, 224, .2);
  opacity: 0;
  transform: translateY(8px) scale(.7);
  transform-origin: bottom left;
  transition: opacity .28s, transform .32s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.speech.show { opacity: 1; transform: translateY(0) scale(1); }

.hero-hint {
  margin-top: 16px;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  opacity: .85;
}

/* 首屏海浪（白泡沫） */
.hero .waves {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: clamp(60px, 9vw, 110px);
  pointer-events: none;
}
.hero .waves path { fill: rgba(255, 255, 255, .5); }
.hero .waves path:nth-child(2) { fill: rgba(255, 255, 255, .35); }
.hero .waves path:nth-child(3) { fill: rgba(255, 255, 255, .65); }

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(4px);
  padding: 15px 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .14em;
  color: var(--text-dim);
}
.marquee-track i {
  font-style: normal;
  color: var(--pink);
  margin: 0 1.4em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 区块通用 ---------- */
.section { padding: 108px 0; position: relative; }

.sec-head { text-align: center; max-width: 620px; margin: 0 auto 58px; }
.sec-tag {
  display: inline-block;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--sky-deep);
  border: 1px solid rgba(47, 157, 224, .3);
  border-radius: 999px;
  padding: 6px 16px 6px 20px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, .7);
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: .05em;
  margin-bottom: 14px;
}
.sec-sub { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- 功能 Bento ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bento {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(47, 157, 224, .07);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .35s, box-shadow .35s;
}
.bento:hover {
  transform: translateY(-6px);
  border-color: var(--pink-soft);
  box-shadow: 0 20px 44px rgba(47, 157, 224, .16), 0 6px 18px rgba(47, 157, 224, .1);
}
.b-lg { grid-column: span 2; }

.bento-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--sky-deep);
  background: rgba(143, 212, 242, .22);
  border: 1px solid rgba(47, 157, 224, .18);
  margin-bottom: 18px;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s, border-color .3s;
}
.bento-icon svg { width: 24px; height: 24px; }
.bento:hover .bento-icon {
  transform: rotate(-8deg) scale(1.1);
  background: rgba(47, 157, 224, .12);
  color: var(--pink);
  border-color: var(--pink-soft);
}

.bento h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.32rem;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.bento p { color: var(--text-dim); font-size: .96rem; }

.bento-scene { margin-top: auto; padding-top: 18px; }
.bento-scene svg { width: 100%; max-width: 340px; height: auto; margin-inline: auto; }
.scene-clock {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 13px;
  fill: var(--text-dim);
  letter-spacing: .08em;
}

/* ---------- 模式图鉴 ---------- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 920px;
  margin-inline: auto;
}
.mood-card {
  text-align: center;
  padding: 34px 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(47, 157, 224, .07);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .35s, box-shadow .35s;
}
.mood-card:hover {
  transform: translateY(-7px) rotate(-.6deg);
  border-color: rgba(47, 157, 224, .4);
  box-shadow: 0 20px 44px rgba(47, 157, 224, .16);
}
.mood-octo {
  width: 108px; height: 126px;
  margin: 0 auto 14px;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(23, 54, 77, .14));
}
.mood-card .mini-tents path {
  transform-box: fill-box;
  transition: transform .3s;
}
.mood-card:hover .mini-tents path { animation: miniWiggle .65s ease-in-out; }
@keyframes miniWiggle {
  35% { transform: translateY(4px); }
  70% { transform: translateY(-2px); }
}

.mood-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .12em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.mood-card h3 em {
  font-family: var(--font-latin);
  font-style: normal;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--sky);
}
.mood-card p { font-size: .93rem; color: var(--text-dim); }

.svg-zzz {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 15px;
  fill: var(--sky-deep);
}
.svg-q {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 19px;
  fill: var(--gold);
}

/* ---------- 上手指南 ---------- */
.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 9%; right: 9%;
  border-top: 2px dashed rgba(47, 157, 224, .3);
}
.step {
  position: relative;
  background: var(--card-solid);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 6px 22px rgba(47, 157, 224, .07);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .35s, box-shadow .35s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(242, 169, 59, .5); box-shadow: 0 20px 44px rgba(47, 157, 224, .14); }

.step-num {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 4.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(47, 157, 224, .6);
  display: block;
  margin-bottom: 14px;
}
.step-num.n2 { -webkit-text-stroke-color: rgba(47, 157, 224, .55); }
.step-num.n3 { -webkit-text-stroke-color: rgba(242, 169, 59, .6); }

.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.step p { color: var(--text-dim); font-size: .96rem; }

/* ---------- 下载 ---------- */
#download { overflow: hidden; }

.dl-card {
  position: relative;
  border-radius: 30px;
  padding: 1.5px;
  background: linear-gradient(120deg, rgba(47, 157, 224, .6), rgba(47, 157, 224, .55), rgba(242, 169, 59, .5));
  box-shadow: 0 30px 80px rgba(47, 157, 224, .2);
}
.dl-card::before {
  content: '';
  position: absolute;
  inset: -70px -30px;
  background: radial-gradient(600px 300px at 70% 30%, rgba(143, 212, 242, .35), transparent 65%);
  pointer-events: none;
}

.dl-inner {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(150deg, #ffffff, #ecf7ff 75%);
  padding: clamp(36px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.dl-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  letter-spacing: .05em;
  margin: 6px 0 14px;
}
.dl-copy > p { color: var(--text-dim); max-width: 26em; }

.dl-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 26px;
}
.dl-meta li {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: .85rem;
  color: var(--sky-deep);
  border: 1px solid rgba(47, 157, 224, .3);
  background: rgba(143, 212, 242, .14);
  border-radius: 999px;
  padding: 5px 15px;
  letter-spacing: .04em;
}

.dl-actions { display: flex; flex-direction: column; gap: 15px; }
.dl-actions .btn { justify-content: center; }
.dl-log {
  text-align: center;
  font-size: .9rem;
  color: var(--text-dim);
  margin: 6px 0 0;
}

/* 小鱼彩蛋 */
.dl-fish {
  position: absolute;
  right: -14px;
  top: -18px;
  width: 84px;
  pointer-events: none;
  animation: fishSwim 5.5s ease-in-out infinite;
}
.fish { width: 100%; overflow: visible; }
.fish-bubble { animation: fishBubble 3s ease-out infinite; }
@keyframes fishSwim {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(-16px, 7px) rotate(3deg); }
}
@keyframes fishBubble {
  0% { transform: translateY(0); opacity: .7; }
  100% { transform: translateY(-26px); opacity: 0; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(47, 157, 224, .06);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.faq[open] { border-color: var(--pink-soft); box-shadow: 0 12px 30px rgba(47, 157, 224, .12); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: .05em;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq[open] summary { color: var(--pink); }
.plus {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--stroke-strong);
  color: var(--text-dim);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .3s, color .3s;
}
.plus::before, .plus::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  border-radius: 99px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .plus { transform: rotate(135deg); border-color: var(--pink); color: var(--pink); }
.faq-body { padding: 0 26px 22px; color: var(--text-dim); font-size: .98rem; }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(198, 228, 247, .55) 40%, rgba(186, 222, 245, .75));
  border-top: 1px solid var(--stroke);
}
.footer .waves {
  position: absolute;
  top: -2px; left: 0; right: 0;
  width: 100%;
  height: clamp(50px, 7vw, 90px);
  transform: scaleY(-1);
  pointer-events: none;
}
.footer .waves path { fill: rgba(255, 255, 255, .5); }
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 40px;
  padding: 86px 0 50px;
}
.footer-brand p { color: var(--text-dim); font-size: .93rem; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.footer-col a { color: var(--text-dim); font-size: .93rem; width: fit-content; transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--pink); transform: translateX(4px); }

.footer-bar { border-top: 1px solid var(--stroke-strong); padding: 20px 0; }
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .85rem;
  color: var(--text-dim);
}
.footer-github { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.footer-github svg { width: 19px; height: 19px; }
.footer-github:hover { color: var(--text); }

/* ---------- 漂浮气泡 & 爱心 ---------- */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .75), rgba(255, 255, 255, .06) 62%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(143, 212, 242, .12) inset;
  animation: rise var(--d, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  8% { opacity: var(--o, .55); }
  88% { opacity: var(--o, .55); }
  100% { transform: translate(var(--drift, 30px), -116vh) scale(1.06); opacity: 0; }
}

.heart {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  color: var(--pink);
  animation: heartFloat 1.15s ease-out forwards;
}
.heart svg { width: 100%; height: 100%; }
@keyframes heartFloat {
  0% { transform: translate(0, 0) scale(.3) rotate(var(--hr, 0deg)); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translate(var(--hx, 0px), -95px) scale(1) rotate(var(--hr, 0deg)); opacity: 0; }
}

/* ---------- 滚动显现 ---------- */
html:not(.no-js) [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.22, .8, .32, 1);
  transition-delay: var(--rd, 0s);
}
html:not(.no-js) [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { padding: 120px 0 120px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badge { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-stage { margin-top: 26px; }
  .speech { right: 12%; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .dl-inner { grid-template-columns: 1fr; gap: 32px; }
  .dl-copy > p { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 70px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-menu { display: flex; }
  .section { padding: 78px 0; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .b-lg { grid-column: auto; }
  .mood-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px 26px; }
  .footer-bar-inner { flex-direction: column; gap: 8px; }
  .dl-fish { display: none; }
  .octopus { width: 92vw; }
}

/* ============================================================
   账号 / 作品工坊（注册登录 · 上传 · 工坊展示）
   ============================================================ */

/* ---------- 导航用户胶囊 + 下拉菜单 ---------- */
.user-chip { position: relative; display: flex; align-items: center; gap: 6px; }
.user-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .85);
  font-family: var(--font-display);
  font-size: .95rem;
  max-width: 160px;
  transition: border-color .25s, color .25s, box-shadow .25s;
}
.user-chip-btn svg { width: 18px; height: 18px; color: var(--sky); flex: none; }
.user-chip-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-btn:hover { border-color: var(--sky); color: var(--sky-deep); box-shadow: 0 8px 20px rgba(47, 157, 224, .16); }
.user-chip-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 10px 0;
  border-radius: 999px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .85);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.user-chip-more svg { width: 14px; height: 14px; }
.user-chip-more:hover { border-color: var(--sky); color: var(--sky-deep); }

/* ---------- 上传进度条 ---------- */
.up-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.up-progress[hidden] { display: none; }
.up-progress-track {
  flex: 1; height: 8px; border-radius: 999px; overflow: hidden;
  background: #e3eef7; border: 1px solid var(--stroke, #d8e8f4);
}
.up-progress-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--sky, #2f9de0), #6cc4f0);
  transition: width .25s ease;
}
.up-progress-text { flex: none; min-width: 88px; text-align: right; font-size: 12px; color: var(--text-dim, #5a7d99); }

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(23, 54, 77, .18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 120;
}
.user-menu.show { opacity: 1; transform: none; pointer-events: auto; }
.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .92rem;
  color: var(--text);
  transition: background .2s, color .2s;
}
.user-menu button:hover { background: #eaf6fd; color: var(--sky-deep); }
.user-menu button.danger { color: #d9586e; }
.user-menu button.danger:hover { background: #fdeef1; }

/* ---------- 弹窗通用 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(23, 54, 77, .38);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .24s;
}
.modal.show { opacity: 1; }
.modal-card {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100svh - 44px);
  overflow-y: auto;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--stroke-strong);
  border-radius: 26px;
  padding: 34px 30px 26px;
  box-shadow: 0 30px 80px rgba(23, 54, 77, .28);
  transform: translateY(14px) scale(.97);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.modal.show .modal-card { transform: none; }
.modal-card.modal-lg { width: min(560px, 100%); }

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .9);
  transition: background .2s, transform .2s, color .2s;
  z-index: 2;
}
.modal-x svg { width: 16px; height: 16px; }
.modal-x:hover { background: #fdeef1; color: #d9586e; transform: rotate(90deg); }

/* ---------- 登录 / 注册 ---------- */
.auth-octo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-octo img { width: 52px; height: 52px; filter: drop-shadow(0 4px 8px rgba(23, 54, 77, .16)); }
.auth-octo span { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: #e8f4fc;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dim);
  transition: background .25s, color .25s, box-shadow .25s;
}
.auth-tab.active {
  background: #fff;
  color: var(--sky-deep);
  box-shadow: 0 4px 14px rgba(47, 157, 224, .22);
}

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.f-row { display: flex; flex-direction: column; gap: 6px; }
.f-row > span { font-size: .88rem; font-weight: 700; color: var(--text-dim); }
.f-row input, .f-row select, .f-row textarea {
  font: inherit;
  color: var(--text);
  padding: 12px 15px;
  border-radius: 14px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .9);
  outline: none;
  transition: border-color .22s, box-shadow .22s;
}
.f-row textarea { resize: vertical; min-height: 74px; }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(47, 157, 224, .14);
}
.f-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--text); cursor: pointer; }
.f-check input { width: 17px; height: 17px; accent-color: var(--sky); cursor: pointer; }

.auth-submit { margin-top: 6px; justify-content: center; width: 100%; }
.auth-submit:disabled { opacity: .55; cursor: wait; }
.auth-alt { text-align: center; font-size: .88rem; color: var(--text-dim); }
.auth-alt a { color: var(--sky-deep); font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }

/* ---------- 第三方登录（微信 / QQ） ---------- */
.auth-oauth { margin-top: 20px; }
.auth-oauth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: .8rem; margin-bottom: 14px;
}
.auth-oauth-divider::before, .auth-oauth-divider::after {
  content: ''; flex: 1; height: 1.5px; background: var(--stroke);
}
.auth-oauth-btns { display: flex; gap: 12px; }
.auth-oauth-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 0;
  border-radius: 999px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  font-family: var(--font-display); font-size: .98rem; font-weight: 700;
  letter-spacing: .04em;
  transition: border-color .22s, box-shadow .22s, transform .18s, color .22s;
  cursor: pointer;
}
.auth-oauth-btn:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
  box-shadow: 0 8px 22px rgba(47, 157, 224, .18);
  transform: translateY(-2px);
}
.auth-oauth-btn:active { transform: translateY(0) scale(.97); }
.auth-oauth-btn .ico {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .14);
}
.auth-oauth-btn .ico svg { width: 15px; height: 15px; fill: currentColor; }
.auth-oauth-btn[data-oauth="wechat"] .ico { background: linear-gradient(135deg, #35d465, #17b24a); }
.auth-oauth-btn[data-oauth="qq"] .ico { background: linear-gradient(135deg, #6fc6f5, #38a1ec); }

/* ---------- 工坊工具行 ---------- */
.work-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.work-cats { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.work-subcats { display: flex; gap: 7px; flex-wrap: wrap; width: 100%; padding-left: 2px; }
.chip.sub { padding: 5px 13px; font-size: .8rem; border-width: 1px; opacity: .88; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .8);
  color: var(--text-dim);
  font-size: .9rem;
  transition: all .22s;
}
.chip:hover { border-color: var(--sky); color: var(--sky-deep); }
.chip.active {
  background: linear-gradient(135deg, #5cb8ea, var(--pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 157, 224, .32);
}
.work-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .8);
  transition: border-color .22s, box-shadow .22s;
}
.work-search:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47, 157, 224, .12); }
.work-search svg { width: 17px; height: 17px; color: var(--text-dim); flex: none; }
.work-search input { border: 0; outline: none; background: none; font: inherit; color: var(--text); width: 150px; }

/* ---------- 作品卡片 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.work-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-solid);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 26px rgba(23, 54, 77, .07);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .28s;
  cursor: pointer;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(47, 157, 224, .2); }
.work-cover { aspect-ratio: 1/1; overflow: hidden; background: #e8f4fc; }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.work-card:hover .work-cover img { transform: scale(1.06); }
.work-cover-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #a8d4ef;
}
.work-cover-ph svg { width: 64px; height: 64px; }
.work-info { padding: 14px 16px 16px; }
.w-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.w-author { font-size: .8rem; color: var(--text-dim); margin: 2px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w-cat {
  font-size: .74rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f4fc;
  color: var(--sky-deep);
}
.w-dl { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--text-dim); }
.w-dl svg { width: 13px; height: 13px; }
.w-price { margin-left: auto; font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: .95rem; }
.w-price.free { color: #3cb08c; }

.works-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 20px;
  color: var(--text-dim);
}
.works-empty svg { width: 58px; height: 58px; margin: 0 auto 10px; color: #a8d4ef; }
.works-more { display: flex; margin: 26px auto 0; }

/* 作品加载中的骨架占位（避免接口返回前一片空白） */
.work-skel { cursor: default; pointer-events: none; }
.work-skel .work-cover { background: #eaf4fc; animation: skelPulse 1.4s ease-in-out infinite; }
.work-skel .work-info { display: grid; gap: 9px; }
.work-skel .work-info i { display: block; height: 12px; border-radius: 6px; background: #eef6fd; }
.work-skel .work-info i:nth-child(1) { width: 72%; }
.work-skel .work-info i:nth-child(2) { width: 42%; }
.work-skel .work-info i:nth-child(3) { width: 56%; height: 10px; }
@keyframes skelPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ---------- 作品卡片操作按钮（下载 / 购买） ---------- */
.w-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 13px;
  padding: 10px 0;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #5cb8ea, var(--sky));
  box-shadow: 0 6px 16px rgba(47, 157, 224, .24);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.w-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(47, 157, 224, .3); }
.w-btn:active { transform: none; }
.w-btn[data-busy] { opacity: .6; pointer-events: none; }
.w-btn.buy { background: linear-gradient(135deg, var(--gold), #f2a93b); box-shadow: 0 6px 16px rgba(242, 169, 59, .28); }
.w-btn.buy:hover { box-shadow: 0 10px 22px rgba(242, 169, 59, .34); }
.w-btn.bought { background: linear-gradient(135deg, #4fc79e, #3cb08c); box-shadow: 0 6px 16px rgba(60, 176, 140, .24); }

/* ---------- 购买弹窗 ---------- */
.pay-title { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 16px; }
.pay-goods {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f2faff;
  border: 1px solid var(--stroke);
  margin-bottom: 16px;
}
.pay-goods span {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-goods b { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); flex: none; }
.pay-methods { display: flex; gap: 10px; margin-bottom: 16px; }
.pay-m {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 0;
  border-radius: 14px;
  border: 1.5px solid var(--stroke-strong);
  background: rgba(255, 255, 255, .85);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.pay-m svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.pay-m.on {
  border-color: var(--sky);
  color: var(--sky-deep);
  background: #eaf6fe;
  box-shadow: 0 4px 14px rgba(47, 157, 224, .18);
}
.pay-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
  margin-bottom: 14px;
}
#payQrBox {
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  line-height: 0;
}
#payQrBox img, #payQrBox canvas { width: 184px; height: 184px; }
.pay-qr-fallback { padding: 40px 10px; font-size: .82rem; color: var(--text-dim); line-height: 1.5; }
.pay-status { text-align: center; font-size: .92rem; color: var(--text); margin: 0; line-height: 1.55; }
.pay-status b { font-family: var(--font-display); font-size: 1.1rem; color: #3cb08c; }
.pay-status span { display: block; font-size: .78rem; color: var(--text-dim); margin-top: 4px; word-break: break-all; }

/* ---------- 上传弹窗 ---------- */
.up-title { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 4px; }
.up-sub { font-size: .88rem; color: var(--text-dim); margin-bottom: 20px; }
.up-form { display: flex; flex-direction: column; gap: 14px; }
.up-form input[type='file'] {
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px dashed var(--stroke-strong);
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
}
.up-form input[type='file']::file-selector-button {
  border: 0;
  background: linear-gradient(135deg, #5cb8ea, var(--pink));
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: .85rem;
  margin-right: 12px;
  cursor: pointer;
}

.up-mine { margin-top: 26px; border-top: 1px solid var(--stroke); padding-top: 18px; }
.up-mine-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.up-mine-head h4 { font-family: var(--font-display); font-size: 1.05rem; }
.up-mine-head .chip { padding: 5px 14px; font-size: .82rem; }
.up-mine-tip { font-size: .86rem; color: var(--text-dim); text-align: center; padding: 14px 0; }
.up-mine-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.mine-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f2faff;
  border: 1px solid var(--stroke);
}
.mine-item img, .mine-ph {
  width: 42px; height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: #dceefb;
}
.mine-name { flex: 1; font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine-cat { font-size: .72rem; color: var(--text-dim); background: #fff; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--stroke); white-space: nowrap; }
.mine-badge { font-size: .74rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mine-badge.ok { background: #e2f7ee; color: #1f9d70; }
.mine-badge.warn { background: #fdf3e0; color: #cf8a1d; }
.mine-badge.mute { background: #eef1f4; color: #8697a8; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  z-index: 400;
  padding: 11px 24px;
  border-radius: 999px;
  background: rgba(23, 54, 77, .88);
  color: #fff;
  font-size: .92rem;
  box-shadow: 0 14px 40px rgba(23, 54, 77, .35);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work-search input { width: 110px; }
}
@media (max-width: 560px) {
  .user-chip-btn { padding: 9px 13px; max-width: 108px; }
  .user-chip-more { width: 34px; }
  .works-grid { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .modal-card { padding: 28px 20px 20px; }
  .work-toolbar { flex-direction: column; align-items: stretch; }
  .work-search input { width: 100%; }
}

/* ---------- 减弱动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
