.page-home {
  --home-line: rgba(14, 42, 35, 0.16);
  --home-shadow: 0 26px 60px -42px rgba(14, 42, 35, 0.8);
  background: var(--paper);
  overflow-x: clip;
}

.page-home .shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 上下文条 ---------- */
.page-home .home-context {
  padding-top: clamp(18px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-55);
}

.page-home .breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-55);
}

.page-home .breadcrumb a {
  color: var(--ink-70);
  text-decoration: none;
}

.page-home .breadcrumb a:hover {
  color: var(--prairie);
}

.page-home .context-note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--prairie);
}

.page-home .home-jump {
  display: flex;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.page-home .home-jump a {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink-70);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .home-jump a:hover {
  border-color: var(--prairie);
  color: var(--ink);
}

.page-home .home-jump a[aria-current="true"] {
  border-color: var(--prairie);
  background: var(--prairie);
  color: var(--on-dark);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  margin-top: 12px;
  background: var(--paper);
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 34px);
  padding-top: clamp(20px, 5vw, 44px);
  padding-bottom: clamp(30px, 6vw, 64px);
}

.page-home .hero-brand .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--prairie);
  text-transform: uppercase;
}

.page-home .hero-brand h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 8.4vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .hero-brand .lede {
  margin: 0 0 20px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-70);
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .ver-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-pill);
  background: var(--mist);
}

.page-home .ver-num {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.page-home .ver-label {
  font-size: 12px;
  color: var(--ink-70);
}

.page-home .save-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .star-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--orange);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--orange);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .star-btn:hover {
  background: var(--orange);
  color: var(--on-dark);
}

.page-home .star-btn[aria-pressed="true"] {
  background: var(--orange);
  color: var(--on-dark);
}

.page-home .star-btn[aria-pressed="true"] svg path {
  fill: currentColor;
}

.page-home .save-count {
  font-size: 11px;
  color: var(--ink-55);
}

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

.page-home .hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-70);
}

.page-home .hero-facts .mono {
  font-size: 15px;
  font-weight: 700;
  color: var(--prairie);
}

/* 首屏右侧查询面板 */
.page-home .hero-panel {
  padding: clamp(14px, 3vw, 20px);
  border-radius: var(--r-lg);
  background: var(--ink);
  box-shadow: var(--home-shadow);
}

.page-home .search-card {
  padding: 12px 14px 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-home .search-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-55);
}

.page-home .search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font: 500 15px/1.5 var(--font-body);
  color: var(--ink);
  outline: none;
}

.page-home .search-input::placeholder {
  color: var(--ink-55);
}

.page-home .search-input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.page-home .search-key {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--on-dark);
  font-size: 11px;
}

.page-home .search-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-55);
}

.page-home .gate-title {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-dark-45);
}

.page-home .gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .gate-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .gate-item:hover,
.page-home .gate-item:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange);
}

.page-home .gate-num {
  font-size: 10px;
  color: var(--sky);
}

.page-home .gate-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.page-home .gate-grid li:nth-child(even) .gate-item {
  transform: translateY(6px);
}

.page-home .gate-grid li:nth-child(even) .gate-item:hover {
  transform: translateY(3px);
}

/* 首屏截图 */
.page-home .hero-shot {
  margin: 0;
}

.page-home .hero-shot img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: var(--sand);
}

.page-home .hero-shot figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-55);
}

/* ---------- 版本色块 ---------- */
.page-home .version-band {
  position: relative;
  margin-top: clamp(24px, 5vw, 48px);
  padding: clamp(30px, 6vw, 62px) 0;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.page-home .version-band::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -55%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 138, 112, 0.5) 0%, rgba(31, 138, 112, 0) 68%);
  pointer-events: none;
}

.page-home .version-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 4vw, 36px);
}

.page-home .version-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .version-num {
  font-size: clamp(3rem, 14vw, 5.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--on-dark);
}

.page-home .version-tag {
  padding: 3px 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  font-size: 11px;
  color: var(--on-dark-70);
}

.page-home .version-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.page-home .version-copy p {
  margin: 0 0 18px;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark-70);
}

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

.page-home .version-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark-70);
}

.page-home .version-list .mono {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--sky);
}

/* ---------- 收藏回访 ---------- */
.page-home .save-section {
  padding: clamp(32px, 7vw, 76px) 0;
}

.page-home .save-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.page-home .save-copy .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.page-home .save-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 5.4vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .save-copy p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-70);
}

.page-home .save-rules {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .save-rules li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-70);
}

.page-home .save-rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.page-home .save-visual {
  position: relative;
}

.page-home .save-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: var(--mist);
}

.page-home .save-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.page-home .save-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-sm);
  background: var(--card);
}

.page-home .save-stat .mono {
  font-size: 18px;
  font-weight: 700;
  color: var(--prairie);
  letter-spacing: -0.02em;
}

.page-home .save-stat span:last-child {
  font-size: 11px;
  color: var(--ink-55);
}

/* ---------- 更新节奏 ---------- */
.page-home .updates {
  padding: clamp(28px, 6vw, 64px) 0 clamp(32px, 7vw, 72px);
  background: var(--mist);
}

.page-home .update-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: clamp(18px, 4vw, 28px);
}

.page-home .update-heading .eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--prairie);
}

.page-home .update-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 5.4vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .update-note {
  margin: 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-70);
}

.page-home .timeline-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.page-home .timeline {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 4px 2px 14px;
  list-style: none;
  min-width: min-content;
}

.page-home .timeline-item {
  position: relative;
  flex: 0 0 172px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: var(--card);
}

.page-home .timeline-item::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--sand);
}

.page-home .timeline-item[aria-current="true"] {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(242, 140, 40, 0.24);
}

.page-home .timeline-item[aria-current="true"]::after {
  background: var(--orange);
}

.page-home .timeline-issue {
  font-size: 12px;
  font-weight: 700;
  color: var(--prairie);
}

.page-home .tl-when {
  font-size: 12px;
  color: var(--ink-55);
}

.page-home .tl-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .update-figure {
  margin: 16px 0 0;
}

.page-home .update-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 3;
  object-fit: cover;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: var(--paper);
}

.page-home .update-figure figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-55);
}

/* ---------- 分类速览 ---------- */
.page-home .cats {
  padding: clamp(32px, 7vw, 76px) 0;
}

.page-home .cats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.page-home .cats-copy .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sky);
}

.page-home .cats-copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 5.4vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .cats-copy p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-70);
}

.page-home .cat-cards {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .cat-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--home-line);
  border-left: 4px solid var(--prairie);
  border-radius: var(--r-sm);
  background: var(--card);
  text-decoration: none;
  transition: border-left-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .cat-card:nth-child(2) {
  border-left-color: var(--sky);
}

.page-home .cat-card:nth-child(3) {
  border-left-color: var(--orange);
}

.page-home .cat-card:hover {
  transform: translateX(4px);
}

.page-home .cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .cat-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-70);
}

.page-home .cat-more {
  display: inline-block;
  font-size: 12px;
  color: var(--prairie);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.page-home .cat-more:hover {
  color: var(--orange);
}

.page-home .cats-figure {
  margin: 0;
}

.page-home .cats-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--home-line);
  border-radius: var(--r-md);
  background: var(--sand);
}

.page-home .cats-figure figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-55);
}

/* ---------- 服务与联系 ---------- */
.page-home .support {
  padding: 0 0 clamp(40px, 8vw, 88px);
}

.page-home .support-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 48px) clamp(18px, 4vw, 40px);
  border: 1px solid var(--home-line);
  border-radius: var(--r-lg);
  background: var(--card);
  text-align: center;
}

.page-home .support-inner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .support-inner p {
  margin: 0 auto 20px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-70);
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .support-meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-55);
}

/* ---------- 媒体查询 ---------- */
@media (min-width: 620px) {
  .page-home .version-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .page-home .cat-card {
    border-left-width: 1px;
    border-top: 4px solid var(--prairie);
  }

  .page-home .cat-card:nth-child(2) {
    border-top-color: var(--sky);
    border-left-color: var(--home-line);
  }

  .page-home .cat-card:nth-child(3) {
    border-top-color: var(--orange);
    border-left-color: var(--home-line);
  }

  .page-home .cat-card:hover {
    transform: translateY(-4px);
  }
}

@media (min-width: 900px) {
  .page-home .hero {
    background:
      linear-gradient(101deg, var(--paper) 0 60%, var(--sand) 60% 64%, var(--paper) 64% 100%);
  }

  .page-home .hero-grid {
    grid-template-columns: 1.12fr 0.92fr 0.6fr;
    align-items: start;
    gap: clamp(20px, 2.6vw, 32px);
  }

  .page-home .hero-brand h1 {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
  }

  .page-home .hero-shot img {
    max-width: none;
  }

  .page-home .gate-grid {
    gap: 9px;
  }

  .page-home .version-inner {
    grid-template-columns: 0.34fr 1fr;
    align-items: start;
  }

  .page-home .version-copy p {
    font-size: 16px;
  }

  .page-home .save-grid {
    grid-template-columns: 1.02fr 0.98fr;
  }

  .page-home .save-stats {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -26px;
    margin-top: 0;
    padding: 8px;
    border-radius: var(--r-md);
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--home-line);
    box-shadow: var(--shadow-1);
  }

  .page-home .save-stat {
    background: transparent;
    border: 0;
    padding: 6px 10px;
  }

  .page-home .save-visual {
    padding-bottom: 30px;
  }

  .page-home .update-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .page-home .update-heading {
    flex: 0 1 44%;
  }

  .page-home .update-note {
    flex: 1 1 auto;
    padding-bottom: 4px;
  }

  .page-home .update-head .btn {
    flex: 0 0 auto;
  }

  .page-home .timeline-item {
    flex: 1 1 0;
    min-width: 160px;
  }

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

@media (min-width: 1080px) {
  .page-home .hero-brand h1 {
    font-size: clamp(2.4rem, 3.1vw, 3.1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .gate-item,
  .page-home .cat-card,
  .page-home .star-btn,
  .page-home .home-jump a {
    transition: none;
  }
}
