.page-home {
  --hero-deep: #2F0A4E;
  --hero-soft: #EBE3F5;
  --home-tag-bg: #FFF9EC;
  --home-rank-bg: #F3EDF7;
  --home-table-stripe: #FBF7F2;
  --home-banner-overlay: rgba(47, 10, 78, 0.78);
  --home-card-radius: 14px 4px 14px 4px;
  --home-chip-radius: 8px 2px 8px 2px;
  --home-fs-xs: 12px;
  --home-fs-sm: 13px;
  --home-fs-md: 15px;
  --home-fs-lg: 18px;
  --home-fs-xl: 22px;
  --home-gap: 28px;
  background-color: var(--page-bg);
}

.page-home .container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 16px;
}

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

.page-home .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0 6px;
  font-size: var(--home-fs-sm);
  color: var(--text-muted);
}

.page-home .breadcrumb__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.page-home .breadcrumb__link:hover {
  text-decoration: underline;
}

.page-home .breadcrumb__separator {
  color: var(--border-color);
}

.page-home .breadcrumb__current {
  font-weight: 600;
  color: var(--text-main);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--accent-deep);
  background-image: linear-gradient(135deg, rgba(232, 84, 128, 0.16) 0%, rgba(76, 175, 80, 0.05) 40%, rgba(255, 215, 0, 0.08) 100%);
  border-radius: 20px 6px 20px 6px;
  margin: 8px 0 var(--home-gap);
  box-shadow: var(--shadow-md);
}

.page-home .home-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.page-home .home-hero__content {
  position: relative;
  z-index: 2;
  padding: 28px 20px 20px;
  color: #FFFFFF;
}

.page-home .home-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--home-fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun);
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.page-home .home-hero__title {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.page-home .home-hero__desc {
  font-size: var(--home-fs-md);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0;
}

.page-home .home-hero__art {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.page-home .home-hero__art img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-height: 260px;
  object-fit: cover;
  opacity: 0.8;
}

.page-home .section {
  margin-bottom: var(--home-gap);
}

.page-home .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.page-home .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0;
  color: var(--text-main);
}

.page-home .section-title__index {
  font-family: var(--font-mono);
  font-size: 0.78em;
  background: var(--accent);
  color: #FFFFFF;
  padding: 3px 9px;
  border-radius: 6px 2px 6px 2px;
  letter-spacing: 0.04em;
}

/* category tiles */
.page-home .home-categories__matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .tile-matrix .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  text-decoration: none;
  border-radius: var(--radius-notch);
  padding: 20px 16px;
  overflow: hidden;
  color: #2F2F2F;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.page-home .tile-matrix .tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-home .tile--berry {
  background-color: var(--berry);
}

.page-home .tile--melon {
  background-color: var(--melon);
}

.page-home .tile--sun {
  background-color: var(--sun);
}

.page-home .tile--cherry {
  background-color: var(--cherry);
}

.page-home .tile--durian {
  background-color: var(--durian);
}

.page-home .tile__label {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.page-home .tile__count {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.page-home .tile__unit {
  font-size: var(--home-fs-sm);
  font-weight: 600;
  opacity: 0.75;
  position: relative;
  z-index: 1;
}

.page-home .tile__deco {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 72px;
  height: 72px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .tile__deco::after {
  content: "";
  position: absolute;
  left: -12px;
  top: -12px;
  width: 90px;
  height: 90px;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

/* divider band */
.page-home .home-divider {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: var(--home-gap);
  border-radius: 6px;
  overflow: hidden;
}

.page-home .home-divider span {
  height: 8px;
}

/* update cards */
.page-home .home-updates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-updates .card {
  background: var(--card-bg);
  border-radius: var(--home-card-radius);
  border: 2px solid var(--border-color);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.page-home .home-updates .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-home .home-updates .card--berry {
  border-top-color: var(--berry);
}

.page-home .home-updates .card--melon {
  border-top-color: var(--melon);
}

.page-home .home-updates .card--sun {
  border-top-color: var(--sun);
}

.page-home .home-updates .card--cherry {
  border-top-color: var(--cherry);
}

.page-home .home-updates .card--durian {
  border-top-color: var(--durian);
}

.page-home .card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .card__batch {
  font-family: var(--font-mono);
  font-size: var(--home-fs-xs);
  color: var(--text-muted);
}

.page-home .card__title {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
  color: var(--text-main);
}

.page-home .card__meta {
  font-size: var(--home-fs-xs);
  color: var(--text-muted);
  margin: 0;
}

.page-home .card__body {
  margin-top: auto;
}

.page-home .media-placeholder {
  border-radius: 8px;
  overflow: hidden;
  background-color: #F7F7F7;
  position: relative;
}

.page-home .media-placeholder--berry {
  background-color: var(--tag-berry);
}

.page-home .media-placeholder--melon {
  background-color: var(--tag-melon);
}

.page-home .media-placeholder--sun {
  background-color: var(--tag-sun);
}

.page-home .media-placeholder--cherry {
  background-color: var(--tag-cherry);
}

.page-home .media-placeholder--durian {
  background-color: var(--tag-durian);
}

.page-home .media-placeholder img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.page-home .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--home-fs-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.page-home .status-badge--new {
  background: #E0F2E5;
  color: var(--status-new);
}

.page-home .status-badge--updating {
  background: #E3F0FD;
  color: var(--status-updating);
}

.page-home .status-badge--archived {
  background: #EBEBEB;
  color: var(--status-archived);
}

/* tags */
.page-home .home-tags__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .home-tags__main {
  background: var(--home-tag-bg);
  border-radius: var(--radius-notch);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
}

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

.page-home .tag-chip {
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--home-chip-radius);
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}

.page-home .tag-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-home .tag-chip--xl {
  font-size: 1.15rem;
  padding: 8px 16px;
}

.page-home .tag-chip--lg {
  font-size: 0.95rem;
  padding: 6px 14px;
}

.page-home .tag-chip--md {
  font-size: 0.82rem;
  padding: 5px 12px;
}

.page-home .tag-chip--sm {
  font-size: 0.72rem;
  padding: 4px 10px;
}

.page-home .tag-chip--berry {
  background: var(--tag-berry);
  color: #8D1A3B;
}

.page-home .tag-chip--melon {
  background: var(--tag-melon);
  color: #1B5E20;
}

.page-home .tag-chip--sun {
  background: var(--tag-sun);
  color: #6B5B00;
}

.page-home .tag-chip--cherry {
  background: var(--tag-cherry);
  color: #8F1C40;
}

.page-home .tag-chip--durian {
  background: var(--tag-durian);
  color: #7A3E00;
}

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

/* rank */
.page-home .home-rank {
  background: var(--home-rank-bg);
  border-radius: var(--radius-notch);
  padding: 20px 16px;
}

.page-home .home-rank__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-rank__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border-radius: 10px 2px 10px 2px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
}

.page-home .home-rank__item .seq-marker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 8px 2px 8px 2px;
  width: 42px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .home-rank__info {
  display: grid;
  gap: 6px;
}

.page-home .home-rank__name {
  font-size: var(--home-fs-md);
  font-weight: 800;
  margin: 0;
}

.page-home .home-rank__name a {
  color: var(--text-main);
  text-decoration: none;
}

.page-home .home-rank__name a:hover {
  color: var(--accent);
}

.page-home .metric-bar {
  height: 8px;
  background: #EDE7F3;
  border-radius: 999px;
  overflow: hidden;
}

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

.page-home .metric-bar__fill--new {
  background: var(--status-new);
}

.page-home .metric-bar__fill--updating {
  background: var(--status-updating);
}

.page-home .metric-bar__fill--archived {
  background: var(--status-archived);
}

.page-home .home-rank__value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.page-home .home-rank__index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.page-home .home-rank__index .index-bar__label {
  font-size: var(--home-fs-sm);
  color: var(--text-muted);
  font-weight: 600;
}

.page-home .index-bar__link {
  font-size: var(--home-fs-sm);
  text-decoration: none;
  background: var(--accent);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.page-home .index-bar__link[aria-current="true"] {
  background: var(--accent-deep);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* table */
.page-home .home-table__banner {
  border-radius: var(--radius-notch);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.page-home .home-table__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-deep) 0%, rgba(47, 10, 78, 0.55) 40%, transparent 100%);
}

.page-home .home-table__banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-home .home-table {
  background: var(--card-bg);
  border-radius: var(--radius-notch);
  padding: 18px 14px;
  border: 1px solid var(--border-color);
}

.page-home .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--home-fs-sm);
}

.page-home .data-table th {
  text-align: left;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  padding: 10px 12px;
  white-space: nowrap;
}

.page-home .data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #F0ECE6;
  color: var(--text-main);
  vertical-align: middle;
}

.page-home .data-table tr:nth-child(even) td {
  background: var(--home-table-stripe);
}

.page-home .data-table td a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.page-home .data-table td a:hover {
  text-decoration: underline;
}

.page-home .home-table__batch {
  font-family: var(--font-mono);
  font-size: var(--home-fs-xs);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* quick info */
.page-home .home-quickinfo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8F3EE 100%);
  border-radius: var(--radius-notch);
  padding: 20px 16px;
  border: 1px solid var(--border-color);
}

.page-home .home-quickinfo__media {
  border-radius: 12px;
  overflow: hidden;
}

.page-home .home-quickinfo__media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

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

.page-home .home-quickinfo__item {
  border: 1px solid var(--border-color);
  border-radius: 10px 2px 10px 2px;
  padding: 14px;
  background: var(--card-bg);
}

.page-home .home-quickinfo__icon {
  color: var(--accent);
  font-size: 1.4rem;
}

.page-home .home-quickinfo__heading {
  font-size: 1rem;
  font-weight: 900;
  margin: 6px 0 4px;
}

.page-home .home-quickinfo__text {
  font-size: var(--home-fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}

.page-home .home-quickinfo__link {
  display: inline-block;
  font-size: var(--home-fs-sm);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.page-home .home-quickinfo__link:hover {
  text-decoration: underline;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.page-home .btn--ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 6px 2px 6px 2px;
  padding: 6px 12px;
  font-size: var(--home-fs-sm);
}

.page-home .btn--ghost:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .page-home .home-hero__content {
    padding: 36px 30px 24px;
  }

  .page-home .home-hero__title {
    font-size: 2.4rem;
  }

  .page-home .home-hero__desc {
    font-size: 1rem;
  }

  .page-home .home-hero__art img {
    min-height: 200px;
    max-height: 300px;
  }

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

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

  .page-home .home-quickinfo {
    grid-template-columns: 260px 1fr;
    align-items: center;
  }

  .page-home .home-quickinfo__media img {
    height: 100%;
    min-height: 200px;
  }
}

@media (min-width: 1024px) {
  .page-home .container {
    padding: 0 24px;
  }

  .page-home .home-hero__inner {
    flex-direction: row;
    min-height: 340px;
  }

  .page-home .home-hero__content {
    flex: 1 1 60%;
    padding: 40px 36px;
  }

  .page-home .home-hero__title {
    font-size: 2.8rem;
  }

  .page-home .home-hero__desc {
    max-width: 520px;
    font-size: 1.02rem;
  }

  .page-home .home-hero__art {
    flex: 1 1 40%;
    margin-top: 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page-home .home-hero__art img {
    min-height: 340px;
    max-height: none;
  }

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

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

  .page-home .home-tags__layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }

  .page-home .home-tags__side {
    display: block;
  }

  .page-home .home-tags__side img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-notch);
  }

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

  .page-home .home-rank__item {
    padding: 14px 16px;
  }

  .page-home .home-table__banner {
    margin-bottom: 20px;
  }

  .page-home .home-table__banner img {
    height: 280px;
  }

  .page-home .home-quickinfo__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .page-home .home-quickinfo__media img {
    height: 240px;
  }
}

@media (min-width: 1280px) {
  .page-home .home-hero__title {
    font-size: 3.2rem;
  }

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