@font-face { font-family: "Old Press Brush"; font-style: normal; font-weight: 400; font-display: swap; src: url("../images/press-brush-0.woff2") format("woff2"); unicode-range: U+0000-4FFF; }
@font-face { font-family: "Old Press Brush"; font-style: normal; font-weight: 400; font-display: swap; src: url("../images/press-brush-1.woff2") format("woff2"); unicode-range: U+5000-5FFF; }
@font-face { font-family: "Old Press Brush"; font-style: normal; font-weight: 400; font-display: swap; src: url("../images/press-brush-2.woff2") format("woff2"); unicode-range: U+6000-6FFF; }
@font-face { font-family: "Old Press Brush"; font-style: normal; font-weight: 400; font-display: swap; src: url("../images/press-brush-3.woff2") format("woff2"); unicode-range: U+7000-7FFF; }
@font-face { font-family: "Old Press Brush"; font-style: normal; font-weight: 400; font-display: swap; src: url("../images/press-brush-4.woff2") format("woff2"); unicode-range: U+8000-8FFF; }
@font-face { font-family: "Old Press Brush"; font-style: normal; font-weight: 400; font-display: swap; src: url("../images/press-brush-5.woff2") format("woff2"); unicode-range: U+9000-FFFF; }
/* 潮汕旧报：本地书法与宋体，暖纸阅读，深木底。 */
@font-face { font-family: "Old Press Serif"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../images/press-serif-regular-0.woff2") format("woff2"); unicode-range: U+0-6FFF; }
@font-face { font-family: "Old Press Serif"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../images/press-serif-regular-1.woff2") format("woff2"); unicode-range: U+7000-FFFF; }
@font-face { font-family: "Old Press Serif"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("../images/press-serif-bold-0.woff2") format("woff2"); unicode-range: U+0-6FFF; }
@font-face { font-family: "Old Press Serif"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("../images/press-serif-bold-1.woff2") format("woff2"); unicode-range: U+7000-FFFF; }
:root { --ink: #342414; --paper: #f4e5c4; --surface: rgb(255 248 222 / 12%);
  --paper-texture: url("../images/press-paper.webp"); --wood-texture: url("../images/press-wood.webp");
  --gilt: #a97c3d; --pale-gold: #f1d35e; --line: #ba9660; --muted: #795127;
  --ball-red: #ed1c24; --ball-blue: #1677d2; --ball-green: #1ca65b; --article-size: 15px;
  --heading-wash: rgb(189 135 62 / 12%); --cinnabar: #9c3822;
  color: var(--ink); background: #342414;
  font-family: "Old Press Serif", "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-synthesis: weight; }
* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; scroll-behavior: smooth; }
body { min-width: 320px; overflow-x: clip; margin: 0; background: #342414 var(--wood-texture) center top / 640px; color: var(--ink); font-size: 15px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
button, input, dialog { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.page-shell, .ink-page-header, .index-shell, .site-footer { width: min(760px, 100%); margin-inline: auto; }
.index-shell { min-height: 100vh; background: #342414 var(--wood-texture) center top / 640px; }
.page-shell { min-height: 50vh; padding: 16px 14px 24px; background-color: var(--paper); background-image: var(--paper-texture); background-size: 580px; }
.index-header { position: relative; display: flex; min-height: 120px; padding: 12px 7%; align-items: center; background: url("../images/press-header.webp") right center / cover no-repeat; color: var(--paper); overflow: hidden; }
.ink-page-header { padding-bottom: 8px; background: #342414 var(--wood-texture) center top / 640px; }
.index-brand { position: relative; display: flex; width: 100%; min-width: 0; max-width: 100%; align-items: center; gap: 9px; color: var(--paper); line-height: 1.2; }
.index-logo { width: 48px; height: 76px; flex: none; object-fit: contain; object-position: center; border: 0; clip-path: ellipse(47% 46% at 50% 49%); }
.index-brand-copy { display: grid; min-width: 0; gap: 8px; text-align: left; }
.index-brand strong { font-family: "Old Press Brush", "KaiTi", "STKaiti", "Old Press Serif", serif; font-size: clamp(27px, 7.4vw, 44px); font-weight: 400; letter-spacing: .02em; overflow-wrap: anywhere; text-shadow: 0 1px 2px #342414; }
.index-brand small { color: var(--paper); font-size: 10px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.index-notice { display: flex; position: relative; width: 91.5%; min-height: 38px; margin-inline: auto; padding: 6px 10px; align-items: center; gap: 8px; background: var(--paper) var(--paper-texture) center / 580px; color: var(--ink); font-size: 14px; line-height: 22px; border: 3px double var(--line); }
.index-notice-icon { display: grid; width: 24px; height: 26px; flex: 0 0 24px; place-items: center; color: var(--ink); }
.index-notice-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.index-notice-viewport { min-width: 0; flex: 1 1 0%; }
.index-notice-track { display: flex; width: 100%; }
.index-notice-copy { width: 100%; min-width: 0; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.index-notice-copy i { margin-inline: 10px; font-style: normal; }
.degraded-banner { display: flex; width: min(760px, 100%); margin: 0 auto; padding: 9px 14px; flex-wrap: wrap; justify-content: center; gap: 4px 12px; border-block: 1px solid var(--gilt); background: var(--pale-gold); color: var(--ink); font-size: 14px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 13px; }
.empty-state { padding: 16px; color: var(--muted); }
.masonry-card { min-width: 0; padding: 0; background: transparent; }
.card-heading { margin: 0 0 12px; padding: 12px 14px; border-bottom: 1px solid var(--gilt); background: var(--heading-wash); }
.card-heading h1, .card-heading h2 { margin: 0; font-size: 20px; }
.detail-page-card { margin: 0; }
.article-body, .document-body { width: 100%; max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; color: var(--ink); font-size: var(--article-size); font-weight: 700; }
.article-body *, .document-body * { max-width: 100%; font-family: inherit !important; font-size: var(--article-size) !important; font-weight: 700 !important; line-height: 1.65; }
.article-body > :first-child, .document-body > :first-child { margin-top: 0; }
.article-body > :last-child, .document-body > :last-child { margin-bottom: 0; }
.article-body table, .document-body table { width: 100% !important; height: auto; margin: 0; border-collapse: collapse; background: transparent; }
.article-body :is(th, td), .document-body :is(th, td) { height: auto; padding: 7px 5px; border: 1px solid var(--line); text-align: center !important; vertical-align: middle; }
.article-body img, .document-body img { height: auto; object-fit: contain; }
/* Imported rich text remains legible on the paper surface. */
.article-body :is(p, div, span, font, b, strong, td, th, a), .document-body :is(p, div, span, font, b, strong, td, th, a) { color: var(--ink) !important; background-color: transparent !important; }
.prediction-hit, .article-body .prediction-hit, .article-body mark { padding: 1px 2px; background: var(--pale-gold) !important; color: var(--ink) !important; box-decoration-break: clone; }
.article-body mark *, .article-body .prediction-hit * { color: inherit !important; }
.site-footer, .index-footer { position: relative; isolation: isolate; min-height: 100px; padding: 36px 70px 26px; background: #342414 var(--wood-texture) center / 640px; color: var(--paper); text-align: center; font-size: 12px; }
.site-footer::before, .index-footer::before { position: absolute; z-index: -1; inset: 0; background: url("../images/press-footer.webp") center bottom / 100% auto no-repeat; pointer-events: none; content: ""; }
.site-footer p, .index-footer p { margin: 0; }
.index-image-flow, .image-flow { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.index-image-item, .image-item { min-width: 0; text-align: center; }
.index-image-item img, .image-item img { width: 100%; aspect-ratio: auto; height: auto; object-fit: contain; background: var(--surface); }
.index-image-item span, .image-item span { display: block; padding-block: 4px; overflow-wrap: anywhere; }
.gallery-load-zone { display: grid; justify-items: center; padding: 16px; }
.gallery-load-more { display: inline-flex; min-height: 40px; padding: 8px 14px; align-items: center; gap: 8px; border: 1px solid var(--gilt); border-radius: 2px; background: var(--pale-gold); color: var(--ink); }
.gallery-loading-spinner { display: none; width: 14px; height: 14px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: press-spin 1s linear infinite; }
[data-state="loading"] .gallery-loading-spinner { display: block; }
@keyframes press-spin { to { transform: rotate(360deg); } }
.home-modal { position: fixed; width: min(900px, calc(100% - 24px)); max-height: 92vh; padding: 12px; border: 1px solid var(--gilt); background: var(--paper); }
.home-modal::backdrop { background: rgb(23 23 21 / 80%); }
.home-modal img { width: 100%; max-height: 80vh; object-fit: contain; }
.home-modal button { min-height: 38px; border: 0; background: var(--ink); color: var(--pale-gold); }
.home-back-to-top, .history-back-to-top { position: fixed; z-index: 30; right: max(12px, calc((100vw - 760px) / 2 + 12px)); bottom: 18px; display: grid; width: 44px; height: 44px; padding: 10px; place-items: center; border: 1px solid var(--gilt); border-radius: 50%; background: var(--ink); color: var(--pale-gold); line-height: 1; }
.home-back-to-top svg, .history-back-to-top svg { width: 24px; height: 24px; }
.number-attributes-content { padding: 12px 8px; }
.number-attributes-year { margin: 0 0 14px; text-align: center; font-size: 19px; }
.zodiac-number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.zodiac-number-item { min-width: 0; padding: 10px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.zodiac-identity { display: flex; margin-bottom: 6px; align-items: center; justify-content: center; gap: 6px; }
.zodiac-icon { width: 30px; height: 30px; }
.zodiac-opposite { color: var(--muted); font-size: 12px; }
.attribute-number-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.attribute-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.attribute-number.ball-red { background: var(--ball-red); color: #fff; }
.attribute-number.ball-green { background: var(--ball-green); color: #fff; }
.attribute-number.ball-blue { background: var(--ball-blue); color: #fff; }
.number-category-title { margin: 16px 0 0; padding: 8px 12px; background: var(--heading-wash); font-size: 17px; }
.attribute-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 10px 5px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.attribute-label { text-align: center; }
.attribute-row .attribute-number-list { justify-content: flex-start; }
@media (min-width: 681px) {
  :root { --article-size: 16px; }
  .index-header { min-height: 166px; padding-block: 16px; }
  .index-logo { width: 72px; height: 116px; }
  .index-brand { width: 100%; gap: 14px; }
  .index-brand strong { font-size: 46px; }
  .index-brand small { font-size: 14px; letter-spacing: .04em; }
  .index-notice { min-height: 38px; padding-inline: 12px; }
  .site-footer, .index-footer { min-height: 104px; padding-top: 38px; }
}
@media (max-width: 360px) {
  .index-header { min-height: 108px; padding-inline: 6%; }
  .index-brand { width: 100%; gap: 8px; }
  .index-logo { width: 40px; height: 68px; }
  .index-brand strong { font-size: 25px; }
  .index-brand small { font-size: 9px; }
  .index-notice { padding-inline: 5px; gap: 4px; }
  .site-footer, .index-footer { padding-inline: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-loading-spinner { animation: none; }
}
