/* 首页专用：保留原字标与吉祥物，以半透明图层呈现背景。 */
body.home {
  --home-logo-opacity: .76;
  --home-nav-alpha: .62;
  --home-section-alpha: .60;
  --home-solid-alpha: .72;
}
.home .bgstage__veil {
  background: linear-gradient(100deg, rgba(4,4,6,.73) 0%, rgba(4,4,6,.48) 32%, rgba(4,4,6,.16) 68%, rgba(4,4,6,.32) 100%),
    radial-gradient(120% 80% at 78% 42%, rgba(216,31,42,.08), transparent 62%),
    linear-gradient(180deg, rgba(4,4,6,.39), rgba(4,4,6,.10) 42%, rgba(5,5,6,.77) 97%);
}
.home .topbar { background: linear-gradient(180deg, rgba(5,5,7,.53), transparent); }
.home .topbar.is-solid {
  background: rgba(8,8,11,var(--home-nav-alpha));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.home .topbar__brand { opacity: .9; transition: opacity .25s ease; }
.home .topbar__brand:hover, .home .topbar__brand:focus-visible { opacity: 1; }
.home .mhero__kicker { margin-bottom: 12px; }
.home .mhero__wordmark {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-top: clamp(35px, 5vw, 68px);
}
.home .mhero__mascot {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: clamp(48px, 7vw, 90px);
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 4px 9px rgba(0,0,0,.5));
  pointer-events: none;
}
.home .mhero .display {
  font-size: clamp(64px, 13vw, 184px);
  opacity: var(--home-logo-opacity);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.48));
  text-shadow: none;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}
.home .mhero .display em {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #ff0000;
  color: #ff0000;
}
.home .mhero__desc { color: rgba(255,255,255,.85); text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.home .section { background: rgba(6,6,8,var(--home-section-alpha)); }
.home .section--solid {
  background: linear-gradient(180deg, rgba(7,7,10,var(--home-solid-alpha)), rgba(10,10,13,.76));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.home .about__fact, .home .scard, .home .ccard, .home .kook {
  background: linear-gradient(145deg, rgba(28,28,34,.62), rgba(10,10,13,.72));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.home .kook__bar { background: rgba(23,23,28,.72); }
.home .foot-home { background: linear-gradient(180deg, rgba(5,5,7,.68), rgba(5,5,6,.82)); }
.home .foot-home__brand { opacity: .88; }
.home .mhero__actions .btn--ghost { background: rgba(10,10,13,.27); }
.home .mhero__actions .btn--ghost:hover { background: rgba(10,10,13,.5); }
@media (max-width: 760px) {
  .home .mhero .display { font-size: clamp(58px, 14vw, 98px); }
  .home .mhero__wordmark { padding-top: 39px; }
  .home .mhero__mascot { width: 49px; }
}
@media (max-width: 380px) {
  .home .servers__grid { grid-template-columns: minmax(0, 1fr); }
  .home .scard { min-width: 0; }
}


/* 首页主视觉：除小浣熊外，鼠标移入时轻微透明化 */
.home .mhero__kicker,
.home .mhero .display,
.home .mhero__tagline,
.home .mhero__desc,
.home .mhero__actions .btn {
  transition: opacity .22s ease, background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.home .mhero__kicker:hover,
.home .mhero__kicker:focus-within {
  opacity: .78;
}

.home .mhero .display:hover,
.home .mhero .display:focus-within {
  opacity: .64;
}

.home .mhero__tagline:hover,
.home .mhero__tagline:focus-within,
.home .mhero__desc:hover,
.home .mhero__desc:focus-within {
  opacity: .76;
}

.home .mhero__actions .btn:hover,
.home .mhero__actions .btn:focus-visible {
  opacity: .84;
}

/* 小浣熊保持原样，不参与透明 hover */
.home .mhero__mascot:hover,
.home .mhero__mascot:focus-visible {
  opacity: .9;
}

/* 新增阵营导航，避免中等宽度顶栏拥挤 */
@media (min-width:981px) and (max-width:1240px){.home .topbar__nav{gap:11px}.home .topbar{gap:16px;padding-inline:24px}.home .topbar__link{letter-spacing:.04em}}

/* 增加阵营入口后，为桌面导航留出空间。 */
@media (min-width:981px){.home .topbar__nav{gap:clamp(12px,1.6vw,24px)}}

/* 导航增项后压缩间距，窄屏使用主视觉入口。 */
@media (min-width:981px) and (max-width:1350px){.home .topbar__nav{gap:12px}.home .topbar__link{letter-spacing:.04em;white-space:nowrap}.home .topbar{gap:16px;padding-inline:24px}}
@media (min-width:981px) and (max-width:1100px){.home .topbar__nav{display:none}.home .topbar__actions{margin-left:auto}}

/* 首页真实人物卡展览：最多四列，完整显示服务端卡面，不裁切、不压暗。 */
.home .roster__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home .ccard--exhibit { min-height: 0; }
.home .ccard--exhibit .ccard__media { display: grid; place-items: center; aspect-ratio: 3 / 4; }
.home .ccard--exhibit .ccard__media img { position: absolute; inset: 0; object-fit: contain; }
.home .ccard--exhibit .ccard__media::after { display: none; }
.home .ccard--exhibit:hover .ccard__media img { transform: none; }
.home .ccard__exhibit-caption { padding: 12px 14px; }
.home .ccard__exhibit-caption .ccard__name { overflow-wrap: anywhere; }
.home .roster__message { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; padding: 38px 16px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }
@media (max-width: 900px) { .home .roster__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .home .roster__grid { grid-template-columns: minmax(0, 1fr); } }

/* 背景故事入口：桌面导航与窄屏独立链接，避免导航隐藏后无法访问。 */
.home .topbar__mobile-lore{display:none;color:#eee;font-size:12px;white-space:nowrap}
@media (min-width:1101px) and (max-width:1450px){.home .topbar__nav{gap:10px}.home .topbar__link{letter-spacing:.02em;white-space:nowrap}.home .topbar{gap:12px;padding-inline:22px}}
@media(max-width:1200px){.home .topbar__nav{display:none}.home .topbar__actions{margin-left:auto}.home .topbar__mobile-lore{display:inline-flex;align-items:center;padding:6px 0}}
@media(max-width:480px){.home .topbar{gap:8px;padding-inline:10px}.home .topbar__actions{gap:7px}.home .topbar__brand{gap:4px}.home .topbar__actions .btn--sm{padding-inline:9px;min-width:0}.home .topbar__name{letter-spacing:.04em;font-size:12px}}
@media(max-width:350px){.home .topbar__name{display:none}}
