/*
Theme Name: 砚实环保 Yanshi Labnote
Theme URI: https://example.com/themes/shiyan-labnote
Author: 苏白页
Author URI: https://example.com/subaiye
Description: 为苏州砚实环保科技有限公司定制的中文企业主题,核心识别是「方格实验记录本 + 玻璃器皿线稿」:暖米纸方格底、左侧红色装订边与打孔、墨青钢笔标题、楷体手写字段、琥珀记号笔高亮、实验数据表与红笔批注。设备记录(product)做成记录本内页,案例做成实验记录页,工艺讲净化反应式。演示用虚构主题,零外链,纯 CSS 与内联 SVG。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: shiyan-labnote
Tags: business, custom-menu, custom-logo, two-columns, right-sidebar, translation-ready
*/

/* ==================================================
   0. 变量:米纸 / 方格 / 墨青 / 琥珀 / 朱红 / 炭墨
================================================== */
:root {
  --paper: #f4f0e3;          /* 暖米纸底 */
  --paper-2: #efe8d5;        /* 稍深米色条带 */
  --card: #fbf8f0;           /* 记录本内页(米白) */
  --card-2: #f4efe1;         /* 斑马纹隔行 */
  --grid: rgba(120, 110, 90, .13);   /* 细方格线 */
  --grid-bold: rgba(120, 110, 90, .22); /* 每5格粗线 */

  --ink: #14504a;            /* 科研墨青:标题 / 表头 / 钢笔 */
  --ink-deep: #0e3a35;       /* 墨青加深 */
  --ink-soft: #3a534d;       /* 墨青次级(仅米底之上) */

  --amber: #d98a2b;          /* 琥珀:记号笔高亮 / 液面 */
  --amber-deep: #a5620f;     /* 琥珀可读文字色 */
  --vermilion: #b23b2e;      /* 朱红:装订边线 / 关键批注 */
  --vermilion-deep: #8c2b20;

  --charcoal: #2a2823;       /* 炭墨正文 */
  --meta: #5c564a;           /* 元信息灰墨 */

  --line: rgba(42, 40, 35, .16);   /* 发丝线 */
  --line-2: rgba(42, 40, 35, .3);  /* 表格 / 边框 */

  --hand: "楷体", "KaiTi", "STKaiti", "华文楷体", "楷体_GB2312", "AR PL UKai CN", cursive;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
  --figure: "Courier New", "Courier", "STSong", "SimSun", serif; /* 等宽衬线数字:记录感 */

  --radius: 3px;
  --wrap: 1140px;
  --rail: clamp(20px, 4.4vw, 52px); /* 左侧装订边宽度 */
}

/* ==================================================
   1. 基础
================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-left: var(--rail);           /* 让出左侧装订边 */
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  color: var(--charcoal);
  background-color: var(--paper);
  /* 方格纸纹:两向细格 + 每5格一道粗格 */
  background-image:
    repeating-linear-gradient(to right, transparent 0 21px, var(--grid) 21px 22px),
    repeating-linear-gradient(to bottom, transparent 0 21px, var(--grid) 21px 22px),
    repeating-linear-gradient(to right, transparent 0 109px, var(--grid-bold) 109px 110px),
    repeating-linear-gradient(to bottom, transparent 0 109px, var(--grid-bold) 109px 110px);
  word-break: break-word;
  overflow-x: hidden;
}

/* 左侧「实验本红边」+ 装订打孔:固定于视口左缘 */
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--rail);
  z-index: 40;
  pointer-events: none;
  background-color: rgba(228, 220, 200, .55);
  background-image:
    radial-gradient(circle 3.4px at 50% 15px,
      rgba(42, 40, 35, .26) 0 3.4px,
      rgba(42, 40, 35, .08) 3.4px 4.8px,
      transparent 5px);
  background-size: 100% 44px;
  background-repeat: repeat-y;
  border-right: 1.6px solid var(--vermilion);
  box-shadow: inset -4px 0 0 -3px rgba(178, 59, 46, .28);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hand);
  font-weight: 700;
  line-height: 1.36;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--vermilion); }
hr { border: 0; border-top: 1px dashed var(--line-2); margin: 2em 0; }
strong, b { color: var(--ink-deep); }
code, kbd { font-family: var(--figure); background: var(--paper-2); padding: .05em .35em; border-radius: 2px; }

::selection { background: var(--amber); color: #2a2016; }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 26px; padding-right: 26px; }

/* 数字:等宽衬线记录体 */
.figure, .stat-num, .dc-num, .rec-v-num, .spec-table td, .data-table td {
  font-variant-numeric: tabular-nums;
}

/* 无障碍 */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden; position: absolute !important;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: .6em 1.2em; border-radius: var(--radius);
}
.skip-link:focus {
  left: calc(var(--rail) + 10px); top: 10px;
  clip: auto; clip-path: none; height: auto; width: auto;
}

/* WordPress 常规类 */
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-family: var(--hand); font-size: .88rem; color: var(--meta); text-align: center; padding: .4em 0; }
.sticky .entry-title::after { content: "✦"; margin-left: .4em; color: var(--amber-deep); font-size: .8em; }
.bypostauthor { border-left: 3px solid var(--amber); }
.post-password-form input[type="submit"] { cursor: pointer; }

/* ==================================================
   2. 通用部件:记录本内页卡 / 按钮 / 手写标签
================================================== */

/* 手写字段标签 + 填空下划线 */
.field-label {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.hl { /* 记号笔高亮 */
  background: linear-gradient(rgba(217, 138, 43, .42), rgba(217, 138, 43, .42)) 0 82% / 100% .52em no-repeat;
  padding: 0 .06em;
}
.underline-fill {
  border-bottom: 1.5px dotted var(--ink-soft);
  padding-bottom: 1px;
}

/* 手写批注(红笔) */
.annot {
  font-family: var(--hand);
  color: var(--vermilion);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.annot svg { flex: none; }

/* 便签(贴在本子上) */
.sticky-note {
  position: relative;
  background: #f6ecae;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(0, 0, 0, .02));
  color: #3a3320;
  padding: 20px 22px 18px;
  border-radius: 2px;
  box-shadow: 2px 4px 9px rgba(42, 40, 35, .16);
  transform: rotate(-1.2deg);
}
.sticky-note--r { transform: rotate(1.1deg); }
.sticky-note .clip {
  position: absolute;
  top: -13px; left: 22px;
}
.sticky-note h3, .sticky-note .field-label { color: var(--ink-deep); }
.sticky-note p:last-child { margin-bottom: 0; }

/* 按钮 */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--ink-deep);
  border-radius: var(--radius);
  padding: .62em 1.4em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
  box-shadow: 2px 2px 0 rgba(14, 58, 53, .28);
}
.btn:hover { color: var(--btn-fg); background: var(--ink-deep); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(14, 58, 53, .32); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(14, 58, 53, .28); }
.btn--amber { --btn-bg: var(--amber); --btn-fg: #2a1c07; border-color: var(--amber-deep); box-shadow: 2px 2px 0 rgba(165, 98, 15, .35); }
.btn--amber:hover { background: var(--amber-deep); color: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { --btn-fg: var(--paper); background: var(--ink); }

/* kicker:栏目手写小标 */
.kicker {
  font-family: var(--hand);
  font-weight: 700;
  font-size: .96rem;
  color: var(--vermilion);
  letter-spacing: .06em;
  margin: 0 0 .5em;
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.kicker svg { flex: none; }

.sec-title {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: var(--ink);
  margin: 0 0 .1em;
}
.sec-lead { color: var(--meta); max-width: 60ch; margin: 0 0 1.6em; }

/* 章节标题:手写 + 琥珀下划波线感 */
.head-hand {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.head-hand::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(rgba(217, 138, 43, .5), rgba(217, 138, 43, .5)) no-repeat;
  border-radius: 3px;
}

/* ==================================================
   3. 页头
================================================== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 240, 227, .93);
  backdrop-filter: saturate(1.1) blur(2px);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 3px 0 -1px var(--amber);
}
.site-header.is-scrolled { box-shadow: 0 3px 0 -1px var(--amber), 0 6px 16px rgba(42, 40, 35, .12); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 12px; padding-bottom: 12px;
}
.site-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { flex: none; }
.custom-logo { max-height: 46px; width: auto; border-radius: 2px; }
.brand-text { text-decoration: none; line-height: 1.15; display: block; }
.brand-name {
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--ink);
  letter-spacing: .02em;
}
.brand-sub {
  display: block;
  font-family: var(--figure);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--meta);
  text-transform: uppercase;
}

/* 导航 */
.site-nav { display: flex; align-items: center; }
.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 4px; }
.primary-menu li { position: relative; }
.primary-menu a {
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--ink);
  text-decoration: none;
  padding: .5em .8em;
  border-radius: var(--radius);
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--vermilion);
  background: linear-gradient(rgba(217, 138, 43, .28), rgba(217, 138, 43, .28)) 0 100% / 100% .5em no-repeat;
}
.primary-menu .sub-menu {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; left: 0; top: 100%; min-width: 200px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 5px 12px rgba(42, 40, 35, .16);
  display: none; z-index: 5;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { font-size: .95rem; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 40px; padding: 8px 9px;
  background: var(--card); border: 1.5px solid var(--ink);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle .bar { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================================================
   4. 页面通用骨架
================================================== */
.site-main { padding-bottom: 56px; }
.page-header {
  padding: 40px 0 22px;
  background: var(--paper-2);
  border-bottom: 1px dashed var(--line-2);
}
.page-title {
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  color: var(--ink);
  margin: 0 0 .2em;
}
.archive-desc { color: var(--meta); max-width: 70ch; }
.archive-desc p:last-child { margin-bottom: 0; }

.layout-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding-top: 34px;
}
.layout-one { padding-top: 34px; }

/* 列表卡片 */
.entries { display: grid; gap: 20px; }
.entry-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  box-shadow: 2px 3px 0 -1px rgba(42, 40, 35, .06);
}
.entry-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-family: var(--figure);
  font-size: .82rem; color: var(--meta);
  margin-bottom: .5em;
}
.entry-meta a { color: var(--meta); }
.entry-title { font-size: 1.32rem; margin: 0 0 .35em; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--vermilion); }
.entry-ex { color: var(--charcoal); }
.entry-ex p:last-child { margin-bottom: .4em; }
.more-link {
  font-family: var(--hand); font-weight: 700;
  color: var(--vermilion); text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* 分页 */
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  font-family: var(--figure);
  display: inline-block; padding: .45em .85em;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; background: var(--card);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink-deep); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--ink); }

/* 空态:未写入的记录 */
.empty-note {
  background: var(--card);
  border: 1px dashed var(--line-2);
  border-left: 3px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
}
.empty-note .glass-ico { margin: 0 auto 12px; display: block; }
.empty-title { font-size: 1.5rem; margin: 0 0 .3em; }
.empty-desc { color: var(--meta); max-width: 52ch; margin: 0 auto 1.2em; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 1.4em; }
.demo-badge {
  font-family: var(--figure); font-size: .7rem; letter-spacing: .1em;
  color: var(--amber-deep); border: 1px solid var(--amber);
  padding: .1em .5em; border-radius: 2px; background: rgba(217, 138, 43, .12);
}

/* ==================================================
   5. 侧栏
================================================== */
.widget-area { display: grid; gap: 22px; align-content: start; }
.widget {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.widget-title {
  font-size: 1.12rem; color: var(--ink);
  margin: 0 0 .7em; padding-bottom: .3em;
  border-bottom: 1px dashed var(--line-2);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .32em 0; border-bottom: 1px dotted var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); text-decoration: none; }
.widget a:hover { color: var(--vermilion); text-decoration: underline; }
.stone-list li::before { content: "› "; color: var(--amber-deep); font-family: var(--figure); }

/* 搜索表单 */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-field-wrap { flex: 1 1 160px; }
.search-field {
  width: 100%;
  font-family: var(--sans); font-size: .95rem;
  padding: .58em .8em;
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper); color: var(--charcoal);
}
.search-field:focus { outline: none; border-color: var(--ink); }
.search-submit { flex: none; }

/* ==================================================
   6. 首页
================================================== */
.front section { position: relative; }

/* 6.1 Hero:实验装置图 */
.hero { padding: 44px 0 40px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
}
.slogan-chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--hand); font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 40px;
  padding: .35em 1em;
  margin: 0 0 18px;
  box-shadow: 2px 2px 0 rgba(20, 80, 74, .18);
}
.hero-title {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.18; color: var(--ink);
  margin: 0 0 .35em;
}
.hero-title .line { display: block; }
.hero-title .mark { color: var(--vermilion); }
.hero-lede { font-size: 1.06rem; color: var(--charcoal); max-width: 46ch; margin: 0 0 1.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.2em; }
.hero-tags {
  font-family: var(--figure); font-size: .82rem;
  color: var(--meta); letter-spacing: .02em; margin: 0;
}
.hero-figure { margin: 0; position: relative; }
.hero-figure svg { width: 100%; height: auto; display: block; }
.hero-cap {
  font-family: var(--hand); color: var(--meta);
  font-size: .9rem; text-align: center; margin: 8px 0 0;
}

/* 6.2 出厂数据留档条 */
.sec-stats { padding: 6px 0 40px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
}
.stat-num {
  font-family: var(--figure);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700; color: var(--ink); line-height: 1;
}
.stat-unit { font-family: var(--hand); font-size: 1rem; color: var(--amber-deep); margin-left: 2px; }
.stat-label { font-family: var(--hand); color: var(--meta); margin-top: 6px; display: block; }

/* 6.3 净化原理:反应式 + 实验步骤 */
.sec-principle { padding: 46px 0; background: var(--paper-2); border-block: 1px dashed var(--line-2); }
.reaction {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 30px;
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--grid) 33px 34px);
}
.eq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.equation {
  font-family: var(--hand);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--ink-deep);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line-2);
}
.equation .sub { font-size: .7em; vertical-align: sub; }
.equation .arrow { color: var(--vermilion); font-weight: 700; padding: 0 .1em; }
.equation .prod { background: linear-gradient(rgba(217, 138, 43, .38), rgba(217, 138, 43, .38)) 0 78% / 100% .55em no-repeat; }
.eq-note { font-family: var(--hand); color: var(--meta); margin: 14px 0 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 6px; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.step-num {
  font-family: var(--figure); font-weight: 700;
  font-size: .82rem; letter-spacing: .06em;
  color: var(--paper); background: var(--ink);
  padding: .2em .5em; border-radius: 2px;
}
.step h3 { font-size: 1.1rem; margin: 0; }
.step p { color: var(--meta); margin: 0; font-size: .95rem; }
.step .bottle { position: absolute; top: 14px; right: 14px; opacity: .9; }

/* 6.4 设备记录卡 */
.sec-devices { padding: 46px 0; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.model-card {
  position: relative;
  background: var(--card);
  background-image:
    repeating-linear-gradient(to right, transparent 0 21px, var(--grid) 21px 22px),
    repeating-linear-gradient(to bottom, transparent 0 21px, var(--grid) 21px 22px);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 22px 22px 20px 26px;
  box-shadow: 2px 3px 0 -1px rgba(42, 40, 35, .07);
}
.model-fig { display: flex; justify-content: center; margin-bottom: 8px; }
.model-fig svg { height: 116px; width: auto; }
.model-name { font-family: var(--figure); font-size: .8rem; letter-spacing: .1em; color: var(--amber-deep); }
.model-card h3 { font-size: 1.4rem; margin: .1em 0 .3em; }
.model-card h3 a { color: var(--ink); text-decoration: none; }
.model-card h3 a:hover { color: var(--vermilion); }
.model-card .desc { color: var(--meta); font-size: .95rem; }
.spec-chips { list-style: none; margin: .5em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chips li {
  font-family: var(--figure); font-size: .74rem;
  color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 2px;
  padding: .18em .5em;
}
.card-link { display: inline-block; margin-top: 14px; font-family: var(--hand); font-weight: 700; color: var(--vermilion); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* 6.5 检测数据卡(pH/浓度/效率 + 折线草图) */
.sec-data { padding: 46px 0; background: var(--paper-2); border-block: 1px dashed var(--line-2); }
.data-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.data-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.dc-k { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.dc-num {
  font-family: var(--figure); font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem); color: var(--ink); line-height: 1;
  margin: .1em 0;
}
.dc-unit { font-family: var(--hand); font-size: 1rem; color: var(--amber-deep); }
.dc-spark { margin-top: 10px; }
.dc-spark svg { width: 100%; height: 54px; display: block; }
.dc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.dc-foot .cap { font-family: var(--figure); font-size: .74rem; color: var(--meta); }

/* 6.6 项目实验:实验记录页 */
.sec-cases { padding: 46px 0; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.record-page {
  position: relative;
  background: var(--card);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--grid) 33px 34px);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--vermilion);
  border-radius: var(--radius);
  padding: 24px 24px 20px 30px;
  box-shadow: 2px 4px 0 -1px rgba(42, 40, 35, .07);
}
.record-page::before { /* 装订孔 */
  content: "";
  position: absolute; left: 11px; top: 18px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgba(42, 40, 35, .3), 0 26px 0 var(--paper);
}
.rec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.rec-no { font-family: var(--figure); font-size: .8rem; color: var(--amber-deep); letter-spacing: .06em; }
.rec-title { font-family: var(--hand); font-size: 1.2rem; color: var(--ink); margin: 0; }
.rec-fields { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 9px; }
.rec-field { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; align-items: baseline; }
.rec-k { font-family: var(--hand); font-weight: 700; color: var(--ink); }
.rec-v { font-family: var(--sans); color: var(--charcoal); border-bottom: 1px dotted var(--line-2); }
.rec-v-num { font-family: var(--figure); }
.rec-concl {
  font-family: var(--hand); color: var(--vermilion); font-weight: 700;
  display: inline-flex; align-items: center; gap: .35em;
  background: linear-gradient(rgba(217, 138, 43, .32), rgba(217, 138, 43, .32)) 0 90% / 100% .5em no-repeat;
}

/* 6.7 关于 + 金浩丰便签 */
.sec-about { padding: 46px 0; background: var(--paper-2); border-block: 1px dashed var(--line-2); }
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 34px; align-items: start; }
.about-copy p { color: var(--charcoal); }
.about-notes { display: grid; gap: 26px; }

/* 6.8 预约检测 CTA */
.sec-contact { padding: 50px 0; }
.contact-wrap {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
}
.contact-wrap::before { /* 方格纹叠在墨青上 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, transparent 0 21px, rgba(244, 240, 227, .06) 21px 22px),
    repeating-linear-gradient(to bottom, transparent 0 21px, rgba(244, 240, 227, .06) 21px 22px);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.contact-wrap h2 { color: var(--paper); font-size: clamp(1.6rem, 4vw, 2.3rem); }
.contact-wrap .kicker { color: var(--amber); }
.contact-wrap p { color: rgba(244, 240, 227, .88); }
.contact-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-fields li { display: flex; gap: 10px; align-items: baseline; font-family: var(--figure); color: var(--paper); }
.contact-fields .ck { font-family: var(--hand); color: var(--amber); flex: none; min-width: 4em; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.contact-wrap .btn--ghost { --btn-fg: var(--paper); border-color: var(--paper); }
.contact-wrap .btn--ghost:hover { --btn-fg: var(--ink); background: var(--paper); }

/* ==================================================
   7. 单品(设备记录)
================================================== */
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px; padding-top: 34px;
}
.product-main .entry-content { margin-top: 18px; }
.product-thumb { margin: 0 0 18px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.product-fig-fallback {
  display: flex; justify-content: center; align-items: center;
  background: var(--card); border: 1px solid var(--line-2);
  border-left: 3px solid var(--vermilion); border-radius: var(--radius);
  padding: 26px; margin-bottom: 18px;
}
.product-fig-fallback svg { height: 200px; width: auto; }
.aside-panel {
  position: sticky; top: 92px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.data-table, .spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: .92rem; }
.data-table caption, .spec-table caption {
  font-family: var(--hand); font-weight: 700; color: var(--ink);
  text-align: left; padding-bottom: 8px;
}
.data-table thead th, .spec-table thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--hand); text-align: left;
  padding: .5em .7em; border: 1px solid var(--ink-deep);
}
.spec-table th[scope="row"] {
  font-family: var(--hand); color: var(--ink); text-align: left;
  background: var(--paper-2); width: 40%;
  padding: .5em .7em; border: 1px solid var(--line-2); font-weight: 700;
}
.data-table td, .spec-table td {
  padding: .5em .7em; border: 1px solid var(--line-2);
  font-family: var(--figure); color: var(--charcoal);
}
.data-table tbody tr:nth-child(even),
.spec-table tbody tr:nth-child(even) td,
.spec-table tbody tr:nth-child(even) th { background: var(--card-2); }
.data-table .u { color: var(--amber-deep); font-family: var(--hand); }
.spec-note { font-family: var(--hand); color: var(--meta); font-size: .9rem; margin: 10px 0 0; }
.aside-cta { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; }
.aside-tel { font-family: var(--figure); font-size: 1.15rem; color: var(--ink); font-weight: 700; }
.supplier-note { font-family: var(--hand); font-size: .86rem; color: var(--meta); margin: 0; }

.related { margin-top: 30px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related a { color: var(--ink); text-decoration: none; font-family: var(--hand); font-weight: 700; }
.related a::before { content: "› "; color: var(--amber-deep); }
.related a:hover { color: var(--vermilion); }

/* 文章正文排版 */
.entry-content h2 { font-size: 1.5rem; margin: 1.4em 0 .5em; }
.entry-content h3 { font-size: 1.24rem; margin: 1.2em 0 .4em; }
.entry-content blockquote {
  margin: 1.2em 0; padding: .6em 1.2em;
  border-left: 3px solid var(--amber);
  background: var(--paper-2); color: var(--ink-deep);
  font-family: var(--hand);
}
.entry-content code { font-size: .9em; }
.entry-content img { border-radius: var(--radius); }
.post-tags { margin-top: 20px; }
.post-tags a {
  font-family: var(--figure); font-size: .8rem;
  color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: .12em .55em; text-decoration: none; margin-right: 5px;
}
.post-nav { margin-top: 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-nav a { text-decoration: none; color: var(--ink); }
.post-nav .nav-label { display: block; font-family: var(--figure); font-size: .72rem; color: var(--amber-deep); letter-spacing: .1em; }
.post-nav .nav-title { font-family: var(--hand); font-weight: 700; }
.page-links { margin: 1.4em 0; font-family: var(--hand); }
.page-links a, .page-links > span { padding: .15em .55em; border: 1px solid var(--line-2); border-radius: 2px; margin: 0 3px; text-decoration: none; }

/* ==================================================
   8. 404
================================================== */
.sec-404 { padding: 56px 0; }
.error-code {
  font-family: var(--figure); font-weight: 700;
  letter-spacing: .16em; color: var(--vermilion);
  display: block; margin-bottom: 6px;
}

/* ==================================================
   9. 页脚
================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(244, 240, 227, .9);
  border-top: 3px solid var(--amber);
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 34px;
  padding-top: 44px; padding-bottom: 30px;
}
.footer-title { color: var(--paper); font-size: 1.2rem; margin: 0 0 .7em; }
.footer-about p { color: rgba(244, 240, 227, .82); }
.footer-slogan { font-family: var(--hand); color: var(--amber); font-size: 1.15rem; }
.footer-flasks { display: flex; gap: 8px; margin-bottom: 12px; opacity: .95; }
.footer-menu li { padding: .3em 0; border-bottom: 1px dotted rgba(244, 240, 227, .18); }
.footer-menu li:last-child { border-bottom: 0; }
.footer-menu a { color: rgba(244, 240, 227, .88); text-decoration: none; font-family: var(--hand); }
.footer-menu a:hover { color: var(--amber); }
.footer-contact { display: grid; gap: 8px; font-style: normal; font-family: var(--figure); font-size: .92rem; color: rgba(244, 240, 227, .88); }
.footer-supplier {
  border-top: 1px dashed rgba(244, 240, 227, .22);
  padding: 18px 0 6px; margin: 0;
  font-family: var(--hand); color: rgba(244, 240, 227, .82);
}
.footer-legal { padding: 8px 0 30px; font-size: .82rem; color: rgba(244, 240, 227, .62); }
.footer-legal p { margin: .2em 0; }

/* ==================================================
   10. 入场动画(仅 html.js 且允许动效)
================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  html.js .reveal.delay-1 { transition-delay: .08s; }
  html.js .reveal.delay-2 { transition-delay: .16s; }
  html.js .reveal.delay-3 { transition-delay: .24s; }
  .dash-draw { stroke-dasharray: var(--dl, 300); stroke-dashoffset: var(--dl, 300); }
  html.js .is-in .dash-draw { animation: dash 1.4s ease forwards; }
  @keyframes dash { to { stroke-dashoffset: 0; } }
}

/* ==================================================
   11. 响应式
================================================== */
@media (max-width: 1040px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .data-cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-figure { max-width: 440px; }
  .layout-side { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .aside-panel { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }
  .nav-panel {
    display: none;
    position: absolute; right: 0; top: calc(100% + 12px);
    width: min(78vw, 300px);
    background: var(--card);
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 4px 6px 16px rgba(42, 40, 35, .2);
    padding: 10px;
  }
  .nav-open .nav-panel { display: block; }
  .primary-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-menu a { padding: .7em .8em; border-radius: var(--radius); }
  .primary-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; border-top: 1px dashed var(--line-2); padding-left: 12px; min-width: 0; }
}
@media (max-width: 620px) {
  :root { --rail: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .data-cards, .model-grid, .record-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .rec-field { grid-template-columns: 4.6em 1fr; }
  .page-header { padding-top: 30px; }
}
@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .contact-wrap { padding: 26px 20px; }
  .record-page, .model-card { padding-left: 26px; }
}
