/* ================= page-home ================= */
.page-home {
  --home-hair: rgba(124, 140, 163, 0.26);
  --home-hair-cyan: rgba(55, 224, 216, 0.34);
  --home-tile: rgba(16, 32, 60, 0.66);
}

/* ---------- 页面上下文 ---------- */
.page-home .home-context {
  padding-block: 18px 4px;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  display: grid;
  gap: 34px;
  padding-block: 22px 52px;
  align-items: start;
}

.page-home .home-hero__intro > * + * {
  margin-top: 18px;
}

.page-home .home-hero__intro .lede {
  max-width: 56ch;
}

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

.page-home .home-hero__hint {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--slate-500);
  border-left: 2px solid var(--cyan-600);
  padding-left: 10px;
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  padding: 0 12px 12px 0;
}

.page-home .home-hero__frame {
  position: relative;
  z-index: 1;
  background-color: var(--ink-800);
  border: 1px solid var(--home-hair-cyan);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow:
    12px 12px 0 -1px rgba(55, 224, 216, 0.14),
    0 18px 40px rgba(4, 10, 22, 0.55);
}

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

.page-home .home-hero__tab {
  position: absolute;
  top: -12px;
  left: -8px;
  z-index: 2;
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--orange-400);
  color: var(--ink-900);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: var(--radius);
}

.page-home .home-hero__caption {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--slate-500);
  max-width: 40ch;
}

/* ---------- 本季专栏 ---------- */
.page-home .home-season {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.page-home .home-season__summary {
  border-left: 3px solid var(--cyan-400);
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .home-season__stamp {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--purple-400);
}

.page-home .home-season__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.page-home .home-season__num {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1;
  color: var(--cyan-400);
}

.page-home .home-season__unit {
  font-size: 0.9375rem;
  color: var(--paper-100);
}

.page-home .home-season__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--slate-500);
}

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

.page-home .home-entry {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background-color: var(--home-tile);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius);
  transition:
    transform var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease);
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-within {
  transform: translateY(-3px);
  border-color: var(--cyan-400);
  box-shadow: 0 10px 24px rgba(4, 10, 22, 0.45);
}

.page-home .home-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.page-home .home-entry__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.page-home .home-entry__link {
  color: var(--paper-100);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}

.page-home .home-entry__link:hover,
.page-home .home-entry__link:focus-visible {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
}

.page-home .home-entry__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--slate-500);
}

/* ---------- 记录按钮路径 ---------- */
.page-home .home-path {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.page-home .home-path__figure {
  margin: 0;
  border: 1px solid var(--home-hair);
  background-color: var(--ink-800);
  padding: 10px;
  border-radius: var(--radius);
}

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

.page-home .home-path__figure figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.page-home .home-path__steps {
  list-style: none;
  counter-reset: pathstep;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.page-home .home-path__steps > li {
  position: relative;
  padding-left: 54px;
  min-height: 40px;
}

.page-home .home-path__steps > li::before {
  counter-increment: pathstep;
  content: counter(pathstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background-color: var(--cyan-600);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.page-home .home-path__step-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper-100);
}

.page-home .home-path__steps p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--slate-500);
}

/* ---------- 季度归档 ---------- */
.page-home .home-archive__figure {
  margin: 26px 0 0;
  border: 1px solid var(--home-hair);
  background-color: rgba(10, 20, 40, 0.6);
  padding: 10px;
  border-radius: var(--radius);
}

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

.page-home .home-archive__figure figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.page-home .home-qrail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-qrail::-webkit-scrollbar {
  height: 6px;
}

.page-home .home-qrail::-webkit-scrollbar-thumb {
  background-color: rgba(124, 140, 163, 0.42);
  border-radius: 3px;
}

.page-home .home-qchip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  min-width: 104px;
  padding: 12px 14px;
  text-decoration: none;
  background-color: var(--home-tile);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius);
  transition:
    transform var(--dur-micro) var(--ease),
    border-color var(--dur-micro) var(--ease),
    background-color var(--dur-micro) var(--ease);
}

.page-home .home-qchip__num {
  font-size: 0.9375rem;
  color: var(--cyan-400);
}

.page-home .home-qchip__label {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.page-home .home-qchip:hover,
.page-home .home-qchip:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan-400);
  background-color: rgba(55, 224, 216, 0.1);
}

.page-home .home-qchip--current {
  border-color: var(--orange-400);
  background-color: rgba(255, 154, 60, 0.12);
}

.page-home .home-qchip--current .home-qchip__num {
  color: var(--orange-400);
}

/* ---------- 稳定版通道 ---------- */
.page-home .home-channel {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.page-home .home-channel__figure {
  margin: 0;
  border: 1px solid rgba(10, 20, 40, 0.14);
  background-color: #ffffff;
  padding: 10px;
  border-radius: var(--radius);
}

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

.page-home .home-channel__figure figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #4a5a70;
}

.page-home .home-channel__sub {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900);
}

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

.page-home .home-channel__uses li {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #3c4b60;
  padding-left: 16px;
  border-left: 2px solid var(--cyan-600);
}

.page-home .home-channel__uses strong {
  color: var(--ink-900);
}

.page-home .home-channel__compare {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.page-home .home-channel__lane {
  border: 1px solid rgba(10, 20, 40, 0.14);
  background-color: rgba(227, 235, 241, 0.55);
  padding: 14px 16px;
  border-radius: var(--radius);
}

.page-home .home-channel__lane--short {
  border-color: var(--orange-600);
  background-color: rgba(255, 154, 60, 0.12);
}

.page-home .home-channel__lane-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #4a5a70;
}

.page-home .home-channel__lane--short .home-channel__lane-title {
  color: var(--orange-600);
}

.page-home .home-channel__lane-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-900);
}

.page-home .home-channel__lane-steps li {
  position: relative;
  padding: 4px 10px;
  background-color: #ffffff;
  border: 1px solid rgba(10, 20, 40, 0.12);
  border-radius: var(--radius);
}

.page-home .home-channel__lane-steps li + li::before {
  content: "›";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #8c9aa9;
}

/* ---------- 收录范围 ---------- */
.page-home .home-cats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-cat {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background-color: var(--home-tile);
  border: 1px solid var(--home-hair);
  border-left: 3px solid var(--purple-400);
  border-radius: var(--radius);
  transition:
    transform var(--dur-micro) var(--ease),
    border-left-color var(--dur-micro) var(--ease),
    box-shadow var(--dur-micro) var(--ease);
}

.page-home .home-cat:hover,
.page-home .home-cat:focus-within {
  transform: translateY(-3px);
  border-left-color: var(--cyan-400);
  box-shadow: 0 10px 24px rgba(4, 10, 22, 0.45);
}

.page-home .home-cat__mark {
  width: 26px;
  height: 3px;
  background-color: var(--orange-400);
  border-radius: 2px;
}

.page-home .home-cat__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper-100);
}

.page-home .home-cat__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--slate-500);
}

.page-home .home-figures {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .home-figure {
  padding: 16px 18px;
  background-color: rgba(10, 20, 40, 0.55);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius);
  transition: transform var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}

.page-home .home-figure:hover,
.page-home .home-figure:focus-within {
  transform: translateY(-3px);
  border-color: var(--cyan-400);
}

.page-home .home-figure__label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--slate-500);
}

.page-home .home-figure__num {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
  color: var(--cyan-400);
}

.page-home .home-coverage__note {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--purple-400);
  font-size: 0.875rem;
  line-height: 1.78;
  color: var(--slate-500);
  max-width: 76ch;
}

/* ---------- 协助区 ---------- */
.page-home .home-help {
  margin-top: 40px;
}

.page-home .home-help__grid {
  display: grid;
  gap: 26px;
}

.page-home .home-help__text > p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--paper-100);
  max-width: 58ch;
}

.page-home .home-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.page-home .home-help__card {
  border-top: 3px solid var(--orange-400);
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .home-help__card-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--orange-400);
}

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

.page-home .home-help__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--paper-100);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-hair);
}

.page-home .home-help__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-help__list-label {
  min-width: 44px;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.page-home .home-help__tip {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.72;
  color: var(--slate-500);
}

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

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

@media (min-width: 768px) {
  .page-home .home-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-hero {
    gap: 40px;
    padding-block: 30px 64px;
  }
}

@media (min-width: 900px) {
  .page-home .home-season {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 28px;
    align-items: start;
  }

  .page-home .home-season__summary {
    position: sticky;
    top: calc(var(--topbar-h) + 20px);
  }

  .page-home .home-path {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 40px;
    align-items: center;
  }

  .page-home .home-channel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }

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

  .page-home .home-help__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 40px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.86fr);
    gap: 56px;
    padding-block: 36px 78px;
  }

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

  .page-home .home-hero__caption {
    max-width: 46ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-qchip,
  .page-home .home-cat,
  .page-home .home-figure {
    transition: none;
  }

  .page-home .home-entry:hover,
  .page-home .home-entry:focus-within,
  .page-home .home-qchip:hover,
  .page-home .home-qchip:focus-visible,
  .page-home .home-cat:hover,
  .page-home .home-cat:focus-within,
  .page-home .home-figure:hover,
  .page-home .home-figure:focus-within {
    transform: none;
  }
}
