.page-home {
  --home-ink: #111111;
  --home-line: 3px solid #111;
  --home-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
  overflow-x: hidden;
}

/* ========== 框景首屏 ========== */
.page-home .hero-framed {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88vh;
  background: var(--qmh-black);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 6px solid var(--qmh-green);
}

.page-home .hero-media,
.page-home .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-home .hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 200, 81, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 81, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}

.page-home .hero-crop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, rgba(0, 40, 20, 0.84) 0%, rgba(0, 50, 25, 0.46) 55%, rgba(17, 17, 17, 0.72) 100%);
}

.page-home .hero-keeper {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 28px));
  margin: 96px auto 44px;
  padding-top: 8px;
}

.page-home .hero-window {
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.88);
  background: rgba(0, 20, 10, 0.4);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 215, 0, 0.35), 0 28px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - 30px) 0%, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.page-home .hero-window::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  pointer-events: none;
}

.page-home .hero-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(255, 215, 0, 0.4);
}

.page-home .hero-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--qmh-green);
  box-shadow: 0 0 0 4px rgba(0, 200, 81, 0.22), 0 0 14px rgba(0, 200, 81, 0.75);
  animation: page-home-pulse 2.2s infinite;
}

.page-home .hero-window-status {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.page-home .hero-window-body {
  padding: clamp(26px, 5vw, 52px);
}

.page-home .hero-kicker {
  display: inline-block;
  background: var(--qmh-gold);
  color: var(--home-ink);
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.page-home .hero-window h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.08;
  color: #ffffff;
  display: inline-block;
  transform: rotate(-1deg);
  margin: 18px 0 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  position: relative;
}

.page-home .hero-window h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 66%;
  height: 7px;
  background: linear-gradient(90deg, var(--qmh-green), var(--qmh-gold));
}

.page-home .hero-lead {
  font-family: var(--font-serif);
  color: #E8F5E9;
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 26px;
}

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

.page-home .hero-btn-ghost {
  border-color: #ffffff;
  color: #ffffff;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 20px;
}

.page-home .hero-stat {
  padding: 4px 0 4px 10px;
  border-left: 3px solid var(--qmh-green);
}

.page-home .hero-stat-num {
  display: block;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: #ffffff;
  line-height: 1.15;
}

.page-home .hero-stat-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: #9ff2b8;
  line-height: 1.4;
  margin-top: 4px;
}

.page-home .hero-edge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.48);
  z-index: 2;
}

@keyframes page-home-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.7; }
}

/* ========== 服务路径带 ========== */
.page-home .journey-band {
  background: #002B14;
  border-bottom: 3px solid var(--home-ink);
}

.page-home .journey-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 0;
}

.page-home .journey-step {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: #003F1D;
  border: 2px solid #064D2B;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .journey-step:hover {
  background: var(--qmh-green);
  border-color: var(--qmh-green);
  color: var(--home-ink);
  transform: translateX(6px);
}

.page-home .step-index {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--qmh-gold);
  letter-spacing: 0.08em;
}

.page-home .step-label {
  font-size: 0.95rem;
}

.page-home .step-arrow {
  margin-left: auto;
  color: var(--qmh-gold);
  font-weight: 900;
}

.page-home .step-track {
  display: none;
}

/* ========== 实时排名数据卡 ========== */
.page-home .rank-section {
  background: linear-gradient(180deg, #F2FBF5 0%, #FFFFFF 42%, #FFF8E1 100%);
  padding: 72px 0 80px;
  border-bottom: 4px solid var(--qmh-green);
}

.page-home .rank-layout {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.page-home .rank-board {
  border: var(--home-line);
  background: #ffffff;
  box-shadow: var(--home-shadow);
}

.page-home .rank-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--home-ink);
  background: #F0F0F0;
}

.page-home .rank-tab {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #333333;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.page-home .rank-tab.is-active {
  background: var(--qmh-green);
  color: #ffffff;
}

.page-home .rank-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--qmh-gold);
}

.page-home .rank-panel[hidden] {
  display: none;
}

.page-home .rank-table-wrap {
  overflow-x: auto;
}

.page-home .rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.page-home .rank-table th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 12px;
  background: #1A2A20;
  color: #ffffff;
}

.page-home .rank-table th:first-child {
  padding-left: 20px;
}

.page-home .rank-table td {
  padding: 12px;
  border-bottom: 1px solid #E5E5E5;
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.page-home .rank-table td:first-child {
  padding-left: 20px;
}

.page-home .rank-table tr:last-child td {
  border-bottom: 0;
}

.page-home .rank-idx {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--qmh-green);
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.page-home .rank-table tr:nth-child(2) .rank-idx {
  background: #8B6C00;
}

.page-home .rank-table tr:nth-child(3) .rank-idx {
  background: var(--qmh-green-dark);
}

.page-home .rank-points {
  font-family: var(--font-sans);
  color: var(--qmh-green-dark);
  font-weight: 900;
  font-size: 1.05rem;
}

.page-home .rank-aside {
  display: grid;
  gap: 16px;
}

.page-home .rank-chart-card {
  background: #ffffff;
  border: var(--home-line);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.26);
  padding: 20px;
  border-radius: var(--radius);
}

.page-home .rank-chart-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  margin: 10px 0 14px;
  color: var(--home-ink);
}

.page-home .rank-chart-note {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  color: #666666;
  line-height: 1.65;
  margin-top: 12px;
}

/* ========== 控球率联系入口 ========== */
.page-home .possession-section {
  background: linear-gradient(135deg, #003A1C 0%, #001F10 100%);
  border-bottom: 4px solid var(--qmh-green);
  padding: 72px 0 80px;
  color: #ffffff;
}

.page-home .possession-grid {
  display: grid;
  gap: 32px;
}

.page-home .possession-copy .section-kicker {
  background: var(--qmh-green);
  color: var(--home-ink);
}

.page-home .possession-copy h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  margin: 12px 0 14px;
  color: #ffffff;
}

.page-home .possession-lead {
  font-family: var(--font-serif);
  color: #D0ECD8;
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: 20px;
}

.page-home .possession-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}

.page-home .possession-points li {
  padding: 14px 16px;
  background: rgba(0, 200, 81, 0.1);
  border-left: 4px solid var(--qmh-green);
  color: #EAFDF0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.page-home .possession-points span {
  font-weight: 800;
  font-family: var(--font-sans);
  color: var(--qmh-gold);
}

.page-home .possession-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home .donut-wrap {
  width: min(250px, 76%);
  aspect-ratio: 1;
  position: relative;
  border: 3px solid var(--home-ink);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.45);
}

.page-home .donut-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-home .donut-center strong {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  color: #ffffff;
  line-height: 1;
}

.page-home .donut-center span {
  font-size: 0.8rem;
  color: #9FF2B8;
}

.page-home .donut-legend {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #ffffff;
}

.page-home .legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
}

.page-home .dot-green {
  background: var(--qmh-green);
}

.page-home .dot-gold {
  background: var(--qmh-gold);
}

.page-home .possession-note {
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: #A8D9B5;
  max-width: 30rem;
}

/* ========== 新版视频集锦 ========== */
.page-home .video-section {
  background: var(--qmh-black);
  border-bottom: 4px solid var(--qmh-gold);
  padding: 72px 0 80px;
  color: #ffffff;
}

.page-home .video-section .section-head {
  border-color: rgba(255, 255, 255, 0.28);
}

.page-home .video-lead {
  font-family: var(--font-serif);
  color: #BBBBBB;
  max-width: 60ch;
  margin-bottom: 24px;
  line-height: 1.7;
}

.page-home .video-quickstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.page-home .video-quickstats div {
  border-left: 3px solid var(--qmh-gold);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.page-home .video-quickstats strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ffffff;
}

.page-home .video-quickstats span {
  font-size: 0.76rem;
  color: #8FA89B;
}

.page-home .video-grid {
  display: grid;
  gap: 20px;
}

.page-home .video-card {
  display: block;
  background: #181818;
  border: 2px solid #333333;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .video-card:hover {
  border-color: var(--qmh-green);
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(0, 200, 81, 0.22);
}

.page-home .video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222222;
}

.page-home .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9);
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.page-home .video-card:hover .video-thumb img {
  transform: scale(1.04);
  filter: saturate(1.2) contrast(1.06);
}

.page-home .video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.76);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 4px 8px;
  font-family: var(--font-sans);
  border-left: 2px solid var(--qmh-gold);
}

.page-home .video-type {
  position: absolute;
  left: 10px;
  top: 10px;
}

.page-home .video-body {
  padding: 16px;
}

.page-home .video-body h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.page-home .video-body p {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #999999;
  line-height: 1.6;
}

.page-home .video-more {
  text-align: center;
  margin-top: 30px;
}

/* ========== 会员权益简介 ========== */
.page-home .membership-section {
  background: linear-gradient(180deg, #F5F5F5 0%, #FDFBF4 100%);
  border-bottom: 4px solid var(--qmh-green);
  padding: 72px 0 80px;
}

.page-home .membership-layout {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.page-home .membership-list {
  display: grid;
  gap: 18px;
}

.page-home .membership-card {
  background: #ffffff;
  border: 3px solid var(--home-ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .membership-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.18);
}

.page-home .membership-card.featured {
  border-color: var(--qmh-gold);
  box-shadow: 6px 6px 0 var(--qmh-gold);
}

.page-home .m-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.page-home .m-card-name {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--home-ink);
}

.page-home .m-card-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .m-card-points li {
  padding-left: 20px;
  position: relative;
  font-family: var(--font-serif);
  font-size: 0.93rem;
  line-height: 1.5;
  color: #333333;
}

.page-home .m-card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  background: var(--qmh-green);
}

.page-home .membership-card.featured .m-card-points li::before {
  background: var(--qmh-gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.25);
}

.page-home .membership-aside {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .membership-aside .image-wrap {
  border-color: #333333;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.page-home .membership-aside-txt {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #C9D8CF;
  line-height: 1.7;
  margin: 0;
}

/* ========== 信任声明 ========== */
.page-home .trust-strip {
  background: var(--qmh-black);
  border-top: 6px solid var(--qmh-green);
  color: #ffffff;
}

.page-home .trust-strip .container-wide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
}

.page-home .trust-strip p {
  font-family: var(--font-serif);
  color: #B6C8BB;
  text-align: center;
  max-width: 42rem;
  line-height: 1.7;
  margin: 0;
}

.page-home .trust-strip .btn-ghost {
  color: var(--qmh-gold);
  border-color: var(--qmh-gold);
}

/* ========== 响应式 ========== */
@media (min-width: 768px) {
  .page-home .hero-keeper {
    width: min(1100px, calc(100% - 56px));
  }

  .page-home .journey-steps {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 20px 0;
  }

  .page-home .journey-step {
    flex: 1;
  }

  .page-home .step-track {
    display: block;
    flex: 0 0 18px;
    align-self: center;
    height: 3px;
    background: rgba(255, 255, 255, 0.28);
  }

  .page-home .rank-layout {
    grid-template-columns: 1.65fr 1fr;
    align-items: start;
  }

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

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

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

  .page-home .membership-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }

  .page-home .trust-strip .container-wide {
    flex-direction: row;
    text-align: left;
  }

  .page-home .trust-strip p {
    text-align: left;
  }
}

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

  .page-home .journey-step:hover {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-window-dot {
    animation: none;
  }

  .page-home .video-card:hover {
    transform: none;
  }

  .page-home .membership-card:hover {
    transform: none;
  }

  .page-home .journey-step:hover {
    transform: none;
  }
}
