.page-home {
  --tile-blue: #2B3E8C;
  --tile-purple: #7C2D6E;
  --tile-teal-dark: #007F88;
  --tile-red: #D1373A;
  --tile-gold: #C29A12;
  --tile-orange: #E25822;
  --tile-slate: #3D3D4A;
  --tile-green: #20752B;
  --page-dim: rgba(0, 0, 0, 0.35);
}

.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-home .home-hero {
  background: #22222D;
  border: 2px solid var(--line-border, #666677);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card, 4px 4px 0 rgba(0, 0, 0, 0.35));
  padding: 18px 16px;
  margin-top: 20px;
}

.page-home .breadcrumb {
  margin-bottom: 8px;
}

.page-home h1 {
  font-family: var(--font-head, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-light, #F0F0F0);
  margin: 0 0 8px;
}

.page-home .page-intro {
  font-family: var(--font-body, "Noto Sans CJK SC", "PingFang SC", sans-serif);
  font-size: 14px;
  line-height: 1.7;
  color: #B8B8C2;
  max-width: 72ch;
  margin: 0 0 12px;
}

.page-home .hero-fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .hero-fact {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 12px;
  background: var(--bg-section-b, #3D3D4A);
  border: 1px solid var(--line-border, #666677);
  border-radius: var(--radius-sm, 4px);
  color: var(--text-light, #F0F0F0);
  padding: 4px 10px;
}

.page-home .hero-fact strong {
  color: var(--accent-yellow, #FFD700);
  font-weight: 700;
}

.page-home .tile-section {
  position: relative;
  overflow: hidden;
  padding-block: 44px;
}

.page-home .tile-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

.page-home .tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .tile-section .container {
  position: relative;
  z-index: 1;
}

.page-home .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.page-home .section-title {
  font-family: var(--font-head, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: var(--text-light, #F0F0F0);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.page-home .section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent-yellow, #FFD700);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.page-home .section-link-more {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 12px;
  color: var(--accent-teal, #00CED1);
  text-decoration: none;
  border: 1px solid var(--accent-teal, #00CED1);
  border-radius: var(--radius-sm, 4px);
  padding: 3px 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.page-home .section-link-more:hover {
  background: var(--accent-teal, #00CED1);
  color: #1E1E28;
}

.page-home .vertical-note {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 11px;
  color: #888899;
}

.page-home .home-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  padding: 14px;
  border: 2px solid #1E1E28;
  border-radius: var(--radius-md, 8px);
  box-shadow: 3px 3px 0 var(--page-dim, rgba(0, 0, 0, 0.35));
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.page-home .tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  filter: brightness(1.06);
}

.page-home .tile:focus-visible {
  outline: 3px solid var(--accent-yellow, #FFD700);
  outline-offset: 2px;
}

.page-home .tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-home .tile-title {
  font-family: var(--font-head, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 8px;
}

.page-home .tile-count {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

.page-home .tile-foot {
  font-family: var(--font-body, "Noto Sans CJK SC", sans-serif);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
  margin-top: 6px;
}

.page-home .tile-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-body, sans-serif);
  font-size: 20px;
  line-height: 1;
}

.page-home .tile-skin-archive {
  background: var(--tile-blue, #2B3E8C);
  color: #F5F0E6;
}

.page-home .tile-skin-collection {
  background: var(--tile-purple, #7C2D6E);
  color: #F5F0E6;
}

.page-home .tile-skin-help {
  background: var(--tile-teal-dark, #007F88);
  color: #F5F0E6;
}

.page-home .tile-skin-beta {
  background: var(--tile-red, #D1373A);
  color: #F5F0E6;
}

.page-home .tile-skin-version {
  background: var(--tile-gold, #C29A12);
  color: #1E1E28;
}

.page-home .tile-skin-version .tile-foot {
  opacity: 0.75;
}

.page-home .tile-skin-featured {
  background: var(--tile-orange, #E25822);
  color: #F5F0E6;
}

.page-home .tile-skin-tools {
  background: var(--tile-slate, #3D3D4A);
  color: #F0F0F0;
}

.page-home .tile-skin-guide {
  background: var(--tile-green, #20752B);
  color: #F5F0E6;
}

.page-home .tile-skin-batch {
  background: var(--accent-yellow, #FFD700);
  color: #1E1E28;
}

.page-home .tile-skin-batch .tile-foot {
  opacity: 0.7;
}

.page-home .tile-skin-version-card {
  background: var(--accent-teal, #00CED1);
  color: #1E1E28;
}

.page-home .tile-skin-version-card .tile-foot {
  opacity: 0.7;
}

.page-home .home-card-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .card {
  background: var(--bg-card, #F5F0E6);
  border: 2px solid #1E1E28;
  border-radius: var(--radius-md, 8px);
  box-shadow: 3px 3px 0 var(--page-dim, rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}

.page-home .card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}

.page-home .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text-dark, #1E1E28);
}

.page-home .card-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  margin: 10px 10px 0;
  border: 2px solid #1E1E28;
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
}

.page-home .card-thumb::before {
  content: "";
  width: 48px;
  height: 48px;
  background: rgba(30, 30, 40, 0.14);
  border: 2px solid rgba(30, 30, 40, 0.3);
  border-radius: var(--radius-sm, 4px);
  transform: rotate(15deg);
}

.page-home .card-thumb-img::before {
  display: none;
}

.page-home .card-thumb-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .card-body {
  padding: 12px 14px 14px;
}

.page-home .card-title {
  font-family: var(--font-head, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-dark, #1E1E28);
  margin: 0 0 6px;
}

.page-home .card-meta {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 11px;
  color: #555566;
  margin: 0 0 8px;
}

.page-home .card .badge {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-sm, 4px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .card:hover .badge {
  transform: scale(1.12);
}

.page-home .thumb-t1 {
  background: linear-gradient(135deg, #FFD8B0, #FFD700);
}

.page-home .thumb-t2 {
  background: linear-gradient(135deg, #00CED1, #2B3E8C);
}

.page-home .thumb-t3 {
  background: linear-gradient(135deg, #FF4500, #FFD8B0);
}

.page-home .thumb-t4 {
  background: linear-gradient(135deg, #32CD32, #007F88);
}

.page-home .thumb-t5 {
  background: linear-gradient(135deg, #FFD700, #7C2D6E);
}

.page-home .thumb-t6 {
  background: linear-gradient(135deg, #FF8C00, #FFD700);
}

.page-home .thumb-t7 {
  background: linear-gradient(135deg, #7C2D6E, #00CED1);
}

.page-home .thumb-t8 {
  background: linear-gradient(135deg, #3D3D4A, #2B3E8C);
}

.page-home .thumb-t9 {
  background: linear-gradient(135deg, #00CED1, #FFD8B0);
}

.page-home .thumb-t10 {
  background: linear-gradient(135deg, #FF4500, #00CED1);
}

.page-home .thumb-t11 {
  background: linear-gradient(135deg, #FFD700, #32CD32);
}

.page-home .thumb-t12 {
  background: linear-gradient(135deg, #2B3E8C, #7C2D6E);
}

.page-home .tag-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .tag-cloud {
  gap: 8px;
}

.page-home .tag-chip {
  font-family: var(--font-body, "Noto Sans CJK SC", sans-serif);
  text-decoration: none;
  padding: 6px 12px;
  border: 2px solid #1E1E28;
  border-radius: 999px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.page-home .tag-chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  background: var(--accent-yellow, #FFD700);
  color: #1E1E28;
}

.page-home .tag-chip-hot {
  font-size: 19px;
  font-weight: 900;
  padding: 8px 16px;
}

.page-home .tag-chip-warm {
  font-size: 15px;
  font-weight: 700;
}

.page-home .tag-chip-green {
  font-size: 12px;
}

.page-home .tag-figure {
  margin: 0;
  border: 2px solid #1E1E28;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.page-home .tag-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .rank-panel {
  background: var(--bg-section-a, #2A2A35);
  border: 2px solid var(--line-border, #666677);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card, 4px 4px 0 rgba(0, 0, 0, 0.35));
  padding: 10px 14px;
}

.page-home .metric-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 48px;
  gap: 4px 8px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid #3D3D4A;
}

.page-home .metric-row:last-child {
  border-bottom: none;
}

.page-home .metric-rank {
  grid-column: 1;
  grid-row: 1;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 12px;
  font-weight: 700;
  background: #1E1E28;
  color: var(--accent-yellow, #FFD700);
  border-radius: var(--radius-sm, 4px);
}

.page-home .metric-name {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light, #F0F0F0);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color 0.12s ease;
}

.page-home .metric-name:hover {
  color: var(--accent-teal, #00CED1);
}

.page-home .metric-value {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-teal, #00CED1);
  text-align: right;
}

.page-home .metric-bar-wrap {
  grid-column: 2 / 4;
  grid-row: 2;
  height: 8px;
  background: #1E1E28;
  border-radius: 4px;
  overflow: hidden;
}

.page-home .metric-bar-fill {
  display: block;
  width: var(--fill-width, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent-yellow, #FFD700), var(--accent-teal, #00CED1));
  border-radius: 4px;
  transition: width 0.8s ease, filter 0.2s ease;
}

.page-home .metric-row:hover .metric-bar-fill {
  filter: brightness(1.25);
}

.page-home .rank-figure {
  margin: 16px 0 0;
  border: 2px solid #1E1E28;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.page-home .rank-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .archive-timeline {
  position: relative;
  padding-left: 24px;
}

.page-home .archive-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent-yellow, #FFD700);
}

.page-home .archive-item {
  position: relative;
  padding-bottom: 24px;
}

.page-home .archive-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-teal, #00CED1);
  border: 3px solid #1E1E28;
  box-sizing: border-box;
}

.page-home .archive-milestone::before {
  background: var(--accent-yellow, #FFD700);
}

.page-home .archive-content {
  background: var(--bg-section-b, #3D3D4A);
  border: 1px solid var(--line-border, #666677);
  border-radius: var(--radius-md, 8px);
  padding: 14px;
}

.page-home .archive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.page-home .archive-title {
  font-family: var(--font-head, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-yellow, #FFD700);
  margin: 0;
}

.page-home .archive-sub {
  font-size: 14px;
  color: var(--text-light, #F0F0F0);
  margin: 6px 0;
}

.page-home .archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.page-home .batch-chip {
  font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
  font-size: 12px;
  background: #1E1E28;
  color: var(--accent-teal, #00CED1);
  border: 1px solid var(--accent-teal, #00CED1);
  border-radius: var(--radius-sm, 4px);
  padding: 3px 8px;
}

.page-home .core-note {
  background: var(--accent-yellow, #FFD700);
  border: 2px solid #1E1E28;
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-card, 4px 4px 0 rgba(0, 0, 0, 0.35));
  padding: 28px 20px;
  margin: 24px auto 32px;
  text-align: center;
}

.page-home .core-note .container {
  max-width: 1000px;
}

.page-home .core-note-text {
  font-family: var(--font-head, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text-dark, #1E1E28);
  margin: 0;
}

@media (min-width: 640px) {
  .page-home .home-card-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-hero {
    padding: 22px 24px;
  }

  .page-home .hero-fact-strip {
    gap: 12px;
  }
}

@media (min-width: 900px) {
  .page-home .home-tiles {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
  }

  .page-home .tile-skin-archive {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .page-home .tile-skin-collection {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .page-home .tile-skin-help {
    grid-column: 4;
    grid-row: 1;
  }

  .page-home .tile-skin-beta {
    grid-column: 4;
    grid-row: 2;
  }

  .page-home .tile-skin-version {
    grid-column: 1;
    grid-row: 3;
  }

  .page-home .tile-skin-featured {
    grid-column: 2;
    grid-row: 3;
  }

  .page-home .tile-skin-tools {
    grid-column: 3;
    grid-row: 3;
  }

  .page-home .tile-skin-guide {
    grid-column: 4;
    grid-row: 3;
  }

  .page-home .tile-skin-batch {
    grid-column: 1 / 3;
    grid-row: 4;
  }

  .page-home .tile-skin-version-card {
    grid-column: 3 / 5;
    grid-row: 4;
  }

  .page-home .tile-featured {
    justify-content: flex-end;
  }

  .page-home .tile-featured .tile-title {
    font-size: 26px;
  }

  .page-home .tile-featured .tile-count {
    font-size: 32px;
  }

  .page-home .home-card-wall {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .page-home .card-thumb {
    height: 136px;
  }

  .page-home .tag-panel {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
  }

  .page-home .tag-cloud {
    gap: 10px;
  }

  .page-home .metric-row {
    grid-template-columns: 34px minmax(180px, 1fr) 180px 52px;
    gap: 8px 12px;
    padding: 10px 6px;
  }

  .page-home .metric-rank {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .page-home .metric-name {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .metric-bar-wrap {
    grid-column: 3;
    grid-row: 1;
    height: 9px;
  }

  .page-home .metric-value {
    grid-column: 4;
    grid-row: 1;
    font-size: 14px;
  }

  .page-home .archive-timeline {
    padding-left: 32px;
  }

  .page-home .archive-item::before {
    left: -32px;
    width: 20px;
    height: 20px;
  }

  .page-home .archive-item {
    padding-bottom: 26px;
  }

  .page-home .archive-content {
    padding: 16px 20px;
  }
}

@media (min-width: 1200px) {
  .page-home .tile-bg {
    height: 300px;
  }

  .page-home .card-thumb {
    height: 150px;
  }

  .page-home .rank-panel {
    padding: 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    transform: none !important;
  }
}

.page-home {
  --fill-width: currentColor;
}
