/* =========================================================
   火影手游战力玩家计算工具 · 全站样式
   设计语言：深海军蓝 + 纸白 + 查克拉橙
   - 大字号紧字距标题 / 小号大写分区标签 / 细线分隔
   - 玻璃导航（顶部透明 → 滚动后实底）
   - 滚动渐显、错峰入场、数字递增、名单跑马灯
   注意：仅样式，不涉及任何计算逻辑
   ========================================================= */

:root {
  /* 新设计令牌 */
  --navy: #0a1621;
  --navy-2: #0f2030;
  --navy-3: #16293b;
  --paper: #f5f5f7;
  --white: #ffffff;
  --ink: #15171a;
  --muted: #66717d;
  --line: #dfe2e6;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #f2662b;
  --accent-2: #ff9152;
  --accent-ink: #c94a12;
  --accent-soft: #ffb68c;
  --text-on-dark: #e9eef3;
  --muted-on-dark: #9fb0bf;

  --font-body: 'MiSans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  --shell: min(100% - 96px, 1320px);

  /* 兼容旧变量名（页面内联样式与组件仍在引用） */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --ink-2: #4a5561;
  --ink-3: #8a95a1;
  --line-strong: #c9ced4;
  --brand: var(--accent);
  --brand-2: var(--accent-2);
  --brand-ink: var(--accent-ink);
  --r-card: 14px;
  --r-ctrl: 10px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 33, 0.05);
  --shadow-md: 0 10px 30px rgba(10, 22, 33, 0.06);
  --shadow-lg: 0 24px 60px rgba(10, 22, 33, 0.14);
  --glass-bg: #ffffff;
  --glass-border: var(--line);
  --glass-blur: 0px;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-body: 16px;
  --fs-h3: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: #07111a;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
::selection { color: var(--navy); background: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tech-bg { display: none; }

/* 通用 SVG 图标 */
.ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.ico-stroke, svg.ico-stroke, svg.i {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
svg.i { width: 20px; height: 20px; flex: 0 0 auto; }
.arrow { transition: transform .25s var(--ease-out); }
a:hover .arrow, button:hover .arrow, .feature-card:hover .arrow, .help-item:hover .arrow { transform: translate(3px, -3px); }

.shell { width: var(--shell); margin-inline: auto; }
.container { width: var(--shell); margin-inline: auto; }

/* ===== 分区标签 / 标题 ===== */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em;
  color: var(--accent-ink);
  text-transform: uppercase;
  white-space: nowrap;
}
.section-label::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 0 rgba(242, 102, 43, .55);
  animation: pulse 2.2s infinite;
}
/* 圆点动效与滚动渐显同步：未进入 is-visible 前不跑动画，保证所有标签表现一致 */
.js .section-label::before { animation-play-state: paused; }
.js [data-reveal].is-visible .section-label::before { animation-play-state: running; }
.on-dark .section-label, .section-label.light { color: var(--accent-soft); }

.display-title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead {
  margin: 18px 0 0;
  max-width: 620px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.8;
  color: var(--muted);
}
.on-dark .lead { color: var(--muted-on-dark); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--accent-ink);
  font-size: 15px; font-weight: 500;
}
.text-link:hover { color: var(--ink); }
.on-dark .text-link { color: var(--accent-soft); }
.on-dark .text-link:hover { color: #fff; }

/* 胶囊按钮 */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn-pill:active { transform: scale(.98); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent-soft); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(242, 102, 43, .28); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: rgba(140, 155, 175, .16); }
.btn-small { min-height: 42px; padding: 10px 20px; font-size: 14px; }

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: #fff;
  transition: background .35s, color .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.header-inner {
  height: var(--header-h);
  width: min(100% - 64px, 1440px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-inner {
  border-radius: 999px; border: 1px solid transparent;
  transition: height .45s var(--ease-out), width .45s var(--ease-out), margin .45s var(--ease-out),
              padding .45s var(--ease-out), background .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled .header-inner {
  height: 64px; margin-top: 12px; padding: 0 10px 0 12px;
  width: min(100% - 32px, 1280px);
  background: rgba(8, 20, 31, .62);
  border-color: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 18px 50px rgba(2, 8, 14, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header.is-scrolled.on-light { color: var(--ink); }
.site-header.is-scrolled.on-light .header-inner {
  background: rgba(252, 252, 254, .72);
  border-color: rgba(10, 22, 33, .08);
  box-shadow: 0 18px 50px rgba(10, 22, 33, .10), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.brand {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
}
.brand .site-logo {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08);
}
.on-light .brand .site-logo { border-color: var(--line); }
#site-name { margin: 0; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-pill {
  position: relative;
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 30px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.is-scrolled .nav-pill { background: rgba(255, 255, 255, .05); box-shadow: none; }
.on-light .nav-pill { background: rgba(10, 22, 33, .035); border-color: rgba(10, 22, 33, .08); box-shadow: none; }
.nav-link {
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; white-space: nowrap; opacity: .82;
  transition: background .25s, opacity .25s, color .25s;
}
.nav-link:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.on-light .nav-link:hover { background: rgba(10, 22, 33, .06); }
.nav-link.is-active { opacity: 1; background: rgba(255, 255, 255, .16); }
.on-light .nav-link.is-active { background: rgba(10, 22, 33, .08); color: var(--accent-ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 10px 18px; border-radius: 999px;
  border: 0; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav-button:hover { background: var(--accent-soft); }
.on-light .nav-button { background: var(--navy); color: #fff; }
.on-light .nav-button:hover { background: var(--accent); }
.nav-button .ico { width: 18px; height: 18px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(255, 255, 255, .06); color: inherit;
  border: 1px solid rgba(150, 160, 170, .45);
}
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-menu { display: none; }
.menu-open .menu-toggle .i-close { display: block; }

.mobile-menu {
  position: fixed; top: calc(var(--header-h) + 10px); left: 14px; right: 14px; z-index: 99;
  max-height: calc(100svh - var(--header-h) - 24px); overflow: auto;
  padding: 10px 16px 18px; border-radius: 18px;
  color: #fff; background: #0c1925;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease-out);
}
.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mm-group { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mm-group:last-of-type { border-bottom: 0; }
.mm-title { display: block; padding: 6px 8px; font-size: 12px; letter-spacing: .14em; color: var(--accent-soft); }
.mm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mm-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 8px; border-radius: 10px; font-size: 15px; color: var(--text-on-dark);
}
.mm-link:hover, .mm-link.is-active { background: rgba(255, 255, 255, .08); color: #fff; }
.mm-link .i { width: 16px; height: 16px; opacity: .5; }
.mm-actions { display: flex; gap: 10px; margin-top: 14px; }
.mm-actions > * { flex: 1; }

/* =========================================================
   首页 Hero（横幅轮播融合为全屏背景）
   ========================================================= */
.hero {
  position: relative; overflow: clip;
  min-height: max(700px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy); color: #fff;
  isolation: isolate;
}
.hero-inner {
  width: var(--shell); margin-inline: auto;
  padding: calc(var(--header-h) + 80px) 0 64px;
}
/* 动态背景：WebGL 丝绸光带（无 WebGL 时退回 CSS 渐变） */
.hero-bg {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(60% 18% at 38% 46%, rgba(46, 108, 230, .35), transparent 70%),
    radial-gradient(42% 12% at 82% 34%, rgba(255, 104, 30, .32), transparent 70%),
    radial-gradient(30% 30% at 70% 40%, rgba(120, 150, 255, .18), transparent 70%),
    #040f18;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero.has-webgl .hero-canvas { opacity: 1; }
.hero.no-webgl .hero-canvas { display: none; }

/* 立绘：从下方缓缓升起 → 持续轻浮 → 光影扫过 */
.hero-figure {
  position: absolute; z-index: -2; pointer-events: none;
  right: calc(max(0px, (100vw - 1440px) / 2) - 5vw); bottom: 0;
  height: min(82svh, 840px); aspect-ratio: 824 / 718;
  will-change: transform;
}
.hero-figure-float { width: 100%; height: 100%; animation: figure-float 7s 2.6s ease-in-out infinite alternate; }
.hero-figure-inner {
  position: relative; width: 100%; height: 100%;
  animation: figure-rise 2.6s .2s cubic-bezier(.16, 1, .3, 1) both;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 99%);
}
.hero-sasuke {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(-10px 0 26px rgba(70, 130, 255, .32)) drop-shadow(12px 0 30px rgba(255, 104, 30, .22)) saturate(1.05);
}
.hero-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(190, 215, 255, .0) 42%, rgba(220, 235, 255, .55) 50%, rgba(255, 190, 140, .0) 58%, transparent 62%);
  background-size: 260% 100%; background-repeat: no-repeat;
  -webkit-mask: url(../assets/images/hero-sasuke.png) center bottom / contain no-repeat;
  mask: url(../assets/images/hero-sasuke.png) center bottom / contain no-repeat;
  mix-blend-mode: overlay; opacity: .9;
  animation: sheen 6.5s 2.2s cubic-bezier(.45, 0, .2, 1) infinite;
  background-position: 130% 0;
}
/* 琉璃珠：悬于掌心上方 */
.hero-orb {
  position: absolute; left: 28.4%; top: 21%;
  width: 15%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95) 0 4%, rgba(210, 228, 255, .55) 9%, transparent 22%),
    radial-gradient(circle at 70% 78%, rgba(255, 140, 70, .55), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(70, 120, 235, .30), rgba(18, 34, 70, .25) 62%, rgba(140, 180, 255, .35) 70%, transparent 71%);
  box-shadow:
    inset 0 0 0 1px rgba(220, 235, 255, .35),
    inset -10px -14px 28px rgba(255, 110, 40, .35),
    inset 10px 12px 26px rgba(110, 160, 255, .45),
    0 0 46px rgba(110, 150, 255, .45), 0 0 120px rgba(255, 110, 40, .22);
  -webkit-backdrop-filter: blur(2px) saturate(140%); backdrop-filter: blur(2px) saturate(140%);
  animation: orb-in 1.6s 1.5s cubic-bezier(.16, 1, .3, 1) both, orb-bob 5s 3.1s ease-in-out infinite alternate;
}
.orb-core {
  position: absolute; inset: 14%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(90, 150, 255, .0), rgba(90, 150, 255, .75), rgba(255, 120, 50, .0) 40%, rgba(255, 120, 50, .7) 62%, rgba(90, 150, 255, .0) 80%);
  filter: blur(7px); mix-blend-mode: screen; opacity: .85;
  animation: spin 7s linear infinite;
}
.orb-ring {
  position: absolute; inset: -4%; border-radius: 50%;
  border: 1px solid rgba(190, 215, 255, .5);
  animation: ring 3.2s 3s ease-out infinite;
}
@keyframes figure-rise { from { opacity: 0; transform: translateY(26%); filter: blur(10px); } 60% { opacity: 1; filter: blur(0); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes figure-float { from { transform: translateY(0) rotate(0); } to { transform: translateY(-1.6%) rotate(-.5deg); } }
@keyframes sheen { 0% { background-position: 130% 0; } 55%, 100% { background-position: -40% 0; } }
@keyframes orb-in { from { opacity: 0; transform: translate(-50%, -10%) scale(.5); filter: blur(8px); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); } }
@keyframes orb-bob { from { transform: translate(-50%, -50%); } to { transform: translate(-50%, -62%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 15, 24, .88) 0%, rgba(4, 15, 24, .58) 36%, rgba(4, 15, 24, 0) 66%),
    linear-gradient(0deg, var(--navy) 0%, transparent 30%),
    linear-gradient(180deg, rgba(4, 15, 24, .5) 0%, transparent 22%);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 26px; font-size: clamp(14px, 1.2vw, 17px); color: #c3d0dc;
  animation: hero-arrive .8s var(--ease-out) both;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242, 102, 43, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 102, 43, .55); } 70% { box-shadow: 0 0 0 12px rgba(242, 102, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 102, 43, 0); } }

.banner-slides { display: grid; }
.banner { grid-area: 1 / 1; }
.banner-text {
  position: relative; max-width: 780px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.banner.active .banner-text { opacity: 1; visibility: visible; }
.banner-text h2 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.4vw, 88px); font-weight: 600;
  line-height: 1.1; letter-spacing: -.045em;
}
.banner-text h2 .w { display: inline-block; }
.banner.active .banner-text h2 .w { animation: hero-arrive .8s var(--ease-out) both; }
.banner.active .banner-text h2 .w:nth-child(2) { animation-delay: .08s; }
.banner.active .banner-text h2 .w:nth-child(3) { animation-delay: .16s; }
.banner.active .banner-text h2 .w:nth-child(4) { animation-delay: .24s; }
.banner-text h2 .w.hl { color: var(--accent-soft); }
.banner-text p {
  margin: 0; max-width: 640px;
  font-size: clamp(16px, 1.45vw, 21px); line-height: 1.8; color: #c8d3dc;
}
.banner.active .banner-text p { animation: hero-arrive .9s .25s var(--ease-out) both; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

.hero-actions {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  margin-top: 36px; animation: hero-arrive .9s .35s var(--ease-out) both;
}
.hero-actions .btn-pill { min-width: 200px; min-height: 58px; font-size: 17px; }
.hero-actions .text-link { color: #ffd2b8; font-size: 16px; }
.hero-actions .text-link:hover { color: #fff; }

.hero-foot {
  position: relative; margin-top: 64px; padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; color: #9fb0bf;
}
.banner-dots { display: flex; gap: 10px; align-items: center; }
.dot {
  position: relative; width: 44px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .22); cursor: pointer; overflow: hidden;
}
.dot::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: var(--accent-soft);
}
.dot.active::after { animation: dot-fill 5s linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint .bar { width: 1px; height: 28px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: scroll-line 1.8s var(--ease-out) infinite; }
@keyframes scroll-line { to { top: 100%; } }

/* =========================================================
   数据条（工具数量）
   ========================================================= */
.proof { background: var(--white); }
.proof-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 44px;
}
.proof-item { display: flex; flex-direction: column; gap: 8px; padding-inline: 40px; min-width: 0; }
.proof-item:first-child { padding-left: 0; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-num {
  font-size: clamp(40px, 4vw, 60px); font-weight: 600; line-height: 1.05;
  letter-spacing: -.05em; color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.proof-item strong { font-size: 19px; font-weight: 500; }
.proof-item span.proof-sub { font-size: 14px; color: var(--muted); }
.proof-item:hover strong { color: var(--accent-ink); }

/* =========================================================
   分区
   ========================================================= */
.section { padding-block: 110px; }
.section.paper { background: var(--paper); }
.section.white { background: var(--white); }
.section.dark, .on-dark { background: var(--navy); color: var(--text-on-dark); }

.block-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: 48px;
}
.block-header h2 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.block-header p { margin: 16px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.on-dark .block-header p { color: var(--muted-on-dark); }
.block-count { flex-shrink: 0; text-align: right; color: var(--muted); font-size: 14px; line-height: 1.4; }
.block-count b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -.05em; color: var(--ink); }
.on-dark .block-count { color: var(--muted-on-dark); }
.on-dark .block-count b { color: #fff; }

/* 工具卡片 */
.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-card {
  --mouse-x: 50%; --mouse-y: 50%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 236px;
  padding: 26px 24px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .45s var(--ease-out), border-color .3s, box-shadow .45s var(--ease-out);
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mouse-x) var(--mouse-y), rgba(242, 102, 43, .10), transparent 60%);
  transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(242, 102, 43, .55); box-shadow: 0 24px 50px rgba(10, 22, 33, .10); }
.feature-card:hover::before { opacity: 1; }
.card-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.card-icon {
  width: 60px; height: 60px; border-radius: 16px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .45s var(--ease-out);
}
.feature-card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-icon img { width: 100%; height: 100%; object-fit: contain; }
.card-index { font-size: 12px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature-card h2 { position: relative; margin: 34px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; }
.feature-card p { position: relative; margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.card-go {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 14px; font-weight: 500; color: var(--accent-ink);
}
.card-go .i { width: 16px; height: 16px; }

.on-dark .feature-card { background: var(--navy-2); border-color: var(--line-dark); }
.on-dark .feature-card:hover { border-color: rgba(255, 182, 140, .55); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.on-dark .feature-card::before { background: radial-gradient(360px circle at var(--mouse-x) var(--mouse-y), rgba(255, 145, 82, .16), transparent 60%); }
.on-dark .card-icon { background: rgba(255, 255, 255, .06); border-color: var(--line-dark); }
.on-dark .feature-card h2 { color: #fff; }
.on-dark .feature-card p, .on-dark .card-index { color: var(--muted-on-dark); }
.on-dark .card-go { color: var(--accent-soft); }

/* =========================================================
   创作者
   ========================================================= */

/* =========================================================
   特别鸣谢 · 跑马灯
   ========================================================= */
.thanks-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 46px; }
.thanks-head h2 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.thanks-head p { margin: 16px 0 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.fans-content { overflow: hidden; }
.marquee {
  position: relative; overflow: hidden; padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.fans-list { display: flex; flex-wrap: nowrap; gap: 14px; padding-right: 14px; }
.fan-name {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 999px;
  font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.fan-name::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fan-name:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 无 JS 时的静态名单（换行展示） */
.fans-static .fans-list { flex-wrap: wrap; }

/* =========================================================
   帮助中心（联系方式式行）
   ========================================================= */
.help-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 44px; }
.help-layout h2 { margin: 0; font-size: clamp(38px, 4.6vw, 68px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; color: #fff; }
.help-layout p { margin: 0 0 6px; color: var(--muted-on-dark); font-size: 18px; line-height: 1.8; max-width: 460px; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.help-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 28px 0; border-top: 1px solid #2b3d4d; color: var(--text-on-dark);
}
.help-item span { display: block; font-size: 22px; font-weight: 500; color: #fff; letter-spacing: -.01em; }
.help-item p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted-on-dark); }
.help-item .i { color: var(--accent-soft); width: 22px; height: 22px; }
.help-item:hover span { color: var(--accent-soft); }

/* =========================================================
   子页面 · 页眉
   ========================================================= */
.page-hero {
  position: relative; overflow: clip; isolation: isolate;
  background: var(--navy); color: #fff;
  padding: calc(var(--header-h) + 64px) 0 72px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 90% at 88% 20%, rgba(242, 102, 43, .22), transparent 70%),
    radial-gradient(40% 70% at 70% 110%, rgba(64, 140, 200, .16), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 90% at 80% 30%, #000 20%, transparent 75%);
}
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 34px; font-size: 14px; color: var(--muted-on-dark);
  animation: hero-arrive .7s var(--ease-out) both;
}
.crumbs a:hover { color: #fff; }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-right: 6px;
  border: 1px solid rgba(255, 255, 255, .18); color: #fff;
}
.back-link:hover { background: rgba(255, 255, 255, .1); }
.back-link .ico { width: 16px; height: 16px; }
.page-head { max-width: 900px; }
.page-head .section-label { color: var(--accent-soft); animation: hero-arrive .7s .05s var(--ease-out) both; }
.page-title {
  margin: 0; font-size: clamp(40px, 5.6vw, 84px); font-weight: 600;
  line-height: 1.1; letter-spacing: -.045em; color: #fff;
  animation: hero-arrive .8s .1s var(--ease-out) both;
}
.page-lead {
  margin: 22px 0 0; max-width: 680px;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.8; color: #c3d0dc;
  animation: hero-arrive .9s .2s var(--ease-out) both;
}
.page-body { padding: 56px 0 100px; background: var(--paper); }

/* 同系列工具 */
.related { margin-top: 18px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.related-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: 14.5px;
  transition: border-color .25s, color .25s, transform .35s var(--ease-out);
}
.related-chip img { width: 28px; height: 28px; object-fit: contain; }
.related-chip:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* =========================================================
   页脚
   ========================================================= */
footer, .site-footer { background: #07111a; color: var(--text-on-dark); }
.footer-content { width: var(--shell); margin-inline: auto; padding: 72px 0 34px; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  padding-bottom: 46px; border-bottom: 1px solid #22313f;
}
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 600; color: #fff; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.footer-note { margin: 14px 0 0; color: var(--muted-on-dark); font-size: 15px; max-width: 520px; }
.donate-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.donate-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff;
  font-size: 15px; font-weight: 500;
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease-out);
}
.donate-btn:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.donate-btn .i { width: 18px; height: 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; }
.copyright p { margin: 0; font-size: 13px; color: #7f909f; }
.back-top { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; color: #b8c6d2; }
.back-top:hover { color: #fff; }
.back-top .i { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.back-top:hover .i { transform: translateY(-3px); }

/* =========================================================
   弹窗（打赏 / QQ 群）· 结构由 main.js 控制
   ========================================================= */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 12, 19, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.modal.show, .modal[style*="flex"] { display: flex; animation: modal-fade .25s ease both; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  position: relative; width: min(380px, 100%);
  padding: 36px 28px 28px; border-radius: 22px; text-align: center;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.modal.show .modal-content, .modal[style*="flex"] .modal-content { animation: modal-pop .45s var(--ease-out) both; }
@keyframes modal-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
/* 关闭按钮：隐藏文本「×」，以 SVG 线条绘制 */
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); font-size: 0; color: transparent; line-height: 0;
  transition: background .2s, border-color .2s, transform .3s var(--ease-out);
}
.modal-close::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.modal-close:hover { background: var(--paper); transform: rotate(90deg); }
.modal-badge {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(242, 102, 43, .32);
}
.modal-badge img.ico { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.modal-badge svg.ico { width: 30px; height: 30px; stroke: #fff; }
.modal-title { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.modal-sub { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.modal-qr { padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.modal-qr img { width: 100%; max-width: 260px; margin: 0 auto; border-radius: 10px; }
.modal-group-no {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px; margin-bottom: 18px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
}
.modal-group-no .label { font-size: 13px; color: var(--muted); }
.modal-group-no .num { font-size: 24px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.modal-actions { display: flex; justify-content: center; gap: 10px; }
.copy-btn, .join-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.copy-btn { background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); }
.copy-btn:hover { border-color: var(--ink); }
.join-btn { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.join-btn:hover { background: var(--accent); border-color: var(--accent); }
.join-btn img.ico { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ===== 轻提示（main.js showToast） ===== */
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 300;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, -12px); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-ico { width: 18px; height: 18px; fill: none; stroke: #7ee2a8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast.error .toast-ico { stroke: var(--accent-soft); }

/* 背景音乐播放器：见文件末尾「播放器 v2」 */

/* =========================================================
   滚动渐显（ui.js 添加 .is-visible）
   ========================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="line"] { transform: translateY(40px); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(10, 22, 33, .22); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(10, 22, 33, .4); background-clip: content-box; border: 3px solid transparent; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1280px) {
  .hero-figure { right: -12vw; }
}
@media (max-width: 1120px) {
  .nav-pill { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; --shell: calc(100% - 48px); }
  .header-inner { width: calc(100% - 32px); }
  .section { padding-block: 80px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .block-header, .thanks-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .block-count { text-align: left; }
  .proof-row { grid-template-columns: 1fr; padding-block: 10px; }
  .proof-item, .proof-item:first-child { padding: 24px 0; }
  .proof-item + .proof-item { border-left: 0; border-top: 1px solid var(--line); }
  .help-layout { grid-template-columns: 1fr; gap: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,15,24,.86), rgba(4,15,24,.35)), linear-gradient(0deg, var(--navy), transparent 45%); }
  .hero-figure { right: -16%; height: min(66svh, 620px); opacity: .7; }
}
@media (max-width: 640px) {
  .nav-qq-label { display: none; }
  .nav-button { padding: 10px 12px; }
  .brand { font-size: 15px; gap: 10px; }
  .brand .site-logo { width: 34px; height: 34px; }
  .hero { min-height: max(620px, 100svh); }
  .hero-figure { right: -34%; top: calc(var(--header-h) + 10px); bottom: auto; height: 52svh; opacity: .62; }
  .site-header.is-scrolled .header-inner { height: 58px; margin-top: 8px; width: calc(100% - 20px); }
  .hero-inner { padding-bottom: 40px; }
  .hero-actions { gap: 20px; }
  .hero-actions .btn-pill { min-width: 0; min-height: 50px; padding: 14px 24px; font-size: 15px; }
  .hero-foot { margin-top: 40px; }
  .scroll-hint { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 18px; }
  .feature-card .card-top { margin: 0; }
  .feature-card .card-index { display: none; }
  .card-icon { width: 54px; height: 54px; border-radius: 14px; }
  .feature-card h2 { margin: 0; font-size: 18px; flex: 1; }
  .feature-card p { flex-basis: 100%; margin-top: 10px; }
  .card-go { display: none; }
  .mm-links { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--header-h) + 36px) 0 48px; }
  .crumbs { margin-bottom: 24px; }
  .page-body { padding: 32px 0 80px; }
  .footer-content { padding-top: 56px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* 播放器在手机上贴底并避开页脚按钮 */
  music-player { right: 12px; left: 12px; bottom: 12px; }
  music-player.collapsed { left: auto; }
  .mp-card { width: auto; max-width: none; }
  .mp-fab { right: 12px; bottom: 12px; }
  footer, .site-footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none !important; }
  .marquee .fans-list { flex-wrap: wrap; }
  .marquee .fans-list[aria-hidden="true"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-figure-float, .hero-figure-inner, .hero-sheen, .hero-orb, .orb-core, .orb-ring { animation: none !important; }
  .hero-orb { transform: translate(-50%, -50%); }
}

/* =========================================================
   Hero 主标题（两行编辑式）+ 轮播副标题
   ========================================================= */
.hero-title {
  margin: 0 0 30px; max-width: 900px;
  font-size: clamp(42px, 5.5vw, 88px); font-weight: 650;
  line-height: 1.04; letter-spacing: -.05em; color: #fff;
  text-wrap: balance;
}
.hero-title .ht-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .w { display: inline-block; animation: title-rise 1.1s var(--ease-out) both; }
.hero-title .ht-line:nth-child(2) .w { animation-delay: .14s; }
.hero-title .ht-line:nth-child(2) .w.hl { animation-delay: .24s; }
.hero-title .hl {
  background: linear-gradient(100deg, #ffd2b8 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes title-rise { from { opacity: 0; transform: translateY(70%); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
.banner-slider { padding-left: 0; border-left: 0; }
.banner-text h2 {
  margin: 0 0 6px; font-size: clamp(17px, 1.5vw, 22px); font-weight: 500;
  line-height: 1.45; letter-spacing: 0; color: #fff;
}
.banner-text p { font-size: clamp(14px, 1.1vw, 16px); line-height: 1.7; color: #9fb0bf; }

/* =========================================================
   跟随指针的橙色光晕（与 .feature-card 聚光同款）
   ========================================================= */
.zt-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 145, 82, .30), rgba(242, 102, 43, .10) 38%, transparent 62%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s ease;
}
.hero .zt-glow { z-index: -1; }
.is-glowing > .zt-glow { opacity: 1; }
.site-footer, .page-hero { position: relative; }

/* =========================================================
   统一弹窗（QQ 群 / 打赏）
   ========================================================= */
html.modal-lock { overflow: hidden; }
.zt-modal {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 12, 19, .58);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s;
}
.zt-modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.zt-dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .35);
  transform: translateY(24px) scale(.97); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .35s ease;
}
.zt-dialog.is-wide { width: min(880px, 100%); }
.zt-modal.is-open .zt-dialog { transform: none; opacity: 1; }
.zt-head {
  position: relative; overflow: hidden;
  padding: 40px 52px 36px;
  background: linear-gradient(120deg, #ff7444 0%, #f0532a 55%, #f37a3a 100%);
  color: #fff;
}
.zt-orb {
  position: absolute; right: -60px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 196, 140, .55), rgba(255, 170, 110, .25));
  pointer-events: none;
}
.zt-eyebrow { position: relative; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: rgba(255, 255, 255, .78); }
.zt-title { position: relative; margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.zt-sub { position: relative; margin: 0; font-size: 15px; color: rgba(255, 255, 255, .86); }
.zt-close {
  position: absolute; top: 24px; right: 24px; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); color: #fff;
  transition: background .25s, transform .4s var(--ease-out);
}
.zt-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }
.zt-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zt-body { padding: 32px 52px 40px; }
.zt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0 26px; border-bottom: 1px solid #eceef1; }
.zt-label { font-size: 15px; color: var(--muted); }
.zt-num { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: .04em; color: #ef5a2f; font-variant-numeric: tabular-nums; }
.zt-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin-top: 30px; border: 0; border-radius: 12px;
  background: linear-gradient(100deg, #ff7444, #ef5a2f); color: #fff;
  font-size: 17px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 16px 34px rgba(239, 90, 47, .28);
  transition: transform .35s var(--ease-out), box-shadow .35s, filter .25s;
}
.zt-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(239, 90, 47, .34); filter: saturate(1.08); }
.zt-btn:active { transform: translateY(0); }
.zt-btn svg, .zt-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zt-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--muted); transition: color .2s; }
.zt-link:hover { color: #ef5a2f; }

.zt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zt-tab {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-align: left;
  border-radius: 12px; border: 1px solid #ebe6e1; background: #f7f5f2; color: var(--ink);
  transition: background .25s, border-color .25s, transform .3s var(--ease-out);
}
.zt-tab:hover { transform: translateY(-1px); border-color: #f3c2ad; }
.zt-tab img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; flex-shrink: 0; }
.zt-tab b { display: block; font-size: 20px; font-weight: 700; }
.zt-tab small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.zt-tab.is-active { background: #fff1ea; border-color: #f4a587; }
.zt-tab.is-active b { color: #e0532b; }
.zt-pane { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; margin-top: 36px; }
.zt-pane.is-in > * { animation: hero-arrive .55s var(--ease-out) both; }
.zt-pane.is-in > *:nth-child(2) { animation-delay: .08s; }
.zt-p-head { display: flex; align-items: center; gap: 22px; }
.zt-p-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 14px 30px rgba(10, 22, 33, .12); }
.zt-p-name { margin: 0 0 10px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.zt-p-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid #f4b9a2; background: #fff3ee; color: #e0532b; font-size: 14px; }
.zt-p-thanks { margin: 30px 0 0; padding-bottom: 22px; border-bottom: 1px solid #eceef1; font-size: 20px; line-height: 1.6; color: var(--ink); }
.zt-p-note { margin: 18px 0 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.zt-qr {
  margin: 0; padding: 26px 26px 20px; border-radius: 14px; text-align: center;
  background: #fff; border: 1px solid #f7dcd1; box-shadow: 0 24px 50px rgba(239, 90, 47, .08);
}
.zt-qr img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.zt-qr figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 16px; font-weight: 600; color: #d0502a; }
.zt-qr figcaption svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .zt-head { padding: 30px 24px 26px; }
  .zt-close { top: 16px; right: 16px; width: 42px; height: 42px; }
  .zt-body { padding: 24px 24px 28px; }
  .zt-tabs { gap: 10px; }
  .zt-tab { gap: 10px; padding: 12px; }
  .zt-tab img { width: 42px; height: 42px; }
  .zt-tab b { font-size: 16px; }
  .zt-tab small { font-size: 11px; white-space: nowrap; }
  .zt-tab b { white-space: nowrap; }
  .zt-p-head { gap: 14px; }
  .zt-p-note { font-size: 13px; }
  .zt-pane { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .zt-p-avatar { width: 72px; height: 72px; }
  .zt-p-name { font-size: 24px; }
  .zt-p-thanks { margin-top: 18px; font-size: 16px; }
  .zt-qr { max-width: 280px; margin-inline: auto; width: 100%; order: -1; }
}

/* =========================================================
   工具页 Hero 图标（与首页卡片图标共享过渡）
   ========================================================= */
.page-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 26px;
  border-radius: 20px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: hero-arrive .7s var(--ease-out) both;
}
.page-icon img { width: 46px; height: 46px; object-fit: contain; }

/* =========================================================
   页面过渡：跨文档 View Transition（Chrome / Edge / Safari 18.2+）
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
/* 兜底：其它浏览器离开时淡出 */
html.is-leaving body { opacity: 0; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease; }
/* 从工具页返回：原卡片轻提示 */
.feature-card.is-returned { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 102, 43, .14), 0 24px 50px rgba(10, 22, 33, .08); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* =========================================================
   排版细节
   ========================================================= */
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; font-feature-settings: "palt" 0, "kern" 1; }
h1, h2, h3, .page-title, .block-title { text-wrap: balance; }
p, .page-lead, .card-desc { text-wrap: pretty; }
.section-label, .zt-eyebrow, .card-index, .back-top { font-variant-numeric: tabular-nums; }
.result, [id$="Result"], .total-power, .zt-num { font-variant-numeric: tabular-nums; }
::selection { background: rgba(242, 102, 43, .22); color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zt-close:focus-visible { outline-color: #fff; }
.zt-close:focus:not(:focus-visible) { outline: none; }

/* 轻提示：错误态改用警示图标（main.js 生成的结构不变） */
.toast.error .toast-ico { display: none; }
.toast.error::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; background: var(--accent-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* =========================================================
   页脚 v2：版权 | 打赏
   ========================================================= */
.site-footer .footer-content { padding: 0; }
.site-footer .footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 92px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.07);
  transition: padding .35s var(--ease-out);
}
body:has(music-player:not(.collapsed)) .site-footer .footer-bottom { padding-bottom: 116px; }
body:has(music-player.collapsed) .site-footer .footer-bottom { padding-right: 96px; }
.copyright p { margin: 0; font-size: 13px; line-height: 1.7; color: #7f909f; }
.copyright .nw { white-space: nowrap; }
.footer-donate {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 1px solid rgba(242,102,43,.35); background: rgba(242,102,43,.08);
  color: #ffb08c; font: 500 14px/1 var(--font-body); cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-out);
}
.footer-donate .i { width: 17px; height: 17px; }
.footer-donate .arrow { width: 14px; height: 14px; opacity: .7; }
.footer-donate:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.footer-donate:hover .arrow { opacity: 1; }
@media (max-width: 760px) {
  .site-footer .footer-bottom,
  body:has(music-player) .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 0 96px; }
  body:has(music-player:not(.collapsed)) .site-footer .footer-bottom { padding-bottom: 120px; }
}

/* =========================================================
   帮助中心：去掉副标题后的头部
   ========================================================= */
.help-layout { display: block; margin-bottom: 44px; }

/* =========================================================
   火影创作者导航 v2
   ========================================================= */
.creators-block .block-header { margin-bottom: 48px; }
.creators-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.creator-card {
  position: relative; display: block; padding: 0; overflow: hidden; isolation: isolate;
  border-radius: 24px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(10,22,33,.02);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.creator-card:hover { transform: translateY(-6px); border-color: rgba(242,102,43,.35); box-shadow: 0 30px 60px -20px rgba(10,22,33,.22); }
.creator-cover {
  position: relative; height: 128px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(242,102,43,.55), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(70,120,190,.35), transparent 60%),
    #0a1621;
}
.creator-cover::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.creator-card:nth-child(2) .creator-cover {
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(255,150,90,.45), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(242,102,43,.30), transparent 60%),
    #101c28;
}
.creator-no {
  position: absolute; right: 26px; bottom: 14px; z-index: 1;
  font: 600 13px/1 var(--font-body); letter-spacing: .22em; color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums;
}
.creator-mark {
  position: absolute; right: -18px; top: -26px; width: 150px; height: 150px; z-index: 0;
  fill: rgba(255,255,255,.06); transform: rotate(-12deg);
  transition: transform .8s var(--ease-out);
}
.creator-card:hover .creator-mark { transform: rotate(-4deg) scale(1.06); }
.creator-body { position: relative; padding: 0 32px 32px; }
.creator-avatar {
  position: relative; width: 112px; height: 112px; margin-top: -56px; margin-bottom: 20px;
  border-radius: 50%; padding: 4px; overflow: visible; border: 0;
  background: conic-gradient(from 210deg, var(--accent), #ffc19f, var(--accent));
  box-shadow: 0 14px 30px -10px rgba(242,102,43,.55);
}
.creator-avatar img {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: #fff; border: 4px solid #fff;
  transition: transform .6s var(--ease-out);
}
.creator-card:hover .creator-avatar img { transform: scale(1.04); }
.creator-name { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.creator-description { margin: 0 0 26px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.douyin-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  height: 56px; padding: 0 18px 0 8px; border-radius: 16px;
  background: #0b0b0f; color: #fff; text-decoration: none; border: 0;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.douyin-btn:hover { background: #16161d; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.douyin-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dy-logo { position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); }
.dy-l { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; transition: transform .35s var(--ease-out); }
.dy-c { fill: #25f4ee; transform: translate(-1.5px, -1.5px); }
.dy-r { fill: #fe2c55; transform: translate(1.5px, 1.5px); }
.dy-w { fill: #fff; }
.douyin-btn:hover .dy-c { transform: translate(-2.5px, -2px); }
.douyin-btn:hover .dy-r { transform: translate(2.5px, 2px); }
.dy-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.douyin-btn .arrow { width: 16px; height: 16px; color: rgba(255,255,255,.6); transition: transform .3s var(--ease-out), color .3s; }
.douyin-btn:hover .arrow { color: #fff; transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .creators-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .creator-cover { height: 104px; }
  .creator-body { padding: 0 22px 22px; }
  .creator-avatar { width: 96px; height: 96px; margin-top: -48px; margin-bottom: 16px; }
  .creator-name { font-size: 22px; }
  .creator-description { margin-bottom: 20px; }
  .creators-block .block-header { margin-bottom: 32px; }
}

/* =========================================================
   播放器 v2（music-player.js 组件原样，ui.js 只做增强）
   ========================================================= */
music-player {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  display: block; font-family: var(--font-body);
  -webkit-user-select: none; user-select: none;
  --mp-bg: rgba(12, 20, 30, .78);
}
music-player button { font: inherit; cursor: pointer; }
.mp-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px;
  width: 340px; max-width: calc(100vw - 24px); padding: 12px 12px 12px 12px;
  border-radius: 22px; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--mp-bg);
  border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  transform-origin: 100% 100%;
  animation: mpIn .5s var(--ease-out) both;
}
.mp-card::before {
  content: ""; position: absolute; inset: -40%; z-index: -1; opacity: 0;
  background: radial-gradient(40% 50% at 15% 50%, rgba(242,102,43,.35), transparent 70%);
  transition: opacity .6s;
}
.mp-card.playing::before { opacity: 1; animation: mpGlow 6s ease-in-out infinite alternate; }
@keyframes mpGlow { to { transform: translateX(8%); } }
@keyframes mpIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* 唱片按钮（展开态的播放/暂停） */
.mp-toggle {
  position: relative; width: 56px; height: 56px; border: 0; padding: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent;
  transition: transform .25s var(--ease-out);
}
.mp-toggle:active { transform: scale(.94); }
.mp-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #0a1621 0 9%, transparent 9.5%),
    radial-gradient(circle at 50% 50%, var(--accent) 0 30%, transparent 30.5%),
    repeating-radial-gradient(circle at 50% 50%, #111 0 1.4px, #1d1d22 1.6px 3px),
    #151518;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.35);
  animation: mpSpin 8s linear infinite; animation-play-state: paused;
}
.mp-disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 40deg, transparent 0 20%, rgba(255,255,255,.14) 25%, transparent 32% 70%, rgba(255,255,255,.08) 75%, transparent 82%);
}
.mp-card.playing .mp-disc, .mp-fab.playing .mp-disc { animation-play-state: running; }
@keyframes mpSpin { to { transform: rotate(360deg); } }
.mp-toggle .mp-ico, .mp-fab .mp-ico {
  position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  place-items: center; background: rgba(255,255,255,.95); color: #0a1621;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: transform .2s var(--ease-out), background .2s;
}
.mp-toggle:hover .mp-ico, .mp-fab:hover .mp-ico { transform: scale(1.1); background: #fff; }
.mp-svg { width: 12px; height: 12px; fill: currentColor; }
.mp-ico--play .mp-svg { transform: translateX(1px); }
.mp-ico { display: none; }
.mp-card:not(.playing) .mp-ico--play, .mp-card.playing .mp-ico--pause { display: grid; }
.mp-card.playing .mp-toggle .mp-ico { opacity: 0; transform: scale(.7); }
.mp-card.playing .mp-toggle:hover .mp-ico, .mp-card.playing .mp-toggle:focus-visible .mp-ico { opacity: 1; transform: scale(1); }

.mp-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-row1 { display: flex; align-items: center; gap: 8px; }
.mp-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.mp-title { font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.mp-sub { font-size: 11.5px; color: #8fa1b1; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.mp-eq i { width: 2px; height: 25%; border-radius: 2px; background: var(--accent-soft); opacity: .45; }
.mp-card.playing .mp-eq i { opacity: 1; animation: mpBounce .9s ease-in-out infinite; }
.mp-card.playing .mp-eq i:nth-child(2) { animation-delay: .15s; }
.mp-card.playing .mp-eq i:nth-child(3) { animation-delay: .3s; }
.mp-card.playing .mp-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes mpBounce { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.mp-like {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 8px; border: 0; border-radius: 999px; background: rgba(255,255,255,.06);
  color: #b8c6d2; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s;
}
.mp-like:hover { background: rgba(255,255,255,.12); color: #fff; }
.mp-like .mp-svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transform: none; }
.mp-like.liked { color: #ff7a8f; background: rgba(255,122,143,.12); }
.mp-like.liked .mp-svg { fill: #ff7a8f; stroke: #ff7a8f; }
.mp-like.pop { animation: mpPop .32s ease; }
@keyframes mpPop { 40% { transform: scale(1.2); } }
.mp-bar-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mp-time { min-width: 28px; font-size: 10.5px; color: #8fa1b1; font-variant-numeric: tabular-nums; }
.mp-dur { text-align: right; }
.mp-bar { position: relative; flex: 1 1 auto; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.mp-bar::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); transition: height .2s; }
.mp-fill { position: absolute; left: 0; width: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #ffb08c); transition: height .2s; }
.mp-thumb { position: absolute; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translateX(-50%) scale(0); box-shadow: 0 0 0 4px rgba(242,102,43,.3); transition: transform .2s var(--ease-out); }
.mp-bar:hover::before, .mp-bar:hover .mp-fill { height: 5px; }
.mp-bar:hover .mp-thumb, .mp-bar:focus-visible .mp-thumb, .mp-bar:active .mp-thumb { transform: translateX(-50%) scale(1); }
.mp-bar:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
.mp-collapse {
  align-self: start; width: 28px; height: 28px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; color: #8fa1b1;
  background: transparent; border: 0;
  transition: background .2s, color .2s;
}
.mp-collapse:hover { background: rgba(255,255,255,.1); color: #fff; }
.mp-collapse .mp-svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 收起态：唱片小圆钮，点击即播放/暂停，外圈是进度环 */
.mp-fab {
  display: none; position: relative;
  width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 0;
  place-items: center; background: var(--mp-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 16px 34px -8px rgba(0,0,0,.5);
  animation: mpIn .45s var(--ease-out) both;
  transition: transform .25s var(--ease-out);
}
.mp-fab:hover { transform: translateY(-2px); }
.mp-fab:active { transform: scale(.95); }
.mp-fab .mp-disc { inset: 6px; }
.mp-fab .mp-ico--play { display: grid; }
.mp-fab.playing .mp-ico--play { display: none; }
.mp-fab.playing .mp-ico--pause { display: grid; opacity: 0; transform: scale(.7); }
.mp-fab.playing:hover .mp-ico--pause, .mp-fab.playing:focus-visible .mp-ico--pause { opacity: 1; transform: scale(1); }
.mp-fab-eq { display: none; }
.mp-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.mp-ring circle { fill: none; stroke-width: 2.5; }
.mp-ring-bg { stroke: rgba(255,255,255,.12); }
.mp-ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.mp-fab:not(.playing)::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(242,102,43,.5);
  animation: mpPulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes mpPulse { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.mp-expand {
  display: none; position: absolute; left: -6px; top: -6px; z-index: 2;
  width: 24px; height: 24px; padding: 0; border-radius: 50%;
  place-items: center; color: #0a1621; background: #fff; border: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  opacity: 0; transform: scale(.6);
  transition: opacity .2s, transform .25s var(--ease-out), background .2s;
}
.mp-expand svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mp-expand:hover { background: var(--accent); color: #fff; }
music-player.collapsed .mp-card { display: none; }
music-player.collapsed .mp-fab, music-player.collapsed .mp-expand { display: grid; }
music-player.collapsed:hover .mp-expand, music-player.collapsed:focus-within .mp-expand { opacity: 1; transform: scale(1); }
@media (hover: none) { music-player.collapsed .mp-expand { opacity: 1; transform: scale(1); } }
@media (max-width: 480px) {
  music-player { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  music-player:not(.collapsed) { left: 12px; right: 12px; }
  music-player:not(.collapsed) .mp-card { width: 100%; max-width: none; }
}

/* 回到顶部：悬浮在播放器上方 */
.to-top {
  position: fixed; right: 26px; z-index: 149;
  bottom: calc(20px + 60px + 14px);
  width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  color: #0a1621; background: rgba(255,255,255,.88); border: 1px solid rgba(10,22,33,.08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px -10px rgba(10,22,33,.35);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease-out), bottom .35s var(--ease-out), background .2s, color .2s;
}
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.to-top:hover svg { transform: translateY(-2px); }
body:has(music-player:not(.collapsed)) .to-top { bottom: calc(20px + 82px + 14px); right: 20px; }
body:not(:has(music-player)) .to-top { bottom: 20px; right: 20px; }
@media (max-width: 480px) {
  .to-top { right: 20px; bottom: calc(14px + 60px + 12px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
  body:has(music-player:not(.collapsed)) .to-top { right: 14px; bottom: calc(14px + 82px + 12px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .mp-disc { animation: none; } .mp-fab:not(.playing)::after { animation: none; }
}

/* =========================================================
   单页 Hero：沿用首页 WebGL 丝绸背景 + 人物立绘
   ========================================================= */
.page-hero.has-figure { min-height: clamp(460px, 62svh, 640px); display: flex; flex-direction: column; justify-content: flex-end; }
.page-hero.has-figure::before, .page-hero.has-figure::after { display: none; }
.page-hero.has-webgl .hero-canvas { opacity: 1; }
.page-hero.no-webgl .hero-canvas { display: none; }
.page-hero .shell { position: relative; z-index: 1; }
.page-figure {
  right: calc(max(0px, (100vw - 1440px) / 2) + 2vw); bottom: 0;
  height: min(92%, 600px); aspect-ratio: 872 / 760;
}
.page-figure .hero-figure-inner { animation-duration: 2s; animation-delay: .05s; }
.page-figure .hero-figure-float { animation-delay: 2.1s; }
.hero-char {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom;
  filter: drop-shadow(-10px 0 26px rgba(70, 130, 255, .30)) drop-shadow(12px 0 30px rgba(255, 104, 30, .22));
}
.page-figure .hero-sheen {
  -webkit-mask: var(--char) right bottom / contain no-repeat;
  mask: var(--char) right bottom / contain no-repeat;
}
.page-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 15, 24, .9) 0%, rgba(4, 15, 24, .6) 34%, rgba(4, 15, 24, 0) 62%),
    linear-gradient(0deg, rgba(4, 15, 24, .7) 0%, transparent 28%);
}
.page-404 .page-figure { height: min(78%, 640px); }
@media (max-width: 1100px) {
  .page-figure { right: -6vw; height: min(86%, 520px); opacity: .85; }
}
@media (max-width: 760px) {
  .page-hero.has-figure { min-height: 0; padding-top: calc(var(--header-h) + 150px); }
  .page-figure { right: -18vw; top: calc(var(--header-h) - 4px); bottom: auto; height: 300px; opacity: .55; }
  .page-hero .hero-shade { background: linear-gradient(0deg, rgba(4, 15, 24, .95) 10%, rgba(4, 15, 24, .35) 60%, rgba(4, 15, 24, .2)); }
}

/* 工具卡片：按数量均衡分行（7 = 4+3，6 = 3+3，4 = 4），末行卡片等宽铺满 */
.feature-grid[class*="n-"] { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.feature-grid[class*="n-"] > :nth-child(n) { grid-column: span 3; }
.feature-grid.n-7 > :nth-child(n+5) { grid-column: span 4; }
.feature-grid.n-6 > :nth-child(n) { grid-column: span 4; }
@media (max-width: 1100px) {
  .feature-grid.n-7 > :nth-child(n) { grid-column: span 3; }
  .feature-grid.n-7 > :nth-child(-n+3) { grid-column: span 4; }
  .feature-grid.n-4 > :nth-child(n) { grid-column: span 6; }
}
@media (max-width: 900px) {
  .feature-grid[class*="n-"] > :nth-child(n),
  .feature-grid.n-7 > :nth-child(n),
  .feature-grid.n-6 > :nth-child(n) { grid-column: span 6; }
  .feature-grid.n-7 > :nth-child(7) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .feature-grid[class*="n-"] > :nth-child(n),
  .feature-grid.n-7 > :nth-child(n),
  .feature-grid.n-6 > :nth-child(n) { grid-column: 1 / -1; }
}

/* 立绘外发光不再被渐隐遮罩裁成方框；底部过渡交给 hero-shade */
.hero-figure-inner { -webkit-mask-image: none; mask-image: none; }
.page-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 15, 24, .9) 0%, rgba(4, 15, 24, .6) 34%, rgba(4, 15, 24, 0) 62%),
    linear-gradient(0deg, rgba(4, 15, 24, .85) 0%, rgba(4, 15, 24, 0) 26%);
}

/* 移动端触控尺寸：品牌区与文字链接至少 44px 高 */
@media (max-width: 760px) {
  .brand { min-height: 44px; }
  .text-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---- 首页工具卡片：手机端改为紧凑横排（图标 + 标题/描述 + 箭头） ---- */
@media (max-width: 640px) {
  .feature-card {
    display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; column-gap: 14px; row-gap: 2px;
    align-items: center; min-height: 0; padding: 16px 16px 16px 14px; border-radius: 14px;
  }
  .feature-card .card-top { display: contents; }
  .feature-card .card-icon { grid-column: 1; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 13px; padding: 6px; }
  .feature-card .card-index { display: none; }
  .feature-card h2 { grid-column: 2; grid-row: 1; margin: 0; font-size: 17px; line-height: 1.35; align-self: end; }
  .feature-card p { grid-column: 2; grid-row: 2; font-size: 13px; line-height: 1.55; align-self: start;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .feature-card .card-go { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 0; gap: 0; color: var(--ink-3); }
  .feature-card .card-go .i { width: 18px; height: 18px; }
  .feature-card:hover { transform: none; }
  .feature-card:active { transform: scale(.985); border-color: rgba(242, 102, 43, .55); }
  .feature-grid { gap: 10px !important; }
}

/* ---- 手机端页脚：去掉底部大空白；悬浮按钮在右侧，内容右侧留出位置即可 ---- */
@media (max-width: 760px) {
  footer, .site-footer { padding-bottom: 0; }
  .site-footer .footer-bottom,
  body:has(music-player) .site-footer .footer-bottom,
  body:has(music-player.collapsed) .site-footer .footer-bottom {
    min-height: 0; gap: 14px;
    padding: 24px 76px calc(24px + env(safe-area-inset-bottom)) 0;
  }
  /* 播放器展开成底部横条时，才需要为它留出底部空间 */
  body:has(music-player:not(.collapsed)) .site-footer .footer-bottom { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .help-block { padding-bottom: 48px; }
  .text-link { white-space: nowrap; flex: none; }
}

/* =========================================================
   单页 Hero · 移动端排版 v8
   立绘居右上作背景，文字压在底部深色渐变上；标题/导语按手机阅读节奏重排；
   内容区以圆角卡片形式上叠到 Hero 底部。
   ========================================================= */
.page-lead .ln { display: inline; }
@media (max-width: 760px) {
  .page-hero.has-figure {
    min-height: clamp(380px, 64svh, 500px);
    padding: calc(var(--header-h) + 20px) 0 52px;
    justify-content: flex-end;
  }
  .page-figure {
    right: -24vw; left: auto; top: calc(var(--header-h) - 10px); bottom: auto;
    height: min(64%, 330px); opacity: .92;
  }
  .page-hero .hero-shade {
    background:
      linear-gradient(0deg, rgba(4, 15, 24, .98) 0%, rgba(4, 15, 24, .92) 34%, rgba(4, 15, 24, .45) 62%, rgba(4, 15, 24, .08) 85%),
      linear-gradient(90deg, rgba(4, 15, 24, .55) 0%, rgba(4, 15, 24, 0) 70%);
  }
  .page-head { max-width: none; }
  .page-head .section-label {
    margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; gap: 10px;
  }
  .page-title {
    font-size: clamp(34px, 10.2vw, 44px); line-height: 1.14; letter-spacing: -.03em;
  }
  .page-lead {
    margin-top: 14px; max-width: 21em;
    font-size: 15px; line-height: 1.75; letter-spacing: .01em; color: #b7c5d1;
  }
  .page-lead .ln { display: block; }
  /* 内容区圆角上叠 */
  .page-hero.has-figure + .page-body,
  .page-hero.has-figure ~ .page-body {
    position: relative; z-index: 2;
    margin-top: -24px; padding-top: 28px;
    border-radius: 24px 24px 0 0;
  }
}
@media (max-width: 360px) {
  .page-hero.has-figure { padding-bottom: 46px; }
  .page-title { font-size: 32px; }
  .page-lead { font-size: 14px; }
  .page-head .section-label { font-size: 10px; letter-spacing: .1em; }
}
@media (max-width: 760px) { .page-head .section-label { font-size: 12px; letter-spacing: .1em; } }
@media (max-width: 360px) { .page-head .section-label { font-size: 12px; letter-spacing: .04em; gap: 8px; } }

/* =========================================================
   v10 · 手机端页脚：版权居中两行 + 打赏居中
   ========================================================= */
@media (max-width: 760px) {
  .site-footer .footer-bottom,
  body:has(music-player) .site-footer .footer-bottom,
  body:has(music-player.collapsed) .site-footer .footer-bottom {
    align-items: center; text-align: center; gap: 16px;
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  }
  body:has(music-player:not(.collapsed)) .site-footer .footer-bottom { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .copyright p { font-size: 12.5px; line-height: 1.8; }
  .copyright .nw { display: block; }
  .copyright .sep, .copyright .arr { display: none; }
  .footer-donate { height: 40px; }
  /* 页脚区域给右下悬浮按钮让位：只在按钮会挡住时（滚到底部）由 ui.js 加 .at-bottom 收起 to-top */
}

/* =========================================================
   v10 · 手机端悬浮播放器
   收起态：46px 唱片钮 + 细进度环，展开按钮作为角标收在圆钮左上；
          「回到顶部」与其同宽同轴、同一套玻璃质感，竖向对齐。
   展开态：贴底整宽的迷你播放条（避开安全区），信息更紧凑。
   ========================================================= */
@media (max-width: 760px) {
  music-player { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .mp-fab { width: 48px; height: 48px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
  .mp-fab .mp-disc { inset: 5px; }
  .mp-fab .mp-ico { width: 20px; height: 20px; }
  .mp-fab .mp-svg { width: 10px; height: 10px; }
  .mp-ring circle { stroke-width: 2.2; }
  .mp-fab:not(.playing)::after { inset: -3px; }
  .mp-expand { left: -5px; top: -5px; width: 20px; height: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 2px rgba(10,22,33,.9); }
  .mp-expand svg { width: 10px; height: 10px; stroke-width: 2.6; }
  /* 角标点击热区放大到 36px，视觉不变 */
  .mp-expand::before { content: ""; position: absolute; inset: -8px; }

  .to-top {
    right: 14px; width: 48px; height: 48px;
    bottom: calc(14px + 48px + 12px + env(safe-area-inset-bottom));
    background: rgba(12, 20, 30, .78); color: #fff; border: 0;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  }
  .to-top svg { width: 17px; height: 17px; }
  body:not(:has(music-player)) .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }

  /* 展开态：贴底迷你播放条 */
  music-player:not(.collapsed) { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  music-player:not(.collapsed) .mp-card {
    width: 100%; max-width: none; padding: 9px 8px 9px 9px; column-gap: 12px; border-radius: 20px;
  }
  .mp-toggle { width: 48px; height: 48px; }
  .mp-card .mp-sub { display: none; }
  .mp-title { font-size: 13.5px; }
  .mp-bar-row { margin-top: 2px; }
  .mp-bar { height: 22px; }
  .mp-collapse { align-self: center; width: 36px; height: 36px; }
  body:has(music-player:not(.collapsed)) .to-top { right: 14px; bottom: calc(10px + 66px + 12px + env(safe-area-inset-bottom)); }
}

/* v10 · 角标热区只向外（左上）扩展，不再盖住圆钮中心 */
@media (max-width: 760px) { .mp-expand::before { inset: -10px 0 0 -10px; } }

/* =========================================================
   v10 · 首页 Hero 移动端：不再强制占满一屏，文字上移紧跟立绘；
   立绘底部用渐隐收边，消除横向硬边
   ========================================================= */
@media (max-width: 640px) {
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-figure {
    right: -30%; top: calc(var(--header-h) - 6px); bottom: auto;
    height: min(118vw, 470px); opacity: .7;
  }
  .hero .hero-figure-inner {
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 94%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 94%);
  }
  .hero-inner { padding: calc(var(--header-h) + min(64vw, 260px)) 0 36px; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--navy) 0%, rgba(4, 15, 24, .9) 42%, rgba(4, 15, 24, .25) 72%, rgba(4, 15, 24, .1) 100%),
      linear-gradient(90deg, rgba(4, 15, 24, .55), transparent 70%);
  }
  .hero-kicker { margin-bottom: 18px; font-size: 13px; }
  .hero-foot { margin-top: 32px; }
}
music-player.collapsed { width: 60px; height: 60px; }
@media (max-width: 760px) {
  music-player.collapsed { width: 48px; height: 48px; }
  music-player.collapsed .mp-expand { left: -6px; top: -6px; }
}
@media (max-width: 760px) { .mp-fab { right: auto; bottom: auto; } }
@media (max-width: 640px) { .copyright .dt { display: none; } .copyright { text-align: center; } }

/* v11: 导航「加入群聊」图标在深色/橙色按钮上统一为白色 */
.on-light .nav-button .ico,
.nav-button:hover .ico { filter: brightness(0) invert(1); }
.nav-button:hover { background: var(--accent); color: #fff; }
.on-light .nav-button:hover { background: var(--accent); color: #fff; }
.nav-button:active { transform: scale(.96); }
@media (max-width: 760px) {
  .nav-button { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(10,22,33,.18); }
  .nav-button .ico { filter: brightness(0) invert(1); }
  .nav-button:hover, .nav-button:active { background: var(--accent); }
}

/* v11: 弹窗不显示滚动条；手机端打赏弹窗压缩到一屏内 */
.zt-dialog { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.zt-dialog::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  .zt-modal { padding: 12px; }
  .zt-dialog { max-height: calc(100dvh - 24px); border-radius: 22px; }
  .zt-dialog.is-wide .zt-head { padding: 22px 20px 18px; }
  .zt-dialog.is-wide .zt-eyebrow { margin-bottom: 6px; font-size: 11px; }
  .zt-dialog.is-wide .zt-title { margin-bottom: 4px; font-size: 22px; }
  .zt-dialog.is-wide .zt-sub { font-size: 13px; }
  .zt-dialog.is-wide .zt-close { top: 14px; right: 14px; width: 36px; height: 36px; }
  .zt-dialog.is-wide .zt-body { padding: 16px 16px 18px; }
  .zt-dialog.is-wide .zt-tab { padding: 10px; gap: 8px; }
  .zt-dialog.is-wide .zt-tab img { width: 36px; height: 36px; }
  .zt-dialog.is-wide .zt-tab b { font-size: 15px; }
  .zt-pane { gap: 14px; margin-top: 16px; }
  .zt-qr { max-width: min(240px, 36dvh); padding: 14px 14px 12px; }
  .zt-qr figcaption { margin-top: 10px; font-size: 14px; }
  .zt-p-head { display: none; }
  .zt-p-thanks { margin-top: 0; padding-bottom: 0; border-bottom: 0; font-size: 14px; text-align: center; color: var(--muted); }
  .zt-p-note { display: none; }
}

