/* ================= 首页 ================= */
.page-home {
  position: relative;
  overflow-x: clip;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-home::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -20%;
  right: -20%;
  height: 560px;
  background:
    radial-gradient(58% 68% at 76% 14%, rgba(56, 240, 216, .15), transparent 70%),
    radial-gradient(48% 58% at 10% 2%, rgba(224, 70, 140, .10), transparent 72%),
    radial-gradient(40% 50% at 46% 30%, rgba(232, 183, 92, .07), transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.page-home > * {
  position: relative;
  z-index: 1;
}

/* ---------- 上下文条 ---------- */
.page-home .home-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: clamp(10px, 2vw, 20px) 0 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(242, 237, 228, .55);
}

.page-home .home-context__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 240, 216, .16);
}

/* ---------- 首屏 ---------- */
.page-home .home-intro {
  padding-top: clamp(20px, 4vw, 44px);
}

.page-home .intro-grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.page-home .intro-text .eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
}

.page-home .intro-text h1 {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--paper);
}

.page-home .intro-text .lede {
  margin: clamp(14px, 2vw, 22px) 0 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
  color: rgba(242, 237, 228, .78);
}

.page-home .intro-note {
  margin: 14px 0 0;
  max-width: 34em;
  padding-left: 14px;
  border-left: 2px solid rgba(95, 125, 106, .8);
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .62);
}

.page-home .intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-home .intro-visual {
  position: relative;
}

.page-home .intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  object-fit: cover;
}

.page-home .version-anchor {
  position: relative;
  display: grid;
  gap: 4px;
  margin-top: -34px;
  margin-left: clamp(0px, 2vw, 26px);
  padding: 16px 22px 18px;
  background: linear-gradient(158deg, rgba(16, 27, 54, .95), rgba(10, 16, 32, .96));
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 20px 44px rgba(10, 16, 32, .55);
}

.page-home .version-anchor__label {
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(242, 237, 228, .5);
}

.page-home .version-anchor__num {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--cyan);
  background-image: linear-gradient(112deg, var(--cyan) 8%, var(--gold) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-home .version-anchor__date {
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(232, 183, 92, .85);
}

/* ---------- 四条去向 ---------- */
.page-home .coord-grid {
  display: grid;
  gap: 12px;
  margin: clamp(30px, 5vw, 54px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .coord-card {
  min-width: 0;
}

.page-home .coord-card__link {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 20px 20px 18px;
  background: linear-gradient(168deg, rgba(24, 39, 65, .78), rgba(16, 27, 54, .62));
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  text-decoration: none;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.page-home .coord-card__link:hover,
.page-home .coord-card__link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(56, 240, 216, .62);
  box-shadow: 0 0 0 1px rgba(56, 240, 216, .28), 0 18px 38px rgba(10, 16, 32, .55);
  outline: none;
}

.page-home .coord-card__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(56, 240, 216, .55);
}

.page-home .coord-card__code {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
}

.page-home .coord-card__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .coord-card__desc {
  margin: 0;
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(242, 237, 228, .66);
}

.page-home .coord-card__go {
  align-self: end;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

/* ---------- 数据流线 ---------- */
.page-home .home-flow {
  margin: clamp(36px, 6vw, 70px) 0 clamp(8px, 2vw, 20px);
  height: clamp(56px, 9vw, 118px);
}

.page-home .home-flow svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- 通用章节头 ---------- */
.page-home .section-head {
  max-width: 46rem;
}

.page-home .section-head .eyebrow {
  margin: 0 0 10px;
  color: var(--moss);
}

.page-home .section-head .lede {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(242, 237, 228, .72);
}

/* ---------- 板块索引 ---------- */
.page-home .home-boards {
  padding-top: clamp(40px, 7vw, 84px);
}

.page-home .boards-figure {
  margin: clamp(24px, 4vw, 40px) 0 0;
}

.page-home .boards-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  object-fit: cover;
}

.page-home .boards-figure figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(242, 237, 228, .45);
}

.page-home .board-matrix {
  display: grid;
  gap: 12px;
  margin: clamp(22px, 3.4vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .board-tile {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.page-home .board-tile::after {
  content: "///";
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -.05em;
  color: rgba(74, 85, 104, .7);
}

.page-home .board-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 240, 216, .5);
  box-shadow: 0 0 0 1px rgba(56, 240, 216, .2), 0 16px 32px rgba(10, 16, 32, .5);
}

.page-home .board-tile__code {
  display: block;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .board-tile__name {
  display: block;
  margin: 6px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--paper);
}

.page-home .board-tile__count {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(242, 237, 228, .6);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.page-home .board-tile__note {
  margin: 10px 0 0;
  max-height: 6em;
  font-size: .85rem;
  line-height: 1.75;
  color: rgba(242, 237, 228, .58);
  overflow: hidden;
  transition: max-height .28s ease, opacity .28s ease, margin-top .28s ease;
}

.page-home .boards-foot {
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .6);
}

.page-home .boards-foot a,
.page-home .cases-foot a,
.page-home .services-foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 240, 216, .38);
}

.page-home .boards-foot a:hover,
.page-home .cases-foot a:hover,
.page-home .services-foot a:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 资料库面板 ---------- */
.page-home .home-library {
  padding-top: clamp(48px, 8vw, 96px);
}

.page-home .lib-panel {
  position: relative;
  display: grid;
  gap: clamp(22px, 3.4vw, 38px);
  padding: clamp(22px, 3.6vw, 40px);
  background: linear-gradient(150deg, rgba(24, 39, 65, .9), rgba(10, 16, 32, .92));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 26px 60px rgba(6, 10, 22, .6);
}

.page-home .lib-panel::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 46%;
  height: 44%;
  border: 1px solid rgba(232, 183, 92, .22);
  border-radius: calc(var(--radius) + 6px);
  z-index: -1;
}

.page-home .lib-copy .eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
}

.page-home .lib-copy .section-title {
  margin: 0;
}

.page-home .lib-copy .lede {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(242, 237, 228, .74);
}

.page-home .lib-points {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .lib-points li {
  position: relative;
  padding-left: 18px;
  font-size: .93rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .7);
}

.page-home .lib-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .lib-points strong {
  color: var(--paper);
  font-weight: 700;
}

.page-home .lib-copy .btn {
  margin-top: clamp(20px, 3vw, 28px);
}

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

.page-home .lib-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(56, 240, 216, .3);
  border-radius: var(--radius);
  object-fit: cover;
}

/* ---------- 案例精选 ---------- */
.page-home .home-cases {
  padding-top: clamp(48px, 8vw, 96px);
}

.page-home .case-layout {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(26px, 4vw, 42px);
}

.page-home .case-figure {
  margin: 0;
}

.page-home .case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  object-fit: cover;
}

.page-home .case-figure figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(242, 237, 228, .45);
}

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

.page-home .case-card {
  padding: 20px 20px 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid rgba(56, 240, 216, .7);
  border-radius: 14px;
  transition: transform .24s ease, box-shadow .24s ease, border-left-color .24s ease;
}

.page-home .case-card--b {
  border-left-color: rgba(232, 183, 92, .8);
}

.page-home .case-card--c {
  border-left-color: rgba(224, 70, 140, .75);
}

.page-home .case-card:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 38px rgba(10, 16, 32, .5);
}

.page-home .case-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .case-card h3 {
  margin: 12px 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--paper);
}

.page-home .case-card p {
  margin: 10px 0 0;
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .66);
}

.page-home .case-card__result {
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  color: rgba(232, 183, 92, .9) !important;
}

.page-home .cases-foot {
  margin: clamp(22px, 3.4vw, 32px) 0 0;
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .6);
}

/* ---------- 服务清单 ---------- */
.page-home .home-services {
  padding-top: clamp(48px, 8vw, 96px);
}

.page-home .service-grid {
  display: grid;
  gap: 12px;
  margin: clamp(24px, 3.6vw, 38px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .service-item {
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(16, 27, 54, .9), rgba(10, 16, 32, .78));
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--moss);
  border-radius: 4px 4px 14px 14px;
}

.page-home .service-item:nth-child(2) {
  border-top-color: var(--cyan);
}

.page-home .service-item:nth-child(3) {
  border-top-color: var(--gold);
}

.page-home .service-item:nth-child(4) {
  border-top-color: var(--clay);
}

.page-home .service-item__code {
  font-size: 12px;
  letter-spacing: .14em;
  color: rgba(242, 237, 228, .5);
}

.page-home .service-item h3 {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--paper);
}

.page-home .service-item p {
  margin: 8px 0 0;
  font-size: .88rem;
  line-height: 1.75;
  color: rgba(242, 237, 228, .62);
}

.page-home .services-foot {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(242, 237, 228, .6);
}

/* ---------- 客服 ---------- */
.page-home .home-support {
  padding-top: clamp(48px, 8vw, 96px);
}

.page-home .support-band {
  display: grid;
  gap: clamp(22px, 3.6vw, 40px);
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(140deg, rgba(224, 70, 140, .12), transparent 46%),
    linear-gradient(320deg, rgba(56, 240, 216, .14), transparent 52%),
    var(--ink-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
}

.page-home .support-copy .eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
}

.page-home .support-copy .section-title {
  margin: 0;
}

.page-home .support-copy p {
  margin: 14px 0 0;
  max-width: 36em;
  font-size: .95rem;
  line-height: 1.85;
  color: rgba(242, 237, 228, .72);
}

.page-home .support-copy .btn {
  margin-top: clamp(18px, 2.6vw, 26px);
}

.page-home .support-asks {
  padding: 20px;
  background: rgba(10, 16, 32, .62);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.page-home .support-asks__title {
  margin: 0;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold);
}

.page-home .support-asks ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .support-asks li {
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(242, 237, 228, .7);
}

.page-home .support-asks li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--mono);
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px) {
  .page-home .coord-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .board-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .boards-figure figcaption {
    text-align: right;
  }
}

@media (min-width: 900px) {
  .page-home .intro-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(30px, 4.4vw, 60px);
  }

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

  .page-home .case-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .page-home .case-figure {
    position: sticky;
    top: calc(var(--bar-h) + 24px);
  }

  .page-home .case-card--a {
    width: 88%;
  }

  .page-home .case-card--b {
    width: 100%;
  }

  .page-home .case-card--c {
    width: 76%;
  }

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

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

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

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

@media (hover: hover) and (min-width: 1080px) {
  .page-home .board-tile__note {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
  }

  .page-home .board-tile:hover .board-tile__note,
  .page-home .board-tile:focus-within .board-tile__note {
    max-height: 6em;
    margin-top: 10px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .coord-card__link,
  .page-home .board-tile,
  .page-home .case-card,
  .page-home .board-tile__note {
    transition: none;
  }

  .page-home .coord-card__link:hover,
  .page-home .board-tile:hover,
  .page-home .case-card:hover {
    transform: none;
  }
}
