.page-home {
  --home-shell-pad: 56px 0;
  --home-shell-pad-lg: 88px 0;
  position: relative;
  overflow: hidden;
  background: var(--c-deep);
  color: var(--c-fog);
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-home::after {
  content: "";
  position: absolute;
  top: 120px;
  right: -180px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(123, 93, 255, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

.page-home .btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.page-home .section-head-center {
  text-align: center;
}

.page-home .section-head-center .section-kicker {
  margin-inline: auto;
}

/* 首屏海报层 */
.page-home .home-hero {
  padding: 28px 0 0;
}

.page-home .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}

.page-home .home-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.page-home .title-brand {
  display: block;
  font-size: clamp(26px, 6vw, 52px);
  color: var(--c-silver);
}

.page-home .title-channel {
  display: block;
  font-size: clamp(48px, 10vw, 112px);
  line-height: 1.02;
  background: linear-gradient(135deg, var(--c-orange) 10%, var(--c-amber) 55%, var(--c-cyan) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-home .hero-lead {
  position: relative;
  max-width: 660px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--c-orange);
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-fog);
}

.page-home .hero-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 26px 0 32px;
}

.page-home .hero-index-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(5, 10, 24, 0.6);
  color: var(--c-fog);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.page-home .hero-index-link:hover {
  border-color: var(--c-orange);
  background: rgba(255, 107, 44, 0.12);
  transform: translateY(-2px);
}

.page-home .index-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-orange);
}

.page-home .hero-visual {
  position: relative;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 10, 24, 0.42), transparent 45%, transparent 68%, rgba(11, 30, 58, 0.32));
  pointer-events: none;
}

.page-home .hero-visual::before {
  content: "";
  position: absolute;
  bottom: 18px;
  left: -60px;
  width: 220px;
  height: 12px;
  background: linear-gradient(90deg, var(--c-orange), var(--c-amber), var(--c-cyan));
  transform: rotate(-6deg);
  z-index: 2;
  pointer-events: none;
}

.page-home .hero-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  background: var(--c-ink);
  color: var(--c-cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
}

/* 平台指标 */
.page-home .home-stats {
  padding: 48px 0 24px;
}

.page-home .stats-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .stat-cell {
  display: grid;
  gap: 6px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(5, 10, 24, 0.5));
  border: 1px solid rgba(0, 229, 255, 0.16);
}

.page-home .stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: var(--c-cyan);
}

.page-home .stat-label {
  font-size: 13px;
  color: var(--c-silver);
}

/* 版本形态切换 */
.page-home .version-switch {
  padding: var(--home-shell-pad);
}

.page-home .version-switch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 48px;
  width: 140px;
  height: 6px;
  background: linear-gradient(90deg, var(--c-orange), transparent);
  pointer-events: none;
}

.page-home .compare-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.page-home .compare-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: rgba(5, 10, 24, 0.72);
  border: 1px solid rgba(154, 167, 184, 0.18);
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
}

.page-home .compare-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 30px solid var(--c-deep);
  border-left: 30px solid transparent;
  border-top-right-radius: var(--radius-lg);
  pointer-events: none;
}

.page-home .compare-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: rgba(255, 107, 44, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.page-home .compare-card-new {
  border-left: 4px solid var(--c-orange);
}

.page-home .compare-card-stable {
  border-left: 4px solid var(--c-cyan);
}

.page-home .compare-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .compare-head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 24px;
}

.page-home .compare-flag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--c-orange);
  color: var(--c-ink);
}

.page-home .flag-stable {
  background: var(--c-cyan);
}

.page-home .compare-desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-silver);
}

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

.page-home .compare-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--c-fog);
}

.page-home .compare-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--c-cyan);
}

.page-home .compare-card-stable .compare-list li::before {
  color: var(--c-amber);
}

.page-home .compare-divider {
  display: none;
}

.page-home .stable-visual {
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(154, 167, 184, 0.2);
  border-radius: var(--radius-lg);
  background: var(--c-ink);
}

.page-home .stable-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .stable-visual figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-silver);
}

/* 苹果端栏目检索 */
.page-home .ios-channel {
  padding: var(--home-shell-pad);
}

.page-home .ios-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .ios-visual {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.page-home .phone-frame {
  position: relative;
  width: 260px;
  aspect-ratio: 1 / 2;
  padding: 14px 8px;
  border-radius: 42px;
  background: var(--c-ink);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow:
    0 0 0 4px rgba(5, 10, 24, 0.8),
    0 0 60px rgba(0, 229, 255, 0.2),
    0 24px 48px rgba(0, 0, 0, 0.5);
}

.page-home .phone-speaker {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.page-home .phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

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

.page-home .channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(5, 10, 24, 0.55);
  border: 1px solid rgba(154, 167, 184, 0.16);
  border-radius: var(--radius-md);
}

.page-home .channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 12px rgba(255, 107, 44, 0.7);
}

.page-home .channel-item:nth-child(2) .channel-dot {
  background: var(--c-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

.page-home .channel-item:nth-child(3) .channel-dot {
  background: var(--c-amber);
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.7);
}

.page-home .channel-item:nth-child(4) .channel-dot {
  background: var(--c-violet);
  box-shadow: 0 0 12px rgba(123, 93, 255, 0.7);
}

.page-home .channel-name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.page-home .channel-count {
  font-size: 13px;
  color: var(--c-silver);
}

/* 站内下载使用指南 */
.page-home .download-guide {
  padding: var(--home-shell-pad);
  background: rgba(5, 10, 24, 0.5);
  border-block: 1px solid rgba(0, 229, 255, 0.12);
}

.page-home .steps-row {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.page-home .step-item {
  position: relative;
  padding: 28px 20px 22px;
  background: linear-gradient(180deg, rgba(11, 30, 58, 0.9), rgba(5, 10, 24, 0.85));
  border: 1px solid rgba(154, 167, 184, 0.18);
  border-radius: var(--radius-lg);
}

.page-home .step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-ink);
  background: linear-gradient(135deg, var(--c-orange), var(--c-amber));
  transform: rotate(-6deg);
}

.page-home .step-item h3 {
  margin: 14px 0 6px;
  font-family: var(--font-head);
  font-size: 20px;
}

.page-home .step-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-silver);
}

.page-home .guide-visual {
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(154, 167, 184, 0.18);
  border-radius: var(--radius-lg);
  background: var(--c-ink);
}

.page-home .guide-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .guide-visual figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-silver);
}

.page-home .guide-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* 最近更新与订阅提醒 */
.page-home .update-subscribe {
  padding: var(--home-shell-pad);
}

.page-home .update-grid {
  display: grid;
  gap: 36px;
}

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

.page-home .log-item {
  position: relative;
  padding: 18px 16px 18px 20px;
  background: rgba(5, 10, 24, 0.6);
  border-left: 3px solid var(--c-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-home .log-item:nth-child(2) {
  border-left-color: var(--c-cyan);
}

.page-home .log-item:nth-child(3) {
  border-left-color: var(--c-violet);
}

.page-home .log-version {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-orange);
}

.page-home .log-item:nth-child(2) .log-version {
  color: var(--c-cyan);
}

.page-home .log-item:nth-child(3) .log-version {
  color: var(--c-violet);
}

.page-home .log-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-silver);
}

.page-home .subscribe-card {
  position: relative;
  padding: 32px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 44, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 107, 44, 0.16), rgba(11, 30, 58, 0.8) 46%);
  box-shadow: var(--shadow-card);
}

.page-home .subscribe-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 179, 0, 0.18);
  filter: blur(24px);
  pointer-events: none;
}

.page-home .subscribe-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--c-orange);
  color: var(--c-ink);
}

.page-home .subscribe-card h3 {
  margin: 18px 0 8px;
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.2;
}

.page-home .subscribe-card > p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-silver);
}

.page-home .subscribe-meta {
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

.page-home .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(154, 167, 184, 0.25);
}

.page-home .meta-row:last-child {
  border-bottom: none;
}

.page-home .meta-row dt {
  font-size: 14px;
  color: var(--c-silver);
}

.page-home .meta-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-fog);
}

/* 信任与安全声明 */
.page-home .home-trust {
  padding: 48px 0 88px;
  text-align: center;
}

.page-home .trust-text {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-silver);
}

.page-home .trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* 桌面端增强 */
@media (min-width: 768px) {
  .page-home .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .compare-grid {
    grid-template-columns: 1fr 72px 1fr;
    align-items: center;
  }

  .page-home .compare-divider {
    display: grid;
    gap: 8px;
    justify-items: center;
  }

  .page-home .divider-line {
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, var(--c-orange), var(--c-cyan));
  }

  .page-home .divider-arrow {
    font-size: 24px;
    color: var(--c-amber);
  }

  .page-home .steps-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .step-item::before {
    content: "";
    position: absolute;
    top: 44px;
    right: -24px;
    width: 48px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--c-cyan) 0 6px, transparent 6px 12px);
    z-index: 1;
  }

  .page-home .step-item:last-child::before {
    display: none;
  }

  .page-home .update-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home {
    --home-shell-pad: var(--home-shell-pad-lg);
  }

  .page-home .home-hero {
    padding-top: 44px;
  }

  .page-home .hero-index {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .hero-visual {
    margin-top: 40px;
  }

  .page-home .ios-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .page-home .ios-visual {
    order: 1;
  }

  .page-home .ios-copy {
    order: 2;
  }

  .page-home .compare-card {
    padding: 34px 28px;
  }
}
