.page-home {
  --page-coral: #ff7f59;
  --page-slate: #5f7d8f;
}

.page-home .page-top {
  background: var(--bg-card);
  border-bottom: 3px solid var(--accent-teal);
  padding: 24px 0 20px;
}

.page-home .page-top .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .breadcrumb {
  margin: 0;
}

.page-home .page-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--text-dark);
  margin: 0;
}

.page-home .page-title-desc {
  font-size: 13px;
  color: #5f7d8f;
  margin: 0;
  letter-spacing: 0.02em;
}

.page-home .page-catalog-section,
.page-home .page-hot-section,
.page-home .page-year-section {
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

.page-home .page-catalog-section::before,
.page-home .page-hot-section::before,
.page-home .page-year-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-home .page-catalog-section {
  padding: 40px 0 52px;
}

.page-home .page-tile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
}

.page-home .page-tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

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

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 24px;
}

.page-home .page-head-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .page-section-code {
  font-size: 12px;
  letter-spacing: 0.14em;
  margin: 0 0 4px;
  color: var(--accent-teal);
}

.page-home .page-head-light .page-section-code {
  color: var(--accent-teal);
}

.page-home .page-head-light .section-title {
  color: var(--white);
}

.page-home .page-head-light .page-section-sub {
  color: rgba(255, 255, 255, 0.6);
}

.page-home .section-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  color: var(--text-dark);
}

.page-home .page-section-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0;
  color: #607d8b;
}

.page-home .page-seq {
  display: inline-block;
  background: var(--accent-orange);
  border-radius: 4px;
  font-size: 13px;
  padding: 3px 8px 2px;
  margin-right: 10px;
  color: #fff;
  line-height: 1.4;
  vertical-align: 2px;
}

.page-home .page-head-light .btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.page-home .page-tile-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.page-home .page-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 110px;
  padding: 14px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .page-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.page-home .page-tile-icon {
  width: 22px;
  height: 22px;
  display: block;
  margin-bottom: 6px;
}

.page-home .page-tile .tile-count {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  opacity: 0.65;
}

.page-home .page-tile .tile-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}

.page-home .page-tile .tile-meta {
  font-size: 12px;
  opacity: 0.85;
}

.page-home .tile-item--slate {
  background: var(--page-slate);
}

.page-home .tile-item--coral {
  background: var(--page-coral);
}

.page-home .page-new-section {
  background: var(--bg-card);
  padding: 42px 0 54px;
}

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

.page-home .page-new-card {
  display: flex;
  flex-direction: column;
  background: #fffdf3;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
  text-decoration: none;
  color: var(--text-dark);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-home .page-new-card:hover {
  box-shadow: 0 12px 26px rgba(44, 62, 80, 0.16);
  transform: translateY(-3px);
}

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

.page-home .page-card-media--gfx {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 130px;
  padding: 14px;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .page-card-media--gfx span {
  background: rgba(0, 0, 0, 0.18);
  padding: 3px 6px;
  border-radius: 3px;
}

.page-home .page-card-media--gfx .page-gfx-main {
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.22);
}

.page-home .page-gfx--teal {
  background: linear-gradient(135deg, #00796b, #00b894);
}

.page-home .page-gfx--purple {
  background: linear-gradient(135deg, #6c3483, #a569bd);
}

.page-home .page-gfx--slate {
  background: linear-gradient(135deg, #2c3e50, #5d6d7e);
}

.page-home .page-gfx--blue {
  background: linear-gradient(135deg, #1f618d, #3498db);
}

.page-home .page-gfx--red {
  background: linear-gradient(135deg, #b03a2e, #ec7063);
}

.page-home .page-gfx--green {
  background: linear-gradient(135deg, #1e8449, #58d68d);
}

.page-home .page-gfx--yellow {
  background: linear-gradient(135deg, #d4ac0d, #f7dc6f);
  color: var(--text-dark);
}

.page-home .page-gfx--coral {
  background: linear-gradient(135deg, #d35400, #f0b27a);
}

.page-home .page-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  flex: 1;
}

.page-home .page-new-card .card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.page-home .page-card-domain {
  font-size: 12px;
  color: #7f8c8d;
}

.page-home .page-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.page-home .page-card-batch {
  font-size: 12px;
  color: #7f8c8d;
}

.page-home .page-card-cat {
  font-size: 12px;
  color: #95a5a6;
}

.page-home .page-hot-section {
  padding: 42px 0 54px;
  color: var(--white);
}

.page-home .page-hot-layout {
  display: grid;
  gap: 24px;
}

.page-home .page-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .page-rank-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.page-home .rank-num {
  width: 34px;
  flex: none;
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 16px;
}

.page-home .page-rank-item:nth-child(1) .rank-num {
  color: #f1c40f;
}

.page-home .page-rank-item:nth-child(2) .rank-num {
  color: #bdc3c7;
}

.page-home .page-rank-item:nth-child(3) .rank-num {
  color: #e67e22;
}

.page-home .rank-name {
  flex: 0 0 auto;
  min-width: 104px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page-home .rank-name:hover {
  color: var(--accent-orange);
}

.page-home .page-rank-cat {
  flex: 1 1 auto;
  min-width: 64px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.page-home .rank-metric {
  flex: 1 1 130px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.page-home .metric-bar {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.page-home .metric-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--metric, 50%);
  border-radius: 4px;
  background: var(--accent-teal);
}

.page-home .page-rank-item:nth-child(1) .metric-bar::after,
.page-home .page-rank-item:nth-child(2) .metric-bar::after,
.page-home .page-rank-item:nth-child(3) .metric-bar::after {
  background: var(--accent-orange);
}

.page-home .rank-metric-num {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 42px;
  text-align: right;
}

.page-home .page-hot-deco {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .page-tag-section {
  background: var(--bg-wall);
  padding: 42px 0 54px;
}

.page-home .page-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 960px;
  margin-top: 6px;
}

.page-home .tag-item {
  font-family: var(--font-sans);
  text-decoration: none;
  border-radius: 999px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-home .tag-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.15);
}

.page-home .tag-item--lg {
  font-size: 17px;
  padding: 12px 22px;
}

.page-home .tag-item--md {
  font-size: 15px;
  padding: 10px 18px;
  color: var(--text-dark);
}

.page-home .tag-item--sm {
  font-size: 13px;
  padding: 7px 13px;
  color: var(--text-dark);
}

.page-home .tag-item--blue,
.page-home .tag-item--teal,
.page-home .tag-item--orange,
.page-home .tag-item--purple {
  color: var(--white);
}

.page-home .page-tag-info {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 28px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
}

.page-home .page-year-section {
  padding: 42px 0 60px;
  color: var(--white);
}

.page-home .page-year-rule {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
}

.page-home .page-year-scroll {
  margin-top: 6px;
}

.page-home .page-year-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  min-height: 100px;
  padding: 20px;
}

.page-home .page-year-track::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 50%;
  height: 2px;
  background: rgba(0, 184, 150, 0.35);
}

.page-home .page-year-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--accent-teal);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.page-home .page-year-node:hover {
  background: var(--accent-teal);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.page-home .page-year-node--sm {
  width: 38px;
  height: 38px;
}

.page-home .page-year-node--md {
  width: 50px;
  height: 50px;
  font-size: 13px;
}

.page-home .page-year-node--lg {
  width: 64px;
  height: 64px;
  font-size: 14px;
}

.page-home .page-year-node--xl {
  width: 74px;
  height: 74px;
  font-size: 15px;
}

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

@media (min-width: 720px) {
  .page-home .page-rank-item {
    flex-wrap: nowrap;
  }
}

@media (min-width: 900px) {
  .page-home .page-top {
    padding: 32px 0 24px;
  }

  .page-home .page-catalog-section,
  .page-home .page-new-section,
  .page-home .page-hot-section,
  .page-home .page-tag-section,
  .page-home .page-year-section {
    padding-top: 54px;
    padding-bottom: 66px;
  }

  .page-home .page-catalog-section {
    padding-bottom: 72px;
  }

  .page-home .page-tile-matrix {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }

  .page-home .page-title-desc {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .page-home .page-new-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .page-home .page-hot-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
  }

  .page-home .page-hot-deco {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .page-tile,
  .page-home .page-new-card,
  .page-home .tag-item,
  .page-home .page-year-node {
    transition: none;
    transform: none;
  }
}

.page-home {
  --metric: 1rem;
}
