.page-home {
  --home-halo-cyan: rgba(34, 227, 210, 0.26);
  --home-halo-magenta: rgba(255, 61, 139, 0.2);
  --home-card-bg: linear-gradient(165deg, rgba(14, 20, 32, 0.94), rgba(7, 8, 12, 0.94));
  --home-card-bg-hover: linear-gradient(165deg, rgba(20, 30, 46, 0.96), rgba(9, 11, 17, 0.96));
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(44px, 11vw, 116px));
  padding-bottom: clamp(52px, 9vw, 108px);
  overflow: hidden;
  background:
    radial-gradient(110% 85% at 84% 6%, var(--home-halo-cyan), transparent 60%),
    radial-gradient(80% 70% at 4% 2%, var(--home-halo-magenta), transparent 58%),
    var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(30px, 6vw, 56px);
  align-items: start;
}

.page-home .home-hero__title {
  margin: 12px 0 clamp(16px, 3vw, 26px);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.page-home .home-hero__accent {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(34, 227, 210, 0.35);
}

.page-home .home-hero__lead {
  max-width: 58ch;
  margin: 0;
  color: var(--graphite-2);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(22px, 3.5vw, 34px) 0 16px;
}

.page-home .home-hero__meta {
  color: var(--graphite);
  margin: 0;
}

.page-home .home-hero__aside {
  position: relative;
  display: grid;
  gap: 16px;
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 70% 30%, rgba(34, 227, 210, 0.18), transparent 68%),
    linear-gradient(140deg, var(--ink-2), var(--ink-3));
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(7, 8, 12, 0.78) 0%, rgba(7, 8, 12, 0.2) 58%, rgba(255, 61, 139, 0.18) 100%);
  pointer-events: none;
}

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

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

.page-home .home-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  height: 100%;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--home-card-bg);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}

.page-home .home-entry:hover {
  border-color: var(--line-cyan);
  background: var(--home-card-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -26px rgba(34, 227, 210, 0.6);
}

.page-home .home-entry:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-color: var(--line-cyan);
}

.page-home .home-entry__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mist);
}

.page-home .home-entry__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--graphite);
}

/* ---------- 通用章节头 ---------- */
.page-home .home-section-head {
  max-width: 760px;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .home-section-head__title {
  margin: 10px 0 14px;
}

.page-home .home-section-head__lead {
  margin: 0;
  max-width: 62ch;
  color: var(--graphite-2);
  line-height: 1.85;
}

/* ---------- 焕新专栏 ---------- */
.page-home .home-column {
  background: linear-gradient(180deg, var(--ink), var(--ink-2) 70%, var(--ink));
}

.page-home .home-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.page-home .home-tabs .bjj-tabs__btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(14, 20, 32, 0.7);
  color: var(--graphite-2);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}

.page-home .home-tabs .bjj-tabs__btn:hover {
  color: var(--mist);
  border-color: var(--line-cyan);
}

.page-home .home-tabs .bjj-tabs__btn[aria-selected="true"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
}

.page-home .home-tabs .bjj-tabs__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .home-tabs .bjj-tabs__panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--home-card-bg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 4vw, 38px);
}

.page-home .home-tabs .bjj-tabs__panel[hidden] {
  display: none;
}

.page-home .home-tabs__body {
  display: grid;
  gap: 22px;
}

.page-home .home-tabs__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--mist);
  letter-spacing: -0.01em;
}

.page-home .home-tabs__main p {
  margin: 0 0 12px;
  color: var(--graphite-2);
  line-height: 1.85;
}

.page-home .home-tabs__main p:last-child {
  margin-bottom: 0;
}

/* ---------- 年份归档 ---------- */
.page-home .home-archive {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink-3);
}

.page-home .home-archive__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0.16;
  pointer-events: none;
}

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

.page-home .home-archive__inner,
.page-home .home-archive__rail {
  position: relative;
  z-index: 1;
}

.page-home .home-archive__rail {
  padding-bottom: clamp(44px, 7vw, 84px);
}

.page-home .home-years {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 6px 2px 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-years__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.page-home .home-years__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 126px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(7, 8, 12, 0.78);
  color: var(--mist);
  text-decoration: none;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), background 240ms var(--ease);
}

.page-home .home-years__link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 227, 210, 0));
  opacity: 0.55;
}

.page-home .home-years__link:hover {
  border-color: var(--line-cyan);
  background: rgba(12, 18, 28, 0.9);
  transform: translateY(-3px);
}

.page-home .home-years__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.page-home .home-years__num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.page-home .home-years__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--graphite-2);
}

.page-home .home-years__item--start .home-years__link::before,
.page-home .home-years__item--now .home-years__link::before {
  background: linear-gradient(90deg, var(--gold), rgba(232, 176, 75, 0));
  opacity: 0.9;
}

.page-home .home-years__item--now .home-years__link {
  border-color: var(--line-cyan);
  background: linear-gradient(165deg, rgba(34, 227, 210, 0.16), rgba(7, 8, 12, 0.86));
}

/* ---------- 收藏同步 ---------- */
.page-home .home-favorites__grid {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}

.page-home .home-favorites__title {
  margin: 10px 0 16px;
}

.page-home .home-favorites__lead {
  margin: 0 0 20px;
  color: var(--graphite-2);
  line-height: 1.85;
  max-width: 56ch;
}

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

.page-home .home-favorites__list li {
  position: relative;
  padding-left: 20px;
  color: var(--graphite-2);
  line-height: 1.75;
}

.page-home .home-favorites__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 227, 210, 0.7);
}

.page-home .home-favorites__list strong {
  color: var(--mist);
  font-weight: 600;
}

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

/* ---------- 订阅与反馈 ---------- */
.page-home .home-notify {
  background: linear-gradient(180deg, var(--ink), var(--ink-2));
}

.page-home .home-notify__grid {
  margin-bottom: clamp(26px, 4vw, 42px);
}

.page-home .home-notify__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .home-notify__card .bjj-card__title {
  margin: 0;
  font-size: 18px;
}

.page-home .home-notify__card .bjj-card__text {
  margin: 0;
}

.page-home .home-notify__feedback {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line-magenta);
  border-radius: var(--r);
  background:
    radial-gradient(90% 130% at 92% 10%, rgba(255, 61, 139, 0.16), transparent 62%),
    var(--home-card-bg);
}

.page-home .home-notify__feedback-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--mist);
}

.page-home .home-notify__feedback-text p {
  margin: 0 0 10px;
  color: var(--graphite-2);
  line-height: 1.85;
}

.page-home .home-notify__feedback-text p:last-child {
  margin-bottom: 0;
}

.page-home .home-notify__feedback-text a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-notify__feedback .bjj-btn {
  justify-self: start;
}

/* ---------- 数据带 ---------- */
.page-home .home-stats {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 9vw, 108px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-3);
}

.page-home .home-stats__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0.2;
  pointer-events: none;
}

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

.page-home .home-stats__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-stats__title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--cyan);
}

.page-home .home-stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding: 0;
}

.page-home .home-stats__item {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.page-home .home-stats__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--graphite);
  margin-bottom: 8px;
}

.page-home .home-stats__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--mist);
}

.page-home .home-stats__unit {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
  vertical-align: baseline;
}

.page-home .home-stats__note {
  max-width: 68ch;
  margin: 0 0 clamp(22px, 3vw, 32px);
  color: var(--graphite-2);
  line-height: 1.85;
}

.page-home .home-stats__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-entries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-tabs__body {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .page-home .home-stats__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .page-home .home-hero__copy {
    grid-column: 1 / span 7;
  }

  .page-home .home-hero__aside {
    grid-column: 8 / span 5;
  }

  .page-home .home-favorites__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .page-home .home-notify__feedback {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .page-home .home-notify__feedback .bjj-btn {
    justify-self: end;
  }

  .page-home .home-stats__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .page-home .home-hero {
    padding-top: calc(var(--header-h) + 32px);
  }

  .page-home .home-hero__visual {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-years__link,
  .page-home .home-tabs .bjj-tabs__btn {
    transition: none;
  }

  .page-home .home-entry:hover,
  .page-home .home-years__link:hover {
    transform: none;
  }
}
