.page-home {
  --home-gap: clamp(44px, 7vw, 88px);
  --home-radius: 16px;
  --home-line: rgba(30, 58, 95, 0.9);
  position: relative;
  overflow-x: clip;
}

.page-home .home-crumb {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--haze);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-crumb__sep {
  color: var(--steel);
}

.page-home .home-crumb [aria-current="page"] {
  color: var(--cyan);
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-h) + 28px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero__glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(123, 47, 247, 0.28), transparent 58%),
    radial-gradient(ellipse at 78% 8%, rgba(0, 229, 255, 0.22), transparent 55%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

.page-home .home-hero__arc {
  position: absolute;
  left: -15%;
  right: -15%;
  top: 46%;
  height: 260px;
  border-radius: 50%;
  border-top: 2px solid rgba(0, 229, 255, 0.55);
  border-bottom: 1px solid rgba(255, 46, 147, 0.22);
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.14), transparent 62%);
  transform: rotate(-5deg);
  pointer-events: none;
  z-index: -1;
}

.page-home .home-hero__art {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.16;
  mask-image: linear-gradient(255deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
  -webkit-mask-image: linear-gradient(255deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
}

.page-home .home-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.05);
}

.page-home .home-hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 40px);
}

.page-home .home-hero__main {
  order: 1;
  min-width: 0;
}

.page-home .home-rail {
  order: 2;
  min-width: 0;
  padding: 18px 18px 20px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--panel-soft);
  backdrop-filter: blur(6px);
}

.page-home .home-rail__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-home .home-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .home-rail__item {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 0 0 16px 20px;
  border-left: 1px solid var(--steel);
}

.page-home .home-rail__item:last-child {
  padding-bottom: 0;
}

.page-home .home-rail__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
}

.page-home .home-rail__item--live::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 255, 162, 0.16);
}

.page-home .home-rail__dot {
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.9;
  animation: homePulse 2.6s ease-in-out infinite;
}

.page-home .home-rail__item--live::before {
  opacity: 0;
}

@keyframes homePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 255, 162, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(61, 255, 162, 0); }
}

.page-home .home-rail__time {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .home-rail__text {
  flex: 1 1 100%;
  font-size: 13px;
  line-height: 1.65;
  color: var(--haze);
}

.page-home h1 {
  margin: 10px 0 16px;
  font-size: clamp(27px, 5.2vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ice);
  overflow-wrap: break-word;
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 36em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--haze);
}

.page-home .home-update {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 22px 0 24px;
  padding: 10px 14px;
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  background: rgba(17, 26, 46, 0.7);
}

.page-home .home-update__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: homePulse 2.6s ease-in-out infinite;
}

.page-home .home-update__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--haze);
}

.page-home .home-update__value {
  font-size: 13px;
  color: var(--amber);
  font-weight: 700;
}

.page-home .home-update__sep {
  width: 1px;
  height: 14px;
  background: var(--steel);
}

/* ---------- 三入口卡片 ---------- */

.page-home .home-entries {
  display: grid;
  gap: 12px;
}

.page-home .home-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: linear-gradient(158deg, rgba(17, 26, 46, 0.94), rgba(13, 21, 38, 0.72));
  color: var(--ice);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .home-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 84% 4%, rgba(0, 229, 255, 0.24), transparent 56%),
    radial-gradient(circle at 4% 100%, rgba(123, 47, 247, 0.26), transparent 58%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 20px 44px -26px rgba(0, 229, 255, 0.7);
}

.page-home .home-entry:hover::after,
.page-home .home-entry:focus-visible::after {
  opacity: 1;
}

.page-home .home-entry--apps {
  background: linear-gradient(155deg, rgba(0, 229, 255, 0.13), rgba(17, 26, 46, 0.95) 46%, rgba(123, 47, 247, 0.16));
}

.page-home .home-entry__glitch {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  opacity: 0.45;
  transition: transform 0.18s steps(2, end), opacity 0.2s var(--ease);
}

.page-home .home-entry:hover .home-entry__glitch,
.page-home .home-entry:focus-visible .home-entry__glitch {
  transform: translate(3px, -2px);
  opacity: 1;
}

.page-home .home-entry__kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--violet);
}

.page-home .home-entry--apps .home-entry__kicker { color: var(--cyan); }
.page-home .home-entry--consult .home-entry__kicker { color: var(--pink); }

.page-home .home-entry__title {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .home-entry__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--haze);
}

.page-home .home-entry__go {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .home-entry__go::after {
  content: " →";
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.page-home .home-entry:hover .home-entry__go::after {
  transform: translateX(4px);
}

/* ---------- 章节通用 ---------- */

.page-home .home-section {
  padding: clamp(40px, 6vw, 76px) 0;
}

.page-home .home-section__head {
  max-width: 36em;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .home-section__head h2 {
  margin: 8px 0 12px;
  font-size: clamp(23px, 3.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ice);
}

.page-home .home-section__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--haze);
}

.page-home .home-panel {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--panel-soft);
}

.page-home .home-panel p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--haze);
}

.page-home .home-panel p:last-child {
  margin-bottom: 0;
}

/* ---------- 流程章节 ---------- */

.page-home .home-split {
  display: grid;
  gap: 14px;
}

.page-home .home-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-fact {
  padding: 16px 14px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.07), rgba(17, 26, 46, 0.6));
}

.page-home .home-fact__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .home-fact__label {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--haze);
}

/* ---------- 横向光带 ---------- */

.page-home .home-band {
  position: relative;
  margin: clamp(8px, 2vw, 18px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(0, 229, 255, 0.22);
  border-bottom: 1px solid rgba(123, 47, 247, 0.3);
}

.page-home .home-band img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.15);
}

.page-home .home-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.42) 0px,
    rgba(10, 14, 26, 0.42) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

/* ---------- 移动优先章节 ---------- */

.page-home .home-duo {
  display: grid;
  gap: 22px;
}

.page-home .home-duo__text {
  min-width: 0;
}

.page-home .home-duo__text > p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--haze);
}

.page-home .home-duo__link {
  margin-top: 6px;
}

.page-home .home-duo__media {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--ink-2);
  overflow: hidden;
  position: relative;
}

.page-home .home-duo__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(123, 47, 247, 0.26), transparent 52%);
  pointer-events: none;
  z-index: 1;
}

.page-home .home-duo__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .home-duo__media figcaption {
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--haze);
  border-top: 1px solid var(--home-line);
  background: rgba(10, 14, 26, 0.7);
}

/* ---------- 牌局记录章节 ---------- */

.page-home .home-record {
  display: grid;
  gap: 16px;
}

.page-home .home-record__go {
  margin-top: 6px !important;
}

.page-home .home-record__figure {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--ink-3);
}

.page-home .home-record__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .home-record__figure figcaption {
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--haze);
  border-top: 1px solid var(--home-line);
}

/* ---------- 服务中心主题 ---------- */

.page-home .home-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-topic {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border-left: 2px solid var(--violet);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(123, 47, 247, 0.16), rgba(17, 26, 46, 0.35) 70%);
}

.page-home .home-topic__no {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--haze);
}

.page-home .home-topic__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ice);
}

.page-home .home-topic__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--haze);
}

.page-home .home-hub__note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--steel);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--haze);
}

/* ---------- 版本时间线 ---------- */

.page-home .home-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-log__item {
  position: relative;
  display: block;
  padding: 0 0 22px 22px;
  border-left: 1px solid var(--steel);
}

.page-home .home-log__item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-home .home-log__item::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.page-home .home-log__item:last-child::before {
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.16);
}

.page-home .home-log__ver {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 4px;
}

.page-home .home-log__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ice);
  line-height: 1.5;
}

.page-home .home-log__text {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--haze);
}

.page-home .home-series {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
}

.page-home .home-series__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--haze);
  margin-right: 4px;
}

.page-home .home-series__tag {
  padding: 5px 10px;
  border: 1px solid var(--steel);
  border-radius: 4px;
  font-size: 12px;
  color: var(--ice);
  background: rgba(0, 229, 255, 0.06);
}

/* ---------- 底部行动 ---------- */

.page-home .home-cta {
  margin-top: clamp(26px, 4vw, 42px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background:
    radial-gradient(ellipse at 92% 0%, rgba(255, 46, 147, 0.16), transparent 55%),
    linear-gradient(115deg, rgba(0, 229, 255, 0.1), rgba(123, 47, 247, 0.12));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .home-cta__title {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--ice);
}

.page-home .home-cta__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--haze);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 右侧章节跳转 ---------- */

.page-home .home-jump {
  display: none;
}

@media (min-width: 1180px) {
  .page-home .home-jump {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: rgba(10, 14, 26, 0.86);
    backdrop-filter: blur(8px);
  }

  .page-home .home-jump__link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--haze);
    text-decoration: none;
    padding: 4px 2px;
    transition: color 0.22s var(--ease);
  }

  .page-home .home-jump__link::before {
    content: "";
    width: 12px;
    height: 2px;
    background: currentColor;
    opacity: 0.55;
    transition: width 0.22s var(--ease);
  }

  .page-home .home-jump__link:hover,
  .page-home .home-jump__link:focus-visible,
  .page-home .home-jump__link.is-active,
  .page-home .home-jump__link[aria-current="location"] {
    color: var(--cyan);
  }

  .page-home .home-jump__link.is-active::before,
  .page-home .home-jump__link[aria-current="location"]::before {
    width: 18px;
    opacity: 1;
  }

  .page-home .home-jump__link--cta {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--home-line);
    color: var(--pink);
  }
}

/* ---------- 响应式增强 ---------- */

@media (min-width: 720px) {
  .page-home .home-entries {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .home-entry--apps {
    grid-row: span 2;
  }

  .page-home .home-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .page-home .home-split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: start;
  }

  .page-home .home-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-duo {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    align-items: start;
  }

  .page-home .home-record {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .home-cta__text {
    max-width: 34em;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }

  .page-home .home-crumb {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .page-home .home-rail {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .page-home .home-hero__main {
    order: 2;
  }

  .page-home .home-hero__art {
    width: 56%;
    opacity: 0.28;
  }

  .page-home .home-hero__arc {
    top: 40%;
    height: 380px;
  }

  .page-home .home-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-rail__dot,
  .page-home .home-update__dot {
    animation: none;
  }

  .page-home .home-entry,
  .page-home .home-entry::after,
  .page-home .home-entry__glitch {
    transition: none;
  }
}
