:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --accent: #e11d48;
  --bg-soft: #f2f0ea;
  --footer-bg: #24272e;
  --ink: #24272e;
  --muted: #7c7f88;
  --line: #d8d5cc;
  --paper: #fffefb;
  --wrap: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

.friend-links { display:none }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--ink);
  background: #e9e6de;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
a { color: inherit; text-decoration: none; }

/* ---------- 名头行（小票抬头，非 sticky） ---------- */
.masthead { background: var(--paper); border-bottom: 2px dashed var(--line); }
.masthead-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-size: 21px; font-weight: 900; letter-spacing: 2px; }
.logo-region { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; margin-left: 10px; padding: 2px 10px; border: 1px solid var(--ink); color: var(--ink); vertical-align: 3px; font-family: Consolas, "Courier New", monospace; }
.masthead-tel { font-size: 16px; font-weight: 800; font-family: Consolas, "Courier New", monospace; color: var(--primary-dark); border-bottom: 2px solid var(--accent); }

/* ---------- sticky 索引条（打印行） ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(36, 39, 46, .07); }
.navbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; display: flex; flex-wrap: wrap; }
.navbar-inner a { padding: 10px 13px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }
.navbar-inner a:hover { color: var(--primary-dark); background: var(--bg-soft); }
.nav-idx { font-size: 11px; font-weight: 700; color: var(--accent); margin-right: 5px; font-family: Consolas, "Courier New", monospace; }

/* ---------- 首屏（票头：锯齿上边） ---------- */
.hero { padding: 46px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--paper); padding: 44px 40px 38px; box-shadow: 0 8px 24px rgba(36, 39, 46, .10); }
.hero-grid { position: relative; }
.hero-grid::before { content: ""; position: absolute; top: -9px; left: 0; right: 0; height: 10px; background: linear-gradient(-45deg, transparent 66%, var(--paper) 67%) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 66%, var(--paper) 67%) 7px 0 / 14px 10px repeat-x; }
.hero-title { font-size: clamp(28px, 4.4vw, 46px); font-weight: 900; line-height: 1.2; text-align: center; }
.hero-sub { margin: 16px auto 0; font-size: 16px; color: var(--muted); max-width: 580px; text-align: center; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-tags li { padding: 5px 14px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--ink); font-family: Consolas, "Courier New", monospace; }
.btn { display: block; width: fit-content; margin: 28px auto 0; padding: 13px 44px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 2px; transition: background .15s; }
.btn:hover { background: var(--primary-dark); }
.hero-meta { margin-top: 30px; border-top: 2px dashed var(--line); padding: 8px 0 0; }
.meta-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 2px; border-bottom: 1px dotted var(--line); font-family: Consolas, "Courier New", monospace; }
.meta-row:last-child { border-bottom: 0; }
.meta-label { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 4px; }
.meta-value { font-size: 14px; font-weight: 700; text-align: right; }
.meta-value a { color: var(--primary-dark); text-decoration: underline; }

/* ---------- 照片带（票面配图框） ---------- */
.bandsec { padding: 26px 0 0; }
.photoband { position: relative; width: 100%; overflow: hidden; min-height: 200px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(36, 39, 46, .10); }
.photoband-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photoband-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; line-height: 1; border: 1px solid var(--ink); background: rgba(255, 254, 251, .92); color: var(--ink); font-size: 19px; cursor: pointer; }
.photoband-arrow:hover { background: var(--bg-soft); }
.photoband-prev { left: 12px; }
.photoband-next { right: 12px; }
.photoband-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 5; }
.photoband-dot { width: 12px; height: 6px; border: 1px solid var(--ink); border-radius: 0; background: rgba(255, 254, 251, .9); cursor: pointer; }
.photoband-dot.is-active { background: var(--accent); }

/* ---------- 版块（一段票据） ---------- */
.block { padding: 30px 0 0; }
.block-alt { background: transparent; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--paper); padding: 30px 30px 0; text-align: center; }
.deco { width: 120px; height: 0; border-top: 1px solid var(--ink); position: relative; margin-bottom: 8px; }
.deco::after { content: "* * *"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--paper); padding: 0 10px; font-size: 12px; letter-spacing: 4px; color: var(--muted); }
.tab-no { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 5px; font-family: Consolas, "Courier New", monospace; }
.tab-title { font-size: clamp(20px, 2.8vw, 28px); font-weight: 900; line-height: 1.2; letter-spacing: 2px; }
.folder-body { background: var(--paper); padding: 24px 40px 40px; box-shadow: 0 8px 24px rgba(36, 39, 46, .10); }
.block-subtitle { margin: -4px 0 20px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- 段落 ---------- */
.prose { max-width: 66ch; margin: 0 auto; font-size: 15.5px; color: #45484f; }
.about-local { margin-top: 16px; }
.about-local a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }
.bizcard { max-width: 420px; margin: 24px auto 0; border: 1px solid var(--line); padding: 8px; }
.bizcard img { width: 100%; display: block; }

/* ---------- 指标（账单行合计风） ---------- */
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.stat { padding: 24px 14px; text-align: center; }
.stat + .stat { border-left: 1px dotted var(--line); }
.stat-value { display: block; font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; color: var(--primary-dark); line-height: 1.05; font-family: Consolas, "Courier New", monospace; }
.stat-label { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 3px; }

/* ---------- 产品（货品清单） ---------- */
.prod-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.prod { border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.prod:hover { border-color: var(--ink); box-shadow: 0 6px 16px rgba(36, 39, 46, .12); }
.prod img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-bottom: 1px dashed var(--line); }
.prod-name { padding: 11px 13px; font-size: 14.5px; font-weight: 700; }

/* ---------- 问答（对账问询） ---------- */
.faq { list-style: none; display: grid; gap: 0; max-width: 760px; margin: 0 auto; }
.faq-item { padding: 18px 4px; border-bottom: 1px dotted var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-size: 15.5px; font-weight: 800; }
.faq-q::before { content: "Q · "; color: var(--accent); font-family: Consolas, "Courier New", monospace; }
.faq-a { margin-top: 6px; color: var(--muted); font-size: 14.5px; padding-left: 26px; }

/* ---------- 流程（打印步骤行） ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.step { border: 1px dashed var(--line); padding: 22px 16px; text-align: center; }
.step-no { display: inline-block; font-size: 13px; font-weight: 900; color: var(--accent); letter-spacing: 3px; font-family: Consolas, "Courier New", monospace; border: 1px solid var(--accent); padding: 2px 10px; }
.step-title { margin-top: 12px; font-size: 16px; font-weight: 800; }
.step-desc { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* ---------- 卡片（明细条目） ---------- */
.card-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.card-grid > * { flex: 1 1 210px; }


.card { border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 24px 20px; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card-title { font-size: 16px; font-weight: 800; }
.card-desc { margin-top: 9px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA（票尾合计） ---------- */
.cta { padding: 30px 0 0; }
.cta .wrap { position: relative; max-width: calc(var(--wrap) - 52px); background: var(--paper); padding: 48px 30px 54px; text-align: center; box-shadow: 0 8px 24px rgba(36, 39, 46, .10); }
.cta .wrap::after { content: ""; position: absolute; bottom: -9px; left: 0; right: 0; height: 10px; background: linear-gradient(-135deg, transparent 66%, var(--paper) 67%) 0 0 / 14px 10px repeat-x, linear-gradient(135deg, transparent 66%, var(--paper) 67%) 7px 0 / 14px 10px repeat-x; }
.cta-title { font-size: clamp(22px, 3.4vw, 34px); font-weight: 900; letter-spacing: 2px; }
.cta-sub { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.cta-btn { margin-top: 24px; background: var(--accent); font-family: Consolas, "Courier New", monospace; }
.cta-btn:hover { background: var(--primary-dark); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 48px; background: var(--footer-bg); color: rgba(255, 255, 255, .82); padding: 44px 0 36px; }
.footer-name { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: 2px; }
.footer-desc { margin-top: 12px; font-size: 13.5px; opacity: .68; max-width: 60ch; }
.foot-sites { margin-top: 16px; font-size: 13.5px; }
.foot-sites a { color: #fff; text-decoration: underline; }
.footer-copy { margin-top: 18px; font-size: 12.5px; opacity: .5; font-family: Consolas, "Courier New", monospace; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .navbar-inner a { padding: 9px 9px; font-size: 12.5px; }
  .nav-idx { display: none; }
  .hero-grid { padding: 34px 22px 30px; }
  .folder-body { padding: 20px 22px 32px; }
}

/* 文章内容板块（详情页）：标题/时间 + 正文 + 侧栏推荐列表 */
.section-article {
  padding: 64px 0;
}

.article-head {
  text-align: center;
  margin-bottom: 44px;
}

.article-title {
  font-size: 28px;
  font-weight: 800;
  color: inherit;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.article-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.article-time {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.65;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.article-clamp {
  min-width: 0;
}

.article-clamp.is-clamped {
  max-height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 90px), transparent);
}

.article-clamp-btn {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  margin-top: 4px;
  padding: 9px 34px;
  font-size: 14px;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 20px;
  cursor: pointer;
}

.article-clamp-btn:hover {
  color: #fff;
  background: var(--primary);
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.88;
  text-align: justify;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 0;
}

.article-side {
  grid-row: 3;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.article-list-card {
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 20px 22px;
  min-width: 0;
  overflow: hidden;
}

.article-list-title {
  font-size: 17px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.article-list li {
  list-style: none;
  padding: 7px 0;
  border-bottom: 1px dashed var(--ink);
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  display: block;
  font-size: 14px;
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-list a:hover {
  color: var(--primary);
  opacity: 1;
}

/* 关于我们双列：文字左 + 名片卡右 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 34%, 400px);
  gap: 36px;
  align-items: start;
}

.about-grid .bizcard {
  margin: 0;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .bizcard {
    margin: 24px auto 0;
  }
}

/* ---------- logo 牌匾字标（圆角矩形色块） ---------- */
.logo-word { position: relative; display: inline-block; vertical-align: middle; white-space: nowrap; line-height: 1.2; padding: .26em .72em; background: linear-gradient(115deg, var(--primary-dark), var(--primary) 55%, var(--primary-dark)); color: #fff; -webkit-text-fill-color: #fff; border-radius: 0; box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 40%, transparent); overflow: hidden; }
.logo-word-in { display: inline-block; }
.logo-word::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-160%); animation: logoShine 2.4s ease-in-out infinite; }
@keyframes logoShine { 0% { transform: translateX(-160%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .logo-word::after { animation: none; } }
