/* ============ 首页 page-home 专属样式 ============ */
.page-home {
  position: relative;
  overflow-x: hidden;
}

/* ---------- 通用区块骨架 ---------- */
.page-home .home-section {
  padding: 52px 0 24px;
  position: relative;
  scroll-margin-top: 32px;
}

.page-home .home-section--alt {
  background:
    linear-gradient(160deg, rgba(18, 59, 110, 0.36), rgba(10, 30, 60, 0.1) 60%),
    radial-gradient(circle at 85% 10%, rgba(157, 78, 221, 0.16), transparent 46%);
  border-top: 1px solid rgba(157, 78, 221, 0.26);
  border-bottom: 1px solid rgba(157, 78, 221, 0.26);
  padding-bottom: 48px;
}

.page-home .home-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
}

.page-home .home-section__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .home-section__index--light {
  border-color: rgba(212, 175, 55, 0.72);
  background: rgba(212, 175, 55, 0.08);
}

.page-home .home-section__title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  line-height: 1.22;
  color: var(--white);
  letter-spacing: 0.01em;
}

.page-home .home-section__intro {
  flex-basis: 100%;
  margin: 0;
  max-width: 72ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--silver);
}

/* ---------- 首屏：章节预览 + 大屏视觉 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 30px 0 34px;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -12%;
  width: 84%;
  height: 90%;
  background: radial-gradient(circle at 72% 28%, rgba(157, 78, 221, 0.32), rgba(10, 30, 60, 0) 66%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -14%;
  width: 72%;
  height: 62%;
  background: radial-gradient(circle at 34% 68%, rgba(0, 229, 255, 0.22), rgba(10, 30, 60, 0) 66%);
  pointer-events: none;
}

.page-home .home-hero .container {
  position: relative;
  z-index: 1;
}

.page-home .home-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric);
}

.page-home .home-title {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.18;
  font-size: clamp(1.95rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 229, 255, 0.14);
}

.page-home .home-lead {
  margin: 0 0 20px;
  max-width: 58ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.98rem, 2vw, 1.22rem);
  line-height: 1.9;
  color: var(--silver);
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero__visual {
  margin-top: 28px;
  position: relative;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  box-shadow: 0 30px 70px rgba(10, 30, 60, 0.72);
  background: var(--deep-space);
}

/* 章节预览轨道 */
.page-home .home-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 14px;
  margin-top: 34px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.page-home .home-track::-webkit-scrollbar {
  display: none;
}

.page-home .home-track__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 16px;
  background: rgba(18, 59, 110, 0.56);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

.page-home .home-track__item:hover,
.page-home .home-track__item:focus-visible {
  border-color: var(--gold);
  background: rgba(157, 78, 221, 0.14);
  transform: translateY(-4px);
  outline: none;
}

.page-home .home-track__num {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--electric);
}

.page-home .home-track__label {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--white);
}

.page-home .home-track__desc {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--silver);
}

/* ---------- V3.1 版本亮点 ---------- */
.page-home .home-highlights {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.page-home .home-highlights__main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .home-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-left: 3px solid var(--gold);
  border-radius: 18px;
  transition: background 0.3s, border-color 0.3s;
}

.page-home .home-highlight:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.32);
}

.page-home .home-highlight__num {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--electric);
  min-width: 2.2rem;
}

.page-home .home-highlight__body h3 {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--white);
}

.page-home .home-highlight__body p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .home-highlights__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 10px 0 0;
}

.page-home .home-highlights__link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--champagne);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 231, 168, 0.4);
  transition: border-color 0.3s, color 0.3s;
}

.page-home .home-highlights__link:hover,
.page-home .home-highlights__link:focus-visible {
  color: var(--white);
  border-color: var(--white);
  outline: none;
}

.page-home .home-highlights__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  box-shadow: 0 24px 56px rgba(10, 30, 60, 0.6);
}

/* ---------- 新版入口列表 ---------- */
.page-home .home-entries {
  display: grid;
  gap: 30px;
}

.page-home .home-entries__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-home .home-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: rgba(10, 30, 60, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  transition: border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-within {
  border-color: var(--electric);
  background: rgba(18, 59, 110, 0.5);
  transform: translateY(-4px);
}

.page-home .home-entry__num {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--neon);
}

.page-home .home-entry h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--white);
}

.page-home .home-entry p {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--silver);
}

.page-home .home-entry .badge {
  align-self: flex-start;
  margin-top: auto;
}

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

.page-home .home-entries__side img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.page-home .home-entries__panel {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.14), rgba(10, 30, 60, 0.46));
  border: 1px solid rgba(157, 78, 221, 0.32);
  border-radius: 18px;
  padding: 22px 20px;
}

.page-home .home-entries__panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.page-home .home-entries__panel p {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--silver);
}

/* ---------- 记录明细归档 ---------- */
.page-home .home-records {
  display: grid;
  gap: 30px;
}

.page-home .home-records__timeline {
  position: relative;
  padding-left: 2px;
  display: grid;
  gap: 14px;
}

.page-home .home-records__timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--electric), var(--neon) 60%, var(--gold));
  opacity: 0.7;
}

.page-home .home-record {
  position: relative;
  padding: 18px 18px 18px 42px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.page-home .home-record::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 30px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--electric);
  border: 2px solid var(--deep-space);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.25);
}

.page-home .home-record--latest {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(18, 59, 110, 0.4));
  border-color: rgba(212, 175, 55, 0.4);
}

.page-home .home-record--latest::before {
  background: var(--gold);
  border-color: var(--deep-space);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45), 0 0 14px rgba(212, 175, 55, 0.55);
}

.page-home .home-record time {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.16rem;
  color: var(--white);
}

.page-home .home-record p {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .home-records__range {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  color: var(--champagne);
}

.page-home .home-records__side .home-records__panel {
  background: rgba(10, 30, 60, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 20px;
  padding: 24px 22px;
}

.page-home .home-records__panel h3 {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--white);
}

.page-home .home-records__panel ul {
  margin: 0 0 20px;
  padding-left: 20px;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--silver);
}

.page-home .home-records__panel li::marker {
  color: var(--electric);
}

/* ---------- 下载中心 ---------- */
.page-home .home-downloads {
  display: grid;
  gap: 18px;
}

.page-home .home-download-card {
  position: relative;
  border-radius: 22px;
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-download-card--android {
  border-top: 4px solid var(--gold);
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.1), rgba(10, 30, 60, 0.42));
}

.page-home .home-download-card--ios {
  border-top: 4px solid var(--electric);
  background: linear-gradient(150deg, rgba(0, 229, 255, 0.1), rgba(10, 30, 60, 0.42));
}

.page-home .home-download-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(157, 78, 221, 0.3);
  border: 1px solid rgba(157, 78, 221, 0.5);
}

.page-home .home-download-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
}

.page-home .home-download-card p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--silver);
}

.page-home .home-download-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 0;
}

.page-home .home-download-card li {
  padding: 5px 12px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--silver);
}

.page-home .home-downloads__safety {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  padding: 24px 22px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(10, 30, 60, 0.5));
}

.page-home .home-downloads__safety img {
  display: block;
  width: 132px;
  max-width: 40%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.22);
}

.page-home .home-downloads__safety-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--white);
}

.page-home .home-downloads__safety-copy p {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--silver);
}

.page-home .home-downloads__link {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--champagne);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 231, 168, 0.4);
  transition: color 0.3s, border-color 0.3s;
}

.page-home .home-downloads__link:hover,
.page-home .home-downloads__link:focus-visible {
  color: var(--white);
  border-color: var(--white);
  outline: none;
}

/* ---------- 回访用户专属 ---------- */
.page-home .home-visit {
  position: relative;
  padding: 34px 24px 30px;
  border-radius: 28px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background:
    radial-gradient(circle at 88% 16%, rgba(157, 78, 221, 0.3), transparent 46%),
    radial-gradient(circle at 12% 90%, rgba(0, 229, 255, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(18, 59, 110, 0.7), rgba(10, 30, 60, 0.5));
  text-align: center;
  overflow: hidden;
}

.page-home .home-visit .home-section__index {
  margin-bottom: 14px;
}

.page-home .home-visit__title {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.25;
  color: var(--white);
}

.page-home .home-visit__lead {
  margin: 0 auto 24px;
  max-width: 56ch;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--silver);
}

.page-home .home-visit__stats {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.page-home .home-visit__stat {
  display: grid;
  gap: 4px;
  padding: 16px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--silver);
}

.page-home .home-visit__stat .stat-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold);
}

.page-home .home-visit__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .home-visit__note {
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--silver);
}

/* ---------- 信任声明 ---------- */
.page-home .home-trust {
  padding: 36px 0 48px;
}

.page-home .home-trust__claim {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--champagne);
}

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

.page-home .home-trust__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--electric);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  transition: color 0.3s, border-color 0.3s;
}

.page-home .home-trust__links a:hover,
.page-home .home-trust__links a:focus-visible {
  color: var(--white);
  border-color: var(--white);
  outline: none;
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 640px) {
  .page-home .home-entries__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-home .home-downloads__safety {
    grid-column: 1 / -1;
    grid-template-columns: 150px 1fr;
  }

  .page-home .home-downloads__safety img {
    width: 150px;
    max-width: 150px;
  }

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

/* ---------- 桌面端 ---------- */
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 56px 0 44px;
  }

  .page-home .home-hero .container {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .home-hero__top {
    grid-column: 1;
    padding-top: 12px;
  }

  .page-home .home-hero__visual {
    grid-column: 2;
    margin-top: 12px;
  }

  .page-home .home-track {
    grid-column: 1 / -1;
    margin-top: 40px;
  }

  .page-home .home-title {
    font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  }

  .page-home .home-section {
    padding: 68px 0 28px;
  }

  .page-home .home-section--alt {
    padding-bottom: 64px;
  }

  .page-home .home-section__head {
    align-items: center;
    gap: 10px 20px;
    margin-bottom: 38px;
  }

  .page-home .home-section__intro {
    flex-basis: auto;
    margin-left: auto;
    margin-right: 8px;
    max-width: 52ch;
    text-align: right;
  }

  .page-home .home-highlights {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 36px;
  }

  .page-home .home-highlights__main {
    gap: 14px;
  }

  .page-home .home-highlights__visual {
    position: sticky;
    top: 30px;
    align-self: start;
  }

  .page-home .home-entries {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 36px;
    align-items: start;
  }

  .page-home .home-entries__side {
    gap: 20px;
    position: sticky;
    top: 30px;
  }

  .page-home .home-records {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: start;
  }

  .page-home .home-records__side {
    position: sticky;
    top: 30px;
  }

  .page-home .home-downloads {
    gap: 22px;
  }

  .page-home .home-download-card {
    padding: 30px 26px;
  }

  .page-home .home-visit {
    padding: 50px 56px 42px;
  }
}
