.page-home {
  --color-primary: #0B1D3A;
  --color-primary-light: #1A3A6A;
  --color-secondary: #6C8EB2;
  --color-accent: #FF7F2A;
  --color-accent-hover: #E66A1F;
  --color-bg-dark: #0A0F1E;
  --color-bg-light: #F5F7FA;
  --color-surface: #FFFFFF;
  --color-text-primary: #F0F4F8;
  --color-text-secondary: #A0B4C8;
  --font-heading: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --border-radius: 6px;
}

/* ===== Hero 专题封面 ===== */
.page-home .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
}

.page-home .hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.page-home .hero__grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(108, 142, 178, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 142, 178, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ===== 粒子 ===== */
.page-home .hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.page-home .hero__particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: heroParticleFloat 12s ease-in-out infinite alternate;
}

.page-home .hero__particle--1 {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  box-shadow: 0 0 20px rgba(255, 127, 42, 0.4);
}

.page-home .hero__particle--2 {
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  top: 30%;
  left: 80%;
  animation-delay: -2s;
  box-shadow: 0 0 16px rgba(108, 142, 178, 0.4);
}

.page-home .hero__particle--3 {
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  top: 65%;
  left: 20%;
  animation-delay: -4s;
  opacity: 0.4;
  box-shadow: 0 0 28px rgba(255, 127, 42, 0.3);
}

.page-home .hero__particle--4 {
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  top: 50%;
  left: 90%;
  animation-delay: -6s;
  box-shadow: 0 0 12px rgba(108, 142, 178, 0.5);
}

.page-home .hero__particle--5 {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  top: 80%;
  left: 70%;
  animation-delay: -3s;
  opacity: 0.5;
  box-shadow: 0 0 24px rgba(255, 127, 42, 0.35);
}

.page-home .hero__particle--6 {
  width: 14px;
  height: 14px;
  background: rgba(108, 142, 178, 0.8);
  top: 10%;
  left: 55%;
  animation-delay: -7s;
  box-shadow: 0 0 30px rgba(108, 142, 178, 0.3);
}

@keyframes heroParticleFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(30px, -20px) scale(1.2); opacity: 0.7; }
  50% { transform: translate(-15px, 25px) scale(0.9); opacity: 0.5; }
  75% { transform: translate(20px, -10px) scale(1.1); opacity: 0.8; }
  100% { transform: translate(-10px, 15px) scale(1); opacity: 0.4; }
}

/* ===== Hero 内容 ===== */
.page-home .hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
  padding: 2rem 1.5rem;
  width: 100%;
}

.page-home .hero__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(255, 127, 42, 0.4);
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
  background: rgba(10, 15, 30, 0.5);
}

.page-home .hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-shadow: 0 0 40px rgba(255, 127, 42, 0.25), 0 0 80px rgba(10, 15, 30, 0.6);
  margin: 0 0 0.5rem 0;
  line-height: 1.05;
  transform: skewX(-4deg);
  display: inline-block;
}

.page-home .hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin: 0 0 1.2rem 0;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 127, 42, 0.3);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.page-home .hero__desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

.page-home .hero__index {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-top: 1rem;
}

.page-home .hero__index-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-home .hero__index-link:hover,
.page-home .hero__index-link:focus-visible {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

.page-home .hero__index-arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

.page-home .hero__index-link:hover .hero__index-arrow {
  transform: translateX(4px);
}

.page-home .hero__slash {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--color-bg-light);
  z-index: 4;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
}

/* ===== 通用 section ===== */
.page-home .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.page-home .section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-home .section__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(255, 127, 42, 0.1);
  padding: 0.25rem 0.8rem;
  border-radius: var(--border-radius);
  margin-bottom: 0.8rem;
}

.page-home .section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.6rem 0;
  line-height: 1.1;
}

.page-home .section__sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== 版本更新索引 ===== */
.page-home .version-index {
  background: var(--color-bg-light);
  padding: 4rem 0 5rem 0;
  position: relative;
}

.page-home .version-index::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary), var(--color-primary));
  opacity: 0.6;
}

.page-home .version-list {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-home .version-item {
  display: flex;
  gap: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(10, 15, 30, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .version-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 15, 30, 0.1);
}

.page-home .version-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.7;
  min-width: 2.8rem;
  text-align: right;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}

.page-home .version-content {
  flex: 1;
  min-width: 0;
}

.page-home .version-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.page-home .version-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.page-home .version-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-surface);
  background: linear-gradient(135deg, var(--color-accent), #FF9F5A);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  animation: badgePulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 127, 42, 0.3);
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 127, 42, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 24px rgba(255, 127, 42, 0.5); }
}

.page-home .version-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 0.6rem 0;
}

.page-home .version-details {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-top: 0.3rem;
}

.page-home .version-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-block;
  padding: 0.2rem 0;
  border-bottom: 1px dashed currentColor;
  transition: opacity var(--transition-fast);
}

.page-home .version-details summary:hover,
.page-home .version-details summary:focus-visible {
  opacity: 0.8;
}

.page-home .version-details__body {
  margin-top: 0.8rem;
  padding: 1rem;
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.page-home .version-details__body p {
  flex: 1;
  min-width: 200px;
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.page-home .version-details__img {
  width: 100%;
  max-width: 120px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== 下载快速入口 ===== */
.page-home .download-entry {
  background: var(--color-surface);
  padding: 4rem 0 5rem 0;
}

.page-home .entry-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 0 auto;
}

.page-home .entry-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 15, 30, 0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .entry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10, 15, 30, 0.12);
}

.page-home .entry-card__media {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-home .entry-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.page-home .entry-card:hover .entry-card__img {
  transform: scale(1.04);
}

.page-home .entry-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-home .entry-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem 0;
}

.page-home .entry-card__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 1.2rem 0;
  flex: 1;
}

/* ===== 按钮 ===== */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  align-self: flex-start;
}

.page-home .btn--primary {
  background: var(--color-accent);
  color: var(--color-surface);
  box-shadow: 0 4px 14px rgba(255, 127, 42, 0.3);
}

.page-home .btn--primary:hover,
.page-home .btn--primary:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 127, 42, 0.4);
}

.page-home .btn__arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

.page-home .btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

/* ===== 信任声明 ===== */
.page-home .trust-statement {
  background: var(--color-bg-dark);
  padding: 2.5rem 0;
  border-top: 3px solid var(--color-accent);
}

.page-home .trust-statement__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== 响应式 - 桌面端 ===== */
@media (min-width: 768px) {
  .page-home .hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 100%);
  }

  .page-home .hero__slash {
    height: 80px;
  }

  .page-home .hero__title {
    transform: skewX(-5deg);
  }

  .page-home .hero__index {
    gap: 1.5rem 3rem;
  }

  .page-home .version-index {
    padding: 5rem 0 6rem 0;
  }

  .page-home .version-list {
    gap: 2.5rem;
  }

  .page-home .version-item {
    padding: 2rem 2.5rem;
    gap: 2rem;
  }

  .page-home .version-number {
    font-size: 3.6rem;
    min-width: 3.6rem;
  }

  .page-home .version-title {
    font-size: 1.4rem;
  }

  .page-home .entry-cards {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .entry-card {
    flex-direction: column;
  }

  .page-home .entry-card__media {
    height: 220px;
  }

  .page-home .download-entry {
    padding: 5rem 0 6rem 0;
  }
}

@media (min-width: 1024px) {
  .page-home .hero__content {
    padding: 2rem 3rem;
  }

  .page-home .version-item {
    padding: 2.5rem 3rem;
  }

  .page-home .entry-card__media {
    height: 250px;
  }

  .page-home .entry-card__body {
    padding: 2rem;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .page-home .hero {
    min-height: auto;
    clip-path: none;
    background: var(--color-bg-light);
  }

  .page-home .hero__bg-img,
  .page-home .hero__grid-overlay,
  .page-home .hero__particles,
  .page-home .hero__slash {
    display: none;
  }

  .page-home .version-item:hover {
    transform: none;
  }

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