/* =========================================
   入口首页 · page-home 作用域
   ========================================= */

.page-home {
  --home-cut: 18px;
  --home-hero-pad: clamp(34px, 6.5vw, 84px);
}

/* ---- 面包屑 ---- */
.page-home .crumb-bar {
  padding-top: clamp(10px, 2vw, 18px);
  padding-bottom: 8px;
}
.page-home .breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate);
}
.page-home .breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

/* ---- 首屏分屏 ---- */
.page-home .hero-split {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 10%, rgba(212, 162, 76, .16), transparent 58%),
    radial-gradient(100% 80% at 4% 0%, rgba(27, 16, 53, .9), transparent 62%),
    linear-gradient(158deg, #140C2A 0%, var(--ink) 46%, var(--deep) 100%);
  padding-block: var(--home-hero-pad) calc(var(--home-hero-pad) * 1.15);
}
.page-home .hero-split::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  pointer-events: none;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.page-home .hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(30px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .hero-copy .lede {
  margin: 0;
  max-width: 540px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.75;
}

/* ---- 1-2-3 序号导航 ---- */
.page-home .hero-steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  max-width: 620px;
}
.page-home .hero-steps li {
  border-bottom: 1px solid var(--line-soft);
}
.page-home .hero-steps a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 2px;
  text-decoration: none;
  color: var(--paper);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.page-home .hero-steps a:hover,
.page-home .hero-steps a:focus-visible {
  color: var(--gold-soft);
  transform: translateX(6px);
}

.page-home .step-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 6.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gold);
  min-width: 1.35em;
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
.page-home .step-num.is-lit {
  color: var(--gold-soft);
  text-shadow: 0 0 22px rgba(212, 162, 76, .65);
}

.page-home .step-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.page-home .step-body strong {
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 600;
  letter-spacing: .01em;
}
.page-home .step-body span {
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate);
}
.page-home .step-arrow {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--coral);
  transition: transform .25s var(--ease);
}
.page-home .hero-steps a:hover .step-arrow {
  transform: translateX(4px);
}

.page-home .hero-copy .btn-row {
  margin-top: 32px;
}

/* ---- 首屏右侧视觉 ---- */
.page-home .hero-visual {
  position: relative;
  margin: 0;
  min-width: 0;
}
.page-home .hero-visual::before {
  content: "";
  position: absolute;
  inset: -7% -5%;
  border: 1px solid var(--line-gold);
  clip-path: polygon(0 5%, 95% 0, 100% 95%, 5% 100%);
  opacity: .38;
  pointer-events: none;
}
.page-home .hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line-gold);
  clip-path: polygon(0 0, 100% 0, 100% 93%, 88% 100%, 0 100%);
}
.page-home .hero-visual__cap {
  position: absolute;
  left: 0;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
  background: rgba(11, 11, 16, .82);
  padding: 5px 12px;
  border-left: 2px solid var(--gold);
}

/* ---- 常用入口速览 ---- */
.page-home .entry-band {
  background: linear-gradient(180deg, var(--ink), #0A0A12 100%);
}

.page-home .entry-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 30px;
  align-items: end;
}
.page-home .entry-head__copy .section-title {
  margin: 12px 0 12px;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
}
.page-home .entry-head__copy .muted {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
}
.page-home .entry-head__fig {
  margin: 0;
}
.page-home .entry-head__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 90% 100%, 0 100%);
}

/* ---- 筛选条 ---- */
.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 22px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 26px;
}
.page-home .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .filter-btn {
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 16px;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 90% 100%, 0 100%);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.page-home .filter-btn:hover {
  color: var(--paper);
  border-color: var(--gold-soft);
}
.page-home .filter-btn.is-active {
  color: var(--ink);
  background: var(--coral);
  border-color: var(--coral);
  font-weight: 600;
}
.page-home .filter-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
}
.page-home .filter-count span {
  color: var(--gold);
}

/* ---- 入口卡片流 ---- */
.page-home .entry-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.page-home .entry-card {
  background: linear-gradient(180deg, rgba(14, 26, 43, .88), rgba(27, 16, 53, .55));
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 93% 100%, 0 100%);
  transition: transform .3s var(--ease), border-left-color .3s var(--ease);
}
.page-home .entry-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--coral);
}
.page-home .entry-card[hidden],
.page-home .entry-card.is-hidden {
  display: none;
}
.page-home .entry-card a {
  display: block;
  padding: 22px 20px 24px;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.page-home .entry-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  padding: 3px 9px;
}
.page-home .entry-card .tag--celadon {
  color: var(--celadon);
  border-color: rgba(79, 209, 178, .45);
}
.page-home .entry-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--paper);
}
.page-home .entry-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}
.page-home .entry-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--coral);
}

/* ---- 兼容提示 ---- */
.page-home .compat-band {
  position: relative;
  background:
    radial-gradient(90% 70% at 88% 20%, rgba(79, 209, 178, .1), transparent 60%),
    linear-gradient(100deg, var(--deep) 0%, var(--ink) 100%);
}
.page-home .compat-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent 65%);
  pointer-events: none;
}
.page-home .compat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.page-home .compat-copy .section-title {
  margin: 12px 0 16px;
  font-size: clamp(23px, 3.8vw, 38px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
}
.page-home .compat-copy > p {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--slate);
}
.page-home .compat-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-home .compat-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
}
.page-home .compat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 12px;
  height: 12px;
  background: var(--celadon);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.page-home .compat-copy .btn-row {
  margin-top: 26px;
}
.page-home .compat-visual {
  margin: 0;
  min-width: 0;
}
.page-home .compat-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 6% 100%);
}

/* ---- 底部引导 ---- */
.page-home .closing-band {
  position: relative;
  background:
    radial-gradient(100% 90% at 12% 0%, rgba(255, 107, 74, .1), transparent 58%),
    linear-gradient(200deg, var(--violet) 0%, var(--ink) 62%, #08080C 100%);
}
.page-home .closing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.page-home .closing-copy .section-title {
  margin: 12px 0 16px;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--paper);
}
.page-home .closing-copy > p {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--slate);
}
.page-home .closing-copy .btn-row {
  margin-top: 28px;
}
.page-home .closing-visual {
  margin: 0;
  min-width: 0;
}
.page-home .closing-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--line-gold);
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
}

/* =========================================
   断点：平板及以上
   ========================================= */
@media (min-width: 760px) {
  .page-home .entry-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 42px;
  }
  .page-home .entry-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(40px, 6vw, 76px);
  }
  .page-home .compat-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(36px, 5vw, 62px);
  }
  .page-home .closing-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(36px, 5vw, 62px);
  }
  .page-home .hero-visual img {
    max-height: 640px;
  }
}

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

/* =========================================
   断点：窄屏保护
   ========================================= */
@media (max-width: 480px) {
  .page-home .hero-copy h1 {
    font-size: 27px;
  }
  .page-home .step-num {
    font-size: 34px;
  }
  .page-home .hero-steps a {
    gap: 12px;
    padding: 12px 0;
  }
  .page-home .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-home .filter-btn {
    font-size: 13px;
    padding: 7px 12px;
  }
  .page-home .entry-card a {
    padding: 18px 16px 20px;
  }
}

/* =========================================
   尊重减弱动效偏好
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-steps a,
  .page-home .entry-card,
  .page-home .step-num,
  .page-home .step-arrow {
    transition: none;
  }
  .page-home .hero-steps a:hover,
  .page-home .entry-card:hover {
    transform: none;
  }
}
