.page-home {
  --home-line: #1F2C45;
  --home-line-soft: rgba(31, 44, 69, 0.55);
  --home-paper-line: rgba(15, 21, 36, 0.16);
  padding-bottom: 72px;
  color: var(--text);
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- 首屏框景 ---------- */
.page-home .stage {
  margin-bottom: 68px;
}

.page-home .stage__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background:
    linear-gradient(150deg, rgba(17, 26, 46, 0.94) 0%, rgba(8, 13, 26, 0.98) 62%),
    var(--ink-0);
  padding: 26px 18px 24px;
}

.page-home .stage__frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(53, 224, 208, 0) 62%);
  opacity: 0.55;
  z-index: 3;
}

.page-home .stage__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .stage__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.65) contrast(1.08) brightness(0.7);
}

.page-home .stage__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(8, 13, 26, 0.35) 0%, rgba(8, 13, 26, 0.94) 68%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.55) 0%, rgba(8, 13, 26, 0.92) 100%);
}

.page-home .stage__tick {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 4;
  pointer-events: none;
}
.page-home .stage__tick--tl {
  top: 8px; left: 8px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}
.page-home .stage__tick--tr {
  top: 8px; right: 8px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.page-home .stage__tick--bl {
  bottom: 8px; left: 8px;
  border-bottom: 2px solid var(--home-line);
  border-left: 2px solid var(--home-line);
}
.page-home .stage__tick--br {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--home-line);
  border-right: 2px solid var(--home-line);
}

.page-home .stage__head {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.page-home .stage__head h1 {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 5.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .stage__head .lead {
  margin: 16px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(242, 246, 255, 0.82);
}

.page-home .stage__grid {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ---------- 左栏状态刻度 ---------- */
.page-home .pulse {
  border: 1px solid var(--home-line);
  background: rgba(17, 26, 46, 0.78);
  padding: 15px 14px;
}

.page-home .pulse__title {
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

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

.page-home .pulse__item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--home-line-soft);
}
.page-home .pulse__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.page-home .pulse__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(53, 224, 208, 0.85);
  animation: home-breathe 1.2s ease-in-out infinite;
}

@keyframes home-breathe {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.page-home .pulse__name {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.page-home .pulse__val {
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-home .pulse__note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--dim);
}

/* ---------- 中栏三项入口 ---------- */
.page-home .entries {
  display: grid;
  gap: 14px;
}

.page-home .entry {
  position: relative;
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--cyan);
  background: rgba(17, 26, 46, 0.7);
  padding: 15px 16px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-home .entry:hover {
  transform: translateX(3px);
}

.page-home .entry--download { border-left-color: var(--red); }
.page-home .entry--version  { border-left-color: var(--cyan); }
.page-home .entry--export   { border-left-color: var(--amber); }

.page-home .entry__tag {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.page-home .entry__title {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.page-home .entry__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: rgba(242, 246, 255, 0.72);
}

.page-home .entry__meta {
  margin: 12px 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--home-line-soft);
  border-bottom: 1px solid var(--home-line-soft);
  display: grid;
  gap: 5px;
}

.page-home .entry__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-home .entry__row dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  flex: 0 0 auto;
}

.page-home .entry__row dd {
  margin: 0;
  font-size: 12px;
  color: var(--text);
  text-align: right;
}

/* ---------- 右栏收藏卡片（暖纸叠层） ---------- */
.page-home .collect {
  position: relative;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 20px 18px 16px;
  box-shadow:
    7px 7px 0 rgba(31, 44, 69, 0.7),
    14px 14px 0 rgba(31, 44, 69, 0.28);
  transform: rotate(-0.35deg);
}

.page-home .collect__tag {
  margin: 0 0 9px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(15, 21, 36, 0.5);
}

.page-home .collect__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 12px;
}

.page-home .collect__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper-ink);
}

.page-home .collect__desc {
  margin: 0 0 13px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(15, 21, 36, 0.78);
}

.page-home .collect__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(15, 21, 36, 0.82);
}

.page-home .collect__list li {
  position: relative;
  padding-left: 15px;
}

.page-home .collect__list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--red);
}

.page-home .collect__stat {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--home-paper-line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 21, 36, 0.55);
}

/* ---------- 通用小节头 ---------- */
.page-home .section-head {
  margin-bottom: 22px;
}

.page-home .section-head__title {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(21px, 3.2vw, 29px);
  line-height: 1.28;
  color: var(--text);
  max-width: 760px;
}

.page-home .section-head__meta {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
}

/* ---------- 红黄牌逐场核对 ---------- */
.page-home .cards {
  margin-bottom: 68px;
}

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

.page-home .cards__panel {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 22px 20px 20px;
  box-shadow:
    8px 8px 0 rgba(31, 44, 69, 0.6),
    16px 16px 0 rgba(31, 44, 69, 0.22);
}

.page-home .cards__label {
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(15, 21, 36, 0.5);
}

.page-home .cards__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(15, 21, 36, 0.85);
}

.page-home .cards__facts {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--home-paper-line);
  border-bottom: 1px solid var(--home-paper-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.page-home .cards__facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .cards__num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--paper-ink);
}

.page-home .cards__cap {
  font-size: 11.5px;
  color: rgba(15, 21, 36, 0.62);
  letter-spacing: 0.02em;
}

.page-home .cards__meter {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .cards__meter-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(15, 21, 36, 0.55);
}

.page-home .cards__meter .meter__fill {
  display: block;
  height: 9px;
  background: var(--amber);
  border-radius: 1px;
}

.page-home .cards__meter--red .meter__fill {
  background: var(--crimson);
}

.page-home .cards__source {
  margin: 18px 0 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(15, 21, 36, 0.58);
}

.page-home .cards__figure {
  margin: 0;
  border: 1px solid var(--home-line);
  background: var(--ink-1);
  padding: 10px;
}

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

.page-home .cards__figcap {
  margin: 10px 2px 2px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--dim);
}

.page-home .cards__figcap .row-amber {
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 1px;
}

.page-home .cards__figcap .row-crimson {
  color: var(--crimson);
  border-bottom: 1px solid var(--crimson);
  padding-bottom: 1px;
}

/* ---------- 收藏同步 ---------- */
.page-home .sync {
  margin-bottom: 68px;
}

.page-home .sync__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.page-home .sync__figure {
  margin: 0;
  border: 1px solid var(--home-line);
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(53, 224, 208, 0.06) 0%, rgba(226, 59, 50, 0.05) 100%),
    var(--ink-1);
}

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

.page-home .sync__text {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(242, 246, 255, 0.84);
}

.page-home .sync__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .sync__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(242, 246, 255, 0.74);
}

.page-home .sync__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

.page-home .sync__list strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}

/* ---------- 内容体系与更新节奏 ---------- */
.page-home .rhythm {
  margin-bottom: 68px;
}

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

.page-home .rhythm__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .rhythm__row {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "no name"
    "no text";
  gap: 4px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-line);
}

.page-home .rhythm__no {
  grid-area: no;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding-top: 3px;
}

.page-home .rhythm__name {
  grid-area: name;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-home .rhythm__text {
  grid-area: text;
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(242, 246, 255, 0.68);
}

.page-home .rhythm__figure {
  margin: 0;
  border: 1px solid var(--home-line);
  background: var(--ink-1);
  padding: 10px;
}

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

.page-home .rhythm__figcap {
  display: block;
  margin: 10px 2px 2px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* ---------- 继续往下走 ---------- */
.page-home .next {
  margin-bottom: 32px;
}

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

.page-home .next__item {
  display: block;
  border: 1px solid var(--home-line);
  background: rgba(17, 26, 46, 0.66);
  padding: 18px 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.page-home .next__item:hover,
.page-home .next__item:focus-visible {
  border-color: var(--red);
  background: rgba(17, 26, 46, 0.92);
  transform: translateY(-3px);
}

.page-home .next__idx {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-bottom: 10px;
}

.page-home .next__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.page-home .next__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(242, 246, 255, 0.7);
}

.page-home .next__item:hover .next__title {
  color: var(--red);
}

.page-home .next__foot {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--dim);
}

.page-home .next__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 208, 0.4);
}

.page-home .next__foot a:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .stage__frame {
    padding: 34px 26px 30px;
  }

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

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

@media (min-width: 900px) {
  .page-home .stage__grid {
    grid-template-columns: 190px minmax(0, 1fr) 236px;
    gap: 22px;
    align-items: start;
  }

  .page-home .entry--download { margin-right: 26px; }
  .page-home .entry--version  { margin-left: 14px; margin-right: 10px; }
  .page-home .entry--export   { margin-right: 38px; }

  .page-home .cards__grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 28px;
  }

  .page-home .sync__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 34px;
  }

  .page-home .rhythm__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 34px;
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-home .stage__frame {
    padding: 42px 34px 36px;
  }

  .page-home .stage__grid {
    grid-template-columns: 208px minmax(0, 1fr) 252px;
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .pulse__led {
    animation: none;
    opacity: 0.9;
  }

  .page-home .entry,
  .page-home .next__item {
    transition: none;
  }

  .page-home .entry:hover,
  .page-home .next__item:hover {
    transform: none;
  }
}
