.page-home {
  --home-border: rgba(29, 42, 74, 0.8);
  --home-shadow: 0 4px 20px rgba(0, 0, 0, 0.32);
}

.page-home .section-heading {
  margin-bottom: 1.75rem;
}
.page-home .media-frame {
  margin: 0;
  border: 1px solid var(--home-border);
  background: var(--bg-card);
  overflow: hidden;
}
.page-home .media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 主题声明 ---------- */
.page-home .home-statement {
  position: relative;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--home-border);
}
.page-home .home-statement::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--accent) 60%, transparent 100%);
  opacity: 0.55;
}
.page-home .home-statement-grid {
  display: grid;
  gap: 2rem;
}
.page-home .home-statement-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}
.page-home .home-statement-badge {
  align-self: flex-start;
}
.page-home .home-statement-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text-main);
}
.page-home .home-statement-slogan {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--neon);
}
.page-home .home-statement-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.page-home .home-statement-lead {
  margin: 0;
  max-width: 34em;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- 核心数据面板 ---------- */
.page-home .home-data {
  padding: 3rem 0;
}
.page-home .home-data-grid {
  display: grid;
  gap: 1rem;
}
.page-home .home-data-grid > * {
  min-width: 0;
}
.page-home .home-data-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--home-border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.page-home .home-data-panel:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.page-home .home-data-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}
.page-home .home-data-label {
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

/* ---------- 内容目录主题带 ---------- */
.page-home .home-topics {
  padding: 3rem 0;
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-deep) 100%);
}
.page-home .home-topics-band {
  display: grid;
  gap: 1rem;
}
.page-home .home-topics-band > * {
  min-width: 0;
}
.page-home .home-topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 150px;
  padding: 1.5rem 1.25rem;
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid var(--home-border);
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .home-topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0.65;
  transform: scaleY(0.3);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.page-home .home-topic-card:hover,
.page-home .home-topic-card:focus-visible {
  background: var(--bg-card);
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.page-home .home-topic-card:hover::before,
.page-home .home-topic-card:focus-visible::before {
  transform: scaleY(1);
  opacity: 1;
}
.page-home .home-topic-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--neon);
}
.page-home .home-topic-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}
.page-home .home-topic-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}
.page-home .home-topic-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}
.page-home .home-topic-card:hover .home-topic-link {
  color: var(--accent-soft);
}
.page-home .home-topics-media {
  max-width: 300px;
  margin-top: 1.5rem;
  aspect-ratio: 3 / 2;
}

/* ---------- 最新动态 ---------- */
.page-home .home-news {
  padding: 3rem 0;
}
.page-home .home-news-layout {
  display: grid;
  gap: 1.5rem;
}
.page-home .home-news-layout > * {
  min-width: 0;
}
.page-home .home-news-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-border);
  background: var(--bg-base);
}
.page-home .home-news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--home-border);
  transition: background 0.2s var(--ease);
}
.page-home .home-news-item:last-child {
  border-bottom: none;
}
.page-home .home-news-item:hover {
  background: var(--bg-card);
}
.page-home .home-news-title {
  font-size: 0.92rem;
  line-height: 1.5;
}
.page-home .home-news-arrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.page-home .home-news-item:hover .home-news-arrow {
  transform: translate(2px, -2px);
}

/* ---------- 版本对照入口 ---------- */
.page-home .home-compare {
  padding: 3rem 0;
  border-top: 1px solid var(--home-border);
}
.page-home .home-compare-grid {
  display: grid;
  gap: 1.5rem;
}
.page-home .home-compare-grid > * {
  min-width: 0;
}
.page-home .home-compare-panels {
  display: grid;
  gap: 1rem;
}
.page-home .home-compare-col {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--home-border);
  box-shadow: var(--shadow-1);
}
.page-home .home-compare-col:first-child {
  border-top: 3px solid var(--neon);
}
.page-home .home-compare-col:last-child {
  border-top: 3px solid var(--accent);
}
.page-home .home-compare-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.6rem;
}
.page-home .home-compare-tag-new {
  color: var(--neon);
  border: 1px solid rgba(57, 255, 20, 0.4);
}
.page-home .home-compare-tag-old {
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.4);
}
.page-home .home-compare-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-home .home-compare-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}
.page-home .home-compare-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}
.page-home .home-compare-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}
.page-home .home-compare-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ---------- 桌面端断点 ---------- */
@media (min-width: 768px) {
  .page-home .home-statement {
    padding: 5rem 0 3rem;
  }
  .page-home .home-statement-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: end;
  }
  .page-home .home-statement-side {
    padding-bottom: 0.75rem;
  }

  .page-home .home-data,
  .page-home .home-news {
    padding: 4rem 0;
  }
  .page-home .home-data-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .page-home .home-data-media {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: stretch;
  }
  .page-home .home-data-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-home .home-topics {
    padding: 4rem 0;
  }
  .page-home .home-topics-band {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .page-home .home-topics-media {
    margin-top: 2rem;
  }

  .page-home .home-news-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: stretch;
  }
  .page-home .home-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-home .home-compare {
    padding: 4rem 0;
  }
  .page-home .home-compare-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
  }
  .page-home .home-compare-panels {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .page-home .home-compare-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .page-home .home-topics-band {
    grid-template-columns: repeat(4, 1fr);
  }
}
