/* ==========================================================================
   桃林墨香 · 首页
   所有类名以 home- 为前缀，避免与其他页面冲突。
   ========================================================================== */

@property --home-r { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --home-accent { syntax: "<color>"; inherits: true; initial-value: #e8879f; }

.page-home { overflow-x: clip; }

/* ---------- 通用：攻略徽章 ---------- */
.home-badge--guide { background: rgba(247, 228, 232, 0.08); color: var(--c-blush); border: 1px solid rgba(247, 228, 232, 0.32); }

/* ---------- 通用：空状态 ---------- */
.home-empty__icon {
  position: relative;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  color: var(--c-gold);
  background: radial-gradient(circle, rgba(217, 191, 134, 0.12), transparent 70%);
  border: 1px solid rgba(217, 191, 134, 0.3);
}
.home-empty__icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(217, 191, 134, 0.22); animation: tl-spin 24s linear infinite; }
.home-empty__icon .icon { width: 26px; height: 26px; }
.home-empty__title { font-family: var(--f-serif); font-weight: 600; font-size: 1.05rem; color: var(--c-text); }
.home-empty__desc { max-width: 340px; font-size: 0.88rem; color: var(--c-muted); }

/* ---------- 通用：离开视口的区块暂停 CSS 循环动画 ---------- */
.home-off, .home-off * { animation-play-state: paused !important; }

/* ---------- 通用：书法标题中的拉丁字母改用 Cinzel ---------- */
.home-latin { font-family: var(--f-en); font-weight: 600; font-size: 0.78em; letter-spacing: 0.04em; }
.home-nowrap { white-space: nowrap; }

/* ---------- 通用：水墨横扫出现（替代 data-reveal="ink"，见交付说明） ---------- */
.home-ink > span { display: inline-block; clip-path: inset(-30% -8% -30% -8%); transition: clip-path 1.6s var(--ease-out) calc(var(--reveal-delay, 0) * 0.12s + 0.1s); }
.js .home-ink[data-reveal]:not(.is-revealed) > span { clip-path: inset(-30% 108% -30% -8%); }

/* ==========================================================================
   右侧区块导航
   ========================================================================== */
.home-dots { display: none; }
@media (min-width: 1200px) {
  .home-dots {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 80;
    display: block;
    translate: 0 -50%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
  }
  .home-dots.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
  .home-dots ul { position: relative; display: flex; flex-direction: column; }
  .home-dots ul::before { content: ""; position: absolute; top: 14px; bottom: 14px; right: 15px; width: 1px; background: linear-gradient(180deg, transparent, rgba(217, 191, 134, 0.3), transparent); }
  .home-dots__fill { position: absolute; top: 15px; bottom: 15px; right: 15px; width: 1px; background: linear-gradient(180deg, var(--c-peach-2), var(--c-peach)); box-shadow: 0 0 8px rgba(232, 135, 159, 0.7); transform-origin: top; transform: scaleY(0); pointer-events: none; }
  .home-dots li { position: relative; z-index: 1; }
  .home-dots a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 32px; height: 30px; padding-right: 12px; }
  .home-dots i {
    display: block;
    width: 7px; height: 7px;
    border: 1px solid rgba(241, 221, 174, 0.55);
    background: var(--c-bg);
    transform: rotate(45deg);
    transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  }
  .home-dots a:hover i, .home-dots a:focus-visible i { border-color: var(--c-peach-2); transform: rotate(45deg) scale(1.25); }
  .home-dots a[aria-current="true"] i { background: var(--c-peach); border-color: var(--c-peach-2); box-shadow: 0 0 12px rgba(232, 135, 159, 0.8); transform: rotate(45deg) scale(1.45); }
  .home-dots__label {
    position: absolute;
    right: 36px;
    padding: 4px 12px;
    white-space: nowrap;
    font-family: var(--f-serif);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--c-text);
    background: rgba(19, 15, 16, 0.92);
    border: 1px solid var(--c-line);
    border-right: 2px solid var(--c-peach);
    opacity: 0;
    translate: 10px 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), translate 0.3s var(--ease-out);
  }
  .home-dots a:hover .home-dots__label, .home-dots a:focus-visible .home-dots__label { opacity: 1; translate: 0 0; }
  .home-dots a:focus-visible { outline-offset: 0; }
}

/* ==========================================================================
   1. 主视觉
   ========================================================================== */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-bg);
}
.home-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.home-hero__slides { position: absolute; inset: -36px; z-index: 0; }
.home-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-in-out); }
.home-hero__slide.is-active { z-index: 2; opacity: 1; }
.home-hero__slide.is-leaving { z-index: 1; opacity: 1; transition: none; }
.home-hero__kb { position: absolute; inset: 0; transform-origin: var(--kb-o, 50% 50%); }
.home-hero__slide.is-active .home-hero__kb,
.home-hero__slide.is-leaving .home-hero__kb { animation: home-kb 11s linear both; }
@keyframes home-kb {
  from { transform: scale(1.03); }
  to { transform: scale(1.15) translate3d(var(--kb-x, -1%), var(--kb-y, -0.5%), 0); }
}
.home-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__img--reveal {
  opacity: 0;
  --home-r: 0%;
  -webkit-mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 var(--home-r), transparent calc(var(--home-r) + 28%));
  mask-image: radial-gradient(circle at var(--fx) var(--fy), #000 var(--home-r), transparent calc(var(--home-r) + 28%));
  transition: opacity 1.2s var(--ease-out), --home-r 0s linear 1.3s;
}
.home-hero__slide.is-active .home-hero__img--reveal {
  opacity: 1;
  --home-r: 140%;
  transition: opacity 1.5s var(--ease-out) 2.5s, --home-r 2.8s var(--ease-out) 2.5s;
}
.home-hero__flash {
  position: absolute;
  left: var(--fx); top: var(--fy);
  width: 46vmax; height: 46vmax;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 244, 0.5) 0%, rgba(245, 185, 199, 0.2) 30%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.home-hero__slide.is-active .home-hero__flash { animation: home-flash 2.6s var(--ease-out) 2.35s both; }
@keyframes home-flash {
  0% { opacity: 0; scale: 0.3; }
  30% { opacity: 1; }
  100% { opacity: 0; scale: 1.25; }
}

.home-hero__mist { position: absolute; inset: -10% -20%; z-index: 1; pointer-events: none; }
.home-hero__mist span {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 38% 20% at 28% 72%, rgba(247, 228, 232, 0.2), transparent 70%),
    radial-gradient(ellipse 34% 16% at 76% 64%, rgba(225, 230, 240, 0.14), transparent 70%);
  animation: home-mist 36s linear infinite alternate;
}
.home-hero__mist span:nth-child(2) {
  background:
    radial-gradient(ellipse 30% 14% at 60% 84%, rgba(247, 228, 232, 0.16), transparent 70%),
    radial-gradient(ellipse 26% 12% at 14% 50%, rgba(225, 230, 240, 0.1), transparent 70%);
  animation-duration: 52s;
  animation-direction: alternate-reverse;
}
@keyframes home-mist { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, -2%, 0); } }

.home-hero__shade {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(270deg, rgba(13, 10, 11, 0.55) 0%, rgba(13, 10, 11, 0) 20%),
    linear-gradient(90deg, rgba(13, 10, 11, 0.9) 0%, rgba(13, 10, 11, 0.66) 26%, rgba(13, 10, 11, 0.18) 52%, rgba(13, 10, 11, 0) 68%),
    linear-gradient(180deg, rgba(13, 10, 11, 0.6) 0%, rgba(13, 10, 11, 0) 20%, rgba(13, 10, 11, 0) 60%, rgba(13, 10, 11, 0.82) 90%, var(--c-bg) 100%);
}
/* 跟随鼠标的柔光 */
.home-hero__light {
  position: absolute; left: 0; top: 0;
  z-index: 3;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 236, 0.16) 0%, rgba(245, 185, 199, 0.07) 34%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.8s var(--ease-out);
}
.home-hero.is-lit .home-hero__light { opacity: 1; }
.home-hero__petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.home-hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 104px;
}
/* 文字区：以官方 Logo 为中心的竖向组合（整体居左，给画面中央的人物显现留出空间） */
.home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  padding-left: clamp(0px, 2.4vw, 48px);
  text-align: center;
}

/* 官方 Logo（brand_logo('xl')）：宽度同时受视口宽、高约束，保证首屏内容不溢出 */
@property --home-ink { syntax: "<percentage>"; inherits: false; initial-value: 160%; }
.home-hero__logo {
  --lw: clamp(240px, min(25vw, (100svh - 470px) * 1.53), 420px); /* 用户要求：电脑版 Logo 调小（原上限 600px / 36vw） */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--lw);
  margin: 0 0 2px;
  font-weight: 400;
  line-height: 1;
}
.home-hero__brand { position: relative; z-index: 1; display: block; width: 100%; }
.home-hero__brand .brand { display: block; }
.home-hero__brand .brand__logo {
  width: 100%;
  height: auto;
  transform-origin: 50% 55%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  /* 墨迹晕开：椭圆遮罩从中心向外扩散（--home-ink 0% → 160% 时整张完全可见） */
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 48% 55%, #000 var(--home-ink), transparent calc(var(--home-ink) + 24%));
  mask-image: radial-gradient(ellipse 60% 75% at 48% 55%, #000 var(--home-ink), transparent calc(var(--home-ink) + 24%));
}
/* Logo 背后的墨晕：压暗背景、托住 Logo，并带一圈缓慢呼吸的桃色微光 */
.home-hero__ink { position: absolute; inset: -16% -14% -10%; z-index: 0; pointer-events: none; }
.home-hero__ink i { position: absolute; border-radius: 50%; }
.home-hero__ink i:nth-child(1) { inset: 6% 4%; background: radial-gradient(ellipse at 50% 52%, rgba(13, 10, 11, 0.62) 0%, rgba(13, 10, 11, 0.36) 42%, transparent 70%); }
.home-hero__ink i:nth-child(2) { left: -2%; top: 26%; width: 48%; height: 58%; background: radial-gradient(ellipse at 50% 50%, rgba(13, 10, 11, 0.4), transparent 68%); }
.home-hero__ink i:nth-child(3) { right: -4%; top: 14%; width: 44%; height: 62%; background: radial-gradient(ellipse at 50% 50%, rgba(13, 10, 11, 0.36), transparent 66%); }
.home-hero__ink::after {
  content: "";
  position: absolute;
  inset: 18% 16% 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, rgba(245, 185, 199, 0.22), rgba(232, 135, 159, 0.08) 45%, transparent 70%);
  opacity: 0;
}
.home-hero.is-in .home-hero__ink::after { animation: home-ink-glow 6s ease-in-out 2.2s infinite; }
@keyframes home-ink-glow { 0%, 100% { opacity: 0.45; scale: 0.96; } 50% { opacity: 1; scale: 1.04; } }
/* 入场迸散的花瓣（容器查询单位：飞散距离随 Logo 尺寸缩放） */
.home-hero__burst { position: absolute; inset: 0; z-index: 2; container-type: size; pointer-events: none; }
.home-hero__burst i {
  position: absolute;
  left: 50%; top: 52%;
  width: 14px; height: 10px;
  margin: -5px 0 0 -7px;
  border-radius: 0 80% 0 80%;
  background: linear-gradient(135deg, #ffe4ea 0%, var(--c-peach-2) 45%, var(--c-peach) 100%);
  box-shadow: 0 0 8px rgba(245, 185, 199, 0.5);
  opacity: 0;
}
.home-hero__en {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: -2px;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--c-gold-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.home-hero__en::before, .home-hero__en::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold)); }
.home-hero__en::after { transform: scaleX(-1); margin-left: -0.42em; }

.home-hero__slogan { font-family: var(--f-serif); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: 0.34em; padding-left: 0.34em; color: var(--c-blush); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
html[lang="en"] .home-hero__slogan { font-family: var(--f-en); letter-spacing: 0.06em; padding-left: 0; font-size: clamp(1.05rem, 1.8vw, 1.5rem); }
.home-hero__word { display: inline-block; }
.home-hero__sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font-size: 0.95rem; letter-spacing: 0.18em; color: var(--c-gold-2); }
html[lang="en"] .home-hero__sub { letter-spacing: 0.06em; }
.home-hero__sub i { width: 6px; height: 6px; border: 1px solid var(--c-gold); transform: rotate(45deg); }

/* 开服倒计时 */
.home-hero__launch { margin-top: 6px; }
.home-launch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 14px;
  border: 1px solid rgba(241, 221, 174, 0.2);
  background: linear-gradient(135deg, rgba(43, 33, 30, 0.6), rgba(13, 10, 11, 0.5));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.home-launch::before, .home-launch::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--c-gold); pointer-events: none; }
.home-launch::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.home-launch::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.home-launch__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.16em; color: var(--c-peach-2); font-size: 0.92rem; }
html[lang="en"] .home-launch__label { letter-spacing: 0.08em; font-family: var(--f-en); font-size: 0.82rem; }
.home-launch__label .icon { animation: home-hourglass 4s var(--ease-in-out) infinite; }
@keyframes home-hourglass { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.home-launch .countdown__unit { min-width: clamp(52px, 5.4vw, 70px); }
.home-launch .countdown__unit b { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
.home-launch__date { font-size: 0.84rem; color: var(--c-text-2); letter-spacing: 0.06em; text-wrap: balance; }
.home-launch--live { flex-direction: column; }
.home-launch__live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-brush); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--c-peach-2); text-shadow: 0 0 24px rgba(232, 135, 159, 0.6); }
html[lang="en"] .home-launch__live { font-family: var(--f-en); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.home-launch__live .icon { width: 1em; height: 1em; color: var(--c-cinnabar); animation: tl-glow-pulse 1.6s ease-in-out infinite; }

.home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }
.home-hero__actions .btn,
.home-final__actions .btn {
  transition: translate 0.5s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s, color 0.35s, background-color 0.35s;
}

/* 右侧幻灯片指示 */
.home-hero__nav {
  position: absolute;
  right: clamp(16px, 3vw, 52px);
  top: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  translate: 0 -50%;
}
.home-hero__dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 4px 0 4px 8px;
  color: rgba(243, 235, 232, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.75);
  transition: color 0.35s;
}
.home-hero__dot-num { font-family: var(--f-en); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.12em; transition: color 0.35s, transform 0.45s var(--ease-out); }
.home-hero__dot-line { position: relative; width: 2px; height: 26px; background: rgba(243, 235, 232, 0.38); box-shadow: 0 0 6px rgba(0, 0, 0, 0.6); overflow: hidden; transition: height 0.6s var(--ease-out); }
.home-hero.is-paused .home-hero__dot.is-active .home-hero__dot-line i { animation: tl-glow-pulse 1.4s ease-in-out infinite; }
.home-hero__dot-line i { position: absolute; inset: 0; background: var(--grad-peach); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: var(--glow-peach); }
.home-hero__dot-title {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-serif);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--c-text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: max-width 0.6s var(--ease-out), opacity 0.4s;
}
.home-hero__dot:hover, .home-hero__dot:focus-visible { color: var(--c-text); }
.home-hero__dot:hover .home-hero__dot-title, .home-hero__dot:focus-visible .home-hero__dot-title { max-width: min(36vw, 440px); opacity: 0.85; }
.home-hero__dot.is-active { color: var(--c-peach-2); }
.home-hero__dot.is-active .home-hero__dot-num { transform: scale(1.18); }
.home-hero__dot.is-active .home-hero__dot-line { height: 72px; }
.home-hero__dot.is-active .home-hero__dot-title { max-width: min(36vw, 440px); opacity: 1; }
.home-hero__toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-top: 6px;
  margin-right: -21px;
  border: 1px solid rgba(241, 221, 174, 0.4);
  border-radius: 50%;
  color: var(--c-gold-2);
  background: rgba(13, 10, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.home-hero__toggle:hover { border-color: var(--c-peach); color: var(--c-peach-2); }
.home-hero__toggle .icon { width: 16px; height: 16px; }
.home-hero__ico-play { display: none; }
.home-hero__toggle[data-paused="true"] .home-hero__ico-pause { display: none; }
.home-hero__toggle[data-paused="true"] .home-hero__ico-play { display: block; }

/* 底部资讯条 */
.home-hero__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  border-top: 1px solid rgba(241, 221, 174, 0.14);
  background: linear-gradient(180deg, rgba(13, 10, 11, 0.25), rgba(13, 10, 11, 0.7));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-hero__bar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.home-ticker { display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; }
.home-ticker__label { display: inline-flex; flex: none; align-items: center; gap: 8px; padding-right: 16px; border-right: 1px solid var(--c-line-strong); font-family: var(--f-serif); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.12em; color: var(--c-gold); }
.home-ticker__label .icon { width: 16px; height: 16px; animation: home-bell 5s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes home-bell { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(14deg); } 90% { transform: rotate(-12deg); } 93% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
.home-ticker__list { position: relative; flex: 1; min-width: 0; height: 44px; overflow: hidden; }
.home-ticker__item {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.home-ticker__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.home-ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.home-ticker__item a { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 44px; }
.home-ticker__title { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.94rem; color: var(--c-text); transition: color 0.3s; }
.home-ticker__item a:hover .home-ticker__title { color: var(--c-peach-2); }
.home-ticker__date { flex: none; font-family: var(--f-en); font-size: 0.8rem; color: var(--c-muted); letter-spacing: 0.08em; }
.home-ticker__more { display: grid; flex: none; place-items: center; width: 44px; height: 44px; color: var(--c-text-2); border: 1px solid var(--c-line-strong); border-radius: 50%; transition: all 0.3s; }
.home-ticker__more:hover { color: var(--c-peach-2); border-color: var(--c-peach); transform: rotate(90deg); }
.home-ticker__more .icon { width: 16px; height: 16px; }
.home-hero__cue { position: absolute; left: 50%; bottom: calc(100% + 18px); translate: -50% 0; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-en); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-text-2); transition: color 0.3s; }
html[lang="zh-CN"] .home-hero__cue { font-family: var(--f-serif); letter-spacing: 0.2em; font-size: 0.82rem; }
.home-hero__cue:hover { color: var(--c-peach-2); }
.home-hero__mouse { position: relative; width: 22px; height: 34px; border: 1px solid rgba(241, 221, 174, 0.6); border-radius: 12px; }
.home-hero__mouse i { position: absolute; top: 6px; left: 50%; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--c-gold-2); animation: tl-scroll-cue 2s var(--ease-in-out) infinite; }

/* 主视觉入场：墨晕铺开 → Logo 墨迹晕开、由大到小落定 → 花瓣迸散 → 标语与按钮依次浮现 */
.js .home-hero:not(.is-in) .home-hero__logo,
.js .home-hero:not(.is-in) .home-hero__word,
.js .home-hero:not(.is-in) .home-hero__sub,
.js .home-hero:not(.is-in) .home-hero__launch,
.js .home-hero:not(.is-in) .home-hero__actions,
.js .home-hero:not(.is-in) .home-hero__nav,
.js .home-hero:not(.is-in) .home-hero__bar { opacity: 0; animation: home-failsafe 0.6s ease 4s forwards; }
@keyframes home-failsafe { to { opacity: 1; } }
.home-hero.is-in .home-hero__ink i { animation: home-ink-spread 1.6s var(--ease-out) both; }
.home-hero.is-in .home-hero__ink i:nth-child(2) { animation-delay: 0.12s; }
.home-hero.is-in .home-hero__ink i:nth-child(3) { animation-delay: 0.22s; }
@keyframes home-ink-spread { from { opacity: 0; scale: 0.35; } to { opacity: 1; scale: 1; } }
.home-hero.is-in .home-hero__brand .brand__logo { animation: home-logo-in 2s var(--ease-out) 0.1s both; }
@keyframes home-logo-in {
  0% { --home-ink: 0%; opacity: 0; transform: scale(1.14); filter: blur(12px) brightness(1.7) drop-shadow(0 10px 30px rgba(0, 0, 0, 0)); }
  18% { opacity: 1; }
  70% { filter: blur(0) brightness(1.08) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); }
  100% { --home-ink: 160%; opacity: 1; transform: none; filter: blur(0) brightness(1) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6)); }
}
.home-hero.is-in .home-hero__burst i { animation: home-burst 2.8s cubic-bezier(0.2, 0.7, 0.3, 1) var(--t, 0.6s) both; }
@keyframes home-burst {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.3); }
  12% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--x) * 1cqw), calc(var(--y) * 1cqh)) rotate(var(--r)) scale(var(--s)); }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.18cqw), calc(var(--y) * 1cqh + 70px)) rotate(calc(var(--r) * 1.8)) scale(var(--s)); }
}
.home-hero.is-in .home-hero__en { animation: tl-fade-up 0.9s var(--ease-out) 1s both; }
.home-hero.is-in .home-hero__word { animation: home-word-in 0.9s var(--ease-out) both; animation-delay: calc(0.9s + var(--i) * 0.06s); }
@keyframes home-word-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.home-hero.is-in .home-hero__sub { animation: tl-fade-up 0.9s var(--ease-out) 1.35s both; }
.home-hero.is-in .home-hero__launch { animation: tl-fade-up 0.9s var(--ease-out) 1.5s both; }
.home-hero.is-in .home-hero__actions { animation: tl-fade-up 0.9s var(--ease-out) 1.65s both; }
.home-hero.is-in .home-hero__nav { animation: home-fade 1s var(--ease-out) 1.4s both; }
.home-hero.is-in .home-hero__bar { animation: home-bar-in 1s var(--ease-out) 1.7s both; }
@keyframes home-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes home-bar-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .home-hero__shade {
    background:
      linear-gradient(270deg, rgba(13, 10, 11, 0.5) 0%, rgba(13, 10, 11, 0) 22%),
      linear-gradient(90deg, rgba(13, 10, 11, 0.85) 0%, rgba(13, 10, 11, 0.5) 45%, rgba(13, 10, 11, 0.1) 80%),
      linear-gradient(180deg, rgba(13, 10, 11, 0.6) 0%, rgba(13, 10, 11, 0) 22%, rgba(13, 10, 11, 0.1) 55%, rgba(13, 10, 11, 0.86) 88%, var(--c-bg) 100%);
  }
}
@keyframes home-kb-m { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (max-width: 768px) {
  /* 竖屏：文字块压紧并贴底，页头与 Logo 之间留出一段画面带给人物（至少 150px，屏幕越高越宽裕） */
  .home-hero__inner { align-items: flex-end; padding-top: calc(var(--header-h) + 150px); padding-bottom: 70px; }
  .home-hero__content { gap: 10px; padding-left: 0; max-width: 100%; margin-inline: auto; }
  .home-hero__logo { --lw: clamp(200px, min(66vw, (100svh - 470px) * 0.85), 340px); }
  /* 每一幕单独缩放、定位：原图纵向范围 pt→pb（index.php）铺满留白（--pk = 1/(pb−pt)），范围中点 --pm 对准留白中线，人物（--fx）水平居中。
     --bt / --bh：页头高度 / 留白高度（home.js 测量）；.home-hero__slides 四周外扩 36px，top 需加回 36px，且不低于主视觉顶边 */
  .home-hero__slide {
    --ih: clamp(60vw, calc(var(--bh, 200px) * var(--pk, 4)), 1300px);
    inset: auto;
    left: 50%;
    top: min(36px, calc(var(--bt, var(--header-h)) + var(--bh, 200px) / 2 - var(--pm, 0.5) * var(--ih) + 36px));
    width: calc(var(--ih) * 1.7768);
    height: var(--ih);
    translate: calc(var(--fx) * -1) 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 97%);
    mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 97%);
  }
  /* 缓推镜头以人物为中心，只缩放不平移，避免把人物推出留白 */
  .home-hero__kb { transform-origin: var(--fx) calc(var(--pm, 0.5) * 100%); }
  .home-hero__slide.is-active .home-hero__kb,
  .home-hero__slide.is-leaving .home-hero__kb { animation-name: home-kb-m; }
  .home-hero__shade {
    background:
      linear-gradient(180deg, rgba(13, 10, 11, 0.6) 0%, rgba(13, 10, 11, 0.04) calc(var(--bt, var(--header-h)) + 24px), rgba(13, 10, 11, 0.06) calc(var(--bt, var(--header-h)) + var(--bh, 200px) - 16px), rgba(13, 10, 11, 0.72) calc(var(--bt, var(--header-h)) + var(--bh, 200px) + 120px), rgba(13, 10, 11, 0.9) calc(var(--bt, var(--header-h)) + var(--bh, 200px) + 260px), var(--c-bg) 100%);
  }
  /* 幻灯片指示：竖排胶囊贴在留白右缘（与页头菜单按钮对齐），不遮挡居中的人物 */
  .home-hero__nav {
    top: calc(var(--bt, var(--header-h)) + 10px); right: var(--gutter);
    translate: none; align-items: center; gap: 0;
    padding: 2px 0;
    border: 1px solid rgba(241, 221, 174, 0.16);
    border-radius: 999px;
    background: rgba(13, 10, 11, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .home-hero__toggle { border-color: transparent; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .home-hero__dot { flex-direction: column; justify-content: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0; }
  .home-hero__dot-title { display: none; }
  .home-hero__dot-num { font-size: 0.74rem; letter-spacing: 0.04em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
  .home-hero__dot-line { height: 8px; }
  .home-hero__dot.is-active .home-hero__dot-line { height: 18px; }
  .home-hero__dot.is-active .home-hero__dot-num { transform: none; }
  .home-hero__toggle { width: 44px; height: 44px; margin: 0; }
  .home-hero__cue { display: none; }
  .home-hero__launch { margin-top: 2px; }
  .home-hero__actions { width: 100%; gap: 10px; margin-top: 2px; }
  /* 中文两个按钮并排；英文文案较长，上下排列 */
  .home-hero__actions .btn { flex: 1 1 140px; min-height: 52px; padding-inline: 1em; }
  html[lang="en"] .home-hero__actions .btn { flex-basis: 100%; }
  .home-launch { width: 100%; gap: 8px; padding-block: 12px 10px; }
}
@media (max-width: 640px) {
  .home-hero__bar-inner { gap: 12px; min-height: 58px; }
  .home-ticker { gap: 10px; }
  .home-ticker__label { padding-right: 10px; }
  .home-ticker__label span, .home-ticker__date, .home-ticker__item .badge { display: none; }
  .home-hero__cue { display: none; }
  .home-hero__sub { font-size: 0.86rem; letter-spacing: 0.1em; }
  html[lang="en"] .home-hero__sub { flex-direction: column; align-items: flex-start; gap: 2px; letter-spacing: 0.03em; }
  html[lang="en"] .home-hero__sub i { display: none; }
  .home-hero__slogan { letter-spacing: 0.22em; }
  .home-launch { padding: 12px 14px 10px; }
  .home-launch__date { font-size: 0.8rem; letter-spacing: 0.02em; }
  .home-launch .countdown { gap: 4px; }
  .home-launch .countdown__unit { min-width: 0; flex: 1; }
  .home-launch .countdown__sep { font-size: 1.1rem; }
}
@media (max-width: 380px) {
  .home-hero__actions .btn { padding-inline: 1.2em; font-size: 1rem; }
}

/* ==========================================================================
   2. 慢服倍率
   ========================================================================== */
.home-rates {
  position: relative;
  padding-block: clamp(52px, 6.5vw, 88px);
  overflow: hidden;
  isolation: isolate;
  border-block: 1px solid rgba(217, 191, 134, 0.16);
  background:
    radial-gradient(ellipse 55% 110% at 50% 0%, rgba(232, 135, 159, 0.13), transparent 62%),
    linear-gradient(180deg, #130e0f 0%, #0f0b0c 100%);
}
.home-rates::before, .home-rates::after { content: ""; position: absolute; left: 50%; width: min(760px, 80%); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, var(--c-gold), transparent); opacity: 0.6; }
.home-rates::before { top: 6px; }
.home-rates::after { bottom: 6px; }
.home-rates__texture {
  position: absolute; inset: 0; z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220V150c90-40 160-90 240-70s120 50 200 30 130-80 230-70 140 70 230 60 150-90 250-80 120 60 210 50 110-40 240-30v180z' fill='%23e8879f' fill-opacity='.05'/%3E%3Cpath d='M0 220v-40c120-30 200-10 300 0s200-40 320-30 180 40 300 30 200-50 320-40 200 30 360 20v60z' fill='%239ba5b1' fill-opacity='.05'/%3E%3C/svg%3E") bottom / 100% 70% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
.home-rates__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3.4vw, 40px); }
.home-rates__head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.home-rates__title { font-family: var(--f-brush); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: 0.12em; color: var(--c-blush); }
html[lang="en"] .home-rates__title { font-family: var(--f-en); font-weight: 600; letter-spacing: 0.04em; font-size: clamp(1.35rem, 2.6vw, 2rem); }
.home-rates__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
.home-rates__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  text-align: center;
  cursor: var(--cur-default);
}
.home-rates__item + .home-rates__item::before {
  content: "";
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(217, 191, 134, 0.45), transparent);
}
.home-rates__item + .home-rates__item::after {
  content: "";
  position: absolute;
  left: -4px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border: 1px solid var(--c-gold);
  background: #120d0e;
  transform: rotate(45deg);
}
.home-rates__value {
  position: relative;
  display: block;
  font-family: var(--f-en);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), filter 0.5s;
}
.home-rates__value::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 160%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 135, 159, 0.28), transparent 62%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s;
}
.home-rates__value b { font-weight: 700; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-rates__item.is-feature .home-rates__value b { background: linear-gradient(135deg, #fff1f4 0%, var(--c-peach-2) 40%, var(--c-peach) 100%); -webkit-background-clip: text; background-clip: text; }
.home-rates__label { font-family: var(--f-serif); font-weight: 600; font-size: 1rem; letter-spacing: 0.16em; color: var(--c-text); }
html[lang="en"] .home-rates__label { letter-spacing: 0.06em; font-size: 0.95rem; }
.home-rates__alt { font-family: var(--f-en); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-muted); }
html[lang="en"] .home-rates__alt { font-family: var(--f-serif); letter-spacing: 0.3em; }
.home-rates__item:hover .home-rates__value { transform: translateY(-4px); filter: drop-shadow(0 0 16px rgba(241, 221, 174, 0.55)); }
.home-rates__item:hover .home-rates__value::before { opacity: 1; }
.home-rates__item:hover .home-rates__label { color: var(--c-peach-2); }
.home-rates__note { font-family: var(--f-serif); font-size: 0.95rem; letter-spacing: 0.12em; color: var(--c-muted); text-align: center; }
html[lang="en"] .home-rates__note { letter-spacing: 0.02em; font-style: italic; }
@media (max-width: 900px) {
  .home-rates__list { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 8px; }
  .home-rates__item { grid-column: span 2; }
  .home-rates__item:nth-child(4) { grid-column: 2 / span 2; }
  .home-rates__item:nth-child(4)::before, .home-rates__item:nth-child(4)::after { display: none; }
}
@media (max-width: 560px) {
  .home-rates__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-rates__item, .home-rates__item:nth-child(4) { grid-column: auto; padding: 14px 6px; border-bottom: 1px solid var(--c-line); }
  .home-rates__item:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .home-rates__item + .home-rates__item::before, .home-rates__item + .home-rates__item::after { display: none; }
  .home-rates__item:nth-child(even)::before { display: block; top: 18%; bottom: 18%; }
}

/* ==========================================================================
   3. 游戏资讯
   ========================================================================== */
.home-news { overflow: hidden; }
.home-news__deco {
  position: absolute;
  right: -8%; top: 6%;
  width: 46vw; max-width: 720px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 135, 159, 0.07), transparent 65%);
  pointer-events: none;
}
.home-news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.home-news__head .section-head { margin-bottom: 0; }
.home-news__all { flex: none; min-height: 44px; }
.home-news__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: stretch; }

/* 焦点轮播 */
.home-feature {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
  isolation: isolate;
}
.home-feature__viewport { position: absolute; inset: 0; touch-action: pan-y; }
.home-feature__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.home-feature__slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition-delay: 0s; }
.home-feature__link { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.home-feature__media { position: absolute; inset: 0; overflow: hidden; background: var(--c-bark); }
.home-feature__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 7s linear, filter 0.6s; filter: brightness(0.82); }
.home-feature__slide.is-active .home-feature__media img { transform: scale(1.02); }
.home-feature__link:hover .home-feature__media img { filter: brightness(0.95); }
.home-feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 10, 11, 0) 25%, rgba(13, 10, 11, 0.6) 58%, rgba(13, 10, 11, 0.95) 100%); }
.home-feature__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) 76px;
}
.home-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--c-text-2); }
.home-feature__pin { display: inline-flex; align-items: center; gap: 4px; color: var(--c-peach-2); font-size: 0.8rem; }
.home-feature__pin .icon { width: 14px; height: 14px; }
.home-feature__title { font-family: var(--f-serif); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.35; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.home-feature__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 620px; font-size: 0.94rem; color: var(--c-text-2); }
.home-feature__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 600; letter-spacing: 0.08em; color: var(--c-peach-2); }
.home-feature__more .icon { transition: transform 0.35s var(--ease-out); }
.home-feature__link:hover .home-feature__more .icon { transform: translateX(5px); }
.home-feature__slide.is-active .home-feature__body > * { animation: tl-fade-up 0.8s var(--ease-out) both; }
.home-feature__slide.is-active .home-feature__body > :nth-child(2) { animation-delay: 0.08s; }
.home-feature__slide.is-active .home-feature__body > :nth-child(3) { animation-delay: 0.16s; }
.home-feature__slide.is-active .home-feature__body > :nth-child(4) { animation-delay: 0.24s; }
.home-feature__controls {
  position: absolute;
  left: clamp(22px, 3vw, 36px); right: clamp(14px, 2vw, 24px); bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-feature__dots { display: flex; gap: 6px; }
.home-feature__dots button { display: grid; align-items: center; width: 40px; height: 32px; }
.home-feature__dots i { position: relative; display: block; height: 3px; background: rgba(243, 235, 232, 0.25); overflow: hidden; }
.home-feature__dots i::after { content: ""; position: absolute; inset: 0; background: var(--c-peach); transform-origin: left; transform: scaleX(0); }
.home-feature__dots button[aria-current="true"] i::after { transform: scaleX(var(--p, 1)); }
.home-feature__dots button:hover i { background: rgba(243, 235, 232, 0.5); }
.home-feature__arrows { display: flex; gap: 8px; }
.home-feature__arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line-strong); border-radius: 50%; background: rgba(13, 10, 11, 0.5); color: var(--c-text); transition: all 0.3s var(--ease-out); }
.home-feature__arrow:hover { border-color: var(--c-peach); color: var(--c-peach-2); background: rgba(232, 135, 159, 0.14); }
.home-feature__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; background: radial-gradient(ellipse at 50% 40%, rgba(232, 135, 159, 0.08), transparent 65%); }

/* 分类列表 */
.home-news__board {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px clamp(16px, 2vw, 26px) 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(35, 27, 28, 0.7), rgba(26, 20, 21, 0.7));
}
.home-news__tabs { flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; }
.home-news__tabs::-webkit-scrollbar { display: none; }
.home-news__tab { flex: none; min-height: 48px; padding: 12px 16px; white-space: nowrap; }
html[lang="en"] .home-news__tab { font-family: var(--f-en); font-size: 0.86rem; letter-spacing: 0.04em; padding-inline: 13px; }
.home-news__tab sup { margin-left: 4px; font-family: var(--f-en); font-size: 0.66rem; color: var(--c-muted); vertical-align: super; }
.home-news__tab[aria-selected="true"] sup { color: var(--c-peach); }
.home-news__panel { display: flex; flex: 1; flex-direction: column; padding-top: 6px; }
.home-news__list li { animation: home-row-in 0.6s var(--ease-out) both; animation-delay: calc(var(--i) * 0.06s); }
@keyframes home-row-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.home-news__row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  border-bottom: 1px dashed var(--c-line);
  transition: background-color 0.3s;
}
.home-news__row::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; background: var(--grad-peach); transform: scaleY(0); transition: transform 0.35s var(--ease-out); }
.home-news__row:hover, .home-news__row:focus-visible { background: rgba(232, 135, 159, 0.06); }
.home-news__row:hover::before, .home-news__row:focus-visible::before { transform: scaleY(1); }
.home-news__date { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-family: var(--f-en); }
.home-news__date b { font-size: 1.15rem; font-weight: 700; color: var(--c-gold-2); }
.home-news__date small { font-size: 0.68rem; color: var(--c-muted); letter-spacing: 0.12em; }
.home-news__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-news__tags { display: flex; align-items: center; gap: 8px; }
.home-news__pin { display: inline-flex; align-items: center; gap: 3px; font-size: 0.74rem; color: var(--c-peach-2); }
.home-news__pin .icon { width: 13px; height: 13px; }
.home-news__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.98rem; color: var(--c-text); transition: color 0.3s; }
.home-news__row:hover .home-news__title { color: var(--c-peach-2); }
.home-news__arrow { width: 18px; height: 18px; color: var(--c-peach-2); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.35s var(--ease-out); }
.home-news__row:hover .home-news__arrow, .home-news__row:focus-visible .home-news__arrow { opacity: 1; transform: none; }
.home-news__empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; padding: 24px; text-align: center; }
.home-news__board-all { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-end; min-height: 44px; margin-top: 8px; padding-inline: 8px; font-size: 0.88rem; color: var(--c-text-2); transition: color 0.3s; }
.home-news__board-all:hover { color: var(--c-peach-2); }
.home-news__board-all .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.home-news__board-all:hover .icon { transform: translateX(4px); }
@media (max-width: 1024px) {
  .home-news__grid { grid-template-columns: minmax(0, 1fr); }
  .home-feature { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .home-news__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home-feature { aspect-ratio: auto; min-height: 420px; }
  .home-feature__summary { -webkit-line-clamp: 3; }
  .home-news__row { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding-inline: 6px; }
  .home-news__arrow { display: none; }
  .home-news__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .home-news__tab { padding-inline: 12px; }
  .home-news__tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
}

/* ==========================================================================
   4. 新地图 · 十里桃林（纯场景展示：全宽场景大图交叉淡入 + 文字叠加）
   ========================================================================== */
.home-taolin {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(600px, 92vh, 940px);
  padding-block: clamp(96px, 11vw, 150px) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-bg);
}
.home-taolin__slides { position: absolute; inset: -24px; z-index: -2; }
.home-taolin__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0;
  scale: 1.04;
  transition: opacity 1.6s var(--ease-in-out);
}
/* 新画面在上层淡入，旧画面保持不透明并继续推镜，淡入完成后才隐藏（不露底、不跳帧） */
.home-taolin__slide.is-active { z-index: 2; opacity: 1; }
.home-taolin__slide.is-leaving { z-index: 1; opacity: 1; transition: none; }
.home-taolin__slide.is-active,
.home-taolin__slide.is-leaving { animation: home-taolin-kb 15s linear both; will-change: scale, translate; }
.home-taolin__slide:nth-child(3n + 2) { transform-origin: 40% 60%; }
.home-taolin__slide:nth-child(3n + 3) { transform-origin: 66% 40%; }
@keyframes home-taolin-kb { from { scale: 1.04; translate: 0 0; } to { scale: 1.14; translate: -1.2% -0.8%; } }
.home-taolin.is-paused .home-taolin__slide { animation-play-state: paused; }
.home-taolin.is-zoomable { cursor: var(--cur-pointer); touch-action: pan-y pinch-zoom; }
.home-taolin.is-zoomable .home-taolin__copy,
.home-taolin.is-zoomable .home-taolin__foot { cursor: var(--cur-default); }
/* 上下渐隐进页面底色；左侧压暗承托文字，右侧保持画面通透 */
.home-taolin__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 60% at 20% 52%, rgba(13, 10, 11, 0.55), transparent 72%),
    linear-gradient(90deg, rgba(13, 10, 11, 0.92) 0%, rgba(13, 10, 11, 0.8) 26%, rgba(13, 10, 11, 0.4) 46%, rgba(13, 10, 11, 0.06) 64%, rgba(13, 10, 11, 0) 76%),
    linear-gradient(180deg, var(--c-bg) 0%, rgba(13, 10, 11, 0) 16%, rgba(13, 10, 11, 0) 74%, rgba(13, 10, 11, 0.7) 90%, var(--c-bg) 100%);
}
.home-taolin .petals-layer { z-index: 0; }

.home-taolin__inner { position: relative; z-index: 1; }
.home-taolin__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 560px; }
.home-taolin__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.home-taolin__tags .badge--new { animation: tl-glow-pulse 2.4s ease-in-out infinite; }
.home-taolin__kicker { margin-top: 4px; }
.home-taolin__title { font-size: clamp(3.4rem, 6.6vw, 6.4rem); line-height: 1.05; color: var(--c-blush); text-shadow: 0 0 40px rgba(232, 135, 159, 0.45), 0 6px 30px rgba(0, 0, 0, 0.7); }
html[lang="en"] .home-taolin__title { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.12; max-width: 12ch; }
.home-taolin__tagline { font-family: var(--f-serif); font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: 0.3em; color: var(--c-peach-2); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
html[lang="en"] .home-taolin__tagline { letter-spacing: 0.03em; font-style: italic; }
.home-taolin__desc { max-width: 500px; color: var(--c-text); line-height: 1.9; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85); }

/* 底部：当前场景名（点击看大图）+ 场景圆点 */
.home-taolin__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.home-taolin__zoom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(241, 221, 174, 0.28);
  border-radius: 999px;
  background: rgba(13, 10, 11, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--c-text);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
html[lang="en"] .home-taolin__zoom { letter-spacing: 0.02em; }
.home-taolin__zoom .icon { width: 16px; height: 16px; color: var(--c-gold); }
.home-taolin__zoom:hover { color: var(--c-peach-2); border-color: var(--c-peach); background: rgba(13, 10, 11, 0.65); }
.home-taolin__zoom [data-taolin-title] { transition: opacity 0.4s; }
.home-taolin__zoom.is-swapping [data-taolin-title] { opacity: 0; }
.home-taolin__map { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-2); }
.home-taolin__map i { font-style: normal; color: var(--c-gold); }
.home-taolin__ctrl { display: flex; align-items: center; gap: 8px; }
.home-taolin__toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(241, 221, 174, 0.28);
  border-radius: 50%;
  color: var(--c-gold-2);
  background: rgba(13, 10, 11, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.home-taolin__toggle:hover { border-color: var(--c-peach); color: var(--c-peach-2); }
.home-taolin__toggle .icon { width: 16px; height: 16px; }
.home-taolin__ico-play { display: none; }
.home-taolin__toggle[data-paused="true"] .home-taolin__ico-pause { display: none; }
.home-taolin__toggle[data-paused="true"] .home-taolin__ico-play { display: block; }
.home-taolin__dots { display: flex; align-items: center; gap: 4px; }
.home-taolin__dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; }
.home-taolin__dot span { position: relative; display: block; width: 28px; height: 3px; overflow: hidden; background: rgba(241, 221, 174, 0.3); transition: width 0.4s var(--ease-out); }
.home-taolin__dot span::after { content: ""; position: absolute; inset: 0; background: var(--grad-peach); transform: scaleX(var(--p, 0)); transform-origin: left; }
.home-taolin__dot[aria-pressed="true"] span { width: 40px; }
.home-taolin__dot:hover span { background: rgba(241, 221, 174, 0.55); }
/* 底栏贴着区块底部，容器铺满视口时（约 769–1300px）给右下角固定的「返回顶部」（52px，right: clamp(14px, 2.5vw, 32px)）留出位置；宽屏时容器居中，余量为 0 */
@media (min-width: 769px) {
  .home-taolin__foot {
    padding-right: calc(var(--gutter) + max(0px, clamp(14px, 2.5vw, 32px) + 64px - var(--gutter) - (100% - min(100%, var(--container) + var(--gutter) * 2)) / 2));
  }
}

@media (max-width: 1024px) {
  .home-taolin__shade {
    background:
      linear-gradient(90deg, rgba(13, 10, 11, 0.88) 0%, rgba(13, 10, 11, 0.6) 50%, rgba(13, 10, 11, 0.2) 100%),
      linear-gradient(180deg, var(--c-bg) 0%, rgba(13, 10, 11, 0) 14%, rgba(13, 10, 11, 0) 76%, var(--c-bg) 100%);
  }
}
/* 竖屏：画面固定高度占上方，文字从画面底部的深色渐变处开始（与文字长短无关） */
@media (max-width: 768px) {
  .home-taolin { --tl-media-h: min(560px, 118vw); justify-content: flex-start; min-height: 0; padding-top: calc(var(--tl-media-h) - 112px); }
  .home-taolin__slides { inset: 0 0 auto; height: var(--tl-media-h); overflow: hidden; }
  .home-taolin__slide { object-position: 46% 50%; }
  .home-taolin__shade {
    inset: 0 0 auto;
    height: var(--tl-media-h);
    background: linear-gradient(180deg, var(--c-bg) 0%, rgba(13, 10, 11, 0) 14%, rgba(13, 10, 11, 0) 50%, rgba(13, 10, 11, 0.8) 82%, var(--c-bg) 100%);
  }
  .home-taolin__copy { max-width: 100%; }
  .home-taolin__tagline { letter-spacing: 0.2em; }
  .home-taolin__inner { padding-bottom: clamp(48px, 10vw, 72px); }
  /* 场景名与切换条移到文字上方，贴着画面底部，像一行图注 */
  .home-taolin__foot { order: -1; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 0 0 18px; padding-bottom: 0; }
  .home-taolin__zoom { min-width: 0; max-width: 100%; }
  .home-taolin__zoom [data-taolin-title] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .home-taolin__ctrl { gap: 4px; }
}
@media (max-width: 480px) {
  .home-taolin__map { display: none; }
  .home-taolin__dot span { width: 22px; }
  .home-taolin__dot[aria-pressed="true"] span { width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-taolin__slide.is-active, .home-taolin__slide.is-leaving { animation: none; scale: 1.04; }
}
/* ==========================================================================
   5. 职业介绍
   ========================================================================== */
.home-classes {
  --home-accent: #e8879f;
  overflow: hidden;
  transition: --home-accent 0.9s var(--ease-out);
}
.home-classes__glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 44% 56% at 30% 62%, color-mix(in srgb, var(--home-accent) 20%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(232, 135, 159, 0.06), transparent 70%);
}
.home-classes .section-head { position: relative; }

.home-classes__picker { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(4px, 0.8vw, 12px); margin-bottom: clamp(24px, 4vw, 48px); }
.home-classes__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: clamp(92px, 9.6vw, 112px);
  padding: 8px 2px 14px;
  color: var(--c-muted);
  transition: color 0.35s;
}
.home-classes__btn-frame { position: relative; display: grid; place-items: center; width: clamp(88px, 9vw, 96px); height: clamp(88px, 9vw, 96px); }
.home-classes__btn-frame::before,
.home-classes__btn-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  transform: rotate(45deg);
  border: 1px solid rgba(217, 191, 134, 0.32);
  transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.4s, background-color 0.4s;
}
.home-classes__btn-frame::before { background: linear-gradient(135deg, rgba(46, 36, 37, 0.95), rgba(13, 10, 11, 0.95)); }
.home-classes__btn-frame::after { inset: 6px; border-color: rgba(217, 191, 134, 0.12); background: none; }
.home-classes__btn img {
  position: relative;
  width: 76px; height: 76px;
  object-fit: contain;
  filter: saturate(0.55) brightness(0.8);
  transition: filter 0.4s, transform 0.5s var(--ease-out);
}
.home-classes__btn-name { font-family: var(--f-serif); font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; white-space: nowrap; }
html[lang="en"] .home-classes__btn-name { font-family: var(--f-en); font-size: 0.78rem; letter-spacing: 0.04em; }
.home-classes__btn-progress { position: absolute; left: 30%; right: 30%; bottom: 4px; height: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.home-classes__btn-progress::after { content: ""; position: absolute; inset: 0; background: var(--home-accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.home-classes__btn:hover { color: var(--c-text); }
.home-classes__btn:hover img { filter: saturate(1) brightness(1); transform: translateY(-3px); }
.home-classes__btn:hover .home-classes__btn-frame::before { border-color: rgba(217, 191, 134, 0.7); }
.home-classes__btn[aria-selected="true"] { color: var(--home-accent); }
.home-classes__btn[aria-selected="true"] .home-classes__btn-frame::before {
  border-color: var(--home-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--home-accent) 30%, #1a1415), rgba(13, 10, 11, 0.95));
  box-shadow: 0 0 24px color-mix(in srgb, var(--home-accent) 55%, transparent), inset 0 0 16px color-mix(in srgb, var(--home-accent) 35%, transparent);
}
.home-classes__btn[aria-selected="true"] .home-classes__btn-frame::after { transform: rotate(135deg); border-color: color-mix(in srgb, var(--home-accent) 60%, transparent); }
.home-classes__btn[aria-selected="true"] img { filter: saturate(1.15) brightness(1.12) drop-shadow(0 0 8px color-mix(in srgb, var(--home-accent) 70%, transparent)); transform: scale(1.04); }
.home-classes.is-auto .home-classes__btn[aria-selected="true"] .home-classes__btn-progress { opacity: 1; }
.home-classes__btn:focus-visible { outline-offset: -2px; }

.home-classes__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
/* 角色区：上方舞台（3D 角色 / 平面回退），下方造型工具条 */
.home-classes__visual { position: relative; display: flex; flex-direction: column; gap: 12px; height: clamp(600px, 49vw, 708px); }
/* --floor：角色脚底离舞台底边的距离（JS 按模型取景计算）；--fscale：角色在画面中的比例（台座随之缩放） */
.home-classes__scene { --floor: 5%; --fscale: 1; position: relative; flex: 1; min-height: 0; container-type: size; }
/* 鼠标视差层（core.js data-mouse-parallax 会设置 translate）；3D 画布与台座不跟随，拖动时不漂移 */
.home-classes__layer { position: absolute; inset: 0; pointer-events: none; }
.home-classes__glyph {
  position: absolute;
  left: 50%; top: 46%;
  translate: -50% -50%;
  font-family: var(--f-brush);
  font-size: clamp(16rem, 32vw, 28rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--home-accent) 62%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--home-accent) 38%, transparent) 0%, color-mix(in srgb, var(--home-accent) 8%, transparent) 70%, transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}
.home-classes__glyph[data-len="2"] { writing-mode: vertical-rl; font-size: clamp(9rem, 17vw, 15rem); letter-spacing: -0.04em; }
.home-classes__halo {
  position: absolute;
  left: 50%; bottom: 2%;
  width: min(84%, 90cqh); aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--home-accent) 30%, transparent), transparent 62%);
  pointer-events: none;
}

/* 台座：中心对准脚底，宽度随角色比例缩放 */
.home-classes__pedestal {
  position: absolute;
  left: 50%; bottom: var(--floor);
  width: calc(min(300px, 70cqw) * (0.45 + 0.55 * var(--fscale)));
  aspect-ratio: 300 / 70;
  translate: -50% 50%;
  pointer-events: none;
  transition: bottom 0.7s var(--ease-out), width 0.7s var(--ease-out);
}
.home-classes__pedestal i, .home-classes__pedestal b { position: absolute; inset: 0; border-radius: 50%; }
.home-classes__pedestal i:first-child {
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--home-accent) 55%, transparent) 0%, color-mix(in srgb, var(--home-accent) 15%, transparent) 45%, transparent 70%);
  animation: tl-glow-pulse 3.2s ease-in-out infinite;
}
.home-classes__pedestal i:nth-child(2) { inset: 14% 9%; border: 1px solid color-mix(in srgb, var(--home-accent) 70%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--home-accent) 50%, transparent), inset 0 0 18px color-mix(in srgb, var(--home-accent) 30%, transparent); }
/* 脚下的接触阴影 + 就位时的光环涟漪 */
.home-classes__pedestal::before { content: ""; position: absolute; inset: 30% 30%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75), transparent 70%); }
.home-classes__pedestal b { inset: 14% 9%; border: 1.5px solid var(--home-accent); opacity: 0; }
.home-classes__scene.is-arrive .home-classes__pedestal b { animation: home-cls-ripple 1.1s var(--ease-out); }
@keyframes home-cls-ripple { 0% { opacity: 0.9; transform: scale(0.5); } 100% { opacity: 0; transform: scale(1.5); } }

/* 3D 画布：左右各多出 7%（伸进与职业说明之间的栏间距，右缘距说明约 14px），长兵器旋转时不被生硬裁切（两侧渐隐）。
   max-width: none：base.css 给 canvas 设了 max-width: 100%，否则画布被压回 100% 宽、整体左移，角色不在台座中线上 */
.home-classes__canvas {
  position: absolute;
  top: 0; left: -7%;
  z-index: 2;
  display: block;
  width: 114%; max-width: none; height: 100%;
  touch-action: pan-y;
  outline: none;
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  transition: opacity 0.5s var(--ease-out), translate 0.6s var(--ease-out), scale 0.6s var(--ease-out), filter 0.5s;
}
.home-classes .home-classes__canvas[tabindex] { cursor: grab; }
.home-classes .home-classes__canvas[tabindex].is-dragging { cursor: grabbing; }
.home-classes__scene[data-mode="3d"][data-state="ready"] .home-classes__canvas { opacity: 1; }
.home-classes__scene[data-mode="3d"][data-state="loading"] .home-classes__canvas { opacity: 0.18; filter: blur(2px) saturate(0.4); }
.home-classes__scene.is-swap[data-mode] .home-classes__canvas { opacity: 0; translate: 0 10px; scale: 0.985; filter: none; transition-duration: 0.2s; }
.home-classes__scene[data-mode="2d"] .home-classes__canvas { display: none; }
/* 焦点环（画布带渐隐遮罩，描边画在独立元素上） */
.home-classes__focus { position: absolute; inset: 0; z-index: 3; border-radius: var(--r-md, 8px); box-shadow: inset 0 0 0 2px var(--c-gold-2); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.home-classes__canvas:focus-visible ~ .home-classes__focus { opacity: 1; }

/* 平面回退（figure.js）：高度取「舞台高 94%」与「舞台宽」的较小值 */
.home-classes__flat { position: absolute; inset: 0; z-index: 2; display: none; pointer-events: none; }
.home-classes__scene[data-mode="2d"] .home-classes__flat, .no-js .home-classes__flat { display: block; }
.home-classes__fig { position: absolute; left: 0; right: 0; bottom: 6%; height: min(94cqh, 100cqw); min-height: 0; }
.home-classes__fig .figure__body { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.3)); }

/* 载入中：墨色双环（快速载入不闪现：延迟 0.25s 才出现） */
.home-classes__loader {
  position: absolute;
  left: 50%; top: 46%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 14px;
  translate: -50% -50%;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--c-text-2);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}
html[lang="en"] .home-classes__loader { letter-spacing: 0.06em; }
.js .home-classes__scene[data-state="idle"] .home-classes__loader,
.home-classes__scene[data-mode="3d"][data-state="loading"] .home-classes__loader { opacity: 1; visibility: visible; transition: opacity 0.4s 0.25s, visibility 0s; }
/* 深色底盘把载入环与背后的大字分开 */
.home-classes__loader::before { content: ""; position: absolute; inset: -48px -72px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 8, 9, 0.82), rgba(10, 8, 9, 0.5) 55%, transparent); }
.home-classes__spin { position: relative; display: grid; place-items: center; width: 88px; height: 88px; }
.home-classes__spin i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--home-accent) 16%, transparent); border-top-color: var(--home-accent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--home-accent) 70%, transparent)); animation: tl-spin 1.1s linear infinite; }
.home-classes__spin i:nth-child(2) { inset: 9px; border-width: 1.5px; border-color: transparent; border-bottom-color: var(--c-gold-2); filter: none; animation-duration: 1.7s; animation-direction: reverse; }
/* 中心：该职业的 97 级武器图标（与职业按钮同一张图） */
.home-classes__spin img { position: relative; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--home-accent) 60%, transparent)); animation: tl-glow-pulse 1.6s ease-in-out infinite; }
.home-classes__loader > span:last-child { color: var(--c-text); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.home-classes__layer { transition: opacity 0.4s; }
.home-classes__scene[data-state="loading"] .home-classes__layer { opacity: 0.4; }

/* 「3D · 拖动旋转 360°」提示（不拦截拖动） */
.home-classes__hint {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-text-2);
  background: rgba(13, 10, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  translate: 0 -6px;
  transition: opacity 0.5s, translate 0.5s var(--ease-out);
}
.home-classes__hint b { padding: 3px 8px; border-radius: 999px; font-family: var(--f-en); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: color-mix(in srgb, var(--home-accent) 55%, #1a1415); box-shadow: 0 0 12px color-mix(in srgb, var(--home-accent) 45%, transparent); }
.home-classes__hint .icon { width: 16px; height: 16px; color: var(--home-accent); animation: home-cls-sway 2.6s ease-in-out infinite; }
.home-classes__hint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes home-cls-sway { 0%, 100% { rotate: -25deg; } 50% { rotate: 25deg; } }
.home-classes__scene[data-mode="3d"][data-state="ready"] .home-classes__hint { opacity: 1; translate: none; }
.home-classes__scene[data-mode="3d"][data-state="ready"].is-touched .home-classes__hint { opacity: 0.5; }

/* 造型工具条：性别（左，跨两行）· 换装 + 服装 / 换发型 + 发型（两行对齐；平面回退时只有第一行） */
.home-classes__tools {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto minmax(0, auto);
  grid-template-areas: "seg dress outfit" "seg hair hairs";
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}
.home-classes__tools[data-hair="off"] { grid-template-areas: "seg dress outfit"; }
.no-js .home-classes__tools { display: none; }
.home-classes__seg { grid-area: seg; }
.home-classes__dress--outfit { grid-area: dress; }
.home-classes__wear--outfit { grid-area: outfit; }
.home-classes__dress--hair { grid-area: hair; }
.home-classes__wear--hair { grid-area: hairs; }
.home-classes__seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: rgba(13, 10, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-classes__seg button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--f-serif);
  font-size: 0.92rem;
  color: var(--c-muted);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
html[lang="en"] .home-classes__seg button { font-family: var(--f-en); font-size: 0.8rem; padding: 0 12px; }
.home-classes__seg button:hover { color: var(--c-text); }
.home-classes__seg button[aria-pressed="true"] { color: #fff; background: color-mix(in srgb, var(--home-accent) 30%, #1a1415); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--home-accent) 75%, transparent), 0 0 14px color-mix(in srgb, var(--home-accent) 30%, transparent); }
.home-classes__seg button:focus-visible { outline-offset: -2px; }
.home-classes__dress {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  justify-self: stretch;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--c-text-2);
  background: rgba(13, 10, 11, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.home-classes__dress:hover { border-color: var(--home-accent); color: #fff; background: color-mix(in srgb, var(--home-accent) 16%, rgba(13, 10, 11, 0.6)); }
.home-classes__dress .icon { width: 18px; height: 18px; transition: transform 0.6s var(--ease-out); }
.home-classes__dress:hover .icon { transform: rotate(180deg); }
/* 换装：衣架图标轻轻一晃（下一套；随机造型的「洗牌」图标只用于随机按钮） */
.home-classes__dress--outfit .icon { transform-origin: 50% 22%; }
.home-classes__dress--outfit:hover .icon { transform: rotate(-14deg); }
/* 换发型：梳子图标「梳一下」 */
.home-classes__dress--hair:hover .icon { transform: translate(2px, 1px) rotate(-14deg); }
.home-classes__wear { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.home-classes__outfit { display: -webkit-box; max-width: 17em; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--f-serif); font-size: 0.86rem; line-height: 1.35; letter-spacing: 0.06em; color: var(--c-text); }
html[lang="en"] .home-classes__outfit { font-family: var(--f-en); font-size: 0.8rem; letter-spacing: 0.02em; }
/* 圆点按钮：可点区域 --pip × 36px（图形仍是小菱形 / 小圆点）；上下用负外边距，不加高工具条。
   手机上横向空间有限，宽度收窄（≥ 24px），高度仍为 36px */
.home-classes__pips { --pip: 36px; display: flex; margin-left: calc((var(--pip) - 10px) / -2); }
.home-classes__pips button { display: grid; place-items: center; width: var(--pip); height: 36px; margin-block: -6px; }
.home-classes__pips i { width: 7px; height: 7px; rotate: 45deg; background: rgba(217, 191, 134, 0.28); transition: background-color 0.3s, scale 0.3s, box-shadow 0.3s; }
.home-classes__pips button:hover i { background: rgba(217, 191, 134, 0.7); }
.home-classes__pips button[aria-pressed="true"] i { background: var(--home-accent); scale: 1.35; box-shadow: 0 0 8px var(--home-accent); }
.home-classes__pips button:disabled i { opacity: 0.25; }
/* 悬停 / 键盘聚焦圆点：浮出该套服装的头像 + 名称（发型圆点只浮出名称）；display 切换，头像小图第一次悬停时才下载 */
.home-classes__pips button { position: relative; }
.home-classes__tip {
  position: absolute; left: 50%; bottom: calc(100% + 2px); z-index: 6;
  display: none;
  flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 10px 6px;
  translate: -50% 0;
  border: 1px solid rgba(241, 221, 174, 0.3);
  border-radius: 12px;
  background: rgba(19, 15, 16, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 18px color-mix(in srgb, var(--home-accent) 18%, transparent);
  font-size: 0.74rem; line-height: 1.3; letter-spacing: 0.04em;
  color: var(--c-text);
  white-space: nowrap;
  pointer-events: none;
  animation: home-tip-in 0.22s var(--ease-out);
}
.home-classes__tip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 30%, #3a2c2a, #15100f); box-shadow: 0 0 0 1px var(--c-gold-2), 0 0 12px color-mix(in srgb, var(--home-accent) 45%, transparent); }
.home-classes__tip--text { padding: 5px 10px; }
.home-classes__pips button:not(:disabled):hover .home-classes__tip,
.home-classes__pips button:focus-visible .home-classes__tip { display: flex; }
@media (hover: none) { .home-classes__pips button:not(:focus-visible) .home-classes__tip { display: none !important; } }
@keyframes home-tip-in { from { opacity: 0; translate: -50% 4px; } }
/* 发型圆点（与服装的菱形区分）：显示该发型的发色（全站共用的发型色样） */
.home-classes__pips--hair i { width: 9px; height: 9px; rotate: none; border-radius: 50%; background: color-mix(in srgb, var(--tone, #8a7a6a) 82%, #fff); box-shadow: 0 0 0 1px rgba(241, 221, 174, 0.3); opacity: 0.75; transition: opacity 0.3s, scale 0.3s, box-shadow 0.3s; }
.home-classes__pips--hair button:hover i { background: color-mix(in srgb, var(--tone, #8a7a6a) 82%, #fff); opacity: 1; }
.home-classes__pips--hair button[aria-pressed="true"] i { background: color-mix(in srgb, var(--tone, #8a7a6a) 82%, #fff); opacity: 1; scale: 1.3; box-shadow: 0 0 0 1.5px #140e0f, 0 0 0 2.5px var(--home-accent), 0 0 10px var(--home-accent); }
.home-classes__scene.is-dress .home-classes__halo { animation: home-cls-dress 0.9s var(--ease-out); }
.home-classes__scene.is-hair .home-classes__halo { animation: home-cls-dress 0.7s var(--ease-out); }
@keyframes home-cls-dress { 0% { opacity: 1; scale: 1; } 35% { opacity: 1; scale: 1.08; filter: brightness(1.6); } 100% { opacity: 1; scale: 1; } }

.home-classes__info { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.home-classes__role { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-size: 0.86rem; letter-spacing: 0.24em; color: var(--home-accent); }
html[lang="en"] .home-classes__role { font-family: var(--f-en); letter-spacing: 0.12em; font-size: 0.78rem; text-transform: uppercase; }
.home-classes__role::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.home-classes__name { font-size: clamp(3.2rem, 6vw, 5rem); line-height: 1; color: var(--c-text); text-shadow: 0 0 30px color-mix(in srgb, var(--home-accent) 45%, transparent); }
html[lang="en"] .home-classes__name { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.home-classes__epithet { font-family: var(--f-serif); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.3em; color: var(--c-gold-2); }
html[lang="en"] .home-classes__epithet { letter-spacing: 0.06em; font-family: var(--f-en); font-size: 1rem; }
.home-classes__desc { max-width: 520px; padding: 2px 0 2px 14px; border-left: 2px solid var(--home-accent); color: var(--c-text-2); font-size: 0.98rem; }
.home-classes__stats { width: 100%; max-width: 480px; margin-top: 4px; }
.home-classes__stats-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--f-serif); font-size: 0.86rem; letter-spacing: 0.24em; color: var(--c-gold-2); }
.home-classes__stats-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--c-line-strong), transparent); }
html[lang="en"] .home-classes__stats-title { font-family: var(--f-en); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.76rem; }
.home-classes__stat { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; padding: 3px 0; }
html[lang="en"] .home-classes__stat { grid-template-columns: 90px minmax(0, 1fr); }
.home-classes__stat dt { font-size: 0.88rem; color: var(--c-text-2); }
.home-classes__stat dd { display: flex; align-items: center; gap: 12px; margin: 0; }
.home-classes__stat dd b { width: 14px; font-family: var(--f-en); font-size: 0.9rem; color: var(--c-gold-2); text-align: right; }
.home-classes__bar {
  position: relative;
  flex: 1;
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 calc(20% - 3px), transparent calc(20% - 3px) 20%);
}
.home-classes__bar i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--home-accent), color-mix(in srgb, var(--home-accent) 60%, #fff));
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent calc(20% - 3px) 20%);
  mask-image: repeating-linear-gradient(90deg, #000 0 calc(20% - 3px), transparent calc(20% - 3px) 20%);
  clip-path: inset(0 calc(100% - var(--v) * 20%) 0 0);
  box-shadow: 0 0 12px color-mix(in srgb, var(--home-accent) 60%, transparent);
  transition: clip-path 0.9s var(--ease-out) calc(var(--i, 0) * 0.07s + 0.15s);
}
.home-classes__stat:nth-child(1) .home-classes__bar i { --i: 0; }
.home-classes__stat:nth-child(2) .home-classes__bar i { --i: 1; }
.home-classes__stat:nth-child(3) .home-classes__bar i { --i: 2; }
.home-classes__stat:nth-child(4) .home-classes__bar i { --i: 3; }
.home-classes__stat:nth-child(5) .home-classes__bar i { --i: 4; }
/* 评分说明（用户图鉴原文） */
.home-classes__note { display: flex; gap: 8px; margin-top: 10px; font-size: 0.76rem; line-height: 1.65; color: var(--c-muted); }
.home-classes__note .icon { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--c-gold-2); opacity: 0.8; }
.home-classes__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: 100%; max-width: 520px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.home-classes__wname { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.home-classes__wname small { font-size: 0.78rem; color: var(--c-muted); letter-spacing: 0.08em; }
.home-classes__wname b { font-family: var(--f-serif); color: var(--c-text); }
.home-classes__foot .link-arrow { min-height: 44px; }

/* 职业切换编排 */
.home-classes__stage.is-out .home-classes__info > * { opacity: 0; transform: translateY(10px); transition: opacity 0.22s, transform 0.22s; }
.home-classes__stage.is-out .home-classes__glyph { opacity: 0; transform: scale(1.06); transition: opacity 0.25s, transform 0.25s; }
.home-classes__stage.is-in .home-classes__info > * { animation: home-rise 0.75s var(--ease-out) both; animation-delay: calc(0.12s + var(--d) * 0.07s); }
.home-classes__stage.is-in .home-classes__glyph { animation: home-glyph-in 1.3s var(--ease-out) both; }
@keyframes home-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes home-glyph-in { from { opacity: 0; transform: scale(1.22); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (max-width: 900px) {
  /* 两行各 4 个，避免 5 + 3 的不均匀换行 */
  .home-classes__picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; max-width: 560px; margin-inline: auto; }
  .home-classes__btn { width: 100%; }
  .home-classes__stage { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-classes__visual { height: clamp(568px, 96vw, 688px); }
  .home-classes__info { align-items: stretch; }
  .home-classes__name, .home-classes__role, .home-classes__epithet { align-self: flex-start; }
}
@media (max-width: 640px) {
  .home-classes__picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .home-classes__btn { width: auto; min-width: 0; padding-bottom: 12px; }
  .home-classes__btn-frame { width: 70px; height: 70px; }
  .home-classes__btn-frame::before { inset: 11px; }
  .home-classes__btn-frame::after { inset: 4px; }
  .home-classes__btn img { width: 60px; height: 60px; }
  .home-classes__btn-name { font-size: 0.9rem; letter-spacing: 0.04em; }
  html[lang="en"] .home-classes__btn-name { font-size: 0.7rem; white-space: normal; text-align: center; line-height: 1.2; }
  .home-classes__visual { height: 560px; }
  /* 画布延伸到两侧页边距 */
  .home-classes__canvas { left: -16px; width: calc(100% + 32px); }
  .home-classes__hint { font-size: 0.72rem; }
  /* 性别改为竖排，工具条两行仍放得下（360px 宽也不横向溢出） */
  .home-classes__tools { gap: 8px 10px; }
  .home-classes__seg { flex-direction: column; border-radius: 22px; }
  .home-classes__seg button, html[lang="en"] .home-classes__seg button { padding: 0 10px; }
  .home-classes__dress { padding: 0 12px; }
  /* 英文按钮文字太长：只留图标（无障碍名称仍是 aria-label 的完整说明），名称与圆点紧挨在右侧 */
  html[lang="en"] .home-classes__dress { width: 44px; padding: 0; justify-self: start; }
  html[lang="en"] .home-classes__dress span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .home-classes__outfit { max-width: 100%; }
  .home-classes__pips { --pip: 28px; }
  .home-classes__stat, html[lang="en"] .home-classes__stat { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .home-classes__pips { --pip: 24px; }
  html[lang="en"] .home-classes__pips { --pip: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-classes__spin i, .home-classes__spin img, .home-classes__hint .icon, .home-classes__pedestal i:first-child { animation: none; }
  .home-classes__canvas, .home-classes__pedestal, .home-classes__hint { transition: none; }
  .home-classes__scene.is-arrive .home-classes__pedestal b, .home-classes__scene.is-dress .home-classes__halo, .home-classes__scene.is-hair .home-classes__halo { animation: none; }
  .home-classes__dress .icon { transition: none; }
  .home-classes__tip { animation: none; }
}

/* ==========================================================================
   6. 新武器 · 新服饰
   ========================================================================== */
.home-armory {
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(217, 191, 134, 0.07), transparent 70%),
    var(--c-bg-2);
}
.home-flow {
  --spacing: clamp(118px, 18vw, 260px);
  position: relative;
  height: clamp(440px, 44vw, 580px);
  perspective: 1400px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: var(--cur-pointer);
  outline-offset: 4px;
}
.home-flow.is-dragging { cursor: var(--cur-pointer); }
.home-flow__spot {
  position: absolute;
  left: 50%; top: -6%;
  width: min(560px, 80%); height: 86%;
  translate: -50% 0;
  background: linear-gradient(180deg, rgba(247, 228, 232, 0.16), rgba(247, 228, 232, 0.04) 60%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(8px);
  pointer-events: none;
}
.home-flow__rune {
  position: absolute;
  left: 50%; top: 40%;
  width: clamp(280px, 30vw, 420px); aspect-ratio: 1;
  translate: -50% -50%;
  color: var(--c-gold);
  opacity: 0.5;
  pointer-events: none;
}
.home-flow__rune svg { width: 100%; height: 100%; animation: tl-spin 70s linear infinite; }
.home-rune__line { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.7; }
.home-rune__line--faint { opacity: 0.3; }
.home-rune__line--dash { stroke-dasharray: 2 6; opacity: 0.6; }
.home-rune__ticks line { stroke: currentColor; stroke-width: 1; opacity: 0.55; }
.home-rune__glyphs { fill: currentColor; opacity: 0.75; }
.home-flow__floor {
  position: absolute;
  left: 50%; top: 68%;
  width: min(520px, 70%); height: 80px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(232, 135, 159, 0.28), transparent 68%);
  pointer-events: none;
}
.home-flow__track { position: absolute; inset: 0 0 120px; transform-style: preserve-3d; }
.home-flow__item {
  --abs-c: min(var(--abs), 3);
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(150px, 20vw, 270px);
  height: 88%;
  z-index: calc(10 - var(--abs-r, 0));
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--off) * var(--spacing)))
    translateZ(calc(var(--abs-c) * -150px))
    rotateY(calc(var(--off) * -24deg))
    scale(calc(1.06 - var(--abs-c) * 0.13));
  opacity: calc(1 - var(--abs-c) * 0.3);
  filter: brightness(calc(1 - var(--abs-c) * 0.28)) saturate(calc(1 - var(--abs-c) * 0.2));
  transition: transform 0.75s var(--ease-out), opacity 0.6s var(--ease-out), filter 0.6s;
}
.home-flow__item[data-abs="3"], .home-flow__item[data-abs="4"] { opacity: 0; pointer-events: none; }
.home-flow.is-dragging .home-flow__item, .home-flow__item.is-jump { transition: none; }
.home-flow__btn { position: relative; display: block; width: 100%; height: 100%; cursor: inherit; }
.home-flow__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.6)); }
.home-flow__item.is-center .home-flow__btn { cursor: var(--cur-pointer); }
.home-flow__item.is-center img { filter: drop-shadow(0 0 26px rgba(247, 228, 232, 0.35)) drop-shadow(0 20px 26px rgba(0, 0, 0, 0.7)); animation: home-hover 5s ease-in-out infinite; }
.home-flow__caption { position: absolute; left: 50%; bottom: 58px; width: min(640px, 90%); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; pointer-events: none; }
.home-flow__meta { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; letter-spacing: 0.1em; color: var(--c-gold); }
.home-flow__name { font-family: var(--f-serif); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--c-text); text-shadow: 0 0 24px rgba(232, 135, 159, 0.4); }
html[lang="en"] .home-flow__name { font-family: var(--f-en); font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.home-flow__caption.is-swap > * { animation: tl-fade-up 0.6s var(--ease-out) both; }
.home-flow__controls { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: flex; align-items: center; gap: 18px; }
.home-flow__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--c-line-strong); border-radius: 50%; color: var(--c-text); transition: all 0.3s var(--ease-out); }
.home-flow__arrow:hover { border-color: var(--c-gold); color: var(--c-gold-2); background: rgba(217, 191, 134, 0.1); }
.home-flow__count { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-en); color: var(--c-muted); letter-spacing: 0.1em; }
.home-flow__count b { font-size: 1.3rem; color: var(--c-gold-2); }
.home-flow__tip { position: absolute; right: 0; bottom: 14px; max-width: 260px; font-size: 0.74rem; color: var(--c-muted); text-align: right; word-break: keep-all; text-wrap: balance; } /* 中文只在标点处换行，避免“看大图”单独落行 */
@media (max-width: 900px) {
  .home-flow__tip { display: none; }
}
@media (max-width: 640px) {
  .home-flow { --spacing: 34vw; height: 430px; }
  .home-flow__item { width: 46vw; height: 78%; }
  .home-flow__item[data-abs="2"] { opacity: 0.25; }
  .home-flow__caption { bottom: 62px; }
}

/* 翼族 · 擎苍战袍 */
.home-robe {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(24px, 4vw, 56px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, rgba(43, 26, 28, 0.9), rgba(19, 15, 16, 0.95) 60%);
}
.home-robe::before, .home-robe::after { content: ""; position: absolute; width: 30px; height: 30px; border: 1px solid var(--c-gold); opacity: 0.7; pointer-events: none; z-index: 2; }
.home-robe::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.home-robe::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.home-robe__bg { position: absolute; inset: 0; z-index: -1; }
.home-robe__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.4) contrast(1.1); -webkit-mask-image: linear-gradient(90deg, #000 10%, transparent 70%); mask-image: linear-gradient(90deg, #000 10%, transparent 70%); }
.home-robe__visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-robe__stage { position: relative; display: grid; place-items: center; width: 100%; height: clamp(420px, 42vw, 540px); perspective: 1600px; }
.home-robe__aura { position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(194, 59, 50, 0.32), rgba(194, 59, 50, 0.06) 45%, transparent 68%); animation: tl-glow-pulse 4s ease-in-out infinite; pointer-events: none; }
.home-robe__flip { position: relative; z-index: 1; display: block; width: clamp(180px, 20vw, 250px); height: 100%; cursor: var(--cur-pointer); touch-action: pan-y; }
.home-robe__flip:active { cursor: var(--cur-pointer); }
.home-robe__card { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)); transition: transform 1s var(--ease-out), opacity 0.3s; }
.home-robe__card.is-dragging { transition: none; }
.home-robe__card.is-swap { opacity: 0; }
.home-robe__face { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.home-robe__face--back { transform: rotateY(180deg); }
.home-robe__face img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px rgba(194, 59, 50, 0.3)); pointer-events: none; }
.home-robe__base { position: absolute; left: 50%; bottom: -14px; width: 280px; height: 56px; translate: -50% 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(232, 135, 159, 0.35), transparent 68%); pointer-events: none; }
.home-robe__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.home-robe__seg { display: inline-flex; padding: 3px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: rgba(13, 10, 11, 0.6); }
.home-robe__seg button { min-width: 64px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 0.9rem; color: var(--c-text-2); transition: background-color 0.3s, color 0.3s; }
.home-robe__seg button:hover { color: #fff; }
.home-robe__seg button[aria-pressed="true"] { color: #fff; background: var(--grad-peach); box-shadow: 0 4px 16px rgba(184, 73, 106, 0.4); }
.home-robe__tip { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--c-muted); }
.home-robe__tip .icon { width: 16px; height: 16px; }
.home-robe__info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.home-robe__kicker::before { display: none; }
.home-robe__name { font-family: var(--f-brush); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.1; color: var(--c-blush); text-shadow: 0 0 30px rgba(194, 59, 50, 0.5); }
html[lang="en"] .home-robe__name { font-family: var(--f-en); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.home-robe__badges { display: flex; gap: 8px; }
.home-robe__desc { max-width: 460px; color: var(--c-text-2); }
.home-robe__pieces-title { margin-top: 4px; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--c-gold); }
html[lang="en"] .home-robe__pieces-title { letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--f-en); }
.home-robe__pieces { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 420px; margin-bottom: 10px; }
.home-robe__pieces li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--c-line); background: rgba(13, 10, 11, 0.4); font-family: var(--f-serif); transition: border-color 0.3s, transform 0.4s var(--ease-out); }
.home-robe__pieces li:hover { border-color: rgba(194, 59, 50, 0.6); transform: translateX(6px); }
.home-robe__pnum { position: relative; display: grid; flex: none; place-items: center; width: 24px; height: 24px; font-family: var(--f-en); font-size: 0.78rem; line-height: 1; color: var(--c-gold-2); }
.home-robe__pnum::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(217, 191, 134, 0.55); transform: rotate(45deg); }
@media (max-width: 900px) {
  .home-robe { grid-template-columns: minmax(0, 1fr); }
  .home-robe__info { align-items: stretch; }
  .home-robe__info .btn { align-self: flex-start; }
}

/* ==========================================================================
   7. 世界地图（横向手风琴）
   ========================================================================== */
.home-world__list { display: flex; gap: 8px; height: clamp(460px, 42vw, 580px); container-type: inline-size; }
.home-world__item { position: relative; flex: 1 1 0; min-width: 0; transition: flex-grow 0.8s var(--ease-out); }
.home-world__item.is-active { flex-grow: 4.2; }
.home-world__panel {
  position: absolute; inset: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bark);
  isolation: isolate;
  cursor: var(--cur-default);
  transition: border-color 0.4s, box-shadow 0.5s;
}
.home-world__item.is-active .home-world__panel { border-color: rgba(232, 135, 159, 0.45); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.home-world__panel:focus-visible { outline-offset: 3px; }
.home-world__media { position: absolute; inset: 0; z-index: -2; }
.home-world__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: brightness(0.5) saturate(0.8); transition: transform 1.4s var(--ease-out), filter 0.8s; }
.home-world__item.is-active .home-world__media img { transform: scale(1.02); filter: brightness(0.85) saturate(1.05); }
.home-world__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 10, 11, 0.55) 0%, rgba(13, 10, 11, 0.05) 30%, rgba(13, 10, 11, 0.25) 55%, rgba(13, 10, 11, 0.94) 100%); }
.home-world__num { position: absolute; top: 18px; left: 50%; translate: -50% 0; font-family: var(--f-en); font-size: 0.8rem; letter-spacing: 0.16em; color: var(--c-gold); transition: opacity 0.4s; }
.home-world__dot { position: absolute; top: 44px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; padding: 0; border-radius: 50%; transition: opacity 0.4s; }
.home-world__dot.badge--soon { background: var(--c-mist); }
.home-world__vtitle {
  position: absolute;
  left: 50%; top: 70px;
  translate: -50% 0;
  writing-mode: vertical-rl;
  font-family: var(--f-brush);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: 0.3em;
  white-space: nowrap;
  color: var(--c-blush);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
  transition: opacity 0.4s, translate 0.6s var(--ease-out);
}
html[lang="en"] .home-world__vtitle { top: auto; bottom: 28px; transform: rotate(180deg); font-family: var(--f-en); font-weight: 600; font-size: clamp(0.92rem, 1.2vw, 1.1rem); letter-spacing: 0.12em; }
.home-world__item.is-active .home-world__vtitle,
.home-world__item.is-active .home-world__num,
.home-world__item.is-active .home-world__dot { opacity: 0; }
.home-world__item:not(.is-active) .home-world__panel:hover .home-world__vtitle { color: var(--c-peach-2); }
.home-world__body {
  position: absolute;
  left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  width: calc(4.2 / 9.2 * (100cqw - 40px));
  padding: clamp(20px, 2.6vw, 36px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
  pointer-events: none;
}
.home-world__item.is-active .home-world__body { opacity: 1; transform: none; transition: opacity 0.6s 0.3s, transform 0.8s var(--ease-out) 0.3s; }
.home-world__name { font-family: var(--f-brush); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7); }
html[lang="en"] .home-world__name { font-family: var(--f-en); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.home-world__tagline { max-width: 440px; font-family: var(--f-serif); color: var(--c-text-2); letter-spacing: 0.08em; }
html[lang="en"] .home-world__tagline { letter-spacing: 0; }

.home-world__ink { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse 80% 50% at 60% 18%, rgba(170, 178, 189, 0.16), transparent 70%), linear-gradient(180deg, #2f343c 0%, #1b1e23 55%, #0d0a0b 100%); }
/* 固定宽度居中：面板展开 / 收起时 SVG 尺寸不变，不会每帧重绘滤镜 */
.home-world__ink-svg { position: absolute; left: 50%; bottom: 0; width: 640px; max-width: none; height: 100%; translate: -50% 0; }
.home-world__fog { position: absolute; inset: 0; overflow: hidden; }
.home-world__fog i { position: absolute; left: -60%; right: -60%; height: 34%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(205, 210, 220, 0.34), transparent 66%); animation: home-fog 16s ease-in-out infinite alternate; }
.home-world__fog i:nth-child(1) { top: 22%; }
.home-world__fog i:nth-child(2) { top: 46%; animation-duration: 22s; animation-direction: alternate-reverse; }
.home-world__fog i:nth-child(3) { top: 66%; animation-duration: 19s; opacity: 0.8; }
.home-world__lock { position: absolute; left: 50%; top: 44%; display: grid; place-items: center; width: 66px; height: 66px; translate: -50% -50%; border: 1px solid rgba(155, 165, 177, 0.45); border-radius: 50%; color: var(--c-mist); background: rgba(13, 10, 11, 0.45); box-shadow: 0 0 30px rgba(155, 165, 177, 0.2); transition: opacity 0.4s; }
.home-world__lock::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(155, 165, 177, 0.3); animation: tl-spin 26s linear infinite; }
.home-world__lock .icon { width: 26px; height: 26px; animation: tl-glow-pulse 2.6s ease-in-out infinite; }
.home-world__item:not(.is-active) .home-world__lock { opacity: 0.45; }
html[lang="en"] .home-world__lock { top: 34%; }
.home-world__panel.is-mystery .home-world__name { color: var(--c-mist); }
.home-world__panel.is-mystery .home-world__tagline { font-family: var(--f-brush); font-size: 1.4rem; letter-spacing: 0.3em; color: var(--c-mist); }
html[lang="en"] .home-world__panel.is-mystery .home-world__tagline { font-family: var(--f-en); font-size: 1.05rem; letter-spacing: 0.08em; }

@media (max-width: 1024px) {
  .home-world__item.is-active { flex-grow: 3.4; }
  .home-world__body { width: calc(3.4 / 8.4 * (100cqw - 40px)); }
}
@media (max-width: 767px) {
  .home-world__list { flex-direction: column; height: auto; gap: 12px; container-type: normal; }
  .home-world__item, .home-world__item.is-active { flex: none; height: auto; }
  /* 卡片随内容增高（英文标语较长），最小高度保证画面比例 */
  .home-world__panel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; }
  .home-world__item:nth-child(1) .home-world__panel { min-height: 260px; }
  .home-world__body, .home-world__item.is-active .home-world__body { position: relative; }
  .home-world__ink-svg { width: 100%; }
  html .home-world__item .home-world__lock { left: auto; right: 22px; top: 24px; translate: none; width: 56px; height: 56px; opacity: 1; }
  .home-world__media img, .home-world__item.is-active .home-world__media img { transform: scale(1.04); filter: brightness(0.7); }
  .home-world__vtitle, .home-world__num, .home-world__dot { display: none; }
  .home-world__body, .home-world__item.is-active .home-world__body { width: 100%; opacity: 1; transform: none; gap: 6px; padding: 20px; }
  .home-world__lock, .home-world__item:not(.is-active) .home-world__lock { opacity: 1; }
  .home-world__shade { background: linear-gradient(180deg, rgba(13, 10, 11, 0.12) 0%, rgba(13, 10, 11, 0.35) 32%, rgba(13, 10, 11, 0.82) 62%, rgba(13, 10, 11, 0.95) 100%); }
  .home-world__tagline { color: var(--c-text); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8); }
  .home-world__name { font-size: 1.9rem; }
  html[lang="en"] .home-world__name { font-size: 1.35rem; }
}

/* ==========================================================================
   8. 游戏特色
   ========================================================================== */
.home-features__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.home-features__cell { display: flex; }
.home-fcard {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 30px 24px 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(40, 31, 32, 0.92), rgba(24, 19, 20, 0.92));
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.home-fcard::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(232, 135, 159, 0.24), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s;
}
.home-fcard::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold), transparent); opacity: 0.35; transition: opacity 0.4s; }
.home-fcard:hover, .home-fcard:focus-visible { border-color: rgba(232, 135, 159, 0.45); box-shadow: var(--shadow-2), 0 0 30px rgba(232, 135, 159, 0.14); }
.home-fcard:hover::before, .home-fcard:focus-visible::before { opacity: 1; }
.home-fcard:hover::after, .home-fcard:focus-visible::after { opacity: 0.9; }
.home-fcard__num { position: absolute; top: 12px; right: 18px; font-family: var(--f-en); font-weight: 700; font-size: 2.6rem; line-height: 1; color: rgba(217, 191, 134, 0.08); transition: color 0.4s; }
.home-fcard:hover .home-fcard__num { color: rgba(217, 191, 134, 0.2); }
.home-fcard__icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; color: var(--c-peach-2); }
.home-fcard__icon::before, .home-fcard__icon::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217, 191, 134, 0.45); transform: rotate(45deg); transition: transform 0.7s var(--ease-out), border-color 0.4s, background-color 0.4s; }
.home-fcard__icon::after { inset: 2px; border-color: rgba(217, 191, 134, 0.14); }
.home-fcard__icon .icon { position: relative; width: 26px; height: 26px; transition: transform 0.5s var(--ease-out); }
.home-fcard:hover .home-fcard__icon::before, .home-fcard:focus-visible .home-fcard__icon::before { transform: rotate(135deg); border-color: var(--c-peach); background: rgba(232, 135, 159, 0.12); }
.home-fcard:hover .home-fcard__icon::after, .home-fcard:focus-visible .home-fcard__icon::after { transform: rotate(0deg); }
.home-fcard:hover .home-fcard__icon .icon { transform: scale(1.12); }
.home-fcard__body { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.home-fcard__title { font-family: var(--f-serif); font-weight: 700; font-size: 1.12rem; line-height: 1.4; color: var(--c-text); }
html[lang="en"] .home-fcard__title { font-size: 1.05rem; }
.home-fcard__text { font-size: 0.9rem; line-height: 1.7; color: var(--c-text-2); }
.home-fcard__detail {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(217, 191, 134, 0.25);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--c-muted);
  opacity: 0.7;
  transform: translateY(4px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.45s, border-color 0.45s;
}
.home-fcard:hover .home-fcard__detail, .home-fcard:focus-visible .home-fcard__detail { opacity: 1; transform: none; color: var(--c-gold-2); border-color: rgba(232, 135, 159, 0.45); }
.home-fcard__arrow { position: absolute; right: 20px; bottom: 22px; width: 18px; height: 18px; color: var(--c-peach-2); opacity: 0; transform: translateX(-8px); transition: opacity 0.35s, transform 0.35s var(--ease-out); }
.home-fcard:hover .home-fcard__arrow, .home-fcard:focus-visible .home-fcard__arrow { opacity: 1; transform: none; }
.home-fcard:hover .home-fcard__detail, .home-fcard:focus-visible .home-fcard__detail { padding-right: 26px; }
@media (hover: none), (pointer: coarse) {
  .home-fcard__detail { opacity: 1; transform: none; color: var(--c-gold-2); }
}
.home-features__cta { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 1024px) {
  .home-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-features__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-fcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; gap: 16px; padding: 22px 18px; }
  .home-fcard__icon { width: 52px; height: 52px; }
  .home-fcard__num { font-size: 2rem; }
}

/* ==========================================================================
   9. 游戏画廊
   ========================================================================== */
.home-gallery { overflow: hidden; }
.home-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.home-gallery__head .section-head { margin-bottom: 0; }
.home-gallery__nav { flex: none; }
.home-gallery__track {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  padding-block: 8px 12px;
  cursor: var(--cur-pointer);
}
.home-gallery__slide { width: clamp(260px, 30vw, 440px); }
.home-gallery__slide:nth-child(3n + 2) { width: clamp(300px, 36vw, 520px); }
.home-gallery__item {
  position: relative;
  display: block;
  height: clamp(190px, 21vw, 300px);
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bark);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.home-gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82) saturate(0.95); transition: transform 1.2s var(--ease-out), filter 0.6s; }
.home-gallery__item:hover, .home-gallery__item:focus-visible { border-color: rgba(232, 135, 159, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 26px rgba(232, 135, 159, 0.15); transform: translateY(-4px); }
.home-gallery__item:hover img, .home-gallery__item:focus-visible img { transform: scale(1.08); filter: brightness(1) saturate(1.05); }
.home-gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 44px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(13, 10, 11, 0.9));
  font-family: var(--f-serif);
  font-size: 0.92rem;
  color: var(--c-text);
  transform: translateY(14px);
  opacity: 0.85;
  transition: transform 0.45s var(--ease-out), opacity 0.45s;
}
.home-gallery__cap b { font-family: var(--f-en); font-size: 0.8rem; color: var(--c-gold); letter-spacing: 0.1em; }
.home-gallery__item:hover .home-gallery__cap, .home-gallery__item:focus-visible .home-gallery__cap { transform: none; opacity: 1; }
.home-gallery__zoom { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(13, 10, 11, 0.55); border: 1px solid rgba(255, 255, 255, 0.2); opacity: 0; transform: scale(0.7); transition: opacity 0.35s, transform 0.45s var(--ease-out); }
.home-gallery__zoom .icon { width: 18px; height: 18px; }
.home-gallery__item:hover .home-gallery__zoom, .home-gallery__item:focus-visible .home-gallery__zoom { opacity: 1; transform: none; }
.home-gallery__foot { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.home-gallery__progress { position: relative; flex: 1; height: 2px; background: var(--c-line); overflow: hidden; }
.home-gallery__progress i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 30%); background: var(--grad-peach); box-shadow: var(--glow-peach); transform: translateX(var(--x, 0%)); }
.home-gallery__tip { flex: none; font-size: 0.8rem; color: var(--c-muted); }
.home-gallery__foot .link-arrow { flex: none; min-height: 44px; }
@media (hover: none), (pointer: coarse) {
  .home-gallery__cap { transform: none; opacity: 1; }
}
@media (max-width: 640px) {
  .home-gallery__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .home-gallery__slide, .home-gallery__slide:nth-child(3n + 2) { width: 78vw; }
  .home-gallery__item { height: 52vw; }
  .home-gallery__tip { display: none; }
}

/* ==========================================================================
   10. 社区 APP
   ========================================================================== */
.home-app {
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 60% at 78% 50%, rgba(232, 135, 159, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(99, 179, 163, 0.06), transparent 70%),
    var(--c-bg-2);
}
.home-app__orb { position: absolute; right: -10%; top: 50%; width: 60vw; max-width: 900px; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; border: 1px solid rgba(217, 191, 134, 0.06); pointer-events: none; }
.home-app__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.home-app__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.home-app__copy .section-head { margin-bottom: 4px; }
html[lang="en"] .home-app__copy .section-head__title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.home-app__points { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; }
.home-app__points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: rgba(13, 10, 11, 0.35);
  transition: border-color 0.35s, background-color 0.35s, transform 0.45s var(--ease-out);
}
.home-app__points li:hover { border-color: rgba(232, 135, 159, 0.4); background: rgba(232, 135, 159, 0.06); transform: translateX(6px); }
.home-app__picon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--c-peach-2); background: rgba(232, 135, 159, 0.12); border: 1px solid rgba(232, 135, 159, 0.3); }
.home-app__picon .icon { width: 20px; height: 20px; }
.home-app__points strong { display: block; font-family: var(--f-serif); color: var(--c-text); }
.home-app__points small { display: block; font-size: 0.88rem; color: var(--c-text-2); }
.home-app__reg { display: flex; align-items: flex-start; gap: 8px; max-width: 560px; text-align: left; font-size: 0.84rem; line-height: 1.6; color: var(--c-muted); }
.home-app__reg .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--c-gold); }
/* 官方商店徽章 store_badges()：徽章图本身不做修改，只控制尺寸 */
.home-app__badges .store-badge img { width: clamp(136px, 40vw, 168px); }
.home-app__device { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; }
.home-app__rings { position: absolute; left: 50%; top: 46%; width: 0; height: 0; pointer-events: none; }
.home-app__rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(232, 135, 159, 0.16); translate: -50% -50%; animation: home-ring 6s ease-out infinite; }
.home-app__rings i:nth-child(1) { width: 380px; height: 380px; }
.home-app__rings i:nth-child(2) { width: 500px; height: 500px; animation-delay: 2s; }
.home-app__rings i:nth-child(3) { width: 620px; height: 620px; animation-delay: 4s; }
@keyframes home-ring { 0% { opacity: 0; scale: 0.85; } 30% { opacity: 1; } 100% { opacity: 0; scale: 1.1; } }
.home-phone__float { position: relative; animation: tl-float 7s ease-in-out infinite; }
.home-phone {
  position: relative;
  width: 296px;
  height: 610px;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(145deg, #4a3a3b 0%, #1d1617 40%, #2c2223 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 3px rgba(0, 0, 0, 0.5), 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 80px rgba(232, 135, 159, 0.16);
  transition: transform 0.6s var(--ease-out);
}
.home-phone::before { content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px; border-radius: 0 2px 2px 0; background: #3a2e2f; }
.home-phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(232, 135, 159, 0.16), transparent 70%),
    linear-gradient(180deg, #1d1617, #120e0f);
  font-size: 13px;
  line-height: 1.5;
}
.home-phone__island { position: absolute; left: 50%; top: 10px; z-index: 3; width: 92px; height: 26px; translate: -50% 0; border-radius: 20px; background: #050404; }
.home-phone__status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 26px; font-family: var(--f-en); font-size: 12px; font-weight: 700; color: var(--c-text); }
.home-phone__sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.home-phone__sig i { width: 3px; border-radius: 1px; background: var(--c-text); }
.home-phone__sig i:nth-child(1) { height: 4px; } .home-phone__sig i:nth-child(2) { height: 6px; } .home-phone__sig i:nth-child(3) { height: 8px; } .home-phone__sig i:nth-child(4) { height: 10px; opacity: 0.4; }
.home-phone__appbar { display: flex; align-items: center; gap: 10px; padding: 6px 18px 12px; border-bottom: 1px solid var(--c-line); }
.home-phone__appbar strong { flex: 1; font-family: var(--f-serif); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: var(--c-text); }
html[lang="en"] .home-phone__appbar strong { font-family: var(--f-sans); letter-spacing: 0.02em; font-size: 14px; }
/* APP 图标：官方品牌图标 brand_icon() */
.home-phone__logo { flex: none; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 12px rgba(194, 59, 50, 0.35); }
.home-phone__bell { position: relative; color: var(--c-text-2); }
.home-phone__bell::after { content: ""; position: absolute; top: 0; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--c-peach); box-shadow: 0 0 8px var(--c-peach); }
.home-phone__bell .icon { width: 20px; height: 20px; }
.home-phone__views { position: relative; flex: 1; overflow: hidden; }
.home-phone__view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12px 14px; opacity: 0; transform: translateX(24px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); pointer-events: none; }
.home-phone__view.is-active { opacity: 1; transform: none; pointer-events: auto; }
.home-phone__room { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.home-phone__room-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--c-gold-2); background: rgba(217, 191, 134, 0.12); }
.home-phone__room-icon .icon { width: 18px; height: 18px; }
.home-phone__room b { display: block; font-family: var(--f-serif); font-size: 14px; color: var(--c-text); }
.home-phone__room small { display: block; font-size: 11px; color: var(--c-muted); }
.home-phone__msgs { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.home-phone__msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.home-phone__msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.home-phone__avatar { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--f-serif); font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--c-peach), var(--c-peach-deep)); }
.home-phone__msg:nth-child(3) .home-phone__avatar { background: linear-gradient(135deg, var(--c-jade), #2f6f63); }
.home-phone__avatar.is-online { box-shadow: 0 0 0 2px #120e0f, 0 0 0 3.5px #5fd38d; }
.home-phone__bubble { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--c-surface-3); color: var(--c-text); }
.home-phone__bubble small { display: block; font-size: 10px; color: var(--c-muted); }
.home-phone__msg.is-me .home-phone__bubble { border-radius: 14px 14px 4px 14px; background: var(--grad-peach); color: #fff; }
.home-phone__msg.is-me .home-phone__bubble small { color: rgba(255, 255, 255, 0.75); }
.home-phone__typing { display: flex; gap: 4px; align-self: flex-start; margin-left: 38px; padding: 10px 12px; border-radius: 14px; background: var(--c-surface-3); }
.home-phone__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-text-2); animation: home-typing 1.2s ease-in-out infinite; }
.home-phone__typing i:nth-child(2) { animation-delay: 0.15s; }
.home-phone__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes home-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.home-phone__input { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: 12px; color: var(--c-muted); }
.home-phone__input .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: #fff; background: var(--c-peach-deep); }
.home-phone__view.is-active .home-phone__msg,
.home-phone__view.is-active .home-phone__news li { animation: home-pop 0.55s var(--ease-out) both; animation-delay: calc(0.15s + var(--d, 0) * 0.45s); }
.home-phone__view.is-active .home-phone__typing { animation: home-pop 0.5s var(--ease-out) 1.6s both; }
@keyframes home-pop { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.home-phone__view.is-active .home-phone__news li { animation-delay: calc(0.1s + var(--d, 0) * 0.1s); }
.home-phone__post { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--c-line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.home-phone__view.is-active .home-phone__post { animation: home-pop 0.55s var(--ease-out) both 0.15s; }
.home-phone__post header { display: flex; align-items: center; gap: 8px; }
.home-phone__post header b { display: block; font-size: 12px; color: var(--c-text); }
.home-phone__post header small { display: block; font-size: 10px; color: var(--c-muted); }
.home-phone__post p { font-size: 12px; line-height: 1.55; color: var(--c-text-2); }
.home-phone__post img { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; }
.home-phone__post footer { display: flex; justify-content: space-between; padding-top: 2px; font-size: 10.5px; color: var(--c-muted); }
.home-phone__post footer span { display: inline-flex; align-items: center; gap: 4px; }
.home-phone__post footer .icon { width: 13px; height: 13px; }
.home-phone__post footer span:first-child { color: var(--c-peach-2); }
.home-phone__news { display: flex; flex-direction: column; gap: 10px; }
.home-phone__news li { display: flex; gap: 10px; padding: 8px; border: 1px solid var(--c-line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.home-phone__news img { flex: none; width: 72px; height: 50px; border-radius: 8px; object-fit: cover; }
.home-phone__news span { min-width: 0; }
.home-phone__news small { display: block; font-size: 10px; color: var(--c-peach-2); }
.home-phone__news b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--c-text); }
.home-phone__empty { padding: 20px 8px; color: var(--c-muted); text-align: center; }
/* 5 个标签：前 3 个（资讯 / 对话 / 社区）在 tablist 里可切换；排行榜、我的是 .home-phone__tab-static，只显示标签 */
.home-phone__tabs { position: relative; display: flex; padding: 6px 4px 16px; border-top: 1px solid var(--c-line); background: rgba(13, 10, 11, 0.6); }
.home-phone__tablist { display: flex; flex: 3 1 0; min-width: 0; }
.home-phone__tabs button,
.home-phone__tab-static { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 48px; padding-top: 4px; font-size: 10.5px; line-height: 1.4; white-space: nowrap; color: var(--c-muted); transition: color 0.3s; }
html[lang="en"] .home-phone__tabs button,
html[lang="en"] .home-phone__tab-static { font-size: 10px; letter-spacing: -0.01em; }
.home-phone__tab-static { cursor: var(--cur-default); user-select: none; }
.home-phone__tabs button .icon,
.home-phone__tab-static .icon { width: 20px; height: 20px; transition: transform 0.4s var(--ease-out); }
.home-phone__tabs button:hover { color: var(--c-text); }
.home-phone__tabs button[aria-selected="true"] { color: var(--c-peach-2); }
.home-phone__tabs button[aria-selected="true"] .icon { transform: translateY(-2px) scale(1.1); }
.home-phone__tabs button[aria-selected="true"]::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--c-peach); box-shadow: var(--glow-peach); }
.home-phone__tabs button:focus-visible { outline-offset: -2px; }
.home-app__note { font-size: 0.76rem; color: var(--c-muted); text-align: center; }
@media (max-width: 900px) {
  .home-app__grid { grid-template-columns: minmax(0, 1fr); }
  .home-app__device { order: 2; }
}
@media (max-width: 400px) {
  .home-phone { width: 272px; height: 560px; }
  html[lang="en"] .home-phone__tabs button,
  html[lang="en"] .home-phone__tab-static { letter-spacing: -0.035em; }
}

/* ==========================================================================
   11. 开服号召
   ========================================================================== */
.home-final {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(600px, 90vh, 860px);
  padding-block: 120px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.home-final__bg { position: absolute; inset: -14% 0; z-index: -2; }
.home-final__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55) saturate(0.9); }
.home-final__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(13, 10, 11, 0.55), rgba(13, 10, 11, 0.2) 70%),
    linear-gradient(180deg, var(--c-bg) 0%, rgba(13, 10, 11, 0.2) 22%, rgba(13, 10, 11, 0.2) 70%, rgba(10, 8, 9, 1) 100%);
}
.home-final .petals-layer { z-index: 0; }
.home-final__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-final__line { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.15; color: var(--c-blush); text-shadow: 0 0 40px rgba(232, 135, 159, 0.4), 0 6px 30px rgba(0, 0, 0, 0.7); }
html[lang="en"] .home-final__line { font-size: clamp(1.9rem, 4.6vw, 3.6rem); max-width: 22ch; }
.home-final__desc { max-width: 540px; font-family: var(--f-serif); font-size: 1.05rem; color: var(--c-text-2); }
.home-final__launch { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.home-final__launch > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.home-final__label { font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.2em; color: var(--c-peach-2); }
html[lang="en"] .home-final__label { font-family: var(--f-en); letter-spacing: 0.1em; font-size: 0.9rem; }
.home-final__date { font-size: 0.88rem; color: var(--c-text-2); }
.home-final__live { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-brush); font-size: clamp(2rem, 4vw, 3rem); color: var(--c-peach-2); text-shadow: 0 0 30px rgba(232, 135, 159, 0.6); }
html[lang="en"] .home-final__live { font-family: var(--f-en); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.home-final__live .icon { color: var(--c-cinnabar); animation: tl-glow-pulse 1.6s ease-in-out infinite; }
.home-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.home-final__spec { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--c-muted); }
.home-final__spec .icon { width: 18px; height: 18px; color: var(--c-gold); }
@media (max-width: 640px) {
  .home-final { padding-block: 96px; }
  .home-final .kicker { gap: 0.6em; letter-spacing: 0.18em; text-align: center; }
  .home-final .kicker::before, .home-final .kicker::after { width: 16px; }
}
@media (max-width: 480px) {
  .home-final .kicker { letter-spacing: 0.14em; }
  .home-final .kicker::before, .home-final .kicker::after { display: none; }
  .home-final .countdown { gap: 4px; }
  .home-final .countdown__unit { min-width: 0; flex: 1; }
  .home-final__actions { width: 100%; }
  .home-final__actions .btn { flex: 1 1 220px; }
}

/* ==========================================================================
   3b. 限时活动 · 流星夜的珍藏（拉布布盲盒）
   夜空（渐变 + canvas 星光与流星）、盲盒（可摇一摇）、六款拉布布 + 隐藏款问号
   ========================================================================== */
.home-event { position: relative; padding-block: clamp(8px, 1.6vw, 24px) clamp(56px, 6vw, 96px); }
.home-event__card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(170px, 18vw, 236px) minmax(0, 1fr) minmax(230px, 290px);
  grid-template-areas: "box main side" "box strip side";
  column-gap: clamp(24px, 3.2vw, 48px);
  row-gap: 20px;
  align-items: center;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 3.4vw, 48px);
  isolation: isolate;
}
.home-event__sky {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(241, 221, 174, 0.2);
  background:
    radial-gradient(ellipse 55% 95% at 82% -20%, rgba(124, 92, 200, 0.42), transparent 66%),
    radial-gradient(ellipse 45% 80% at 8% 125%, rgba(232, 135, 159, 0.38), transparent 70%),
    linear-gradient(168deg, #090c24 0%, #141238 42%, #261638 78%, #34182f 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.home-event__sky::before { /* 银河 */
  content: "";
  position: absolute; inset: -30% -10%;
  background: linear-gradient(118deg, transparent 36%, rgba(180, 160, 255, 0.07) 45%, rgba(255, 222, 236, 0.11) 50%, rgba(180, 160, 255, 0.07) 55%, transparent 64%);
  filter: blur(8px);
}
.home-event__sky::after { /* 地平线上的桃花暖光 */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(232, 135, 159, 0.12) 70%, rgba(232, 135, 159, 0.2));
}
.home-event__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-event__hills { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: 30%; }
.home-event__hill--far { fill: #2a1830; opacity: 0.75; }
.home-event__hill--near { fill: #150d18; }

/* 盲盒：底部对齐卡片底边，顶部探出卡片 */
.home-event__boxwrap { grid-area: box; position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 160px; }
.home-event__box {
  position: relative;
  flex: none;
  width: 120%;
  display: block;
  border-radius: 14px;
  animation: home-event-float 6.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.home-event__box img {
  position: relative; z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 214, 170, 0.18));
  transform-origin: 50% 92%;
  transition: scale 0.5s var(--ease-out);
}
.home-event__box:hover img { scale: 1.035; }
.home-event__box:focus-visible { outline-offset: 6px; }
.home-event__halo {
  position: absolute; inset: -16% -26% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 170, 0.42), rgba(232, 135, 159, 0.2) 52%, transparent);
  animation: tl-glow-pulse 4.2s ease-in-out infinite;
  pointer-events: none;
}
.home-event__box.is-shaking img { animation: home-event-shake 0.9s var(--ease-out); }
.home-event__sparks { position: absolute; left: 50%; top: 42%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.home-event__sparks i {
  position: absolute; left: -7px; top: -7px;
  width: 14px; height: 14px;
  background: radial-gradient(circle, #fff 0 18%, rgba(255, 230, 190, 0.9) 30%, transparent 62%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
}
.home-event__box.is-shaking .home-event__sparks i { animation: home-event-spark 1s var(--ease-out) var(--t) both; }
@keyframes home-event-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes home-event-shake {
  0% { transform: none; }
  12% { transform: rotate(-7deg) translateY(-8px); }
  26% { transform: rotate(6deg) translateY(-12px); }
  40% { transform: rotate(-5deg) translateY(-6px); }
  54% { transform: rotate(3.5deg) translateY(-3px); }
  70% { transform: rotate(-1.5deg); }
  100% { transform: none; }
}
@keyframes home-event-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.8px), calc(var(--y) * 1.8px)) scale(var(--s)) rotate(160deg); }
}

.home-event__main { grid-area: main; position: relative; min-width: 0; }
.home-event__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.home-event__tags .badge .icon { width: 1em; height: 1em; }
.home-event__kicker { font-family: var(--f-en); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; color: var(--c-gold); }
.home-event__title {
  font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  line-height: 1.12;
  background: linear-gradient(180deg, #fff8ea 8%, #f1ddae 55%, #f0a9bb 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 210, 170, 0.3));
}
html[lang="en"] .home-event__title { font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.2; }
.home-event__sub { margin-top: 6px; font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.14em; color: var(--c-peach-2); }
html[lang="en"] .home-event__sub { letter-spacing: 0.04em; }
.home-event__teaser { margin-top: 8px; font-family: var(--f-serif); font-size: 0.9rem; font-style: italic; color: rgba(205, 191, 230, 0.85); }
.home-event__summary { display: flex; gap: 10px; margin-top: 12px; font-size: 0.95rem; line-height: 1.7; color: var(--c-text); }
.home-event__summary .icon { flex: none; margin-top: 0.28em; color: var(--c-gold); }

.home-event__side {
  grid-area: side;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  align-self: stretch;
  padding-left: clamp(20px, 2.4vw, 36px);
  border-left: 1px solid rgba(241, 221, 174, 0.14);
}
.home-event__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--f-serif); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.14em; color: var(--c-gold-2); }
html[lang="en"] .home-event__label { letter-spacing: 0.06em; }
.home-event__label .icon { width: 16px; height: 16px; color: var(--c-gold); }
.home-event .countdown { display: flex; width: 100%; gap: 5px; }
.home-event .countdown__unit { min-width: 0; flex: 1; }
.home-event .countdown__unit b { font-size: clamp(1.15rem, 1.6vw, 1.5rem); padding: 0.24em 0.1em; background: linear-gradient(180deg, rgba(30, 26, 70, 0.75), rgba(10, 10, 30, 0.75)); border-color: rgba(241, 221, 174, 0.26); }
.home-event .countdown__unit small { font-size: 0.62rem; letter-spacing: 0.12em; }
.home-event .countdown__sep { padding-top: 0.32em; font-size: 1.05rem; }
.home-event__ended { display: none; align-items: center; gap: 8px; font-family: var(--f-serif); font-weight: 600; color: var(--c-text-2); }
.home-event__ended .icon { color: var(--c-gold); }
.home-event__timer.is-ended .home-event__label,
.home-event__timer.is-ended .countdown { display: none; }
.home-event__timer.is-ended .home-event__ended { display: flex; }
.home-event__cta { width: 100%; }

/* 拉布布一览：悬停转身（正面 → 背面），定时依次轻跳；隐藏款只有问号 */
.home-event__strip { grid-area: strip; min-width: 0; }
.home-event__strip-title { margin-bottom: 12px; font-size: 0.78rem; letter-spacing: 0.14em; color: rgba(205, 191, 230, 0.75); }
html[lang="en"] .home-event__strip-title { letter-spacing: 0.04em; }
.home-event__pets { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(6px, 0.9vw, 12px); }
.home-event__pet { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.home-event__pet-media {
  position: relative;
  display: block;
  width: 100%; max-width: 78px;
  aspect-ratio: 1;
  margin-top: 14px;
  border-radius: 50%;
  border: 1px solid rgb(var(--pet, 241 221 174) / 0.5);
  background:
    radial-gradient(circle at 50% 62%, rgb(var(--pet, 241 221 174) / 0.55), transparent 70%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 18px rgb(var(--pet, 241 221 174) / 0.22);
  animation: home-event-hop 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.14s + 1s);
  transition: box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.home-event__pet-img {
  position: absolute; left: 50%; bottom: 3%;
  width: auto; height: 118%; max-width: none;
  translate: -50% 0;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 100%;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.home-event__pet-img--back { opacity: 0; transform: scaleX(0.6); }
.home-event__pet:hover .home-event__pet-media { border-color: rgb(var(--pet, 241 221 174) / 0.9); box-shadow: 0 0 26px rgb(var(--pet, 241 221 174) / 0.5); }
.home-event__pet:hover .home-event__pet-img { transform: translateY(-6px) scale(1.06); }
.home-event__pet:hover .home-event__pet-img:not(.home-event__pet-img--back) { opacity: 0; transform: translateY(-6px) scaleX(0.6); }
.home-event__pet:hover .home-event__pet-img--back { opacity: 1; transform: translateY(-6px) scale(1.06); }
.home-event__pet-name { max-width: 100%; font-size: 0.74rem; line-height: 1.25; color: var(--c-text-2); text-wrap: balance; }
.home-event__pet--hidden .home-event__pet-media {
  display: grid; place-items: center;
  border: 1px dashed rgba(241, 221, 174, 0.6);
  background: radial-gradient(circle, rgba(241, 221, 174, 0.14), transparent 70%), rgba(8, 10, 30, 0.7);
  box-shadow: 0 0 18px rgba(241, 221, 174, 0.16), inset 0 0 14px rgba(241, 221, 174, 0.12);
}
.home-event__pet--hidden .home-event__pet-media::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px dotted rgba(241, 221, 174, 0.4); animation: tl-spin 18s linear infinite; }
.home-event__q { font-family: var(--f-en); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1; color: var(--c-gold-2); text-shadow: 0 0 14px rgba(241, 221, 174, 0.7); animation: tl-glow-pulse 2.6s ease-in-out infinite; }
.home-event__pet--hidden .home-event__pet-name { color: var(--c-gold-2); font-weight: 600; }
.home-event__pets.is-wave .home-event__pet-media { animation: home-event-hop-once 0.7s var(--ease-out) calc(var(--i, 0) * 0.07s) both; }
@keyframes home-event-hop { 0%, 14%, 100% { translate: 0 0; } 7% { translate: 0 -7px; } }
@keyframes home-event-hop-once { 0%, 100% { translate: 0 0; } 40% { translate: 0 -12px; } }

@media (max-width: 1024px) {
  .home-event__card {
    grid-template-columns: clamp(150px, 26vw, 220px) minmax(0, 1fr);
    grid-template-areas: "box main" "box side" "strip strip";
  }
  .home-event__side { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding-left: 0; border-left: 0; }
  .home-event__timer { flex: 1 1 240px; }
  .home-event__cta { width: auto; flex: 1 1 180px; }
  .home-event__boxwrap { align-self: stretch; }
  .home-event__box { width: 112%; }
}
@media (max-width: 640px) {
  .home-event { padding-top: 48px; }
  .home-event__card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "box" "main" "side" "strip"; row-gap: 18px; padding-top: 0; text-align: center; }
  .home-event__boxwrap { display: block; min-height: 0; height: 120px; }
  .home-event__box { position: absolute; left: 50%; bottom: 0; width: 150px; margin-left: -75px; }
  .home-event__tags { justify-content: center; }
  .home-event__summary { justify-content: center; text-align: left; }
  .home-event__side { flex-direction: column; align-items: stretch; }
  .home-event__label { justify-content: center; }
  .home-event__timer, .home-event__cta { flex: none; width: 100%; }
  .home-event__ended { justify-content: center; }
  .home-event__pet-name { font-size: 0.66rem; }
  .home-event__pet-media { margin-top: 10px; }
}

/* ==========================================================================
   6c. 新首领 · 擎苍
   东皇钟：游戏内截图（scenes/ruoshui-bell.webp）放大到钟体 + 代码绘制的赤红光效
   （CSS 脉动光晕 / 光芒 + canvas 火焰与升腾的余烬）；首领模型可切换正面 / 侧面 / 背面 / 顺劈斩
   ========================================================================== */
.home-boss {
  position: relative;
  padding-block: clamp(80px, 9vw, 132px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 40% 48% at 22% 44%, rgba(150, 12, 22, 0.34), transparent 70%),
    radial-gradient(ellipse 38% 40% at 58% 82%, rgba(110, 8, 16, 0.3), transparent 72%),
    linear-gradient(180deg, var(--c-bg-2) 0%, #18080a 20%, #14070a 80%, var(--c-bg) 100%);
}
.home-boss::after { /* 底部渐隐到页面底色，与下一区块自然衔接 */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: 200px;
  background: linear-gradient(180deg, rgba(13, 10, 11, 0), var(--c-bg));
  pointer-events: none;
}
.home-boss::before { /* 顶部的暗红细线 */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 71, 60, 0.45), transparent);
}
.home-boss__smoke { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-boss__smoke i {
  position: absolute;
  width: 70vw; max-width: 1100px; aspect-ratio: 2;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 14, 22, 0.28), transparent);
  filter: blur(10px);
  animation: home-boss-smoke 26s ease-in-out infinite alternate;
}
.home-boss__smoke i:first-child { left: -20%; top: 4%; }
.home-boss__smoke i:last-child { right: -24%; bottom: -6%; animation-duration: 32s; animation-direction: alternate-reverse; }
.home-boss__fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

.home-boss__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "stage head" "stage body";
  column-gap: clamp(40px, 4.2vw, 64px);
  align-items: center;
}
.home-boss__head { grid-area: head; position: relative; z-index: 3; align-self: end; }
.home-boss__body { grid-area: body; position: relative; z-index: 3; align-self: start; }

/* ---- 文字 ---- */
.home-boss__kicker { color: #f08a78; }
.home-boss__name {
  margin-top: 6px;
  font-size: clamp(4.4rem, 8vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 0 26px rgba(214, 28, 34, 0.5)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}
html[lang="en"] .home-boss__name { font-size: clamp(2.8rem, 5vw, 4.6rem); letter-spacing: 0.06em; }
.home-boss__name > span {
  padding-inline: 0.04em;
  background: linear-gradient(180deg, #ffe2d4 0%, #ff7a58 34%, #d01b24 66%, #74070f 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.home-boss__title { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-family: var(--f-serif); font-weight: 700; font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: 0.34em; color: #f3cabc; }
html[lang="en"] .home-boss__title { font-family: var(--f-en); letter-spacing: 0.12em; }
.home-boss__title::before { content: ""; flex: none; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, #e2473c); }
.home-boss__tagline { margin-top: 18px; padding: 2px 0 2px 16px; border-left: 2px solid rgba(226, 71, 60, 0.7); font-family: var(--f-serif); font-size: 1.02rem; letter-spacing: 0.08em; color: var(--c-text-2); }
html[lang="en"] .home-boss__tagline { letter-spacing: 0.01em; font-style: italic; }

.home-boss__facts {
  display: inline-grid;
  grid-auto-flow: column;
  max-width: 100%;
  margin-top: 26px;
  border: 1px solid rgba(255, 120, 100, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(120, 10, 18, 0.42), rgba(30, 8, 10, 0.4));
}
.home-boss__facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px clamp(14px, 1.6vw, 22px); }
.home-boss__facts > div + div { border-left: 1px solid rgba(255, 120, 100, 0.16); }
.home-boss__facts dt { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--c-muted); white-space: nowrap; }
html[lang="en"] .home-boss__facts dt { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.66rem; }
.home-boss__facts dt .icon { width: 14px; height: 14px; color: #e2473c; }
.home-boss__facts dd { font-family: var(--f-serif); font-weight: 700; font-size: 1.12rem; color: var(--c-text); white-space: nowrap; }

/* 背景故事：三句依次以墨迹横扫出现 */
.home-boss__lore { position: relative; display: grid; gap: 14px; margin-top: 28px; padding-left: 28px; }
.home-boss__lore::before {
  content: "";
  position: absolute; left: 6px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, #e2473c, rgba(226, 71, 60, 0.12));
  transform-origin: top;
  transition: transform 2.6s var(--ease-in-out) 0.2s;
}
.home-boss__lore li {
  position: relative;
  font-family: var(--f-serif);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--c-text-2);
  clip-path: inset(-12% -4% -12% -34px);
  transition: opacity 0.9s var(--ease-out), clip-path 1.4s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.85s + 0.25s);
}
.home-boss__lore li:last-child { color: var(--c-text); }
.home-boss__lore li::before {
  content: "";
  position: absolute; left: -26px; top: 0.72em;
  width: 7px; height: 7px;
  rotate: 45deg;
  border: 1px solid #e2473c;
  background: #e2473c;
  box-shadow: 0 0 10px rgba(226, 71, 60, 0.9);
  transition: background-color 0.5s, box-shadow 0.5s;
  transition-delay: inherit;
}
.js .home-boss__lore:not(.is-revealed)::before { transform: scaleY(0); }
.js .home-boss__lore:not(.is-revealed) li { opacity: 0; translate: 10px 0; clip-path: inset(-12% 100% -12% -34px); }
.js .home-boss__lore:not(.is-revealed) li::before { background: #140406; box-shadow: none; }


/* ---- 舞台：左上东皇钟封印，右下首领模型 ---- */
.home-boss__stage {
  --stage-h: clamp(560px, 50vw, 700px);
  --seal: min(62%, 440px);
  --mx: 66%;
  --model-h: 78%;
  --tabs-h: 64px;
  grid-area: stage;
  position: relative;
  align-self: center;
  height: var(--stage-h);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: var(--cur-pointer);
}
.home-boss__seal { position: absolute; left: 0; top: 0; z-index: 0; width: var(--seal); aspect-ratio: 1; margin: 0; }
.home-boss__seal::before {
  content: "";
  position: absolute; inset: -20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(205, 20, 30, 0.42), rgba(120, 6, 14, 0.18) 55%, transparent 76%);
  animation: home-boss-pulse 3.6s ease-in-out infinite;
  pointer-events: none;
}
.home-boss__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: #e0473c; filter: drop-shadow(0 0 5px rgba(230, 40, 40, 0.6)); animation: tl-spin 150s linear infinite; }
.home-boss__ring-line { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.85; }
.home-boss__ring-line--faint { stroke-width: 0.5; opacity: 0.45; }
.home-boss__ring-ticks line { stroke: currentColor; stroke-width: 0.5; opacity: 0.6; }
.home-boss__ring-glyphs { fill: currentColor; opacity: 0.9; }
.home-boss__window {
  position: absolute; inset: 8.333%;
  overflow: hidden;
  border-radius: 50%;
  isolation: isolate;
  background: #120406;
  box-shadow: 0 0 0 1px rgba(255, 110, 90, 0.55), 0 0 36px rgba(220, 30, 40, 0.5), 0 0 90px rgba(150, 10, 20, 0.35);
}
/* 截图按原始比例铺在圆窗里，钟体中心（原图 893, 296）落在圆窗上方 45% 处；之后的叠层都用原图坐标的百分比定位 */
.home-boss__scene {
  position: absolute; left: 50%; top: 50%;
  width: 380%;
  aspect-ratio: 1672 / 941;
  translate: -53.41% -33.79%;
  transform-origin: 53.41% 31.46%;
  animation: home-boss-kb 30s ease-in-out infinite alternate;
}
.home-boss__scene > img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(0.56) saturate(0.6) contrast(1.15); }
.home-boss__tint { position: absolute; inset: 0; background: radial-gradient(ellipse 12% 22% at 53.41% 31.5%, rgba(140, 10, 20, 0.35), #8c0a14 100%); mix-blend-mode: color; opacity: 0.5; }
.home-boss__halo {
  position: absolute; left: 53.41%; top: 33%;
  width: 40%; height: 70%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 60, 44, 0.42), rgba(170, 0, 14, 0.16) 52%, transparent);
  mix-blend-mode: screen;
  animation: home-boss-pulse 3.6s ease-in-out infinite;
}
.home-boss__floor-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen; animation: home-boss-pulse 3.6s ease-in-out infinite; }
.home-boss__floor-ring ellipse { fill: none; stroke: #ff4b3a; stroke-width: 3; }
.home-boss__floor-ring--soft { stroke-width: 18 !important; stroke: rgba(255, 50, 40, 0.28) !important; filter: blur(6px); }
.home-boss__glow { /* 钟身本身泛起的血色光：color-dodge 让铜纹最亮处燃起来 */
  position: absolute; left: 53.41%; top: 31.6%;
  width: 14%; height: 30%;
  translate: -50% -50%;
  border-radius: 46% 46% 42% 42%;
  background: radial-gradient(closest-side, rgba(255, 132, 84, 0.78), rgba(232, 38, 30, 0.52) 50%, rgba(160, 0, 10, 0) 100%);
  mix-blend-mode: color-dodge;
  animation: home-boss-pulse 3.6s ease-in-out infinite;
}
.home-boss__anchor { position: absolute; left: 49.04%; top: 21.47%; width: 8.79%; height: 19.98%; pointer-events: none; }
.home-boss__rays {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 45%, rgba(255, 70, 50, 0) 0deg 7deg, rgba(255, 86, 64, 0.16) 9.5deg, rgba(255, 70, 50, 0) 12deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 6%, transparent 60%);
  mask-image: radial-gradient(circle at 50% 45%, #000 6%, transparent 60%);
  mix-blend-mode: screen;
  transform-origin: 50% 45%;
  animation: tl-spin 90s linear infinite;
}
.home-boss__vignette { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 46%, transparent 32%, rgba(16, 2, 4, 0.5) 58%, rgba(8, 0, 2, 0.94) 77%); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8); }
.home-boss__caption {
  position: absolute; left: 0; top: calc(100% + 8px);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-serif); font-size: 0.82rem; letter-spacing: 0.14em;
  color: var(--c-text-2);
  max-width: 72%;
  line-height: 1.5;
  text-wrap: balance;
}
html[lang="en"] .home-boss__caption { letter-spacing: 0.04em; }
.home-boss__stamp {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px;
  border: 1.5px solid #c8302c;
  border-radius: 3px;
  color: #ec5446;
  font-family: var(--f-brush);
  font-size: 1.05rem; line-height: 1;
  letter-spacing: 0;
  rotate: -6deg;
  box-shadow: 0 0 10px rgba(200, 40, 40, 0.4), inset 0 0 6px rgba(200, 40, 40, 0.3);
}

.home-boss__model-wrap {
  position: absolute; z-index: 2;
  left: var(--mx); bottom: var(--tabs-h);
  width: 56%; margin-left: -28%;
  height: var(--model-h);
  pointer-events: none;
}
.home-boss__model { position: absolute; inset: 0; }
.home-boss__float { position: absolute; inset: 0; animation: home-boss-float 8s ease-in-out infinite; }
.home-boss__view {
  position: absolute; left: 50%; bottom: 0;
  width: auto; height: var(--vh, 96%);
  max-width: var(--vmax, none);
  object-fit: contain; object-position: 50% 100%;
  translate: calc(var(--ax, 0.5) * -100%) 0;
  opacity: 0;
  transform: translateX(calc(var(--dir, 1) * 4%)) scale(0.97);
  transform-origin: 50% 100%;
  transition: opacity 0.7s var(--ease-out), transform 1s var(--ease-out);
  /* 红色轮廓光：左侧（朝向东皇钟）一道细亮边 + 整体暗红辉光 */
  filter: drop-shadow(-2px -1px 1.5px rgba(255, 96, 72, 0.6)) drop-shadow(0 0 22px rgba(190, 16, 28, 0.45));
}
.home-boss__view.is-active { opacity: 1; transform: none; }
.home-boss__view.is-leaving { transform: translateX(calc(var(--dir, 1) * -4%)) scale(0.985); }
.home-boss__view--front { --vh: 96%; --ax: 0.58; }
.home-boss__view--side { --vh: 88%; --ax: 0.57; }
.home-boss__view--back { --vh: 96%; --ax: 0.45; }
.home-boss__view--attack { --vh: 100%; --ax: 0.57; }
.home-boss__aura {
  position: absolute; left: 50%; top: 46%;
  width: 150%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 20, 30, 0.34), rgba(110, 6, 14, 0.14) 55%, transparent);
  animation: home-boss-pulse 3.6s ease-in-out infinite;
}
.home-boss__floor {
  position: absolute; left: 50%; bottom: -16px;
  width: 130%; height: 56px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(150, 14, 24, 0.32) 58%, transparent);
}
.home-boss__flash {
  position: absolute; left: 50%; top: 48%;
  width: 120%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 60, 0.4), rgba(200, 20, 30, 0.12) 55%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
}
.home-boss.is-switch .home-boss__flash { animation: home-boss-flash 0.9s var(--ease-out); }

.home-boss__tabs {
  position: absolute; z-index: 3;
  left: var(--mx); bottom: 0;
  translate: -50% 0;
  display: flex; gap: 2px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(255, 120, 100, 0.24);
  border-radius: 999px;
  background: rgba(18, 6, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.home-boss__tab {
  position: relative;
  flex: 0 1 auto;
  padding: 0.55em 1.15em;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--f-serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--c-text-2);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
html[lang="en"] .home-boss__tab { font-family: var(--f-en); letter-spacing: 0.04em; font-size: 0.82rem; }
.home-boss__tab:hover { color: #fff; background-color: rgba(226, 71, 60, 0.14); }
.home-boss__tab[aria-selected="true"] { color: #fff; background-color: #8e1019; background-image: linear-gradient(135deg, #c42430, #5e0710); box-shadow: 0 0 18px rgba(212, 32, 42, 0.5), inset 0 0 0 1px rgba(255, 150, 130, 0.35); }
.home-boss__tab::after {
  content: "";
  position: absolute; left: 20%; right: 20%; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 214, 196, 0.9);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  opacity: 0;
}
.home-boss.is-auto .home-boss__tab[aria-selected="true"]::after { opacity: 1; }
.home-boss__tab:focus-visible { outline-offset: -2px; }

@keyframes home-boss-pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes home-boss-kb { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes home-boss-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes home-boss-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes home-boss-smoke { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6%, -4%, 0) scale(1.12); } }

@media (max-width: 1024px) {
  .home-boss__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "body"; row-gap: 32px; }
  .home-boss__head, .home-boss__body { align-self: auto; }
  .home-boss__body { max-width: 720px; }
  .home-boss__stage { --stage-h: clamp(440px, 140vw, 700px); --seal: min(64%, 440px); --mx: 60%; width: 100%; max-width: 760px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .home-boss__stage { --mx: 50%; --tabs-h: 58px; --model-h: 80%; }
  .home-boss__model-wrap { width: 100%; margin-left: -50%; }
  .home-boss .home-boss__view { --ax: 0.5; --vmax: calc(100vw - 2 * var(--gutter)); }
  .home-boss__caption { left: calc(100% + 10px); top: 6%; flex-direction: column; align-items: flex-start; gap: 8px; width: 52%; white-space: normal; font-size: 0.76rem; line-height: 1.5; }
  .home-boss__tab { padding: 0.55em 0.85em; font-size: 0.84rem; letter-spacing: 0.06em; }
  html[lang="en"] .home-boss__tab { font-size: 0.74rem; padding-inline: 0.7em; }
  .home-boss__facts { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .home-boss__facts > div { padding: 10px 10px; }
  .home-boss__facts dd { font-size: 1rem; white-space: normal; }
  html[lang="en"] .home-boss__facts dt { white-space: normal; }
}
@media (max-width: 380px) {
  html[lang="en"] .home-boss__tab { padding-inline: 0.55em; font-size: 0.7rem; }
}

/* ==========================================================================
   减少动态效果
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .home-event__box,
  .home-event__box.is-shaking img,
  .home-event__pet-media,
  .home-event__halo,
  .home-event__q,
  .home-event__pet--hidden .home-event__pet-media::after,
  .home-boss__smoke i,
  .home-boss__seal::before,
  .home-boss__ring,
  .home-boss__scene,
  .home-boss__halo,
  .home-boss__floor-ring,
  .home-boss__glow,
  .home-boss__rays,
  .home-boss__float,
  .home-boss__aura { animation: none !important; }
  .home-event__sparks { display: none; }
  .home-hero__slide.is-active .home-hero__kb,
  .home-hero__slide.is-leaving .home-hero__kb,
  .home-hero__mist span,
  .home-hero__flash,
  .home-hero.is-in .home-hero__ink::after,
  .home-world__fog i,
  .home-flow__rune svg,
  .home-phone__float,
  .home-app__rings i,
  .home-flow__item.is-center img { animation: none !important; }
  .home-hero__burst { display: none; }
  .home-hero__ink::after { opacity: 0.6; }
  .home-hero__slide.is-active .home-hero__img--reveal { transition-delay: 0s; }
  .home-app__rings, .home-hero__light { display: none; }
}

/* ==========================================================================
   焦点样式：位于 overflow 容器内的元素改为内描边，避免被裁切
   ========================================================================== */
.home-ticker__item a:focus-visible,
.home-news__tab:focus-visible,
.home-feature__link:focus-visible,
.home-world__panel:focus-visible,
.home-gallery__item:focus-visible { outline-offset: -3px; }
.home-feature__link:focus-visible .home-feature__more { text-decoration: underline; text-underline-offset: 4px; }
