/* ===== BVTY 首页专属样式 ===== */
.page-home {
  --home-card-rise: translateY(-6px);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* --- 首屏拼贴 --- */
.page-home .home-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 62%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 64px 0 52px;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -16%;
  right: -8%;
  width: 430px;
  height: 430px;
  background: var(--color-accent);
  opacity: 0.1;
  transform: rotate(18deg);
  border-radius: 40px;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  bottom: -6%;
  left: -4%;
  width: 320px;
  height: 320px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transform: rotate(-14deg);
  border-radius: 50%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .home-hero::before {
    animation: home-slant-flow 14s ease-in-out infinite alternate;
  }
}

@keyframes home-slant-flow {
  0% {
    transform: rotate(18deg) translateX(0);
  }
  100% {
    transform: rotate(18deg) translateX(48px);
  }
}

.page-home .home-hero-grid {
  position: relative;
  display: grid;
  gap: 34px;
  align-items: center;
}

.page-home .hero-kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(255, 107, 53, 0.14);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 20px;
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 620px;
}

.page-home .hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 0 0 28px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.page-home .hero-actions .btn-outline:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
}

.page-home .hero-visual {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero-image {
  flex: 1 0 100%;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.page-home .hero-stat {
  width: calc(50% - 6px);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .hero-stat-members {
  top: 14px;
  left: 12px;
}

.page-home .hero-stat-matches {
  bottom: 14px;
  right: 12px;
}

.page-home .stat-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.page-home .stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.page-home .hero-trust-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.page-home .hero-trust-item {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 88px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

/* --- 核心赛事数据全景 --- */
.page-home .home-stats-panel {
  padding: 64px 0;
}

.page-home .home-stats-grid {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.page-home .stats-copy p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

.page-home .stats-feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.page-home .stats-feature-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
  font-size: 15px;
  color: var(--color-text);
}

.page-home .stats-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.page-home .stats-grid-nums {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.page-home .stats-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .stats-card:hover {
  transform: var(--home-card-rise);
  box-shadow: var(--shadow-md);
}

.page-home .stats-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.page-home .stats-cap {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- 会员登录与状态核验 --- */
.page-home .home-login-panel {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  padding: 64px 0;
  overflow: hidden;
}

.page-home .home-login-panel::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 280px;
  height: 280px;
  background: var(--color-accent);
  opacity: 0.08;
  transform: rotate(26deg);
  pointer-events: none;
}

.page-home .home-login-grid {
  position: relative;
  display: grid;
  gap: 32px;
}

.page-home .login-title {
  color: #fff;
}

.page-home .home-login-panel .section-index {
  color: var(--color-accent-light);
}

.page-home .login-desc {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  max-width: 560px;
  margin: 0;
}

.page-home .login-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  margin-top: 20px;
}

.page-home .login-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: 0 0 auto;
}

.page-home .login-status-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.page-home .login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-login-panel .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.page-home .home-login-panel .btn-outline:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
}

.page-home .login-note-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  align-self: center;
}

.page-home .login-note-card h3 {
  font-size: 20px;
  color: var(--color-accent-light);
  margin: 0 0 12px;
}

.page-home .login-note-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}

.page-home .login-note-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--color-accent-light);
  text-decoration: none;
  font-weight: 600;
}

.page-home .login-note-link:hover {
  color: #fff;
}

/* --- 登录说明模态框（CSS :target 渐进增强） --- */
.page-home .login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 19, 43, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-home .login-modal:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-home .login-modal-box {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px);
  transition: transform 0.25s ease;
}

.page-home .login-modal:target .login-modal-box {
  transform: translateY(0);
}

.page-home .login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 50%;
}

.page-home .login-modal-close:hover {
  color: var(--color-accent);
  background: rgba(255, 107, 53, 0.12);
}

.page-home .login-modal-box h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--color-text);
}

.page-home .login-modal-box p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- 全终端适配保障 --- */
.page-home .home-devices-panel {
  padding: 64px 0;
}

.page-home .home-device-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.page-home .device-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .device-card:hover {
  transform: var(--home-card-rise);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.page-home .device-label {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-bottom: 14px;
}

.page-home .device-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--color-text);
}

.page-home .device-card p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.page-home .device-card a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.page-home .device-visual-wrap {
  margin-top: 28px;
}

.page-home .device-visual {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* --- 实时数据更新机制 --- */
.page-home .home-update-panel {
  padding: 64px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

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

.page-home .update-lead {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 16px;
  margin: 0 0 16px;
}

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

.page-home .update-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.7;
  font-size: 15px;
  color: var(--color-text);
}

.page-home .update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .update-visual-wrap {
  margin-top: 4px;
}

.page-home .update-visual {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-home .update-timeline-col {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* --- 平台最新动态 --- */
.page-home .home-news-panel {
  padding: 64px 0;
}

.page-home .home-news-grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.page-home .news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-home .news-card:hover {
  transform: var(--home-card-rise);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.page-home .news-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 16px;
}

.page-home .news-card h3 {
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--color-text);
}

.page-home .news-card > p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  margin: 0 0 16px;
}

.page-home .news-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.page-home .news-card:hover .news-extra,
.page-home .news-card:focus-within .news-extra {
  max-height: 96px;
  opacity: 1;
  margin: 0 0 14px;
}

.page-home .news-card a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.page-home .home-news-panel .section-more {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

/* --- 底部氛围 --- */
.page-home .home-ambient {
  padding: 64px 0 80px;
}

.page-home .home-ambient-inner {
  position: relative;
}

.page-home .ambient-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-home .ambient-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.72), rgba(6, 19, 43, 0.48));
  border-radius: var(--radius-lg);
}

.page-home .ambient-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.page-home .ambient-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  max-width: 480px;
}

.page-home .ambient-overlay-content .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.page-home .ambient-overlay-content .btn-outline:hover {
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
}

/* --- 桌面端与平板适配 --- */
@media (min-width: 768px) {
  .page-home .home-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .page-home .hero-visual {
    display: block;
  }

  .page-home .hero-stat {
    position: absolute;
    width: auto;
  }

  .page-home .hero-stat-members {
    top: 22px;
    left: -20px;
  }

  .page-home .hero-stat-matches {
    bottom: 22px;
    right: -20px;
  }

  .page-home .hero-trust-row {
    margin-top: 56px;
  }

  .page-home .hero-trust-item {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-home .home-stats-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .page-home .home-login-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .page-home .home-device-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .home-update-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

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

  .page-home .home-ambient {
    padding-top: 72px;
  }

  .page-home .ambient-title {
    font-size: 34px;
  }
}

@media (min-width: 1024px) {
  .page-home .stats-grid-nums {
    grid-template-columns: repeat(3, 1fr);
  }
}
