/* ==========================================================
   德赢安装 · 首页专属样式
   作用域：.page-home
   移动端优先，桌面栅格在媒体查询中渐进增强
   ========================================================== */
.page-home {
  --home-darkglass: rgba(11, 61, 46, 0.78);
  overflow-x: clip;
}

/* ================= 1. 首屏 Hero ================= */
.page-home .hero-home {
  position: relative;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--deep-green) 62%, var(--green) 62%, var(--green) 100%);
  overflow: hidden;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(212, 175, 55, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
}

.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-home .hero-home-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .page-home .hero-home-inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    gap: 4rem;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
    align-items: center;
  }
}

.page-home .hero-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 0.875rem;
  margin: 0 0 1.25rem;
}

.page-home .hero-title {
  font-family: var(--head);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.page-home .hero-lead {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
  margin: 0 0 1.75rem;
}

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

.page-home .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 1.5rem;
}

.page-home .hero-fact {
  display: flex;
  flex-direction: column;
}

.page-home .hero-fact-num {
  font-family: var(--head);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
}

.page-home .hero-fact-num em {
  font-style: normal;
  font-size: 1rem;
  margin-left: 0.15rem;
}

.page-home .hero-fact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.45rem;
}

/* ---------- 实时比分板 ---------- */
.page-home .hero-live {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: var(--home-darkglass);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  box-shadow: 14px 14px 0 rgba(11, 61, 46, 0.28);
}

.page-home .hero-live-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
}

.page-home .hero-live-head h2 {
  font-family: var(--head);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.page-home .live-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  position: relative;
  flex: 0 0 auto;
}

.page-home .live-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  background: var(--red);
  color: #fff;
  padding: 0.28rem 0.6rem;
}

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

.page-home .live-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .live-item:last-child {
  border-bottom: 0;
}

.page-home .live-league {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(212, 175, 55, 0.86);
  margin-bottom: 0.6rem;
}

.page-home .live-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .live-team {
  font-family: var(--head);
  font-size: 0.95rem;
  color: #fff;
  flex: 1;
}

.page-home .live-team:last-of-type {
  text-align: right;
}

.page-home .live-score {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--gold);
  white-space: nowrap;
}

.page-home .live-sep {
  margin: 0 0.12em;
  color: rgba(255, 255, 255, 0.6);
}

.page-home .live-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  font-family: var(--body);
}

.page-home .hero-live-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.page-home .hero-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--head);
  font-size: 0.86rem;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 0.55rem 0.95rem;
  transition: background 0.25s, color 0.25s;
}

.page-home .hero-live-link:hover {
  background: var(--gold);
  color: var(--deep-green);
}

.page-home .hero-live-version {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.44);
  letter-spacing: 0.06em;
}

.page-home .hero-live-decor {
  position: absolute;
  right: -74px;
  bottom: -58px;
  width: 170px;
  height: 120px;
  opacity: 0.2;
  overflow: hidden;
  pointer-events: none;
}

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

/* ================= 2. 活动面板 ================= */
.page-home .activity-board {
  background: var(--bg);
  position: relative;
}

.page-home .activity-board-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  position: relative;
}

@media (min-width: 960px) {
  .page-home .activity-board-inner {
    grid-template-columns: minmax(220px, 0.72fr) 1.45fr;
    grid-template-areas:
      "intro cards"
      ". texture";
    gap: 3rem 3.5rem;
    align-items: start;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .page-home .activity-intro { grid-area: intro; }
  .page-home .activity-cards { grid-area: cards; }
  .page-home .activity-texture { grid-area: texture; }
}

.page-home .activity-intro .kicker {
  color: var(--dark-gold);
}

.page-home .activity-intro h2 {
  font-family: var(--head);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.page-home .activity-intro p {
  font-family: var(--body);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

@media (min-width: 800px) {
  .page-home .activity-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.page-home .activity-card {
  position: relative;
  background: var(--card);
  border-left: 4px solid var(--green);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 8px 8px 0 rgba(11, 61, 46, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.page-home .activity-card:first-child {
  border-left-color: var(--red);
}

.page-home .activity-card:first-child .activity-icon {
  color: var(--red);
}

.page-home .activity-card:last-child {
  border-left-color: var(--dark-gold);
}

.page-home .activity-card:last-child .activity-icon {
  color: var(--dark-gold);
}

.page-home .activity-icon {
  margin-bottom: 1rem;
}

.page-home .activity-card-copy h3 {
  font-family: var(--head);
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.page-home .activity-card-copy p {
  font-family: var(--body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.page-home .activity-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 1.2rem;
}

.page-home .activity-more {
  margin-top: 0.75rem;
  font-family: var(--head);
  font-size: 0.82rem;
  color: var(--deep-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.page-home .activity-more:hover {
  color: var(--dark-gold);
}

.page-home .activity-texture {
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.page-home .activity-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 960px) {
  .page-home .activity-texture {
    height: 96px;
  }
}

/* ================= 3. 赛季导航 ================= */
.page-home .season-map {
  position: relative;
  background: var(--deep-green);
  color: #fff;
  overflow: hidden;
}

.page-home .season-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
}

.page-home .season-map-inner {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.5rem;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .page-home .season-map-inner {
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    padding-top: 5rem;
    padding-bottom: 5.5rem;
    align-items: start;
  }
}

.page-home .season-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 280px;
  border-left: 1px solid rgba(212, 175, 55, 0.35);
  position: relative;
}

.page-home .season-rail::before {
  content: "赛季索引";
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: rgba(212, 175, 55, 0.75);
  position: absolute;
  top: -28px;
  left: -6px;
}

@media (min-width: 768px) {
  .page-home .season-rail {
    min-height: 420px;
  }
}

.page-home .rail-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.55);
  line-height: 1;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
  padding-left: 0.6rem;
}

.page-home .season-center .kicker {
  color: var(--gold);
}

.page-home .season-center h2 {
  font-family: var(--head);
  font-size: 2rem;
  line-height: 1.18;
  margin: 0.4rem 0 0.9rem;
}

.page-home .season-desc {
  font-family: var(--body);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 34em;
  margin-bottom: 2rem;
}

.page-home .season-layer-list {
  display: grid;
  gap: 2.5rem;
}

.page-home .season-layer {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.28);
  padding: 1.4rem 1.4rem 1.5rem;
}

.page-home .layer-num {
  font-family: var(--head);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}

.page-home .season-layer h3 {
  font-family: var(--head);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.page-home .season-layer p {
  font-family: var(--body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
}

.page-home .league-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.page-home .league-chips span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.22rem 0.55rem;
}

.page-home .layer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-family: var(--head);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 0.25rem;
}

.page-home .season-history {
  display: grid;
  gap: 0.4rem;
}

.page-home .history-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.9rem 0;
  font-family: var(--body);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}

.page-home .history-row a {
  color: rgba(212, 175, 55, 0.85);
  font-family: var(--head);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 0.15rem;
}

.page-home .layer-num.small {
  font-size: 0.88rem;
  color: rgba(212, 175, 55, 0.55);
  font-family: var(--mono);
  letter-spacing: 0.12em;
}

/* ================= 4. 近期战绩概览 ================= */
.page-home .form-board {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.page-home .form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-home .form-head h2 {
  font-family: var(--head);
  font-size: 2rem;
  margin: 0.35rem 0 0.75rem;
}

.page-home .form-head p {
  font-family: var(--body);
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

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

@media (min-width: 900px) {
  .page-home .form-compare {
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.page-home .form-device {
  margin: 0;
}

.page-home .form-device-desktop {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 rgba(11, 61, 46, 0.08);
}

.page-home .device-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.page-home .device-dot {
  width: 8px;
  height: 8px;
  background: var(--line);
  display: inline-block;
}

.page-home .device-dot:first-child {
  background: var(--red);
}

.page-home .device-dot:nth-child(2) {
  background: var(--dark-gold);
}

.page-home .device-dot:nth-child(3) {
  background: var(--green);
}

.page-home .device-url {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  background: var(--card);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
}

.page-home .device-view {
  position: relative;
  padding: 0.7rem;
}

.page-home .device-view img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.page-home .form-results {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0 0.7rem 0.7rem;
}

.page-home .form-result {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #fff;
  padding: 0.5rem 0 0.4rem;
}

.page-home .form-result.win {
  background: var(--green);
}

.page-home .form-result.draw {
  background: var(--dark-gold);
  color: #fff;
}

.page-home .form-result.loss {
  background: var(--red);
}

.page-home .form-device figcaption {
  font-family: var(--body);
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0.75rem 1rem 1rem;
}

.page-home .form-device figcaption b {
  font-family: var(--mono);
  color: var(--deep-green);
}

/* 移动端设备模拟 */
.page-home .form-device-mobile {
  background: transparent;
  border: 0;
}

.page-home .device-shell {
  background: var(--deep-green);
  border: 1px solid var(--deep-green);
  border-radius: 18px;
  padding: 14px;
  position: relative;
}

.page-home .device-notch {
  width: 110px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 12px;
  border-radius: 10px;
}

.page-home .mobile-chart {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.32);
  padding: 0.9rem;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 0.3rem;
  height: 120px;
}

.page-home .mobile-bar {
  background: var(--gold);
  min-height: 10px;
}

.page-home .mobile-bar.b1 { height: 70%; }
.page-home .mobile-bar.b2 { height: 55%; }
.page-home .mobile-bar.b3 { height: 45%; }
.page-home .mobile-bar.b4 { height: 25%; }
.page-home .mobile-bar.b5 { height: 60%; }
.page-home .mobile-bar.b6 { height: 80%; }
.page-home .mobile-bar.b7 { height: 50%; }
.page-home .mobile-bar.b8 { height: 90%; }

.page-home .mobile-caption {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--body);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.8rem 0.5rem 0.3rem;
  margin: 0;
}

/* ================= 5. 品牌动态 ================= */
.page-home .brand-updates {
  background: #fff;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.page-home .update-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-home .update-head h2 {
  font-family: var(--head);
  font-size: 2rem;
  margin: 0.35rem 0 0.75rem;
}

.page-home .update-head p {
  font-family: var(--body);
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.page-home .update-list {
  margin-top: 1.5rem;
}

.page-home .update-row {
  display: grid;
  grid-template-columns: 20px 1fr 28px;
  gap: 1rem;
  align-items: start;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.page-home .update-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.page-home .update-index {
  font-family: var(--mono);
  color: var(--dark-gold);
  font-size: 0.8rem;
  padding-top: 0.15rem;
}

.page-home .update-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid rgba(27, 122, 90, 0.35);
  padding: 0.18rem 0.5rem;
}

.page-home .update-content h3 {
  font-family: var(--head);
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0.5rem 0 0.4rem;
}

.page-home .update-content h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.page-home .update-content h3 a:hover {
  color: var(--green);
}

.page-home .update-content p {
  font-family: var(--body);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.page-home .update-arrow {
  color: var(--deep-green);
  font-size: 1.2rem;
  text-decoration: none;
  text-align: right;
  transition: color 0.2s;
}

.page-home .update-arrow:hover {
  color: var(--dark-gold);
}

.page-home .brand-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--deep-green);
  color: #fff;
  padding: 1.4rem 1.5rem;
  margin-top: 2rem;
}

.page-home .brand-help p {
  font-family: var(--body);
  font-size: 0.92rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.page-home .brand-help a {
  color: var(--gold);
  font-family: var(--head);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 0.2rem;
}

/* ================= 动效与可访问性 ================= */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
