.page-home {
  --home-gold-grad: linear-gradient(135deg, #E8D9A0 0%, #C9A227 45%, #B08A1D 72%, #E8D9A0 100%);
  background:
    linear-gradient(rgba(244, 241, 235, 0.6), rgba(244, 241, 235, 0.6)),
    repeating-linear-gradient(135deg, rgba(11, 30, 63, 0.035) 0 1px, transparent 1px 12px);
  overflow-x: hidden;
}

/* ========== 首屏 ========== */
.page-home .home-hero {
  position: relative;
  color: var(--ivory);
  padding: clamp(48px, 8vw, 96px) 0 56px;
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 162, 39, 0.22) 0 160px, transparent 42%),
    radial-gradient(circle at 10% 88%, rgba(31, 77, 58, 0.4) 0 200px, transparent 55%),
    linear-gradient(150deg, #0A1120 0%, var(--royal-blue) 58%, #16345F 100%);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.page-home .home-hero__kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--light-gold);
}

.page-home .home-hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.22;
  color: var(--ivory);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.page-home .home-hero__sep {
  font-style: normal;
  font-family: var(--font-sans);
  color: var(--gold);
  margin: 0 0.1em;
  text-shadow: 0 2px 18px rgba(201, 162, 39, 0.6);
}

.page-home .home-hero__lead {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.7;
  color: rgba(244, 241, 235, 0.85);
  max-width: 560px;
  margin-bottom: 28px;
  border-left: 3px solid rgba(201, 162, 39, 0.45);
  padding-left: 20px;
}

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

.page-home .home-hero__fact {
  background: rgba(244, 241, 235, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-top: 2px solid var(--gold);
  padding: 14px 8px;
  min-width: 0;
}

.page-home .home-hero__fact-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
  white-space: nowrap;
}

.page-home .home-hero__fact-label {
  margin-top: 6px;
  display: block;
  font-size: 12.5px;
  color: rgba(244, 241, 235, 0.68);
  line-height: 1.4;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .home-hero__actions .btn {
  min-width: 180px;
  justify-content: center;
}

.page-home .home-hero__ghost {
  border-color: rgba(201, 162, 39, 0.65);
  color: var(--light-gold);
}

.page-home .home-hero__ghost:hover {
  background: rgba(201, 162, 39, 0.12);
  color: #fff;
  border-color: var(--gold);
}

.page-home .home-hero__note {
  font-size: 13px;
  color: rgba(244, 241, 235, 0.6);
  border-top: 1px dashed rgba(201, 162, 39, 0.3);
  padding-top: 12px;
}

.page-home .home-hero__visual {
  position: relative;
}

.page-home .home-hero__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(201, 162, 39, 0.5);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-home .home-hero__ring {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 30, 63, 0.92);
  border: 1px solid rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 8px rgba(11, 30, 63, 0.5), 0 0 0 9px rgba(201, 162, 39, 0.28);
}

.page-home .home-hero__ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: home-ring-spin 32s linear infinite;
  transform-origin: center;
}

@keyframes home-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.page-home .home-hero__ring-text {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  color: var(--light-gold);
  font-family: var(--font-serif);
}

/* ========== 章节标题 ========== */
.page-home .section-head {
  margin-bottom: 34px;
}

.page-home .section-head--center {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.page-home .section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--crimson);
  border: 1px solid rgba(107, 45, 45, 0.25);
  border-left: 3px solid var(--crimson);
  padding: 4px 12px;
  margin-bottom: 14px;
  background: rgba(107, 45, 45, 0.04);
}

.page-home .section-head h2,
.page-home .section-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.3;
  color: var(--royal-blue);
  font-weight: 700;
}

.page-home .section-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
  margin-top: 12px;
}

/* ========== 对照表 ========== */
.page-home .home-compare {
  background: var(--ivory);
  padding: var(--section-pad) 0;
}

.page-home .home-compare__figure {
  margin: 0 0 32px;
}

.page-home .home-compare__figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 39, 0.35);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.page-home .figure-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  text-align: right;
}

.page-home .home-compare__table {
  border: 1px solid #ddd5c5;
  background: #fff;
  box-shadow: 0 10px 32px rgba(11, 30, 63, 0.07);
  min-width: 0;
}

.page-home .home-compare__thead {
  display: none;
}

.page-home .home-compare__row {
  border-top: 1px solid #eee4d6;
  background: #fff;
}

.page-home .home-compare__row:first-of-type {
  border-top: 0;
}

.page-home .home-compare__row:hover {
  background: #FCF9F3;
}

.page-home .home-compare__toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  padding: 18px 14px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.page-home .home-compare__freq {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--crimson);
  background: rgba(107, 45, 45, 0.08);
  border: 1px solid rgba(107, 45, 45, 0.2);
  padding: 2px 8px;
  white-space: nowrap;
}

.page-home .home-compare__name {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--royal-blue);
}

.page-home .home-compare__loc {
  flex: 1 0 100%;
  font-size: 13.5px;
  color: var(--mist);
  margin-top: 4px;
}

.page-home .home-compare__depth {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--jade);
  background: rgba(31, 77, 58, 0.09);
  border: 1px solid rgba(31, 77, 58, 0.2);
  padding: 2px 8px;
  white-space: nowrap;
}

.page-home .home-compare__toggle .accordion-icon {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(11, 30, 63, 0.25);
  color: var(--royal-blue);
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.page-home .home-compare__panel {
  border-top: 1px solid #F0E7DA;
  background: #FAF6EF;
}

.page-home .home-compare__detail {
  font-size: 14px;
  line-height: 1.7;
  color: #3F5068;
  padding: 16px 18px 20px;
  border-left: 3px solid var(--gold);
  margin: 0 12px 10px 0;
}

/* ========== 老用户切换指引 ========== */
.page-home .home-switch {
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 39, 0.16), transparent 36%),
    radial-gradient(circle at 85% 80%, rgba(31, 77, 58, 0.45), transparent 42%),
    linear-gradient(140deg, #0A1122, var(--royal-blue) 62%, #10274D);
  color: var(--ivory);
  border-top: 2px solid rgba(201, 162, 39, 0.8);
  border-bottom: 2px solid rgba(201, 162, 39, 0.8);
  padding: var(--section-pad) 0;
}

.page-home .home-switch .section-kicker {
  color: var(--light-gold);
  border-color: rgba(201, 162, 39, 0.5);
  border-left-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.page-home .home-switch .section-head h2,
.page-home .home-switch .section-title {
  color: var(--ivory);
}

.page-home .home-switch .section-desc {
  color: rgba(244, 241, 235, 0.72);
}

.page-home .home-switch__grid {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 36px;
}

.page-home .home-switch__visual svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.page-home .home-switch__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.page-home .home-switch__step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}

.page-home .home-switch__step:first-child {
  border-top: 0;
}

.page-home .home-switch__step-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.1);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.page-home .home-switch__step h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ivory);
}

.page-home .home-switch__step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 241, 235, 0.72);
}

/* ========== 移动端适配 ========== */
.page-home .home-mobile {
  background: var(--ivory);
  padding: var(--section-pad) 0;
  border-bottom: 1px solid #EFE6D6;
}

.page-home .home-mobile__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .home-mobile__visual {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.page-home .home-mobile__visual img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  background: var(--royal-blue);
  border: 1px solid rgba(201, 162, 39, 0.4);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home .home-mobile__device {
  position: absolute;
  left: 8px;
  bottom: 10%;
  width: 72px;
  height: 128px;
  border: 2px solid var(--gold);
  background: rgba(11, 30, 63, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  padding-top: 12px;
}

.page-home .home-mobile__device-bar {
  width: 42px;
  height: 5px;
  border-radius: 4px;
  background: rgba(201, 162, 39, 0.6);
  margin-bottom: 18px;
}

.page-home .home-mobile__device-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.page-home .home-mobile__content .section-head {
  margin-bottom: 16px;
}

.page-home .home-mobile__lead {
  font-size: 15.5px;
  line-height: 1.75;
  color: #3C4D64;
  margin-bottom: 20px;
}

.page-home .home-mobile__points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-mobile__points li {
  position: relative;
  padding: 12px 14px 12px 48px;
  background: #fff;
  border: 1px solid #EAE0CE;
  border-left: 3px solid var(--gold);
  font-size: 14px;
  line-height: 1.6;
  color: #31435C;
}

.page-home .home-mobile__points li::before {
  content: "◆";
  position: absolute;
  left: 18px;
  top: 13px;
  color: var(--gold);
  font-size: 12px;
}

.page-home .home-mobile__more {
  border-color: rgba(11, 30, 63, 0.35);
  color: var(--royal-blue);
}

/* ========== 全站栏目速览 ========== */
.page-home .home-directory {
  background: linear-gradient(180deg, #F4F1EB 0%, #FBF8F2 100%);
  padding: var(--section-pad) 0;
}

.page-home .home-directory__wrap {
  display: grid;
  gap: 32px;
  margin-top: 38px;
}

.page-home .home-directory__side {
  margin: 0;
  position: relative;
}

.page-home .home-directory__side img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 39, 0.35);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home .home-directory__grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-home .home-directory__cat {
  background: #fff;
  border: 1px solid #E5DCC9;
  min-width: 0;
  box-shadow: 0 6px 20px rgba(11, 30, 63, 0.05);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .home-directory__cat:hover {
  box-shadow: 0 14px 32px rgba(11, 30, 63, 0.12);
  border-color: rgba(201, 162, 39, 0.55);
}

.page-home .home-directory__cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 16px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.page-home .home-directory__cat[data-open] .home-directory__cat-head {
  border-bottom-color: #F0E7DA;
}

.page-home .home-directory__cat-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  background: var(--royal-blue);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  flex: 0 0 34px;
}

.page-home .home-directory__cat-name {
  flex: 1 1 auto;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--royal-blue);
}

.page-home .home-directory__cat-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  border: 1px solid #E7DCC7;
  padding: 2px 8px;
  background: #FBF8F2;
  white-space: nowrap;
}

.page-home .home-directory__cat .accordion-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(11, 30, 63, 0.22);
  color: var(--royal-blue);
  position: relative;
  flex: 0 0 24px;
}

.page-home .home-directory__cat-panel {
  background: #FDFBF7;
}

.page-home .home-directory__cat-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 14px;
}

.page-home .home-directory__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #F0E7D8;
  font-size: 13px;
  color: #34455D;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-width: 0;
}

.page-home .home-directory__item:hover {
  border-color: rgba(201, 162, 39, 0.6);
  color: var(--royal-blue);
  background: #FFFDF8;
}

.page-home .home-directory__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  padding: 1px 5px;
  flex: 0 0 auto;
}

/* ========== 平板 ========== */
@media (min-width: 768px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .page-home .home-hero__img {
    height: 520px;
  }

  .page-home .home-compare__thead {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.5fr 0.7fr 32px;
    gap: 14px;
    padding: 12px 18px;
    background: var(--royal-blue);
    color: var(--light-gold);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .page-home .home-compare__toggle {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.5fr 0.7fr 32px;
    gap: 14px;
    align-items: center;
    padding: 18px;
  }

  .page-home .home-compare__freq {
    font-size: 12px;
    justify-self: start;
  }

  .page-home .home-compare__loc {
    flex: none;
    margin-top: 0;
    font-size: 14px;
  }

  .page-home .home-compare__depth {
    justify-self: start;
  }

  .page-home .home-switch__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

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

  .page-home .home-directory__cat-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== 桌面 ========== */
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 88px 0 72px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }

  .page-home .home-hero__img {
    height: min(680px, 82vh);
    max-height: none;
  }

  .page-home .home-hero__ring {
    right: 22px;
    bottom: 24px;
    width: 148px;
    height: 148px;
  }

  .page-home .home-switch__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .page-home .home-directory__wrap {
    grid-template-columns: 236px 1fr;
    gap: 40px;
    align-items: start;
  }

  .page-home .home-directory__side {
    position: sticky;
    top: 24px;
  }

  .page-home .home-directory__side img {
    max-height: 640px;
  }
}

@media (min-width: 1200px) {
  .page-home .home-directory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========== 窄屏微调 ========== */
@media (max-width: 379px) {
  .page-home .home-hero__facts {
    grid-template-columns: 1fr;
  }

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

  .page-home .home-switch__step {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }
}
