/*
Theme Name: 枣庄鲁泰环保设备厂 (Lutai Retro Works)
Theme URI: https://example.com/
Author: 齐师傅
Author URI: https://example.com/
Description: 复古国营老厂风企业主题——米黄纸底、正红厂庆横幅、老宋体标题、奖状双线框与「检验合格」红章,整体如1990年代产品手册的现代化重排。为虚构演示企业「枣庄鲁泰环保设备厂」定制,内置产品目录(CPT)、用户来信、厂里动态等栏目。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lutai-retro
Tags: business, custom-menu, custom-logo, two-columns, right-sidebar
*/

/* ============================================================
   0. 配色与字号总账(CSS 自定义属性)
   ============================================================ */
:root {
  --paper: #f5edd8;          /* 米黄纸底 */
  --paper-deep: #ede0c0;     /* 旧纸加深 */
  --paper-card: #faf4e3;     /* 卡片纸面 */
  --red: #c8102e;            /* 正红 */
  --red-deep: #9c0c24;       /* 印泥红 */
  --blue: #1a3a6b;           /* 深蓝 */
  --blue-soft: #2c5291;
  --ink: #2b2417;            /* 墨色 */
  --ink-soft: #5c5138;       /* 淡墨 */
  --rule: #b9a878;           /* 表格线/旧纸线 */
  --font-song: "Songti SC", "STSong", SimSun, "Noto Serif CJK SC", "Source Han Serif SC", serif;   /* 老宋体:标题 */
  --font-hei: "Heiti SC", SimHei, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; /* 黑体:正文 */
  --shadow-card: 2px 3px 0 rgba(43, 36, 23, 0.14);
  --w: 1104px;
}

/* ============================================================
   1. 基础排版(手册开本)
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  /* 旧纸暗纹:细横线如信笺 */
  background-image: repeating-linear-gradient(
      180deg,
      rgba(185, 168, 120, 0.10) 0,
      rgba(185, 168, 120, 0.10) 1px,
      transparent 1px,
      transparent 34px
    );
  color: var(--ink);
  font-family: var(--font-hei);
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-song);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

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

.container { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute;
}

::selection { background: var(--red); color: #fff; }

/* ============================================================
   2. 通用小零件:横幅、星线、章、按钮、奖状框
   ============================================================ */

/* —— 红色厂庆横幅条(两端燕尾) —— */
.banner-ribbon {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-song);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  padding: 0.42em 2.4em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%, 16px 50%);
  box-shadow: 0 2px 0 rgba(43, 36, 23, 0.18);
}
.banner-ribbon--wide {
  display: block;
  text-align: center;
  font-size: 1.15rem;
  padding: 0.55em 2.6em;
}

/* —— ★─────★ 星线分隔 —— */
.star-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 0.85rem;
  line-height: 1;
  margin: 10px auto 0;
  max-width: 340px;
}
.star-line::before { content: "★"; }
.star-line::after { content: "★"; }
.star-line i {
  flex: 1;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  height: 3px;
}
.star-line--wide { max-width: 560px; }

/* —— 章节标题(手册体例:一、二、三) —— */
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head .sec-no {
  display: inline-block;
  font-family: var(--font-song);
  color: #fff;
  background: var(--blue);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  padding: 0.15em 0.9em;
  margin-bottom: 10px;
}
.sec-head h2 {
  font-size: 1.75rem;
  letter-spacing: 0.12em;
}
.sec-note { color: var(--ink-soft); font-size: 0.92rem; margin-top: 8px; }

/* —— 按钮:老公章红 / 蓝框 —— */
.btn {
  display: inline-block;
  font-family: var(--font-song);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  padding: 0.62em 1.7em;
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(43, 36, 23, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(43, 36, 23, 0.25);
}
.btn--ghost {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn--ghost:hover { color: var(--blue); }

/* —— 奖状/证书双线框 + 四角花饰 —— */
.cert-frame {
  position: relative;
  background: var(--paper-card);
  border: 3px solid var(--blue);
  padding: 34px 30px 28px;
  box-shadow: var(--shadow-card);
}
.cert-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--blue);
  pointer-events: none;
}
.cert-frame--red { border-color: var(--red); }
.cert-frame--red::before { border-color: var(--red); }
.cert-corners { pointer-events: none; }
.cert-corners i {
  position: absolute;
  font-style: normal;
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
  z-index: 1;
}
.cert-corners i:nth-child(1) { top: 10px; left: 12px; }
.cert-corners i:nth-child(2) { top: 10px; right: 12px; }
.cert-corners i:nth-child(3) { bottom: 10px; left: 12px; }
.cert-corners i:nth-child(4) { bottom: 10px; right: 12px; }

/* —— 老式全边框表格 —— */
.lt-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-card);
  font-size: 0.95rem;
}
.lt-table caption {
  font-family: var(--font-song);
  font-weight: 700;
  padding: 8px 4px;
  letter-spacing: 0.1em;
  color: var(--blue);
  caption-side: top;
}
.lt-table th, .lt-table td {
  border: 1px solid var(--ink-soft);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.lt-table thead th {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-song);
  letter-spacing: 0.08em;
  text-align: center;
}
.lt-table tbody th {
  background: var(--paper-deep);
  font-family: var(--font-song);
  white-space: nowrap;
}
.table-scroll { overflow-x: auto; }

/* —— 红方章(检验合格等 SVG 容器) —— */
.seal {
  transform: rotate(-8deg);
  filter: drop-shadow(1px 1px 0 rgba(43, 36, 23, 0.2));
}
html.js .seal--anim { opacity: 0; transform: rotate(-8deg) scale(1.6); }
html.js .seal--anim.stamped {
  opacity: 1;
  transform: rotate(-8deg) scale(1);
  transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1), opacity 0.2s ease;
}

/* ============================================================
   3. 页眉:训示条、报头、目录导航
   ============================================================ */
.site-motto {
  background: var(--red);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-align: center;
  padding: 6px 12px;
}
.site-motto b { font-weight: 400; opacity: 0.85; }

.site-header {
  background: var(--paper);
  border-bottom: 4px double var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 3px 10px rgba(43, 36, 23, 0.18); }

.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0 12px;
}
.masthead .site-badge { flex: 0 0 auto; width: 74px; }
.masthead .site-badge svg { width: 100%; height: auto; }

.site-branding { flex: 1 1 auto; min-width: 0; }
.site-title {
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--red); text-decoration: none; }
.site-desc {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.site-desc .en {
  font-family: var(--font-song);
  color: var(--blue);
  margin-left: 8px;
}
.custom-logo-link img { max-height: 74px; width: auto; }

.masthead-contact {
  flex: 0 0 auto;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.6;
}
.masthead-contact .tel {
  font-family: var(--font-song);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--red);
  letter-spacing: 0.04em;
}
.masthead-contact .tip { color: var(--ink-soft); }

/* —— 导航:双细线夹一行目录 —— */
.site-nav {
  border-top: 1px solid var(--ink);
  position: relative;
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.site-nav li { position: relative; }
.site-nav li + li::before {
  content: "·";
  color: var(--rule);
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
}
.site-nav a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-song);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--red);
  text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--red);
}
.site-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  min-width: 180px;
  z-index: 60;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu li + li::before { content: none; }
.site-nav .sub-menu a { padding: 8px 14px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  padding: 7px 10px;
  cursor: pointer;
  margin: 8px 0;
}
.nav-toggle .bars { display: block; width: 22px; }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  height: 3px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
body.nav-open .nav-toggle .bars { transform: rotate(45deg); }
body.nav-open .nav-toggle .bars::before { transform: rotate(-90deg) translateX(-7px); }
body.nav-open .nav-toggle .bars::after { opacity: 0; }

/* ============================================================
   4. 首页板块
   ============================================================ */
.front-section { padding: 64px 0; }
.front-section--tint {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* —— 第一版:报头大样(hero) —— */
.hero { padding: 46px 0 58px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: center;
}
.hero-ribbon-row { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.hero h1 .quo { color: var(--red); }
.hero .hero-sub {
  font-family: var(--font-song);
  color: var(--blue);
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.hero p.lead { max-width: 34em; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-facts {
  display: flex;
  border: 1px solid var(--ink-soft);
  background: var(--paper-card);
  max-width: 480px;
}
.hero-facts .fact {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
}
.hero-facts .fact + .fact { border-left: 1px solid var(--ink-soft); }
.hero-facts b {
  display: block;
  font-family: var(--font-song);
  font-size: 1.35rem;
  color: var(--red);
  line-height: 1.3;
}
.hero-facts span { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.08em; }

.hero-figure { position: relative; text-align: center; }
.hero-figure .tower-plate {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 18px 14px 10px;
  display: inline-block;
  position: relative;
}
.hero-figure .tower-plate svg.tower { width: min(300px, 72vw); height: auto; margin: 0 auto; }
.hero-figure figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  padding: 8px 0 4px;
  border-top: 1px dashed var(--rule);
  margin-top: 8px;
}
.hero-figure .seal {
  position: absolute;
  right: -16px;
  bottom: 34px;
  width: 96px;
}
.hero-figure .seal svg { width: 100%; height: auto; }

/* —— 厂况简介 + 荣誉墙 —— */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}
.intro-copy p { margin-bottom: 1em; text-indent: 2em; }
.intro-copy .sign {
  text-align: right;
  font-family: var(--font-song);
  color: var(--ink-soft);
  text-indent: 0;
}
.intro-figures {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.intro-figures .fig {
  flex: 1;
  border: 1px solid var(--ink-soft);
  background: var(--paper-card);
  text-align: center;
  padding: 12px 6px;
}
.intro-figures b { display: block; font-family: var(--font-song); font-size: 1.5rem; color: var(--blue); }
.intro-figures span { font-size: 0.8rem; color: var(--ink-soft); }

.honor-wall { display: grid; gap: 18px; }
.honor-card { text-align: center; padding: 26px 20px 20px; }
.honor-card .honor-year {
  font-family: var(--font-song);
  color: var(--red);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}
.honor-card h3 { font-size: 1.15rem; letter-spacing: 0.1em; margin: 6px 0 4px; }
.honor-card p { font-size: 0.85rem; color: var(--ink-soft); }
.honor-card .honor-dot {
  width: 26px; height: 26px;
  margin: 10px auto 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  line-height: 26px;
  font-family: var(--font-song);
}

/* —— 产品目录 —— */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.prod-card {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: 4px 6px 0 rgba(43, 36, 23, 0.16);
}
.prod-card .model-tag {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-family: var(--font-song);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 4px 14px;
  margin: -1px 0 0 -1px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.prod-card .prod-icon {
  padding: 20px 0 6px;
  display: flex;
  justify-content: center;
}
.prod-card .prod-icon svg { width: 88px; height: 88px; }
.prod-card .prod-thumb img { display: block; width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--rule); }
.prod-body { padding: 10px 20px 18px; flex: 1; display: flex; flex-direction: column; }
.prod-body h3 { font-size: 1.2rem; letter-spacing: 0.08em; margin-bottom: 6px; text-align: center; }
.prod-body h3 a { color: var(--ink); }
.prod-body p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.prod-body .prod-more {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-song);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}
.catalog-foot { text-align: center; margin-top: 30px; }

/* —— 老厂手艺(材质工艺) —— */
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: start;
}
.craft-copy p { margin-bottom: 1em; text-indent: 2em; }
.craft-promise { margin-top: 8px; text-align: center; }
.craft-promise .promise-title {
  font-family: var(--font-song);
  color: var(--red);
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  margin-bottom: 12px;
}
.craft-promise .promise-body {
  font-family: var(--font-song);
  font-size: 1.06rem;
  line-height: 2.1;
  max-width: 30em;
  margin: 0 auto;
}
.craft-promise .promise-body strong { color: var(--red); }
.craft-promise .promise-foot {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-family: var(--font-song);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.craft-promise .promise-foot .seal { width: 74px; flex: 0 0 auto; }
.craft-promise .promise-foot .seal svg { width: 100%; height: auto; }

.craft-steps { counter-reset: step; margin-top: 18px; }
.craft-steps li {
  list-style: none;
  position: relative;
  padding: 10px 12px 10px 52px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  margin-bottom: 10px;
  font-size: 0.94rem;
}
.craft-steps li::before {
  counter-increment: step;
  content: counter(step, cjk-ideographic);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-song);
  text-align: center;
  line-height: 30px;
  font-size: 0.9rem;
}
.craft-steps li b { font-family: var(--font-song); }

/* —— 工作原理流程(手册箭头行) —— */
.flow-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-song);
  font-size: 0.95rem;
}
.flow-row .step {
  border: 1px solid var(--blue);
  background: var(--paper-card);
  color: var(--blue);
  padding: 6px 14px;
  letter-spacing: 0.06em;
}
.flow-row .arr { color: var(--red); align-self: center; }
.flow-note { text-align: center; margin-top: 12px; color: var(--ink-soft); font-size: 0.9rem; }
.flow-note b { color: var(--red); font-family: var(--font-song); font-size: 1.05rem; }

/* —— 应用行业(全边框表) —— */
.industry-note { max-width: 44em; margin: 0 auto 22px; text-align: center; color: var(--ink-soft); }

/* —— 用户来信 —— */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.letter-card {
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 31px,
      rgba(26, 58, 107, 0.16) 31px,
      rgba(26, 58, 107, 0.16) 32px
    ),
    var(--paper-card);
  border: 1px solid var(--ink-soft);
  box-shadow: var(--shadow-card);
  padding: 24px 22px 18px;
  position: relative;
}
.letter-card::before {
  content: "来信摘录";
  position: absolute;
  top: -12px;
  right: 14px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-song);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  padding: 2px 10px;
  transform: rotate(2deg);
}
.letter-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.letter-card .letter-body { font-size: 0.93rem; line-height: 32px; }
.letter-card .letter-body p { text-indent: 2em; }
.letter-card .letter-from {
  margin-top: 14px;
  text-align: right;
  font-family: var(--font-song);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.letters-foot {
  text-align: center;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* —— 厂里动态 —— */
.news-list { display: grid; gap: 0; max-width: 860px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 8px;
  border-bottom: 1px dashed var(--rule);
}
.news-item:first-child { border-top: 1px dashed var(--rule); }
.news-date {
  flex: 0 0 auto;
  width: 68px;
  border: 1px solid var(--blue);
  background: var(--paper-card);
  text-align: center;
  font-family: var(--font-song);
}
.news-date .d {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
  padding-top: 4px;
}
.news-date .ym {
  display: block;
  font-size: 0.72rem;
  background: var(--blue);
  color: #fff;
  padding: 2px 0;
  letter-spacing: 0.06em;
}
.news-main { flex: 1; min-width: 0; }
.news-main h3 { font-size: 1.12rem; letter-spacing: 0.04em; }
.news-main h3 a { color: var(--ink); }
.news-main h3 a:hover { color: var(--red); }
.news-main p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; }
.news-foot { text-align: center; margin-top: 28px; }

/* —— 来厂路线 / 联系 CTA —— */
.visit-cta { text-align: center; }
.visit-cta .cert-frame { max-width: 780px; margin: 0 auto; }
.visit-cta h2 { font-size: 1.6rem; letter-spacing: 0.16em; margin-bottom: 12px; }
.visit-cta p.visit-lead { max-width: 36em; margin: 0 auto 18px; }
.visit-lines {
  max-width: 460px;
  margin: 0 auto 22px;
  text-align: left;
  font-size: 0.95rem;
}
.visit-lines li {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--rule);
}
.visit-lines li b {
  font-family: var(--font-song);
  color: var(--blue);
  flex: 0 0 5.5em;
  white-space: nowrap;
}

/* ============================================================
   5. 内页通用:面包屑条、正文、侧栏
   ============================================================ */
.page-hero {
  background: var(--blue);
  color: #fff;
  padding: 34px 0 30px;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  border-bottom: 1px solid rgba(245, 237, 216, 0.55);
}
.page-hero h1 { color: #fff; font-size: 1.9rem; letter-spacing: 0.14em; }
.page-hero .page-hero-note {
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(245, 237, 216, 0.85);
  letter-spacing: 0.08em;
}

.content-area { padding: 48px 0 64px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr);
  gap: 40px;
  align-items: start;
}

.entry {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 34px 36px;
}
.entry + .entry { margin-top: 26px; }
.entry-header { margin-bottom: 18px; }
.entry-title { font-size: 1.6rem; letter-spacing: 0.08em; }
.entry-title a { color: var(--ink); }
.entry-title a:hover { color: var(--red); }
.entry-meta {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.entry-meta .m::before { content: "▪ "; color: var(--red); }

.entry-content p { margin-bottom: 1em; }
.entry-content h2, .entry-content h3 { margin: 1.4em 0 0.6em; }
.entry-content ul, .entry-content ol { margin: 0 0 1em 2em; }
.entry-content blockquote {
  border-left: 4px solid var(--red);
  background: var(--paper-deep);
  padding: 12px 18px;
  margin-bottom: 1em;
  font-family: var(--font-song);
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.entry-content table th, .entry-content table td { border: 1px solid var(--ink-soft); padding: 8px 10px; }
.entry-content img { border: 1px solid var(--rule); }
.entry-thumb { margin: 0 0 20px; }
.entry-thumb img { display: block; width: 100%; border: 1px solid var(--ink-soft); }

.entry-footer { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 0.86rem; color: var(--ink-soft); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  font-size: 0.92rem;
}
.post-nav a { font-family: var(--font-song); }

.page-links {
  margin: 1.2em 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-family: var(--font-song);
  font-size: 0.92rem;
}
.page-links a, .page-links > span {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  border: 1px solid var(--ink-soft);
  background: var(--paper-card);
  margin: 0 3px;
  padding: 2px 6px;
}
.page-links > span:not(.screen-reader-text) { background: var(--red); border-color: var(--red); color: #fff; }

.pagination { margin-top: 34px; text-align: center; font-family: var(--font-song); }
.pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 38px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  text-decoration: none;
}

/* —— 侧栏:档案柜 —— */
.widget-area { display: grid; gap: 22px; }
.widget {
  background: var(--paper-card);
  border: 1px solid var(--ink-soft);
  padding: 20px 20px 16px;
}
.widget .widget-title,
.widget h2, .widget h3 {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--blue);
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 6px 0 6px 1.2em;
  border-bottom: 1px dotted var(--rule);
  position: relative;
  font-size: 0.92rem;
}
.widget ul li::before { content: "★"; color: var(--red); font-size: 0.7rem; position: absolute; left: 0; top: 10px; }
.widget ul li:last-child { border-bottom: 0; }
.widget p { font-size: 0.92rem; }

/* —— 搜索表单 —— */
.search-form {
  display: flex;
  gap: 0;
}
.search-form .search-field {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ink);
  background: #fffdf4;
  padding: 9px 12px;
  font-family: var(--font-hei);
  font-size: 0.95rem;
  color: var(--ink);
}
.search-form .search-submit {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-family: var(--font-song);
  letter-spacing: 0.14em;
  padding: 0 18px;
  cursor: pointer;
}
.search-form .search-submit:hover { background: var(--red-deep); }

/* ============================================================
   6. 产品模板
   ============================================================ */
.product-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 36px;
  align-items: start;
}
.product-figure {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  padding: 18px;
  text-align: center;
  position: relative;
}
.product-figure svg.tower { width: min(280px, 100%); height: auto; margin: 0 auto; }
.product-figure .seal { position: absolute; right: 6px; bottom: 6px; width: 84px; }
.product-figure .seal svg { width: 100%; height: auto; }
.product-params { margin-top: 30px; }
.params-note { font-size: 0.84rem; color: var(--ink-soft); margin-top: 8px; }

.inquiry-cta {
  margin-top: 34px;
  background: var(--red);
  color: #fff;
  padding: 26px 28px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  text-align: center;
}
.inquiry-cta h2 { color: #fff; font-size: 1.3rem; letter-spacing: 0.16em; margin-bottom: 8px; }
.inquiry-cta p { font-size: 0.95rem; margin-bottom: 14px; }
.inquiry-cta .btn {
  background: #fff;
  border-color: #fff;
  color: var(--red);
  box-shadow: none;
}
.inquiry-cta .tel-big {
  font-family: var(--font-song);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
  margin: 0 10px 12px;
}

/* ============================================================
   7. 404 与空状态
   ============================================================ */
.empty-plate {
  text-align: center;
  padding: 40px 20px;
}
.empty-plate .seal { width: 110px; margin: 0 auto 18px; }
.empty-plate .seal svg { width: 100%; height: auto; }
.empty-plate h2 { font-size: 1.4rem; letter-spacing: 0.14em; margin-bottom: 10px; }
.empty-plate p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 18px; }
.error-404 .empty-plate h1 { font-size: 2.2rem; letter-spacing: 0.2em; margin-bottom: 8px; }
.error-404 .search-form { max-width: 380px; margin: 0 auto 20px; }

/* ============================================================
   8. 页脚:老信笺
   ============================================================ */
.site-footer {
  margin-top: 0;
  background: var(--paper-deep);
  border-top: 4px double var(--red);
  padding: 46px 0 0;
}
.letterhead {
  background: var(--paper-card);
  border: 2px solid var(--red);
  position: relative;
  padding: 30px 34px 24px;
  box-shadow: var(--shadow-card);
}
.letterhead::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--red);
  pointer-events: none;
}
.letterhead-head {
  text-align: center;
  border-bottom: 1px solid var(--red);
  padding-bottom: 12px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.letterhead-head .lh-title {
  font-family: var(--font-song);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}
.letterhead-head .lh-sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  margin-top: 4px;
}
.letterhead-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}
.letterhead h3 {
  font-size: 0.98rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 10px;
}
.lh-lines { list-style: none; font-size: 0.9rem; }
.lh-lines li {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--rule);
}
.lh-lines li b {
  font-family: var(--font-song);
  color: var(--ink-soft);
  font-weight: 700;
  flex: 0 0 4.5em;
  white-space: nowrap;
}
.footer-menu ul { list-style: none; }
.footer-menu li { padding: 5px 0; border-bottom: 1px dotted var(--rule); font-size: 0.92rem; }
.footer-menu li::before { content: "→ "; color: var(--red); }
.footer-menu a { color: var(--ink); font-family: var(--font-song); }
.footer-menu a:hover { color: var(--red); }
.lh-note {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.lh-note strong { color: var(--red); }

.footer-bar {
  margin-top: 30px;
  background: var(--blue);
  color: rgba(245, 237, 216, 0.9);
  font-size: 0.82rem;
  padding: 14px 0;
}
.footer-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}
.footer-bar a { color: #fff; }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 2px solid var(--red);
  background: var(--paper-card);
  color: var(--red);
  font-family: var(--font-song);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--red); color: #fff; }

/* ============================================================
   9. 入场动画(仅 html.js,尊重 reduced-motion)
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .seal--anim { opacity: 1; transform: rotate(0) scale(1); transition: none; }
  html.js .seal--anim { transform: rotate(-8deg); }
  .prod-card, .btn, .site-header { transition: none; }
}

/* ============================================================
   10. 响应式(≤900 / ≤768)
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid,
  .intro-grid,
  .craft-grid,
  .product-single-grid,
  .content-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure .seal { right: 6px; }
  .letterhead-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .front-section { padding: 46px 0; }
  .masthead { flex-wrap: wrap; gap: 12px; padding-top: 12px; }
  .masthead-contact { display: none; }
  .site-title { font-size: 1.3rem; }

  .nav-toggle { display: block; }
  .site-nav .nav-inner { flex-direction: column; align-items: stretch; }
  .site-nav ul {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--rule);
    padding-bottom: 8px;
  }
  body.nav-open .site-nav ul#primary-menu { display: flex; }
  .site-nav li + li::before { content: none; }
  .site-nav a { padding: 11px 6px; border-bottom: 1px dotted var(--rule); }
  .site-nav .sub-menu {
    display: block;
    position: static;
    border: 0;
    background: transparent;
    padding-left: 1.4em;
  }

  .banner-ribbon--wide { font-size: 0.95rem; letter-spacing: 0.14em; padding: 0.5em 1.6em; }
  .hero { padding: 30px 0 40px; }
  .hero-facts { flex-direction: column; }
  .hero-facts .fact + .fact { border-left: 0; border-top: 1px solid var(--ink-soft); }
  .entry { padding: 24px 18px; }
  .letterhead { padding: 22px 16px 18px; }
  .letterhead-grid { grid-template-columns: 1fr; }
  .flow-row { font-size: 0.86rem; }
  .sec-head h2 { font-size: 1.45rem; }
}
