/* ===== 首页专属样式 ===== */
.page-home {
  --home-num: clamp(3rem, 5vw, 5rem);
  --home-card-radius: 6px;
  overflow-x: hidden;
  background-color: var(--c-surface);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home a:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---- 首屏 Hero ---- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(31,79,62,0.92), rgba(31,79,62,0.98)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 26px);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(212,175,55,0.28), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(46,139,87,0.38), transparent 42%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4rem;
  top: 12%;
  width: 30%;
  height: 160%;
  background: linear-gradient(115deg, transparent, rgba(212,175,55,0.12), transparent);
  transform: rotate(14deg);
  pointer-events: none;
}

.page-home .home-hero__shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(212,175,55,0.6);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: var(--size-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-accent-light);
  text-transform: uppercase;
}

.page-home .home-hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.2);
}

.page-home .home-hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-size: var(--size-h1);
  font-weight: 900;
  line-height: 1.18;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(212,175,55,0.25), 0 2px 10px rgba(0,0,0,0.3);
}

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

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.page-home .home-hero .btn-gold,
.page-home .home-security .btn-gold {
  background: var(--c-accent);
  color: var(--c-primary);
  font-weight: 900;
  border: 1px solid var(--c-accent);
  box-shadow: 0 8px 24px rgba(212,175,55,0.28);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.page-home .home-hero .btn-gold:hover,
.page-home .home-hero .btn-gold:focus-visible,
.page-home .home-security .btn-gold:hover,
.page-home .home-security .btn-gold:focus-visible {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  box-shadow: 0 10px 30px rgba(212,175,55,0.4);
  transform: translateY(-2px);
}

.page-home .home-hero .btn-outline,
.page-home .home-security .btn-outline {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.page-home .home-hero .btn-outline:hover,
.page-home .home-hero .btn-outline:focus-visible,
.page-home .home-security .btn-outline:hover,
.page-home .home-security .btn-outline:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.page-home .home-hero__meta {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  font-family: var(--font-head);
  font-size: var(--size-caption);
  color: rgba(255,255,255,0.72);
}

.page-home .home-hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.page-home .home-hero__meta li::before {
  content: "◆";
  color: var(--c-accent);
  font-size: 0.6rem;
}

.page-home .home-hero__figure {
  margin: 0;
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.16);
  object-fit: cover;
}

.page-home .home-hero__figure figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: var(--size-caption);
  font-family: var(--font-head);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* ---- 章节标题与编号 ---- */
.page-home .home-chapter {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-home .home-chapter--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}

.page-home .home-chapter__num {
  font-family: var(--font-head);
  font-size: var(--home-num);
  font-weight: 900;
  line-height: 0.85;
  color: var(--c-accent);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.page-home .home-chapter h2 {
  font-family: var(--font-head);
  font-size: var(--size-h2);
  font-weight: 900;
  line-height: 1.22;
  margin: 0.375rem 0 0;
  color: var(--c-ink);
  text-wrap: balance;
}

.page-home .home-kicker {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--c-primary);
  color: var(--c-accent-light);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---- 01 版本亮点 ---- */
.page-home .home-highlight {
  background: var(--c-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
}

.page-home .home-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 18px;
  background: linear-gradient(100deg, var(--c-accent) 0 38%, var(--c-secondary) 38% 62%, var(--c-primary) 62% 100%);
}

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

.page-home .home-highlight .card {
  height: 100%;
  border-left: 4px solid var(--c-accent);
  background: var(--c-surface);
}

/* ---- 02 两步操作 ---- */
.page-home .home-export {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--c-surface);
}

.page-home .home-export::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 14px;
  background: var(--c-primary);
  clip-path: polygon(0 0, 100% 0, calc(100% - 2.5rem) 100%, 0 100%);
}

.page-home .home-export__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-home .home-export__media img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.page-home .home-export__lead {
  font-size: var(--size-body);
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .home-steps__item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
}

.page-home .home-steps__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
}

.page-home .home-steps__body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 0.25rem;
}

.page-home .home-steps__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ---- 03 热区图 ---- */
.page-home .home-heatmap {
  position: relative;
  background:
    radial-gradient(circle at 15% 85%, rgba(46,139,87,0.5), transparent 40%),
    var(--c-primary);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-home .home-heatmap .home-chapter h2 {
  color: #fff;
}

.page-home .home-heatmap .home-kicker,
.page-home .home-security .home-kicker {
  background: var(--c-accent);
  color: var(--c-primary);
}

.page-home .home-heatmap__lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
}

.page-home .home-heatmap__wrap {
  margin: 2.25rem auto 0;
  max-width: 900px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.3);
  border: 1px solid rgba(212,175,55,0.4);
}

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

.page-home .home-heatmap__compare {
  margin: 1.5rem auto 0;
  max-width: 900px;
}

.page-home .home-heatmap__compare img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.page-home .home-heatmap__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 920px;
  margin-inline: auto;
}

.page-home .home-heatmap .card.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  height: 100%;
}

.page-home .home-heatmap .card.glass .card-title {
  color: var(--c-accent-light);
}

.page-home .home-heatmap .card.glass .card-body {
  color: rgba(255,255,255,0.85);
}

/* ---- 04 新用户 ---- */
.page-home .home-newcomer {
  background: var(--c-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-home .home-newcomer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.page-home .home-newcomer__copy > p {
  font-size: var(--size-body);
  line-height: 1.8;
  color: var(--c-muted);
  margin-bottom: 1.5rem;
}

.page-home .home-newcomer__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .home-newcomer__list li {
  padding: 1rem 1.25rem;
  background: var(--c-surface);
  border-right: 4px solid var(--c-accent);
  box-shadow: var(--shadow-sm);
}

.page-home .home-newcomer__list h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--font-head);
}

.page-home .home-newcomer__list p {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-home .home-newcomer__more {
  margin-top: 0.5rem;
}

.page-home .home-newcomer__panel {
  position: relative;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), transparent 38%),
    var(--c-primary);
  color: #fff;
  border: 1px solid rgba(212,175,55,0.42);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.page-home .home-newcomer__stat {
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
}

.page-home .home-newcomer__stat:last-child {
  margin-bottom: 0;
}

.page-home .home-newcomer__stat strong {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
}

.page-home .home-newcomer__stat span {
  margin-top: 0.375rem;
  font-size: var(--size-caption);
  color: rgba(255,255,255,0.7);
}

/* ---- 05 订阅回访 ---- */
.page-home .home-remind {
  background: var(--c-surface);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.page-home .home-remind::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light), var(--c-accent));
}

.page-home .home-remind__lead {
  max-width: 48rem;
  margin: 1rem auto 2.25rem;
  text-align: center;
  line-height: 1.8;
  color: var(--c-muted);
}

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

.page-home .home-remind__grid .card {
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-accent);
  background: var(--c-surface);
  height: 100%;
}

/* ---- 06 安全认证 ---- */
.page-home .home-security {
  background:
    radial-gradient(circle at 80% 0%, rgba(212,175,55,0.14), transparent 40%),
    var(--c-primary);
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-home .home-security .home-chapter h2 {
  color: #fff;
}

.page-home .home-security__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.page-home .home-security__copy p {
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.page-home .home-security__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.75rem;
}

.page-home .home-security__list li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
}

.page-home .home-security__list li::before {
  content: "✓";
  color: var(--c-accent);
  font-weight: 900;
  flex-shrink: 0;
}

.page-home .home-security__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.page-home .home-security__media {
  text-align: center;
}

.page-home .home-security__media img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border: 1px solid rgba(212,175,55,0.4);
  object-fit: cover;
}

.page-home .home-security__cert {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: var(--size-caption);
  letter-spacing: 0.1em;
  color: var(--c-accent-light);
}

/* ---- 响应式 ---- */
@media (min-width: 768px) {
  .page-home .home-hero__shell {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .page-home .home-hero__media img {
    max-width: 340px;
  }

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

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

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

  .page-home .home-newcomer__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .home-security__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__media img {
    max-width: 420px;
  }

  .page-home .home-export__grid {
    gap: 3.5rem;
  }

  .page-home .home-newcomer__grid {
    gap: 4rem;
  }

  .page-home .home-security__grid {
    gap: 4rem;
  }
}
