.page-home {
  --home-pad: clamp(20px, 4vw, 52px);
  --home-gap: clamp(20px, 3vw, 36px);
}

/* ---------- 01 框景首屏 ---------- */
.page-home .hero {
  padding: 20px 0 0;
}

.page-home .hero-frame {
  position: relative;
  background: var(--white);
  padding: calc(var(--home-pad) + 14px) var(--home-pad) var(--home-pad);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  left: var(--home-pad);
  right: var(--home-pad);
  top: 10px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 1px, transparent 1px 16px);
  opacity: .55;
}

.page-home .hero-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-copy .lede {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink);
}

.page-home h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 5.6vw, 56px);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 900;
  color: var(--ink);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.page-home .hero-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03);
}

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 241, 228, .34), rgba(46, 127, 184, .12));
  pointer-events: none;
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: end;
  }
}

/* 入口导航带 */
.page-home .entry-band {
  display: flex;
  margin-top: clamp(24px, 4vw, 42px);
  border-top: var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .entry-item {
  flex: 0 0 auto;
  min-width: 172px;
  display: grid;
  gap: 4px;
  padding: 14px 18px 18px;
  border-right: var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background .2s var(--ease);
}

.page-home .entry-item:last-child {
  border-right: 0;
}

.page-home .entry-item:hover,
.page-home .entry-item:focus-visible {
  background: var(--mist);
}

.page-home .entry-num {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--flag-deep);
}

.page-home .entry-name {
  font-size: 16px;
  font-weight: 800;
}

.page-home .entry-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sky-deep);
}

@media (min-width: 900px) {
  .page-home .entry-band {
    overflow: visible;
  }
  .page-home .entry-item {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---------- 页面骨架 ---------- */
.page-home .home-shell {
  display: grid;
  gap: clamp(26px, 4vw, 40px);
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

@media (min-width: 1000px) {
  .page-home .home-shell {
    grid-template-columns: 172px minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 72px);
  }
}

.page-home .home-body {
  min-width: 0;
  display: grid;
  gap: clamp(52px, 7vw, 92px);
}

/* 侧边索引与路径面板 */
.page-home .home-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .rail-num {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--flag-deep);
}

.page-home .rail-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .rail-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 7px 13px;
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  color: var(--sky-deep);
  font-size: 13px;
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .rail-list a:hover,
.page-home .rail-list a:focus-visible {
  border-color: var(--sky);
  color: var(--ink);
}

.page-home .rail-list .mono {
  font-size: 11px;
  color: var(--flag-deep);
}

@media (min-width: 1000px) {
  .page-home .home-rail {
    position: sticky;
    top: 96px;
  }
  .page-home .rail-list {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0;
  }
  .page-home .rail-list a {
    width: 100%;
    border: 0;
    border-bottom: 1px dashed var(--stone);
    border-radius: 0;
    background: transparent;
    padding: 8px 0;
  }
}

.page-home .status-panel {
  margin-top: 10px;
  padding: 14px 16px 18px;
  background: var(--indigo);
  color: var(--mist);
  font-size: 13px;
  line-height: 1.6;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 16px 100%, 0 100%);
}

.page-home .status-title {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

/* ---------- 章节公共 ---------- */
.page-home .section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.22;
  letter-spacing: -.01em;
  font-weight: 900;
  color: var(--ink);
}

.page-home .section-lede {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink);
}

/* ---------- 02 站内检索 ---------- */
.page-home .search-grid {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid;
  gap: var(--home-gap);
}

@media (min-width: 880px) {
  .page-home .search-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.page-home .search-block {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  background: var(--mist);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.page-home .search-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  background: var(--white);
  border: 1px solid var(--sky);
}

.page-home .search-label {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--sky-deep);
  white-space: nowrap;
}

.page-home .search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.page-home .search-copy {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--flag);
  background: var(--white);
  color: var(--flag-deep);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.page-home .search-copy:hover,
.page-home .search-copy:focus-visible {
  background: var(--flag);
  color: var(--white);
}

.page-home .copy-hint {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--sky-deep);
}

.page-home .result-block {
  margin-top: 18px;
}

.page-home .result-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--sky-deep);
}

.page-home .result-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .result-list a {
  display: inline-block;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--stone);
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .result-list a:hover,
.page-home .result-list a:focus-visible {
  border-color: var(--sky);
  color: var(--sky-deep);
}

.page-home .search-media {
  margin: 0;
  overflow: hidden;
}

.page-home .search-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .note-line {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--flag);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 03 收藏与常用入口 ---------- */
.page-home .steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(24px, 4vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

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

.page-home .steps li {
  position: relative;
  padding: 20px 20px 20px 62px;
  background: var(--white);
  border-top: 3px solid var(--sky);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 19px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--flag-deep);
}

.page-home .steps strong {
  font-weight: 800;
}

.page-home .pin-grid {
  margin-top: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 16px;
}

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

.page-home .pin-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  background: var(--white);
  border: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .pin-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
  filter: brightness(.78);
}

.page-home .pin-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.page-home .pin-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .pin-btn {
  justify-self: start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--stone);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}

.page-home .pin-btn:hover,
.page-home .pin-btn:focus-visible {
  border-color: var(--sky);
}

.page-home .pin-btn[aria-pressed="true"] {
  border-color: var(--flag);
  background: var(--white);
  color: var(--flag-deep);
}

.page-home .pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stone);
}

.page-home .pin-btn[aria-pressed="true"] .pin-dot {
  background: var(--flag);
}

/* ---------- 04 注册反馈 ---------- */
.page-home .feedback-grid {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid;
  gap: var(--home-gap);
}

@media (min-width: 880px) {
  .page-home .feedback-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
}

.page-home .feedback-copy {
  min-width: 0;
}

.page-home .feedback-copy h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.page-home .feedback-copy p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
}

.page-home .check-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
}

.page-home .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 11px;
  height: 11px;
  background: var(--glacier);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-home .feedback-media {
  margin: 0;
  overflow: hidden;
}

.page-home .feedback-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 05 栏目状态 ---------- */
.page-home .status-grid {
  margin-top: clamp(24px, 4vw, 40px);
  display: grid;
  gap: var(--home-gap);
}

@media (min-width: 880px) {
  .page-home .status-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
  }
}

.page-home .status-media {
  margin: 0;
  overflow: hidden;
}

.page-home .status-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.page-home .board {
  padding: clamp(22px, 3.4vw, 34px);
  background: var(--indigo);
  color: var(--mist);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.page-home .board-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gold);
}

.page-home .board-version {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.page-home .board-list {
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.page-home .board-item {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 10px;
}

.page-home .board-item dt {
  margin: 0;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--gold);
}

.page-home .board-item dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.page-home .board-note {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .entry-item,
  .page-home .rail-list a,
  .page-home .search-copy,
  .page-home .result-list a,
  .page-home .pin-btn {
    transition: none;
  }
}
