/* ============ 首页 page-home ============ */
.page-home {
  --home-glow: rgba(18, 224, 192, .16);
  --home-line: rgba(110, 122, 118, .3);
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
}

.page-home .home-kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--cyan);
  margin: 0 0 16px;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 0 46px;
  border-bottom: var(--edge) solid var(--gold);
}

.page-home .home-hero__slash,
.page-home .home-hero__seam {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-home .home-hero__slash--left {
  background: linear-gradient(155deg, var(--layer) 0%, #0d2b23 55%, #0a1f19 100%);
  clip-path: polygon(0 0, 78% 0, 52% 100%, 0 100%);
}

.page-home .home-hero__slash--right {
  background: linear-gradient(205deg, var(--table) 0%, #0a0b0e 100%);
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 52% 100%);
}

.page-home .home-hero__seam {
  background: linear-gradient(180deg, var(--gold), var(--gold-hi));
  clip-path: polygon(78% 0, 79.4% 0, 53.4% 100%, 52% 100%);
  opacity: .78;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 30px;
}

.page-home .home-hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.95rem, 7.4vw, 3.35rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: var(--gold-hi);
  background-image: linear-gradient(178deg, var(--gold-hi) 6%, var(--gold) 60%, #a8842a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-home .home-hero__text {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(242, 239, 230, .86);
  margin: 0 0 24px;
  max-width: 34em;
}

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

.page-home .home-hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--home-line);
  font-size: .84rem;
  color: rgba(242, 239, 230, .72);
}

.page-home .home-hero__facts .k {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  margin-right: 6px;
}

.page-home .home-hero__art {
  margin: 0;
  position: relative;
  border: var(--edge) solid var(--gold);
  box-shadow: var(--sx) var(--sy) 0 var(--violet);
  background: var(--table);
}

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

.page-home .home-hero__art figcaption {
  font-size: .78rem;
  line-height: 1.65;
  color: var(--fog);
  padding: 10px 14px;
  border-top: 1px solid var(--home-line);
}

/* ---------- 检索面板 ---------- */
.page-home .home-search-sec {
  padding: 42px 0 14px;
}

.page-home .home-search {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 20px;
  background: var(--table);
  border: var(--edge) solid var(--gold);
  box-shadow: var(--sx) var(--sy) 0 rgba(123, 77, 255, .5);
}

.page-home .home-search__beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan) 34%, var(--gold-hi) 56%, transparent);
  pointer-events: none;
  animation: home-scan 1s ease-out 1 both;
}

@keyframes home-scan {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(360px); opacity: 0; }
}

.page-home .home-search__head {
  margin-bottom: 16px;
}

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

.page-home .cap-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(110, 122, 118, .42);
}

.page-home .cap-row__label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--cyan);
  min-width: 4.2em;
}

.page-home .cap {
  font-size: .82rem;
  padding: 5px 12px;
  color: rgba(242, 239, 230, .82);
  background: var(--ink);
  border: 2px solid var(--layer);
}

.page-home .cap--on {
  color: var(--gold-hi);
  border-color: var(--gold);
  box-shadow: 3px 3px 0 rgba(212, 175, 55, .22);
}

.page-home .res-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.page-home .res {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--home-line);
}

.page-home .res:last-child {
  border-bottom: 0;
}

.page-home .res__title {
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.page-home .res__title:hover,
.page-home .res__title:focus-visible {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
}

.page-home .res__meta {
  grid-column: 2;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--fog);
}

.page-home .home-search__foot {
  margin: 16px 0 0;
  font-size: .85rem;
  line-height: 1.75;
  color: rgba(242, 239, 230, .72);
}

.page-home .home-search__more {
  display: inline-block;
  margin-left: 6px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .8rem;
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
}

/* ---------- 窄幅横图 ---------- */
.page-home .home-bandimg {
  margin: 30px 0 0;
}

.page-home .home-bandimg__frame {
  position: relative;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-top: var(--edge) solid var(--cyan);
  border-bottom: var(--edge) solid var(--cyan);
  background: var(--layer);
}

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

/* ---------- 条目索引 ---------- */
.page-home .home-entries {
  padding: 46px 0 8px;
}

.page-home .home-entries__head h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 5.4vw, 2.25rem);
  line-height: 1.25;
  margin: 10px 0 14px;
  color: var(--gold-hi);
}

.page-home .home-entries__head .prose {
  margin: 0;
  font-size: .96rem;
  line-height: 1.85;
  color: rgba(242, 239, 230, .82);
  max-width: 38em;
}

.page-home .home-entries__rules {
  padding-bottom: 20px;
}

.page-home .home-entries__sub {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.25rem;
  margin: 6px 0 0;
  padding-top: 22px;
  border-top: var(--edge) solid var(--layer);
  color: var(--paper);
}

/* 横向轨道 */
.page-home .rail {
  margin: 20px 0 34px;
}

.page-home .rail__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 20px 24px;
  scrollbar-color: var(--gold) var(--layer);
}

.page-home .entry-card {
  flex: 0 0 min(76vw, 300px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
  background: var(--ink);
  border: var(--edge) solid var(--layer);
  box-shadow: var(--sx) var(--sy) 0 rgba(0, 0, 0, .6);
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  transform: translate(-2px, -6px);
  border-color: var(--gold);
  box-shadow: 10px 14px 0 rgba(0, 0, 0, .65);
  outline: none;
}

.page-home .entry-card__num {
  align-self: flex-start;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
}

.page-home .entry-card__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  color: var(--paper);
}

.page-home .entry-card__text {
  margin: 0;
  font-size: .89rem;
  line-height: 1.72;
  color: rgba(242, 239, 230, .76);
}

.page-home .entry-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--home-line);
}

.page-home .entry-card__go {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--gold);
}

.page-home .rail__figure {
  flex: 0 0 min(66vw, 260px);
  scroll-snap-align: start;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--table);
  border: var(--edge) solid var(--layer);
  box-shadow: var(--sx) var(--sy) 0 rgba(123, 77, 255, .4);
}

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

/* 纵向编号索引 */
.page-home .stack-index {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .stack-index__item {
  background: var(--table);
  border-left: var(--edge) solid var(--layer);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
  transition: transform .16s ease, border-color .16s ease;
}

.page-home .stack-index__item:nth-child(even) {
  border-left-color: var(--violet);
}

.page-home .stack-index__item:hover {
  border-left-color: var(--gold);
  transform: translateX(4px);
}

.page-home .stack-index__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: baseline;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.page-home .stack-index__num {
  grid-row: span 2;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .8rem;
  color: var(--gold);
}

.page-home .stack-index__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--paper);
}

.page-home .stack-index__meta {
  font-size: .8rem;
  line-height: 1.65;
  color: var(--fog);
}

/* ---------- 双周更新 ---------- */
.page-home .home-cycle {
  margin-top: 40px;
  padding: 44px 0 40px;
  background: linear-gradient(180deg, rgba(123, 77, 255, .12), transparent 62%);
  border-top: var(--edge) solid var(--layer);
  border-bottom: var(--edge) solid var(--layer);
}

.page-home .home-cycle h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.5rem, 5.4vw, 2.25rem);
  line-height: 1.25;
  margin: 10px 0 14px;
  color: var(--paper);
}

.page-home .home-cycle .prose {
  margin: 0;
  font-size: .96rem;
  line-height: 1.85;
  color: rgba(242, 239, 230, .82);
  max-width: 38em;
}

.page-home .home-cycle__art {
  margin: 26px auto 34px;
  max-width: 880px;
  padding: 0 20px;
}

.page-home .home-cycle__art img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--edge) solid var(--violet);
  box-shadow: var(--sx) var(--sy) 0 rgba(0, 0, 0, .55);
}

.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-timeline__item {
  position: relative;
  padding: 16px 0 16px 30px;
  border-left: 2px dashed var(--home-line);
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fog);
  border: 2px solid var(--ink);
}

.page-home .home-timeline__item--now::before {
  background: var(--cyan);
  box-shadow: 0 0 0 5px var(--home-glow);
  animation: home-pulse 1.8s ease-out 2;
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 var(--home-glow); }
  70% { box-shadow: 0 0 0 10px rgba(18, 224, 192, 0); }
  100% { box-shadow: 0 0 0 5px var(--home-glow); }
}

.page-home .home-timeline__tag {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-home .home-timeline__item h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.06rem;
  margin: 0 0 6px;
  color: var(--paper);
}

.page-home .home-timeline__item p {
  margin: 0;
  font-size: .87rem;
  line-height: 1.72;
  color: rgba(242, 239, 230, .74);
}

.page-home .home-cycle__link {
  margin: 24px 0 0;
}

.page-home .home-cycle__link a {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

/* ---------- 两端同步 ---------- */
.page-home .home-sync {
  padding: 44px 0 10px;
}

.page-home .home-sync h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.45rem, 5.2vw, 2.15rem);
  line-height: 1.26;
  margin: 10px 0 14px;
  color: var(--gold-hi);
}

.page-home .home-sync .prose {
  margin: 0 0 26px;
  font-size: .96rem;
  line-height: 1.85;
  color: rgba(242, 239, 230, .82);
  max-width: 40em;
}

.page-home .sync-grid {
  display: grid;
  gap: 16px;
}

.page-home .home-sync__card {
  padding: 20px 18px;
}

.page-home .home-sync__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.08rem;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-line);
  color: var(--paper);
}

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

.page-home .home-sync__list li {
  position: relative;
  padding-left: 18px;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(242, 239, 230, .78);
}

.page-home .home-sync__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--cyan);
}

.page-home .home-sync__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: var(--edge) solid var(--layer);
}

.page-home .home-sync__links a {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 224, 192, .5);
}

/* ---------- 三级路径 ---------- */
.page-home .home-path {
  padding: 44px 0 12px;
}

.page-home .home-path h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.45rem, 5.2vw, 2.15rem);
  line-height: 1.26;
  margin: 10px 0 24px;
  color: var(--paper);
}

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

.page-home .path__step {
  position: relative;
  padding: 20px 18px;
  background: var(--table);
  border: var(--edge) solid var(--layer);
  box-shadow: var(--sx) var(--sy) 0 rgba(0, 0, 0, .55);
}

.page-home .path__no {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--gold);
}

.page-home .path__step h3 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.06rem;
  margin: 0 0 8px;
  color: var(--paper);
}

.page-home .path__step p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.74;
  color: rgba(242, 239, 230, .76);
}

.page-home .home-path__note {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--fog);
}

/* ---------- 反馈带 ---------- */
.page-home .home-feedback {
  margin-top: 42px;
  padding: 34px 0;
  background: linear-gradient(120deg, var(--layer), var(--table) 70%);
  border-top: var(--edge) solid var(--gold);
  border-bottom: var(--edge) solid var(--gold);
}

.page-home .home-feedback__inner {
  display: grid;
  gap: 20px;
}

.page-home .home-feedback h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(1.3rem, 4.6vw, 1.85rem);
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--gold-hi);
}

.page-home .home-feedback p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.8;
  color: rgba(242, 239, 230, .82);
  max-width: 42em;
}

.page-home .home-feedback__btn {
  justify-self: start;
}

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .page-home .home-search {
    padding: 30px 30px 26px;
  }

  .page-home .res {
    grid-template-columns: 5.4rem 1fr auto;
    gap: 16px;
  }

  .page-home .res__meta {
    grid-column: 3;
    grid-row: 1;
  }

  .page-home .home-hero {
    padding: 52px 0 60px;
  }
}

@media (min-width: 860px) {
  .page-home .home-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: var(--edge) solid var(--layer);
    padding-top: 0;
  }

  .page-home .home-timeline__item {
    border-left: 0;
    border-top: 2px dashed var(--home-line);
    padding: 26px 16px 0 0;
  }

  .page-home .home-timeline__item::before {
    left: 0;
    top: -9px;
  }

  .page-home .sync-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .page-home .home-feedback__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }

  .page-home .home-feedback__btn {
    justify-self: end;
  }
}

@media (min-width: 760px) {
  .page-home .path {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-home .path__step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: var(--cyan);
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: 1.12fr .88fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .home-hero__art {
    transform: rotate(-1.4deg);
  }

  .page-home .stack-index {
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding-bottom: 22px;
  }

  .page-home .stack-index__item:nth-child(even) {
    transform: translateY(14px);
  }

  .page-home .stack-index__item:nth-child(even):hover {
    transform: translateY(14px) translateX(4px);
  }

  .page-home .rail__track {
    padding-left: max(20px, calc((100vw - var(--maxw)) / 2));
    padding-right: max(20px, calc((100vw - var(--maxw)) / 2));
  }

  .page-home .entry-card {
    flex-basis: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-search__beam {
    display: none;
  }

  .page-home .home-timeline__item--now::before {
    animation: none;
  }

  .page-home .entry-card,
  .page-home .stack-index__item {
    transition: none;
  }
}
