/* ==========================================================================
   诚信为人之本 内页骨架：纸本墨色 · 竖排点缀 Hero + 四条承诺 + 长文 + 年表
   ========================================================================== */

:root {
  --cx-paper: #faf6ed;
  --cx-paper-2: #f3ecdd;
  --cx-ink: #1f1c18;
  --cx-ink-2: #4a443b;
  --cx-muted: #7a7263;
  --cx-seal: #a8322d;
  --cx-rule: #ded3bd;
  --cx-serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
}

body.cx-page {
  background: var(--cx-paper);
  color: var(--cx-ink);
}

.cx-page .site-header {
  background: rgba(250, 246, 237, .94);
  border-bottom-color: var(--cx-rule);
}

.cx-page .brand-mark { background: var(--cx-ink); color: var(--cx-paper); border-radius: 4px; box-shadow: none; }
.cx-page .brand-text em { color: var(--cx-seal); }
.cx-page .site-nav a { color: var(--cx-ink-2); }
.cx-page .site-nav a.is-active { color: var(--cx-seal); }
.cx-page .site-nav a::after { background: var(--cx-seal); }
.cx-page .btn-login { background: var(--cx-ink); color: var(--cx-paper); border-radius: 4px; box-shadow: none; }

/* ---------------- Hero ---------------- */
.cx-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 84px;
  background:
    linear-gradient(180deg, #fdfaf3, var(--cx-paper));
  border-bottom: 1px solid var(--cx-rule);
}

.cx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(160, 140, 110, .1) 0 1px, transparent 1px 34px);
  opacity: .5;
  pointer-events: none;
}

.cx-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cx-serif);
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--cx-seal);
}

.cx-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--cx-seal);
}

.cx-hero h1 {
  margin: 24px 0 20px;
  font-family: var(--cx-serif);
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 2px;
}

.cx-hero h1 em {
  font-style: normal;
  color: var(--cx-seal);
}

.cx-hero .lead {
  max-width: 560px;
  font-family: var(--cx-serif);
  font-size: 17px;
  line-height: 2.1;
  color: var(--cx-ink-2);
  letter-spacing: .5px;
}

.cx-hero .lead strong { color: var(--cx-ink); font-weight: 700; }

.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.cx-actions .btn-primary {
  background: var(--cx-ink);
  color: var(--cx-paper);
  border-radius: 4px;
  box-shadow: none;
}

.cx-actions .btn-primary:hover { background: #000; }

.cx-actions .btn-room {
  background: transparent;
  border: 1px solid var(--cx-rule);
  color: var(--cx-ink);
  border-radius: 4px;
  font-family: var(--cx-serif);
}

.cx-actions .btn-room b { color: var(--cx-seal); letter-spacing: 2px; }

.cx-visual {
  position: relative;
  padding: 18px;
  background: #fffdf7;
  border: 1px solid var(--cx-rule);
  box-shadow: 0 26px 50px rgba(90, 74, 50, .14);
}

.cx-visual::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(222, 211, 189, .7);
  pointer-events: none;
}

.cx-visual img { position: relative; z-index: 1; }

/* 竖排副标 */
.cx-vertical {
  position: absolute;
  right: 12px;
  top: 40px;
  writing-mode: vertical-rl;
  font-family: var(--cx-serif);
  font-size: 15px;
  letter-spacing: 8px;
  color: var(--cx-muted);
}

/* ---------------- 引言 ---------------- */
.cx-quote {
  padding: 62px 0;
  background: var(--cx-paper-2);
  border-bottom: 1px solid var(--cx-rule);
}

.cx-quote blockquote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--cx-serif);
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 2;
  letter-spacing: 2px;
  color: var(--cx-ink);
}

.cx-quote blockquote::before,
.cx-quote blockquote::after {
  content: "「";
  color: var(--cx-seal);
}

.cx-quote blockquote::after { content: "」"; }

.cx-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font);
  font-size: 12.5px;
  font-style: normal;
  letter-spacing: 3px;
  color: var(--cx-muted);
  text-align: center;
}

/* ---------------- 四条承诺 ---------------- */
.cx-section { padding: 86px 0; }

.cx-head { max-width: 700px; margin-bottom: 42px; }

.cx-head .k {
  font-family: var(--cx-serif);
  font-size: 12.5px;
  letter-spacing: 5px;
  color: var(--cx-seal);
}

.cx-head h2 {
  margin: 14px 0 12px;
  font-family: var(--cx-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

.cx-head p { font-size: 15.5px; line-height: 1.9; color: var(--cx-muted); }

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--cx-rule);
}

.promise {
  position: relative;
  padding: 38px 36px 38px 0;
  border-bottom: 1px solid var(--cx-rule);
}

.promise:nth-child(odd) {
  padding-right: 44px;
  border-right: 1px solid var(--cx-rule);
}

.promise:nth-child(even) { padding-left: 44px; }

.promise .num {
  font-family: var(--cx-serif);
  font-size: 42px;
  line-height: 1;
  color: rgba(168, 50, 45, .22);
  margin-bottom: 14px;
}

.promise h3 {
  font-family: var(--cx-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.promise p { font-size: 14.5px; line-height: 1.95; color: var(--cx-muted); }
.promise p + p { margin-top: 8px; }
.promise a { color: var(--cx-seal); border-bottom: 1px solid rgba(168, 50, 45, .3); }

/* ---------------- 长文 ---------------- */
.cx-essay {
  background: #fffdf7;
  border-block: 1px solid var(--cx-rule);
}

.essay-grid {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 56px;
  align-items: start;
}

.essay-side {
  position: sticky;
  top: 100px;
}

.essay-side .mark {
  font-family: var(--cx-serif);
  font-size: 92px;
  line-height: 1;
  color: var(--cx-seal);
  opacity: .18;
}

.essay-side h3 {
  margin-top: 8px;
  font-family: var(--cx-serif);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--cx-ink);
}

.essay-side p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--cx-muted);
}

.essay-body p {
  font-family: var(--cx-serif);
  font-size: 16.5px;
  line-height: 2.15;
  color: var(--cx-ink-2);
  letter-spacing: .4px;
}

.essay-body p + p { margin-top: 18px; }

.essay-body p.first::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-size: 62px;
  line-height: .9;
  color: var(--cx-seal);
  font-weight: 700;
}

.essay-body strong { color: var(--cx-ink); }

/* ---------------- 年表 ---------------- */
.cx-timeline { display: grid; }

.tl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--cx-rule);
  align-items: start;
}

.tl-row:last-child { border-bottom: 1px solid var(--cx-rule); }

.tl-row .yr {
  font-family: var(--cx-serif);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--cx-seal);
}

.tl-row h3 {
  font-family: var(--cx-serif);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.tl-row p { font-size: 14.5px; line-height: 1.9; color: var(--cx-muted); }

/* ---------------- 问题引导 ---------------- */
.cx-help {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--cx-rule);
  background: #fffdf7;
}

.cx-help a {
  padding: 30px 28px;
  border-right: 1px solid var(--cx-rule);
  transition: background .2s;
}

.cx-help a:last-child { border-right: 0; }
.cx-help a:hover { background: var(--cx-paper-2); }

.cx-help .k {
  font-family: var(--cx-serif);
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--cx-seal);
}

.cx-help strong {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--cx-serif);
  font-size: 16.5px;
  letter-spacing: 1px;
}

.cx-help span { font-size: 13px; color: var(--cx-muted); line-height: 1.8; }

/* ---------------- CTA ---------------- */
.cx-cta {
  padding: 0 0 88px;
}

.cx-cta-box {
  padding: 50px 54px;
  background: var(--cx-ink);
  color: #efe7d7;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
}

.cx-cta-box h2 {
  font-family: var(--cx-serif);
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 10px;
}

.cx-cta-box p { font-size: 14.5px; line-height: 1.9; color: #b8ad99; }

.cx-cta-box .row { display: flex; flex-wrap: wrap; gap: 12px; }

.cx-cta-box .btn-primary {
  background: var(--cx-seal);
  color: #fff;
  border-radius: 4px;
}

.cx-cta-box .tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid rgba(239, 231, 215, .28);
  border-radius: 4px;
  color: #efe7d7;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}

.cx-cta-box .tg:hover { border-color: var(--cx-seal); background: rgba(168, 50, 45, .15); }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .cx-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cx-visual { max-width: 520px; }
  .cx-vertical { display: none; }
  .essay-grid { grid-template-columns: 1fr; gap: 28px; }
  .essay-side { position: static; display: flex; align-items: baseline; gap: 16px; }
  .essay-side .mark { font-size: 56px; }
  .essay-side p { margin-top: 0; }
  .cx-help { grid-template-columns: 1fr; }
  .cx-help a { border-right: 0; border-bottom: 1px solid var(--cx-rule); }
  .cx-help a:last-child { border-bottom: 0; }
  .cx-cta-box { grid-template-columns: 1fr; padding: 36px 28px; }
}

@media (max-width: 640px) {
  .cx-hero { padding: 48px 0 60px; }
  .cx-hero h1 { font-size: 30px; letter-spacing: 1px; }
  .cx-actions .btn { width: 100%; }
  .cx-section { padding: 60px 0; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise:nth-child(odd) { padding-right: 0; border-right: 0; }
  .promise:nth-child(even) { padding-left: 0; }
  .promise { padding-block: 28px; }
  .essay-body p { font-size: 15.5px; line-height: 2.05; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .cx-cta-box .row .btn, .cx-cta-box .row .tg { width: 100%; }
}
