.page-home {
  --home-gap: clamp(32px, 5vw, 72px);
  background: var(--deep);
  color: var(--mist);
  overflow-x: clip;
}

.page-home .home-wrap {
  display: grid;
  gap: var(--home-gap);
  padding-block: clamp(18px, 3vw, 32px) clamp(48px, 7vw, 88px);
}

/* 上下文提示 */
.page-home .home-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.page-home .home-crumb :last-child {
  color: var(--cyan);
}

/* 首屏 */
.page-home .hero {
  position: relative;
  display: grid;
  gap: 16px;
}
.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 340px;
  background: var(--glow-cyan);
  pointer-events: none;
}

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

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

.page-home .hero-core {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  border: 2px solid var(--line);
  background: linear-gradient(155deg, var(--hold) 0%, var(--deep) 74%);
  box-shadow: var(--shadow-hard);
}

.page-home .hero-core h1 {
  margin: 14px 0 16px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(27px, 7.2vw, 58px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .hero-lead {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

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

.page-home .hero-meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.page-home .hero-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  background: var(--hold);
  overflow: hidden;
}
.page-home .hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.page-home .hero-shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* 斜切入口卡 */
.page-home .lane-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "desc desc"
    "go go";
  gap: 6px 12px;
  align-items: baseline;
  padding: 18px 20px 24px;
  border: 2px solid var(--line);
  background: var(--hold);
  color: var(--mist);
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}
.page-home .lane-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  background: var(--line);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  transition: background 0.24s var(--ease);
}
.page-home .lane-card--alt {
  border-left: 4px solid var(--coral);
}
.page-home .lane-card:hover,
.page-home .lane-card:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--cyan);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.38);
}
.page-home .lane-card:hover::after,
.page-home .lane-card:focus-visible::after {
  background: var(--coral);
}
.page-home .lane-num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.page-home .lane-title {
  grid-area: title;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.page-home .lane-desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.page-home .lane-go {
  grid-area: go;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--coral);
}

/* 章节标题 */
.page-home .sec-head {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.page-home .sec-head h2 {
  font-size: clamp(22px, 4.6vw, 36px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.page-home .sec-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 分类入口 */
.page-home .cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--line);
}
.page-home .cat-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.page-home .cat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--cyan);
  opacity: 0.85;
}
.page-home .cat-body h3 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--mist);
}
.page-home .cat-body p {
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-soft);
}
.page-home .cat-item .btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 10px;
}

/* 资源列表 */
.page-home .ledger-body {
  display: grid;
  gap: 24px;
}
.page-home .ledger-main {
  min-width: 0;
}
.page-home .filter {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.page-home .filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.page-home .filter-chip {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--hold);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.page-home .filter-input:checked + .filter-chip {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--deep);
  font-weight: 700;
}
.page-home .filter-input:focus-visible + .filter-chip {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.page-home .filter-input:not(:checked) + .filter-chip:hover {
  border-color: var(--cyan);
  color: var(--mist);
}

.page-home .ledger-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .ledger-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  background: linear-gradient(120deg, var(--hold), rgba(6, 24, 38, 0.85));
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.page-home .ledger-item:hover {
  border-left-color: var(--cyan);
  transform: translateX(2px);
}
.page-home .ledger-tag {
  justify-self: start;
  padding: 2px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.page-home .ledger-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--mist);
}
.page-home .ledger-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.page-home .ledger-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.page-home:has(#f-entry:checked) .ledger-item:not([data-cat~="entry"]),
.page-home:has(#f-column:checked) .ledger-item:not([data-cat~="column"]),
.page-home:has(#f-case:checked) .ledger-item:not([data-cat~="case"]),
.page-home:has(#f-device:checked) .ledger-item:not([data-cat~="device"]),
.page-home:has(#f-faq:checked) .ledger-item:not([data-cat~="faq"]) {
  display: none;
}

.page-home .ledger-shot {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--hold);
}
.page-home .ledger-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.page-home .ledger-shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* 安卓短路径 */
.page-home .shortcut {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 36px);
  border: 2px solid var(--line);
  background: linear-gradient(180deg, var(--hold), var(--deep));
  box-shadow: var(--shadow-hard);
}
.page-home .shortcut h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 4.6vw, 34px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.page-home .steps {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.page-home .steps li {
  position: relative;
  padding-left: 38px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.page-home .steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--coral);
}
.page-home .shortcut-shot {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--deep);
}
.page-home .shortcut-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}
.page-home .shortcut-shot figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* 版本动态：暖纸插页 */
.page-home .pulse {
  padding: clamp(20px, 3vw, 40px);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}
.page-home .paper-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.page-home .pulse h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 4.4vw, 34px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.page-home .pulse-lead {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(21, 25, 29, 0.72);
}
.page-home .pulse-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid rgba(21, 25, 29, 0.2);
}
.page-home .pulse-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(21, 25, 29, 0.2);
}
.page-home .pulse-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9a5a2a;
}
.page-home .pulse-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.page-home .pulse-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(21, 25, 29, 0.55);
}
.page-home .pulse details {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(21, 25, 29, 0.25);
  background: rgba(255, 255, 255, 0.26);
}
.page-home .pulse summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.page-home .pulse details p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(21, 25, 29, 0.76);
}
.page-home .pulse-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.page-home .pulse-link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* 客服与备案 */
.page-home .trust {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.5vw, 48px);
  border: 2px solid var(--line);
  background: var(--deep);
  box-shadow: var(--shadow-hard);
}
.page-home .trust-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(0.7);
}
.page-home .trust::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 38, 0.55), rgba(6, 24, 38, 0.94));
}
.page-home .trust-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
}
.page-home .trust h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 4.4vw, 34px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: var(--mist);
}
.page-home .trust-lead {
  max-width: 46ch;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.page-home .trust-list {
  display: grid;
  gap: 12px;
  margin: 0;
}
.page-home .trust-row {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.page-home .trust-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.page-home .trust-val {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mist);
  text-decoration: none;
  word-break: break-word;
}
.page-home a.trust-val:hover,
.page-home a.trust-val:focus-visible {
  color: var(--coral);
}
.page-home .trust-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-faint);
}

/* 平板与桌面 */
@media (min-width: 760px) {
  .page-home .cat-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    padding: 24px 0;
  }
  .page-home .cat-item .btn {
    grid-column: 3;
    margin-top: 0;
  }
  .page-home .pulse-item {
    grid-template-columns: 108px minmax(0, 1fr) 72px;
    align-items: baseline;
    gap: 16px;
  }
  .page-home .trust-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }
}

@media (min-width: 900px) {
  .page-home .shortcut {
    grid-template-columns: minmax(0, 1.15fr) 320px;
    align-items: center;
    gap: 32px;
  }
  .page-home .ledger-body {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 32px;
  }
}

@media (min-width: 901px) {
  .page-home .hero {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }
  .page-home .rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 96px;
    padding-top: 10px;
  }
  .page-home .rail-tag {
    writing-mode: vertical-rl;
    padding: 10px 0;
    border-top: 2px solid var(--cyan);
    border-bottom: 2px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.26em;
    color: var(--cyan);
  }
  .page-home .rail-line {
    flex: 1 1 auto;
    width: 1px;
    min-height: 140px;
    background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px);
  }
  .page-home .rail-side {
    writing-mode: vertical-rl;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--ink-faint);
  }
  .page-home .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }
  .page-home .hero-core {
    grid-column: 1 / span 7;
  }
  .page-home .hero-shot {
    grid-column: 8 / span 5;
    height: 100%;
  }
  .page-home .hero-shot img {
    flex: 1 1 auto;
    min-height: 240px;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .page-home .lane-card {
    grid-column: span 4;
  }
  .page-home .hero-lead {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .lane-card,
  .page-home .ledger-item,
  .page-home .filter-chip,
  .page-home .pulse-link {
    transition: none;
  }
  .page-home .lane-card:hover,
  .page-home .lane-card:focus-visible,
  .page-home .ledger-item:hover {
    transform: none;
  }
}
