/* ============================================
   PG电子游戏中国官方网站 · 首页专属样式
   作用域：.page-home
   移动端优先，桌面增强
   ============================================ */

.page-home {
  --home-gold-grad: linear-gradient(120deg, #E8C64A 0%, #D4AF37 55%, #9D4EDD 100%);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

.page-home .container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
}

/* ---------- 通用章节节奏 ---------- */
.page-home .section {
  padding: 72px 20px;
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 44px;
}

.page-home .section-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.page-home .section-num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-gold);
  opacity: 0.85;
}

.page-home .section-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}

.page-home .section-desc {
  margin: 0;
  color: var(--c-text2);
  font-size: 15px;
  max-width: 560px;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
}

/* ---------- 首屏 Hero ---------- */
.page-home .home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-mobile-h));
  padding: 64px 20px 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 18%, rgba(0, 229, 255, 0.10), transparent 60%),
    var(--c-bg);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
}

.page-home .home-hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-gold-light);
  background: rgba(212, 175, 55, 0.06);
}

.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 20px 0 20px;
  background: var(--home-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-gold-light);
}

.page-home .home-hero__desc {
  margin: 0 0 30px;
  max-width: 540px;
  color: var(--c-text2);
  font-size: 16px;
}

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

.page-home .home-hero__visual {
  position: relative;
  border-radius: var(--radius);
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow);
  background: var(--c-bg2);
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(115deg, transparent 0%, rgba(0, 229, 255, 0.10) 50%, transparent 50%, transparent 100%);
  background-size: 220% 220%;
  animation: home-scan 4s ease-in-out infinite;
  pointer-events: none;
}

.page-home .home-hero__caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-text);
  background: rgba(11, 15, 20, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 4px;
}

.page-home .home-hero__lines {
  position: absolute;
  bottom: 44px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.page-home .home-hero__line-1,
.page-home .home-hero__line-2 {
  fill: none;
  stroke-linecap: round;
}

.page-home .home-hero__line-1 {
  stroke: var(--c-gold);
  stroke-width: 2;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: home-line-dash 7s ease-in-out infinite alternate;
}

.page-home .home-hero__line-2 {
  stroke: var(--c-cyan);
  stroke-width: 1.5;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: home-line-dash 9s ease-in-out infinite alternate;
}

.page-home .home-hero__next {
  position: absolute;
  bottom: 18px;
  right: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--c-text2);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.page-home .home-hero__next .home-hero__arrow {
  display: block;
  font-size: 20px;
  color: var(--c-gold);
  line-height: 1;
}

@keyframes home-line-dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes home-scan {
  from {
    background-position: -220% 0;
  }
  to {
    background-position: 220% 0;
  }
}

/* ---------- 01 每一轮，都留下轨迹 ---------- */
.page-home .track-section {
  background: var(--c-bg2);
}

.page-home .track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .track-stat {
  position: relative;
  padding: 32px 24px;
  background: var(--c-bg3);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .track-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.7);
}

.page-home .track-stat__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text2);
}

.page-home .track-stat__num {
  display: block;
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  background: var(--home-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--c-gold-light);
}

.page-home .track-stat__unit {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--c-text);
}

.page-home .track-stat__foot {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 231, 235, 0.1);
  font-size: 13px;
  color: var(--c-text2);
}

.page-home .track-note {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 22px;
  background: rgba(157, 78, 221, 0.07);
  border-left: 4px solid var(--c-purple);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-home .track-note p {
  margin: 0;
  font-size: 15px;
  color: var(--c-text2);
}

.page-home .track-note__bar {
  flex: 0 0 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--c-purple);
}

/* ---------- 02 从试玩到正式局，全程回溯 ---------- */
.page-home .coverage-section {
  background: var(--c-bg);
}

.page-home .coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .coverage-card {
  position: relative;
  background: var(--c-bg2);
  border: 2px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .coverage-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
}

.page-home .coverage-card--full {
  border-color: rgba(157, 78, 221, 0.3);
}

.page-home .coverage-card--full:hover {
  border-color: rgba(157, 78, 221, 0.6);
}

.page-home .coverage-card__media {
  background: var(--c-bg3);
}

.page-home .coverage-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .coverage-card__body {
  padding: 28px 24px 30px;
}

.page-home .coverage-card__title {
  margin: 16px 0 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .coverage-card__text {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--c-text2);
}

.page-home .coverage-card__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .coverage-card__features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--c-text);
}

.page-home .coverage-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--c-cyan);
}

/* ---------- 03 三步进入PG电子世界 ---------- */
.page-home .steps-section {
  background: var(--c-bg2);
}

.page-home .steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .steps-card {
  position: relative;
  padding: 28px 24px;
  background: var(--c-bg);
  border: 2px solid rgba(212, 175, 55, 0.22);
  border-top-width: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-home .steps-card:hover {
  transform: translateY(-4px);
}

.page-home .steps-card--1 {
  border-top-color: var(--c-cyan);
}

.page-home .steps-card--2 {
  border-top-color: var(--c-gold);
}

.page-home .steps-card--3 {
  border-top-color: var(--c-purple);
}

.page-home .steps-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: rgba(212, 175, 55, 0.2);
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.35);
  pointer-events: none;
}

.page-home .steps-card__img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.page-home .steps-card__title {
  margin: 14px 60px 8px 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .steps-card__text {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--c-text2);
}

.page-home .steps-card__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.page-home .steps-card__link:hover {
  border-bottom-color: var(--c-cyan);
}

.page-home .steps-note {
  margin: 40px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--c-gold);
  background: rgba(212, 175, 55, 0.05);
  font-size: 14px;
  color: var(--c-text2);
}

/* ---------- 04 内地浏览器玩PG通道专属说明 ---------- */
.page-home .channel-section {
  background: var(--c-bg);
}

.page-home .channel-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .channel-visual {
  margin: 0;
  border-radius: var(--radius);
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--c-bg2);
}

.page-home .channel-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .channel-steps {
  display: grid;
  gap: 18px;
}

.page-home .channel-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--c-bg2);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: var(--radius);
}

.page-home .channel-step__num {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--c-bg);
  background: var(--c-gold);
  border-radius: 8px;
}

.page-home .channel-step__content h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.page-home .channel-step__content p {
  margin: 0;
  font-size: 14px;
  color: var(--c-text2);
}

.page-home .channel-note {
  margin: 6px 0 0;
  padding: 16px 20px;
  border-left: 4px solid var(--c-red);
  background: rgba(230, 57, 70, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--c-text2);
}

/* ---------- 05 最近更新与平台动态 ---------- */
.page-home .updates-section {
  background: var(--c-bg2);
}

.page-home .updates-head__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .updates-list {
  display: grid;
  gap: 16px;
}

.page-home .updates-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px 56px 24px 24px;
  background: var(--c-bg);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-left: 4px solid var(--c-cyan);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.3s ease, border-left-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .updates-item:hover {
  transform: translateY(-3px);
  border-left-color: var(--c-gold);
  box-shadow: var(--shadow);
}

.page-home .updates-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .updates-item__title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .updates-item__summary {
  font-size: 14px;
  color: var(--c-text2);
}

.page-home .updates-item__arrow {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--c-gold);
  transition: transform 0.3s ease;
}

.page-home .updates-item:hover .updates-item__arrow {
  transform: translateY(-50%) translateX(4px);
}

.page-home .updates-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--c-bg3);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--c-text2);
}

.page-home .updates-foot a {
  margin-left: auto;
  color: var(--c-cyan);
  text-decoration: none;
  font-weight: 600;
}

.page-home .updates-foot a:hover {
  text-decoration: underline;
}

/* ---------- 平板增强 ---------- */
@media (min-width: 768px) {
  .page-home .section {
    padding: 96px 32px;
  }

  .page-home .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .section-title-block {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }

  .page-home .section-num {
    font-size: 18px;
  }

  .page-home .section-title {
    font-size: 32px;
  }

  .page-home .section-desc {
    text-align: right;
  }

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

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

  .home-hero .page-home .home-hero__next {
    right: 40px;
  }

  .page-home .channel-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 1024px) {
  .page-home .home-hero {
    min-height: 100vh;
    padding: 100px 48px 88px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }

  .page-home .home-hero__visual {
    order: 2;
  }

  .page-home .home-hero__visual img {
    max-height: 600px;
    object-fit: contain;
  }

  .page-home .home-hero__lines {
    bottom: 60px;
    height: 160px;
  }

  .page-home .home-hero__next {
    bottom: 24px;
    right: 48px;
    flex-direction: row;
    gap: 8px;
  }

  .page-home .coverage-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .page-home .coverage-card--full {
    margin-top: 72px;
  }

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

  .page-home .steps-card--1 {
    grid-column: 1 / 6;
  }

  .page-home .steps-card--2 {
    grid-column: 7 / 12;
    margin-top: 48px;
  }

  .page-home .steps-card--3 {
    grid-column: 4 / 10;
    margin-top: 96px;
  }

  .page-home .channel-section .container {
    max-width: calc(var(--container-w) + 80px);
  }

  .page-home .channel-visual img {
    max-height: 420px;
    object-fit: cover;
  }

  .page-home .updates-head__right {
    align-items: flex-end;
  }

  .page-home .updates-list {
    gap: 20px;
  }
}
