.page-home {
  background: var(--deep-navy);
  overflow-x: hidden;
}

/* ========== 首屏 Bento 网格 ========== */
.page-home .hero-section {
  padding: 24px 0 0;
}

.page-home .hero-bento {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "setup"
    "categories"
    "download"
    "faq";
  gap: 14px;
}

.page-home .hero-focus {
  grid-area: hero;
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--royal-blue);
  isolation: isolate;
}

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

.page-home .hero-focus-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 27, 42, 0.25) 0%,
    rgba(10, 27, 42, 0.55) 55%,
    rgba(10, 27, 42, 0.92) 100%
  );
}

.page-home .hero-cables {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-home .hero-focus-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-home .hero-eyebrow {
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.page-home .hero-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--soft-white);
  max-width: 620px;
  margin: 0 0 14px;
  text-wrap: balance;
}

.page-home .hero-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(214, 229, 240, 0.92);
  max-width: 560px;
  margin: 0 0 24px;
}

.page-home .hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.page-home .hero-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero-metric-num {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .hero-metric-label {
  font-size: 0.8125rem;
  color: var(--mid-gray);
}

/* 四个路径入口卡片 */
.page-home .hero-gate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(150deg, rgba(22, 50, 79, 0.98), rgba(10, 27, 42, 0.96));
  border: 1px solid rgba(201, 162, 75, 0.32);
  border-radius: var(--radius-m);
  padding: 20px 22px 18px;
  text-decoration: none;
  color: var(--soft-white);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.page-home .hero-gate::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  pointer-events: none;
  transition: left 0.45s ease;
}

.page-home .hero-gate::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 26px solid var(--gold);
  border-left: 26px solid transparent;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.page-home .hero-gate:hover,
.page-home .hero-gate:focus-visible {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.page-home .hero-gate:hover::before,
.page-home .hero-gate:focus-visible::before {
  left: 120%;
}

.page-home .hero-gate:hover::after,
.page-home .hero-gate:focus-visible::after {
  opacity: 1;
}

.page-home .gate-num {
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-home .gate-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--soft-white);
}

.page-home .gate-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mid-gray);
  margin: 0 0 14px;
  flex-grow: 1;
}

.page-home .gate-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bright-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.page-home .hero-gate:hover .gate-link,
.page-home .hero-gate:focus-visible .gate-link {
  color: var(--gold);
}

.page-home .gate-arrow {
  font-style: normal;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.page-home .hero-gate:hover .gate-arrow,
.page-home .hero-gate:focus-visible .gate-arrow {
  transform: translateX(3px);
}

/* ========== 18 项分类导航总览 ========== */
.page-home .cat-section {
  padding-top: 64px;
}

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

.page-home .cat-browser {
  background: rgba(22, 50, 79, 0.5);
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: var(--radius-l);
  padding: 18px;
}

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

.page-home .cat-tag {
  appearance: none;
  border: 1px solid rgba(201, 162, 75, 0.25);
  background: rgba(10, 27, 42, 0.85);
  color: var(--soft-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 4px;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.page-home .cat-tag:hover,
.page-home .cat-tag:focus-visible {
  border-color: var(--bright-cyan);
  outline: none;
}

.page-home .cat-tag.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.page-home .cat-detail {
  margin-top: 16px;
  min-height: 132px;
  background: var(--mist-blue);
  border-radius: var(--radius-m);
  padding: 22px 20px;
}

.page-home .cat-panel h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 6px;
}

.page-home .cat-panel p {
  color: rgba(11, 26, 42, 0.8);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin: 0;
}

.page-home .cat-visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 300px;
  border: 1px solid rgba(201, 162, 75, 0.3);
}

.page-home .cat-visual img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.page-home .cat-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(10, 27, 42, 0.88);
  border: 1px solid var(--gold);
  border-radius: var(--radius-m);
  padding: 12px 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .cat-badge-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .cat-badge-label {
  font-size: 0.875rem;
  color: var(--soft-white);
}

/* ========== 移动端改设置步骤 ========== */
.page-home .setup-section {
  padding-top: 64px;
}

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

.page-home .setup-visual {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(40, 209, 204, 0.3);
  position: relative;
}

.page-home .setup-visual::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(40, 209, 204, 0.08), transparent 45%);
}

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

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

.page-home .setup-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(22, 50, 79, 0.62);
  border: 1px solid rgba(40, 209, 204, 0.18);
  border-radius: var(--radius-m);
  padding: 18px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.page-home .setup-step:hover {
  border-color: rgba(40, 209, 204, 0.5);
  transform: translateX(4px);
}

.page-home .setup-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bright-cyan);
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .setup-step-body h3 {
  font-family: var(--font-title);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--soft-white);
  margin: 0 0 4px;
}

.page-home .setup-step-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mid-gray);
  margin: 0;
}

.page-home .setup-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  background: rgba(22, 50, 79, 0.4);
  border: 1px dashed rgba(201, 162, 75, 0.5);
  border-radius: var(--radius-m);
  padding: 16px 20px;
}

.page-home .note-tag {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.page-home .setup-note p {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(214, 229, 240, 0.9);
  min-width: 240px;
}

/* ========== 测试版下载位与会员权益 ========== */
.page-home .download-section {
  padding-top: 64px;
}

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

.page-home .download-main {
  position: relative;
  background: var(--mist-blue);
  border: 1px solid var(--gold);
  border-radius: var(--radius-l);
  padding: 30px 26px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .download-main::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  border-bottom: 42px solid var(--orange-red);
  border-left: 42px solid transparent;
  opacity: 0.9;
  pointer-events: none;
}

.page-home .download-tag {
  margin-bottom: 12px;
}

.page-home .download-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--ink);
}

.page-home .download-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(11, 26, 42, 0.8);
  margin: 0 0 18px;
}

.page-home .download-env {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.page-home .env-item {
  background: var(--royal-blue);
  color: var(--soft-white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.page-home .download-main .btn {
  margin-bottom: 14px;
}

.page-home .download-main .btn:active {
  transform: scale(0.97);
}

.page-home .download-tip {
  font-size: 0.8125rem;
  color: rgba(11, 26, 42, 0.6);
  margin: 0;
}

.page-home .benefits-stack {
  background: linear-gradient(160deg, var(--royal-blue), var(--deep-navy));
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: var(--radius-l);
  padding: 26px;
}

.page-home .benefits-title {
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--gold);
  margin: 0 0 18px;
}

.page-home .benefit-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .benefit-item {
  display: flex;
  gap: 14px;
  background: rgba(10, 27, 42, 0.5);
  border: 1px solid rgba(40, 209, 204, 0.16);
  border-radius: var(--radius-m);
  padding: 16px;
  transition: border-color 0.3s ease;
}

.page-home .benefit-item:hover {
  border-color: rgba(40, 209, 204, 0.5);
}

.page-home .benefit-num {
  flex-shrink: 0;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--bright-cyan);
  letter-spacing: 0.08em;
}

.page-home .benefit-body strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--soft-white);
  margin-bottom: 4px;
}

.page-home .benefit-body p {
  margin: 0;
  font-size: 0.8438rem;
  line-height: 1.6;
  color: var(--mid-gray);
}

.page-home .benefits-img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid rgba(201, 162, 75, 0.25);
  display: block;
}

/* ========== 常见说明区预览 ========== */
.page-home .faq-preview-section {
  padding-top: 64px;
  padding-bottom: 72px;
}

.page-home .faq-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .faq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--royal-blue);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  text-decoration: none;
  border-top: 3px solid var(--gold);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.06), transparent 55%);
  pointer-events: none;
}

.page-home .faq-card:hover,
.page-home .faq-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.page-home .faq-card-tag {
  margin-bottom: 16px;
}

.page-home .faq-card-num {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.page-home .faq-card--versions .faq-card-num {
  color: var(--bright-cyan);
}

.page-home .faq-card--usage .faq-card-num {
  color: var(--electric-purple);
}

.page-home .faq-card-title {
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--soft-white);
  margin: 0 0 8px;
}

.page-home .faq-card-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mid-gray);
  margin: 0 0 16px;
  flex-grow: 1;
}

.page-home .faq-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bright-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .faq-card:hover .faq-card-link {
  color: var(--gold);
}

.page-home .faq-card-link .gate-arrow {
  transition: transform 0.3s ease;
}

.page-home .faq-card:hover .faq-card-link .gate-arrow {
  transform: translateX(3px);
}

/* ========== 响应式布局 ========== */
@media (min-width: 640px) {
  .page-home .hero-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero hero"
      "setup categories"
      "download faq";
  }

  .page-home .hero-focus-content {
    padding: 44px 40px;
  }

  .page-home .hero-cat-tag-grid,
  .page-home .cat-tag-grid {
    grid-template-columns: repeat(6, 1fr);
  }

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

@media (min-width: 1024px) {
  .page-home .hero-bento {
    grid-template-columns: minmax(240px, 0.85fr) minmax(420px, 2.3fr) minmax(240px, 0.85fr);
    grid-template-rows: repeat(2, 260px);
    grid-template-areas:
      "setup    hero  categories"
      "download hero  faq";
  }

  .page-home .hero-focus,
  .page-home .hero-focus-content {
    min-height: 534px;
  }

  .page-home .hero-focus-content {
    padding: 40px 44px;
  }

  .page-home .cat-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .page-home .cat-visual {
    min-height: 440px;
  }

  .page-home .setup-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .page-home .download-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

@media (min-width: 1360px) {
  .page-home .hero-focus {
    min-height: 560px;
  }

  .page-home .hero-focus-content {
    padding: 52px;
  }
}
