/*
Theme Name: 威海锐格环保设备 (RigidGrid Brutal)
Theme URI: https://example.com/
Author: 阿K
Author URI: https://example.com/
Description: 威海锐格环保设备有限公司官方主题。新粗野主义:纸灰底、纯黑粗边框、酸绿色块、硬阴影、系统字体。不修饰,只治气。演示用虚构公司主题,自包含零外链。
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: ruige-brutal
Tags: one-column, custom-logo, custom-menu, translation-ready
*/

/* ============================================================
   0. 变量 / 重置
   纸灰 + 纯黑 + 酸绿。没有第四种颜色。
   ============================================================ */
:root {
  --paper: #f0f0f0;
  --ink: #000000;
  --acid: #c6f24e;
  --card: #ffffff;
  --bw: 3px;              /* 标准边框 */
  --bw-thick: 5px;        /* 重边框 */
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* RAW 模式:黑底酸绿,一键反转。都是变量,反转就是换值。 */
body.raw-mode {
  --paper: #101010;
  --ink: #c6f24e;
  --card: #000000;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* 链接:粗下划线。悬停糊一块酸绿上去。 */
a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
a:hover,
a:focus {
  background: var(--acid);
  color: #000;
  outline: none;
}
body.raw-mode a:hover,
body.raw-mode a:focus { color: #000; }

::selection {
  background: var(--ink);
  color: var(--acid);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: break-word;
}

/* 屏幕阅读器文本 / 跳转链接 */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 999;
  background: var(--acid);
  color: #000;
  border: var(--bw) solid var(--ink);
  padding: 8px 16px;
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   1. 通用构件
   ============================================================ */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 按钮:放大的老式 HTML 按钮。按下去像按下去。 */
.btn {
  display: inline-block;
  padding: 16px 30px;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  appearance: none;
  border-radius: 0;
  transition: transform 0.08s linear, box-shadow 0.08s linear;
}
.btn:hover,
.btn:focus {
  background: var(--ink);
  color: var(--acid);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}
.btn--acid {
  background: var(--acid);
  color: #000;
}
.btn--acid:hover,
.btn--acid:focus {
  background: var(--ink);
  color: var(--acid);
}

/* 全大写英文标签块 */
.tag-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--acid);
  padding: 5px 12px;
}
.tag-label--acid {
  background: var(--acid);
  color: #000;
}

/* 闪烁光标「_」 */
.cursor::after {
  content: "_";
  font-weight: 800;
  animation: rg-blink 1.1s steps(2, start) infinite;
}
@keyframes rg-blink {
  to { visibility: hidden; }
}

/* 卡片:白底黑框硬阴影,不圆角,不渐变 */
.box {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* 裸表格:每根线都在 */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 0.95rem;
}
th, td {
  border: var(--bw) solid var(--ink);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--acid);
  color: #000;
  font-weight: 800;
}
.table-scroll { overflow-x: auto; }

/* 章节标题:刻意错位 */
.section {
  padding: 72px 0 56px;
  position: relative;
}
.section-head {
  margin-bottom: 40px;
  max-width: 720px;
}
.section:nth-of-type(even) .section-head { margin-left: 6%; }
.section:nth-of-type(odd) .section-head { margin-left: 0; }
.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  display: inline-block;
  border-bottom: 6px solid var(--acid);
  padding-bottom: 4px;
  margin-top: 10px;
}
.section-head p {
  margin-top: 14px;
  max-width: 560px;
}

/* 入场:仅在 html.js 下隐藏,no-js 全部可见 */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s linear, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cursor::after { animation: none; }
  .btn { transition: none; }
}

/* ============================================================
   2. 头部 / 导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--bw-thick) solid var(--ink);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-brand { flex: 0 0 auto; }
.site-brand a { text-decoration: none; }
.site-brand a:hover { background: transparent; }
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--ink);
  color: var(--acid);
  border: var(--bw) solid var(--ink);
  padding: 6px 10px;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 48px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.primary-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  border: var(--bw) solid transparent;
}
.primary-nav a:hover,
.primary-nav a:focus {
  border-color: var(--ink);
  background: var(--acid);
  color: #000;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  border-color: var(--ink);
  background: var(--card);
}

/* RAW 模式开关:导航尽头的一颗硬按钮 */
.raw-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border-radius: 0;
}
.raw-toggle[aria-pressed="true"],
.raw-toggle:hover {
  background: var(--ink);
  color: var(--acid);
}

/* 汉堡:三根粗线,不做动画表演 */
.nav-toggle {
  display: none;
  margin-left: auto;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  padding: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border-radius: 0;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 4px;
  background: var(--ink);
}
.nav-toggle .bar + .bar { margin-top: 5px; }
body.nav-open .nav-toggle { background: var(--acid); }
body.nav-open .nav-toggle .bar { background: #000; }

/* ============================================================
   3. 首页
   ============================================================ */
/* Hero:文字左,塔图右,底下压一块酸绿 */
.hero {
  position: relative;
  padding: 72px 0 84px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  margin: 18px 0 10px;
}
.hero .slogan {
  display: inline-block;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 800;
  background: var(--acid);
  color: #000;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px;
  margin: 10px 0 22px;
  transform: rotate(-1deg);
}
.hero-copy p {
  max-width: 520px;
  margin-bottom: 10px;
}
.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-figure {
  background: var(--card);
  border: var(--bw-thick) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 20px 16px 8px;
  transform: rotate(1.2deg) translateY(18px);
}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: var(--bw) solid var(--ink);
  margin-top: 12px;
  padding: 8px 4px;
}
.tower-svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--ink);
}
.tower-svg .fa { fill: var(--acid); }
.tower-svg .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: currentColor;
}

/* hero 迷你规格表:错位叠在酸绿块上 */
.hero-spec {
  margin-top: -36px;
  margin-left: 4%;
  max-width: 860px;
  position: relative;
  z-index: 2;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--card);
}
.hero-spec table { border: 0; }
.hero-spec td, .hero-spec th { border-width: var(--bw); }

/* 跑马灯黑条 */
.strip {
  background: var(--ink);
  color: var(--acid);
  border-top: var(--bw) solid var(--ink);
  border-bottom: var(--bw) solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.strip-track {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: rg-strip 26s linear infinite;
}
@keyframes rg-strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* 设备卡:6张,故意歪 */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
}
.device-card {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.device-card:nth-child(2) { transform: translateY(16px) rotate(0.5deg); }
.device-card:nth-child(3) { transform: rotate(-0.7deg); }
.device-card:nth-child(5) { transform: translateY(-8px) rotate(-0.4deg); }
.device-card:nth-child(6) { transform: translateY(10px) rotate(0.6deg); }
.device-card h3 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.device-card .device-sub {
  font-weight: 700;
  font-size: 0.92rem;
}
.device-card .device-desc { font-size: 0.92rem; }
.device-card .device-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  border-top: var(--bw) solid var(--ink);
  padding-top: 10px;
  margin-top: auto;
}
.device-card .device-num small {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  display: block;
  font-weight: 700;
}
.device-thumb {
  border: var(--bw) solid var(--ink);
  overflow: hidden;
}
.device-thumb img { width: 100%; }

/* 工作原理:编号硬块横排 */
.process-list {
  list-style: none;
  counter-reset: rg-step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.process-list li {
  counter-increment: rg-step;
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 16px 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
}
.process-list li::before {
  content: counter(rg-step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--acid);
  color: #000;
  border-bottom: var(--bw) solid var(--ink);
  margin: -16px -14px 12px;
  padding: 6px 12px;
}
.process-list li:nth-child(even) { transform: translateY(14px); }
.process-note {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

/* 板材段落:大块酸绿,黑字直给 */
.material-block {
  background: var(--acid);
  color: #000;
  border: var(--bw-thick) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 40px 34px;
  max-width: 900px;
  margin-left: auto;
  margin-right: 3%;
}
.material-block h2 { color: #000; }
.material-block p { margin-top: 14px; max-width: 700px; }
.material-block .supplier-line {
  font-family: var(--font-mono);
  font-weight: 700;
  background: #000;
  color: var(--acid);
  padding: 12px 16px;
  margin-top: 22px;
  display: inline-block;
}

/* 应用行业:清单式,不配图标不配插画 */
.industry-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  box-shadow: var(--shadow);
  max-width: 880px;
}
.industry-list li {
  padding: 18px 22px;
  border-bottom: var(--bw) solid var(--ink);
  font-weight: 700;
}
.industry-list li:nth-child(odd) { border-right: var(--bw) solid var(--ink); }
.industry-list li:last-child,
.industry-list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.industry-list .ind-note {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* 出厂记录:档案条目 */
.record-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.record-item {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.record-item:nth-child(2) { transform: translateY(20px); }
.record-item .record-id {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--ink);
  color: var(--acid);
  padding: 10px 16px;
  display: block;
}
.record-item dl { padding: 18px 16px; }
.record-item dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 10px;
}
.record-item dt:first-child { margin-top: 0; }
.record-item dd { font-weight: 700; }

/* 更新日志:文章列表长这样 */
.log-list { max-width: 860px; }
.log-item {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
}
.log-item:nth-child(even) { margin-left: 5%; }
.log-item time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  border-right: var(--bw) solid var(--ink);
  padding-right: 14px;
}
.log-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.log-item p { font-size: 0.92rem; }

/* 关于:纯文字硬块 */
.about-block {
  border-left: 10px solid var(--acid);
  padding-left: 28px;
  max-width: 760px;
}
.about-block p { margin-bottom: 12px; }
.about-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.about-facts li {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
}

/* 联系 CTA:黑底收尾 */
.contact-cta {
  background: var(--ink);
  color: var(--acid);
  border-top: var(--bw-thick) solid var(--ink);
  padding: 80px 0;
}
.contact-cta h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}
.contact-cta p { max-width: 620px; margin-top: 14px; }
.contact-cta a { color: var(--acid); }
.contact-cta a:hover { background: var(--acid); color: #000; }
.contact-lines {
  list-style: none;
  margin: 28px 0 34px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}
.contact-lines li { margin-bottom: 8px; }
.contact-cta .btn {
  background: var(--acid);
  color: #000;
  border-color: var(--acid);
  box-shadow: 4px 4px 0 var(--acid);
}
.contact-cta .btn:hover,
.contact-cta .btn:focus {
  background: #000;
  color: var(--acid);
  box-shadow: 2px 2px 0 var(--acid);
}

/* ============================================================
   4. 页脚 + 角部几何色块
   ============================================================ */
.corner-block {
  position: fixed;
  right: -90px;
  bottom: -90px;
  width: 360px;
  height: 360px;
  background: var(--acid);
  border: var(--bw-thick) solid var(--ink);
  transform: rotate(14deg);
  z-index: -1;
  pointer-events: none;
}
.corner-block::after {
  content: "";
  position: absolute;
  left: -60px;
  top: -60px;
  width: 90px;
  height: 90px;
  background: var(--ink);
}

.site-footer {
  border-top: var(--bw-thick) solid var(--ink);
  background: var(--paper);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px;
}
.footer-grid h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  background: var(--ink);
  color: var(--acid);
  display: inline-block;
  padding: 4px 10px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-contact p { font-size: 0.92rem; margin-bottom: 6px; }
.footer-supplier {
  margin-top: 34px;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.footer-bottom {
  margin-top: 30px;
  border-top: var(--bw) solid var(--ink);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ============================================================
   5. 内页 / 归档 / 文章
   ============================================================ */
.page-title-bar {
  border-bottom: var(--bw-thick) solid var(--ink);
  padding: 56px 0 34px;
  position: relative;
}
.page-title-bar h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
}
.page-title-bar .archive-description { margin-top: 12px; max-width: 640px; }

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

.entry-card {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 34px;
}
.entry-card:nth-child(even) { margin-left: 4%; }
.entry-card .entry-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.entry-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.entry-card h2 a { text-decoration-thickness: 4px; }
.entry-card .entry-excerpt { font-size: 0.95rem; }
.entry-card .read-more { margin-top: 14px; display: inline-block; font-weight: 800; }
.entry-thumb {
  border: var(--bw) solid var(--ink);
  margin-bottom: 16px;
}

/* 正文排版 */
.entry-content h2,
.entry-content h3 { margin: 1.4em 0 0.5em; }
.entry-content h2 {
  border-left: 8px solid var(--acid);
  padding-left: 14px;
}
.entry-content p,
.entry-content ul,
.entry-content ol { margin-bottom: 1em; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content blockquote {
  border: var(--bw) solid var(--ink);
  border-left: 10px solid var(--acid);
  background: var(--card);
  padding: 16px 20px;
  margin: 1.2em 0;
  font-weight: 700;
}
.entry-content code,
.entry-content pre {
  font-family: var(--font-mono);
  background: var(--ink);
  color: var(--acid);
  padding: 2px 6px;
  font-size: 0.9em;
}
.entry-content pre {
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 1em;
}
.entry-content img {
  border: var(--bw) solid var(--ink);
}
.entry-content table { margin-bottom: 1em; }

.single-header {
  padding: 56px 0 0;
}
.single-header .entry-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.single-header h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: 20px;
}
.single-thumb {
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  margin: 10px 0 30px;
  max-width: 860px;
}
.single-body { max-width: 760px; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
  border-top: var(--bw) solid var(--ink);
  padding-top: 24px;
}
.post-nav a { font-weight: 800; }

/* 分页:一排硬块 */
.pagination,
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.nav-links .page-numbers {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  padding: 10px 14px;
  border: var(--bw) solid var(--ink);
  background: var(--card);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.nav-links .page-numbers.current {
  background: var(--ink);
  color: var(--acid);
}
.nav-links a.page-numbers:hover {
  background: var(--acid);
  color: #000;
}

/* 侧栏 */
.widget-area .widget {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 26px;
}
.widget-area .widget:nth-child(even) { transform: rotate(-0.5deg); }
.widget-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--acid);
  color: #000;
  display: inline-block;
  padding: 4px 10px;
  border: var(--bw) solid var(--ink);
  margin-bottom: 14px;
}
.widget ul { list-style: none; }
.widget li { margin-bottom: 8px; font-size: 0.92rem; }

/* 搜索表单 */
.search-form {
  display: flex;
  gap: 0;
  max-width: 480px;
}
.search-form .search-field {
  flex: 1 1 auto;
  min-width: 0;
  border: var(--bw) solid var(--ink);
  border-right: 0;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 0;
}
.search-form .search-field:focus {
  outline: 4px solid var(--acid);
  outline-offset: -4px;
}
.search-form .search-submit {
  border: var(--bw) solid var(--ink);
  background: var(--acid);
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 22px;
  cursor: pointer;
  border-radius: 0;
}
.search-form .search-submit:hover {
  background: var(--ink);
  color: var(--acid);
}

/* 404 */
.error-404 {
  padding: 90px 0;
}
.error-404 .error-code {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow: 10px 10px 0 var(--acid);
}
.error-404 h1 { margin: 24px 0 12px; }
.error-404 .search-form { margin-top: 26px; }
.error-404-links {
  list-style: none;
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 空状态演示提示条 */
.demo-note {
  border: var(--bw) dashed var(--ink);
  background: var(--card);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: inline-block;
}

/* ============================================================
   6. 设备详情(single-product)
   ============================================================ */
.product-hero {
  padding: 56px 0 20px;
}
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px;
  align-items: start;
}
.product-figure {
  background: var(--card);
  border: var(--bw-thick) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 18px;
  transform: rotate(-0.8deg);
}
.product-figure img { border: var(--bw) solid var(--ink); }
.spec-block { margin: 40px 0; }
.spec-block h2 {
  display: inline-block;
  background: var(--ink);
  color: var(--acid);
  padding: 6px 14px;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.spec-table-wrap {
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  overflow-x: auto;
  background: var(--card);
}
.spec-table-wrap table { border: 0; }
.inquiry-cta {
  border: var(--bw) solid var(--ink);
  background: var(--acid);
  color: #000;
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 48px 0 20px;
  max-width: 760px;
}
.inquiry-cta h2 { margin-bottom: 10px; }
.inquiry-cta p { margin-bottom: 18px; }
.inquiry-cta .contact-lines { color: #000; margin: 14px 0 20px; }
.inquiry-cta .btn { background: #000; color: var(--acid); border-color: #000; }
.inquiry-cta .btn:hover { background: var(--card); color: #000; }

/* ============================================================
   7. 响应式
   ============================================================ */
@media (max-width: 1024px) {
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: var(--bw-thick) solid var(--ink);
    margin-left: 0;
  }
  body.nav-open .primary-nav { display: block; }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 20px;
  }
  .primary-nav a {
    border: var(--bw) solid var(--ink);
    margin-top: 10px;
    background: var(--card);
  }
  .raw-toggle { margin-left: 0; }
  .header-inner { flex-wrap: wrap; position: relative; }

  .hero { padding: 48px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { transform: none; }
  .hero-spec { margin-left: 0; margin-top: -20px; }

  .section { padding: 52px 0 40px; }
  .section:nth-of-type(even) .section-head { margin-left: 0; }

  .device-grid { grid-template-columns: 1fr; }
  .device-card:nth-child(n) { transform: none; }

  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(even) { transform: none; }

  .industry-list { grid-template-columns: 1fr; }
  .industry-list li:nth-child(odd) { border-right: 0; }
  .industry-list li:nth-last-child(2):nth-child(odd) { border-bottom: var(--bw) solid var(--ink); }
  .industry-list li:last-child { border-bottom: 0; }

  .record-list { grid-template-columns: 1fr; }
  .record-item:nth-child(2) { transform: none; }

  .log-item { grid-template-columns: 1fr; gap: 8px; }
  .log-item:nth-child(even) { margin-left: 0; }
  .log-item time {
    border-right: 0;
    border-bottom: var(--bw) solid var(--ink);
    padding: 0 0 8px;
  }

  .material-block { margin-right: 0; padding: 28px 22px; }

  .content-grid { grid-template-columns: 1fr; }
  .entry-card:nth-child(even) { margin-left: 0; }

  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .corner-block { width: 220px; height: 220px; right: -70px; bottom: -70px; }
}
