/* ==========================================================
   page-home · 贝博平台中文官方站 首页
   作用域：.page-home
   ========================================================== */

.page-home {
  --ph-radius: 22px;
  --ph-panel: rgba(14, 44, 74, 0.62);
  --ph-hair: rgba(53, 230, 210, 0.16);
  --ph-hair-strong: rgba(53, 230, 210, 0.42);
  position: relative;
  display: block;
  overflow-x: hidden;
  background: var(--abyss-900);
  color: var(--mist-200);
}

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

.page-home .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--paper-100);
}

.page-home h2 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--paper-100);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  margin: 0.5rem 0 0;
}

/* ---------------------------------------------------------
   01 · 框景首屏
   --------------------------------------------------------- */

.page-home .hero-frame {
  position: relative;
  padding: calc(var(--header-total, 114px) + 1.75rem) 0 3rem;
  background:
    radial-gradient(118% 86% at 84% 2%, rgba(20, 69, 107, 0.92) 0%, rgba(6, 26, 46, 0) 62%),
    linear-gradient(180deg, var(--abyss-900) 0%, var(--deep-800) 100%);
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(53, 230, 210, 0.07) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to bottom, rgba(53, 230, 210, 0.05) 0 1px, transparent 1px 88px);
}

.page-home .hero-frame > .wrap {
  position: relative;
  z-index: 1;
}

.page-home .hero-ruler {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(to right, rgba(53, 230, 210, 0.45) 0 1px, transparent 1px 44px);
}

.page-home .hero-ruler--top { top: 0; }
.page-home .hero-ruler--bottom { bottom: 0; }

.page-home .hero-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 1;
  border: 1.5px solid var(--ph-hair-strong);
  pointer-events: none;
}

.page-home .hero-corner--tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.page-home .hero-corner--tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.page-home .hero-corner--bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.page-home .hero-corner--br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

.page-home .hero-crumbs {
  margin-bottom: 1.75rem;
}

.page-home .hero-grid {
  row-gap: 2.25rem;
  align-items: start;
}

.page-home .hero-copy,
.page-home .hero-visual {
  grid-column: 1 / -1;
  min-width: 0;
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 8vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper-100);
  margin: 0.65rem 0 1rem;
  max-width: 13em;
}

.page-home .hero-lede {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--mist-200);
  max-width: 36em;
  margin: 0 0 1.75rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home .hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
}

.page-home .hero-chips .meta-chip {
  border-color: var(--ph-hair);
  color: var(--mist-200);
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  padding-bottom: 3.25rem;
}

.page-home .hero-shot {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(6, 26, 46, 0.7);
}

.page-home .hero-shot img {
  width: 100%;
  object-fit: cover;
}

.page-home .hero-visual .media-caption {
  margin-top: 0.75rem;
}

.page-home .hero-float {
  position: absolute;
  right: 0.75rem;
  bottom: 0;
  width: min(238px, 74%);
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--ph-hair);
  box-shadow: var(--shadow-float);
}

.page-home .hero-float .card-index {
  color: var(--cyan-400);
}

.page-home .hero-float-label {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.page-home .hero-float-value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--coral-500);
  letter-spacing: 0.01em;
}

.page-home .hero-float-note {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--mist-200);
  opacity: 0.8;
}

/* 分类标签磁贴 */

.page-home .hero-tiles {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ph-hair);
}

.page-home .hero-tabshead {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.page-home .hero-tabshead .eyebrow {
  color: var(--slate-500);
}

.page-home .hero-tabrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .hero-panel {
  animation: ph-fade 0.24s var(--ease) both;
}

.page-home .hero-panel .pill-row {
  gap: 0.6rem;
}

.page-home .pill-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--cyan-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-home .pill {
  min-height: 46px;
  border: 2px solid var(--ph-hair);
  background: rgba(14, 44, 74, 0.5);
  color: var(--paper-100);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.page-home .pill:hover,
.page-home .pill:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan-400);
  background: rgba(20, 69, 107, 0.7);
}

.page-home .pill:hover .pill-icon,
.page-home .pill:focus-visible .pill-icon {
  stroke: var(--coral-500);
}

@keyframes ph-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------------------------------------------------------
   02 · 换新设备四步
   --------------------------------------------------------- */

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.page-home .swap-grid {
  row-gap: 2.5rem;
  align-items: start;
}

.page-home .swap-steps,
.page-home .swap-visual {
  grid-column: 1 / -1;
  min-width: 0;
}

.page-home .swap-lede {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mist-200);
  max-width: 36em;
}

.page-home .step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.page-home .step details {
  border: 1px solid var(--ph-hair);
  border-radius: var(--r-md);
  background: var(--ph-panel);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.page-home .step details[open] {
  border-color: var(--ph-hair-strong);
  background: rgba(20, 69, 107, 0.5);
}

.page-home .step summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  color: var(--paper-100);
  font-weight: 600;
  font-size: 1rem;
}

.page-home .step summary::-webkit-details-marker { display: none; }

.page-home .step summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--cyan-400);
  transition: transform 0.2s var(--ease);
}

.page-home .step details[open] summary::after {
  content: "−";
}

.page-home .step-no {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--coral-500);
}

.page-home .step-title {
  min-width: 0;
}

.page-home .step details p {
  margin: 0;
  padding: 0 1.1rem 1.1rem 2.85rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--mist-200);
}

.page-home .swap-stat {
  margin: 1.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.page-home .swap-stat .num {
  color: var(--cyan-400);
}

.page-home .swap-visual {
  margin: 0;
}

.page-home .swap-visual img {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--ph-hair);
  background: rgba(6, 26, 46, 0.6);
}

.page-home .swap-visual .media-caption {
  margin-top: 0.7rem;
}

/* ---------------------------------------------------------
   03 · 2026 版亮点带
   --------------------------------------------------------- */

.page-home .band-inner {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--ph-hair);
  background: linear-gradient(135deg, var(--deep-800) 0%, var(--tide-700) 100%);
  padding: 1.5rem 1.25rem 1.75rem;
  overflow: hidden;
}

.page-home .band-inner::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 230, 210, 0.22) 0%, rgba(53, 230, 210, 0) 70%);
  pointer-events: none;
}

.page-home .band-version {
  position: relative;
  margin: 0 0 1.35rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan-400);
}

.page-home .band-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--ph-hair);
  border-radius: var(--r-md);
  overflow: hidden;
}

.page-home .band-item {
  background: rgba(6, 26, 46, 0.55);
  padding: 1rem 1.1rem;
}

.page-home .band-num {
  margin: 0 0 0.3rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--paper-100);
  letter-spacing: 0.01em;
}

.page-home .band-label {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mist-200);
}

.page-home .band-note {
  position: relative;
  margin: 1.35rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--coral-500);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--mist-200);
  max-width: 40em;
}

/* ---------------------------------------------------------
   04 · 订阅与记录速查
   --------------------------------------------------------- */

.page-home .records-grid {
  row-gap: 2.25rem;
  align-items: center;
}

.page-home .records-copy,
.page-home .records-visual {
  grid-column: 1 / -1;
  min-width: 0;
}

.page-home .records-lede {
  margin: 1rem 0 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mist-200);
  max-width: 36em;
}

.page-home .cycle-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-home .cycle-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--r-md);
  background: rgba(20, 69, 107, 0.42);
  border-left: 3px solid var(--cyan-400);
}

.page-home .cycle-key {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--cyan-400);
  flex: none;
}

.page-home .cycle-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mist-200);
}

.page-home .records-visual {
  position: relative;
  margin: 0;
}

.page-home .records-visual img {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--ph-hair);
  background: rgba(6, 26, 46, 0.6);
}

.page-home .records-visual .media-caption {
  margin-top: 0.7rem;
}

.page-home .gauge {
  position: absolute;
  top: -18px;
  right: 14px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  background: conic-gradient(var(--cyan-400) 0deg 246deg, rgba(53, 230, 210, 0.16) 246deg 360deg);
  box-shadow: var(--shadow-float);
}

.page-home .gauge::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--abyss-900);
}

.page-home .gauge-value,
.page-home .gauge-label {
  position: relative;
  z-index: 1;
}

.page-home .gauge-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--paper-100);
}

.page-home .gauge-label {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}

/* ---------------------------------------------------------
   05 · 新访客起步三句（大留白呼吸区）
   --------------------------------------------------------- */

.page-home .start-here {
  background: linear-gradient(180deg, var(--deep-800) 0%, var(--abyss-900) 100%);
}

.page-home .start-wrap {
  max-width: 76rem;
}

.page-home .start-title {
  margin-bottom: 2.5rem;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
}

.page-home .start-lines {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  counter-reset: none;
}

.page-home .start-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mist-200);
  max-width: 42em;
}

.page-home .start-no {
  padding-top: 0.15rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--coral-500);
}

.page-home .start-line .mono {
  color: var(--cyan-400);
}

/* ---------------------------------------------------------
   06 · 服务覆盖与信任条
   --------------------------------------------------------- */

.page-home .coverage {
  background: var(--abyss-900);
}

.page-home .coverage-grid {
  row-gap: 2rem;
  align-items: start;
}

.page-home .coverage-map,
.page-home .coverage-facts {
  grid-column: 1 / -1;
  min-width: 0;
}

.page-home .coverage-map {
  margin: 0;
}

.page-home .coverage-map img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--ph-hair);
  background: rgba(14, 44, 74, 0.5);
}

.page-home .coverage-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ph-hair);
}

.page-home .coverage-fact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--ph-hair);
}

.page-home .coverage-num {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cyan-400);
  letter-spacing: 0.01em;
}

.page-home .coverage-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--mist-200);
}

.page-home .coverage-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin: 2rem 0 0;
  padding: 0.95rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--ph-hair);
  background: rgba(14, 44, 74, 0.55);
  font-size: 0.875rem;
  color: var(--mist-200);
}

.page-home .coverage-strip .mono {
  color: var(--paper-100);
}

.page-home .coverage-sep {
  width: 1px;
  height: 14px;
  background: var(--ph-hair-strong);
  flex: none;
}

/* ---------------------------------------------------------
   07 · 延伸入口
   --------------------------------------------------------- */

.page-home .extend {
  background: var(--abyss-900);
}

.page-home .extend-title {
  margin: 0 0 1.15rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.page-home .extend-row {
  gap: 0.6rem;
}

/* ---------------------------------------------------------
   响应式
   --------------------------------------------------------- */

@media (min-width: 640px) {
  .page-home .hero-tabshead {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .band-inner {
    padding: 2rem 1.75rem 2.25rem;
  }

  .page-home .band-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .coverage-fact {
    grid-template-columns: minmax(7.5rem, auto) 1fr;
    gap: 1.25rem;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-home .hero-copy { grid-column: span 12; }
  .page-home .hero-visual { grid-column: span 12; }
  .page-home .swap-steps { grid-column: span 12; }
  .page-home .swap-visual { grid-column: span 12; }
}

@media (min-width: 1024px) {
  .page-home .hero-frame {
    padding: calc(var(--header-total, 114px) + 2.5rem) 0 4rem;
  }

  .page-home .hero-copy { grid-column: 1 / span 13; }
  .page-home .hero-visual { grid-column: 15 / span 10; margin-top: 2.5rem; }

  .page-home .swap-steps { grid-column: 1 / span 13; }
  .page-home .swap-visual { grid-column: 15 / span 10; position: sticky; top: calc(var(--header-total, 114px) + 2rem); }

  .page-home .records-copy { grid-column: 1 / span 12; }
  .page-home .records-visual { grid-column: 14 / span 11; }

  .page-home .coverage-map { grid-column: 1 / span 11; }
  .page-home .coverage-facts { grid-column: 13 / span 12; }

  .page-home .band-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .band-item {
    padding: 1.15rem 1.2rem;
  }
}

@media (min-width: 1280px) {
  .page-home .hero-title {
    font-size: clamp(2.6rem, 4.2vw, 4rem);
  }

  .page-home .start-lines {
    gap: 1.5rem;
  }
}

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

  .page-home .pill:hover,
  .page-home .pill:focus-visible {
    transform: none;
  }
}
