/* ============ 首页专属样式 · 作用域 .page-home ============ */

.page-home {
  --home-radius: 14px;
  --home-radius-l: 22px;
  --tag-news: var(--moss);
  --tag-tools: var(--teal);
  --tag-event: var(--magenta);
  --tag-help: var(--clay);
  --tag-partner: var(--signal);
  --home-shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}

.page-home p {
  margin: 0;
}

.page-home ul,
.page-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
  margin-bottom: 18px;
}

.page-home .home-context__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.22);
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: calc(var(--bar-h) + 34px) 0 60px;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(110%);
}

.page-home .home-hero__trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .home-hero__trail svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.75;
}

.page-home .home-hero__trail path {
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  animation: home-draw 1.6s ease-out 0.15s forwards;
}

@keyframes home-draw {
  to { stroke-dashoffset: 0; }
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .home-hero .home-context {
  color: rgba(255, 255, 255, 0.58);
}

.page-home .home-hero .home-context__dot {
  background: var(--signal);
}

.page-home .home-hero__eyebrow {
  color: var(--yellow);
}

.page-home .home-hero__title {
  font-size: clamp(38px, 9vw, 84px);
  line-height: 1.02;
  margin: 14px 0 0;
  max-width: 16ch;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--signal);
  display: inline-block;
}

.page-home .home-hero__lede {
  margin-top: 22px;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-hero__nums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 30px;
}

.page-home .home-hero__nums li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-left: 2px solid var(--signal);
  padding-left: 12px;
}

.page-home .home-hero__nums b {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.page-home .home-hero__nums span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 标签墙 ---------- */

.page-home .home-hero__wall {
  position: relative;
  z-index: 2;
  margin-top: 42px;
}

.page-home .tagwall__filters {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-home .tagwall__filters .filter {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.page-home .tagwall__filters .filter[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--white);
}

.page-home .tagwall__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.page-home .tagwall__item {
  display: flex;
  min-width: 0;
}

.page-home .tagwall__item[data-tone="moss"]    { --tone: var(--moss); }
.page-home .tagwall__item[data-tone="teal"]    { --tone: var(--teal); }
.page-home .tagwall__item[data-tone="magenta"] { --tone: var(--magenta); }
.page-home .tagwall__item[data-tone="clay"]    { --tone: var(--clay); }
.page-home .tagwall__item[data-tone="signal"]  { --tone: var(--signal); }

.page-home .tagwall__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  min-height: 92px;
  padding: 14px 16px 15px;
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 3px solid var(--tone);
  color: var(--white);
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.page-home .tagwall__link:hover,
.page-home .tagwall__link:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

.page-home .tagwall__dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--tone);
  margin-bottom: 8px;
}

.page-home .tagwall__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.2;
}

.page-home .tagwall__desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- 九个栏目地图 ---------- */

.page-home .home-map {
  padding: 62px 0;
}

.page-home .home-map__title {
  font-size: clamp(27px, 5.4vw, 44px);
  line-height: 1.14;
  color: var(--graphite);
  margin-top: 10px;
  max-width: 20ch;
}

.page-home .home-map__lede {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.8;
}

.page-home .home-map__body {
  margin-top: 34px;
  display: grid;
  gap: 30px;
}

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

.page-home .home-map__frame {
  border-radius: var(--home-radius-l);
  overflow: hidden;
  background: var(--ink);
}

.page-home .home-map__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-map__art .media__caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--mist);
}

.page-home .homemap-list {
  display: grid;
  gap: 2px;
}

.page-home .homemap-list__row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  grid-template-areas:
    "dot main"
    ".   meta";
  column-gap: 14px;
  row-gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rock);
}

.page-home .homemap-list__row:first-child {
  border-top: 1px solid var(--rock);
}

.page-home .homemap-list__row[data-tone="moss"]    { --tone: var(--moss); }
.page-home .homemap-list__row[data-tone="teal"]    { --tone: var(--teal); }
.page-home .homemap-list__row[data-tone="magenta"] { --tone: var(--magenta); }
.page-home .homemap-list__row[data-tone="clay"]    { --tone: var(--clay); }
.page-home .homemap-list__row[data-tone="signal"]  { --tone: var(--signal); }

.page-home .homemap-list__dot {
  grid-area: dot;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--tone);
  margin-top: 6px;
}

.page-home .homemap-list__main {
  grid-area: main;
}

.page-home .homemap-list__main h3 {
  font-size: 19px;
  color: var(--graphite);
  margin-bottom: 4px;
}

.page-home .homemap-list__main p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .homemap-list__meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--mist);
}

/* ---------- 改版收益 ---------- */

.page-home .home-speed {
  padding: 62px 0;
}

.page-home .home-speed__eyebrow {
  color: var(--yellow);
}

.page-home .home-speed__title {
  font-size: clamp(27px, 5.4vw, 46px);
  line-height: 1.14;
  color: var(--white);
  margin-top: 10px;
  max-width: 22ch;
}

.page-home .home-speed__lede {
  margin-top: 16px;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.page-home .home-speed__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 32px 0;
  padding: 20px 22px;
  border-radius: var(--home-radius-l);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-speed__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}

.page-home .home-speed__num--hit {
  color: var(--ink);
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: 10px;
}

.page-home .home-speed__bar .statbar__arrow {
  font-size: 26px;
  color: var(--signal);
}

.page-home .home-speed__unit {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

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

.page-home .home-speed__cell {
  padding: 20px 20px 22px;
  border-radius: var(--home-radius);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--signal);
}

.page-home .home-speed__cell h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}

.page-home .home-speed__cell p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
}

.page-home .home-speed__foot {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 移动端公告 ---------- */

.page-home .home-mobile {
  padding: 62px 0;
}

.page-home .home-mobile__inner {
  display: grid;
  gap: 34px;
}

.page-home .home-mobile__title {
  font-size: clamp(26px, 5.2vw, 42px);
  line-height: 1.16;
  color: var(--graphite);
  margin: 10px 0 16px;
}

.page-home .home-mobile__text > p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--graphite);
  max-width: 60ch;
}

.page-home .home-mobile__list {
  margin: 22px 0 26px;
  display: grid;
  gap: 12px;
}

.page-home .home-mobile__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .home-mobile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--signal);
}

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

.page-home .home-mobile__cta {
  display: inline-block;
}

.page-home .home-mobile__phone {
  margin: 0;
  justify-self: center;
  max-width: 300px;
}

.page-home .home-mobile__phone .media__frame {
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--home-shadow);
  border: 1px solid var(--rock);
}

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

.page-home .home-mobile__phone .media__caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
  text-align: center;
}

/* ---------- 联系入口 ---------- */

.page-home .home-connect {
  position: relative;
  padding: 62px 0 72px;
}

.page-home .home-connect__inner {
  display: grid;
  gap: 32px;
}

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

.page-home .home-connect__frame {
  border-radius: var(--home-radius-l);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--rock);
}

.page-home .home-connect__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.page-home .home-connect__title {
  font-size: clamp(26px, 5.2vw, 42px);
  line-height: 1.16;
  color: var(--graphite);
  margin: 10px 0 16px;
}

.page-home .home-connect__text > p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--graphite);
  max-width: 58ch;
}

.page-home .home-connect__box {
  margin: 24px 0 22px;
  padding: 20px 22px;
  border-radius: var(--home-radius);
  background: var(--white);
  border: 1px solid var(--rock);
  border-left: 4px solid var(--signal);
  max-width: 520px;
}

.page-home .home-connect__box-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-bottom: 6px;
}

.page-home .home-connect__mail {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.page-home .home-connect__note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* 右下角常驻联系浮层（桌面端） */

.page-home .home-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  background: var(--white);
  border: 1px solid var(--rock);
  border-left: 4px solid var(--signal);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  overflow: hidden;
  max-width: 280px;
}

.page-home .home-pill__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}

.page-home .home-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.page-home .home-pill__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.page-home .home-pill[data-open] .home-pill__body {
  max-height: 140px;
}

.page-home .home-pill__body p {
  padding: 0 16px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
  word-break: break-all;
}

.page-home .home-pill__body p:last-child {
  padding-bottom: 16px;
}

/* ---------- 谁在用 ---------- */

.page-home .home-who {
  padding: 62px 0 78px;
}

.page-home .home-who__title {
  font-size: clamp(26px, 5.2vw, 42px);
  line-height: 1.16;
  color: var(--graphite);
  margin: 10px 0 30px;
  max-width: 22ch;
}

.page-home .home-who__grid {
  display: grid;
  gap: 16px;
}

.page-home .home-who__card {
  padding: 24px 22px 26px;
  border-radius: var(--home-radius);
  background: var(--white);
  border: 1px solid var(--rock);
  border-top: 4px solid var(--tone, var(--mist));
}

.page-home .home-who__card[data-tone="moss"]    { --tone: var(--moss); }
.page-home .home-who__card[data-tone="teal"]    { --tone: var(--teal); }
.page-home .home-who__card[data-tone="magenta"] { --tone: var(--magenta); }
.page-home .home-who__card[data-tone="clay"]    { --tone: var(--clay); }

.page-home .home-who__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--tone, var(--mist));
  margin-bottom: 12px;
}

.page-home .home-who__card h3 {
  font-size: 20px;
  color: var(--graphite);
  margin-bottom: 10px;
}

.page-home .home-who__card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
}

.page-home .home-who__tail {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--rock);
}

.page-home .home-who__tail > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 66ch;
}

.page-home .home-who__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ============ 断点 ============ */

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

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

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

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: calc(var(--bar-h) + 64px) 0 84px;
  }

  .page-home .home-hero__lede {
    font-size: 18px;
  }

  .page-home .tagwall__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 96px;
    grid-auto-flow: dense;
  }

  .page-home .tagwall__item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .page-home .tagwall__item:nth-child(2) { grid-column: span 3; }
  .page-home .tagwall__item:nth-child(3) { grid-column: span 2; }
  .page-home .tagwall__item:nth-child(4) { grid-column: span 1; }
  .page-home .tagwall__item:nth-child(5) { grid-column: span 2; }
  .page-home .tagwall__item:nth-child(6) { grid-column: span 2; }
  .page-home .tagwall__item:nth-child(7) { grid-column: span 2; }
  .page-home .tagwall__item:nth-child(8) { grid-column: span 3; }
  .page-home .tagwall__item:nth-child(9) { grid-column: span 3; }

  .page-home .tagwall__item:nth-child(1) .tagwall__name {
    font-size: 28px;
  }

  .page-home .home-map,
  .page-home .home-speed,
  .page-home .home-mobile,
  .page-home .home-connect,
  .page-home .home-who {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .page-home .home-map__body {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 46px;
    align-items: start;
  }

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

  .page-home .homemap-list__row {
    grid-template-columns: 16px minmax(0, 1fr) 230px;
    grid-template-areas: "dot main meta";
    align-items: start;
    gap: 16px;
  }

  .page-home .home-mobile__inner {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: center;
  }

  .page-home .home-mobile__phone {
    justify-self: end;
    max-width: 300px;
  }

  .page-home .home-connect__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 52px;
    align-items: center;
  }

  .page-home .home-connect__art {
    order: 2;
  }

  .page-home .home-connect__text {
    order: 1;
  }

  .page-home .home-pill {
    display: block;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero__title {
    max-width: 17ch;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__trail path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .page-home .tagwall__link,
  .page-home .home-pill__body {
    transition: none;
  }

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