.page-home {
  --home-grid: minmax(0, 1fr);
  --home-gap: 24px;
  --home-radius: 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0d0d16 40%, var(--bg-deep) 100%);
  padding: clamp(20px, 4vw, 48px) 0 96px;
  min-height: 100vh;
  overflow: hidden;
}

.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .04em;
}

.page-home .breadcrumb a {
  color: var(--neon-pink);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: text-shadow .2s ease;
}

.page-home .breadcrumb a:hover {
  text-shadow: var(--glow-pink);
}

.page-home .p-hero {
  position: relative;
  padding: 48px 0 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .p-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20vw;
  width: 60vw;
  height: 2px;
  background: var(--neon-pink);
  transform: rotate(-12deg);
  transform-origin: left top;
  opacity: .6;
  box-shadow: var(--glow-pink);
}

.page-home .p-hero__glow {
  position: absolute;
  top: 32px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(155, 48, 255, .25) 0%, transparent 70%);
  pointer-events: none;
}

.page-home .p-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  transform: skewY(-2deg);
}

.page-home .p-hero__code {
  display: inline-block;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 20px;
  box-shadow: var(--glow-cyan);
  background: rgba(0, 229, 255, .06);
}

.page-home .p-hero__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 20px;
  text-shadow: 0 0 22px rgba(255, 45, 120, .32);
  border-left: 4px solid var(--neon-pink);
  padding-left: 24px;
}

.page-home .p-hero__desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.page-home .p-hero__scan {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-pink), var(--neon-purple), transparent);
  animation: p-scan-move 3.6s ease-in-out infinite;
  opacity: .5;
}

@keyframes p-scan-move {
  0%, 100% { transform: scaleX(.3); opacity: .3; }
  50% { transform: scaleX(1); opacity: .8; }
}

.page-home .p-preview {
  padding: 40px 0 48px;
}

.page-home .p-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 32px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .p-preview__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 20px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}

.page-home .p-preview__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .25s ease;
}

.page-home .p-preview__card:hover {
  transform: translateX(6px) skewX(-1.5deg);
}

.page-home .p-preview__card--pink {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 45, 120, .4);
}

.page-home .p-preview__card--pink:hover {
  box-shadow: var(--glow-pink);
}

.page-home .p-preview__card--pink::after {
  background: linear-gradient(135deg, rgba(255, 45, 120, .15), transparent);
  opacity: 1;
}

.page-home .p-preview__card--purple {
  background: var(--bg-panel);
  border: 1px solid rgba(155, 48, 255, .4);
}

.page-home .p-preview__card--purple:hover {
  box-shadow: var(--glow-purple);
}

.page-home .p-preview__card--purple::after {
  background: linear-gradient(135deg, rgba(155, 48, 255, .15), transparent);
  opacity: 1;
}

.page-home .p-preview__card--cyan {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 229, 255, .4);
}

.page-home .p-preview__card--cyan:hover {
  box-shadow: var(--glow-cyan);
}

.page-home .p-preview__card--cyan::after {
  background: linear-gradient(135deg, rgba(0, 229, 255, .12), transparent);
  opacity: 1;
}

.page-home .p-preview__card--green {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 255, 157, .35);
}

.page-home .p-preview__card--green:hover {
  box-shadow: 0 0 18px rgba(0, 255, 157, .25);
}

.page-home .p-preview__card--green::after {
  background: linear-gradient(135deg, rgba(0, 255, 157, .1), transparent);
  opacity: 1;
}

.page-home .p-preview__num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dim);
  opacity: .45;
  z-index: 0;
  line-height: 1;
}

.page-home .p-preview__label {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: .05em;
  margin-bottom: 6px;
  z-index: 1;
}

.page-home .p-preview__meta {
  color: var(--text-dim);
  font-size: 12px;
  z-index: 1;
}

.page-home .p-preview__thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 80px;
  object-fit: cover;
  z-index: 0;
}

.page-home .p-preview__badge {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 2px 6px;
  font-size: 10px;
  box-shadow: var(--glow-cyan);
}

.page-home .p-preview__rule {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 56px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.page-home .p-preview__bar {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 96px;
  height: 4px;
  background: var(--line);
}

.page-home .p-preview__bar i {
  display: block;
  height: 100%;
  width: 70%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.page-home .p-cat {
  padding: 48px 0;
}

.page-home .p-cat__intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  padding: 20px 0 4px;
  margin: 0;
  max-width: 760px;
}

.page-home .p-cat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 8px;
}

.page-home .p-cat__grid {
  margin-top: 24px;
  gap: 16px;
}

.page-home .p-cat__item {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.page-home .p-cat__item:hover {
  border-color: var(--neon-pink);
  box-shadow: var(--glow-pink);
  transform: translateY(-3px);
}

.page-home .p-cat__item.is-filtered {
  display: none;
}

.page-home .p-cat__link {
  display: block;
  text-decoration: none;
  padding: 20px 16px 18px;
}

.page-home .p-cat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  color: var(--neon-pink);
}

.page-home .p-cat__name {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 6px;
  font-weight: 500;
}

.page-home .p-cat__count {
  color: var(--text-dim);
  font-size: 12px;
  margin: 0;
}

.page-home .p-index {
  padding: 48px 0;
  position: relative;
}

.page-home .p-index__wrap {
  padding: 24px 0 0;
}

.page-home .p-index__stats {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim);
  padding: 0 0 8px;
  margin: 0 0 16px;
  border-bottom: 1px dashed var(--line);
}

.page-home .p-index__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 20px;
}

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

.page-home .p-index__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.page-home .p-index__item:hover {
  border-color: var(--neon-purple);
  box-shadow: var(--glow-purple);
}

.page-home .p-index__item.is-filtered {
  display: none;
}

.page-home .p-index__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-panel-2);
}

.page-home .p-index__body {
  min-width: 0;
}

.page-home .p-index__title {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0 0 6px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .p-index__meta {
  color: var(--text-dim);
  font-size: 11px;
  margin: 0;
}

.page-home .p-index__tag {
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 2px 6px;
  font-size: 10px;
  white-space: nowrap;
}

.page-home .p-live {
  padding: 56px 0;
  position: relative;
}

.page-home .p-live::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.page-home .p-live__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0 0;
  align-items: center;
}

.page-home .p-live__content {
  border-left: 2px solid var(--neon-purple);
  padding-left: 24px;
}

.page-home .p-live__desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.page-home .p-live__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
}

.page-home .p-live__list .index-grid__cell {
  padding: 10px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .p-live__list .index-grid__cell span {
  color: var(--neon-purple);
}

.page-home .p-live__tip {
  color: var(--neon-purple);
  font-size: 12px;
}

.page-home .p-live__media {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
  transform: skewX(-2deg);
}

.page-home .p-live__poster {
  display: block;
  width: 100%;
  height: auto;
  max-width: 240px;
  border: 2px solid var(--neon-purple);
  box-shadow: var(--glow-purple);
}

.page-home .p-live__badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: var(--bg-deep);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 4px 8px;
  font-size: 12px;
  box-shadow: var(--glow-cyan);
}

.page-home .p-dl {
  padding: 48px 0;
}

.page-home .p-dl__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 0 0;
  align-items: center;
}

.page-home .p-dl__info {
  padding: 24px;
}

.page-home .p-dl__heading {
  font-size: 20px;
  color: var(--text-primary);
  margin: 0 0 14px;
  letter-spacing: .04em;
}

.page-home .p-dl__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.page-home .p-dl__bar {
  position: relative;
  height: 8px;
  background: var(--bg-panel-2);
  overflow: hidden;
  margin: 20px 0 8px;
}

.page-home .p-dl__bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-green));
  box-shadow: 0 0 12px rgba(0, 255, 157, .4);
}

.page-home .p-dl__bar-text {
  position: absolute;
  top: -16px;
  right: 0;
  color: var(--neon-green);
  font-size: 11px;
}

.page-home .p-dl__meta {
  color: var(--text-dim);
  font-size: 12px;
  margin: 8px 0 0;
}

.page-home .p-dl__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.page-home .p-dl__img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 14px rgba(0, 255, 157, .2);
}

.page-home .p-dl__btn {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}

.page-home .p-route {
  padding: 48px 0 24px;
  position: relative;
}

.page-home .p-route::before {
  content: '';
  position: absolute;
  top: 0;
  left: -24px;
  width: calc(100% + 48px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
  opacity: .6;
}

.page-home .p-route__grid {
  padding: 28px 0 0;
  gap: 14px;
}

.page-home .p-route__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.page-home .p-route__link:hover {
  border-color: var(--neon-pink);
  transform: translateX(4px);
  box-shadow: var(--glow-pink);
}

.page-home .p-route__idx {
  color: var(--text-dim);
  font-size: 12px;
}

.page-home .p-route__name {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: .03em;
}

.page-home .p-route__desc {
  font-size: 13px;
  margin: 0;
}

.page-home .p-route__link:nth-child(5) {
  grid-column: span 1;
}

.page-home .trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  margin-top: 48px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
}

.page-home .trust-bar .alert-18 {
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 2px 8px;
  font-size: 12px;
  box-shadow: 0 0 12px rgba(255, 179, 0, .25);
}

.page-home .trust-bar__text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
  min-width: 240px;
}

@media (min-width: 640px) {
  .page-home {
    --home-gap: 28px;
  }

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

  .page-home .p-preview__card {
    min-height: 200px;
  }

  .page-home .p-preview__card:first-child {
    grid-column: span 2;
    min-height: 220px;
  }

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

  .page-home .p-live__grid {
    grid-template-columns: 1fr auto;
  }

  .page-home .p-dl__grid {
    grid-template-columns: 1fr 200px;
  }
}

@media (min-width: 960px) {
  .page-home {
    --home-grid: minmax(0, 1fr);
    --home-gap: 32px;
  }

  .page-home .p-hero {
    padding: 64px 0 80px;
  }

  .page-home .p-hero__title {
    font-size: 46px;
  }

  .page-home .p-hero__desc {
    font-size: 16px;
    max-width: 780px;
  }

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

  .page-home .p-preview__card:first-child {
    grid-column: span 1;
    min-height: 240px;
  }

  .page-home .p-preview__card {
    min-height: 240px;
    padding: 24px;
  }

  .page-home .p-preview__thumb {
    width: 140px;
    height: 96px;
  }

  .page-home .p-index__list {
    grid-template-columns: 1fr;
    max-width: 900px;
  }

  .page-home .p-index__thumb {
    width: 96px;
    height: 96px;
  }

  .page-home .p-live__grid {
    grid-template-columns: 1fr 260px;
  }

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

  .page-home .p-dl__info {
    padding: 32px;
  }

  .page-home .p-route__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
