/* 第1套·根域名：印厂拼版台 */
:root {
  --floor: #cfc9bf;
  --paper: #e8e4dc;
  --paper-2: #f0ece4;
  --ink: #1a1a1a;
  --crimson: #7a1520;
  --rule: #1a1a1a;
  --muted: #4a4540;
  --wash: #ddd8cf;
  --c: #00a3e0;
  --m: #ec008c;
  --y: #fff200;
  --k: #111111;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--floor);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--floor);
  font-family: "Songti SC", "STSong", "SimSun", "宋体", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.82;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--crimson);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 0.95em;
  text-align: justify;
}

p + p {
  text-indent: 2em;
}

h1,
h2,
h3 {
  font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 36px);
  letter-spacing: 0.03em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.3vw, 24px);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--crimson);
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--crimson);
}

ul,
ol {
  margin: 0 0 1em 1.4em;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 15px;
}

th,
td {
  border: 1px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--wash);
  font-weight: 700;
}

/* —— 车间地面：浅灰新闻纸 —— */
.press-floor {
  min-height: 100vh;
  padding: 22px 12px 40px;
  background-color: var(--floor);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(26, 26, 26, 0.018) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(122, 21, 32, 0.02) 12px
    );
}

/* —— 拼版台：裁切十字 + 出血 —— */
.impose {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.06);
}

.impose::before,
.impose::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.crop {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.crop::before {
  width: 22px;
  height: 1px;
  top: 10px;
  left: 0;
}

.crop::after {
  width: 1px;
  height: 22px;
  left: 10px;
  top: 0;
}

.crop-tl { top: -11px; left: -11px; }
.crop-tr { top: -11px; right: -11px; }
.crop-bl { bottom: -11px; left: -11px; }
.crop-br { bottom: -11px; right: -11px; }

.bleed {
  position: relative;
  border: 1px dashed var(--crimson);
  background: var(--paper-2);
}

/* —— CMYK 色标条 + 套准圆 —— */
.cmyk-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.chips {
  display: flex;
  align-items: center;
  gap: 3px;
}

.chip {
  display: inline-block;
  width: 26px;
  height: 12px;
  border: 1px solid var(--ink);
}

.chip-c { background: var(--c); }
.chip-m { background: var(--m); }
.chip-y { background: var(--y); }
.chip-k { background: var(--k); }

.reg {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  flex: 0 0 16px;
}

.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.reg::before {
  width: 20px;
  height: 1px;
  left: -3px;
  top: 7px;
}

.reg::after {
  width: 1px;
  height: 20px;
  left: 7px;
  top: -3px;
}

.rail-meta {
  margin-left: auto;
  text-indent: 0;
}

/* —— 页头 / 导航 —— */
.masthead {
  padding: 0 22px;
  border-bottom: 1px solid var(--ink);
}

.ticket {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--crimson);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 0 10px;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-name {
  font-size: clamp(32px, 5.6vw, 52px);
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--ink);
}

.hairline {
  height: 5px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--crimson);
}

.sheet-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-nav a {
  display: block;
  padding: 10px 26px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.16em;
  font-size: 15px;
  border-left: 1px solid var(--ink);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.sheet-nav li:last-child a {
  border-right: 1px solid var(--ink);
}

.sheet-nav a:hover,
.sheet-nav a[aria-current="page"],
.sheet-nav a.is-current {
  background: var(--crimson);
  color: var(--paper);
}

/* —— 版心 / 折手双栏 —— */
.sheet {
  position: relative;
  padding: 10px 22px 28px;
}

.folio-num {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.folio-tr { top: 8px; right: 10px; }
.folio-bl { bottom: 8px; left: 10px; }

.block {
  position: relative;
  padding: 22px 0 10px;
  border-bottom: 1px solid var(--ink);
}

.block:last-child {
  border-bottom: 0;
}

.sig-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--crimson);
  text-indent: 0;
}

.dateline {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-indent: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 0 26px;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--ink);
}

.hero-side {
  border-left: 1px solid var(--crimson);
  padding-left: 22px;
}

.hero-side p,
.hero-side li {
  text-indent: 0;
}

.hero-side ol {
  margin-left: 1.2em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
}

.split > * + * {
  border-left: 1px solid var(--ink);
  padding-left: 22px;
}

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.cols-2 > * {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--crimson);
}

.cols-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.cols-4 > * {
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--crimson);
}

.essay {
  column-count: 2;
  column-gap: 26px;
  column-rule: 1px solid var(--ink);
}

.essay h3,
.essay p:first-child {
  break-inside: avoid;
}

/* —— 评价 / 对照 / 步骤 / FAQ —— */
.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}

.review {
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--ink);
}

.review-meta {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-indent: 0;
}

.review p {
  text-indent: 2em;
}

.review p:first-of-type {
  text-indent: 0;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.compare article {
  padding: 4px 16px 8px 0;
  border-right: 1px solid var(--ink);
}

.compare article:last-child {
  border-right: 0;
  padding-right: 0;
}

.compare article:not(:first-child) {
  padding-left: 16px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
}

.step {
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--crimson);
}

.step p {
  text-indent: 0;
}

.faq + .faq {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.faq p {
  text-indent: 2em;
}

.note {
  padding: 10px 12px;
  border: 1px solid var(--crimson);
  background: var(--wash);
}

.note p,
.cta-band p {
  text-indent: 0;
}

.cta-band {
  margin: 18px 0 8px;
  padding: 16px 14px;
  border: 1px solid var(--ink);
  background: var(--wash);
  text-align: center;
}

.cta-band .btn {
  margin-top: 8px;
}

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-family: inherit;
  font-size: 15px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  background: var(--crimson);
  color: var(--paper);
}

.btn-row {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.btn-row p {
  text-indent: 0;
  margin: 0;
}

.btn-win {
  min-height: 48px;
  font-size: 16px;
}

/* —— 页脚 —— */
.colophon {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--ink);
  font-size: 13px;
}

.colophon p {
  text-indent: 0;
  margin: 0 0 6px;
}

@media (max-width: 920px) {
  .hero,
  .split,
  .cols-2,
  .cols-4,
  .reviews,
  .compare,
  .steps {
    grid-template-columns: 1fr;
  }

  .essay {
    column-count: 1;
  }

  .hero-side,
  .split > * + *,
  .compare article {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px;
    border-top: 1px solid var(--ink);
  }

  .sheet,
  .masthead,
  .colophon {
    padding-left: 14px;
    padding-right: 14px;
  }

  .rail-meta {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .ticket {
    flex-direction: column;
    gap: 4px;
  }

  .sheet-nav a {
    padding: 8px 12px;
    border: 1px solid var(--ink);
    margin: 4px 4px 0 0;
  }

  .sheet-nav li:last-child a {
    border-right: 1px solid var(--ink);
  }

  .impose {
    padding: 14px;
  }
}
