.page-home {
  --home-gap: 20px;
  --home-shadow: 0 0 26px rgba(0, 255, 136, 0.16);
  position: relative;
  z-index: 0;
  overflow: clip;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 82% 8%, rgba(0, 204, 255, 0.14), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(0, 255, 136, 0.09), transparent 30%),
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 34px 34px, 34px 34px;
}

.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 20px 0;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.page-home .breadcrumb-link {
  color: var(--blue);
  text-decoration: none;
}

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

.page-home .breadcrumb-sep {
  opacity: 0.55;
}

.page-home .breadcrumb-current {
  color: var(--text-dim);
}

.page-home .page-hero {
  display: grid;
  gap: var(--home-gap);
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.page-home .hero-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-highlight), var(--surface) 70%);
}

.page-home .hero-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.page-home .brand-badge {
  background: var(--alert);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.page-home .hero-brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.page-home .hero-title {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.page-home .hero-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  box-shadow: var(--shadow-accent);
}

.page-home .hero-subtitle {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.page-home .hero-subtitle strong {
  color: var(--accent);
  font-weight: 600;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-dim);
  font-size: 0.875rem;
}

.page-home .stat-num {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  white-space: nowrap;
}

.page-home .version-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.page-home .version-switch-label {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.page-home .version-toggle {
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.page-home .version-toggle:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.page-home .version-note {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.page-home .hero-aside-img {
  margin-top: auto;
}

.page-home .hero-img {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.page-home .hero-main {
  display: grid;
  gap: var(--home-gap);
}

.page-home .topbar-panel {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 20, 0.66);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-home .topbar-panel:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.16);
}

.page-home .section-overline {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(0, 204, 255, 0.4);
}

.page-home h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
}

.page-home .search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-home .search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 18px rgba(0, 204, 255, 0.2);
}

.page-home .search-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
}

.page-home .search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.page-home .search-input::placeholder {
  color: var(--text-dim);
}

.page-home .topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-home .btn-primary {
  border: 0;
  background: var(--gradient);
  color: #05100b;
}

.page-home .btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--blue);
}

.page-home .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.page-home .category-section {
  position: relative;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.page-home .quick-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-highlight);
  color: var(--text-dim);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-home .filter-btn:hover,
.page-home .filter-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.2);
}

.page-home .category-art-area {
  margin: 0 0 14px;
}

.page-home .grid-corner-img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

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

.page-home .category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--surface-highlight), var(--surface));
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-home .category-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  opacity: 0.75;
}

.page-home .category-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, transparent 48%, rgba(0, 204, 255, 0.16) 48%);
  pointer-events: none;
}

.page-home .category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.page-home .card-index {
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.page-home .card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .card-sub {
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.page-home .card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--blue);
  font-size: 0.8125rem;
}

.page-home .card-more::after {
  content: "→";
  transition: transform 0.2s;
}

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

.page-home .filter-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
  border: 1px dashed var(--alert);
  border-radius: var(--radius-md);
  color: var(--alert);
}

.page-home .ticker-section {
  display: grid;
  gap: 12px;
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 0 20px;
}

.page-home .ticker-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.page-home .ticker-label {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  color: #08110c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.page-home .ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.page-home .ticker-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: page-home-ticker 28s linear infinite;
}

.page-home .ticker-wrap:hover .ticker-track,
.page-home .ticker-wrap:focus-within .ticker-track {
  animation-play-state: paused;
}

.page-home .ticker-item {
  color: var(--text-dim);
  font-size: 0.875rem;
  white-space: nowrap;
}

.page-home .ticker-item::before {
  content: "◆";
  margin-right: 8px;
  color: var(--accent);
}

.page-home .ticker-icon {
  flex: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-pill);
}

@keyframes page-home-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.page-home .archive-section {
  display: grid;
  gap: 18px;
  max-width: 1440px;
  margin: 24px auto 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-highlight), var(--surface));
}

.page-home .archive-art {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--blue);
  border-radius: var(--radius-md);
}

.page-home .archive-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.page-home .archive-copy h2 {
  margin-bottom: 6px;
}

.page-home .archive-copy p:not(.section-overline) {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.page-home .archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

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

  .page-home .hero-img {
    max-width: 150px;
  }

  .page-home .archive-icon {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 860px) {
  .page-home .archive-section {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 32px 40px;
  }
}

@media (min-width: 1024px) {
  .page-home .page-hero {
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 24px;
    padding: 28px 28px 0;
  }

  .page-home .hero-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
    padding: 26px;
  }

  .page-home .hero-title {
    font-size: 2.6rem;
  }

  .page-home .hero-img {
    max-width: 220px;
  }

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

  .page-home .category-art-area {
    width: 220px;
    height: 140px;
    margin-left: auto;
    margin-bottom: 16px;
  }

  .page-home .grid-corner-img {
    width: 220px;
    height: 140px;
    object-fit: cover;
  }

  .page-home .ticker-section,
  .page-home .archive-section {
    margin-left: 28px;
    margin-right: 28px;
  }

  .page-home .archive-section {
    margin-bottom: 56px;
  }
}
