.page-home {
  --home-line: rgba(246, 241, 231, .14);
  --home-pad: clamp(52px, 8vw, 96px);
  background: var(--night-blue);
  color: var(--on-dark-strong);
  overflow-x: hidden;
}

.page-home .section {
  position: relative;
  padding-block: var(--home-pad);
}

.page-home .section--tight {
  padding-block: clamp(34px, 5vw, 60px);
}

.page-home .section-head {
  max-width: 46rem;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .section-head p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--on-dark);
  margin: 12px 0 0;
}

.page-home .eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
}

.page-home .eyebrow--ink {
  color: var(--table-green);
}

/* ================= 首屏 ================= */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(20px, 3vw, 34px) clamp(50px, 7vw, 92px);
  background:
    radial-gradient(115% 85% at 84% 8%, rgba(44, 232, 213, .18), transparent 58%),
    radial-gradient(95% 70% at 4% 4%, rgba(255, 61, 139, .16), transparent 62%),
    linear-gradient(180deg, var(--table-green) 0%, #0a2b21 48%, var(--night-blue) 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(26px, 4vw, 54px);
  background: var(--night-blue);
  clip-path: polygon(0 100%, 100% 24%, 100% 100%);
  pointer-events: none;
}

.page-home .home-crumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  margin: 0 0 clamp(20px, 3.4vw, 36px);
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: rgba(44, 232, 213, .07);
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--on-dark);
}

.page-home .home-crumb__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arcade-green);
  box-shadow: 0 0 0 4px rgba(18, 227, 155, .18);
}

.page-home .home-crumb__sep {
  color: var(--mist);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 56px);
  align-items: center;
}

.page-home .home-hero__lead .display {
  margin: 14px 0 clamp(16px, 2vw, 22px);
  font-size: clamp(2rem, 6.6vw, 4.35rem);
  line-height: .99;
  letter-spacing: -.022em;
  color: var(--on-dark-strong);
}

.page-home .home-hero__lead .lede {
  max-width: 33em;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--on-dark);
}

.page-home .home-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .home-route {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-cyan);
  background: rgba(44, 232, 213, .08);
  color: var(--on-dark-strong);
  font-family: var(--font-ui);
  font-size: .93rem;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.page-home .home-route:hover {
  background: rgba(44, 232, 213, .2);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

.page-home .home-route--primary {
  background: var(--chip-magenta);
  border-color: var(--chip-magenta);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 61, 139, .28);
}

.page-home .home-route--primary:hover {
  background: #ff5599;
  border-color: #ff5599;
}

.page-home .home-route__glyph {
  display: inline-flex;
  line-height: 0;
}

.page-home .home-hero__note {
  margin: 16px 0 0;
  font-family: var(--font-ui);
  font-size: .86rem;
  color: var(--mist);
}

.page-home .home-hero__visual {
  display: flex;
  justify-content: center;
}

.page-home .hero-stack {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 9 / 11;
}

.page-home .hero-stack__card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(246, 241, 231, .12);
}

.page-home .hero-stack__card--back {
  transform: translate(20px, 26px) rotate(5deg);
  background: linear-gradient(150deg, rgba(59, 31, 94, .92), rgba(11, 18, 38, .92));
}

.page-home .hero-stack__card--mid {
  transform: translate(-18px, 14px) rotate(-3.4deg);
  background: linear-gradient(150deg, rgba(255, 61, 139, .24), rgba(11, 18, 38, .85));
}

.page-home .hero-stack__media {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  box-shadow: var(--shadow-lift);
}

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

.page-home .hero-stack__badge {
  position: absolute;
  bottom: -14px;
  left: -14px;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--neon-cyan);
  color: #05231f;
  font-size: .84rem;
  letter-spacing: .08em;
  box-shadow: 0 14px 28px rgba(44, 232, 213, .3);
}

/* ================= 更新公告 ================= */
.page-home .home-updates__intro {
  max-width: 40em;
}

.page-home .home-updates__filters {
  margin-bottom: 18px;
}

.page-home .tag-chip {
  cursor: pointer;
}

.page-home .bulletin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 38px);
  align-items: start;
}

.page-home .bulletin {
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-lg);
  background: rgba(11, 18, 38, .58);
  overflow: hidden;
}

.page-home .bulletin__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--home-line);
  background: rgba(44, 232, 213, .07);
  font-family: var(--font-ui);
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--neon-cyan);
}

.page-home .bulletin__toggle {
  padding: 5px 14px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(246, 241, 231, .08);
  color: var(--on-dark-strong);
  font-family: var(--font-ui);
  font-size: .76rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.page-home .bulletin__toggle:hover {
  background: rgba(44, 232, 213, .18);
  border-color: var(--line-cyan);
}

.page-home .bulletin__viewport {
  max-height: 430px;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 232, 213, .45) transparent;
}

.page-home .bulletin__viewport::-webkit-scrollbar {
  width: 6px;
}

.page-home .bulletin__viewport::-webkit-scrollbar-thumb {
  background: rgba(44, 232, 213, .38);
  border-radius: 999px;
}

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

.page-home .bulletin__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--neon-cyan);
  background: rgba(215, 251, 246, .07);
  font-family: var(--font-ui);
  font-size: .92rem;
  line-height: 1.6;
  color: var(--on-dark-strong);
  transition: background .2s var(--ease), transform .2s var(--ease);
}

.page-home .bulletin__item:hover {
  background: rgba(215, 251, 246, .13);
  transform: translateX(3px);
}

.page-home .bulletin__item[data-filtered-out] {
  display: none;
}

.page-home .bulletin__idx {
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--neon-cyan);
}

.page-home .bulletin__tag {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--chip-magenta);
  background: rgba(255, 61, 139, .14);
  white-space: nowrap;
}

.page-home .bulletin-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-home .bulletin-aside__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .bulletin-aside__note {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-line);
  background: rgba(246, 241, 231, .045);
}

.page-home .bulletin-aside__note h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--on-dark-strong);
}

.page-home .bulletin-aside__note p {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.8;
  color: var(--on-dark);
}

/* ================= 场景分流 ================= */
.page-home .home-scenes {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(59, 31, 94, .5), transparent 65%),
    var(--night-blue);
}

.page-home .scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 24px);
}

.page-home .scene-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-line);
  background: linear-gradient(165deg, rgba(246, 241, 231, .07), rgba(11, 18, 38, .52));
  color: inherit;
  text-decoration: none;
  transition: transform .24s var(--ease), border-color .24s var(--ease), background .24s var(--ease);
}

.page-home .scene-card:hover,
.page-home .scene-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--line-cyan);
  background: linear-gradient(165deg, rgba(44, 232, 213, .13), rgba(11, 18, 38, .58));
}

.page-home .scene-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
}

.page-home .scene-card--device .scene-card__icon {
  color: var(--neon-cyan);
  background: rgba(44, 232, 213, .13);
  border: 1px solid var(--line-cyan);
}

.page-home .scene-card--lang .scene-card__icon {
  color: var(--chip-magenta);
  background: rgba(255, 61, 139, .13);
  border: 1px solid rgba(255, 61, 139, .34);
}

.page-home .scene-card--file .scene-card__icon {
  color: var(--gold);
  background: rgba(226, 185, 74, .13);
  border: 1px solid rgba(226, 185, 74, .34);
}

.page-home .scene-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: -.01em;
  color: var(--on-dark-strong);
}

.page-home .scene-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: .94rem;
  line-height: 1.8;
  color: var(--on-dark);
}

.page-home .scene-card__hint {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  font-size: .86rem !important;
  color: var(--mist) !important;
  transition: max-height .28s var(--ease), opacity .28s var(--ease), margin-top .28s var(--ease);
}

.page-home .scene-card:hover .scene-card__hint,
.page-home .scene-card:focus-visible .scene-card__hint {
  max-height: 120px;
  margin-top: 12px;
  opacity: 1;
}

.page-home .scene-card__go {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-ui);
  font-size: .88rem;
  letter-spacing: .04em;
  color: var(--neon-cyan);
}

.page-home .scene-card__go::after {
  content: " →";
}

/* ================= 资料库速览 ================= */
.page-home .shelf {
  position: relative;
  background: var(--ivory);
  color: var(--ink);
  padding-block: clamp(64px, 9vw, 112px) clamp(56px, 8vw, 96px);
}

.page-home .shelf::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: clamp(38px, 5.5vw, 72px);
  background: var(--night-blue);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 0 100%);
}

.page-home .shelf__head {
  max-width: 44rem;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.page-home .shelf__head h2 {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.018em;
  color: var(--ink);
}

.page-home .shelf__head p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--on-light-soft);
}

.page-home .shelf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.page-home .shelf-stat {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(17, 19, 24, .09);
  background: rgba(14, 59, 46, .055);
}

.page-home .shelf-stat__num {
  display: block;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.15;
  color: var(--table-green);
  letter-spacing: .01em;
}

.page-home .shelf-stat__label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: .84rem;
  color: var(--on-light-soft);
}

.page-home .shelf__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.6vw, 44px);
  align-items: start;
}

.page-home .shelf__col h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.page-home .shelf-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .shelf-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(17, 19, 24, .09);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.75;
  color: var(--ink);
}

.page-home .shelf-list li:first-child {
  border-top: 1px solid rgba(17, 19, 24, .09);
}

.page-home .shelf-list__k {
  font-size: .72rem;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(14, 59, 46, .1);
  color: var(--table-green);
  white-space: nowrap;
}

.page-home .shelf__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ================= 长期运营 ================= */
.page-home .home-ops {
  background:
    radial-gradient(70% 60% at 8% 10%, rgba(226, 185, 74, .12), transparent 62%),
    var(--night-blue);
}

.page-home .ops-head {
  max-width: 46rem;
  margin-bottom: clamp(30px, 4.5vw, 50px);
}

.page-home .ops-head h2 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.018em;
  color: var(--on-dark-strong);
}

.page-home .ops-lede {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--on-dark);
}

.page-home .ops-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4.5vw, 56px);
  align-items: start;
}

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

.page-home .timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 30px;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(44, 232, 213, .5), rgba(44, 232, 213, 0));
}

.page-home .timeline__item::after {
  content: "";
  position: absolute;
  left: 68px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(44, 232, 213, .16);
}

.page-home .timeline__item:last-child {
  padding-bottom: 4px;
}

.page-home .timeline__item:last-child::before {
  display: none;
}

.page-home .timeline__year {
  padding-top: 1px;
  font-family: var(--font-mono);
  font-size: .92rem;
  letter-spacing: .04em;
  color: var(--gold);
  text-align: right;
}

.page-home .timeline__body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--on-dark-strong);
}

.page-home .timeline__body p {
  margin: 0;
  max-width: 34em;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.82;
  color: var(--on-dark);
}

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

.page-home .ops-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .ops-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .ops-stats .stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--home-line);
  background: rgba(246, 241, 231, .045);
}

.page-home .ops-stats .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.15;
  color: var(--neon-cyan);
}

.page-home .ops-stats .stat__label {
  display: block;
  margin-top: 5px;
  font-family: var(--font-ui);
  font-size: .82rem;
  color: var(--on-dark);
}

.page-home .ops-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: .94rem;
  line-height: 1.82;
  color: var(--on-dark);
}

/* ================= 反馈提示 ================= */
.page-home .home-feedback {
  position: relative;
  background: linear-gradient(120deg, rgba(59, 31, 94, .85), rgba(11, 18, 38, .95));
  border-top: 1px solid var(--home-line);
}

.page-home .feedback-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-cyan);
  background: rgba(11, 18, 38, .5);
}

.page-home .feedback-bar__text h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  letter-spacing: -.012em;
  color: var(--on-dark-strong);
}

.page-home .feedback-bar__text p {
  margin: 0;
  max-width: 42em;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.85;
  color: var(--on-dark);
}

.page-home .feedback-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

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

  .page-home .feedback-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
  }

  .page-home .feedback-bar__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .shelf__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

@media (min-width: 1000px) {
  .page-home .bulletin-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  }

  .page-home .ops-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  }
}

@media (max-width: 560px) {
  .page-home .bulletin__item {
    grid-template-columns: 26px minmax(0, 1fr);
    font-size: .88rem;
    padding: 10px 12px;
  }

  .page-home .bulletin__tag {
    display: none;
  }

  .page-home .timeline__item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
  }

  .page-home .timeline__item::before {
    left: 62px;
  }

  .page-home .timeline__item::after {
    left: 58px;
  }

  .page-home .hero-stack__card--back {
    transform: translate(12px, 18px) rotate(5deg);
  }

  .page-home .hero-stack__card--mid {
    transform: translate(-11px, 10px) rotate(-3.4deg);
  }

  .page-home .home-route {
    padding: 10px 15px;
    font-size: .88rem;
  }
}

@media (hover: none) {
  .page-home .scene-card__hint {
    max-height: 120px;
    margin-top: 10px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .scene-card,
  .page-home .home-route,
  .page-home .bulletin__item,
  .page-home .scene-card__hint {
    transition: none;
  }

  .page-home .scene-card:hover {
    transform: none;
  }

  .page-home .bulletin__item:hover {
    transform: none;
  }
}
