.page-home {
  --home-deep-border: rgba(255, 255, 255, 0.16);
  --home-deep-card: rgba(255, 255, 255, 0.06);
  --home-muted-light: rgba(255, 255, 255, 0.78);
  --home-rail-width: 272px;
}

/* 分屏首屏 */
.page-home .split-hero {
  display: flex;
  flex-direction: column;
  background: var(--color-warm);
}

.page-home .split-panel.is-deep {
  background: var(--color-deep);
  color: var(--text-invert);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.page-home .split-panel.is-warm {
  background: var(--color-warm);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

/* 首屏标题区 */
.page-home .hero-title-wrap {
  position: relative;
  border-bottom: 1px solid var(--home-deep-border);
  padding-bottom: 1.35rem;
  margin-bottom: 1.75rem;
}

.page-home .hero-pattern {
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  opacity: 0.3;
  object-fit: cover;
}

.page-home .note-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-yellow);
  margin: 0 0 0.6rem;
}

.page-home .hero-title-wrap h1 {
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  line-height: 1.3;
  margin: 0;
  max-width: 12em;
  color: #fff;
  letter-spacing: 0.01em;
}

/* 快速筛选 */
.page-home .quick-filter {
  margin-bottom: 2.25rem;
}

.page-home .section-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .filter-step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--home-muted-light);
  margin: 0 0 0.5rem;
}

.page-home .filter-years {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.page-home .filter-year {
  border: 1px solid var(--home-deep-border);
  color: #fff;
  background: transparent;
}

.page-home .filter-year.is-active,
.page-home .filter-year:hover,
.page-home .filter-year:focus-visible {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}

.page-home .filter-models {
  display: grid;
  gap: 0.38rem;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 0.35rem;
  padding-right: 0.25rem;
}

.page-home .model-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: var(--home-deep-card);
  border: 1px solid var(--home-deep-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.page-home .model-row:hover,
.page-home .model-row:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.page-home .model-row .model-name {
  font-weight: 500;
}

.page-home .model-row .tag {
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* 热门车型速查榜 */
.page-home .hero-rank {
  margin-top: 0.5rem;
}

.page-home .section-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-home .section-head .section-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-orange);
}

.page-home .split-panel.is-warm .section-head .section-num {
  color: var(--color-teal);
}

.page-home .section-head .section-title {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.page-home .split-panel.is-deep .section-head .section-title {
  color: #fff;
}

.page-home .split-panel.is-warm .section-head .section-title {
  color: var(--text-main);
}

.page-home .section-head .section-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: auto;
}

.page-home .split-panel.is-deep .section-head .section-note {
  color: var(--home-muted-light);
}

.page-home .rank-card-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.page-home .rank-card {
  flex: 0 0 var(--home-rail-width);
  scroll-snap-align: start;
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .rank-card:hover,
.page-home .rank-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.page-home .rank-card .img-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-warm);
}

.page-home .rank-card .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .rank-card .status-badge.is-corner {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
}

.page-home .rank-card .card-body {
  padding: 0.8rem;
}

.page-home .rank-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.3rem;
  color: var(--text-main);
}

.page-home .rank-card .card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.55rem;
}

.page-home .rank-card .card-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  min-height: 1.5rem;
}

.page-home .price-tag {
  font-family: var(--font-mono);
  background: var(--color-warm);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: var(--text-main);
  font-size: 0.72rem;
}

/* 最新入库批次 */
.page-home .hero-log {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.page-home .log-list {
  width: 100%;
  margin-top: 0.4rem;
}

.page-home .log-list .list-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}

.page-home .log-list .list-row:hover {
  background: rgba(241, 196, 15, 0.08);
}

.page-home .log-list .meta-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.4rem;
}

.page-home .meta-dot.is-new { background: var(--color-teal); }
.page-home .meta-dot.is-orange { background: var(--color-orange); }
.page-home .meta-dot.is-done { background: var(--color-blue); }
.page-home .meta-dot.is-yellow { background: var(--color-yellow); }
.page-home .meta-dot.is-blue { background: var(--color-blue); }
.page-home .meta-dot.is-rose { background: var(--color-rose); }

.page-home .log-list .list-main {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.page-home .log-list .list-title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-main);
}

.page-home .log-list .list-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.page-home .log-list .list-meta .tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
}

/* 分类磁贴矩阵 */
.page-home .tile-section {
  background: var(--color-warm);
  padding: clamp(1.75rem, 5vw, 3.25rem) var(--container-pad);
}

.page-home .tile-section .section-head {
  margin-bottom: 1.4rem;
}

.page-home .tile-section .section-note {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: normal;
}

.page-home .tile-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}

.page-home .tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 98px;
  padding: 1rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.page-home .tile:hover,
.page-home .tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.page-home .tile.is-orange {
  background: var(--color-orange);
  color: #fff;
}

.page-home .tile.is-yellow {
  background: var(--color-yellow);
  color: var(--text-main);
}

.page-home .tile.is-teal {
  background: var(--color-teal);
  color: #fff;
}

.page-home .tile.is-blue {
  background: var(--color-blue);
  color: #fff;
}

.page-home .tile.is-rose {
  background: var(--color-rose);
  color: #fff;
}

.page-home .tile .tile-title {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
}

.page-home .tile .tile-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.92;
}

/* 保养资料热门榜 */
.page-home .rank-section {
  background: var(--color-card);
  padding: clamp(1.75rem, 5vw, 3.25rem) var(--container-pad);
}

.page-home .rank-section .section-head {
  margin-bottom: 1.2rem;
}

.page-home .rank-list {
  display: flex;
  flex-direction: column;
}

.page-home .rank-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.page-home .rank-row .seq-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
}

.page-home .rank-row .seq-num.is-top {
  color: var(--color-orange);
}

.page-home .rank-thumb {
  display: none;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-warm);
}

.page-home .rank-row .rank-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.page-home .rank-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-main);
}

.page-home .rank-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.page-home .metric-bar {
  background: var(--color-warm);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
  margin-top: 0.28rem;
}

.page-home .metric-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.page-home .metric-bar .is-orange { background: var(--color-orange); }
.page-home .metric-bar .is-yellow { background: var(--color-yellow); }
.page-home .metric-bar .is-blue { background: var(--color-blue); }
.page-home .metric-bar .is-rose { background: var(--color-rose); }

/* 旧版资料直达 */
.page-home .old-section {
  background: var(--color-deep);
  padding: clamp(1.75rem, 5vw, 3.25rem) var(--container-pad);
}

.page-home .old-section .section-head .section-title {
  color: #fff;
}

.page-home .old-section .section-head .section-note {
  color: var(--home-muted-light);
}

.page-home .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-home .tag-cloud .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-home .tag-cloud .tag:hover,
.page-home .tag-cloud .tag:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.page-home .tag-cloud .tag-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(44, 62, 80, 0.14);
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  line-height: 1.4;
}

/* 桌面端布局 */
@media (min-width: 900px) {
  .page-home .split-hero {
    flex-direction: row;
    align-items: stretch;
  }

  .page-home .split-panel {
    flex: 1 1 50%;
  }

  .page-home .split-panel.is-deep {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-home .filter-models {
    max-height: 520px;
  }

  .page-home .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .rank-row {
    grid-template-columns: 2.4rem 5rem 1fr;
  }

  .page-home .rank-thumb {
    display: block;
  }
}
