/* ========== 首页：贝博BALLBET中国官方主页 ========== */
.page-home {
  background: var(--c-bg);
  color: var(--c-text);
}

.page-home figure {
  margin: 0;
}

.page-home .corner-frame {
  padding: 0;
}

/* ============================ HERO ============================ */
.page-home .ph-hero {
  position: relative;
  padding: 40px 0 0;
  border-bottom: 3px solid var(--c-acc);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 92, 0, 0.07) 0, transparent 42%),
    linear-gradient(155deg, rgba(11, 27, 43, 0.98) 0%, rgba(8, 19, 33, 0.98) 60%, rgba(26, 44, 62, 0.94) 100%);
}

.page-home .ph-hero::before,
.page-home .ph-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.page-home .ph-hero::before {
  top: 40px;
  right: 8%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, transparent 68%);
  animation: ph-float 9s ease-in-out infinite alternate;
}

.page-home .ph-hero::after {
  bottom: 90px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.06) 0%, transparent 70%);
  animation: ph-float 12s ease-in-out 2s infinite alternate-reverse;
}

.page-home .ph-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.page-home .ph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-silver);
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: ph-fade-up 0.6s ease-out both;
}

.page-home .ph-kicker-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--c-acc);
}

.page-home .ph-hero-main h1 {
  margin: 0 0 20px;
  font-family: var(--f-head);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c-text);
  max-width: 800px;
  animation: ph-fade-up 0.6s ease-out 0.05s both;
}

.page-home .ph-hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-2);
  max-width: 640px;
  margin: 0 0 24px;
  animation: ph-fade-up 0.6s ease-out 0.1s both;
}

.page-home .ph-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: ph-fade-up 0.6s ease-out 0.15s both;
}

.page-home .ph-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  animation: ph-fade-up 0.6s ease-out 0.2s both;
}

.page-home .ph-hero-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  background: rgba(26, 44, 62, 0.6);
  font-size: 12px;
  color: var(--c-silver);
  letter-spacing: 0.06em;
}

/* Hero 面板 */
.page-home .ph-hero-panel {
  position: relative;
  min-height: 250px;
  background: var(--c-card);
  border: 3px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  animation: ph-fade-up 0.8s ease-out 0.1s both;
}

.page-home .ph-hero-img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-home .ph-panel-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 19, 33, 0.88);
  padding: 8px 12px;
  border-left: 3px solid var(--c-acc);
  font-size: 13px;
  color: var(--c-text);
}

.page-home .ph-panel-index {
  color: var(--c-acc);
}

.page-home .ph-panel-note {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

/* Hero 目录索引条 */
.page-home .ph-hero-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--c-border);
}

.page-home .ph-index-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 10px;
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.page-home .ph-index-item:nth-child(odd) {
  border-right: 1px solid var(--c-border);
}

.page-home .ph-index-item:hover {
  background: rgba(255, 92, 0, 0.08);
}

.page-home .ph-index-item:active {
  transform: scale(0.97);
}

.page-home .ph-index-num {
  font-size: 12px;
  color: var(--c-acc);
  font-weight: 500;
}

.page-home .ph-index-text {
  font-size: 14px;
  color: var(--c-silver);
}

/* ============================ 通用 Section ============================ */
.page-home .ph-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--c-border);
}

/* ============================ 入口核心导航 ============================ */
.page-home .ph-navi-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.page-home .ph-navi-card {
  position: relative;
  display: block;
  padding: 24px;
  background: var(--c-card);
  border: 3px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .ph-navi-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-acc);
  box-shadow: 8px 8px 0 rgba(255, 92, 0, 0.2);
}

.page-home .ph-navi-card:active {
  transform: scale(0.98);
}

.page-home .ph-card-index {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--c-acc);
  margin-bottom: 14px;
  border: 1px solid var(--c-border);
  padding: 2px 8px;
}

.page-home .ph-navi-card h3 {
  font-family: var(--f-head);
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}

.page-home .ph-navi-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.page-home .ph-card-arrow {
  display: inline-block;
  margin-top: 10px;
  color: var(--c-acc);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.page-home .ph-navi-card:hover .ph-card-arrow {
  transform: translateX(4px);
}

/* ============================ 版本升级摘要 ============================ */
.page-home .ph-upgrade-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}

.page-home .ph-up-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.page-home .ph-up-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
}

.page-home .ph-up-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--c-acc);
  border-radius: 1px;
}

.page-home .ph-up-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-home .ph-up-device {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text-2);
}

.page-home .ph-up-device.is-on {
  border-color: var(--c-acc);
  color: var(--c-acc);
  background: rgba(255, 92, 0, 0.08);
}

.page-home .ph-up-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.page-home .ph-metric {
  background: var(--c-bg-deep);
  border-left: 3px solid var(--c-acc);
  padding: 12px 14px;
}

.page-home .ph-metric-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-acc);
}

.page-home .ph-metric-label {
  font-size: 12px;
  color: var(--c-text-2);
}

.page-home .ph-up-figure {
  border: 3px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  background: var(--c-card);
}

.page-home .ph-up-figure img,
.page-home .ph-fast-figure img,
.page-home .ph-fast-flow img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .ph-up-figure figcaption,
.page-home .ph-fast-figure figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--c-text-2);
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
}

.page-home .ph-up-figure figcaption::before,
.page-home .ph-fast-figure figcaption::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-acc);
}

/* ============================ 老用户快捷通道 ============================ */
.page-home .ph-fast-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}

.page-home .ph-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .ph-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
}

.page-home .ph-step:last-child {
  border-bottom: none;
}

.page-home .ph-step-num {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-bg-deep);
  background: var(--c-acc);
  border-radius: var(--radius);
}

.page-home .ph-step-copy h3 {
  font-family: var(--f-head);
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--c-text);
}

.page-home .ph-step-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-2);
}

.page-home .ph-fast-figure {
  border: 3px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  background: var(--c-card);
}

.page-home .ph-fast-flow {
  margin-top: 28px;
  border: 3px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  background: var(--c-card);
}

/* ============================ 实时状态看板 ============================ */
.page-home .ph-status-board {
  background: var(--c-surface);
  color: var(--c-bg-deep);
  border: 3px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.page-home .ph-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--c-bg-deep);
  color: var(--c-silver);
  border-bottom: 2px solid var(--c-acc);
  border-radius: var(--radius) var(--radius) 0 0;
}

.page-home .ph-status-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  background: var(--c-acc);
  border-radius: 50%;
  animation: ph-pulse 1.6s ease-in-out infinite alternate;
}

.page-home .ph-status-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-silver);
}

.page-home .ph-status-ver {
  margin-left: auto;
  font-size: 12px;
  color: var(--c-acc);
}

.page-home .ph-status-body {
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .ph-status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid rgba(11, 27, 43, 0.15);
}

.page-home .ph-status-item:last-child {
  border-bottom: none;
}

.page-home .ph-status-key {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.58;
  color: var(--c-bg-deep);
}

.page-home .ph-status-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-bg-deep);
}

/* ============================ 最新动态预览 ============================ */
.page-home .ph-news-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.page-home .ph-news-card {
  background: var(--c-card);
  border-top: 3px solid var(--c-acc);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .ph-news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
}

.page-home .ph-news-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-home .ph-news-card h3 {
  font-family: var(--f-head);
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--c-text);
}

.page-home .ph-news-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.page-home .ph-news-card a {
  color: var(--c-acc);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.page-home .ph-news-card a:hover {
  color: var(--c-cyan);
}

.page-home .ph-news-more-wrap {
  margin-top: 28px;
  text-align: center;
}

/* ============================ 动画 ============================ */
@keyframes ph-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(24px, -18px, 0);
  }
}

@keyframes ph-pulse {
  0% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(255, 92, 0, 0.45);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(255, 92, 0, 0);
  }
}

@keyframes ph-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================ 媒体查询 ============================ */
@media (min-width: 768px) {
  .page-home .ph-section {
    padding: 64px 0;
  }

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

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

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

  .page-home .ph-index-item:nth-child(odd) {
    border-right: none;
  }

  .page-home .ph-index-item:not(:last-child) {
    border-right: 1px solid var(--c-border);
  }

  .page-home .ph-hero-img {
    height: 340px;
  }

  .page-home .ph-status-body {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .ph-status-item {
    border-right: 1px solid rgba(11, 27, 43, 0.12);
    border-bottom: none;
  }

  .page-home .ph-status-item:nth-child(even) {
    border-right: none;
  }

  .page-home .ph-status-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(11, 27, 43, 0.12);
  }

  .page-home .ph-status-item:last-child {
    border-right: none;
  }
}

@media (min-width: 1024px) {
  .page-home .ph-hero {
    padding: 72px 0 0;
  }

  .page-home .ph-section {
    padding: 80px 0;
  }

  .page-home .ph-hero-inner {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .ph-hero-img {
    height: 420px;
  }

  .page-home .ph-upgrade-grid {
    grid-template-columns: 6fr 6fr;
    gap: 48px;
  }

  .page-home .ph-fast-grid {
    grid-template-columns: 6fr 6fr;
    gap: 48px;
  }

  .page-home .ph-fast-flow {
    margin-top: 40px;
  }

  .page-home .ph-news-card {
    padding: 28px 24px;
  }
}

/* ============================ 无障碍 ============================ */
@media (prefers-reduced-motion: reduce) {
  .page-home .ph-kicker,
  .page-home .ph-hero-main h1,
  .page-home .ph-hero-lead,
  .page-home .ph-hero-actions,
  .page-home .ph-hero-tags,
  .page-home .ph-hero-panel,
  .page-home .ph-hero::before,
  .page-home .ph-hero::after,
  .page-home .ph-status-dot {
    animation: none;
  }
}
