.post-feed-page,
.post-detail-page {
  --post-ink: #182352;
  --post-red: #8f2935;
  --post-gold: #b88931;
  --post-paper: rgba(255, 252, 242, 0.94);
}

.post-hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 2.5rem;
  background: linear-gradient(145deg, rgba(244, 228, 184, 0.44), rgba(122, 34, 51, 0.12));
  border-bottom: 1px solid rgba(184, 137, 49, 0.35);
}

.post-hero-inner { max-width: 58rem; }
.post-hero h1 { margin: 0.25rem 0 0.75rem; font-size: clamp(2.5rem, 7vw, 5.5rem); color: var(--post-ink); }
.post-hero p:last-child { max-width: 48rem; line-height: 1.8; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.post-compose-panel {
  position: sticky;
  top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(184, 137, 49, 0.4);
  background: var(--post-paper);
  box-shadow: 0 1.4rem 3.5rem rgba(24, 35, 82, 0.1);
}

.post-compose-panel h2,
.post-stream-heading h2 { margin-top: 0; color: var(--post-ink); }
.post-policy,
.post-login { font-size: 0.92rem; line-height: 1.7; }
.post-compose-form { display: grid; gap: 1rem; }
.post-form-field { display: grid; gap: 0.4rem; }
.post-form-field label { font-weight: 700; color: var(--post-ink); }
.post-form-field textarea,
.post-form-field select,
.post-form-field input[type="file"] { width: 100%; box-sizing: border-box; }
.post-form-field select[multiple] { min-height: 7rem; }
.post-hero h1,
.post-compose-panel h2,
.post-stream-heading h2 { font-family: var(--serif); }
.post-form-field :is(textarea, select) {
  min-height: 44px;
  padding: .7rem .8rem;
  border: 1px solid rgba(184, 137, 49, .45);
  border-radius: .35rem;
  background: rgba(255, 255, 255, .82);
  color: var(--post-ink);
  font: inherit;
  line-height: 1.7;
}
.post-form-field textarea { resize: vertical; }
.post-form-field:has(input[type="checkbox"]) { grid-template-columns: 24px 1fr; align-items: center; }
.post-form-field:has(input[type="checkbox"]) label { grid-column: 2; grid-row: 1; }
.post-form-field input[type="checkbox"] { grid-column: 1; grid-row: 1; justify-self: start; width: 18px; height: 18px; accent-color: var(--post-red); }
.post-form-field input[type="file"] { font: inherit; font-size: .85rem; }
.post-form-field input[type="file"]::file-selector-button { min-height: 40px; border: 1px solid var(--post-gold); padding: .4rem .6rem; margin-right: .5rem; background: var(--post-paper); color: var(--post-ink); cursor: pointer; }
.post-compose-form :is(textarea, select, input):focus-visible { outline: 3px solid var(--post-gold); outline-offset: 3px; }
.post-form-field small { line-height: 1.5; color: #5e6172; }
.post-form-field.has-error { color: var(--post-red); }
.post-form-errors,
.post-slot-warning { padding: 0.75rem; background: rgba(143, 41, 53, 0.08); border-left: 3px solid var(--post-red); font-size: 0.88rem; line-height: 1.6; }

.post-stream { min-width: 0; }
.post-stream-heading { margin-bottom: 1.5rem; }
.post-card {
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(184, 137, 49, 0.35);
  border-radius: 0.25rem;
  background: var(--post-paper);
  box-shadow: 0 1rem 2.8rem rgba(24, 35, 82, 0.08);
}

.post-card-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.post-card-header time { color: #6d6f7d; font-size: 0.84rem; }
.post-author { margin: 0 0 0.2rem; font-weight: 800; color: var(--post-ink); }
.post-spoiler-mark { padding: 0.3rem 0.55rem; border: 1px solid var(--post-red); color: var(--post-red); font-size: 0.76rem; }
.post-body,
.post-spoiler { margin: 1.25rem 0; line-height: 1.9; overflow-wrap: anywhere; }
.post-spoiler summary { cursor: pointer; color: var(--post-red); font-weight: 700; }
.post-image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 1.25rem 0; }
.post-image-grid.post-image-count-1 { grid-template-columns: minmax(0, 34rem); }
.post-image-grid a { display: block; overflow: hidden; background: #ece8dc; aspect-ratio: 4 / 3; }
.post-image-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.post-image-grid a:hover img { transform: scale(1.025); }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.post-meta span,
.post-meta a { padding: 0.28rem 0.55rem; background: rgba(184, 137, 49, 0.11); color: var(--post-ink); font-size: 0.78rem; }
.post-card-link { margin: 1.25rem 0 0; text-align: right; }
.post-card-link a,
.post-pagination a { color: var(--post-red); font-weight: 700; }
.post-pagination { display: flex; justify-content: center; gap: 1.25rem; align-items: center; padding: 1rem; }
.post-empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed rgba(184, 137, 49, 0.5); }

.post-detail-hero { padding: 2rem 0 1rem; }
.post-detail-hero a { color: var(--post-red); }
.post-detail-layout { max-width: 58rem; padding-bottom: 5rem; }
.post-related-work,
.post-owner-panel,
.post-report-box { margin: 1.5rem 0; padding: 1.25rem; background: rgba(255, 252, 242, 0.9); border: 1px solid rgba(184, 137, 49, 0.35); }
.post-owner-panel h2 { margin-top: 0; font-size: 1.2rem; color: var(--post-ink); }
.post-owner-images { list-style: none; padding: 0; }
.post-owner-images li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(184, 137, 49, 0.2); }
.post-owner-images li > div { display: flex; gap: 0.5rem; }
.post-owner-images form { margin: 0; }
.post-report-box summary { cursor: pointer; color: var(--post-red); font-weight: 700; }
.post-report-box form { display: grid; gap: 0.7rem; margin-top: 1rem; }

@media (max-width: 820px) {
  .post-layout { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .post-compose-panel { position: static; }
}

@media (max-width: 540px) {
  .post-image-grid { grid-template-columns: 1fr; }
  .post-owner-images li { display: grid; }
  .post-card { padding: 1rem; }
}

/* 首页今日翻阅：在后加载的体验样式之后重新锁定编辑式卡片栅格。 */
.featured-section .editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.featured-section .editorial-grid .work-card {
  min-width: 0;
  display: block;
  grid-column: auto;
  grid-row: auto;
}
.featured-section .editorial-grid .card-visual,
.featured-section .editorial-grid .work-card:first-child .card-visual,
.featured-section .editorial-grid .work-card:not(:first-child) .card-visual {
  height: clamp(220px, 24vw, 320px);
  min-height: 0;
  aspect-ratio: 4 / 3;
}
.featured-section .editorial-grid .work-card:not(:first-child) .card-body > p:not(.meta) {
  display: block;
}
.featured-section .editorial-grid .card-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .featured-section .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-section .editorial-grid .card-visual,
  .featured-section .editorial-grid .work-card:first-child .card-visual,
  .featured-section .editorial-grid .work-card:not(:first-child) .card-visual {
    height: clamp(220px, 30vw, 280px);
  }
}

@media (max-width: 620px) {
  .featured-section .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .featured-section .editorial-grid .work-card:first-child .card-visual,
  .featured-section .editorial-grid .work-card:not(:first-child) .card-visual {
    height: 245px;
    min-height: 0;
    aspect-ratio: auto;
  }
}
.reader-published { margin: .55rem 0 0; color: rgba(255,255,255,.7); font-size: .86rem; letter-spacing: .05em; }
