/* ===== 首页 · 入口总览 ===== */
.page-home {
  --home-hair: rgba(199, 210, 214, 0.9);
  --home-veil: rgba(238, 242, 244, 0.94);
  display: block;
  padding-bottom: 56px;
}

.page-home [id] {
  scroll-margin-top: 88px;
}

.page-home a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 上下文提示条 ---------- */
.page-home .ctx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  padding-bottom: 6px;
  font-size: 13px;
  color: var(--graphite);
}

.page-home .ctx__now {
  font-weight: 700;
  color: var(--ink);
}

.page-home .ctx__sep {
  width: 22px;
  height: 1px;
  background: var(--gray);
  flex: 0 0 auto;
}

.page-home .ctx .tag {
  margin-left: auto;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  padding-top: 14px;
  padding-bottom: 44px;
}

.page-home .hero__lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--graphite);
}

/* ---------- 拼贴 ---------- */
.page-home .collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 178px;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-home .tile:hover,
.page-home .tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(18, 59, 50, 0.12);
}

.page-home .tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-home .tile__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(238, 242, 244, 0.14) 0%, rgba(238, 242, 244, 0.72) 50%, rgba(238, 242, 244, 0.97) 100%);
}

.page-home .tile__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .tile__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pine-2);
}

.page-home .tile__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(21px, 5.2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .tile__text {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--graphite);
  max-width: 42ch;
}

.page-home .tile__go {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pine-2);
  transition: color 0.18s ease;
}

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

.page-home .tile--support {
  background: var(--orange-soft);
  border-color: rgba(242, 107, 33, 0.35);
}

.page-home .tile--support .tile__kicker,
.page-home .tile--support .tile__go {
  color: #B4470D;
}

/* ---------- 章节编号 ---------- */
.page-home .sec {
  padding-block: 44px;
}

.page-home .sec__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gray);
}

.page-home .sec__titles {
  min-width: 0;
}

/* ---------- N01 三条动线 ---------- */
.page-home .flows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}

.page-home .flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius);
}

.page-home .flow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--hair-soft);
}

.page-home .flow__badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pine-2);
}

.page-home .flow__time {
  font-size: 12.5px;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

.page-home .flow__title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .flow__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .flow-steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .flow-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--ink);
}

.page-home .flow-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--home-hair);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--pine-2);
  font-variant-numeric: tabular-nums;
}

.page-home .flow--support {
  background: linear-gradient(180deg, rgba(255, 228, 211, 0.5) 0%, rgba(255, 255, 255, 0.62) 100%);
}

/* ---------- N02 资料库三块 ---------- */
.page-home .lib {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}

.page-home .lib-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--home-hair);
  border-left: 4px solid var(--pine-2);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.page-home .lib-card:hover,
.page-home .lib-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 59, 50, 0.1);
}

.page-home .lib-card--scope {
  border-left-color: var(--blue);
}

.page-home .lib-card--client {
  border-left-color: var(--orange);
}

.page-home .lib-card__count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}

.page-home .lib-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .lib-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .lib-card__list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .lib-card__list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.page-home .lib-card__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--pine-2);
}

.page-home .lib-card--scope .lib-card__list li::before {
  background: var(--blue);
}

.page-home .lib-card--client .lib-card__list li::before {
  background: var(--orange);
}

.page-home .lib-card__go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pine-2);
  transition: color 0.18s ease;
}

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

/* ---------- N03 版本更新 ---------- */
.page-home .release {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 26px;
}

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

.page-home .release .figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.page-home .release .figure__cap {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite);
}

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

.page-home .rel-item {
  position: relative;
  padding: 0 0 22px 22px;
  border-left: 1px solid var(--gray);
}

.page-home .rel-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-home .rel-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--silver);
}

.page-home .rel-item__tag {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pine-2);
}

.page-home .rel-item__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .rel-item__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--graphite);
}

.page-home .rel-more {
  margin: 22px 0 0;
}

/* ---------- N04 数据 ---------- */
.page-home .metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 26px;
}

.page-home .metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.page-home .metric__num {
  font-weight: 900;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--pine);
}

.page-home .metric__label {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--graphite);
}

.page-home .metric__note {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--graphite);
}

.page-home .metric--avail {
  background: var(--pine);
  border-color: transparent;
}

.page-home .metric--avail .metric__num {
  color: #FFFFFF;
}

.page-home .metric--avail .metric__label {
  color: rgba(255, 255, 255, 0.76);
}

.page-home .metric--avail .metric__note {
  color: rgba(255, 255, 255, 0.88);
}

.page-home .metric--resp .metric__num {
  color: var(--blue);
}

.page-home .metric--return .metric__num {
  color: var(--orange);
}

.page-home .metric--sync {
  background: linear-gradient(90deg, rgba(23, 195, 162, 0.14) 0%, rgba(255, 255, 255, 0.62) 62%);
}

.page-home .metric__sync-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}

.page-home .metric--sync .metric__label {
  flex: 1 1 220px;
}

/* ---------- N05 开始使用 ---------- */
.page-home .start {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
}

.page-home .start-list {
  display: grid;
  gap: 14px;
}

.page-home .start-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.page-home .start-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pine-2);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-home .start-item:first-child .start-item__num {
  background: var(--orange);
  color: var(--ink);
}

.page-home .start-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .start-item__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .start-item__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--graphite);
}

.page-home .start-item .btn {
  align-self: flex-start;
  margin-top: 2px;
}

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

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

.page-home .start-figure .figure__cap {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--graphite);
}

.page-home .start-note {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .inline-link {
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ---------- 桌面端编排 ---------- */
@media (min-width: 901px) {
  .page-home .hero__lead {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 30px;
  }

  .page-home .collage {
    grid-template-columns: 1.65fr 1.1fr 0.9fr;
    grid-template-rows: minmax(220px, auto) minmax(200px, auto);
    gap: 18px;
  }

  .page-home .tile--wide {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    min-height: 440px;
    padding: 30px 28px;
  }

  .page-home .tile--client {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    padding: 24px 26px;
  }

  .page-home .tile--new {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .page-home .tile--support {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }

  .page-home .tile--wide .tile__title {
    font-size: clamp(28px, 3vw, 44px);
  }

  .page-home .tile--client .tile__title {
    font-size: 26px;
  }

  .page-home .flows {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
  }

  .page-home .flow--return {
    grid-column: 1 / span 3;
  }

  .page-home .flow--first {
    grid-column: 4 / span 3;
  }

  .page-home .flow--support {
    grid-column: 2 / span 4;
  }

  .page-home .lib {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
  }

  .page-home .lib--tools {
    grid-column: 1 / span 2;
  }

  .page-home .lib--scope {
    grid-column: 3 / span 2;
  }

  .page-home .lib--client {
    grid-column: 2 / span 2;
  }

  .page-home .release {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 34px;
    align-items: start;
    margin-top: 32px;
  }

  .page-home .metrics {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
  }

  .page-home .metric--avail {
    grid-column: 1 / span 5;
    padding: 28px 26px;
  }

  .page-home .metric--resp {
    grid-column: 6 / span 4;
    padding: 28px 26px;
  }

  .page-home .metric--return {
    grid-column: 10 / span 3;
    padding: 28px 24px;
  }

  .page-home .metric--sync {
    grid-column: 1 / span 12;
    padding: 26px 26px;
  }

  .page-home .metric--avail .metric__num {
    font-size: clamp(40px, 4.4vw, 60px);
  }

  .page-home .start {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 34px;
    align-items: center;
    margin-top: 32px;
  }
}

@media (min-width: 1280px) {
  .page-home .sec {
    padding-block: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tile,
  .page-home .lib-card,
  .page-home .tile__go,
  .page-home .lib-card__go {
    transition: none;
  }

  .page-home .tile:hover,
  .page-home .tile:focus-visible,
  .page-home .lib-card:hover,
  .page-home .lib-card:focus-visible {
    transform: none;
  }
}
