/* ===== 首页 · 主场控制台 ===== */

.page-home {
  display: block;
  background: var(--ink);
  color: var(--mist);
}

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

.page-home .hero-bento {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 7vw, 88px);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 38%;
  opacity: 0.5;
}

.page-home .hero-bento::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(7, 11, 31, 0.97) 0%, rgba(7, 11, 31, 0.9) 40%, rgba(74, 43, 217, 0.34) 78%, rgba(34, 230, 208, 0.16) 100%),
    repeating-linear-gradient(90deg, rgba(24, 42, 99, 0.5) 0 1px, transparent 1px 72px);
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  grid-template-areas:
    "main"
    "member"
    "version"
    "idx";
}

.page-home .hero-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
  padding: clamp(26px, 5vw, 56px);
  border: var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-l);
  background: linear-gradient(150deg, rgba(14, 22, 51, 0.95), rgba(7, 11, 31, 0.82));
}

.page-home .hero-title {
  margin: 0;
  color: var(--white);
}

.page-home .hero-lede {
  margin: 0;
  max-width: 34ch;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.page-home .hero-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-3);
  border: var(--line);
  border-radius: var(--radius-m);
  background: rgba(14, 22, 51, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .hero-note:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-home .hero-note--member {
  grid-area: member;
  border-left: 3px solid var(--cyan);
}

.page-home .hero-note--version {
  grid-area: version;
  border-left: 3px solid var(--orange);
}

.page-home .note-label {
  margin: 0;
  font-size: var(--fs-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.page-home .note-copy {
  margin: 0;
  font-size: var(--fs-2);
  line-height: 1.7;
  color: var(--mist);
}

.page-home .note-link {
  margin-top: auto;
  padding-top: var(--sp-1);
  font-size: var(--fs-2);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 230, 208, 0.4);
  align-self: flex-start;
}

.page-home .note-link:hover {
  border-bottom-color: var(--cyan);
}

.page-home .hero-index {
  grid-area: idx;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.page-home .hero-index-num {
  font-size: clamp(44px, 11vw, 96px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--violet-500), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-index-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), rgba(34, 230, 208, 0.6), transparent);
}

.page-home .hero-index-cap {
  font-size: var(--fs-1);
  letter-spacing: 0.16em;
  color: var(--steel);
  white-space: nowrap;
}

/* ---------- 通用区块 ---------- */

.page-home .hsec {
  padding: clamp(56px, 8vw, 104px) 0;
}

.page-home .hsec--band {
  background: linear-gradient(180deg, var(--navy-900) 0%, rgba(14, 22, 51, 0.25) 100%);
}

.page-home .hsec-head {
  display: grid;
  gap: var(--sp-2);
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.page-home .hsec-head h2 {
  margin: 0;
  color: var(--white);
}

.page-home .hsec-lede {
  margin: 0;
  font-size: var(--fs-3);
  line-height: 1.7;
  color: var(--steel);
  max-width: 44ch;
}

/* ---------- 三条入口 ---------- */

.page-home .entry-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  grid-template-areas:
    "a"
    "b"
    "c";
}

.page-home .entry-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-l);
}

.page-home .entry-card--main {
  grid-area: a;
  gap: 0;
}

.page-home .entry-card:nth-of-type(2) {
  grid-area: b;
  border-left: 3px solid var(--violet-500);
}

.page-home .entry-card:nth-of-type(3) {
  grid-area: c;
  border-left: 3px solid var(--orange);
}

.page-home .entry-body {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-home .entry-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.page-home .entry-title {
  margin: 0;
  font-size: var(--fs-4);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.page-home .entry-copy {
  margin: 0;
  font-size: var(--fs-2);
  line-height: 1.75;
  color: var(--mist);
  max-width: 38ch;
}

.page-home .entry-link {
  margin-top: auto;
  font-size: var(--fs-2);
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 230, 208, 0.4);
  align-self: flex-start;
}

.page-home .entry-link:hover {
  border-bottom-color: var(--cyan);
}

.page-home .figure {
  margin: 0;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius-m);
  background: linear-gradient(140deg, rgba(74, 43, 217, 0.3), rgba(7, 11, 31, 0.9));
}

.page-home .figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .entry-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- 内容栏目 ---------- */

.page-home .channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--line);
}

.page-home .channel-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: var(--line);
}

.page-home .channel-num {
  font-size: var(--fs-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--violet-500);
  padding-top: 3px;
}

.page-home .channel-name {
  margin: 0;
  font-size: var(--fs-3);
  font-weight: 800;
  color: var(--white);
}

.page-home .channel-desc {
  margin: 6px 0 0;
  font-size: var(--fs-2);
  line-height: 1.7;
  color: var(--steel);
}

.page-home .channel-note {
  margin: var(--sp-5) 0 0;
  padding-left: var(--sp-3);
  border-left: 2px solid var(--navy-700);
  font-size: var(--fs-2);
  line-height: 1.8;
  color: var(--steel);
  max-width: 62ch;
}

.page-home .channel-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 230, 208, 0.45);
}

/* ---------- 稳定版 ---------- */

.page-home .spec-layout {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-home .figure--spec img {
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.page-home .spec-body {
  display: grid;
  gap: var(--sp-2);
  justify-items: start;
}

.page-home .spec-body h2 {
  margin: 0;
  color: var(--white);
}

.page-home .spec-lede {
  margin: 0;
  font-size: var(--fs-3);
  line-height: 1.7;
  color: var(--steel);
  max-width: 42ch;
}

.page-home .spec-list {
  margin: var(--sp-3) 0 0;
  padding: 0;
  width: 100%;
  border-top: var(--line);
}

.page-home .spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-2);
  align-items: baseline;
  padding: var(--sp-2) 0;
  border-bottom: var(--line);
}

.page-home .spec-key {
  font-size: var(--fs-2);
  color: var(--steel);
}

.page-home .spec-val {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-2);
  letter-spacing: 0.03em;
  color: var(--cyan);
  text-align: right;
}

.page-home .spec-body .btn {
  margin-top: var(--sp-3);
}

/* ---------- 近期更新 ---------- */

.page-home .updates-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 4vw, 52px);
  border: var(--line);
  border-radius: var(--radius-l);
  background: var(--navy-900);
}

.page-home .updates-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .updates-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(7, 11, 31, 0.55) 0%, rgba(7, 11, 31, 0.92) 58%, rgba(74, 43, 217, 0.35) 100%);
}

.page-home .updates-inner {
  position: relative;
  z-index: 2;
}

.page-home .update-list {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  border-top: var(--line);
}

.page-home .update-item {
  display: grid;
  gap: 6px;
  padding: var(--sp-3) 0;
  border-bottom: var(--line);
}

.page-home .update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.page-home .update-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(34, 230, 208, 0.35);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.page-home .update-time {
  font-size: var(--fs-1);
  color: var(--steel);
}

.page-home .update-title {
  margin: 0;
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.5;
}

.page-home .update-title a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-home .update-title a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .update-copy {
  margin: 0;
  font-size: var(--fs-2);
  line-height: 1.7;
  color: var(--steel);
  max-width: 58ch;
}

/* ---------- 自助与联系 ---------- */

.page-home .help-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

.page-home .help-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: clamp(24px, 3.4vw, 40px);
  border: var(--line);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, rgba(24, 42, 99, 0.5), rgba(14, 22, 51, 0.78));
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .help-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-home .help-card--mail:hover {
  border-color: var(--orange);
}

.page-home .help-index {
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--violet-500);
}

.page-home .help-card--mail .help-index {
  color: var(--orange);
  font-size: var(--fs-3);
}

.page-home .help-title {
  margin: 0;
  font-size: var(--fs-4);
  font-weight: 800;
  color: var(--white);
}

.page-home .help-copy {
  margin: 0;
  font-size: var(--fs-2);
  line-height: 1.8;
  color: var(--mist);
  max-width: 42ch;
}

.page-home .help-mail {
  color: var(--cyan);
  word-break: break-all;
}

.page-home .help-more {
  margin-top: auto;
  padding-top: var(--sp-2);
  font-size: var(--fs-2);
  color: var(--cyan);
}

.page-home .help-card--mail .help-more {
  color: var(--orange);
}

/* ---------- 断点 ---------- */

@media (min-width: 620px) {
  .page-home .entry-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b c";
  }

  .page-home .channel-list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--sp-6);
  }
}

@media (min-width: 760px) {
  .page-home .entry-body {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (min-width: 880px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-4);
    grid-template-areas:
      "main main main main main main main member member member member member"
      "main main main main main main main version version version version version"
      "idx idx idx idx idx idx idx idx idx idx idx idx";
  }

  .page-home .hero-note {
    padding: var(--sp-4) var(--sp-3);
  }
}

@media (min-width: 900px) {
  .page-home .spec-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--sp-6);
  }
}

@media (min-width: 980px) {
  .page-home .entry-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-4);
    grid-template-areas:
      "a a a a a a a b b b b b"
      "a a a a a a a c c c c c";
  }

  .page-home .entry-card:nth-of-type(2),
  .page-home .entry-card:nth-of-type(3) {
    padding: var(--sp-4);
  }

  .page-home .channel-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .help-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-note,
  .page-home .help-card,
  .page-home .update-title a {
    transition: none;
  }

  .page-home .hero-note:hover,
  .page-home .help-card:hover {
    transform: none;
  }
}
