.page-home {
  --home-red-glow: rgba(255, 42, 77, 0.14);
  --home-purple-glow: rgba(61, 29, 92, 0.3);
  position: relative;
  background:
    radial-gradient(ellipse at 82% 12%, var(--home-red-glow), transparent 55%),
    radial-gradient(ellipse at 8% 88%, var(--home-purple-glow), transparent 50%),
    var(--bg);
}

/* 页面上下文面包屑 */
.page-home .pg-page-context {
  padding-top: 22px;
  padding-bottom: 4px;
}
.page-home .pg-page-context .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.page-home .breadcrumbs__sep {
  color: var(--line-strong);
}
.page-home .breadcrumbs__current {
  color: var(--red);
}
.page-home .breadcrumbs__link {
  color: var(--text-dim);
}

/* 首屏框景 */
.page-home .pg-hero {
  position: relative;
  padding: 26px 0 0;
}
.page-home .pg-hero__frame {
  position: relative;
  max-width: calc(var(--container) + 72px);
  margin: 0 auto;
  padding: 0 16px;
  border: 2px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.22);
}
.page-home .pg-hero__film-top,
.page-home .pg-hero__film-bottom {
  height: 16px;
  margin: 0 -16px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 22px,
    var(--line-strong) 22px 30px
  );
}
.page-home .pg-hero__film-top {
  border-bottom: 1px solid var(--line-strong);
}
.page-home .pg-hero__film-bottom {
  border-top: 1px solid var(--line-strong);
}
.page-home .pg-hero__inner {
  display: grid;
  gap: 28px;
  padding: 32px 0;
}
.page-home .pg-hero__content {
  min-width: 0;
}
.page-home .pg-hero__code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--green);
  background: var(--panel);
  border: 1px solid var(--line-strong);
}
.page-home .pg-hero__code .status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.page-home .pg-hero__title {
  position: relative;
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: clamp(29px, 5.6vw, 58px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--text);
}
.page-home .pg-hero__title::after {
  content: '';
  display: block;
  width: 72px;
  height: 6px;
  margin-top: 20px;
  background: var(--red);
  transform: skewX(-24deg);
}
.page-home .pg-hero__lede {
  max-width: 540px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-dim);
}
.page-home .pg-hero__lede span {
  color: var(--text);
  font-weight: 600;
}
.page-home .pg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.page-home .pg-hero__figure {
  position: relative;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.42);
}
.page-home .pg-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .pg-hero__figure figcaption {
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}
.page-home .pg-hero__stamp {
  margin: 0 16px;
  padding: 10px 0 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  border-top: 1px dashed var(--line);
}

@media (min-width: 980px) {
  .page-home .pg-hero__inner {
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 40px;
  }
}

/* 今日更新滚动条 */
.page-home .pg-today {
  padding: 50px 0 24px;
}
.page-home .pg-section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.page-home .pg-section-head .index-label {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.page-home .pg-section-head .section-title {
  margin: 0;
}
.page-home .pg-section-head__desc {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}
.page-home .pg-today__strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px max(24px, calc((100vw - var(--container)) / 2)) 34px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--red) var(--bg);
  scrollbar-width: thin;
}
.page-home .pg-today__card {
  position: relative;
  flex: 0 0 260px;
  scroll-snap-align: start;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.page-home .pg-today__card--hot {
  border-top: 3px solid var(--red);
}
@media (hover: hover) {
  .page-home .pg-today__card:hover,
  .page-home .pg-today__card:focus-within {
    border-color: var(--line-strong);
    background: #191919;
    transform: translateY(-4px);
  }
}
.page-home .pg-today__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.page-home .pg-today__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.page-home .pg-today__name {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 21px;
  letter-spacing: 0.03em;
  color: var(--text);
}
.page-home .pg-today__tags {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.page-home .pg-today__meta {
  margin: 0;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px dashed var(--line);
}
.page-home .pg-today__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 24px 0;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.page-home .pg-today__foot-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
}
.page-home .pg-today__foot-note strong {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--green);
}
.page-home .pg-today__foot-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--red);
  text-decoration: none;
}
.page-home .pg-today__foot-link:hover {
  color: var(--green);
}
@media (min-width: 720px) {
  .page-home .pg-today__foot {
    max-width: calc(var(--container) - 48px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* 本周补录时间轴 */
.page-home .pg-week {
  position: relative;
  margin-top: 28px;
  padding: 54px 0 44px;
  background:
    linear-gradient(180deg, rgba(122, 30, 30, 0.16), transparent 30%),
    var(--bg);
}
.page-home .pg-week::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-dark), var(--red), var(--red-dark), transparent);
}
.page-home .pg-week__wrap {
  display: grid;
  gap: 28px;
}
.page-home .pg-week__figure {
  align-self: start;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.page-home .pg-week__figure img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.page-home .pg-week__figure figcaption {
  margin: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}
.page-home .pg-week__content {
  min-width: 0;
}
.page-home .pg-week__axis {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .pg-week__axis::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--line-strong), var(--red-dark) 40%, var(--red) 100%);
}
.page-home .pg-week__day {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px dashed var(--line);
}
.page-home .pg-week__day:last-child {
  border-bottom: 0;
}
.page-home .pg-week__day::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 4px;
  z-index: 1;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}
.page-home .pg-week__dayhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}
.page-home .pg-week__dayname {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.page-home .pg-week__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.page-home .pg-week__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
}
.page-home .pg-week__details {
  font-family: var(--font-mono);
  font-size: 12px;
}
.page-home .pg-week__details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.page-home .pg-week__details summary::-webkit-details-marker {
  display: none;
}
.page-home .pg-week__details summary::before {
  content: '＋';
  font-weight: 700;
  color: var(--red);
}
.page-home .pg-week__details[open] summary::before {
  content: '－';
}
.page-home .pg-week__details summary:hover {
  color: var(--green);
}
.page-home .pg-week__codes {
  margin: 8px 0 0;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: var(--bg);
  border-left: 3px solid var(--red);
}
.page-home .pg-week__trust {
  margin: 26px 0 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--line);
}
.page-home .pg-week__trust strong {
  color: var(--green);
}
@media (min-width: 900px) {
  .page-home .pg-week__wrap {
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 44px;
  }
  .page-home .pg-week__figure img {
    height: auto;
    aspect-ratio: 360 / 720;
  }
}
@media (min-width: 1200px) {
  .page-home .pg-week__figure {
    position: sticky;
    top: 28px;
  }
}

/* 三大模块入口 */
.page-home .pg-modules {
  padding: 58px 0 48px;
  background:
    radial-gradient(ellipse at 10% 20%, var(--home-purple-glow), transparent 55%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}
.page-home .pg-modules__grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.page-home .pg-modules__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.page-home .pg-modules__item::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
@media (hover: hover) {
  .page-home .pg-modules__item:hover,
  .page-home .pg-modules__item:focus-visible {
    border-color: var(--line-strong);
    transform: translateY(-4px);
  }
  .page-home .pg-modules__item:hover::after,
  .page-home .pg-modules__item:focus-visible::after {
    transform: scaleX(1);
  }
}
.page-home .pg-modules__item--red {
  background: linear-gradient(150deg, rgba(122, 30, 30, 0.65), var(--panel) 74%);
}
.page-home .pg-modules__item--purple {
  background: linear-gradient(150deg, rgba(61, 29, 92, 0.7), var(--panel) 74%);
}
.page-home .pg-modules__item--dark {
  background: linear-gradient(150deg, #1a1a1a, var(--panel) 74%);
}
.page-home .pg-modules__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}
.page-home .pg-modules__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}
.page-home .pg-modules__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}
.page-home .pg-modules__figure {
  margin: 4px 0 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.page-home .pg-modules__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .pg-modules__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
}
.page-home .pg-modules__link::after {
  content: '→';
  transition: transform 0.2s ease;
}
.page-home .pg-modules__item:hover .pg-modules__link::after {
  transform: translateX(4px);
}
@media (min-width: 940px) {
  .page-home .pg-modules__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 最近动态速递 */
.page-home .pg-news {
  padding: 56px 0 84px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(122, 30, 30, 0.18), transparent 50%),
    var(--bg);
}
.page-home .pg-news__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.page-home .pg-news__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.page-home .pg-news__item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.page-home .pg-news__item .tag {
  flex: 0 0 auto;
}
.page-home .pg-news__item a {
  min-width: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-home .pg-news__item a:hover {
  color: var(--green);
}
.page-home .pg-news .btn {
  margin-top: 4px;
}
@media (min-width: 720px) {
  .page-home .pg-news__item {
    padding: 18px 12px;
  }
  .page-home .pg-news__item a {
    font-size: 16px;
  }
}
