.page-home {
  --home-line: rgba(30, 58, 82, .55);
  --home-card: var(--ink-800);
  background-color: var(--ink-900);
  color: var(--ice);
  font-family: var(--font-body);
  padding-top: clamp(12px, 2vw, 22px);
  padding-bottom: clamp(40px, 6vw, 76px);
  overflow-x: hidden;
}

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

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

.page-home section {
  margin-top: clamp(34px, 5vw, 68px);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ice);
  margin: 0;
}

.page-home h1 {
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.18;
}

.page-home h2 {
  font-size: clamp(23px, 3.4vw, 32px);
  line-height: 1.28;
}

.page-home h3 {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.4;
}

.page-home p {
  margin: 0;
  line-height: 1.75;
  color: var(--mist);
}

/* ===== 首屏框景 ===== */
.page-home .hero__frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 40px 90px -60px rgba(32, 227, 210, .65);
}

.page-home .hero__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(32, 227, 210, .09), transparent 68%),
    var(--ink-800);
}

.page-home .hero__rail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--mist);
}

.page-home .hero__rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.page-home .hero__rail-list a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px dashed var(--home-line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.page-home .hero__rail-foot {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .hero__rail-foot .num {
  font-size: 20px;
  color: var(--cyan);
}

.page-home .hero__main {
  position: relative;
  padding: clamp(20px, 3.4vw, 40px);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(120% 100% at 0% 0%, rgba(32, 227, 210, .12), transparent 62%),
    linear-gradient(var(--home-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-line) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
}

.page-home .hero__main::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  opacity: .65;
  pointer-events: none;
}

.page-home .hero__lede {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 60ch;
  color: var(--ice);
  opacity: .88;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hero__stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--home-line);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.page-home .hero__stats li {
  background: rgba(6, 18, 31, .72);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero__stats .num {
  font-size: 24px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

.page-home .hero__stats li span:last-child {
  font-size: 12px;
  color: var(--mist);
  letter-spacing: .04em;
}

.page-home .hero__window {
  position: relative;
  margin: 0;
  min-height: 200px;
  background: var(--ink-900);
  overflow: hidden;
}

.page-home .hero__window img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform calc(var(--dur) * 3) var(--ease);
}

.page-home .hero__window:hover img {
  transform: scale(1.03);
}

.page-home .hero__window figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ice);
  background: rgba(6, 18, 31, .78);
  border-left: 2px solid var(--cyan);
  padding: 5px 10px;
}

/* ===== 工具分区 ===== */
.page-home .tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
}

.page-home .tools__aside-text {
  margin-top: 14px;
  font-size: 15px;
  max-width: 46ch;
}

.page-home .tools__nav {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--home-line);
}

.page-home .tools__nav li {
  border-bottom: 1px solid var(--home-line);
}

.page-home .tools__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.page-home .tools__nav a::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--line-dim);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .tools__nav a:hover,
.page-home .tools__nav a:focus-visible {
  color: var(--cyan);
  padding-left: 4px;
}

.page-home .tools__nav a:hover::before,
.page-home .tools__nav a:focus-visible::before {
  width: 24px;
  background: var(--cyan);
}

.page-home .tools__aside-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 22px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-m);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .tools__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  background: var(--home-card);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-m);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .tool-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  border-top-right-radius: var(--radius-m);
  opacity: .35;
  transition: opacity var(--dur) var(--ease);
}

.page-home .tool-card:hover,
.page-home .tool-card:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 24px 50px -34px rgba(32, 227, 210, .85);
  transform: translateY(-2px);
}

.page-home .tool-card:hover::after,
.page-home .tool-card:focus-within::after {
  opacity: 1;
}

.page-home .tool-card .tag {
  align-self: flex-start;
}

.page-home .tool-card .card__body {
  font-size: 15px;
}

.page-home .tool-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.page-home .tool-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .tool-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--cyan);
  opacity: .75;
}

.page-home .tool-card__link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--orange);
  text-decoration: none;
  border-top: 1px dashed var(--home-line);
}

.page-home .tool-card__link:hover,
.page-home .tool-card__link:focus-visible {
  color: var(--cyan);
}

/* ===== 近 5 轮数据带 ===== */
.page-home .rounds {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(139, 123, 255, .14), transparent 58%),
    var(--ink-800);
  overflow: hidden;
}

.page-home .rounds__media {
  margin: calc(clamp(18px, 3vw, 32px) * -1) calc(clamp(18px, 3vw, 32px) * -1) clamp(18px, 3vw, 26px);
  border-bottom: 1px solid var(--home-line);
}

.page-home .rounds__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 3;
  object-fit: cover;
  opacity: .92;
}

.page-home .rounds__lede {
  margin-top: 14px;
  font-size: 15px;
  max-width: 68ch;
}

.page-home .rounds__board {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--home-line);
}

.page-home .round-row {
  display: grid;
  grid-template-columns: minmax(84px, 112px) minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--home-line);
}

.page-home .round-row__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ice);
}

.page-home .round-row__cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 42px;
}

.page-home .cell {
  display: block;
  height: var(--h, 50%);
  border-radius: 2px;
  transition: filter var(--dur) var(--ease);
}

.page-home .cell--w { background: var(--green); opacity: .82; }
.page-home .cell--d { background: var(--violet); opacity: .72; }
.page-home .cell--l { background: var(--red); opacity: .62; }

.page-home .round-row:hover .cell {
  filter: brightness(1.25);
}

.page-home .round-row__meta {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .rounds__legend {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.page-home .rounds__legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mist);
}

.page-home .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.page-home .dot--w { background: var(--green); }
.page-home .dot--d { background: var(--violet); }
.page-home .dot--l { background: var(--red); }

.page-home .rounds__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--mist);
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
}

/* ===== 报告与版本 ===== */
.page-home .reports {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 44px);
}

.page-home .reports__intro-text {
  margin-top: 14px;
  font-size: 15px;
  max-width: 52ch;
}

.page-home .reports__intro .btn {
  margin-top: 20px;
}

.page-home .reports__intro-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-m);
  aspect-ratio: 12 / 5;
  object-fit: cover;
}

.page-home .reports__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .report-item {
  padding: 16px 16px 16px 18px;
  background: var(--home-card);
  border-left: 2px solid var(--line-dim);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .report-item:hover {
  border-left-color: var(--cyan);
  background: var(--ink-700);
}

.page-home .report-item__time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--orange);
}

.page-home .report-item h3 {
  margin-top: 6px;
  font-size: 16.5px;
  line-height: 1.5;
}

.page-home .report-item p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
}

.page-home .reports__versions {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--home-line);
}

.page-home .reports__versions .fold {
  margin-bottom: 8px;
}

/* ===== 收藏与快捷调用 ===== */
.page-home .shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.page-home .shelf__panel {
  padding: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 122, 26, .16), transparent 60%),
    var(--ink-800);
}

.page-home .shelf__text {
  margin-top: 14px;
  font-size: 15px;
  max-width: 58ch;
}

.page-home .shelf__panel .btn {
  margin-top: 22px;
}

.page-home .shelf__steps {
  list-style: none;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
  background: var(--ink-900);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.page-home .shelf__steps li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--ice);
}

.page-home .shelf__steps .num {
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .1em;
}

/* ===== 服务规模与联系 ===== */
.page-home .scale__lede {
  margin-top: 14px;
  font-size: 15px;
  max-width: 60ch;
}

.page-home .scale__stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--home-line);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.page-home .scale__stats .stat {
  background: var(--ink-800);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color var(--dur) var(--ease);
}

.page-home .scale__stats .stat:hover {
  background: var(--ink-700);
}

.page-home .scale__stats .stat__value {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--ice);
  line-height: 1.1;
}

.page-home .scale__stats .stat__label {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .scale__contact {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-m);
  background:
    linear-gradient(120deg, rgba(32, 227, 210, .1), rgba(255, 122, 26, .08)),
    var(--ink-800);
}

.page-home .scale__contact-text h3 {
  margin-bottom: 10px;
}

.page-home .scale__contact-text p {
  font-size: 14px;
  max-width: 62ch;
  color: var(--ice);
  opacity: .85;
}

.page-home .scale__contact-text .num {
  color: var(--cyan);
}

.page-home .scale__contact .btn {
  align-self: flex-start;
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-home .hero__frame {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .page-home .hero__rail {
    padding: 20px 16px;
  }

  .page-home .hero__rail-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }

  .page-home .hero__window {
    grid-column: 1 / -1;
    min-height: 240px;
  }

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

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

  .page-home .round-row {
    grid-template-columns: 140px minmax(0, 1fr) 132px;
  }

  .page-home .round-row__meta {
    grid-column: auto;
    text-align: right;
  }

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

  .page-home .scale__contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .scale__contact .btn {
    align-self: center;
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) {
  .page-home .hero__frame {
    grid-template-columns: 190px minmax(0, 1fr) minmax(320px, 400px);
  }

  .page-home .hero__window {
    grid-column: auto;
    min-height: 100%;
  }

  .page-home .hero__window img {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .page-home .tools {
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .tools__aside {
    position: sticky;
    top: 96px;
  }

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

  .page-home .reports {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    align-items: start;
  }

  .page-home .shelf {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

@media (min-width: 1320px) {
  .page-home .tools__aside {
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .tool-card,
  .page-home .hero__window img,
  .page-home .cell,
  .page-home .report-item {
    transition: none;
  }

  .page-home .tool-card:hover {
    transform: none;
  }
}

.page-home {
  --h: 1rem;
}
