.page-home {
  --home-rule: rgba(23, 50, 58, .13);
  --home-panel: #FFFFFF;
  --home-glass: rgba(255, 255, 255, .62);
  color: var(--text-900);
  background: var(--warm-50);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 5vw, 60px) 0 clamp(30px, 4.6vw, 56px);
  background:
    radial-gradient(1100px 480px at 10% -14%, var(--red-100) 0%, rgba(251, 247, 240, 0) 72%),
    linear-gradient(162deg, var(--warm-50) 0%, var(--warm-100) 58%, #F7EFE5 100%);
}

.page-home .hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-home .hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 20%;
  opacity: .2;
}

.page-home .hero-inner {
  position: relative;
}

.page-home .home-context {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--ink-500);
}

.page-home .home-context span {
  color: var(--red-700);
  font-weight: 700;
}

.page-home .home-title {
  margin: 0 0 16px;
  max-width: 17em;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 5.6vw, 52px);
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--ink-900);
}

.page-home .home-lede {
  margin: 0;
  max-width: 42em;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.86;
  color: var(--ink-700);
}

/* ---------- 入口分流 ---------- */
.page-home .entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 44px);
}

.page-home .entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.6vw, 30px);
  border-radius: var(--radius-l);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform .26s ease, box-shadow .26s ease;
}

.page-home .entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  pointer-events: none;
}

.page-home .entry-card--new {
  background: linear-gradient(155deg, var(--red-500) 0%, var(--red-700) 76%);
}

.page-home .entry-card--old {
  background: linear-gradient(158deg, var(--ink-700) 0%, var(--ink-900) 80%);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--gold-500), var(--shadow-soft);
}

.page-home .entry-card:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.page-home .entry-visual .img-frame {
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .1);
}

.page-home .entry-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .entry-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold-200);
}

.page-home .entry-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.26;
  color: #fff;
}

.page-home .entry-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.82;
  color: rgba(255, 255, 255, .88);
}

.page-home .entry-fit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
}

.page-home .entry-fit li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.page-home .entry-fit li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: .58em;
  background: var(--gold-500);
  transform: rotate(45deg);
}

.page-home .entry-go {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .08em;
  color: #fff;
}

.page-home .entry-go::after {
  content: "→";
  display: inline-block;
  color: var(--gold-200);
  transition: transform .22s ease;
}

.page-home .entry-card:hover .entry-go::after,
.page-home .entry-card:focus-visible .entry-go::after {
  transform: translateX(4px);
}

/* ---------- 章节预览 ---------- */
.page-home .path-index {
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: clamp(18px, 3vw, 26px);
  border-top: 1px solid var(--home-rule);
}

.page-home .path-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.page-home .path-head .eyebrow {
  margin: 0;
  color: var(--red-700);
}

.page-home .path-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-500);
}

.page-home .path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-home .path-item a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--home-rule);
  border-radius: var(--radius-m);
  background: var(--home-glass);
  text-decoration: none;
  color: var(--text-900);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.page-home .path-item a:hover,
.page-home .path-item a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold-500);
  background: var(--home-panel);
}

.page-home .path-item a:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.page-home .path-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  color: var(--red-700);
}

.page-home .path-body {
  display: block;
}

.page-home .path-label {
  display: block;
  font-weight: 900;
  font-size: 14.5px;
  letter-spacing: .03em;
  color: var(--ink-900);
}

.page-home .path-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.66;
  color: var(--ink-500);
}

.page-home .path-more {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-500);
}

.page-home .path-more a {
  color: var(--red-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-200);
}

.page-home .path-more a:hover,
.page-home .path-more a:focus-visible {
  border-bottom-color: var(--red-700);
}

/* ---------- 主体骨架与侧轨 ---------- */
.page-home .home-shell {
  padding-top: clamp(6px, 1.5vw, 14px);
  padding-bottom: clamp(38px, 6vw, 76px);
}

.page-home .rail-nav {
  display: none;
}

.page-home .rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .rail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0 11px 14px;
  border-left: 2px solid var(--home-rule);
  text-decoration: none;
  color: var(--ink-500);
  transition: border-color .2s ease, color .2s ease;
}

.page-home .rail-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -.02em;
}

.page-home .rail-label {
  font-size: 11.5px;
  letter-spacing: .04em;
  writing-mode: horizontal-tb;
}

.page-home .rail-item:hover,
.page-home .rail-item:focus-visible {
  color: var(--ink-900);
  border-left-color: var(--gold-500);
}

.page-home .rail-item.is-active {
  color: var(--ink-900);
  border-left-color: var(--red-700);
}

.page-home .rail-item.is-active .rail-num {
  color: var(--red-700);
}

/* ---------- 章节 ---------- */
.page-home .flow-section {
  padding: clamp(28px, 5vw, 60px) 0;
  border-top: 1px solid var(--home-rule);
}

.page-home .home-flow > .flow-section:first-child {
  border-top: 0;
  padding-top: clamp(20px, 3.4vw, 36px);
}

.page-home .flow-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(20px, 3.4vw, 34px);
}

.page-home .flow-index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--red-700);
}

.page-home .flow-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.26;
  color: var(--ink-900);
}

.page-home .flow-lede {
  margin: 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.86;
  color: var(--ink-700);
}

/* ---------- 三步 ---------- */
.page-home .step-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .step-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  padding-left: clamp(20px, 2.8vw, 30px);
  border-radius: var(--radius-m);
  background: var(--home-panel);
  border: 1px solid var(--home-rule);
  overflow: hidden;
}

.page-home .step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red-500), var(--gold-500));
}

.page-home .step-num {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--red-500);
}

.page-home .step-card h3 {
  margin: 12px 0 8px;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink-900);
}

.page-home .step-card p:last-child {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.82;
  color: var(--ink-700);
}

/* ---------- 工具索引 ---------- */
.page-home .flow-section .img-frame--pano {
  border-radius: var(--radius-l);
}

.page-home .flow-section .img-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .tool-grid {
  list-style: none;
  margin: clamp(16px, 2.6vw, 24px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .tool-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--warm-100);
  border: 1px solid transparent;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.page-home .tool-tile:hover {
  transform: translateY(-2px);
  background: var(--home-panel);
  border-color: var(--gold-500);
}

.page-home .tool-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--red-700);
}

.page-home .tool-name {
  font-weight: 900;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-900);
}

.page-home .tool-meta {
  font-size: 13px;
  line-height: 1.68;
  color: var(--ink-500);
}

.page-home .tool-more {
  margin: 16px 0 0;
  font-size: 14px;
}

.page-home .tool-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-700);
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 2px solid var(--gold-200);
  padding-bottom: 2px;
}

.page-home .tool-more a:hover,
.page-home .tool-more a:focus-visible {
  border-bottom-color: var(--red-700);
}

/* ---------- 反馈与信任 ---------- */
.page-home .trust-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(20px, 3.2vw, 38px);
  border-radius: var(--radius-l);
  background: linear-gradient(152deg, var(--ink-700) 0%, var(--ink-900) 82%);
  color: #fff;
}

.page-home .trust-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-500) 0%, var(--gold-500) 52%, var(--ink-500) 100%);
}

.page-home .trust-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.3;
  color: #fff;
}

.page-home .trust-text {
  margin: 0;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.84;
  color: rgba(255, 255, 255, .84);
}

.page-home .trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .trust-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .48);
}

.page-home .trust-band .btn--ghost:hover,
.page-home .trust-band .btn--ghost:focus-visible {
  color: var(--gold-200);
  border-color: var(--gold-500);
}

.page-home .trust-stats {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-home .trust-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.1;
  color: var(--gold-200);
}

.page-home .stat-label {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

.page-home .trust-facts {
  margin: 0;
  display: grid;
  gap: 0;
}

.page-home .trust-fact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .18);
}

.page-home .trust-fact:last-child {
  border-bottom: 0;
}

.page-home .trust-fact dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
}

.page-home .trust-fact dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
  .page-home .path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 760px) {
  .page-home .step-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 960px) {
  .page-home .entry-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 20px;
  }

  .page-home .path-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .page-home .trust-band {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .home-shell {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: clamp(20px, 3vw, 44px);
    align-items: start;
  }

  .page-home .rail-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .path-item a,
  .page-home .tool-tile,
  .page-home .entry-go::after {
    transition: none;
  }

  .page-home .entry-card:hover,
  .page-home .path-item a:hover,
  .page-home .tool-tile:hover {
    transform: none;
  }
}
