.page-home {
  --home-deeper: #071428;
  --hero-grid-size: 36px;
  --flow-scan-width: 180px;
  background: var(--c-light);
  color: var(--c-text);
  overflow-x: hidden;
}

/* ===== 首屏预览 ===== */
.page-home .hero-stack {
  position: relative;
  padding: 28px 0 52px;
  background: var(--c-primary);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: -2;
  filter: saturate(0.8) brightness(0.92);
}

.page-home .hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.07) 1px, transparent 1px);
  background-size: var(--hero-grid-size) var(--hero-grid-size);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.page-home .hero-scanline {
  position: absolute;
  top: 46%;
  left: -20%;
  width: var(--flow-scan-width);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.55));
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: home-scan 6s ease-in-out infinite;
}

@keyframes home-scan {
  0% {
    left: -20%;
    opacity: 0;
  }
  15% {
    opacity: 0.55;
  }
  75% {
    opacity: 0.55;
  }
  100% {
    left: 96%;
    opacity: 0;
  }
}

.page-home .hero-stack::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 22%;
  width: 140%;
  height: 55%;
  background: linear-gradient(115deg, transparent 0%, rgba(0, 229, 255, 0.12) 45%, rgba(57, 255, 20, 0.1) 55%, transparent 100%);
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: -1;
  animation: home-data-light 7s ease-in-out infinite alternate;
}

@keyframes home-data-light {
  0% {
    transform: rotate(-8deg) translateX(0);
  }
  100% {
    transform: rotate(-8deg) translateX(36px);
  }
}

.page-home .hero-container {
  position: relative;
  z-index: 1;
}

.page-home .breadcrumb {
  margin-bottom: 28px;
  font-size: 0.82rem;
}

.page-home .hero-copy {
  max-width: 780px;
}

.page-home .hero-copy .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  color: var(--c-green);
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 999px;
  font-family: var(--font-num);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .hero-copy h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.page-home .title-sep {
  color: var(--c-yellow);
  margin: 0 8px;
}

.page-home .hero-copy .lead {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 26px;
  max-width: 660px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .stack-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 36px;
}

.page-home .stack-card {
  background: rgba(16, 42, 74, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.page-home .stack-card:hover {
  border-color: var(--c-yellow);
  transform: translateY(-2px);
  background: rgba(20, 52, 92, 0.9);
}

.page-home .stack-index {
  font-family: var(--font-num);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-yellow);
}

.page-home .stack-title {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .stack-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  text-align: right;
}

/* ===== 版本亮点 ===== */
.page-home .highlights-section {
  background: var(--c-light);
  padding: 56px 0 64px;
}

.page-home .section-head {
  margin-bottom: 36px;
}

.page-home .section-head .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 12px;
  color: var(--c-primary);
  background: var(--c-white);
  border: 1px solid rgba(11, 30, 58, 0.18);
  border-radius: 999px;
  font-family: var(--font-num);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-home .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-text);
  margin-bottom: 12px;
}

.page-home .section-head .lead {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 680px;
}

.page-home .highlights-layout {
  display: grid;
  gap: 28px;
}

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

.page-home .highlight-item {
  background: var(--c-white);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--c-yellow);
  padding: 18px 18px 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .highlight-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-2);
}

.page-home .highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--c-primary);
  background: rgba(0, 229, 255, 0.08);
  border-radius: 14px 4px 14px 4px;
}

.page-home .highlight-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.page-home .highlight-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.page-home .highlight-visual {
  background: var(--c-primary-alt);
  border-radius: var(--radius-panel);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

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

.page-home .highlight-visual figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ===== 快速入口 ===== */
.page-home .quick-entry-section {
  position: relative;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 56px 0 64px;
  overflow: hidden;
}

.page-home .quick-entry-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(255, 215, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(0, 229, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.page-home .quick-entry-section .container {
  position: relative;
  z-index: 1;
}

.page-home .quick-entry-section .section-head h2 {
  color: var(--c-white);
}

.page-home .quick-entry-section .section-head .lead {
  color: rgba(255, 255, 255, 0.75);
}

.page-home .quick-entry-section .section-head .eyebrow {
  color: var(--c-yellow);
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.28);
}

.page-home .entry-layout {
  display: grid;
  gap: 28px;
}

.page-home .entry-cards {
  display: grid;
  gap: 12px;
}

.page-home .entry-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon name"
    "icon desc"
    "step step";
  gap: 4px 12px;
  padding: 18px;
  background: rgba(16, 42, 74, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius-card);
  color: var(--c-white);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.page-home .entry-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.page-home .entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-yellow);
  background: rgba(20, 52, 92, 0.88);
}

.page-home .entry-card:hover::after {
  opacity: 1;
}

.page-home .entry-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.1);
  border-radius: 14px 4px 14px 4px;
}

.page-home .entry-name {
  grid-area: name;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-home .entry-desc {
  grid-area: desc;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.page-home .entry-step {
  grid-area: step;
  width: fit-content;
  margin-top: 10px;
  padding: 4px 12px;
  font-family: var(--font-num);
  font-size: 0.75rem;
  color: var(--c-green);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.24);
  border-radius: 999px;
}

.page-home .entry-visual {
  background: rgba(16, 42, 74, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin: 0;
}

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

.page-home .entry-visual figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.68);
}

/* 分类内容预览 */
.page-home .tabs--preview {
  margin-top: 32px;
  padding: 18px;
  background: rgba(16, 42, 74, 0.55);
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: var(--radius-panel);
}

.page-home .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .tab-link {
  padding: 8px 14px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .tab-link:hover {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.page-home .tab-link.is-active,
.page-home .tab-link[aria-selected="true"] {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: var(--c-primary);
  font-weight: 700;
}

.page-home .tab-panel {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.18);
  border-left: 3px solid var(--c-cyan);
  border-radius: 16px 4px 16px 4px;
}

.page-home .tab-panel-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-yellow);
  margin-bottom: 6px;
}

.page-home .tab-panel p:last-child {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.page-home .inline-link {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .inline-link:hover {
  color: var(--c-yellow);
  border-color: var(--c-yellow);
}

/* ===== 数据概览 ===== */
.page-home .data-overview-section {
  position: relative;
  background: var(--c-light);
  padding: 56px 0 64px;
  overflow: hidden;
}

.page-home .data-overview-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 229, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  animation: home-grid-pulse 2.4s ease-in-out infinite;
}

@keyframes home-grid-pulse {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 0.48;
  }
}

.page-home .data-overview-section .container {
  position: relative;
  z-index: 1;
}

.page-home .data-layout {
  display: grid;
  gap: 28px;
}

.page-home .data-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px 16px;
  background: var(--c-primary);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-card);
  color: var(--c-white);
  transition: transform 0.25s ease;
}

.page-home .stat-card:hover {
  transform: translateY(-3px);
}

.page-home .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), transparent);
}

.page-home .stat-card--users {
  border-color: rgba(255, 215, 0, 0.24);
}

.page-home .stat-card--users::before {
  background: linear-gradient(90deg, var(--c-yellow), transparent);
}

.page-home .stat-card--daily {
  border-color: rgba(57, 255, 20, 0.24);
}

.page-home .stat-card--daily::before {
  background: linear-gradient(90deg, var(--c-green), transparent);
}

.page-home .stat-card--sync {
  border-color: rgba(0, 229, 255, 0.3);
}

.page-home .stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1;
  color: var(--c-yellow);
  margin-bottom: 8px;
}

.page-home .stat-card--daily .stat-num {
  color: var(--c-green);
}

.page-home .stat-card--sync .stat-num {
  color: var(--c-cyan);
}

.page-home .stat-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.page-home .data-visual {
  background: var(--c-white);
  border: 1px solid rgba(11, 30, 58, 0.08);
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin: 0;
}

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

.page-home .data-visual figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--c-muted);
  background: var(--c-white);
}

/* ===== 更新记录 ===== */
.page-home .changelog-section {
  position: relative;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 56px 0 64px;
  overflow: hidden;
}

.page-home .changelog-section .container {
  position: relative;
  z-index: 1;
}

.page-home .changelog-section .section-head h2 {
  color: var(--c-white);
}

.page-home .changelog-section .section-head .lead {
  color: rgba(255, 255, 255, 0.75);
}

.page-home .changelog-section .section-head .eyebrow {
  color: var(--c-yellow);
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}

.page-home .timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 32px;
}

.page-home .timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-yellow), var(--c-cyan) 50%, rgba(255, 255, 255, 0.12));
}

.page-home .timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.page-home .timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-cyan);
  border: 2px solid var(--c-primary);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.35);
}

.page-home .timeline-item--current::before {
  background: var(--c-yellow);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4), 0 0 16px rgba(255, 215, 0, 0.45);
}

.page-home .timeline-version {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  font-family: var(--font-num);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-primary);
  background: var(--c-yellow);
  border-radius: 999px;
}

.page-home .timeline-body {
  padding: 16px 18px;
  background: rgba(16, 42, 74, 0.78);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: var(--radius-card);
}

.page-home .timeline-body h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--c-white);
  margin-bottom: 8px;
}

.page-home .timeline-body p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .changelog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 桌面端适配 ===== */
@media (min-width: 768px) {
  .page-home .hero-stack {
    padding: 40px 0 72px;
  }

  .page-home .stack-preview {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-home .stack-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px;
    align-content: start;
    min-height: 168px;
    padding: 22px 18px;
  }

  .page-home .stack-note {
    text-align: left;
    margin-top: 8px;
  }

  .page-home .highlights-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }

  .page-home .entry-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }

  .page-home .entry-cards {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .entry-card {
    grid-column: span 2;
  }

  .page-home .entry-card--4,
  .page-home .entry-card--5 {
    grid-column: span 3;
  }

  .page-home .data-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .page-home .data-stats {
    gap: 16px;
  }

  .page-home .timeline {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-copy h1 {
    font-size: 3rem;
  }

  .page-home .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
    align-items: center;
  }

  .page-home .hero-copy {
    max-width: none;
  }

  .page-home .highlights-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .entry-layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .page-home .data-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-scanline,
  .page-home .hero-stack::after,
  .page-home .data-overview-section::before {
    animation: none;
  }

  .page-home .hero-scanline {
    opacity: 0;
  }
}
