.page-home {
  --home-card-radius: 16px;
}

/* ===== 封面首屏 ===== */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-bg);
}

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

.page-home .home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: saturate(0.72) brightness(0.55) contrast(1.12);
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 30, 58, 0.96) 0%, rgba(11, 30, 58, 0.68) 42%, rgba(8, 21, 40, 0.94) 100%),
    radial-gradient(circle at 82% 18%, rgba(0, 230, 118, 0.16), transparent 42%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 112px 24px 64px;
  text-align: center;
}

.page-home .home-hero__crumb {
  justify-content: center;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 230, 118, 0.45);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.1em;
  background: rgba(8, 21, 40, 0.6);
  margin-bottom: 22px;
}

.page-home .home-hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-orange);
  animation: home-pulse-dot 2.2s ease-out infinite;
}

@keyframes home-pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 109, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0); }
}

.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 9vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.page-home .home-hero__title::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-green), var(--color-accent-orange));
}

.page-home .home-hero__lead {
  max-width: 660px;
  margin: 0 auto 28px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.85;
  color: #d2ddf0;
}

.page-home .home-hero__lead strong {
  color: var(--color-accent-green);
  font-weight: 600;
}

.page-home .home-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 38px;
}

.page-home .home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border-line);
  background: rgba(16, 38, 74, 0.7);
  color: var(--color-text-primary);
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.page-home .home-hero__badge--new {
  border-color: rgba(255, 109, 0, 0.6);
}

.page-home .home-hero__badge--form {
  border-color: rgba(0, 230, 118, 0.45);
}

.page-home .home-hero__badge:hover,
.page-home .home-hero__badge:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-home .home-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-orange);
  box-shadow: 0 0 8px rgba(255, 109, 0, 0.8);
}

.page-home .home-hero__badge--form .home-hero__badge-dot {
  background: var(--color-accent-green);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
}

.page-home .home-hero__index {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(8, 21, 40, 0.72);
  border: 1px solid rgba(30, 58, 95, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  text-align: left;
}

.page-home .home-hero__index-title {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-green);
}

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

.page-home .home-hero__index-item {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(30, 58, 95, 0.85);
}

.page-home .home-hero__index-item:last-child {
  border-bottom: 0;
}

.page-home .home-hero__index-link {
  display: block;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  transition:
    color var(--duration) var(--ease),
    padding-left var(--duration) var(--ease);
}

.page-home .home-hero__index-link:hover,
.page-home .home-hero__index-link:focus {
  color: var(--color-text-primary);
  padding-left: 8px;
}

/* ===== 版本对比 ===== */
.page-home .home-versions {
  position: relative;
  border-top: 2px solid rgba(0, 230, 118, 0.5);
  background: var(--color-primary-bg);
}

.page-home .home-versions__title,
.page-home .home-dashboard__title,
.page-home .home-commute__title,
.page-home .home-download__title,
.page-home .home-columns__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 10px 0 12px;
}

.page-home .home-versions__sub,
.page-home .home-dashboard__sub,
.page-home .home-columns__sub {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 30px;
}

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

.page-home .home-versions__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 26px;
  border: 1px solid var(--color-border-line);
  border-radius: var(--home-card-radius);
  background: linear-gradient(145deg, rgba(16, 38, 74, 0.9), rgba(8, 21, 40, 0.94));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  overflow: hidden;
}

.page-home .home-versions__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.page-home .home-versions__card--beta::before {
  background: var(--color-accent-orange);
}

.page-home .home-versions__card--stable::before {
  background: var(--color-accent-green);
}

.page-home .home-versions__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-versions__card-index {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.14;
  letter-spacing: 0.02em;
}

.page-home .home-versions__card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0;
}

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

.page-home .home-versions__list li {
  position: relative;
  padding-left: 20px;
  color: #d2ddf0;
  line-height: 1.65;
}

.page-home .home-versions__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.page-home .home-versions__card--beta .home-versions__list li::before {
  background: var(--color-accent-orange);
}

.page-home .home-versions__card--stable .home-versions__list li::before {
  background: var(--color-accent-green);
}

.page-home .home-versions__note {
  font-size: 13px;
  color: var(--color-text-secondary);
  border-top: 1px dashed rgba(30, 58, 95, 0.85);
  padding-top: 12px;
  margin: 0;
}

/* ===== 仪表盘 ===== */
.page-home .home-dashboard {
  position: relative;
  border-top: 2px solid rgba(255, 109, 0, 0.5);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.04), transparent 40%), var(--color-primary-bg);
}

.page-home .home-dashboard__sub {
  font-size: 14px;
}

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

.page-home .home-dashboard__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--color-border-line);
  border-radius: var(--radius-lg);
  background: rgba(16, 38, 74, 0.62);
}

.page-home .home-dashboard__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.page-home .home-dashboard__card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0;
}

.page-home .home-dashboard__card-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-accent-orange);
  border: 1px solid rgba(255, 109, 0, 0.45);
  padding: 3px 8px;
  border-radius: 999px;
}

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

.page-home .home-dashboard__img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--color-border-line);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .home-dashboard__bars {
  display: grid;
  gap: 10px;
}

.page-home .home-dashboard__bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.page-home .home-dashboard__bar-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.page-home .home-dashboard__bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(8, 21, 40, 0.8);
  overflow: hidden;
}

.page-home .home-dashboard__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.page-home .home-dashboard__bar-fill--green {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.7), var(--color-accent-green));
}

.page-home .home-dashboard__bar-fill--orange {
  background: linear-gradient(90deg, rgba(255, 109, 0, 0.65), var(--color-accent-orange));
}

.page-home .home-dashboard__bar-value {
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: right;
}

.page-home .home-dashboard__line {
  background: rgba(8, 21, 40, 0.6);
  border: 1px solid var(--color-border-line);
  border-radius: 12px;
  padding: 10px;
}

.page-home .home-dashboard__svg-line {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .home-dashboard__line-grid {
  stroke: rgba(30, 58, 95, 0.75);
  stroke-width: 1;
}

.page-home .home-dashboard__line-main {
  stroke: var(--color-accent-green);
  stroke-width: 3;
}

.page-home .home-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.page-home .home-dashboard__stat {
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(8, 21, 40, 0.55);
}

.page-home .home-dashboard__stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent-green);
  line-height: 1.2;
}

.page-home .home-dashboard__stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.page-home .home-dashboard__caption {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 4px 0 0;
}

.page-home .home-dashboard__footnote {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  margin: 24px 0 0;
}

/* ===== 通勤场景 ===== */
.page-home .home-commute {
  border-top: 2px solid rgba(0, 230, 118, 0.45);
  background: var(--color-deep-bg);
}

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

.page-home .home-commute__media {
  position: relative;
  z-index: 0;
}

.page-home .home-commute__media::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.page-home .home-commute__img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border-line);
  border-radius: var(--radius-lg);
}

.page-home .home-commute__lead {
  margin: 0 0 22px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

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

.page-home .home-commute__point {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(16, 38, 74, 0.55);
  border-left: 3px solid var(--color-accent-green);
  border-radius: 8px;
  color: var(--color-text-primary);
  line-height: 1.6;
}

.page-home .home-commute__point-num {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--color-accent-orange);
  flex-shrink: 0;
}

.page-home .home-commute__link {
  margin-top: 6px;
}

/* ===== 下载入口 ===== */
.page-home .home-download {
  position: relative;
  border-top: 2px solid rgba(255, 109, 0, 0.55);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 109, 0, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(0, 230, 118, 0.05) 0%, transparent 100%),
    var(--color-deep-bg);
  text-align: center;
}

.page-home .home-download .section-label {
  justify-content: center;
}

.page-home .home-download__lead {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.page-home .home-download__actions {
  max-width: 360px;
  margin: 0 auto 20px;
}

.page-home .home-download__primary {
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 12px;
}

.page-home .home-download__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.page-home .home-download__links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-line);
  transition:
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.page-home .home-download__links a:hover,
.page-home .home-download__links a:focus {
  color: var(--color-accent-green);
  border-bottom-color: var(--color-accent-green);
}

/* ===== 数据专栏 ===== */
.page-home .home-columns {
  border-top: 2px solid rgba(0, 230, 118, 0.4);
  background: var(--color-primary-bg);
}

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

.page-home .home-columns__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid var(--color-border-line);
  border-radius: var(--radius-lg);
  background: rgba(16, 38, 74, 0.58);
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    background var(--duration) var(--ease);
}

.page-home .home-columns__item:hover,
.page-home .home-columns__item:focus-within {
  border-color: rgba(0, 230, 118, 0.45);
  background: rgba(16, 38, 74, 0.85);
  transform: translateY(-3px);
}

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

.page-home .home-columns__item-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
}

.page-home .home-columns__excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.page-home .home-columns__more {
  color: var(--color-accent-green);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: auto;
}

.page-home .home-columns__more:hover {
  text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (min-width: 820px) {
  .page-home .home-versions__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

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

  .page-home .home-columns__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-home .home-download__actions {
    max-width: 400px;
  }
}

@media (min-width: 1180px) {
  .page-home .home-hero__inner {
    padding-top: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
