/* ===== 首页专属样式 ===== */
.page-home {
  --home-maxw: 1200px;
  --home-gap: clamp(1rem, 3vw, 2.5rem);
  --home-pad-x: clamp(1.25rem, 5vw, 3rem);
  --home-pad-y: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 88% -6%, rgba(212, 175, 55, 0.14), transparent 62%),
    var(--xy-purple-deep);
  color: var(--xy-cream);
  font-family: var(--xy-sans);
  line-height: 1.75;
  letter-spacing: var(--xy-tracking);
}

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

.page-home a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--xy-ease), border-color 0.25s var(--xy-ease), padding-left 0.25s var(--xy-ease);
}

.page-home section {
  padding: var(--home-pad-y) var(--home-pad-x);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
}

.page-home .home-section-title {
  font-family: var(--xy-sans-display);
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  line-height: 1.12;
  color: var(--xy-gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.55em;
}

.page-home .home-section-lead {
  color: var(--xy-cream);
  max-width: 38em;
  margin: 0;
}

/* 渐进增强：JS 关闭时内容完整可读 */
.page-home [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- 首屏 ---------- */
.page-home .home-mast {
  position: relative;
  padding-top: clamp(3rem, 8vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.page-home .home-mast__inner {
  max-width: var(--home-maxw);
  margin-inline: auto;
  display: grid;
  gap: 2.4rem;
}

.page-home .home-breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xy-mist);
  margin-bottom: 1rem;
}

.page-home .home-mast__kicker {
  color: var(--xy-gold);
}

.page-home .home-mast__title {
  font-family: var(--xy-sans-display);
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--xy-gold);
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding-right: 0.35em;
  margin: 0.15em 0 0.3em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.page-home .home-mast__title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 180, 0.30), transparent);
  transform: translateX(-160%) skewX(-10deg);
  animation: xy-home-gold-sweep 5.2s ease-in-out 1s infinite;
}

@keyframes xy-home-gold-sweep {
  0%, 30% { transform: translateX(-160%) skewX(-10deg); }
  52%, 100% { transform: translateX(460%) skewX(-10deg); }
}

.page-home .home-mast__statement {
  font-family: var(--xy-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  line-height: 1.8;
  color: var(--xy-cream);
  max-width: 30em;
  margin: 0 0 0.6rem;
}

.page-home .home-catalog {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid rgba(212, 175, 55, 0.30);
  max-width: 560px;
}

.page-home .home-catalog__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--xy-gold);
  margin-top: 1.2em;
  margin-bottom: 0.2em;
}

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

.page-home .home-catalog__item + .home-catalog__item {
  border-top: 1px dashed rgba(212, 175, 55, 0.18);
}

.page-home .home-catalog__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85em 0.15em;
  color: var(--xy-cream);
}

.page-home .home-catalog__link:hover,
.page-home .home-catalog__link:focus-visible {
  color: var(--xy-gold);
  padding-left: 0.55em;
}

.page-home .home-catalog__no {
  font-family: var(--xy-serif);
  font-style: italic;
  color: var(--xy-gold-dark);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.page-home .home-mast__visual {
  position: relative;
  border-radius: var(--xy-radius);
  overflow: hidden;
  box-shadow: var(--xy-shadow);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.page-home .home-mast__deco {
  position: absolute;
  top: -1.6rem;
  right: -1.2rem;
  width: 170px;
  height: 170px;
  pointer-events: none;
  z-index: 2;
}

.page-home .home-mast__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ---------- 版本 ---------- */
.page-home .home-version {
  background:
    radial-gradient(560px 340px at 12% 8%, rgba(212, 175, 55, 0.10), transparent 60%),
    var(--xy-purple-soft);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.page-home .home-version__inner {
  max-width: var(--home-maxw);
  margin-inline: auto;
  display: grid;
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-version__badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.page-home .home-version__num {
  font-family: var(--xy-sans-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  color: var(--xy-white);
  background: var(--xy-ink);
  border: 1px solid var(--xy-gold);
  border-radius: var(--xy-radius);
  padding: 0.25em 0.45em;
  display: inline-block;
}

.page-home .home-version__list {
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 0;
}

.page-home .home-version__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
}

.page-home .home-version__tick {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  margin-top: 0.22em;
  border: 1px solid var(--xy-gold);
  border-radius: 50%;
  font-size: 0.68em;
  color: var(--xy-gold);
}

.page-home .home-version__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
}

.page-home .home-version__ghost {
  color: var(--xy-mist);
  border-bottom: 1px solid transparent;
}

.page-home .home-version__ghost:hover,
.page-home .home-version__ghost:focus-visible {
  color: var(--xy-gold);
  border-bottom-color: var(--xy-gold);
}

.page-home .home-version__visual {
  position: relative;
  border-radius: var(--xy-radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: var(--xy-shadow);
}

.page-home .home-version__visual img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}

.page-home .home-version__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

/* ---------- 活动 ---------- */
.page-home .home-activities {
  background-color: var(--xy-purple-deep);
  background-image:
    radial-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1.4px),
    linear-gradient(rgba(61, 42, 109, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 42, 109, 0.16) 1px, transparent 1px);
  background-size: 18px 18px, 44px 44px, 44px 44px;
}

.page-home .home-activities__head {
  max-width: var(--home-maxw);
  margin-inline: auto;
}

.page-home .home-activities__head .xy-kicker {
  color: var(--xy-gold);
}

.page-home .home-activities__note {
  color: var(--xy-mist);
  margin: 0 0 2rem;
  max-width: 40em;
}

.page-home .home-activities__layout {
  max-width: var(--home-maxw);
  margin-inline: auto;
  display: grid;
  gap: var(--home-gap);
  align-items: stretch;
}

.page-home .home-activities__visual {
  border-radius: var(--xy-radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: var(--xy-shadow);
  min-height: 220px;
}

.page-home .home-activities__visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.page-home .home-activities__list {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.page-home .home-activity-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: rgba(60, 42, 109, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--xy-radius);
  transition: transform 0.32s var(--xy-ease), border-color 0.32s var(--xy-ease), background 0.32s var(--xy-ease);
}

.page-home .home-activity-row:hover,
.page-home .home-activity-row:focus-within {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(60, 42, 109, 0.75);
}

.page-home .home-activity-row__no {
  font-family: var(--xy-serif);
  font-style: italic;
  color: var(--xy-gold-dark);
  font-size: 1.1rem;
  line-height: 1.4;
}

.page-home .home-activity-row__body h3 {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--xy-cream);
  margin: 0 0 0.25em;
}

.page-home .home-activity-row__body p {
  margin: 0 0 0.6em;
  color: var(--xy-mist);
  font-size: 0.95rem;
}

.page-home .home-activities__notice {
  margin: 0.5rem 0 0;
  color: var(--xy-mist);
}

.page-home .home-activities__notice a {
  color: var(--xy-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 下载 ---------- */
.page-home .home-download {
  position: relative;
  background:
    radial-gradient(700px 320px at 82% 30%, rgba(255, 107, 53, 0.18), transparent 62%),
    linear-gradient(120deg, var(--xy-ink) 0%, #191025 52%, var(--xy-purple-soft) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  overflow: hidden;
}

.page-home .home-download__inner {
  max-width: var(--home-maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: flex-start;
}

.page-home .home-download__lead {
  max-width: 36em;
  color: var(--xy-cream);
  margin: 0;
}

.page-home .home-download__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25em;
  margin-top: 0.6rem;
  background: linear-gradient(135deg, var(--xy-orange) 0%, var(--xy-orange-dark) 100%);
  border-radius: var(--xy-radius);
  padding: 1.05em 2.1em;
  color: var(--xy-white) !important;
  box-shadow: 0 10px 34px rgba(255, 107, 53, 0.4);
  transition: transform 0.32s var(--xy-ease), box-shadow 0.32s var(--xy-ease);
}

.page-home .home-download__btn:hover,
.page-home .home-download__btn:focus-visible {
  transform: scale(1.045);
  box-shadow: 0 14px 46px rgba(255, 107, 53, 0.5);
}

.page-home .home-download__btn-label {
  font-family: var(--xy-sans-display);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.page-home .home-download__btn-sub {
  font-size: 0.82rem;
  opacity: 0.9;
}

.page-home .home-download__badge {
  align-self: flex-start;
}

.page-home .home-download__bg {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-top: 2.4rem;
  border-radius: var(--xy-radius);
  opacity: 0.75;
}

/* ---------- 信任声明 ---------- */
.page-home .home-trust {
  background: linear-gradient(180deg, rgba(60, 42, 109, 0.35), rgba(60, 42, 109, 0.10));
}

.page-home .home-trust__inner {
  max-width: 820px;
  margin-inline: auto;
}

.page-home .home-trust__quote {
  font-family: var(--xy-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  line-height: 1.85;
  color: var(--xy-cream);
  border-left: 3px solid var(--xy-gold);
  padding-left: 1.3rem;
  margin: 0;
}

/* ---------- 联系 ---------- */
.page-home .home-contact {
  background:
    radial-gradient(600px 360px at 12% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
    var(--xy-purple-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.10);
}

.page-home .home-contact__head {
  max-width: var(--home-maxw);
  margin-inline: auto;
}

.page-home .home-contact__grid {
  max-width: var(--home-maxw);
  margin-inline: auto;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.page-home .home-contact__item {
  background: var(--xy-ink-soft);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--xy-radius);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.3s var(--xy-ease), transform 0.3s var(--xy-ease);
}

.page-home .home-contact__item:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.page-home .home-contact__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--xy-mist);
  margin-bottom: 0.35em;
}

.page-home .home-contact__value {
  color: var(--xy-cream);
  font-weight: 600;
  word-break: break-word;
}

.page-home .home-contact__foot {
  max-width: var(--home-maxw);
  margin-inline: auto;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  align-items: center;
}

.page-home .home-contact__more {
  color: var(--xy-mist);
  border-bottom: 1px solid transparent;
}

.page-home .home-contact__more:hover,
.page-home .home-contact__more:focus-visible {
  color: var(--xy-gold);
  border-bottom-color: var(--xy-gold);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .home-catalog__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.2rem;
  }

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

@media (min-width: 900px) {
  .page-home .home-mast__inner {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }

  .page-home .home-mast__visual {
    margin-top: 0;
  }

  .page-home .home-mast__img {
    height: clamp(360px, 42vw, 560px);
  }

  .page-home .home-version__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .page-home .home-activities__layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

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

  .page-home .home-download__badge {
    align-self: center;
    margin-top: 0;
  }
}

@media (min-width: 1080px) {
  .page-home .home-contact__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }

  .page-home [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
