.page-home {
  --home-line: rgba(47, 240, 208, 0.42);
  --home-line-soft: rgba(30, 58, 95, 0.9);
  --home-panel: rgba(10, 23, 48, 0.86);
  position: relative;
  overflow-x: clip;
  color: var(--text);
}

.page-home .section {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter);
  box-sizing: border-box;
}

.page-home .home-head {
  max-width: 720px;
  margin: 0 0 30px;
}

.page-home .home-head--split {
  max-width: none;
  display: grid;
  gap: 14px;
}

/* ---------- 首屏拼贴 ---------- */

.page-home .home-hero {
  position: relative;
  padding: 28px 0 48px;
  background:
    radial-gradient(900px 460px at 84% 10%, rgba(47, 240, 208, 0.12), transparent 62%),
    radial-gradient(680px 420px at 6% 92%, rgba(255, 122, 47, 0.09), transparent 66%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30, 58, 95, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, 0.5) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(158deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 88%);
  mask-image: linear-gradient(158deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 88%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.page-home .home-hero__left h1 {
  margin: 12px 0 16px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.page-home .home-hero__lead {
  margin: 0;
  font-size: var(--fs-3);
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 44ch;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-hero__facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--grid);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-home .home-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .home-fact__num {
  font-size: var(--fs-5);
  color: var(--accent);
  line-height: 1;
}

.page-home .home-fact__label {
  font-size: var(--fs-1);
  color: var(--text-dim);
  line-height: 1.5;
}

.page-home .home-hero__right {
  position: relative;
  display: grid;
  gap: 14px;
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  min-height: 220px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--grid);
  background: var(--deep);
}

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

.page-home .home-hero__chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--grid);
  background: var(--home-panel);
  font-size: var(--fs-2);
  color: var(--text-dim);
}

.page-home .home-hero__chip strong {
  font-size: var(--fs-3);
  color: var(--text);
}

.page-home .home-hero__chip--b strong {
  color: var(--orange);
}

.page-home .home-hero__diag {
  position: absolute;
  top: 4%;
  left: 40%;
  width: 2px;
  height: 118%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: rotate(22deg);
  transform-origin: top center;
  opacity: 0.55;
  pointer-events: none;
  display: none;
}

/* ---------- 三处入口 ---------- */

.page-home .home-entries__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.page-home .home-entry {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--grid);
  background: linear-gradient(152deg, rgba(18, 42, 74, 0.88), rgba(10, 23, 48, 0.92));
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 38%, rgba(47, 240, 208, 0.16) 50%, transparent 62%);
  transform: translateX(-125%);
  transition: transform 0.72s var(--ease);
  pointer-events: none;
}

.page-home .home-entry:hover::after,
.page-home .home-entry:focus-within::after {
  transform: translateX(125%);
}

.page-home .home-entry:hover {
  border-color: var(--home-line);
  box-shadow: 0 18px 44px rgba(5, 11, 26, 0.62);
  transform: translateY(-2px);
}

.page-home .home-entry__idx {
  display: inline-block;
  font-size: var(--fs-2);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.page-home .home-entry h3 {
  margin: 0 0 10px;
  font-size: var(--fs-4);
  font-weight: 800;
  line-height: 1.3;
}

.page-home .home-entry p {
  margin: 0 0 16px;
  font-size: var(--fs-2);
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .home-entries__visual {
  margin: 0;
  min-height: 200px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--grid);
  background: var(--deep);
}

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

/* ---------- 今日场次拼贴 ---------- */

.page-home .home-games__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.page-home .home-game {
  border-radius: var(--r-lg);
  border: 1px solid var(--grid);
  background: linear-gradient(150deg, rgba(18, 42, 74, 0.78), rgba(10, 23, 48, 0.94));
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-game:hover,
.page-home .home-game[open] {
  border-color: var(--home-line);
  box-shadow: 0 16px 40px rgba(5, 11, 26, 0.58);
}

.page-home .home-game > summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.page-home .home-game > summary::-webkit-details-marker {
  display: none;
}

.page-home .home-game__code {
  font-size: var(--fs-2);
  color: var(--amber);
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 194, 75, 0.36);
  background: rgba(255, 194, 75, 0.08);
}

.page-home .home-game__name {
  font-size: var(--fs-4);
  font-weight: 800;
  line-height: 1.3;
}

.page-home .home-game__list {
  list-style: none;
  margin: 0;
  padding: 4px 22px 22px;
  display: grid;
  gap: 10px;
  border-top: 1px dashed var(--grid);
  padding-top: 16px;
}

.page-home .home-game__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  font-size: var(--fs-2);
  color: var(--text-dim);
}

.page-home .home-game__list li .mono {
  color: var(--accent);
  min-width: 76px;
}

.page-home .home-game__list--multi {
  grid-template-columns: 1fr;
}

/* ---------- 栏目周期 ---------- */

.page-home .home-cycle__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.page-home .home-cycle__panel {
  padding: 24px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--grid);
  background: var(--home-panel);
}

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

.page-home .home-cycle__steps li {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--grid);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-2);
  color: var(--text-dim);
  min-width: 0;
}

.page-home .home-cycle__steps li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--track);
  border: 1px solid var(--grid);
}

.page-home .home-cycle__steps li .mono {
  color: var(--accent-soft);
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
}

.page-home .home-cycle__steps li.is-now {
  color: var(--text);
  border-top-color: rgba(255, 122, 47, 0.5);
}

.page-home .home-cycle__steps li.is-now::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 47, 0.18);
}

.page-home .home-cycle__steps li.is-now .mono {
  color: var(--orange);
}

.page-home .home-cycle__folds {
  display: grid;
  gap: 10px;
}

.page-home .fold {
  border-radius: var(--r-md);
  border: 1px solid var(--grid);
  background: rgba(5, 11, 26, 0.5);
  overflow: hidden;
}

.page-home .fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: var(--fs-3);
  font-weight: 700;
}

.page-home .fold > summary::-webkit-details-marker {
  display: none;
}

.page-home .fold__idx {
  color: var(--text-dim);
  font-size: var(--fs-2);
  transition: color var(--dur) var(--ease);
}

.page-home .fold[open] .fold__idx {
  color: var(--accent);
}

.page-home .fold__body {
  padding: 0 18px 18px 46px;
  color: var(--text-dim);
  font-size: var(--fs-2);
  line-height: 1.8;
}

.page-home .fold__body p {
  margin: 0;
}

.page-home .home-cycle__visual {
  margin: 0;
  min-height: 200px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--grid);
  background: var(--deep);
}

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

/* ---------- 费用速览 ---------- */

.page-home .home-price {
  background: linear-gradient(180deg, rgba(10, 23, 48, 0.6), transparent 70%);
}

.page-home .home-price__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.page-home .home-price__card {
  padding: 24px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--grid);
  background: rgba(5, 11, 26, 0.62);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-price__card--lead {
  border-color: rgba(47, 240, 208, 0.45);
  background: linear-gradient(158deg, rgba(18, 42, 74, 0.95), rgba(10, 23, 48, 0.95));
  box-shadow: 0 20px 50px rgba(5, 11, 26, 0.6);
}

.page-home .home-price__amount {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .home-price__amount .mono {
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.01em;
}

.page-home .home-price__unit {
  font-size: var(--fs-2);
  color: var(--text-dim);
}

.page-home .home-price__amount--text {
  font-size: var(--fs-4);
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.page-home .home-price__desc {
  margin: 0;
  font-size: var(--fs-2);
  line-height: 1.75;
  color: var(--text-dim);
}

.page-home .home-price__note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px dashed var(--grid);
  font-size: var(--fs-2);
  line-height: 1.8;
  color: var(--text-dim);
}

.page-home .home-price__note .mono {
  color: var(--orange);
  font-size: var(--fs-3);
}

.page-home .home-price__note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 240, 208, 0.4);
}

.page-home .home-price__note a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- 安卓新版变化 ---------- */

.page-home .home-android__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.page-home .home-change {
  padding: 26px 22px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--grid);
  background: linear-gradient(200deg, rgba(18, 42, 74, 0.7), rgba(5, 11, 26, 0.9));
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-change:hover {
  border-color: var(--home-line);
  transform: translateY(-3px);
}

.page-home .home-change__idx {
  font-size: var(--fs-6);
  line-height: 1;
  font-weight: 700;
  color: rgba(47, 240, 208, 0.28);
}

.page-home .home-change h3 {
  margin: 0;
  font-size: var(--fs-4);
  font-weight: 800;
  line-height: 1.35;
}

.page-home .home-change p {
  margin: 0;
  font-size: var(--fs-2);
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .home-change__link {
  color: var(--accent);
  font-size: var(--fs-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 240, 208, 0.4);
  align-self: flex-start;
}

.page-home .home-change__link:hover {
  border-bottom-color: var(--accent);
}

/* ---------- 运营团队 ---------- */

.page-home .home-team__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.page-home .home-team__intro p {
  margin: 0 0 14px;
  font-size: var(--fs-3);
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 46ch;
}

.page-home .home-team__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .home-team__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--grid);
  border: 1px solid var(--grid);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.page-home .home-team__stats li {
  background: rgba(10, 23, 48, 0.94);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-team__stats .stat__value {
  font-size: var(--fs-5);
  color: var(--accent);
  line-height: 1;
}

.page-home .home-team__stats .stat__label {
  font-size: var(--fs-1);
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- 收尾 ---------- */

.page-home .home-close {
  position: relative;
  margin-top: 24px;
}

.page-home .home-close__ice {
  margin: 0;
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
  background: var(--void);
}

.page-home .home-close__ice img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  opacity: 0.72;
}

.page-home .home-close__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px var(--gutter) 60px;
  box-sizing: border-box;
}

.page-home .home-close__inner h2 {
  margin: 0 0 14px;
  font-size: var(--fs-5);
  font-weight: 900;
  line-height: 1.25;
}

.page-home .home-close__inner p {
  margin: 0 0 24px;
  font-size: var(--fs-3);
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 54ch;
}

.page-home .home-close__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 平板 ---------- */

@media (min-width: 700px) {
  .page-home .section {
    padding: 72px var(--gutter);
  }

  .page-home .home-hero {
    padding: 40px 0 64px;
  }

  .page-home .home-hero__left h1 {
    font-size: 46px;
  }

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

  .page-home .home-entries__visual {
    grid-column: span 1;
  }

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

  .page-home .home-game--hero {
    grid-column: span 2;
  }

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

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

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

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

  .page-home .home-close__inner {
    padding: 56px var(--gutter) 72px;
  }
}

/* ---------- 桌面 ---------- */

@media (min-width: 1024px) {
  .page-home .home-head--split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 32px;
  }

  .page-home .home-head--split .section-lead {
    margin-bottom: 4px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    align-items: start;
  }

  .page-home .home-hero__left {
    grid-column: 1 / span 5;
    padding-top: 18px;
  }

  .page-home .home-hero__right {
    grid-column: 7 / span 6;
  }

  .page-home .home-hero__diag {
    display: block;
  }

  .page-home .home-hero__visual {
    min-height: 340px;
    margin-right: -4%;
  }

  .page-home .home-hero__chip--a {
    position: absolute;
    left: -46px;
    bottom: 58px;
    width: 216px;
  }

  .page-home .home-hero__chip--b {
    position: absolute;
    right: 10px;
    bottom: -22px;
    width: 200px;
  }

  .page-home .home-entries__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(120px, auto);
  }

  .page-home .home-entry--wide {
    grid-column: 1 / span 5;
    grid-row: span 2;
  }

  .page-home .home-entries__visual {
    grid-column: 6 / span 7;
    grid-row: span 2;
    min-height: 300px;
  }

  .page-home .home-entry--mid {
    grid-column: span 6;
  }

  .page-home .home-games__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(120px, auto);
  }

  .page-home .home-game--hero {
    grid-column: 1 / span 7;
    grid-row: span 2;
  }

  .page-home .home-game--a {
    grid-column: 8 / span 5;
    grid-row: span 2;
  }

  .page-home .home-game--b {
    grid-column: 1 / span 4;
  }

  .page-home .home-game--c {
    grid-column: 5 / span 4;
  }

  .page-home .home-game--d {
    grid-column: 9 / span 4;
  }

  .page-home .home-cycle__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 28px;
  }

  .page-home .home-cycle__visual {
    min-height: 320px;
  }

  .page-home .home-team__grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
    gap: 40px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry::after,
  .page-home .home-entry,
  .page-home .home-change {
    transition: none;
  }

  .page-home .home-entry:hover::after,
  .page-home .home-entry:focus-within::after {
    transform: translateX(-125%);
  }
}
