/* ===== 首页专属样式 ===== */

.page-home {
  --home-gold: #D4AF37;
  --home-gold-light: #F0D68F;
  --home-border: rgba(42, 58, 95, 0.8);
  --home-card-bg: rgba(13, 19, 38, 0.82);
  --home-feature-gradient: linear-gradient(135deg, rgba(163, 44, 90, 0.55) 0%, rgba(123, 46, 142, 0.35) 100%);
}

/* 面包屑 */
.page-home .breadcrumb {
  padding-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-dim);
}
.page-home .breadcrumb a {
  color: var(--white-dim);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.page-home .breadcrumb a:hover {
  color: var(--gold-light);
}
.page-home .breadcrumb-sep {
  margin: 0 0.375rem;
  color: var(--rule-blue);
}

/* ===== 首屏 Hero ===== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 90% -20%, rgba(163, 44, 90, 0.35) 0%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(900px 420px at 8% 110%, rgba(123, 46, 142, 0.22) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(140deg, var(--navy-900) 0%, var(--navy-700) 100%);
  padding: var(--space-3) 0 0;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -5%;
  right: 9%;
  width: 1px;
  height: 115%;
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.65) 30%, rgba(212, 175, 55, 0.2) 70%, transparent);
  transform: rotate(22deg);
  transform-origin: top center;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "RMCF";
  position: absolute;
  bottom: -0.12em;
  right: 0.04em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 17rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
  min-height: 520px;
  padding-bottom: var(--space-4);
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
}

.page-home .hero-title {
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 10vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  text-wrap: balance;
}

.page-home .hero-kicker {
  margin-top: var(--space-2);
  color: var(--home-gold);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-home .hero-copy .lead {
  margin-top: var(--space-3);
  max-width: 640px;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.page-home .hero-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-3);
}

.page-home .hero-phrases span {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.page-home .hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.page-home .hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 14, 26, 0.2) 0%, rgba(10, 14, 26, 0.02) 50%, rgba(10, 14, 26, 0.4) 100%);
  pointer-events: none;
}

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

.page-home .hero-jump {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--space-3);
  padding-top: var(--space-3);
  margin-top: var(--space-1);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.page-home .hero-jump a {
  color: var(--white-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.page-home .hero-jump a:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.55);
  background-color: rgba(212, 175, 55, 0.06);
}

/* ===== 栏目通用标题区 ===== */
.page-home .section {
  padding: var(--space-5) 0;
}

.page-home .section-head {
  position: relative;
  margin-bottom: var(--space-4);
  padding-right: 3.5rem;
}

.page-home .section-head::after {
  content: attr(data-index);
  position: absolute;
  top: -0.35em;
  right: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.page-home .section-head .section-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
  color: var(--white);
}

.page-home .section-note {
  margin-top: 0.5rem;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 1rem;
}

.page-home .index-label {
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== 01 目录 ===== */
.page-home .home-directory {
  padding-top: var(--space-4);
}

.page-home .directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.page-home .dir-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: var(--space-3);
  background: linear-gradient(145deg, var(--navy-700), rgba(13, 19, 38, 0.72));
  border: 1px solid var(--home-border);
  border-radius: 18px;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.page-home .dir-card:hover {
  transform: translateY(-4px);
  border-color: var(--home-gold);
  box-shadow: 0 14px 36px rgba(212, 175, 55, 0.14);
}

.page-home .dir-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--home-gold);
}

.page-home .dir-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--white);
}

.page-home .dir-desc {
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.page-home .dir-card .tag {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.page-home .directory-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--home-border);
}

.page-home .directory-more a {
  color: var(--white-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  transition: color var(--duration) var(--ease);
}

.page-home .directory-more a:hover {
  color: var(--gold-light);
}

.page-home .directory-more span {
  color: var(--rule-blue);
}

/* ===== 02 更新公告 ===== */
.page-home .home-updates {
  padding-top: var(--space-3);
}

.page-home .updates-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.page-home .updates-side .lead {
  margin-top: var(--space-2);
  color: var(--white-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.page-home .updates-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.page-home .update-item {
  padding: var(--space-3);
  background: var(--home-card-bg);
  border-left: 3px solid var(--home-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background-color var(--duration) var(--ease), border-left-color var(--duration) var(--ease);
}

.page-home .update-item:hover {
  background: rgba(13, 19, 38, 0.95);
  border-left-color: var(--gold-light);
}

.page-home .update-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.375rem;
}

.page-home .update-title {
  margin: 0 0 0.375rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--white);
}

.page-home .update-item p {
  margin: 0;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-home .update-details {
  margin-top: var(--space-1);
  border: 1px dashed var(--home-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease);
}

.page-home .update-details:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.page-home .update-details summary {
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  list-style: none;
  transition: color var(--duration) var(--ease);
}

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

.page-home .update-details summary::before {
  content: "＋";
  margin-right: 0.5rem;
  color: var(--home-gold);
}

.page-home .update-details[open] summary::before {
  content: "－";
}

.page-home .update-details summary:hover {
  color: var(--gold-light);
}

.page-home .update-more-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 var(--space-3) var(--space-3);
}

/* ===== 03 赛事进入 ===== */
.page-home .home-matches {
  padding-top: var(--space-5);
}

.page-home .match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.page-home .match-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-700);
  border: 1px solid var(--home-border);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.page-home .match-card:hover {
  transform: translateY(-4px);
  border-color: var(--home-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.page-home .match-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.page-home .match-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .match-body {
  padding: var(--space-3);
}

.page-home .match-body .btn {
  margin-top: var(--space-2);
}

.page-home .match-title {
  margin: var(--space-2) 0 0.375rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--white);
}

.page-home .match-body p,
.page-home .match-feature-inner p {
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-home .match-card--feature {
  position: relative;
  border-color: transparent;
  background:
    linear-gradient(135deg, rgba(163, 44, 90, 0.62) 0%, rgba(123, 46, 142, 0.42) 100%),
    var(--navy-700);
  min-height: 340px;
}

.page-home .match-feature-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: var(--space-4);
}

.page-home .feature-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 var(--space-1);
}

.page-home .feature-stats {
  display: inline-block;
  margin: var(--space-2) 0 var(--space-3);
  color: rgba(248, 249, 252, 0.78);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  border-left: 2px solid var(--home-gold);
  padding-left: var(--space-2);
}

/* ===== 04 客户端筛选联赛 ===== */
.page-home .home-platform {
  padding-top: var(--space-5);
}

.page-home .platform-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

.page-home .platform-visual {
  aspect-ratio: 2 / 3;
  max-width: 440px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.page-home .platform-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 26, 0.35) 100%);
  pointer-events: none;
}

.page-home .platform-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .platform-content .lead {
  margin-top: var(--space-2);
  color: var(--white-dim);
  font-size: 1rem;
  max-width: 560px;
}

.page-home .league-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-3);
}

.page-home .league-pills span {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--home-border);
  border-radius: var(--radius-pill);
  background: rgba(13, 19, 38, 0.7);
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.page-home .league-pills span:hover {
  border-color: var(--home-gold);
  color: var(--gold-light);
  background-color: rgba(212, 175, 55, 0.08);
}

.page-home .league-pills span:last-child {
  border-color: var(--home-gold);
  color: var(--gold-light);
}

.page-home .platform-list {
  list-style: none;
  margin: var(--space-3) 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.page-home .platform-list li {
  padding-left: var(--space-2);
  border-left: 3px solid var(--home-gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.page-home .platform-list li:hover {
  border-left-color: var(--gold-light);
}

.page-home .platform-list strong {
  color: var(--gold-light);
  font-weight: 600;
}

.page-home .platform-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
}

.page-home .platform-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.page-home .platform-content .btn {
  margin-top: var(--space-1);
}

/* ===== 05 资源下载 ===== */
.page-home .home-downloads {
  padding-top: var(--space-5);
}

.page-home .downloads-head {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  margin-bottom: var(--space-4);
  background: var(--navy-700);
  border: 1px solid var(--home-border);
}

.page-home .downloads-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.page-home .downloads-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.15) 0%, rgba(10, 14, 26, 0.85) 100%);
  pointer-events: none;
}

.page-home .downloads-head-content {
  position: relative;
  z-index: 1;
  padding: var(--space-4);
}

.page-home .downloads-head-content .lead {
  margin-top: 0.5rem;
  color: var(--white-dim);
  font-size: 1rem;
  max-width: 520px;
}

.page-home .download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.page-home .dl-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: var(--space-3);
  background: var(--home-card-bg);
  border: 1px solid var(--home-border);
  border-radius: 18px;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.page-home .dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--home-gold);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.12);
}

.page-home .dl-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--home-gold);
}

.page-home .dl-card h3 {
  margin: 0.375rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}

.page-home .dl-card p {
  margin: 0;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ===== 信任条 ===== */
.page-home .home-trust {
  padding-top: 0;
}

.page-home .trust-strip {
  border-top: 1px solid var(--home-border);
  padding-top: var(--space-4);
}

.page-home .trust-head {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-light);
}

.page-home .trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.page-home .trust-list li {
  padding: var(--space-2) var(--space-3);
  background: rgba(13, 19, 38, 0.62);
  border-left: 2px solid var(--rule-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.page-home .trust-list li:hover {
  border-left-color: var(--home-gold);
  background-color: rgba(13, 19, 38, 0.88);
}

.page-home .trust-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
}

.page-home .trust-list span {
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ===== 响应式 ===== */
@media (min-width: 720px) {
  .page-home .directory-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .dir-card:first-child {
    grid-column: 1 / -1;
  }

  .page-home .updates-layout {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }

  .page-home .download-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

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

@media (min-width: 960px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    min-height: 620px;
  }

  .page-home .hero-art {
    aspect-ratio: 3 / 4;
    align-self: stretch;
    max-height: none;
  }

  .page-home .match-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .match-card--image {
    grid-column: span 7;
  }

  .page-home .match-card--feature {
    grid-column: span 5;
  }

  .page-home .platform-layout {
    grid-template-columns: 5fr 7fr;
  }

  .page-home .downloads-head {
    min-height: 280px;
  }
}

@media (min-width: 1200px) {
  .page-home .hero-copy {
    padding-right: var(--space-4);
  }

  .page-home .download-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-home .updates-layout {
    grid-template-columns: 3fr 9fr;
  }
}
