/* ===== 首页 · page-home ===== */

.page-home {
  --home-glow: rgba(217, 165, 68, 0.16);
}

/* ---------- 首屏框景 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 44px) 0 clamp(44px, 7vw, 92px);
  background:
    radial-gradient(115% 85% at 82% 6%, var(--home-glow) 0%, transparent 60%),
    linear-gradient(158deg, #0B1730 0%, #16264F 60%, #0B1730 100%);
  color: var(--moon);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  opacity: 0.42;
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg,
      rgba(11, 23, 48, 0.95) 0%,
      rgba(11, 23, 48, 0.78) 44%,
      rgba(11, 23, 48, 0.28) 100%);
}

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

.page-home .home-hero__frame {
  position: relative;
  padding: clamp(26px, 3.6vw, 52px);
  border-radius: var(--radius);
}

.page-home .home-hero__ticks {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(217, 165, 68, 0.5) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(217, 165, 68, 0.5) 0 1px, transparent 1px 16px);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 5px, 100% 5px;
  background-position: 0 0, 0 100%;
}

.page-home .home-hero__eyebrow {
  margin: 0;
  color: var(--gold-soft);
}

.page-home .home-hero__title {
  margin: 18px 0 0;
  max-width: 17em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.85rem, 5.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--moon);
}

.page-home .home-hero__lead {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(245, 242, 234, 0.82);
}

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

.page-home .home-hero__facts {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-gold);
}

.page-home .home-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-hero__fact-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-home .home-hero__fact-label {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(245, 242, 234, 0.66);
}

@media (min-width: 640px) {
  .page-home .home-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* ---------- 主体昼夜切换 ---------- */

.page-home .home-body {
  background: var(--moon);
  color: var(--ink-black);
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px);
}

.page-home .home-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (min-width: 980px) {
  .page-home .home-main-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(36px, 4.4vw, 72px);
  }
}

/* ---------- 粘性叙事侧栏 ---------- */

.page-home .home-rail__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--home-glow) 0%, transparent 58%),
    linear-gradient(165deg, var(--ink-2), var(--ink));
  color: var(--moon);
}

@media (min-width: 980px) {
  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h-scrolled) + 26px);
  }
}

.page-home .home-rail__eyebrow {
  margin: 0;
  color: var(--gold-soft);
}

.page-home .home-rail__title {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--moon);
}

.page-home .home-rail__text {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(245, 242, 234, 0.74);
}

.page-home .home-rail__ver {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius);
  background: rgba(217, 165, 68, 0.1);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold-soft);
}

.page-home .home-rail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.24);
}

.page-home .home-rail__ver-note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: rgba(245, 242, 234, 0.6);
}

.page-home .home-rail__nav {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line-gold);
}

.page-home .home-rail__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(217, 165, 68, 0.18);
  color: var(--moon);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home .home-rail__nav a::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}

.page-home .home-rail__nav a:hover,
.page-home .home-rail__nav a:focus-visible {
  color: var(--gold-soft);
}

.page-home .home-rail__nav a:hover::before,
.page-home .home-rail__nav a:focus-visible::before {
  width: 28px;
}

/* ---------- 内容流节奏 ---------- */

.page-home .home-stream > .section {
  padding-top: 0;
  padding-bottom: clamp(52px, 7vw, 88px);
}

.page-home .home-stream > .section:last-child {
  padding-bottom: 0;
}

.page-home .home-stream .section-title {
  margin: 12px 0 0;
  color: var(--ink);
}

.page-home .home-stream .eyebrow {
  margin: 0;
  color: var(--mountain);
}

.page-home .home-stream .section-desc {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--cloud);
}

/* ---------- 九大分类索引 ---------- */

.page-home .home-cats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-cool);
}

.page-home .home-cats__item {
  border-bottom: 1px solid var(--line-cool);
}

.page-home .home-cats__link {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num name go"
    "num desc go";
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  padding: 15px 4px 15px 2px;
  color: var(--ink-black);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.page-home .home-cats__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 260ms var(--ease);
}

.page-home .home-cats__link:hover,
.page-home .home-cats__link:focus-visible {
  background: rgba(217, 165, 68, 0.07);
}

.page-home .home-cats__link:hover::after,
.page-home .home-cats__link:focus-visible::after {
  width: 100%;
}

.page-home .home-cats__num {
  grid-area: num;
  align-self: start;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.page-home .home-cats__name {
  grid-area: name;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.page-home .home-cats__desc {
  grid-area: desc;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--cloud);
}

.page-home .home-cats__go {
  grid-area: go;
  font-size: 0.875rem;
  color: var(--cloud);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-cats__link:hover .home-cats__go,
.page-home .home-cats__link:focus-visible .home-cats__go {
  transform: translateX(4px);
  color: var(--gold);
}

/* ---------- 通用图形容器 ---------- */

.page-home .home-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink), var(--ink-2));
}

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

.page-home .home-services__fig {
  max-width: 520px;
  margin-block: clamp(28px, 4vw, 42px) 0;
  margin-inline: auto 0;
}

/* ---------- 版本变化 ---------- */

.page-home .home-release__list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
}

.page-home .home-release__item {
  padding: 20px 18px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--silver), rgba(239, 230, 210, 0.4));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-release__item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px -20px rgba(11, 23, 48, 0.6),
    inset 0 0 0 1px rgba(217, 165, 68, 0.3);
}

.page-home .home-release__item-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .home-release__item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.page-home .home-release__fig {
  margin: clamp(20px, 3vw, 28px) 0 0;
}

@media (min-width: 720px) {
  .page-home .home-release__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 三步切换 ---------- */

.page-home .home-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
}

.page-home .home-step {
  position: relative;
  padding: 24px 20px 22px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-home .home-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.page-home .home-step:hover {
  transform: translateY(-2px);
  border-color: var(--line-gold-strong);
  background: rgba(255, 255, 255, 0.85);
}

.page-home .home-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cinnabar);
  color: var(--moon);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 0 0 5px rgba(192, 57, 43, 0.12);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .home-step:hover .home-step__num {
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(192, 57, 43, 0.16);
}

.page-home .home-step__title {
  margin: 16px 0 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink);
}

.page-home .home-step__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--cloud);
}

.page-home .home-step__time {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 9px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--mountain);
}

.page-home .home-switch__more {
  margin: clamp(22px, 3vw, 30px) 0 0;
}

@media (min-width: 780px) {
  .page-home .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* ---------- 查阅方式 ---------- */

.page-home .home-reading__list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .home-reading__list li {
  position: relative;
  padding-left: 20px;
}

.page-home .home-reading__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

.page-home .home-reading__list h3 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.page-home .home-reading__list p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--cloud);
}

.page-home .home-reading__fig {
  margin: clamp(26px, 4vw, 36px) 0 0;
}

/* ---------- 联系 ---------- */

.page-home .home-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0;
  background:
    radial-gradient(100% 120% at 88% 8%, var(--home-glow) 0%, transparent 58%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--moon);
}

.page-home .home-contact__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.page-home .home-contact__eyebrow {
  margin: 0;
  color: var(--gold-soft);
}

.page-home .home-contact__title {
  margin: 14px 0 0;
  color: var(--moon);
}

.page-home .home-contact__lead {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(245, 242, 234, 0.76);
}

.page-home .home-contact__intro .btn {
  margin-top: 24px;
}

.page-home .home-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-gold);
}

.page-home .home-contact__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(217, 165, 68, 0.2);
}

.page-home .home-contact__label {
  grid-column: 1;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 234, 0.55);
}

.page-home .home-contact__value {
  grid-column: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--moon);
  word-break: break-word;
}

.page-home .home-contact__item .copy-btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 6px 13px;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-contact__item .copy-btn:hover,
.page-home .home-contact__item .copy-btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

@media (min-width: 880px) {
  .page-home .home-contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 72px);
  }
}

/* ---------- 减少动态 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .home-cats__link,
  .page-home .home-cats__link::after,
  .page-home .home-cats__go,
  .page-home .home-release__item,
  .page-home .home-step,
  .page-home .home-step__num,
  .page-home .home-rail__nav a,
  .page-home .home-rail__nav a::before {
    transition: none;
  }

  .page-home .home-cats__link:hover .home-cats__go,
  .page-home .home-cats__link:focus-visible .home-cats__go {
    transform: none;
  }

  .page-home .home-release__item:hover,
  .page-home .home-step:hover,
  .page-home .home-step:hover .home-step__num {
    transform: none;
  }
}
