.page-home {
  --home-glow-violet: rgba(123, 47, 255, 0.32);
  --home-glow-gold: rgba(245, 166, 35, 0.30);
  --home-border-line: rgba(181, 107, 255, 0.38);
  --home-card-bg: rgba(20, 43, 110, 0.72);
  --home-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Mono", Consolas, "Courier New", monospace;
  --home-body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "HarmonyOS Sans SC", sans-serif;
  background: var(--color-deep);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ===== 01 版本状态面板 ===== */
.p-home-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-deep);
  border-bottom: 1px solid var(--home-border-line);
}

.p-home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.p-home-hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 21, 53, 0.55) 0%, rgba(10, 21, 53, 0.78) 55%, #0A1535 100%);
  pointer-events: none;
}

.p-home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px 20px 42px;
}

.p-home-hero__console {
  font-family: var(--home-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.08);
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.p-home-hero__title {
  font-family: var(--home-body);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  transform: skewX(var(--skew));
  text-shadow: 0 0 24px rgba(123, 47, 255, 0.55);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.p-home-hero__edition {
  font-family: var(--home-mono);
  font-size: 14px;
  color: var(--color-gold);
  margin: 10px 0 0;
  transform: skewX(var(--skew));
}

.p-home-hero__desc {
  max-width: 680px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-dim);
}

.p-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.p-home-hero__btn {
  display: inline-block;
  font-family: var(--home-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.p-home-hero__btn--gold {
  background: linear-gradient(135deg, var(--color-gold), #D98E17);
  color: #0A1535;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35);
}

.p-home-hero__btn--ghost {
  background: transparent;
  border: 1px solid rgba(181, 107, 255, 0.55);
  color: var(--color-text);
  box-shadow: none;
}

.p-home-hero__btn--gold:hover,
.p-home-hero__btn--ghost:hover {
  transform: translateY(-2px);
}

.p-home-hero__btn--gold:hover {
  box-shadow: 0 6px 28px rgba(245, 166, 35, 0.5);
}

.p-home-hero__btn--ghost:hover {
  box-shadow: 0 6px 24px rgba(123, 47, 255, 0.25);
}

.p-home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.p-home-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  background: rgba(20, 43, 110, 0.6);
  border: 1px solid rgba(123, 47, 255, 0.3);
  border-radius: var(--radius);
  min-width: 88px;
}

.p-home-hero__stat-num {
  font-family: var(--home-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.p-home-hero__stat-label {
  font-size: 12px;
  color: var(--color-dim);
}

/* ===== 02 内容中心索引 ===== */
.p-home-hub {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 72px 20px 64px;
}

.p-home-hub__head {
  max-width: 720px;
  margin-bottom: 40px;
}

.p-home-hub__eyebrow,
.p-home-settings__eyebrow,
.p-home-news__eyebrow,
.p-home-archive__eyebrow {
  font-family: var(--home-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-violet-light);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.p-home-hub__title,
.p-home-settings__title,
.p-home-news__title,
.p-home-archive__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-text);
  transform: skewX(var(--skew));
  text-shadow: 0 0 16px rgba(123, 47, 255, 0.3);
}

.p-home-hub__desc,
.p-home-settings__desc,
.p-home-news__desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-dim);
}

.p-home-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.p-home-hub__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--home-card-bg);
  border: 1px solid var(--home-border-line);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(2, 6, 22, 0.4);
}

.p-home-hub__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-violet), var(--color-gold));
}

.p-home-hub__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.p-home-hub__index {
  font-family: var(--home-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-violet-light);
}

.p-home-hub__card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
}

.p-home-hub__card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(123, 47, 255, 0.2);
  margin-bottom: 14px;
}

.p-home-hub__card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-dim);
  margin: 0 0 14px;
}

.p-home-hub__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.p-home-hub__tag {
  font-family: var(--home-mono);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(181, 107, 255, 0.3);
  border-radius: 999px;
  color: var(--color-violet-light);
  background: rgba(123, 47, 255, 0.08);
}

.p-home-hub__details {
  margin-bottom: 14px;
}

.p-home-hub__summary {
  font-family: var(--home-mono);
  font-size: 13px;
  color: var(--color-gold-light);
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(245, 166, 35, 0.4);
}

.p-home-hub__summary::-webkit-details-marker {
  display: none;
}

.p-home-hub__summary::before {
  content: "[+]";
  margin-right: 6px;
  color: var(--color-gold);
}

.p-home-hub__details[open] .p-home-hub__summary::before {
  content: "[-]";
}

.p-home-hub__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-home-hub__meta li {
  font-family: var(--home-mono);
  font-size: 12px;
  color: var(--color-dim);
  border: 1px solid rgba(167, 180, 204, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.p-home-hub__props {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 16px;
}

.p-home-hub__prop {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(167, 180, 204, 0.14);
  padding-bottom: 8px;
}

.p-home-hub__prop-key {
  font-size: 13px;
  color: var(--color-dim);
}

.p-home-hub__prop-val {
  font-family: var(--home-mono);
  font-size: 13px;
  color: var(--color-gold-light);
}

.p-home-hub__notice-list {
  margin: 0 0 16px;
  padding: 0;
  list-style-position: inside;
  counter-reset: notice-counter;
  list-style: none;
}

.p-home-hub__notice-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-dim);
  padding-left: 24px;
  position: relative;
  counter-increment: notice-counter;
}

.p-home-hub__notice-list li::before {
  content: "0" counter(notice-counter);
  font-family: var(--home-mono);
  font-size: 12px;
  color: var(--color-gold);
  position: absolute;
  left: 0;
  top: 2px;
}

.p-home-hub__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
}

.p-home-hub__link::after {
  content: " →";
  font-family: var(--home-mono);
}

.p-home-hub__link:hover {
  color: var(--color-gold-light);
}

/* ===== 03 六项常用设置项 ===== */
.p-home-settings {
  background: linear-gradient(180deg, rgba(10, 21, 53, 0.2), rgba(20, 43, 110, 0.45));
  border-top: 1px solid rgba(123, 47, 255, 0.18);
  border-bottom: 1px solid rgba(123, 47, 255, 0.18);
  padding: 64px 20px;
}

.p-home-settings__head {
  max-width: 720px;
  margin: 0 auto 38px;
}

.p-home-settings__title,
.p-home-settings__desc {
  text-align: left;
}

.p-home-settings__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.p-home-settings__item {
  background: rgba(10, 21, 53, 0.6);
  border: 1px solid rgba(181, 107, 255, 0.22);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.p-home-settings__item:hover {
  border-color: rgba(181, 107, 255, 0.6);
  background: rgba(20, 43, 110, 0.75);
}

.p-home-settings__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.p-home-settings__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  flex: 1 1 100px;
}

.p-home-settings__value {
  font-family: var(--home-mono);
  font-size: 13px;
  color: var(--color-gold-light);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-home-settings__switch {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.p-home-settings__switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.p-home-settings__switch-track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(167, 180, 204, 0.2);
  border: 1px solid rgba(167, 180, 204, 0.3);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.p-home-settings__switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-dim);
  transition: transform 0.2s ease, background 0.2s ease;
}

.p-home-settings__switch-input:checked + .p-home-settings__switch-track {
  background: rgba(123, 47, 255, 0.35);
  border-color: rgba(181, 107, 255, 0.6);
}

.p-home-settings__switch-input:checked + .p-home-settings__switch-track::after {
  transform: translateX(20px);
  background: var(--color-gold);
}

.p-home-settings__switch-input:focus-visible + .p-home-settings__switch-track {
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35);
}

.p-home-settings__tip {
  font-size: 12px;
  color: var(--color-dim);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ===== 04 站内公告与版本动态 ===== */
.p-home-news {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 72px 20px 64px;
}

.p-home-news__head {
  max-width: 720px;
  margin-bottom: 38px;
}

.p-home-news__carousel {
  position: relative;
  border: 1px solid var(--home-border-line);
  border-radius: var(--radius);
  background: rgba(10, 21, 53, 0.55);
  overflow: hidden;
}

.p-home-news__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.p-home-news__stage {
  position: relative;
}

.p-home-news__slide {
  display: none;
  padding: 28px 24px;
}

.p-home-news__slide--a {
  display: block;
}

.p-home-news__tag {
  display: inline-block;
  font-family: var(--home-mono);
  font-size: 12px;
  color: var(--color-gold);
  border: 1px solid rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.08);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.p-home-news__slide-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 10px;
}

.p-home-news__slide-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-dim);
  margin: 0 0 14px;
}

.p-home-news__slide-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
}

.p-home-news__slide-link:hover {
  color: var(--color-gold-light);
}

.p-home-news__controls {
  display: flex;
  gap: 8px;
  padding: 0 24px 20px;
}

.p-home-news__control {
  font-family: var(--home-mono);
  font-size: 13px;
  color: var(--color-dim);
  border: 1px solid rgba(167, 180, 204, 0.24);
  border-radius: 3px;
  padding: 6px 10px;
  cursor: pointer;
  min-width: 42px;
  text-align: center;
  background: transparent;
}

.p-home-news__control:hover {
  border-color: rgba(245, 166, 35, 0.5);
  color: var(--color-gold-light);
}

#p-home-news-a:checked ~ .p-home-news__controls label[for="p-home-news-a"],
#p-home-news-b:checked ~ .p-home-news__controls label[for="p-home-news-b"],
#p-home-news-c:checked ~ .p-home-news__controls label[for="p-home-news-c"] {
  background: rgba(123, 47, 255, 0.25);
  border-color: rgba(181, 107, 255, 0.7);
  color: var(--color-gold-light);
  box-shadow: 0 0 16px rgba(123, 47, 255, 0.2);
}

#p-home-news-a:checked ~ .p-home-news__stage .p-home-news__slide--a,
#p-home-news-b:checked ~ .p-home-news__stage .p-home-news__slide--b,
#p-home-news-c:checked ~ .p-home-news__stage .p-home-news__slide--c {
  display: block;
}

#p-home-news-a:checked ~ .p-home-news__stage .p-home-news__slide--a {
  animation: p-home-news-fade 0.3s ease;
}

#p-home-news-b:checked ~ .p-home-news__stage .p-home-news__slide--b {
  animation: p-home-news-fade 0.3s ease;
}

#p-home-news-c:checked ~ .p-home-news__stage .p-home-news__slide--c {
  animation: p-home-news-fade 0.3s ease;
}

@keyframes p-home-news-fade {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== 05 旧版本资料库入口 ===== */
.p-home-archive {
  background: var(--color-footer);
  border-top: 1px solid rgba(123, 47, 255, 0.22);
  border-bottom: 1px solid rgba(123, 47, 255, 0.22);
  padding: 64px 20px;
}

.p-home-archive__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p-home-archive__content {
  flex: 1;
}

.p-home-archive__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  transform: skewX(var(--skew));
  text-shadow: 0 0 16px rgba(123, 47, 255, 0.3);
}

.p-home-archive__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-dim);
  margin: 14px 0 18px;
}

.p-home-archive__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-home-archive__list li {
  font-family: var(--home-mono);
  font-size: 13px;
  color: var(--color-dim);
  padding-left: 18px;
  position: relative;
}

.p-home-archive__list li::before {
  content: "▸";
  color: var(--color-gold);
  position: absolute;
  left: 0;
}

.p-home-archive__btn {
  display: inline-block;
  font-family: var(--home-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 166, 35, 0.5);
  color: var(--color-gold-light);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.p-home-archive__btn:hover {
  background: rgba(245, 166, 35, 0.1);
  color: var(--color-gold-light);
}

.p-home-archive__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(123, 47, 255, 0.3);
  box-shadow: 0 12px 40px rgba(2, 6, 22, 0.5);
}

/* ===== 06 全站延伸入口 ===== */
.p-home-extras {
  padding: 48px 20px 64px;
}

.p-home-extras__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.p-home-extras__console {
  font-family: var(--home-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-violet-light);
  border-bottom: 1px solid rgba(123, 47, 255, 0.2);
  padding-bottom: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.p-home-extras__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-home-extras__item {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(167, 180, 204, 0.12);
}

.p-home-extras__item a {
  color: var(--color-dim);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: block;
}

.p-home-extras__item a:hover {
  color: var(--color-gold-light);
  padding-left: 8px;
}

/* ===== 桌面端布局加强 ===== */
@media (min-width: 768px) {
  .p-home-hero {
    min-height: 650px;
  }

  .p-home-hero__title {
    font-size: 2.4rem;
  }

  .p-home-hero__desc {
    font-size: 16px;
  }

  .p-home-hero__stat {
    min-width: 110px;
  }

  .p-home-hub {
    padding-top: 88px;
    padding-bottom: 80px;
  }

  .p-home-hub__title,
  .p-home-settings__title,
  .p-home-news__title,
  .p-home-archive__title {
    font-size: 1.8rem;
  }

  .p-home-hub__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: min-content;
  }

  .p-home-hub__card--games {
    grid-column: span 7;
    grid-row: span 2;
  }

  .p-home-hub__card--rules {
    grid-column: span 5;
    grid-row: span 1;
  }

  .p-home-hub__card--ledger {
    grid-column: span 5;
    grid-row: span 1;
  }

  .p-home-hub__card--notice {
    grid-column: span 12;
    grid-row: span 1;
  }

  .p-home-settings {
    padding: 84px 20px;
  }

  .p-home-settings__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .p-home-news {
    padding: 84px 20px 80px;
  }

  .p-home-news__slide {
    padding: 36px 32px;
  }

  .p-home-archive {
    padding: 84px 20px;
  }

  .p-home-archive__inner {
    flex-direction: row;
    align-items: center;
  }

  .p-home-archive__img {
    max-width: 420px;
  }

  .p-home-extras__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 32px;
  }
}

@media (min-width: 1024px) {
  .p-home-settings__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .p-home-archive__img {
    max-width: 520px;
  }

  .p-home-extras__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-home-hero__inner {
    padding-top: 72px;
    padding-bottom: 56px;
  }
}

/* ===== reduced-motion 兼容 ===== */
@media (prefers-reduced-motion: reduce) {
  .p-home-hero__title,
  .p-home-hub__title,
  .p-home-settings__title,
  .p-home-news__title,
  .p-home-archive__title {
    transform: none;
    text-shadow: none;
  }

  .p-home-hero__btn,
  .p-home-hero__btn--gold:hover,
  .p-home-hero__btn--ghost:hover {
    transform: none;
    box-shadow: none;
  }

  .p-home-settings__switch-track,
  .p-home-settings__switch-track::after {
    transition: none;
  }

  .p-home-news__slide--a,
  .p-home-news__slide--b,
  .p-home-news__slide--c {
    animation: none;
  }

  .p-home-extras__item a:hover {
    padding-left: 0;
  }
}
