.page-home {
  --home-line: rgba(27, 27, 24, .16);
  --home-shadow: 0 18px 42px -30px rgba(19, 26, 23, .62);
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
}

.page-home p { margin: 0 0 .9em; }
.page-home a { color: inherit; }
.page-home img { display: block; max-width: 100%; height: auto; }

/* ---------- 首屏：画册目录跨页 ---------- */
.home-masthead {
  position: relative;
  padding: calc(var(--bar-h) + 28px) 0 40px;
  border-bottom: 1px solid var(--home-line);
  background:
    radial-gradient(120% 74% at 94% -8%, rgba(232, 178, 58, .28), rgba(232, 178, 58, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 74%, var(--paper-2) 100%);
}

.home-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--theatre) 0 16px, transparent 16px 32px);
  opacity: .45;
}

.home-masthead__grid {
  display: grid;
  gap: 32px;
}

.home-context {
  color: var(--theatre);
  letter-spacing: .1em;
}

.home-title {
  font-size: clamp(32px, 8.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 12px 0 18px;
  max-width: 15ch;
}

.home-lead {
  font-size: clamp(16px, 4.1vw, 18px);
  line-height: 1.8;
  max-width: 34em;
}

.home-state {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: .04em;
  color: var(--muted);
}

.home-state__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--theatre);
}

.home-entries {
  display: grid;
  gap: 10px;
}

.home-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--home-line);
  border-left: 4px solid var(--theatre);
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.home-entry--magenta {
  border-left-color: var(--magenta);
  background: linear-gradient(90deg, rgba(224, 25, 125, .09), var(--white) 62%);
}

.home-entry:hover,
.home-entry:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow);
  border-color: rgba(232, 178, 58, .9);
}

.home-entry__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

.home-entry__label {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.35;
}

.home-entry__note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.home-entry__arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--theatre);
}

.home-entry--magenta .home-entry__arrow { color: var(--magenta); }

/* ---------- 右侧纵向资料流 ---------- */
.home-stream {
  display: grid;
  gap: 16px;
}

.home-hero-figure {
  position: relative;
  margin: 8px 0 4px;
  border: 1px solid var(--home-line);
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--paper-2);
}

.home-hero-figure img {
  width: 100%;
  filter: saturate(.94) contrast(1.05);
}

.home-hero-figure .figure__caption {
  padding: 8px 12px 10px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  border-top: 1px solid var(--home-line);
}

.home-stamp {
  position: absolute;
  top: -18px;
  left: 10px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 rgba(19, 26, 23, .85);
}

.home-stamp__ring {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
}

.home-stamp__ring circle { stroke: var(--ink); }

.home-stamp__num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.home-stream__card {
  position: relative;
  display: block;
  padding: 14px 16px 15px;
  background: var(--white);
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--gold);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--paper-2), 6px 6px 0 rgba(19, 26, 23, .06);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.home-stream__card:hover,
.home-stream__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 3px 3px 0 var(--paper-2), 0 22px 40px -30px rgba(19, 26, 23, .8);
}

.home-stream__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--theatre);
  text-transform: uppercase;
}

.home-stream__title {
  display: block;
  margin: 5px 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
}

.home-stream__desc {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- 通用分区 ---------- */
.home-section {
  padding: 46px 0;
  border-top: 1px solid var(--home-line);
}

.home-section__head { max-width: 46em; }

.home-section__head h2 {
  font-size: clamp(24px, 5.4vw, 38px);
  line-height: 1.2;
  margin: 10px 0 14px;
}

.home-section__lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- 目录 ---------- */
.home-catalog__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.home-catalog__row { margin: 0; }

.home-catalog__link {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px 14px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--home-line);
  text-decoration: none;
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}

.home-catalog__link:hover,
.home-catalog__link:focus-visible {
  background: rgba(231, 221, 203, .62);
  padding-left: 10px;
}

.home-catalog__num {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: start;
  padding: 2px 6px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.home-catalog__title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.35;
}

.home-catalog__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.home-catalog__meta {
  grid-column: 2;
  grid-row: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--theatre);
}

/* ---------- 当季主推 ---------- */
.home-season { background: linear-gradient(180deg, var(--paper) 0%, rgba(231, 221, 203, .5) 100%); }

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

.home-lead-figure {
  margin: 0;
  position: relative;
}

.home-lead-figure img {
  width: 100%;
  border: 1px solid var(--home-line);
  box-shadow: 9px 9px 0 var(--paper-2);
}

.home-lead-figure .figure__caption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.home-lead-body h2 {
  font-size: clamp(24px, 5.4vw, 36px);
  line-height: 1.22;
  margin: 10px 0 14px;
}

.home-lead-body p {
  font-size: 16px;
  line-height: 1.8;
}

.home-season__list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.home-season__list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--home-line);
  font-size: 14px;
  line-height: 1.6;
}

.home-season__key {
  flex: 0 0 auto;
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--theatre);
  padding-top: 3px;
}

.home-season__cta { min-height: 48px; display: inline-flex; align-items: center; padding: 0 20px; }

/* ---------- 意见提交 ---------- */
.home-feedback { background: var(--ink); border-top: none; }

.home-feedback__frame { position: relative; }

.home-feedback__figure {
  margin: 0;
  border: 1px solid rgba(232, 178, 58, .35);
}

.home-feedback__figure img {
  width: 100%;
  filter: saturate(1.05) contrast(1.05);
}

.home-feedback__panel {
  position: relative;
  margin: -30px 0 0;
  padding: 22px 18px 24px;
  border: 1px solid rgba(232, 178, 58, .5);
}

.home-feedback__panel h2 {
  font-size: clamp(24px, 5.4vw, 34px);
  line-height: 1.24;
  margin: 10px 0 14px;
  color: var(--white);
}

.home-feedback__panel p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(251, 250, 246, .92);
}

.home-feedback__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  margin-top: 6px;
  box-shadow: 0 0 0 6px rgba(224, 25, 125, .18);
}

/* ---------- 收藏与导出 ---------- */
.home-steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.home-step {
  padding: 18px 18px 20px;
  background: var(--white);
  border: 1px solid var(--home-line);
  box-shadow: 3px 3px 0 var(--paper-2), 6px 6px 0 rgba(19, 26, 23, .05);
  transition: transform .22s var(--ease);
}

.home-step:hover { transform: translateY(-3px); }

.home-step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--theatre);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

.home-step h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 10px 0 8px;
}

.home-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.home-collections__note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

/* ---------- 小屏阅读 ---------- */
.home-mobile { background: var(--paper-2); }

.home-mobile__panel {
  padding: 24px 20px 26px;
  border: 1px solid rgba(232, 178, 58, .32);
}

.home-mobile__panel h2 {
  font-size: clamp(24px, 5.4vw, 34px);
  line-height: 1.24;
  margin: 10px 0 14px;
  color: var(--white);
}

.home-mobile__panel p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(251, 250, 246, .9);
}

.home-stats {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
}

.home-stat {
  padding: 12px 14px;
  border: 1px solid rgba(251, 250, 246, .22);
  background: rgba(19, 26, 23, .3);
}

.home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--gold);
}

.home-stat__label {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(251, 250, 246, .78);
}

.home-mobile__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-color: rgba(251, 250, 246, .5);
  color: var(--white);
}

/* ---------- 近期条目 ---------- */
.home-recent__grid {
  display: grid;
  gap: 28px;
}

.home-recent h2 {
  font-size: clamp(24px, 5.4vw, 36px);
  line-height: 1.22;
  margin: 10px 0 12px;
}

.home-recent__lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34em;
}

.home-recent__list {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.home-recent__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  gap: 3px 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--home-line);
  text-decoration: none;
  transition: background .2s var(--ease);
}

.home-recent__item:hover,
.home-recent__item:focus-visible { background: rgba(231, 221, 203, .6); }

.home-recent__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--theatre);
  padding-top: 2px;
}

.home-recent__title {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  line-height: 1.65;
}

.home-recent__meta {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.home-recent__figure {
  margin: 0;
}

.home-recent__figure img {
  width: 100%;
  border: 1px solid var(--home-line);
  box-shadow: 8px 8px 0 var(--paper-2);
}

.home-recent__figure .figure__caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.home-recent__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  .home-masthead {
    padding-top: calc(var(--bar-h) + 56px);
    padding-bottom: 68px;
  }

  .home-masthead__grid {
    grid-template-columns: 5fr 7fr;
    gap: 52px;
    align-items: start;
  }

  .home-title { max-width: 13ch; }

  .home-stream {
    gap: 18px;
    margin-top: 18px;
    margin-bottom: -120px;
  }

  .home-section { padding: 74px 0; }

  .home-catalog__link {
    grid-template-columns: 52px 1fr auto;
    padding: 20px 6px;
  }

  .home-catalog__num {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .home-catalog__title { grid-column: 2; grid-row: 1; }
  .home-catalog__desc { grid-column: 2; grid-row: 2; }

  .home-catalog__meta {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    text-align: right;
    white-space: nowrap;
  }

  .home-lead-grid {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
  }

  .home-lead-figure { margin-top: -28px; }

  .home-feedback__panel {
    margin-top: -76px;
    margin-left: auto;
    max-width: 640px;
    padding: 32px 36px 34px;
  }

  .home-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
  }

  .home-step:nth-child(2) { margin-top: 30px; }
  .home-step:nth-child(3) { margin-top: 60px; }

  .home-stats { grid-template-columns: repeat(3, 1fr); }

  .home-recent__grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: start;
  }

  .home-recent__figure { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-stream__card,
  .page-home .home-step,
  .page-home .home-catalog__link {
    transition: none;
  }

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