:root {
  --rose: #ff8fbd;
  --rose-dark: #e96ca7;
  --rose-soft: #ffd6e8;
  --pink: #ff9ec4;
  --blue: #8ec5ff;
  --blue-soft: #cfe8ff;
  --purple: #c9b6f0;
  --purple-soft: #eee5ff;
  --yellow: #ffe082;
  --cream: #fffafc;
  --paper: #ffffff;
  --ink: #3a3340;
  --ink-soft: #7a7088;
  --line: rgba(255, 158, 196, 0.18);
  --shadow-soft: 0 12px 34px rgba(186, 140, 180, 0.18);
  --shadow-card: 0 10px 28px rgba(186, 140, 180, 0.18);
  --radius-lg: 28px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --maxw: 1120px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.section,
.hero {
  scroll-margin-top: 78px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 251, 0.9);
  backdrop-filter: blur(16px);
}

.nav-inner {
  position: relative;
}

.nav-project-logo {
  display: none;
}

.nav-inner {
  width: min(calc(100% - 40px), var(--maxw));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  color: var(--ink);
}

.wordmark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.language-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(233, 108, 167, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose-dark);
  padding-left: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.language-select-wrap::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid var(--rose-dark);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  pointer-events: none;
  transform: translateY(-50%);
}

.language-select {
  min-width: 58px;
  appearance: none;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 7px 26px 7px 5px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.language-select-wrap:hover,
.language-select-wrap:focus-within {
  border-color: var(--rose-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 143, 189, 0.16);
}

.language-select option {
  color: var(--ink);
  background: #fff;
}

.language-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.language-label,
.language-divider {
  flex: 0 0 auto;
}

.language-label {
  margin-left: 6px;
}

.language-divider {
  margin: 0 4px;
  color: rgba(233, 108, 167, 0.58);
}

.nav-menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(233, 108, 167, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-menu-toggle span {
  display: block;
  width: 13px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--rose-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu-toggle:hover,
.nav-menu-toggle:focus-visible,
.nav-menu-toggle[aria-expanded="true"] {
  border-color: var(--rose-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 143, 189, 0.16);
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 56px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 85%, rgba(255, 185, 215, 0.55), transparent 31%),
    radial-gradient(circle at 82% 18%, rgba(195, 231, 255, 0.75), transparent 34%),
    linear-gradient(180deg, #fffafd 0%, #fff7fb 58%, #f6edff 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(164, 103, 145, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 103, 145, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 90%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
}

.series-index,
.eyebrow {
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
}

.series-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.series-index::before,
.series-index::after {
  content: "";
  width: 30px;
  height: 1px;
  background: rgba(172, 49, 111, 0.45);
}

.hero-title svg {
  display: block;
  width: min(316px, 64vw);
  height: auto;
  margin: 0 auto;
  cursor: pointer;
  /* 提升为持续独立合成层，避免 SVG 描边动画结束/重播时 iOS 把该层 flatten
     导致与 hero 背景层在 subpixel 边界产生 1px 接缝（滚动才恢复的那个割裂） */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.25s ease;
}

.hero-title svg:hover {
  transform: translate3d(0, -3px, 0);
}

.hero-category {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.hero-copy {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.hero-desc {
  text-align: center;
  color: var(--rose-dark);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.product-facts {
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.product-facts span {
  border: 1px solid rgba(172, 49, 111, 0.15);
  border-radius: 999px;
  padding: 7px 15px;
  color: #6b475e;
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(143, 88, 126, 0.06);
}

.hero-mascot {
  position: fixed;
  right: clamp(22px, 7vw, 110px);
  bottom: 54px;
  z-index: 3;
  width: clamp(68px, 7vw, 96px);
  pointer-events: auto;
  filter: drop-shadow(0 10px 16px rgba(118, 75, 107, 0.18));
  animation: none;
}

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

.scroll-hint {
  position: absolute;
  bottom: clamp(48px, 7vh, 72px);
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #ff9ec3 0%, #f07ba9 100%);
  box-shadow: 0 8px 18px rgba(240, 123, 169, 0.3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.scroll-hint:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 11px 22px rgba(240, 123, 169, 0.42);
  filter: brightness(1.04);
}

.scroll-hint:focus-visible {
  outline: 3px solid rgba(172, 49, 111, 0.32);
  outline-offset: 3px;
}

.scroll-hint-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transform: translateY(1px);
}

.section {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 0 auto;
  padding: 104px 0;
}

html.product-details-hidden .characters,
html.product-details-hidden .body-show,
html.product-details-hidden .nav-links a[href="#characters"],
html.product-details-hidden .nav-links a[href="#body"],
html.product-details-hidden .footer-links a[href="#characters"] {
  display: none;
}

html.body-hidden .body-show,
html.body-hidden .nav-links a[href="#body"] {
  display: none;
}

html.team-hidden .team,
html.team-hidden .nav-links a[href="#team"],
html.team-hidden .footer-links a[href="#team"] {
  display: none;
}

html.mascot-hidden .hero-mascot {
  display: none;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2,
.brand-copy h2,
.contact-copy h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -1.2px;
}

.section-desc {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.project-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}

.project-art {
  position: relative;
  flex: 0 0 320px;
  margin-left: 56px;
}


.project-art img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.project-story {
  color: var(--ink-soft);
  font-size: 16px;
  flex: 0 0 460px;
}

.project-story > p + p {
  margin-top: 18px;
}

.project-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 14px;
  color: #fff;
  background: var(--rose-dark);
  font-size: 13px;
  font-weight: 800;
}

.project-story .broadcast {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 18px;
  color: #55485d;
  background: #fff;
  box-shadow: 0 10px 28px rgba(130, 86, 120, 0.08);
  line-height: 1.75;
}

/* 高度由脚本按当前屏幕的最终换行结果预留，避免打字到末行时撑开卡片。 */
.project-story .broadcast-text {
  display: block;
  margin-top: 2px;
}

/* 打字机光标：仅 .js 环境才显示（无 JS 时显示完整文本，不闪光标） */
.js .project-story .broadcast-text[data-tw] .tw-part.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--rose-dark);
  animation: tw-caret 1s steps(1) infinite;
}

@keyframes tw-caret {
  50% {
    opacity: 0;
  }
}

/* 尊重「减少动效」偏好：关闭打字闪烁 */
@media (prefers-reduced-motion: reduce) {
  .js .project-story .broadcast-text[data-tw] .tw-part.is-typing::after {
    animation: none;
  }
}

.lineup {
  margin-top: 76px;
  border: 1px solid rgba(172, 49, 111, 0.12);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.9fr);
  gap: 44px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 225, 238, 0.76), rgba(225, 243, 255, 0.76));
}

.lineup-intro h3 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.35;
}

.lineup-intro p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.lineup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lineup-stats div {
  min-height: 112px;
  border-radius: 20px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(137, 93, 127, 0.08);
}

.lineup-stats strong {
  color: var(--rose-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.lineup-stats span {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.artwork-disclaimer {
  max-width: 640px;
  margin: 12px auto 0;
  border: 1px solid rgba(255, 158, 196, 0.24);
  border-radius: 14px;
  padding: 5px 13px;
  color: #817486;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.6;
}

.char-thumbs-wrap {
  display: none;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 790px;
  margin: 0 auto;
}

/* 9 位角色固定三列，桌面端每张卡片最大 250px。 */
.char-grid .char-card {
  min-width: 0;
}

.char-stage {
  display: none;
}

/* iOS 陀螺仪授权按钮：默认 hidden（hidden 属性生效），仅 iOS 设备由 JS 解除 hidden 显示 */
.gyro-btn {
  display: block;
  margin: 4px auto 22px;
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff9ec3 0%, #f07ba9 100%);
  color: #fff;
  font: 800 15px/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(240, 123, 169, 0.34);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.gyro-btn[hidden] { display: none; }
.gyro-btn:active { transform: scale(0.96); }
.gyro-btn.is-on {
  cursor: default;
  filter: brightness(1.05);
}

.char-card {
  --character-accent: #e5bc4d;
  --character-accent-deep: #b68127;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(120, 84, 113, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.28s ease;
}

/* 倾斜只作用于非背景图层，整卡边框/按钮/背景保持固定 */
.char-card.tilting .char-layer {
  transition: transform 0.08s linear;
  will-change: transform;
}

/* 手机端角色停稳后，以分层归位的方式入场；背景层不参与。 */
.char-card.character-revealing .char-layer {
  transition:
    transform 1s cubic-bezier(0.22, 0.72, 0.24, 1) var(--entry-delay, 0ms),
    opacity 0.55s ease-out var(--entry-delay, 0ms);
}

/* 人物固定在原位，仅由下至上显现，像一束柔和的扫描光扫过立绘。 */
.char-card.character-revealing .char-layer[data-depth="14"] {
  -webkit-clip-path: inset(var(--character-reveal-top, 0%) 0 0 0);
  clip-path: inset(var(--character-reveal-top, 0%) 0 0 0);
  transition:
    clip-path 0.8s cubic-bezier(0.22, 0.72, 0.24, 1) var(--character-reveal-delay, 0ms),
    -webkit-clip-path 0.8s cubic-bezier(0.22, 0.72, 0.24, 1) var(--character-reveal-delay, 0ms),
    transform 1s cubic-bezier(0.22, 0.72, 0.24, 1) var(--entry-delay, 0ms),
    opacity 0.55s ease-out var(--entry-delay, 0ms);
}

/* 支持遮罩的浏览器使用柔边上推，避免一条硬线切过人物。 */
@supports (-webkit-mask-image: linear-gradient(to bottom, transparent, #000)) {
  .char-card.character-revealing .char-layer[data-depth="14"] {
    -webkit-clip-path: none;
    clip-path: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 52%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 52%, #000 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 220%;
    mask-size: 100% 220%;
    -webkit-mask-position: 0 var(--character-reveal-position, 0%);
    mask-position: 0 var(--character-reveal-position, 0%);
    transition:
      -webkit-mask-position 0.8s cubic-bezier(0.22, 0.72, 0.24, 1) var(--character-reveal-delay, 0ms),
      mask-position 0.8s cubic-bezier(0.22, 0.72, 0.24, 1) var(--character-reveal-delay, 0ms),
      transform 1s cubic-bezier(0.22, 0.72, 0.24, 1) var(--entry-delay, 0ms),
      opacity 0.55s ease-out var(--entry-delay, 0ms);
  }
}

.char-card.character-reveal-prepared .char-layer {
  transition: none;
}

/* 移动端未切换到的角色预先停在动画起点，避免完整立绘闪现后才开始揭示。 */
@media (hover: none), (pointer: coarse) {
  .char-grid.mobile-character-reveal-ready .char-card:not(.character-revealing):not(.character-revealed) .char-layer {
    opacity: 0;
  }

  .char-grid.mobile-character-reveal-ready .char-card:not(.character-revealing):not(.character-revealed) .char-layer[data-depth="14"] {
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
  }

  @supports (-webkit-mask-image: linear-gradient(to bottom, transparent, #000)) {
    .char-grid.mobile-character-reveal-ready .char-card:not(.character-revealing):not(.character-revealed) .char-layer[data-depth="14"] {
      -webkit-clip-path: none;
      clip-path: none;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 52%, #000 100%);
      mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 52%, #000 100%);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: 100% 220%;
      mask-size: 100% 220%;
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }
  }
}

.char-card:hover,
.char-card:focus-within {
  outline: none;
  border-color: var(--character-accent);
  box-shadow: none;
}

.char-card:focus-within {
  box-shadow: 0 0 0 3px rgba(172, 49, 111, 0.28);
}

.char-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #24555e;
  background: #b9f0f0;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(42, 105, 114, 0.12);
}

.char-badge.hidden {
  color: #7c3152;
  background: #ffc8dc;
}

.char-badge.variant {
  color: #4f3578;
  background: #d9c9f5;
}

.char-badge.special {
  color: #593a78;
  background: #dfc8f5;
}

.char-img {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-soft), var(--rose-soft));
  cursor: default;
  perspective: 900px;
}

.char-img img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

/* 背景层：以原始尺寸占位撑高显示区，不参与视差/缩放 */
.char-img .char-base {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* hover 缩放只作用于单层立绘卡片，避免影响多层视差的背景/图层 */
.char-card:hover .char-img img:not(.char-base):not(.char-layer) {
  transform: scale(1.025);
}

/* 多层视差分层（饭饭）：背景层之上的图层叠在背景上，随角度摆动 */
.char-img .char-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
  opacity: var(--entry-opacity, 1);
  transform:
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translate3d(
      calc(var(--entry-x, 0px) + var(--tilt-x, 0px)),
      calc(var(--entry-y, 0px) + var(--tilt-y, 0px)),
      0
    )
    scale(var(--entry-scale, 1));
  transition: transform 0.12s ease-out, filter 0.3s ease;
}

.char-card:hover .char-img .char-layer {
  filter: brightness(1.04);
}

/* 3D tilt 跟手高光：仅作用于图片内容区（卡片边框/按钮固定不动） */
.char-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 42%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.char-card.tilting .char-img::before {
  opacity: 1;
}

.char-placeholder {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: #fff2f7;
  font-size: 14px;
  font-weight: 700;
}

.char-info {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 10px;
  padding: 13px 16px 16px;
  text-align: center;
}

.char-card .char-info {
  position: relative;
  padding-left: 21px;
  background: linear-gradient(135deg, #fffefa, #fff9f1);
}

.char-card .char-info::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--character-accent), var(--character-accent-deep));
}

.char-name {
  font-size: 18px;
  font-weight: 900;
}

/* 大图舞台按两个字预留昵称宽度，右侧部别标签在切换角色时不会横向跳动。 */
.char-stage-info .char-name {
  flex: 0 0 2em;
  text-align: center;
  white-space: nowrap;
}

.char-role {
  margin-top: 0;
  color: var(--character-accent-deep, var(--rose-dark));
  font-size: 13px;
  font-weight: 700;
}

.char-note {
  flex-basis: 100%;
}

.char-actions {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.char-action {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #ff9ec3 0%, #f07ba9 100%);
  box-shadow: 0 6px 14px rgba(240, 123, 169, 0.34);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.char-action-primary {
  /* 统一与 .char-action 同色，不再用粉紫渐变 */
  color: #fff;
  background: linear-gradient(120deg, #ff9ec3 0%, #f07ba9 100%);
}

/* 桌面端沿用移动端纸张信息卡的按钮语言。 */
.char-card .char-action {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  letter-spacing: 0.35px;
}

.char-card .char-action-primary {
  border-color: var(--character-accent-deep);
  background-color: var(--character-accent-deep);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 0.65px, transparent 0.85px),
    radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 0.65px, transparent 0.85px);
  background-position: 0 0, 5px 5px;
  background-size: 10px 10px;
}

.char-card .char-action.no-physical {
  border-color: var(--character-accent);
  color: var(--character-accent-deep);
  background-color: #f8f2ec;
  background-image: radial-gradient(rgba(110, 93, 104, 0.06) 0.45px, transparent 0.65px);
  background-size: 8px 8px;
  opacity: 0.62;
  box-shadow: none;
}

.char-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(240, 123, 169, 0.46);
  filter: brightness(1.05);
}

.char-action-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(240, 123, 169, 0.46);
  filter: brightness(1.05);
}

.char-card .char-action:hover,
.char-card .char-action-primary:hover {
  box-shadow: none;
}

.char-action:focus-visible {
  outline: 3px solid rgba(172, 49, 111, 0.28);
  outline-offset: 2px;
}

.physical-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  z-index: 130;
  width: max-content;
  max-width: calc(100% - 36px);
  border: 1px solid rgba(255, 158, 196, 0.42);
  border-radius: 999px;
  padding: 11px 20px;
  color: #76546c;
  background: rgba(255, 250, 253, 0.96);
  box-shadow: 0 14px 36px rgba(143, 92, 125, 0.22);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.physical-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* ===== 实物展示按钮变体 ===== */
/* 有样品时：与「角色介绍」按钮共用 .char-action-primary，使用角色主题色；
   无样品时：显示浅粉色不可点按钮“样品制作中”。 */
.char-action.no-physical {
  color: #fff;
  background: linear-gradient(120deg, #ffc8de 0%, #f3aecb 100%);
  opacity: 0.62;
  cursor: default;
  box-shadow: none;
}

.char-action.no-physical:hover {
  filter: none;
  transform: none;
  box-shadow: none;
}

/* ===== 实物展示弹窗 ===== */
.physical-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.physical-modal.open {
  display: flex;
}

.physical-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 31, 45, 0.62);
  backdrop-filter: blur(7px);
}

.physical-modal-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-height: 94dvh;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(35, 24, 39, 0.34);
  animation: modalIn 0.25s ease;
}

.physical-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px 14px;
  border-bottom: 1px solid rgba(255, 158, 196, 0.2);
}

.physical-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 1px;
}

.physical-modal-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(98, 67, 93, 0.84);
  font: 500 25px/1 Georgia, serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(116, 76, 103, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.physical-modal-close:hover {
  background: rgba(255, 255, 255, 0.96);
}

.physical-modal-close:active {
  transform: scale(0.93);
}

.physical-modal-close:focus-visible,
.modal-nav:focus-visible {
  outline: 3px solid rgba(172, 49, 111, 0.32);
  outline-offset: 2px;
}

.physical-modal-imgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 24px 12px;
}

.physical-modal-img {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.physical-modal-img:last-child {
  margin-bottom: 0;
}

.physical-modal-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
}

.physical-modal-note {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 28px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

body.physical-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .physical-modal {
    padding: 0;
  }
  .physical-modal-box {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
  .physical-modal-imgs {
    flex-direction: column;
    padding: 16px 16px 10px;
    gap: 0;
  }

  .physical-modal-img {
    flex: 0 0 auto;
    margin-bottom: 36px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .physical-modal-img:last-child {
    margin-bottom: 0;
  }

  .physical-modal-img img {
    height: auto;
  }

  .physical-modal-head {
    padding: 16px 18px 12px;
  }
  .physical-modal-note {
    padding: 10px 18px 14px;
  }
}

.brand-section {
  width: min(calc(100% - 40px), var(--maxw));
}

.brand-panel {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  padding: 66px 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 16% 25%, rgba(255, 174, 211, 0.25), transparent 35%),
    linear-gradient(135deg, #33283b 0%, #473450 100%);
  box-shadow: 0 24px 60px rgba(56, 37, 59, 0.22);
}

.brand-identity {
  transform: translateX(-24px);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -4px;
  white-space: nowrap;
}

.brand-slogan {
  margin-top: 18px;
  color: #6b526f;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.brand-copy .eyebrow {
  color: #ffb8d5;
}

.brand-copy h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.brand-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
}

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

.team-card {
  border: 1px solid rgba(118, 80, 111, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.team-avatar {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--rose-soft);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar img[data-tie],
.team-avatar img[data-hearts],
.team-avatar img[data-sprout],
.team-avatar img[data-wake] {
  cursor: pointer;
}

.team-role {
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.team-name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 900;
}

.team-section-head {
  margin-bottom: 24px;
}

.team-section-head h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.4px;
}

.contact {
  width: min(calc(100% - 40px), var(--maxw));
  padding-top: 64px;
}

.contact-panel {
  border: 1px solid rgba(172, 49, 111, 0.12);
  border-radius: 30px;
  padding: 38px 48px;
  background: linear-gradient(140deg, #fff8fb 0%, #faf7ff 52%, #f5fbff 100%);
}

.contact-copy h2 {
  max-width: none;
}

@media (min-width: 761px) {
  .brand-section,
  .team,
  .contact {
    width: min(calc(100% - 40px), 896px);
  }

  .contact-copy {
    text-align: center;
  }

  .team-section-head h2,
  .contact-copy h2 {
    color: var(--ink);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.4px;
  }
}

.contact-copy > p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.contact-email {
  display: inline-block;
  margin-top: 14px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--rose-dark);
  border-bottom: 2px solid var(--pink);
  padding-bottom: 3px;
  -webkit-user-select: text;
  user-select: text;
}

.contact-email:hover {
  color: var(--rose);
}

.footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--maxw));
  margin: 0 auto;
  padding: 22px 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: center;
}

.copyright,
.beian {
  color: var(--ink-soft);
  font-size: 11px;
}

.copyright,
.beian {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
}

.beian {
  margin-top: 0;
}

.beian a {
  color: inherit;
  text-decoration: none;
}

.beian a:hover {
  color: var(--rose-dark);
}

.beian-sep {
  margin: 0 8px;
  color: var(--ink-soft);
}

.beian .gongan {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.beian .gongan img {
  width: 12px;
  height: 12px;
  display: block;
  position: relative;
  top: 1px;
}

html[lang="en"] .beian,
html[lang="ja"] .beian {
  display: none;
}

/* 英文 slogan 远长于中文，必须限制在品牌列内，不能压到右侧介绍文案上。 */
@media (min-width: 981px) {
  html[lang="en"] .brand-panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 52px;
  }

  html[lang="en"] .brand-identity {
    min-width: 0;
  }

  html[lang="en"] .brand-slogan {
    max-width: 520px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.25;
  }

  /* 日语标语比中文更长，保留单行但避免压进右侧介绍区域。 */
  html[lang="ja"] .brand-slogan {
    font-size: clamp(18px, 1.7vw, 24px);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 31, 45, 0.62);
  backdrop-filter: blur(7px);
}

.modal-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: 88dvh;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(35, 24, 39, 0.34);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  color: rgba(98, 67, 93, 0.84);
  background: rgba(255, 255, 255, 0.84);
  font: 500 25px/1 Georgia, serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(116, 76, 103, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover,
.modal-nav:hover {
  background: rgba(255, 255, 255, 0.96);
}

.modal-close:active {
  transform: scale(0.93);
}

.modal-close:focus-visible {
  outline: 3px solid rgba(172, 49, 111, 0.32);
  outline-offset: 2px;
}

.modal-nav {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  padding: 0 0 3px;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(98, 67, 93, 0.84);
  font: 500 30px/1 Georgia, serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(116, 76, 103, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.93);
}

.modal-prev {
  left: 12px;
}

.modal-next {
  right: 12px;
}

.modal-scroll {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow-y: auto;
}

.modal-img {
  width: 58%;
  flex: 0 0 58%;
  overflow: hidden;
  background: #fdfcfb;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(72, 54, 82, 0.14));
  animation: imgIn .35s ease both;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* 详情复用人物层：原图边缘有透明安全区，轻微放大后裁掉留白，人物比例更利落。 */
.modal-img.is-portrait img {
  transform: scale(1.025);
}

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

.modal-body {
  width: 42%;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 30px 30px 34px;
}

.m-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}

.m-head h3 {
  /* 固定按两个字预留宽度，切换单字昵称时不带动右侧款式徽标。 */
  flex: 0 0 2em;
  margin: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
}

.m-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 11px;
  color: #24555e;
  background: #b9f0f0;
  font-size: 11px;
  font-weight: 900;
}

.m-badge.hidden {
  color: #7c3152;
  background: #ffc8dc;
}

.m-badge.variant {
  color: #4f3578;
  background: #d9c9f5;
}

.m-badge.special {
  color: #593a78;
  background: #dfc8f5;
}

.m-role {
  margin-top: 8px;
  color: var(--rose-dark);
  font-weight: 800;
}

.m-note {
  margin-top: 6px;
  color: #786e80;
  font-size: 12px;
}

.m-quotes {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.m-quote {
  border-left: 3px solid var(--rose);
  border-radius: 0 12px 12px 0;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff6fa;
  font-size: 14px;
  line-height: 1.7;
}

.m-bio {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.m-video-wrap {
  margin-top: 0;
  position: relative;
}

.m-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: #fff;
  pointer-events: none;
}

/* 延后请求视频时维持已有的柔和卡片感，避免用户先看到一块空白。 */
.m-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.94) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.76) 0 5px, transparent 6px),
    linear-gradient(135deg, #fff9fc, #fdebf3 52%, #f3e9ff);
  transition: opacity 0.28s ease;
}

.m-video-wrap.is-loaded .m-video-poster {
  opacity: 0;
}

.m-video-cap {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: .5px;
}

.body-show-inner {
  max-width: 960px;
  margin: 0 auto;
}

.body-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: stretch;
}

.body-data {
  margin: 0;
}

.body-data-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 6px 24px rgba(60, 50, 80, .06);
}

.body-data-cap {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: .5px;
}

.body-show-media {
  position: relative;
}

.body-show-media .m-video-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.body-show-media .m-video {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.body-show-note {
  margin: 14px auto 0;
  max-width: 640px;
  padding: 10px 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(120, 100, 150, .14);
  border-radius: 14px;
}

/* 素体姿态展示：拼图只承担概览，单图在独立浏览器中查看。 */
.body-articulation {
  max-width: 760px;
  margin: 52px auto 0;
  padding: 28px;
  text-align: center;
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(255, 158, 196, .22);
  border-radius: var(--radius-md);
}

.body-articulation-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
}

.body-articulation-copy p {
  margin: 3px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.body-articulation-preview {
  position: relative;
  display: block;
  width: 100%;
  margin: 22px auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #17131a;
  box-shadow: 0 10px 28px rgba(60, 50, 80, .12);
  cursor: zoom-in;
}

.body-articulation-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease;
}

.body-articulation-preview:hover img,
.body-articulation-preview:focus-visible img {
  transform: scale(1.018);
}

.body-articulation-preview-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(30, 22, 32, .72);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.body-articulation-note {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.body-articulation-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.body-articulation-modal.open { display: flex; }

.body-articulation-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 16, 24, .82);
  backdrop-filter: blur(8px);
}

.body-articulation-modal-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1024px);
  height: min(900px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  background: #161217;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .36);
  animation: modalIn .25s ease;
}

.body-articulation-modal-head {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px 12px 22px;
  color: #fff;
}

.body-articulation-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.body-articulation-count {
  margin-left: auto;
  margin-right: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.body-articulation-modal-close,
.body-articulation-nav {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.body-articulation-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.body-articulation-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 86px;
  touch-action: pan-y;
}

.body-articulation-stage img {
  display: block;
  /* 高度上限使用 viewport 的明确值，避免竖图在 flex 容器中先撑满宽度再被裁切。 */
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 172px) !important;
  max-height: calc(100dvh - 164px) !important;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.body-articulation-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translateY(-50%);
  font: 300 38px/1 Georgia, serif;
}

.body-articulation-prev { left: 20px; }
.body-articulation-next { right: 20px; }
.body-articulation-modal-close:hover,
.body-articulation-nav:hover { background: rgba(255, 255, 255, .24); }
.body-articulation-modal-close:focus-visible,
.body-articulation-nav:focus-visible,
.body-articulation-preview:focus-visible,
.body-articulation-dot:focus-visible { outline: 3px solid rgba(255, 158, 196, .75); outline-offset: 3px; }

.body-articulation-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 14px 20px 18px;
}

.body-articulation-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
}

.body-articulation-dot.is-active { background: #fff; transform: scale(1.18); }

body.body-articulation-modal-open { overflow: hidden; }

/* AR 实景预览卡片（素体展示） */
.ar-preview {
  display: block;
  margin: 44px auto 0;
  max-width: 560px;
  padding: 26px 24px 30px;
  text-align: center;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 158, 196, .22);
  border-radius: var(--radius-md);
}

.ar-preview .eyebrow {
  display: block;
}

.ar-preview h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.4px;
}

.ar-preview-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.char-grid-status {
  width: 100%;
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-soft);
}

.ar-model {
  width: 100%;
  height: 460px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff, #fdeef5);
  border-radius: var(--radius-md);
  --poster-color: transparent;
  touch-action: none;
}

.ar-model-wrap {
  position: relative;
}

.model-rotate-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: rgba(103, 74, 95, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.model-rotate-icon {
  width: 18px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.ar-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: var(--ink-soft);
}

.ar-poster-text {
  font-size: 17px;
  font-weight: 800;
}

.ar-poster-sub {
  font-size: 13px;
}

.ar-model[data-loaded] .ar-poster {
  display: none;
}

.ar-btn {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 11px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff9ec3 0%, #f07ba9 100%);
  color: #fff;
  font: 800 14px/1 "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .5px;
  box-shadow: 0 8px 18px rgba(255, 138, 190, .3);
  cursor: pointer;
}

/* 非 Safari 的 iOS 浏览器：在描述末尾提示需用 Safari 打开 AR */
.ar-preview-desc .ar-unsupported {
  display: block;
  margin-top: 8px;
  color: var(--purple);
  font-weight: 700;
}

@media (max-width: 760px) {
  .body-show-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .body-data-cap {
    margin-top: 8px;
  }
  /* 移动端单列: 视频恢复文档流, 不再 absolute 跟随左图高度(否则父容器塌缩为 0 高, 视频不可见) */
  .body-show-media .m-video-wrap {
    position: static;
    inset: auto;
    display: block;
  }
  .body-show-media .m-video {
    flex: none;
    min-height: 0;
    height: auto;
  }
  .body-articulation {
    margin-top: 32px;
    padding: 20px 14px;
  }
  .body-articulation-preview { margin-top: 18px; border-radius: 12px; }
  .body-articulation-preview-hint { right: 10px; bottom: 10px; padding: 7px 10px; font-size: 12px; }
  .body-articulation-modal { padding: 0; }
  .body-articulation-modal-box { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .body-articulation-modal-head { min-height: 54px; padding: 10px 14px 10px 18px; }
  .body-articulation-stage { padding: 0 10px; }
  .body-articulation-stage img { max-width: calc(100% - 20px) !important; max-height: calc(100dvh - 138px) !important; }
  .body-articulation-nav { top: 50%; display: grid; width: 38px; height: 38px; transform: translateY(-50%); font-size: 32px; }
  .body-articulation-prev { left: 16px; }
  .body-articulation-next { right: 16px; }
  .body-articulation-dots { gap: 6px; padding: 12px 14px max(16px, env(safe-area-inset-bottom)); }
}
}

/* reveal 仅在 <html class="js"> 下隐藏（JS 失败 / 无 JS 时内容保持可见） */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .project-grid {
    flex-direction: row;
    gap: 28px;
  }

  .project-art {
    flex: 0 0 280px;
    margin-left: 40px;
  }

  .project-story {
    flex: 0 0 360px;
  }

  .lineup {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px 42px;
    text-align: center;
  }

  .team-card {
    flex-direction: column;
    text-align: center;
  }

  .brand-identity {
    transform: none;
  }

  .brand-slogan {
    white-space: normal;
  }

  .brand-copy {
    min-width: 0;
  }

}

@media (max-width: 760px) {
  .nav {
    transition: transform 0.24s ease, opacity 0.2s ease;
  }

  .nav.is-hidden {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
    pointer-events: none;
  }

  .nav-inner {
    width: min(calc(100% - 28px), var(--maxw));
    min-height: 52px;
    gap: 12px;
  }

  .wordmark span {
    font-size: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(224px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 252, 0.98);
    box-shadow: var(--shadow-card);
    font-size: 13px;
    text-align: left;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 9px 12px;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 143, 189, 0.1);
  }

  .nav-links a::after {
    display: none;
  }

  .language-switcher {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .language-select {
    min-width: 54px;
    padding: 6px 24px 6px 5px;
  }

  .language-select-wrap {
    min-height: 32px;
    padding-left: 9px;
  }

  .language-label,
  .language-divider {
    display: none;
  }

  .nav-menu-toggle {
    display: grid;
  }

  .hero {
    min-height: calc(100svh - 52px);
    padding: 62px 18px 84px;
  }

  /* 手机首屏主体略上移，避免视觉重心落得太低。 */
  .hero-inner {
    transform: translateY(-28px);
  }

  .scroll-hint {
    bottom: clamp(64px, 9vh, 88px);
  }

  .series-index {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .series-index::before,
  .series-index::after {
    width: 18px;
  }

  .hero-title svg {
    width: min(310px, 78vw);
  }

  .hero-category {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-copy {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-mascot {
    right: 12px;
    bottom: 55px;
    width: 64px;
  }

  .section {
    width: min(calc(100% - 32px), var(--maxw));
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .characters .section-head {
    margin-bottom: 22px;
  }

  .section-head h2,
  .brand-copy h2,
  .contact-copy h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .project-grid {
    flex-direction: column;
    align-items: center;
    gap: 34px;
  }

  .project-art {
    flex: 0 0 auto;
    width: min(82vw, 440px);
    margin: 0 auto;
  }


  .project-story {
    width: 100%;
    text-align: left;
  }

  .artwork-disclaimer {
    border-radius: 14px;
    padding: 10px 16px;
  }

  .lineup {
    margin-top: 54px;
    padding: 28px 24px;
    gap: 28px;
    text-align: center;
  }

  .lineup-stats div {
    min-height: 96px;
  }

  .char-grid {
    display: none;
  }

  .char-stage {
    display: block;
    width: min(76vw, 310px);
    margin: 0 auto 24px;
  }

  .char-stage-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 7;
    border: 1px solid rgba(120, 84, 113, 0.08);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-card);
    touch-action: pan-y;
  }

  /* 目标角色尚在准备时保留当前画面并覆一层柔光，避免慢网下出现空白或半张立绘。 */
  .char-stage-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background:
      radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.55) 0 3px, transparent 4px),
      radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.48) 0 5px, transparent 6px),
      rgba(255, 246, 251, 0.28);
    transition: opacity 0.2s ease;
  }

  .char-stage-visual.is-preparing::after {
    opacity: 1;
  }

  .char-stage-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    padding: 0 0 3px;
    color: rgba(98, 67, 93, 0.84);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 4px 14px rgba(116, 76, 103, 0.16);
    font: 500 30px/1 Georgia, serif;
    cursor: pointer;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
  }

  .char-stage-nav:active {
    transform: translateY(-50%) scale(0.93);
  }

  .char-stage-nav-prev { left: 10px; }
  .char-stage-nav-next { right: 10px; }

  .char-stage-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #fff;
  }

  .char-stage-scene.is-active {
    z-index: 1;
  }

  .char-stage-scene.is-incoming {
    z-index: 2;
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
  }

  /* 人物固定；其他图层以各自深度轻微偏移，随新场景一起归位。 */
  .char-stage-scene.is-incoming .char-layer[data-depth="8"] {
    --entry-x: -6px;
    --entry-y: 2px;
    --entry-opacity: 0.9;
  }

  .char-stage-scene.is-incoming .char-layer[data-depth="22"] {
    --entry-x: 9px;
    --entry-y: -3px;
    --entry-scale: 1.006;
    --entry-opacity: 0.94;
  }

  .char-stage-scene.is-incoming .char-layer[data-depth="30"] {
    --entry-y: 10px;
    --entry-opacity: 0;
  }

  .char-stage-scene.is-prepared .char-layer {
    transition: none;
  }

  .char-stage-scene.is-incoming.is-settling .char-layer[data-depth="8"] {
    --entry-x: 0px;
    --entry-y: 0px;
    --entry-opacity: 1;
    transition: transform 0.75s cubic-bezier(0.22, 0.72, 0.24, 1) 0.12s, opacity 0.5s ease-out 0.12s;
  }

  .char-stage-scene.is-incoming.is-settling .char-layer[data-depth="22"] {
    --entry-x: 0px;
    --entry-y: 0px;
    --entry-scale: 1;
    --entry-opacity: 1;
    transition: transform 0.9s cubic-bezier(0.22, 0.72, 0.24, 1) 0.35s, opacity 0.6s ease-out 0.35s;
  }

  .char-stage-scene.is-incoming.is-settling .char-layer[data-depth="30"] {
    --entry-y: 0px;
    --entry-opacity: 1;
    transition: transform 0.7s cubic-bezier(0.22, 0.72, 0.24, 1) 0.6s, opacity 0.5s ease-out 0.6s;
  }

  .char-stage-scene.is-incoming.is-revealing {
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
    transition: clip-path 0.78s cubic-bezier(0.22, 0.72, 0.24, 1), -webkit-clip-path 0.78s cubic-bezier(0.22, 0.72, 0.24, 1);
  }

  @supports (-webkit-mask-image: linear-gradient(to bottom, transparent, #000)) {
    .char-stage-scene.is-incoming {
      -webkit-clip-path: none;
      clip-path: none;
      -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 52%, #000 100%);
      mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 52%, #000 100%);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-size: 100% 220%;
      mask-size: 100% 220%;
      -webkit-mask-position: 0 0;
      mask-position: 0 0;
    }

    .char-stage-scene.is-incoming.is-revealing {
      -webkit-mask-position: 0 100%;
      mask-position: 0 100%;
      transition: -webkit-mask-position 0.78s cubic-bezier(0.22, 0.72, 0.24, 1), mask-position 0.78s cubic-bezier(0.22, 0.72, 0.24, 1);
    }
  }

  .char-stage-scene .char-img {
    height: 100%;
    min-height: 0;
  }

  .char-stage-scene .char-base {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .char-thumbs-wrap {
    position: relative;
    display: block;
    margin: 0 -16px 12px;
  }

  .char-thumbs {
    width: min(100%, 300px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    padding: 0 0 4px;
  }

  .char-thumb {
    --thumb-accent: #a7a0b4;
    --thumb-accent-soft: #ebe7ef;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 52px;
    gap: 4px;
    color: var(--ink-soft);
    background: none;
    cursor: pointer;
    opacity: 0.88;
  }

  .char-thumb.active {
    color: var(--thumb-accent);
    opacity: 1;
  }

  .char-thumb-img {
    position: relative;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 12px rgba(97, 65, 91, 0.12);
  }

  .char-thumb.active .char-thumb-img {
    border-color: var(--thumb-accent);
    background: #fff;
  }

  /* 固定取人物图中间 1/3 的正方形区域：与立绘同源，所有角色共享同一取景框。 */
  .char-thumb-img .char-thumb-portrait {
    position: absolute;
    top: -16.2%;
    left: 50%;
    width: 270%;
    height: auto;
    max-width: none;
    transform: translateX(-50%);
  }

  .char-thumb-img img {
    opacity: 0;
    transition: opacity .25s ease;
  }

  .char-thumb-img img.loaded {
    opacity: 1;
  }

  .char-thumb-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    transition: color .2s ease;
  }

  .char-stage-info .char-info {
    position: relative;
    z-index: 1;
    column-gap: 8px;
    padding: 10px 8px 0;
  }

  /* 画册标签：用厚纸感、侧边色条和克制留白承载角色信息。 */
  .char-stage-info--editorial {
    --character-accent: #e5bc4d;
    --character-accent-deep: #b68127;
    position: relative;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid rgba(123, 103, 81, 0.14);
    border-radius: 10px;
    background: linear-gradient(135deg, #fffefa, #fff9f1);
    box-shadow: none;
  }

  .char-stage-info--editorial .char-info {
    padding: 14px 14px 15px 20px;
  }

  .char-stage-info--editorial .char-role {
    color: var(--character-accent-deep);
  }

  .char-stage-info--editorial::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--character-accent), var(--character-accent-deep));
  }

  .char-stage-info .char-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .char-stage-info--editorial .char-actions {
    margin-top: 14px;
    gap: 8px;
  }

  .char-stage-info--editorial .char-action {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    letter-spacing: 0.35px;
  }

  .char-stage-info--editorial .char-action-primary {
    border-color: var(--character-accent-deep);
    background-color: var(--character-accent-deep);
    background-image:
      radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 0.65px, transparent 0.85px),
      radial-gradient(circle, rgba(255, 255, 255, 0.14) 0 0.65px, transparent 0.85px);
    background-position: 0 0, 5px 5px;
    background-size: 10px 10px;
    box-shadow: none;
  }

  .char-stage-info--editorial .char-action-primary:hover {
    box-shadow: none;
  }

  .char-stage-info--editorial .char-action.no-physical {
    border-color: var(--character-accent);
    color: var(--character-accent-deep);
    background-color: #f8f2ec;
    background-image: radial-gradient(rgba(110, 93, 104, 0.06) 0.45px, transparent 0.65px);
    background-size: 8px 8px;
    opacity: 0.62;
    box-shadow: none;
  }

  .char-stage-info .char-action {
    min-height: 40px;
  }

  .brand-section,
  .contact {
    width: min(calc(100% - 24px), 1200px);
  }

  .brand-panel {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 30px;
    text-align: center;
  }

  .brand-identity,
  .brand-copy {
    min-width: 0;
  }

  .brand-identity {
    transform: none;
  }

  .brand-name {
    font-size: clamp(44px, 14vw, 58px);
    letter-spacing: -3px;
  }

  .brand-slogan {
    margin-top: 14px;
    font-size: clamp(22px, 6vw, 28px);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .brand-copy p {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .team-card {
    flex-direction: row;
    padding: 18px;
    text-align: left;
  }

  .team-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .contact-panel {
    padding: 30px 28px;
  }

  .contact-copy {
    text-align: center;
  }

  .contact-email {
    font-size: 19px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal {
    padding: 0;
  }

  .modal-box {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 48px);
    margin: 24px 12px;
  }

  .modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100dvh - 48px);
  }

  .modal-img {
    width: 100%;
    flex: none;
    height: auto;
  }

  .modal-img img {
    width: 100%;
    height: auto;
    max-height: 44dvh;
  }

  .modal-body {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 24px 24px 30px;
  }

}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    gap: 12px;
  }

  .wordmark span {
    font-size: 20px;
  }

  .nav-links {
    gap: 12px;
    font-size: 11px;
  }

  .product-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-facts span:last-child {
    grid-column: 1 / -1;
  }

  .lineup-stats {
    gap: 7px;
  }

  .lineup-stats div {
    min-height: 88px;
    padding: 14px 6px;
  }

  .lineup-stats strong {
    font-size: 31px;
  }

  .lineup-stats span {
    font-size: 10px;
  }

  .team-card {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

.nav {
  border-bottom-color: var(--line);
  background: rgba(255, 250, 252, 0.86);
  backdrop-filter: blur(12px);
}

.nav-links a:hover,
.nav-links a.active,
.eyebrow,
.series-index,
.char-role,
.team-role,
.text-link,
.m-role {
  color: var(--rose);
}

.nav-links a::after {
  background: linear-gradient(120deg, var(--pink), var(--purple));
}

.char-card .char-role {
  color: var(--character-accent-deep);
}

.modal-body .m-role { color: var(--character-accent-deep, var(--rose)); }

.hero {
  background: #fffafc;
}

.hero-pattern {
  opacity: 0.76;
  background:
    radial-gradient(62% 48% at 16% 4%, var(--rose-soft), transparent 58%),
    radial-gradient(58% 44% at 84% 10%, var(--blue-soft), transparent 58%),
    radial-gradient(54% 48% at 50% 100%, var(--purple), transparent 62%);
  background-size: 110% 110%;
  mask-image: none;
  animation: heroDrift 14s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: translate3d(-1%, 0, 0) scale(1); filter: hue-rotate(0deg); }
  to { transform: translate3d(2%, -2%, 0) scale(1.08); filter: hue-rotate(10deg); }
}

.series-index {
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 6px 20px rgba(186, 140, 180, 0.1);
}

.series-index::before,
.series-index::after {
  display: none;
}

.hero-title svg {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-facts span {
  border-color: rgba(255, 158, 196, 0.24);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 6px 18px rgba(186, 140, 180, 0.12);
}

.product-facts span:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 214, 232, 0.92), rgba(255, 255, 255, 0.88));
}

.product-facts span:nth-child(2) {
  background: linear-gradient(135deg, rgba(207, 232, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.product-facts span:nth-child(3) {
  background: linear-gradient(135deg, rgba(238, 229, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.hero-mascot {
  position: fixed;
  top: 68%;
  right: auto;
  bottom: auto;
  left: 80%;
  z-index: 90;
  width: 90px;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  filter: drop-shadow(0 8px 14px rgba(255, 158, 196, 0.35));
  animation: none;
}

.hero-mascot.do-bounce {
  animation: mascotBounce 1.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  48%, 56% { transform: translateY(-20px) scale(1.04, 0.94) rotate(2deg); }
  76% { transform: translateY(3px) scale(0.96, 1.04) rotate(-1deg); }
}

.mascot-parade {
  position: fixed;
  inset: 0;
  z-index: 89;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-parade.is-visible {
  opacity: 1;
  transform: scale(1);
}

.parade-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 32px);
}

.parade-row img {
  width: clamp(54px, 16vw, 76px);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(118, 75, 107, 0.18));
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-parade.is-final-visible .parade-row img {
  opacity: 1;
  transform: scale(1);
}

.parade-row img.is-arriving,
.parade-row img.is-tapped,
.parade-row img.is-leaving {
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.22s ease;
}

.parade-row img.is-arriving {
  opacity: 1;
  transform: scale(1);
  animation: paradeSoloAppear 0.25s cubic-bezier(0.22, 0.8, 0.36, 1) both;
}

@keyframes paradeSoloAppear {
  0% {
    opacity: 0;
    transform: scale(0.58);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.parade-row img.is-tapped {
  opacity: 1;
  transform: scale(1);
}

.parade-row img.is-leaving {
  opacity: 0;
  transform: scale(1);
  transition-duration: 0.23s;
}

.mascot-parade.is-bouncing .parade-row img {
  animation: mascotBounce 1.45s cubic-bezier(0.34, 1.56, 0.64, 1) 3;
}

.parade-logo {
  width: clamp(270px, 63vw, 480px);
  height: auto;
  transform: scale(0.2);
  opacity: 0;
  filter: drop-shadow(0 10px 18px rgba(255, 158, 196, 0.35));
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

@media (max-width: 760px) {
  .mascot-parade {
    padding: 12px;
  }

  .parade-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(100%, 340px);
    gap: 12px;
  }

  .parade-row img {
    width: clamp(54px, 20vw, 76px);
  }
}

.mascot-parade.is-logo-visible .parade-logo {
  opacity: 1;
  transform: scale(1);
}

.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 92;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.95;
  animation: confettiFall ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(calc(100vh + 40px)) rotate(720deg); opacity: 0; }
}

.section {
  padding-top: 86px;
  padding-bottom: 86px;
}

.project {
  padding-bottom: 86px;
}

.characters {
  padding-top: 86px;
}

.section-head h2,
.brand-copy h2,
.contact-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.5px;
}

.project-kicker {
  background: linear-gradient(120deg, var(--pink), var(--purple));
  box-shadow: 0 8px 20px rgba(255, 138, 190, 0.28);
}

.project-story .broadcast {
  border: 1px solid rgba(255, 158, 196, 0.18);
  border-left: 0;
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

.lineup {
  border-color: rgba(255, 158, 196, 0.2);
  background: linear-gradient(140deg, rgba(255, 214, 232, 0.88), rgba(207, 232, 255, 0.84));
  box-shadow: var(--shadow-soft);
}

.lineup-stats div {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(186, 140, 180, 0.14);
}

.lineup-stats div:nth-child(1) { background: rgba(255, 246, 250, 0.9); }
.lineup-stats div:nth-child(2) { background: rgba(242, 248, 255, 0.92); }
.lineup-stats div:nth-child(3) { background: rgba(249, 244, 255, 0.92); }

.lineup-stats strong {
  color: var(--rose);
}

.char-card {
  border-color: rgba(255, 158, 196, 0.12);
  box-shadow: var(--shadow-card);
}

.char-card:hover,
.char-card:focus-within {
  box-shadow: 0 16px 40px rgba(255, 158, 196, 0.32);
}

.char-badge,
.m-badge {
  color: #fff;
  background: linear-gradient(120deg, #84fab0, #8fd3f4);
}

.char-badge.hidden,
.m-badge.hidden {
  color: #fff;
  background: linear-gradient(120deg, #ff9a9e, #fad0c4);
}

.char-badge.variant,
.m-badge.variant {
  color: #fff;
  background: linear-gradient(120deg, #8a76d1, #c49de8);
}

.char-badge.special,
.m-badge.special {
  color: #fff;
  background: linear-gradient(120deg, #a18cd1, #fbc2eb);
}

.brand-panel {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(140deg, var(--rose-soft), var(--purple-soft) 48%, var(--blue-soft));
  box-shadow: var(--shadow-soft);
}

.brand-name {
  color: #6b526f;
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.4);
}

.brand-copy .eyebrow {
  color: var(--rose);
}

.brand-copy p {
  color: var(--ink-soft);
}

.team-grid {
  width: min(100%, 1100px);
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
}

.team-card {
  flex-direction: column;
  text-align: center;
  border-color: rgba(255, 158, 196, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.team-info {
  width: 100%;
}

.team-card:nth-child(1) { box-shadow: 0 10px 28px rgba(255, 158, 196, 0.2); }
.team-card:nth-child(2) { box-shadow: 0 10px 28px rgba(142, 197, 255, 0.2); }
.team-card:nth-child(3) { box-shadow: 0 10px 28px rgba(201, 182, 240, 0.24); }
.team-card:nth-child(4) { box-shadow: 0 10px 28px rgba(255, 224, 130, 0.26); }

.team-avatar {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
  background: linear-gradient(160deg, var(--blue-soft), var(--rose-soft));
  box-shadow: 0 6px 16px rgba(186, 140, 180, 0.18);
}

.contact-panel {
  border-color: rgba(255, 158, 196, 0.2);
  background: linear-gradient(140deg, #fff8fb 0%, #faf7ff 52%, #f5fbff 100%);
  box-shadow: var(--shadow-soft);
}

.contact-copy h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.4px;
}

.footer {
  border-top-color: var(--line);
  background: linear-gradient(160deg, #fff, #fdeef6);
}

/* 电脑端角色详情必须完整显示左侧人物，不允许按容器裁切。 */
.modal-box {
  height: min(760px, calc(100dvh - 48px));
  border-radius: 24px;
}

.modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

.modal-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  background: linear-gradient(160deg, #fff, #fff7fb);
}

.modal-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.modal-body {
  max-height: 100%;
  padding-top: 46px;
}

.m-quote {
  background: var(--cream);
}

@media (max-width: 760px) {

  .hero-mascot {
    width: 76px;
  }

  .physical-toast {
    bottom: 22px;
    padding: 10px 16px;
    font-size: 12px;
  }

  .project {
    padding-bottom: 0;
  }

  .characters {
    padding-top: 0;
    padding-bottom: 44px;
  }

  /* 角色展示之后的模块（素体/品牌/团队/联系）竖向间距减半，手机端不再过空 */
  .body-show {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .brand-section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .team {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .contact {
    padding-top: 44px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .team-card {
    flex-direction: row;
    text-align: left;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 8px;
    text-align: center;
  }

  .team-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .team-role {
    font-size: 10px;
    letter-spacing: 0.4px;
  }

  .team-name {
    margin-top: 1px;
    font-size: 16px;
  }

  .modal-box {
    height: calc(100dvh - 48px);
    max-height: calc(100dvh - 48px);
  }

  .modal-scroll {
    height: auto;
    overflow: hidden;
  }

  .modal-img {
    flex: none;
    height: 44dvh;
    padding: 16px 12px 4px;
  }

  .modal-img img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 24px;
  }
}

/* 窄屏保持品牌主标题完整成行，避免“日常”被拆成孤字。 */
@media (max-width: 480px) {
  .brand-copy h2 {
    white-space: nowrap;
    font-size: clamp(20px, 5.8vw, 27px);
    letter-spacing: -0.8px;
  }

  .contact-copy h2 {
    font-size: clamp(18px, 5.4vw, 25px);
    letter-spacing: -0.6px;
    line-height: 1.35;
  }

  .team-section-head h2 {
    font-size: clamp(18px, 5.4vw, 25px);
    letter-spacing: -0.6px;
    line-height: 1.35;
  }
}

@media (max-width: 360px) {
  .brand-panel {
    padding-right: 24px;
    padding-left: 24px;
  }

  .contact-panel {
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand-copy h2 {
    font-size: clamp(18px, 5.8vw, 21px);
  }
}

@media (max-width: 320px) {
  .char-thumbs {
    width: min(100%, 272px);
    gap: 8px;
  }

  .char-thumb {
    flex-basis: 48px;
  }

  .char-thumb-img {
    width: 48px;
    height: 48px;
  }
}

/* 移动端底部小红书关注引导浮层 */
.xhs-float { display: none; }

@media (max-width: 760px) {
  body.xhs-float-visible {
    padding-bottom: 88px;
  }

  .xhs-float {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(146, 88, 128, 0.12);
  }

  .xhs-float.is-closed {
    display: none;
  }

  .xhs-float-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
  }

  .xhs-float-info {
    flex: 1 1 auto;
    min-width: 0;
  }

  .xhs-float-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
  }

  .xhs-float-logo {
    flex: 0 0 auto;
    width: auto;
    height: 16px;
    vertical-align: middle;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .xhs-float-desc {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.4;
  }

  .xhs-float-btn {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 20px;
    background: linear-gradient(120deg, var(--rose), var(--rose-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(217, 78, 145, 0.28);
  }

  .xhs-float-close {
    position: absolute;
    top: -12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0 0 2px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 4px 14px rgba(116, 76, 103, 0.16);
    color: rgba(98, 67, 93, 0.84);
    font: 500 21px/1 Georgia, serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .xhs-float-close:active {
    transform: scale(0.93);
  }

}

/* 项目进度时间线（#project 系列标题区内：一条线 + 节点，静态、不写具体数字） */
.progress-track {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.progress-node {
  flex: 1;
  position: relative;
  padding-top: 18px;
  text-align: center;
}

.progress-node::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: rgba(255, 158, 196, 0.3);
}

.progress-node:first-child::before {
  display: none;
}

.progress-node.is-done::before,
.progress-node.is-active::before {
  background: var(--rose-dark);
}

/* 未到达的节点不保留半段连线，进度只显示到当前的“样品制作”。 */
.progress-node:not(.is-done):not(.is-active)::before {
  display: none;
}

.node-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 158, 196, 0.32);
}

.progress-node.is-done .node-dot {
  background: var(--rose-dark);
}

.is-active .node-dot {
  width: 16px;
  height: 16px;
  background: linear-gradient(120deg, var(--pink), var(--purple));
  animation: stepPulse 1.8s ease-in-out infinite;
}

.node-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.is-active .node-label {
  color: var(--rose-dark);
}

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 158, 196, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 158, 196, 0); }
}

@media (max-width: 560px) {
  .node-label {
    font-size: 12px;
    margin-top: 8px;
  }
}

/* 移动端 AR 预览卡片收窄 */
@media (max-width: 760px) {
  .ar-preview {
    display: block;
    margin-top: 22px;
    padding: 16px 14px 18px;
  }

  .ar-model {
    height: 300px;
  }
}

/* 关于模块内部保持更紧凑的段落节奏。 */
.brand-section {
  padding-bottom: 43px;
}

.team {
  padding-top: 43px;
  padding-bottom: 43px;
}

.contact {
  padding-top: 43px;
}

@media (max-width: 760px) {
  .brand-section {
    padding-bottom: 22px;
  }

  .team {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .contact {
    padding-top: 22px;
  }
}
