.page-home {
  --home-gap: 20px;
  --home-pad: 56px 0;
  --home-radius-lg: 16px;
  --home-radius-md: 12px;
  --home-line-gold: rgba(212, 162, 76, 0.42);
  --home-ink-soft: rgba(31, 36, 41, 0.76);
  --home-white-soft: rgba(255, 255, 255, 0.8);
  background: var(--c-moon);
  color: var(--c-ink);
  overflow-x: hidden;
}

@media (min-width: 960px) {
  .page-home {
    --home-pad: 88px 0;
  }
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ========== 面包屑 ========== */
.page-home .home-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 28px;
  font-size: 14px;
  color: var(--home-white-soft);
}

.page-home .home-breadcrumbs__item[aria-current="page"] {
  color: var(--c-gold-bright);
}

.page-home .home-breadcrumbs__sep {
  color: var(--c-gold);
  opacity: 0.7;
}

/* ========== 首屏 ========== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 32px) 0 clamp(96px, 14vh, 168px);
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 229, 255, 0.12), transparent 42%),
    linear-gradient(150deg, var(--c-deep) 0%, var(--c-navy) 68%, var(--c-deep) 100%);
  color: var(--c-white);
}

.page-home .home-hero__cityline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 96px;
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.page-home .home-hero__kicker {
  position: relative;
  padding-left: 22px;
  color: var(--c-gold-bright);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.page-home .home-hero__kicker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 3px;
  background: var(--c-cyan);
  transform: translateY(-50%);
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c-white);
}

.page-home .home-hero__lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--home-white-soft);
  max-width: 36em;
}

.page-home .home-hero__steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--home-line-gold);
  border-radius: var(--home-radius-md);
}

.page-home .home-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-deep);
  font-size: 13px;
  font-weight: 700;
}

.page-home .home-step__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-white);
}

.page-home .home-step__arrow {
  color: var(--c-cyan);
  font-size: 18px;
  line-height: 1;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .home-hero__actions .btn {
  min-width: 160px;
  text-align: center;
}

.page-home .home-hero__actions .btn--outline {
  border-color: rgba(212, 162, 76, 0.6);
  color: var(--c-gold-bright);
  background: transparent;
}

.page-home .home-hero__entries {
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-hero__entries-kicker {
  color: var(--c-gold-bright);
  letter-spacing: 0.12em;
  margin-bottom: 0;
}

.page-home .home-hero__entries-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  color: var(--c-white);
}

.page-home .home-hero__entries-desc {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-white-soft);
}

.page-home .quick-entry {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  background: linear-gradient(155deg, rgba(16, 42, 76, 0.92), rgba(10, 30, 63, 0.97));
  border: 1px solid var(--home-line-gold);
  color: var(--c-white);
  text-decoration: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.page-home .quick-entry__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.page-home .quick-entry__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 220px;
  padding: 24px;
  background: linear-gradient(180deg, transparent 32%, rgba(10, 30, 63, 0.78) 100%);
}

.page-home .quick-entry::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(0, 229, 255, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 2;
}

.page-home .quick-entry:hover,
.page-home .quick-entry:focus-visible {
  border-color: var(--c-cyan);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.page-home .quick-entry:hover::after,
.page-home .quick-entry:focus-visible::after {
  left: 130%;
}

.page-home .quick-entry:hover .quick-entry__bg,
.page-home .quick-entry:focus-visible .quick-entry__bg {
  opacity: 0.46;
  transform: scale(1.03);
}

.page-home .quick-entry__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gold-bright);
  letter-spacing: 0.1em;
}

.page-home .quick-entry__topic {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-white);
}

.page-home .quick-entry__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .quick-entry__go {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-cyan);
}

/* ========== 通用章节头 ========== */
.page-home .home-section-head {
  max-width: 720px;
  margin-bottom: 32px;
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--c-gold);
}

.page-home .home-section-head .section-kicker {
  color: var(--c-gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.page-home .home-section-head .section-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.3;
  color: var(--c-deep);
}

.page-home .home-section-head .section-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-ink-soft);
}

.page-home .home-section-head--invert .section-kicker {
  color: var(--c-gold-bright);
}

.page-home .home-section-head--invert .section-title {
  color: var(--c-white);
}

.page-home .home-section-head--invert .section-desc {
  color: rgba(255, 255, 255, 0.76);
}

/* ========== 活动规则导航 ========== */
.page-home .home-rules {
  padding: var(--home-pad);
  background: var(--c-moon);
}

.page-home .home-rules__banner {
  display: block;
  width: 100%;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-line-gold);
  box-shadow: 0 12px 30px rgba(10, 30, 63, 0.12);
  margin-bottom: 28px;
}

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

.page-home .rule-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 168px;
  padding: 22px;
  border-radius: var(--home-radius-md);
  background: var(--c-white);
  border: 1px solid rgba(16, 42, 76, 0.12);
  border-top: 3px solid var(--c-gold);
  box-shadow: 0 6px 18px rgba(10, 30, 63, 0.06);
  color: var(--c-ink);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .rule-card:hover,
.page-home .rule-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--c-cyan);
  border-top-color: var(--c-cyan);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.18);
}

.page-home .rule-card__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.08em;
}

.page-home .rule-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-deep);
}

.page-home .rule-card__desc {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--home-ink-soft);
}

.page-home .home-rules__note {
  margin: 20px 0 0;
  font-size: 13px;
  color: rgba(31, 36, 41, 0.65);
  text-align: right;
}

/* ========== 版本下载区 ========== */
.page-home .home-downloads {
  position: relative;
  padding: var(--home-pad);
  background:
    repeating-linear-gradient(-45deg, rgba(212, 162, 76, 0.05) 0 1px, transparent 1px 14px),
    linear-gradient(120deg, rgba(0, 229, 255, 0.06), transparent 45%),
    linear-gradient(160deg, var(--c-deep), var(--c-navy));
  border-top: 1px solid rgba(212, 162, 76, 0.4);
  color: var(--c-white);
}

.page-home .home-downloads .container {
  position: relative;
  z-index: 1;
}

.page-home .home-downloads__strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .download-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 22px;
  border-radius: var(--home-radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 162, 76, 0.35);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-home .download-card:hover,
.page-home .download-card:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--c-cyan);
  transform: translateY(-3px);
}

.page-home .download-card--featured {
  border: 1px solid var(--c-gold);
  background: linear-gradient(160deg, rgba(212, 162, 76, 0.2), rgba(255, 255, 255, 0.06));
}

.page-home .download-card__version {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--c-gold-bright);
}

.page-home .download-card__tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-deep);
  background: var(--c-gold);
}

.page-home .download-card--featured .download-card__tag {
  background: var(--c-cyan);
}

.page-home .download-card__meta {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.page-home .download-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-cyan);
  text-decoration: none;
}

.page-home .home-downloads__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-downloads__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.page-home .home-downloads__hint::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.25);
}

.page-home .home-downloads__more,
.page-home .home-updates__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.page-home .home-downloads__more {
  color: var(--c-cyan);
}

/* ========== 站内搜索 + 更新动态 ========== */
.page-home .home-bottom {
  padding: var(--home-pad);
  background: var(--c-white);
}

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

.page-home .home-search {
  align-self: start;
  padding: 28px 24px;
  background: var(--c-moon);
  border: 1px solid rgba(16, 42, 76, 0.1);
  border-radius: var(--home-radius-lg);
}

.page-home .home-search .section-kicker,
.page-home .home-updates .section-kicker {
  margin-bottom: 8px;
}

.page-home .home-search .section-title,
.page-home .home-updates .section-title {
  margin: 0;
}

.page-home .home-search__box {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.page-home .home-search__input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(16, 42, 76, 0.28);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-white);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .home-search__input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

.page-home .home-search__btn {
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background: var(--c-gold);
  color: var(--c-deep);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.page-home .home-search__btn:hover {
  background: var(--c-gold-bright);
}

.page-home .home-search__tags {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-search__tags li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 40px;
  background: var(--c-white);
  border: 1px solid rgba(16, 42, 76, 0.12);
  font-size: 14px;
  color: var(--c-deep);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-home .home-search__tags li a::before {
  content: '#';
  color: var(--c-gold);
  font-weight: 700;
}

.page-home .home-search__tags li a:hover,
.page-home .home-search__tags li a:focus-visible {
  background: var(--c-white);
  border-color: var(--c-cyan);
  color: var(--c-navy);
}

.page-home .home-search__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 42, 76, 0.12);
}

.page-home .home-search__stat-num {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--c-deep);
  border-bottom: 3px solid var(--c-gold);
  padding-bottom: 6px;
}

.page-home .home-search__stat-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-ink-soft);
}

.page-home .home-search__trust {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(31, 36, 41, 0.6);
}

.page-home .home-updates__cover {
  display: block;
  width: 100%;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-line-gold);
  margin: 20px 0 24px;
}

.page-home .home-updates__list {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.page-home .update-card {
  padding: 18px 20px;
  border-radius: var(--home-radius-md);
  background: var(--c-moon);
  border-left: 3px solid var(--c-gold);
  color: var(--c-ink);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.page-home .update-card:hover,
.page-home .update-card:focus-within {
  background: var(--c-white);
  border-left-color: var(--c-cyan);
  transform: translateX(4px);
}

.page-home .update-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 40px;
  background: rgba(155, 89, 182, 0.12);
  color: var(--c-violet);
  font-size: 12px;
  font-weight: 700;
}

.page-home .update-card__title {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-deep);
}

.page-home .update-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--home-ink-soft);
}

.page-home .home-updates__more {
  margin-top: 24px;
  color: var(--c-deep);
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-home .home-updates__more:hover {
  color: var(--c-navy);
  transform: translateX(3px);
}

/* ========== 平板与桌面增强 ========== */
@media (min-width: 640px) {
  .page-home .home-rules__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 64px;
    align-items: center;
  }

  .page-home .home-rules__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .page-home .home-downloads__strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

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

  .page-home .home-bottom__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}
