.page-home {
  --home-cut: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  --home-cut-lg: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  --home-shadow: 0 22px 48px -34px rgba(8, 32, 25, .62);
}

/* ============ 首屏 ============ */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-green);
  color: var(--porcelain);
  padding: 34px 0 46px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -20%;
  width: 68%;
  height: 176%;
  background: linear-gradient(152deg, var(--felt), transparent 68%);
  transform: rotate(14deg);
  opacity: .72;
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 78%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, .85), transparent);
  transform: rotate(-2.2deg);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-home .hero-context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold-soft);
}

.page-home .hero-context::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.page-home .hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 8.4vw, 58px);
  line-height: 1.14;
  letter-spacing: -.02em;
}

.page-home .hero-title-accent {
  color: var(--gold);
}

.page-home .hero-lead {
  margin: 18px 0 0;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(247, 244, 236, .88);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero-side {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 300px;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  clip-path: var(--home-cut-lg);
}

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

.page-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 32, 25, .84), rgba(8, 32, 25, .94));
}

.page-home .login-card {
  position: relative;
  z-index: 1;
  padding: 22px 20px 20px;
  background: rgba(8, 32, 25, .74);
  border: 1px solid rgba(201, 162, 74, .42);
  clip-path: var(--home-cut);
}

.page-home .login-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--gold);
}

.page-home .login-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--porcelain);
}

.page-home .step-bar {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: step;
}

.page-home .step-item {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(247, 244, 236, .92);
  counter-increment: step;
}

.page-home .step-item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-black);
  background: var(--gold);
  border-radius: 2px;
}

.page-home .login-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(231, 211, 161, .85);
}

.page-home .login-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .status-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.page-home .status-item {
  padding: 10px 12px;
  background: rgba(14, 59, 50, .78);
  border-left: 2px solid var(--gold);
}

.page-home .status-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(231, 211, 161, .8);
}

.page-home .status-item dd {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 52px 0 68px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 44px;
    align-items: stretch;
  }
}

/* ============ 座位式房间导航 ============ */
.page-home .home-seats {
  position: relative;
  padding: 52px 0 60px;
  background: var(--mist);
}

.page-home .seats-head .section-note {
  max-width: 54em;
}

.page-home .seats-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 30px;
}

.page-home .seat-ring {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.page-home .ring-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.page-home .ring-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.78);
}

.page-home .ring-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(8, 32, 25, .42), rgba(8, 32, 25, .88));
}

.page-home .ring {
  position: absolute;
  inset: 0;
}

.page-home .seat {
  position: absolute;
  left: var(--seat-x);
  top: var(--seat-y);
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  cursor: pointer;
  color: var(--porcelain);
  background: rgba(14, 59, 50, .9);
  border: 1px solid rgba(201, 162, 74, .5);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.page-home .seat:nth-child(1) { --seat-x: 50%; --seat-y: 14%; }
.page-home .seat:nth-child(2) { --seat-x: 85%; --seat-y: 50%; }
.page-home .seat:nth-child(3) { --seat-x: 50%; --seat-y: 86%; }
.page-home .seat:nth-child(4) { --seat-x: 15%; --seat-y: 50%; }

.page-home .seat:hover {
  transform: translate(-50%, calc(-50% - 6px));
  border-color: var(--gold);
}

.page-home .seat[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-black);
}

.page-home .seat:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.page-home .seat-count {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
}

.page-home .seat-label {
  font-size: 11px;
  letter-spacing: .18em;
}

.page-home .seat-panels {
  position: relative;
}

.page-home .segment-panel[hidden] {
  display: none;
}

.page-home .seat-panels .segment-panel {
  padding: 24px 22px;
  background: var(--porcelain);
  border-top: 3px solid var(--gold);
  clip-path: var(--home-cut);
  box-shadow: var(--home-shadow);
}

.page-home .seat-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-black);
}

.page-home .seat-panel-lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray);
}

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

.page-home .seat-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-black);
}

.page-home .seat-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.page-home .seats-foot {
  margin: 20px 0 0;
}

@media (min-width: 880px) {
  .page-home .home-seats {
    padding: 68px 0 76px;
  }

  .page-home .seats-layout {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    margin-top: 38px;
  }

  .page-home .seat {
    width: 92px;
    height: 92px;
  }

  .page-home .seat-count {
    font-size: 25px;
  }

  .page-home .seat-panels .segment-panel {
    padding: 30px 30px 28px;
  }
}

/* ============ 档案柜式资料下载 ============ */
.page-home .home-archive {
  position: relative;
  padding: 52px 0 60px;
  background: var(--ink-deep);
  color: var(--porcelain);
}

.page-home .archive-head .section-title {
  color: var(--porcelain);
}

.page-home .archive-head .section-kicker {
  color: var(--gold);
}

.page-home .archive-head .section-note {
  max-width: 56em;
  color: rgba(231, 211, 161, .82);
}

.page-home .archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 30px;
}

.page-home .archive-figure {
  margin: 0;
  overflow: hidden;
  clip-path: var(--home-cut);
}

.page-home .archive-figure img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.page-home .archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .archive-tabs .segment-btn {
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(247, 244, 236, .78);
  background: rgba(14, 59, 50, .72);
  border: 1px solid rgba(201, 162, 74, .3);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.page-home .archive-tabs .segment-btn[aria-selected="true"] {
  color: var(--ink-black);
  background: var(--gold);
  border-color: var(--gold);
}

.page-home .archive-tabs .segment-btn:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 2px;
}

.page-home .archive-panel {
  padding: 22px 20px;
  background: rgba(14, 59, 50, .62);
  border-left: 3px solid var(--gold);
}

.page-home .archive-ver {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
}

.page-home .archive-text {
  margin: 12px 0 0;
  max-width: 48em;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(247, 244, 236, .86);
}

.page-home .archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (min-width: 880px) {
  .page-home .home-archive {
    padding: 68px 0 76px;
  }

  .page-home .archive-layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 40px;
    align-items: start;
    margin-top: 38px;
  }

  .page-home .archive-figure img {
    max-height: 420px;
  }

  .page-home .archive-panel {
    padding: 26px 26px;
  }
}

/* ============ 运营概况数字带 ============ */
.page-home .home-numbers {
  padding: 34px 0 32px;
  background: var(--ink-green);
  border-top: 3px solid var(--gold);
  color: var(--porcelain);
}

.page-home .numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.page-home .number-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold);
}

.page-home .number-value em {
  font-style: normal;
  font-size: 15px;
  margin-left: 3px;
  color: var(--gold-soft);
}

.page-home .number-label {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(231, 211, 161, .82);
}

.page-home .numbers-note {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 162, 74, .28);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247, 244, 236, .8);
}

.page-home .numbers-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 820px) {
  .page-home .numbers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .page-home .number-value {
    font-size: 34px;
  }
}

/* ============ 个人数据回顾 ============ */
.page-home .home-stats {
  padding: 52px 0 58px;
  background: var(--porcelain);
}

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

.page-home .stat-focus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--mist);
  clip-path: var(--home-cut-lg);
  overflow: hidden;
}

.page-home .stat-focus-body {
  padding: 26px 22px;
}

.page-home .stat-text {
  margin: 14px 0 0;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
}

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

.page-home .stat-figures > div {
  padding: 12px 14px;
  background: var(--porcelain);
  border-left: 2px solid var(--gold);
}

.page-home .stat-figures dt {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gray);
}

.page-home .stat-figures dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-green);
}

.page-home .stat-art {
  margin: 0;
  overflow: hidden;
}

.page-home .stat-art img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

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

.page-home .trend-card {
  padding: 22px 20px;
  background: var(--ink-green);
  color: var(--porcelain);
  clip-path: var(--home-cut);
  cursor: default;
}

.page-home .trend-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.page-home .trend-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}

.page-home .trend-text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 244, 236, .8);
}

.page-home .sparkline {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 14px;
  color: var(--gold);
  opacity: .35;
  transition: opacity 260ms var(--ease);
}

.page-home .trend-card:hover .sparkline,
.page-home .trend-card:focus .sparkline,
.page-home .trend-card:focus-within .sparkline {
  opacity: 1;
}

.page-home .note-card {
  padding: 22px 20px;
  background: var(--mist);
  border-left: 3px solid var(--cinnabar);
}

.page-home .note-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-black);
}

.page-home .note-text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

@media (min-width: 880px) {
  .page-home .home-stats {
    padding: 70px 0 78px;
  }

  .page-home .stats-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .page-home .stat-focus {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  }

  .page-home .stat-focus-body {
    padding: 34px 32px;
  }

  .page-home .stat-art img {
    min-height: 100%;
  }

  .page-home .stat-side {
    gap: 20px;
  }
}

/* ============ 帮助入口 ============ */
.page-home .home-help {
  padding: 52px 0 64px;
  background: var(--mist);
}

.page-home .help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-home .help-pinned {
  padding: 28px 22px;
  background: var(--ink-green);
  color: var(--porcelain);
  clip-path: var(--home-cut-lg);
}

.page-home .help-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 5.4vw, 32px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.22;
}

.page-home .help-text {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(247, 244, 236, .86);
}

.page-home .help-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .help-cats li {
  padding: 6px 13px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-black);
  background: var(--gold-soft);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.page-home .help-side {
  display: grid;
  gap: 14px;
}

.page-home .help-side .card {
  padding: 20px 20px;
  background: var(--porcelain);
  border-left: 3px solid var(--gold);
  clip-path: var(--home-cut);
}

.page-home .help-side .card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-black);
}

.page-home .help-side .card-text {
  margin: 9px 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
}

.page-home .help-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .help-link:hover {
  color: var(--cinnabar);
}

@media (min-width: 880px) {
  .page-home .home-help {
    padding: 68px 0 78px;
  }

  .page-home .help-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 28px;
    align-items: start;
  }

  .page-home .help-pinned {
    padding: 40px 36px;
  }

  .page-home .help-side {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .seat,
  .page-home .sparkline,
  .page-home .archive-tabs .segment-btn {
    transition: none;
  }

  .page-home .seat:hover {
    transform: translate(-50%, -50%);
  }
}
