/* ===== 首页 page-home 专属样式 ===== */
.page-home {
  --home-bg: var(--color-secondary);
  --home-card-radius: var(--radius-lg);
  --home-hero-gap: 1rem;
  --home-accent-glow: rgba(0, 180, 216, 0.25);
  --home-orange-glow: rgba(255, 102, 0, 0.3);
  background-color: var(--home-bg);
  color: var(--color-text-primary);
}

/* ---- 首屏Bento网格 ---- */
.page-home .hero-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-hero-gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.page-home .bento-item {
  border-radius: var(--home-card-radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 左侧大模块 */
.page-home .hero-main {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-variant) 60%, #CC5500 100%);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 400px;
  position: relative;
  isolation: isolate;
}

/* 斜线光效伪元素 */
.page-home .hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.08) 35%, transparent 45%);
  pointer-events: none;
  z-index: 0;
  animation: pageHomeShimmer 5s ease-in-out infinite;
}

@keyframes pageHomeShimmer {
  0%, 100% { transform: translateX(-20%) skewX(-12deg); }
  50% { transform: translateX(20%) skewX(-12deg); }
}

.page-home .hero-main-bg {
  display: none;
}

.page-home .context-tag {
  align-self: flex-start;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
  z-index: 1;
}

.page-home .hero-main h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.page-home .hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  z-index: 1;
  max-width: 32rem;
  font-weight: 400;
}

.page-home .hero-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

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

.page-home .btn-large {
  align-self: flex-start;
  padding: 0.85rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-capsule);
  background: var(--color-secondary);
  color: var(--color-text-primary);
  border: 2px solid rgba(255,255,255,0.25);
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 1;
}

.page-home .btn-large:hover {
  background: #2a2a4a;
  transform: scale(1.03);
}

/* 右侧上模块 */
.page-home .hero-side-top {
  background: var(--color-bg-dark);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .side-top-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-home .update-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  padding: 0.25rem;
}

.page-home .hero-side-top h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
}

.page-home .update-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .update-highlights li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.page-home .update-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.page-home .btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-capsule);
  font-weight: 600;
  transition: background var(--transition-fast), color var(--transition-fast);
  align-self: flex-start;
}

.page-home .btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* 右侧下模块 */
.page-home .hero-side-bottom {
  background: linear-gradient(145deg, #1e1e38, var(--color-secondary));
  border: 1.5px solid rgba(255,102,0,0.35);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.page-home .hero-side-bottom h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
}

.page-home .side-bottom-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.page-home .hero-side-bottom .btn-primary {
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-capsule);
  padding: 0.65rem 2rem;
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-home .hero-side-bottom .btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px var(--home-orange-glow);
}

.page-home .side-bottom-note {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin: 0;
  opacity: 0.8;
}

/* ---- V4.7 更新日志区 ---- */
.page-home .updates-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.page-home .section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 1.5rem 0;
  position: relative;
  display: inline-block;
}

.page-home .section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
}

.page-home .updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .update-card {
  background: #1e1e38;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .update-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.page-home .card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.page-home .update-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: var(--color-text-primary);
}

.page-home .update-card p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.page-home .updates-footer {
  margin-top: 2rem;
  text-align: center;
}

/* ---- 实时战报 & 赛事日历 ---- */
.page-home .live-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

.page-home .live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.page-home .live-card {
  background: #1e1e38;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-home .live-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.4);
}

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

.page-home .live-content {
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.page-home .live-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-primary);
}

.page-home .live-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

.page-home .btn-accent {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-capsule);
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  align-self: flex-start;
}

.page-home .btn-accent:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px var(--home-accent-glow);
}

/* details 展开交互 */
.page-home .live-details {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.5rem;
}

.page-home .live-summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

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

.page-home .live-summary::before {
  content: '▶ ';
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.page-home .live-details[open] .live-summary::before {
  transform: rotate(90deg);
}

.page-home .live-summary:hover {
  color: #33d4f0;
}

.page-home .live-detail-body {
  padding: 0.75rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-home .live-detail-body p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* 信任声明 */
.page-home .trust-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
}

.page-home .trust-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  opacity: 0.7;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
}

/* ---- data-reveal 显现动效 ---- */
.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.page-home [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 为首屏模块增加错峰延迟 */
.page-home .hero-side-top {
  transition-delay: 0.1s;
}

.page-home .hero-side-bottom {
  transition-delay: 0.2s;
}

/* 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-home .hero-main::before {
    animation: none;
  }
  .page-home .bento-item:hover {
    transform: none;
  }
  .page-home .update-card:hover {
    transform: none;
  }
  .page-home .live-card:hover {
    transform: none;
  }
  .page-home .btn-large:hover {
    transform: none;
  }
  .page-home .hero-side-bottom .btn-primary:hover {
    transform: none;
  }
}

/* ---- 桌面端响应式 (≥768px) ---- */
@media (min-width: 768px) {
  .page-home .hero-bento {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    padding: 0 2rem;
  }

  .page-home .hero-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 2.5rem 2rem;
    min-height: 500px;
    justify-content: center;
  }

  .page-home .hero-main h1 {
    font-size: 2.6rem;
  }

  .page-home .hero-side-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .page-home .hero-side-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .page-home .updates-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .live-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .live-card {
    flex-direction: column;
  }

  .page-home .section-title {
    font-size: 2rem;
  }

  .page-home .trust-section {
    padding: 2rem 2rem 3rem;
  }
}

/* ---- 大桌面端 (≥1024px) ---- */
@media (min-width: 1024px) {
  .page-home .hero-bento {
    padding: 0 2rem;
    gap: 1.2rem;
  }

  .page-home .hero-main {
    padding: 3rem 2.5rem;
  }

  .page-home .hero-main h1 {
    font-size: 3rem;
  }

  .page-home .updates-section {
    padding: 3.5rem 2rem;
  }

  .page-home .live-section {
    padding: 0 2rem 3rem;
  }

  .page-home .updates-grid {
    gap: 1.2rem;
  }

  .page-home .live-grid {
    gap: 1.4rem;
  }
}

/* ---- 窄屏安全保护 ---- */
@media (max-width: 374px) {
  .page-home .hero-main h1 {
    font-size: 1.6rem;
  }

  .page-home .hero-main {
    padding: 1.5rem 1rem;
    min-height: 320px;
  }

  .page-home .hero-side-top,
  .page-home .hero-side-bottom {
    padding: 1.2rem;
  }

  .page-home .update-card {
    padding: 1.2rem;
  }

  .page-home .live-content {
    padding: 1rem 1.2rem 1.2rem;
  }

  .page-home .btn-large {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }
}
