.page-home {
  --home-gap: clamp(1rem, 2.5vw, 1.75rem);
  --home-block-pad: clamp(1.1rem, 2.2vw, 1.5rem);
  display: block;
}

/* ============ 首屏拼贴 ============ */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.75rem, 6vw, 5rem);
  background:
    radial-gradient(115% 85% at 88% -12%, rgba(0, 229, 199, 0.18), transparent 58%),
    radial-gradient(85% 65% at -6% 106%, rgba(255, 107, 53, 0.16), transparent 62%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%);
}

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

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .home-hero__inner {
  display: grid;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: rgba(247, 249, 252, 0.62);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.page-home .home-hero__title {
  margin: 0;
  display: grid;
  gap: 0.3rem;
  color: var(--light);
}

.page-home .home-hero__line--sm {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.1vw, 1.25rem);
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .home-hero__line--xl {
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3.6rem, 15vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-shadow: 0 0 46px rgba(0, 229, 199, 0.28);
}

.page-home .home-hero__line--sm2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.35rem, 4.2vw, 2.5rem);
  line-height: 1.25;
  color: var(--paper);
}

.page-home .home-hero__lede {
  max-width: 42rem;
  margin: 0;
  color: rgba(247, 249, 252, 0.84);
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  line-height: 1.9;
}

.page-home .home-hero__blocks {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.page-home .home-block {
  position: relative;
  overflow: hidden;
  padding: var(--home-block-pad);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(18, 41, 79, 0.94), rgba(11, 27, 58, 0.78));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .home-block::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--cyan);
}

.page-home .home-block--b::before { background: var(--orange); }
.page-home .home-block--c::before { background: var(--magenta); }

.page-home .home-block:hover,
.page-home .home-block:focus-within {
  transform: translateY(-3px);
  border-color: var(--hair-strong);
}

.page-home .home-block__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.4;
  color: var(--light);
}

.page-home .home-block__text {
  margin: 0.55rem 0 0;
  color: rgba(247, 249, 252, 0.76);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-home .home-block__jump {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.page-home .home-block__jump:hover,
.page-home .home-block__jump:focus-visible {
  border-color: var(--orange);
}

/* ============ 通用小节头 ============ */
.page-home .home-sec__head {
  max-width: 58rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.page-home .home-sec__head--tight {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.page-home .home-sec__lede {
  margin-top: 0.9rem;
  color: rgba(247, 249, 252, 0.78);
  line-height: 1.9;
}

.page-home .home-sub {
  margin: 0 0 0.75rem;
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

/* ============ 内容目录 ============ */
.page-home .home-dir {
  background:
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  border-block: 1px solid var(--hair);
}

.page-home .home-dir__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

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

.page-home .home-dir__acc {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: rgba(11, 27, 58, 0.62);
  padding: 0.9rem 1.05rem;
  transition: border-color 0.26s var(--ease);
}

.page-home .home-dir__acc:hover,
.page-home .home-dir__acc[open] {
  border-color: rgba(0, 229, 199, 0.45);
}

.page-home .home-dir__acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--light);
}

.page-home .home-dir__acc summary::-webkit-details-marker { display: none; }

.page-home .home-dir__acc summary::after {
  content: "＋";
  font-family: var(--font-num);
  font-weight: 900;
  color: var(--cyan);
}

.page-home .home-dir__acc[open] summary::after { content: "－"; }

.page-home .home-dir__acc p {
  margin: 0.7rem 0 0;
  color: rgba(247, 249, 252, 0.76);
  font-size: 0.9rem;
  line-height: 1.85;
}

.page-home .home-cats__wrap {
  margin-top: 0.4rem;
}

.page-home .home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-dir__figure {
  margin: 0.9rem 0 0;
}

.page-home .home-dir__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.page-home .home-dir__figure figcaption {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.page-home .home-plates {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-plate {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: rgba(11, 27, 58, 0.55);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.page-home .home-plate:hover,
.page-home .home-plate:focus-within,
.page-home .home-plate:focus {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: rgba(0, 229, 199, 0.07);
  outline: none;
}

.page-home .home-plate:focus-visible {
  box-shadow: 0 0 0 2px var(--cyan);
}

.page-home .home-plate__name {
  margin: 0.6rem 0 0;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--light);
}

.page-home .home-plate__desc {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: rgba(247, 249, 252, 0.72);
  font-size: 0.85rem;
  line-height: 1.75;
  transition: max-height 0.34s var(--ease), opacity 0.3s var(--ease), margin-top 0.3s var(--ease);
}

.page-home .home-plate:hover .home-plate__desc,
.page-home .home-plate:focus-within .home-plate__desc,
.page-home .home-plate:focus .home-plate__desc {
  max-height: 9rem;
  opacity: 1;
  margin-top: 0.5rem;
}

@media (hover: none) {
  .page-home .home-plate__desc {
    max-height: none;
    opacity: 1;
    margin-top: 0.5rem;
  }
}

.page-home .home-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.page-home .home-links a {
  color: var(--light);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.25rem;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .home-links a:hover,
.page-home .home-links a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ============ 检索 ============ */
.page-home .home-search {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(0, 229, 199, 0.14), transparent 60%),
    var(--paper);
  color: var(--dark);
}

.page-home .home-eyebrow--dark {
  color: var(--orange);
}

.page-home .home-title--dark {
  color: var(--dark);
}

.page-home .home-search__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.page-home .home-search__copy {
  align-self: center;
}

.page-home .home-search__lede {
  margin: 0.9rem 0 0;
  color: rgba(16, 24, 32, 0.82);
  font-size: 1rem;
  line-height: 1.9;
}

.page-home .home-filters {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.page-home .home-filter {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.95rem;
  border-inline-start: 3px solid var(--cyan);
  background: rgba(232, 223, 208, 0.72);
  border-radius: var(--radius);
}

.page-home .home-filter__k {
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.page-home .home-filter__v {
  color: rgba(16, 24, 32, 0.76);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .home-search__note {
  margin: 1.25rem 0 0;
  color: rgba(16, 24, 32, 0.74);
  font-size: 0.9rem;
  line-height: 1.85;
}

.page-home .home-search__btn {
  display: inline-block;
  margin-top: 1.1rem;
  text-decoration: none;
}

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

.page-home .home-search__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(16, 24, 32, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.page-home .home-search__figure figcaption {
  display: block;
  margin-top: 0.6rem;
  color: rgba(16, 24, 32, 0.6);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* ============ 导出 ============ */
.page-home .home-export {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-block: 1px solid var(--hair);
}

.page-home .home-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: none;
}

.page-home .home-step {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--hair);
  border-top: 2px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(11, 27, 58, 0.6);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .home-step:hover {
  transform: translateY(-3px);
  background: rgba(255, 107, 53, 0.07);
}

.page-home .home-step__num {
  display: block;
  font-family: var(--font-num);
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--orange);
}

.page-home .home-step__title {
  margin: 0.6rem 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.0625rem;
  color: var(--light);
}

.page-home .home-step p {
  margin: 0.5rem 0 0;
  color: rgba(247, 249, 252, 0.76);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-home .home-export__foot {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--hair);
}

.page-home .home-export__figure {
  margin: 0;
}

.page-home .home-export__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.page-home .home-export__figure figcaption {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.page-home .home-export__cta {
  align-self: center;
}

.page-home .home-export__cta p {
  margin: 0;
  color: rgba(247, 249, 252, 0.8);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.page-home .home-export__cta .wb-btn {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
}

/* ============ 本周更新 ============ */
.page-home .home-week {
  background: var(--paper-2);
  color: var(--dark);
}

.page-home .home-week__lede {
  color: rgba(16, 24, 32, 0.78);
}

.page-home .home-week__grid {
  display: grid;
  gap: 0.9rem;
}

.page-home .home-batch {
  padding: clamp(1.05rem, 2.2vw, 1.5rem);
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: var(--radius);
  background: rgba(243, 237, 227, 0.86);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.page-home .home-batch:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 24, 32, 0.34);
}

.page-home .home-batch__title {
  margin: 0.7rem 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.0625rem;
  color: var(--dark);
}

.page-home .home-batch p {
  margin: 0.55rem 0 0;
  color: rgba(16, 24, 32, 0.76);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-home .home-batch--wide {
  border-color: rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.08);
}

.page-home .home-batch--wide .home-batch__title {
  margin-top: 0;
}

.page-home .home-batch__link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 0.15rem;
  transition: color 0.22s var(--ease);
}

.page-home .home-batch__link:hover,
.page-home .home-batch__link:focus-visible {
  color: var(--orange);
}

/* ============ 收尾引导 ============ */
.page-home .home-cta {
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(0, 229, 199, 0.16), transparent 62%),
    var(--ink-3);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-home .home-cta__title {
  margin: 0;
  color: var(--light);
}

.page-home .home-cta__text {
  max-width: 46rem;
  margin: 0.9rem 0 0;
  color: rgba(247, 249, 252, 0.78);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.page-home .home-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.page-home .home-cta__links .wb-btn {
  text-decoration: none;
}

/* ============ 断点 ============ */
@media (min-width: 40rem) {
  .page-home .home-export__foot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .home-week__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-batch--wide {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.3rem;
  }
}

@media (min-width: 64rem) {
  .page-home .home-hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .home-hero__crumb { grid-column: 1 / -1; }
  .page-home .home-hero__title { grid-column: 1 / span 7; }
  .page-home .home-hero__lede { grid-column: 8 / -1; padding-top: 1.1rem; }

  .page-home .home-hero__blocks {
    grid-column: 1 / -1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .page-home .home-block--a { grid-column: span 4; }
  .page-home .home-block--b { grid-column: span 4; }
  .page-home .home-block--c { grid-column: span 4; }

  .page-home .home-block--d {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.75rem;
  }

  .page-home .home-block--d .wb-eyebrow { flex: 0 0 auto; }
  .page-home .home-block--d .home-block__title { flex: 0 0 auto; margin-top: 0; }
  .page-home .home-block--d .home-block__text { flex: 1 1 16rem; margin-top: 0; }
  .page-home .home-block--d .home-block__jump { margin-top: 0; flex: 0 0 auto; }

  .page-home .home-dir__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .page-home .home-dir__main { grid-column: span 7; }
  .page-home .home-dir__aside { grid-column: span 3; }
  .page-home .home-dir__edge { grid-column: span 2; }

  .page-home .home-search__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
  }

  .page-home .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
