/* ==========================================================================
   main.css — 主页（全屏幻灯背景 + 关于 + 服务器 + 人物卡 + KOOK）
   风格：深黑底 / 红色线条 / 大字排版
   ========================================================================== */

body.home {
  background: #050506;
}

/* --------------------------------------------------------------------------
   幻灯背景层
   -------------------------------------------------------------------------- */
.bgstage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050506;
}

.bgstage__slide {
  position: absolute;
  inset: -2%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s var(--ease);
  will-change: opacity, transform;
}

.bgstage__slide.is-active {
  opacity: 1;
  animation: bg-kb 14s linear forwards;
}

@keyframes bg-kb {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.13) translate3d(-1.4%, -1%, 0);
  }
}

.bgstage__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(4, 4, 6, 0.84) 0%,
      rgba(4, 4, 6, 0.58) 32%,
      rgba(4, 4, 6, 0.2) 68%,
      rgba(4, 4, 6, 0.4) 100%
    ),
    radial-gradient(120% 80% at 78% 42%, rgba(216, 31, 42, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(4, 4, 6, 0.46), rgba(4, 4, 6, 0.14) 42%, rgba(5, 5, 6, 0.9) 97%);
}

.bgstage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* 页面内容压在背景之上 */
.page {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   顶部条
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 clamp(18px, 4vw, 56px);
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease),
    border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.is-solid {
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.topbar__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--font-black);
  font-size: 14px;
  color: #fff;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
  box-shadow: 0 0 20px -8px var(--red-glow);
}

.topbar__mark.topbar__logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  object-fit: contain;
}

@media (max-width: 760px) {
  .topbar__mark.topbar__logo {
    width: 36px;
    height: 36px;
  }
}

.topbar__name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.topbar__link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s var(--ease);
  position: relative;
}

.topbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--red-2);
  transition: right 0.4s var(--ease);
}

.topbar__link:hover {
  color: #fff;
}

.topbar__link:hover::after {
  right: 0;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
}

/* 已登录：右上角头像 + 显示名，点进账号设置 */
.topbar__user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 10px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.topbar__user:hover {
  border-color: var(--line-strong);
  background: rgba(216, 31, 42, 0.1);
}

.topbar__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  font-family: var(--font-black);
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red-2), var(--red-deep));
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.topbar__avatar.has-img {
  color: transparent;
  background-color: #14141a;
}

.topbar__uname {
  max-width: 108px;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .topbar__uname {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar__nav {
    display: none;
  }
  .topbar__actions {
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   主视觉
   -------------------------------------------------------------------------- */
.mhero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) clamp(22px, 6vw, 100px) 120px;
}

.mhero__inner {
  max-width: 760px;
}

.mhero__kicker {
  margin-bottom: 26px;
}

.display {
  font-family: var(--font-black);
  font-size: clamp(72px, 15vw, 210px);
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 34%, #8d8d97 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 22px 50px rgba(0, 0, 0, 0.85));
}

.display em {
  font-style: normal;
  background: linear-gradient(180deg, var(--red-3), var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mhero__tagline {
  max-width: 560px;
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
}

.mhero__desc {
  max-width: 540px;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

.mhero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn--join {
  min-width: 170px;
  background: linear-gradient(135deg, var(--red-2), var(--red) 50%, var(--red-deep));
  color: #fff;
  box-shadow: 0 14px 36px -14px var(--red-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--join:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -14px var(--red-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.mhero__status {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.mhero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: dot-pulse 2.2s var(--ease) infinite;
  flex: none;
}

.mhero__dot.is-live {
  background: #35c46a;
}

@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 31, 42, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(216, 31, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(216, 31, 42, 0);
  }
}

.mhero__status b {
  color: var(--red-3);
  font-weight: 700;
}

/* 背景切换指示点 */
.slides-dots {
  position: absolute;
  right: clamp(22px, 6vw, 100px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
}

.slides-dots button {
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.4s var(--ease), width 0.4s var(--ease);
}

.slides-dots button.is-active {
  background: var(--red-2);
  width: 52px;
  box-shadow: 0 0 12px var(--red-glow);
}

/* 侧边竖排文字 */
.side-word {
  position: absolute;
  left: clamp(10px, 2.4vw, 30px);
  bottom: 44px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 14px;
}

.side-word::after {
  content: "";
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--red-2), transparent);
}

@media (max-width: 760px) {
  .slides-dots,
  .side-word {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   内容区块外壳
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(46px, 6.5vh, 78px) clamp(22px, 5vw, 84px);
  background: rgba(5, 5, 6, 0.82);
}

/* 超宽屏别把内容拉满：正文统一收在 1320 内居中 */
.section > * {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.section::before {
  content: "";
  position: absolute;
  left: clamp(22px, 5vw, 84px);
  right: clamp(22px, 5vw, 84px);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent 78%);
}

.section--solid {
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.92), rgba(6, 6, 8, 0.99));
  backdrop-filter: blur(3px);
}

/* --------------------------------------------------------------------------
   关于
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) 1.25fr;
  gap: clamp(26px, 3.4vw, 52px);
  align-items: start;
}

/* 左栏：主张 + 三个关键词卡，避免左侧一大片空白 */
.about__col {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  align-content: start;
}

.about__lead {
  position: relative;
  padding-left: 22px;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: 0.02em;
}

.about__lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--red-2), var(--red-deep));
  box-shadow: 0 0 22px -6px var(--red-glow);
}

.about__lead em {
  font-style: normal;
  color: var(--red-2);
}

.about__text {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
}

.about__text p + p {
  margin-top: 13px;
}

.about__text strong {
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about__fact {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.about__fact b {
  display: block;
  font-family: var(--font-black);
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #fff;
}

.about__fact span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   服务器卡片
   -------------------------------------------------------------------------- */
.servers__grid {
  display: grid;
  grid-template-columns: minmax(340px, 980px);
  justify-content: center;
  gap: 18px;
}

.scard {
  position: relative;
  padding: 27px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(165deg, rgba(24, 24, 28, 0.86), rgba(10, 10, 12, 0.92));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.scard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 82%);
}

.scard:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95),
    0 0 40px -26px var(--red-glow);
}

.scard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.scard__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.scard__mode {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.scard__state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--red-3);
  background: var(--red-soft);
}

.scard__state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.scard__state.is-live {
  color: #4ad07c;
  border-color: rgba(74, 208, 124, 0.35);
  background: rgba(74, 208, 124, 0.12);
}

.scard__desc {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  min-height: 0;
  max-width: 78ch;
}

/* 两项数据横排：开放时间、本档故事 */
.scard__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
  border-top: none;
}

.scard__row {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
}

.scard__row span {
  color: var(--dim);
  letter-spacing: 0.08em;
}

.scard__row b {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.scard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.scard__bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.scard__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red-deep), var(--red-2));
  box-shadow: 0 0 12px -2px var(--red-glow);
  transition: width 1s var(--ease-out);
}

/* --------------------------------------------------------------------------
   人物卡
   -------------------------------------------------------------------------- */
.roster__hint {
  margin: -16px 0 20px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 640px;
}

.roster__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* 左下角：进入角色卡列表页 */
.roster__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.roster__meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

/* 真实角色卡是 <a>，保持块级观感 */
a.ccard {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ccard--live:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.ccard__media.is-blank {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(216, 31, 42, 0.18), transparent 62%),
    #101014;
}

.ccard__initial {
  font-family: var(--font-black);
  font-size: 46px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.16);
}

.ccard {
  position: relative;
  min-height: 286px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(170deg, rgba(20, 20, 24, 0.8), rgba(9, 9, 11, 0.9));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.ccard--empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  border-style: dashed;
  border-color: rgba(216, 31, 42, 0.42);
  background: rgba(216, 31, 42, 0.035);
}

.ccard--empty .ccard__mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  color: var(--red-2);
  font-family: var(--font-black);
  font-size: 22px;
}

.ccard--empty h4 {
  font-size: 16px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.ccard--empty p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

.ccard__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #101014;
}

.ccard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.ccard:hover .ccard__media img {
  transform: scale(1.05);
}

.ccard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 6, 8, 0.94));
}

.ccard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
}

.ccard__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ccard__role {
  margin-top: 5px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-3);
}

.ccard__story {
  margin-top: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   KOOK
   -------------------------------------------------------------------------- */
.kook__grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.kook__text h3 {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.4;
}

.kook__text p {
  margin-top: 12px;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.kook__text .btn {
  margin-top: 20px;
}

/* 左栏三条要点，避免左侧留一大片空白 */
.kook__list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  max-width: 470px;
}

.kook__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}

.kook__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}

.kook__list b {
  margin-right: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

.kook {
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0d0d10;
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95),
    0 0 50px -30px var(--red-glow);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.kook:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.kook__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #17171c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.kook__avatar {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-black);
  font-size: 17px;
  color: #fff;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
  flex: none;
}

.kook__name {
  font-size: 15px;
  font-weight: 700;
}

.kook__meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.kook__meta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ad07c;
  flex: none;
  box-shadow: 0 0 8px rgba(74, 208, 124, 0.8);
}

.kook__body {
  padding: 14px 16px 18px;
  max-height: 260px;
  overflow: auto;
}

.kook__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.kook__ch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

.kook__ch svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--dim);
}

.kook__ch--sub {
  padding-left: 26px;
  color: var(--muted);
  font-size: 12.5px;
}

.kook__ch em {
  font-style: normal;
  margin-left: auto;
  font-size: 11px;
  color: var(--dim);
}

.kook__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--red-deep), var(--red) 55%, var(--red-2));
  transition: filter 0.4s var(--ease);
}

.kook:hover .kook__cta {
  filter: brightness(1.12);
}

@media (max-width: 900px) {
  .kook__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   加入弹窗
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__veil {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.82);
  backdrop-filter: blur(8px);
}

.modal__box {
  position: relative;
  width: min(560px, 100%);
  padding: 40px clamp(24px, 4vw, 44px) 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(170deg, #16161b, #0a0a0c);
  box-shadow: 0 40px 100px -40px #000, 0 0 70px -40px var(--red-glow);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.45s var(--ease-out);
}

.modal.is-open .modal__box {
  transform: none;
}

.modal__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, var(--red-2), transparent);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dim);
  transition: color 0.3s, background 0.3s;
}

.modal__close:hover {
  color: #fff;
  background: var(--red-soft);
}

.modal__close svg {
  width: 14px;
  height: 14px;
}

.modal__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-3);
}

.modal__title {
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.modal__desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.modal__list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.jlink {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}

.jlink:hover {
  transform: translateX(5px);
  border-color: var(--line-strong);
  background: rgba(216, 31, 42, 0.09);
}

.jlink__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: linear-gradient(140deg, var(--red), var(--red-deep));
}

.jlink--kook .jlink__icon {
  background: linear-gradient(140deg, #4cc75a, #2a8c37);
}

.jlink__icon svg {
  width: 21px;
  height: 21px;
}

.jlink__meta {
  min-width: 0;
}

.jlink__name {
  font-size: 15.5px;
  font-weight: 700;
}

.jlink__note {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--dim);
  letter-spacing: 0.03em;
}

.jlink__go {
  margin-left: auto;
  color: var(--dim);
  flex: none;
  transition: color 0.3s, transform 0.3s;
}

.jlink:hover .jlink__go {
  color: var(--red-2);
  transform: translateX(4px);
}

.jlink__go svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.foot-home {
  position: relative;
  padding: 40px clamp(22px, 5vw, 84px) 30px;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.9), #050506);
  border-top: 1px solid var(--line);
}

.foot-home__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-home__brand {
  font-family: var(--font-black);
  font-size: 26px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.foot-home__brand em {
  font-style: normal;
  color: var(--red-2);
}

.foot-home__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

.foot-home__owner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.foot-home__owner-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 42%;
  box-shadow: 0 0 0 3px var(--red-soft);
}

.foot-home__owner-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.foot-home__owner-role {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.foot-home__owner-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.foot-home__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.foot-home__links a:hover {
  color: var(--red-3);
}

.foot-home__legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

/* 回到顶部 */
.totop {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 12, 15, 0.85);
  color: var(--muted);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    color 0.3s, border-color 0.3s;
}

.totop.is-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.totop:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.totop svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .foot-home {
    padding-bottom: 80px;
  }

  .totop {
    left: 14px;
    bottom: 14px;
  }
}

/* 静态模式（?still=1）：压低首屏高度，便于一次性截取全页 */
.is-still .mhero {
  min-height: 720px;
}
