/* ===== 首页专属样式 ===== */
.page-home {
  --home-border-gold: rgba(201, 162, 39, 0.28);
  --home-deco-size: 46px;
  --home-news-scroll-gap: var(--sp-5);
}

.page-home .container {
  position: relative;
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

.page-home .section-index {
  margin: 0 0 var(--sp-2);
  font-family: var(--font-data);
  font-size: var(--fz-tiny);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.page-home h2 {
  font-family: var(--font-heading);
  font-size: var(--fz-h2);
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}

/* ---------- 首屏 Hero ---------- */
.page-home .hero-home {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .hero-home__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--sp-8);
}

.page-home .hero-home__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-family: var(--font-data);
  font-size: var(--fz-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.page-home .hero-home__kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.page-home .hero-home__title {
  font-family: var(--font-heading);
  font-size: var(--fz-h1);
  line-height: 1.12;
  margin-bottom: var(--sp-3);
}

.page-home .hero-home__slogan {
  font-family: var(--font-data);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: var(--sp-5);
}

.page-home .hero-home__lead {
  max-width: 46ch;
  font-size: var(--fz-body);
  line-height: 1.8;
  color: var(--color-cream);
  margin-bottom: var(--sp-6);
}

.page-home .hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.page-home .hero-home__visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-border-gold);
  background: linear-gradient(135deg, var(--color-deep-blue), var(--color-charcoal));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.page-home .hero-home__visual::after {
  content: "";
  position: absolute;
  right: var(--sp-6);
  bottom: var(--sp-6);
  width: var(--home-deco-size);
  height: var(--home-deco-size);
  border-right: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  border-radius: 0 0 var(--radius-sm) 0;
  opacity: 0.8;
}

.page-home .hero-home__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
}

/* ---------- 胜率统计 ---------- */
.page-home .winrate-home {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.page-home .winrate-home__header {
  margin-bottom: var(--sp-5);
}

.page-home .winrate-home__note {
  font-family: var(--font-data);
  font-size: var(--fz-small);
  color: var(--color-grey-gold);
}

.page-home .winrate-home__board {
  position: relative;
  background: var(--color-charcoal);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 3vw, 2rem);
}

.page-home .winrate-home__board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), rgba(201, 162, 39, 0));
}

.page-home .winrate-home__chart {
  margin: var(--sp-5) 0 var(--sp-4);
}

.page-home .winrate-home__svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .winrate-home__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(15, 32, 39, 0.55);
  border-left: 2px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-data);
  font-size: var(--fz-small);
  color: var(--color-grey-gold);
  line-height: 1.6;
}

.page-home .winrate-home__legend-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold-bright);
  box-shadow: 0 0 8px rgba(245, 215, 110, 0.6);
  flex: 0 0 auto;
}

.page-home .winrate-home__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 0;
  padding: var(--sp-5) 0 0;
  border-top: 1px solid rgba(201, 162, 39, 0.14);
}

.page-home .winrate-home__stats .data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-ink);
  border-radius: var(--radius-md);
  transition: background var(--t-fast), transform var(--t-fast);
}

.page-home .winrate-home__stats .data-row:hover {
  background: var(--color-deep-blue);
  transform: translateX(-4px);
}

.page-home .winrate-home__stats .data-row__label {
  font-size: var(--fz-small);
  color: var(--color-grey-gold);
}

.page-home .winrate-home__stats .data-row__value {
  font-family: var(--font-data);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-gold-bright);
  font-weight: 700;
}

/* ---------- 核心入口 ---------- */
.page-home .entry-home {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.page-home .entry-home__intro {
  max-width: 60ch;
  font-size: var(--fz-body);
  line-height: 1.8;
  color: var(--color-grey-gold);
  margin-bottom: var(--sp-6);
}

.page-home .entry-home__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.page-home .entry-home__card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-charcoal);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, 0.16);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-cream);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.page-home .entry-home__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(201, 162, 39, 0.4);
}

.page-home .entry-home__card--solutions {
  background: linear-gradient(145deg, var(--color-charcoal) 0%, var(--color-deep-blue) 100%);
}

.page-home .entry-home__card--support {
  border-color: rgba(15, 32, 39, 0.7);
  background: linear-gradient(145deg, var(--color-charcoal) 0%, #12181d 100%);
}

.page-home .entry-home__card--support:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(15, 32, 39, 0.35);
}

.page-home .entry-home__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .entry-home__card-body {
  padding: var(--sp-6);
}

.page-home .entry-home__card-index {
  margin-bottom: var(--sp-2);
  font-family: var(--font-data);
  font-size: var(--fz-tiny);
  letter-spacing: 0.2em;
  color: var(--color-gold);
}

.page-home .entry-home__card-body h3 {
  font-family: var(--font-heading);
  font-size: var(--fz-h3);
  margin-bottom: var(--sp-4);
}

.page-home .entry-home__card-body > p {
  font-size: var(--fz-small);
  line-height: 1.75;
  color: var(--color-grey-gold);
  margin-bottom: var(--sp-5);
}

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

.page-home .entry-home__feature-list li {
  padding: var(--sp-3) var(--sp-2);
  background: rgba(15, 32, 39, 0.6);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-data);
  font-size: var(--fz-tiny);
  letter-spacing: 0.02em;
  color: var(--color-cream);
}

.page-home .entry-home__link-text {
  display: inline-block;
  font-family: var(--font-data);
  font-size: var(--fz-small);
  font-weight: 700;
  color: var(--color-gold-bright);
}

/* ---------- 新手指引 ---------- */
.page-home .guide-home {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.page-home .guide-home__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, var(--color-charcoal) 100%);
  border-radius: var(--radius-lg);
}

.page-home .guide-home__visual {
  overflow: hidden;
  background: var(--color-ink);
  border-radius: var(--radius-md);
}

.page-home .guide-home__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .guide-home__content h3 {
  font-family: var(--font-heading);
  font-size: var(--fz-h3);
  margin-bottom: var(--sp-4);
}

.page-home .guide-home__content > p {
  font-size: var(--fz-body);
  line-height: 1.8;
  color: var(--color-grey-gold);
  margin-bottom: var(--sp-5);
}

.page-home .guide-home__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  counter-reset: guideHomeSteps;
}

.page-home .guide-home__steps li {
  counter-increment: guideHomeSteps;
  position: relative;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 3rem;
  margin-bottom: var(--sp-3);
  border-left: 2px solid var(--color-gold);
  font-size: var(--fz-small);
  line-height: 1.65;
  color: var(--color-cream);
}

.page-home .guide-home__steps li::before {
  content: counter(guideHomeSteps, decimal-leading-zero);
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-3);
  font-family: var(--font-data);
  font-size: var(--fz-tiny);
  color: var(--color-gold-bright);
}

/* ---------- 最新动态 ---------- */
.page-home .news-home {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.page-home .news-home__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.page-home .news-home__archive {
  white-space: nowrap;
  font-family: var(--font-data);
  font-size: var(--fz-small);
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--t-fast);
}

.page-home .news-home__archive:hover {
  color: var(--color-gold-bright);
}

.page-home .news-home__list {
  display: flex;
  gap: var(--home-news-scroll-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4);
  margin-right: calc(-1 * var(--container-pad));
  padding-right: var(--container-pad);
}

.page-home .news-home__item {
  flex: 0 0 min(85%, 340px);
  scroll-snap-align: start;
  padding: var(--sp-6);
  background: var(--color-charcoal);
  border-top: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08);
  transition: box-shadow var(--t-base);
}

.page-home .news-home__item:hover {
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.2), var(--shadow-gold);
}

.page-home .news-home__tag {
  margin-bottom: var(--sp-3);
  font-family: var(--font-data);
  font-size: var(--fz-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.page-home .news-home__item h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: var(--sp-3);
}

.page-home .news-home__link {
  color: var(--color-cream);
  text-decoration: none;
  transition: color var(--t-fast);
}

.page-home .news-home__link:hover {
  color: var(--color-gold-bright);
}

.page-home .news-home__item p {
  font-size: var(--fz-small);
  line-height: 1.75;
  color: var(--color-grey-gold);
  margin: 0;
}

/* ---------- 品牌信任 ---------- */
.page-home .trust-home__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.page-home .trust-home__item {
  padding: var(--sp-6);
  border-radius: var(--radius-md);
}

.page-home .trust-home__item h3 {
  font-family: var(--font-heading);
  font-size: var(--fz-h3);
  margin-bottom: var(--sp-3);
  color: var(--color-gold-bright);
}

.page-home .trust-home__item p {
  color: var(--color-grey-gold);
  font-size: var(--fz-small);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.page-home .trust-home__item p:last-child {
  margin-bottom: 0;
}

.page-home .trust-home__icp {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(201, 162, 39, 0.14);
  text-align: center;
  font-family: var(--font-data);
  font-size: var(--fz-small);
  letter-spacing: 0.04em;
  color: var(--color-grey-gold);
}

/* ---------- 桌面端增强 ---------- */
@media (min-width: 768px) {
  .page-home .hero-home__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .page-home .winrate-home__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }

  .page-home .entry-home__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    align-items: start;
  }

  .page-home .entry-home__card--support {
    margin-top: clamp(1.5rem, 5vh, 3.5rem);
  }

  .page-home .guide-home__inner {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: var(--sp-8);
  }

  .page-home .news-home__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .page-home .news-home__item {
    flex: none;
    scroll-snap-align: initial;
  }

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

@media (min-width: 1200px) {
  .page-home .entry-home__card {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .page-home .entry-home__img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
  }

  .page-home .entry-home__card--solutions {
    margin-left: -2rem;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .entry-home__card,
  .page-home .news-home__item,
  .page-home .winrate-home__stats .data-row {
    transition: none;
  }
}
