:root {
  --ink: #26241f;
  --ink-soft: #55524a;
  --ink-faint: #8c887c;
  --paper: #f4f0e6;
  --paper-deep: #ece6d6;
  --card: #fdfbf4;
  --line: #d8d2c0;
  --line-dark: #3a382f;
  --seal: #a3352a;
  --seal-deep: #87291f;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --kai: "Kaiti SC", STKaiti, KaiTi, "楷体", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  background-color: #f6f3ec;
  /* 粗纸纹理：随机短纤维丝（参照古联站效果）+ 极淡的纸浆斑与细颗粒。
     CSS 内 url() 相对当前 CSS 文件所在目录解析，纹理与本文件同在 assets/ 下 */
  background-image:
    url("paper-flecks.svg"),
    url("paper-mottle.svg"),
    url("paper-grain.svg");
  background-size: 420px 420px, 720px 720px, 220px 220px;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- 顶部 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 251, 244, 0.96);
  border-bottom: 1px solid var(--line);
}
.topbar::before { content: ""; display: block; height: 3px; background: var(--seal); }
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .seal { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: 3px; color: var(--ink); }
.brand-name em { font-style: normal; font-size: 14px; letter-spacing: 0.4px; color: var(--ink-soft); margin-left: 8px; font-family: var(--sans); }
.topnav { display: flex; gap: 30px; margin-left: auto; font-size: 16px; letter-spacing: 1px; color: var(--ink); }
.topnav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--seal); border-bottom-color: var(--seal); }
.topbar .cta {
  font-family: var(--serif);
  letter-spacing: 2px;
  font-size: 15px;
  color: var(--seal);
  border: 1px solid var(--seal);
  padding: 7px 18px;
}
.topbar .cta:hover { background: var(--seal); color: #fdf6ee; }

/* ---------- 首屏 ---------- */
.hero { padding: 74px 0 96px; overflow: hidden; position: relative; }
.hero .decor-mountain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 200px;
  z-index: 0;
  filter: blur(0.6px);
}
.hero .decor-cloudlines { position: absolute; z-index: 0; }
.hero .decor-cloudlines.c1 { top: 30px; left: 4%; width: 110px; opacity: 0.5; }
.hero .decor-cloudlines.c2 { bottom: 150px; right: 3%; width: 92px; opacity: 0.38; transform: scaleX(-1); }
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero .decor-cloud { display: block; width: 168px; margin: 10px auto 0; opacity: 0.75; }
.hero .kicker {
  font-size: 15px;
  letter-spacing: 6px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--kai);
  font-size: 58px;
  line-height: 1.5;
  letter-spacing: 6px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero .sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 560px;
  border-left: 3px solid var(--seal);
  padding-left: 16px;
}
.hero .sub strong { color: var(--seal); font-weight: 600; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; }
.btn {
  display: inline-block;
  padding: 12px 34px;
  font-size: 15px;
  letter-spacing: 3px;
  font-family: var(--serif);
  border: 1px solid var(--line-dark);
  transition: all 0.15s ease;
}
.btn-primary { background: var(--seal); border-color: var(--seal); color: #fdf6ee; }
.btn-primary:hover { background: var(--seal-deep); border-color: var(--seal-deep); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--seal); color: var(--seal); }
.hero-note { margin-top: 26px; font-size: 13px; letter-spacing: 1px; color: var(--ink-faint); }

/* 首屏背景：真实方志书影直接铺在纸底上（正片叠底 + 上下边缘虚化），仅首屏 */
.hero-scans {
  position: absolute;
  inset: 0;
  max-width: 1120px;
  margin: 0 auto;
  pointer-events: none;
}
.scan-fan {
  position: absolute;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.scan-fan.s1  { right: 2%;    top: 50%;      transform: translateY(-50%); width: 280px; opacity: .9;  }
.scan-fan.s2  { right: 24%;   top: 26%;      width: 200px; opacity: .4;  }
.scan-fan.s3  { left: 9%;     top: 8%;       width: 290px; opacity: .12; }
.scan-fan.s4  { right: 13%;   bottom: -50px; width: 245px; opacity: .6;  }
.scan-fan.s5  { right: 40%;   bottom: -85px; width: 215px; opacity: .5;  }
.scan-fan.s6  { left: -80px;  top: -90px;    width: 215px; opacity: .45; }
.scan-fan.s7  { left: 45%;    top: -110px;   width: 220px; opacity: .4;  }
.scan-fan.s8  { right: 32%;   top: -85px;    width: 215px; opacity: .45; }
.scan-fan.s9  { right: -70px; top: -75px;    width: 230px; opacity: .5;  }
.scan-fan.s10 { left: 3%;     top: 46%;      width: 270px; opacity: .1;  }
.scan-fan.s11 { left: -90px;  bottom: -90px; width: 225px; opacity: .38; }
.scan-fan.s4 { right: 11%; bottom: -80px; width: 240px; opacity: 0.55; }
.scan-fan.s5 { right: 36%; bottom: -60px; width: 205px; opacity: 0.5; }
.scan-fan.s6 { left: -84px; top: -60px; width: 250px; opacity: 0.35; }

/* ---------- 区块标题（仿参照站：黑底白字居中 + 两侧长线） ---------- */
section.block { padding: 76px 0; }
.sec-title {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
}
.sec-title::before, .sec-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--line-dark) 22%, var(--line-dark) 78%, transparent);
}
.sec-title span {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  color: #fdfbf4;
  background: var(--line-dark);
  padding: 8px 38px;
  white-space: nowrap;
}
.sec-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 auto 46px;
  font-size: 15.5px;
}
.sec-sub strong { color: var(--seal); font-weight: 600; }

/* ---------- 工作流程：四列图标，无边框居中 ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.flow-item { text-align: center; padding: 0 8px; }
.flow-item .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--ink);
}
.flow-item h3 {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.flow-item p { font-size: 13.5px; color: var(--ink-soft); text-align: center; }
.flow-foot {
  margin-top: 42px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.flow-foot strong { color: var(--seal); font-weight: 600; }

/* ---------- 数字产品：双线装裱卡 ---------- */
.product {
  max-width: 920px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 1px var(--card), inset 0 0 0 2px #c9c1ab;
  padding: 12px;
  display: grid;
  grid-template-columns: 200px 1fr;
}
/* 产品卡左栏：真实书影直接印在卡纸上（正片叠底扣底色 + 四边虚化） */
.product-visual {
  position: relative;
  overflow: hidden;
}
.product-visual .scan {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  opacity: .88;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
.product-body { padding: 26px 30px; }
.product-body h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 2px; }
.product-body h3 em { font-style: normal; font-size: 13px; color: var(--ink-faint); margin-left: 10px; font-family: var(--sans); letter-spacing: 0.5px; }
.product-body .desc { color: var(--ink-soft); font-size: 14.5px; margin-top: 8px; }
.product-body ul { margin: 14px 0 20px; list-style: none; }
.product-body ul li {
  font-size: 14.5px;
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.product-body ul li:last-child { border-bottom: none; }
.product-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--seal);
}
.product-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.product-meta .price {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
}
.product-meta .price b { color: var(--seal); font-weight: 600; font-size: 17px; }

/* ---------- 数据产品 ---------- */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.data-card {
  background: var(--card);
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 1px var(--card), inset 0 0 0 2px #c9c1ab;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.data-card .inner { border: 1px solid var(--line); padding: 24px 24px 18px; flex: 1; display: flex; flex-direction: column; }
.data-card .head { text-align: center; margin-bottom: 12px; }
.data-card .no {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--seal);
  margin-bottom: 6px;
}
.data-card h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 3px; }
.data-card .desc { font-size: 14px; color: var(--ink-soft); text-align: center; margin-bottom: 16px; flex: 0; }
.data-sample { font-size: 12.5px; margin-top: auto; }
.data-sample .cap {
  text-align: center;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.data-sample table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-dark); }
.data-sample th {
  text-align: left;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-dark);
  white-space: nowrap;
  color: var(--ink);
}
.data-sample td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.data-sample .clz {
  display: inline-block;
  font-size: 11px;
  color: var(--seal);
  border: 1px solid var(--seal);
  padding: 0 5px;
  margin-right: 4px;
  white-space: nowrap;
}
.data-sample .ok { color: var(--seal); white-space: nowrap; }

/* ---------- 服务与合作 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-dark); background: var(--card); }
.step-card { padding: 34px 30px; text-align: center; }
.step-card + .step-card { border-left: 1px solid var(--line); }
.step-card .no { font-family: var(--kai); font-size: 30px; color: var(--ink); margin-bottom: 10px; }
.step-card h3 { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--ink-soft); text-align: center; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.mode {
  background: var(--card);
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 1px var(--card), inset 0 0 0 2px #c9c1ab;
  padding: 30px 32px;
  text-align: center;
  position: relative;
}
.mode.reco::after {
  content: "推荐";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--seal);
  color: #fdf6ee;
  font-size: 13px;
  letter-spacing: 3px;
  padding: 4px 14px;
}
.mode h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 3px; margin-bottom: 10px; }
.mode p { font-size: 14px; color: var(--ink-soft); }
.mode .meta { margin-top: 12px; font-size: 13.5px; }
.mode .meta b { color: var(--seal); font-weight: 600; }

.contact-band {
  margin-top: 40px;
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 1px var(--card), inset 0 0 0 2px #c9c1ab;
  background: var(--card);
  padding: 12px;
}
.contact-inner {
  border: 1px solid var(--line);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.contact-band .text { flex: 1; min-width: 280px; }
.contact-band h3 { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; margin-bottom: 6px; }
.contact-band p { font-size: 14px; color: var(--ink-soft); }
.contact-band .ways { margin-top: 8px; font-size: 14.5px; }
.contact-band .ways b { color: var(--seal); font-weight: 600; }
.contact-band .ways a { color: var(--seal); text-decoration: none; border-bottom: 1px solid rgba(193, 39, 45, 0.3); }
.qr-slot {
  width: 168px;
  margin: 0;
  background: #fbf7ec;
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 1px #fbf7ec, inset 0 0 0 2px #c9c1ab;
  padding: 8px;
  text-align: center;
}
.qr-slot img { width: 100%; height: auto; display: block; border: 1px solid rgba(38, 36, 31, 0.25); }
.qr-slot figcaption {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 2px;
  color: var(--ink-faint);
}

/* ---------- 多语言 ---------- */
.lang-band { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.lang-chip {
  border: 1px solid var(--line-dark);
  background: var(--card);
  padding: 10px 26px;
  font-size: 14.5px;
  letter-spacing: 1px;
  color: var(--ink-soft);
}
.lang-chip.ready { color: var(--ink); }
.lang-chip.ready::before { content: "●"; color: var(--seal); font-size: 10px; margin-right: 8px; vertical-align: 1px; }
.lang-chip small { color: var(--ink-faint); margin-left: 8px; font-size: 12px; }

/* ---------- 关于 ---------- */
.about { position: relative; overflow: hidden; }
.about p { color: var(--ink-soft); max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.about p + p { margin-top: 12px; }
.about .wm {
  position: absolute;
  writing-mode: vertical-rl;
  font-family: var(--kai);
  font-size: 54px;
  letter-spacing: 16px;
  line-height: 1;
  color: rgba(44, 42, 36, 0.055);
  white-space: nowrap;
  pointer-events: none;
}
.about .wm.left { left: 1.5%; top: 36px; }
.about .wm.right { right: 1.5%; bottom: 20px; }

/* ---------- 页脚 ---------- */
footer { background: #26251f; color: #b3af9f; padding: 50px 0 28px; font-size: 13.5px; }
.foot-grid { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-grid .col { min-width: 180px; }
.foot-grid h4 { color: #ece6d6; font-size: 15px; margin-bottom: 14px; letter-spacing: 3px; font-family: var(--serif); }
.foot-grid a { display: block; padding: 3px 0; color: #b3af9f; }
.foot-grid a:hover { color: #ece6d6; }
.foot-brand { font-family: var(--serif); font-size: 22px; color: #ece6d6; letter-spacing: 3px; margin-bottom: 8px; }
.foot-slogan { font-family: var(--kai); letter-spacing: 2px; color: #8c887c; }
.foot-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #45433a;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #8c887c;
}

/* ---------- 法务子页 ---------- */
.doc-page { padding: 56px 0 90px; }
.doc-page article {
  background: var(--card);
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 1px var(--card), inset 0 0 0 2px #c9c1ab;
  padding: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.doc-paper { border: 1px solid var(--line); padding: 42px 48px; }
.doc-page h1 { font-family: var(--serif); font-size: 27px; letter-spacing: 4px; margin-bottom: 6px; text-align: center; }
.doc-page .updated { font-size: 13px; color: var(--ink-faint); margin-bottom: 28px; text-align: center; }
.doc-page h2 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 1px;
  margin: 26px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--seal);
}
.doc-page p, .doc-page li { font-size: 14.5px; color: var(--ink-soft); }
.doc-page ul { padding-left: 22px; margin: 6px 0; }
.doc-page li { margin: 4px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .topnav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero-scans { display: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-visual { min-height: 120px; }
  .data-grid, .modes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-card + .step-card { border-left: none; border-top: 1px solid var(--line); }
  .doc-paper { padding: 26px 22px; }
}
