/*
Theme Name: 坚野环保 Jianye Utility
Theme URI: https://example.com/themes/jianye-utility/
Author: 何连长
Author URI: https://example.com/
Description: 沧州坚野环保设备有限公司(虚构演示)官方主题。军规工装装备语言:浅卡其帆布底、橄榄绿主色、信号橙战术标记、镂空喷字标题、织带铆扣与军规铭牌卡。主攻油田/矿区野外撬装式废气治理展示,含装备序列(CPT product)、作业规程、服役档案、装备检查清单等版块。零外链资源,完整可激活。
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: jianye-utility
Tags: custom-menu, custom-logo, featured-images, translation-ready, two-columns
*/

/* ==========================================================================
   0. 变量与基础 —— 军规工装:卡其帆布 / 橄榄绿 / 信号橙
   ========================================================================== */

:root {
  --canvas: #d8cdb0;        /* 浅卡其帆布底 */
  --canvas-deep: #ccc09e;   /* 深一档帆布(分区) */
  --paper: #e6dfc6;         /* 铭牌纸面 */
  --paper-bright: #efe9d3;  /* 输入框底 */
  --olive: #4f5338;         /* 主色橄榄绿 */
  --olive-mid: #5f6543;     /* 装备涂装 */
  --olive-deep: #3e4128;    /* 悬停深橄榄 */
  --ink: #33361f;           /* 深橄榄文字 */
  --orange: #d97c2b;        /* 信号橙:仅小面积战术标记 */
  --stitch: rgba(230, 222, 197, 0.75); /* 织带缝线 */
  --line: rgba(51, 54, 31, 0.45);
  --line-soft: rgba(51, 54, 31, 0.18);
  --shadow: 2px 2px 0 var(--ink); /* 唯一阴影:一层实色偏移 */
  --radius: 2px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--canvas);
  /* 帆布交叉织纹:极淡 */
  background-image:
    repeating-linear-gradient(45deg, rgba(51, 54, 31, 0.03) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(51, 54, 31, 0.03) 0 1px, transparent 1px 7px);
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

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

a { color: var(--olive-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

table { border-collapse: collapse; width: 100%; }

button { font-family: inherit; cursor: pointer; }

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

/* 无障碍 */
.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 !important;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  background: var(--paper);
  color: var(--ink);
  display: block;
  font-weight: 700;
  left: 8px;
  top: 8px;
  padding: 12px 20px;
  z-index: 100000;
  box-shadow: var(--shadow);
  border: 2px solid var(--ink);
}
.skip-link { position: absolute; }

/* ==========================================================================
   1. 军规部件:镂空喷字 / 织带 / 铆扣 / 铭牌 / 束带分隔 / 坐标
   ========================================================================== */

/* 镂空喷字(stencil):粗黑体大字距 + 横向断笔切缝 */
.stencil {
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.18;
  color: var(--ink);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .stencil {
    background-image: linear-gradient(
      to bottom,
      var(--ink) 0 33%,
      transparent 33% 39%,
      var(--ink) 39% 65%,
      transparent 65% 70%,
      var(--ink) 70% 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* 全大写英文战术小标:[ FIELD-GRADE ] */
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.kicker::before { content: "[ "; color: var(--orange); }
.kicker::after { content: " ]"; color: var(--orange); }

/* 地图坐标装饰 */
.coords {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--olive-deep);
}

/* 尼龙织带横条:橄榄底 + 两道缝线虚线 */
.webbing {
  position: relative;
  height: 16px;
  background-color: var(--olive);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0 6px,
    rgba(0, 0, 0, 0.1) 6px 12px
  );
}
.webbing::before,
.webbing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--stitch);
}
.webbing::before { top: 3px; }
.webbing::after { bottom: 3px; }

/* 四角铆扣:radial-gradient 圆点 ×4 */
.riveted {
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle, #9aa077 0 2px, var(--ink) 2px 3.5px, transparent 4px),
    radial-gradient(circle, #9aa077 0 2px, var(--ink) 2px 3.5px, transparent 4px),
    radial-gradient(circle, #9aa077 0 2px, var(--ink) 2px 3.5px, transparent 4px),
    radial-gradient(circle, #9aa077 0 2px, var(--ink) 2px 3.5px, transparent 4px);
  background-size: 10px 10px;
  background-position:
    left 7px top 7px,
    right 7px top 7px,
    left 7px bottom 7px,
    right 7px bottom 7px;
}

/* 基准卡:直角/2px 微圆角 + 一层实色偏移阴影 */
.card {
  background-color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 军规装备铭牌:虚线裁切边 + 左上挂孔 */
.nameplate {
  position: relative;
  background-color: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 20px;
}
.nameplate::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--canvas);
  border: 2px solid var(--ink);
}
.np-rows { margin: 0; }
.np-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.np-row:last-child { border-bottom: 0; }
.np-row dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--olive-deep);
  flex: none;
}
.np-row dd { margin: 0; font-weight: 700; text-align: right; }

/* 束带分隔线:双线 + 卡扣方块 */
.strap-divider {
  position: relative;
  width: 180px;
  height: 14px;
  margin: 0 auto;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.strap-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--olive);
  border: 2px solid var(--ink);
}

/* 信号橙战术标记(小面积) */
.tac-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.mil-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--olive-deep);
}

/* ==========================================================================
   2. 按钮
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--olive);
  color: #ece6cf;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  background: var(--olive-deep);
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ==========================================================================
   3. 页头与导航(≤768px 汉堡)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--canvas);
  background-image:
    repeating-linear-gradient(45deg, rgba(51, 54, 31, 0.03) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(51, 54, 31, 0.03) 0 1px, transparent 1px 7px);
  border-bottom: 2px solid var(--ink);
}
.site-header.is-scrolled { box-shadow: 0 4px 0 rgba(51, 54, 31, 0.16); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-branding .custom-logo-link { display: inline-flex; flex: none; }
.site-branding .custom-logo { max-height: 46px; width: auto; }

.site-badge {
  flex: none;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  color: #e8e1c8;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.site-badge:hover { color: #fff; background: var(--olive-deep); }

.site-title-wrap { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.site-title {
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-title:hover { color: var(--olive-deep); }
.site-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--olive-deep);
  white-space: nowrap;
}

.main-navigation { position: relative; }
.main-navigation .menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation .menu li { margin: 0; }
.main-navigation .menu a {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.main-navigation .menu a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.main-navigation .menu a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .main-navigation .menu a::after { transition: none; }
}

/* 汉堡按钮 */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.menu-toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }
.main-navigation.is-open .menu-toggle-icon { background: transparent; }
.main-navigation.is-open .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.main-navigation.is-open .menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   4. 首页:巡逻区(hero)
   ========================================================================== */

.hero {
  position: relative;
  padding: 66px 0 54px;
  border-bottom: 2px solid var(--ink);
  /* 网点喷溅底 */
  background-image: radial-gradient(rgba(51, 54, 31, 0.07) 1px, transparent 1.5px);
  background-size: 16px 16px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}
.hero-title {
  margin: 8px 0 18px;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
}
.hero-sub { max-width: 34em; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 34px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  max-width: 560px;
}
.stat {
  flex: 1 1 0;
  min-width: 140px;
  padding: 14px 18px;
  border-right: 2px dashed var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--orange);
  line-height: 1.2;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--olive-deep);
}

.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; }

/* ==========================================================================
   5. 通用分区
   ========================================================================== */

.section { padding: 70px 0; }
.section--tinted {
  background-color: var(--canvas-deep);
  background-image:
    repeating-linear-gradient(45deg, rgba(51, 54, 31, 0.03) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(51, 54, 31, 0.03) 0 1px, transparent 1px 7px);
  border-bottom: 2px solid var(--ink);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.section-note { text-align: right; }
.section-foot { margin-top: 34px; text-align: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* ==========================================================================
   6. 服役环境(三枚军规标签)
   ========================================================================== */

.env-tag { padding-top: 30px; }
.env-tag .env-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.env-value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.2;
}
.env-name { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; }
.env-desc { margin: 0; font-size: 0.92rem; color: rgba(51, 54, 31, 0.85); }

/* ==========================================================================
   7. 装备序列(产品卡)
   ========================================================================== */

.equip-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.equip-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .equip-card { transition: none; }
  .equip-card:hover { transform: none; box-shadow: var(--shadow); }
}
.equip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.equip-icon { width: 42px; flex: none; }
.equip-title { font-size: 1.12rem; margin: 8px 0 8px; }
.equip-title a { color: var(--ink); text-decoration: none; }
.equip-title a:hover { color: var(--orange); }
.equip-desc { font-size: 0.93rem; margin-bottom: 14px; color: rgba(51, 54, 31, 0.88); }
.equip-specs {
  margin: auto 0 14px;
  border-top: 2px dashed var(--line);
  padding-top: 6px;
}
.equip-specs .np-row { padding: 5px 0; }
.equip-more {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--olive-deep);
}
.equip-more::after { content: " →"; color: var(--orange); }
.equip-thumb { margin: 0 0 14px; border: 2px solid var(--ink); }
.equip-thumb img { display: block; width: 100%; }

/* ==========================================================================
   8. 作业规程(工艺流程)
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-card { position: relative; padding: 20px 18px 16px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--olive);
  opacity: 0.55;
  line-height: 1;
}
.step-title { font-size: 1.05rem; margin: 10px 0 6px; }
.step-desc { margin: 0; font-size: 0.9rem; color: rgba(51, 54, 31, 0.85); }
.step-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border: 2px solid var(--ink);
}
.process-note {
  margin-top: 26px;
  text-align: center;
}

/* ==========================================================================
   9. 装备检查清单
   ========================================================================== */

.checklist { list-style: none; margin: 0; padding: 0; max-width: 820px; margin-left: auto; margin-right: auto; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.check-box {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  background: var(--canvas);
  border: 2px solid var(--ink);
  position: relative;
}
.check-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 8px;
  height: 13px;
  border-right: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(45deg);
  transform-origin: 60% 60%;
  transition: transform 0.22s ease;
}
.js .check-item:not(.is-checked) .check-box::after { transform: rotate(45deg) scale(0); }
.check-body { flex: 1; }
.check-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-weight: 800; }
.check-desc { margin: 3px 0 0; font-size: 0.92rem; color: rgba(51, 54, 31, 0.85); }
@media (prefers-reduced-motion: reduce) {
  .check-box::after { transition: none; }
}

/* ==========================================================================
   10. 服役档案(案例)
   ========================================================================== */

.case-card { padding: 22px 20px 18px; display: flex; flex-direction: column; }
.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.case-title { font-size: 1.08rem; margin: 6px 0 8px; }
.case-desc { font-size: 0.93rem; margin: 0 0 14px; color: rgba(51, 54, 31, 0.88); }
.case-result {
  margin-top: auto;
  padding-top: 10px;
  border-top: 2px dashed var(--line);
  font-size: 0.9rem;
}
.case-result strong { color: var(--olive-deep); }

/* ==========================================================================
   11. 选材军规(供应商)
   ========================================================================== */

.supplier-band {
  background: var(--olive);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  color: #e8e1c8;
}
.supplier-band .kicker { color: #cfc7a4; }
.supplier-band .kicker::before,
.supplier-band .kicker::after { color: var(--orange); }
.supplier-quote {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
  line-height: 1.6;
  color: #f0ead4;
  max-width: 30em;
  margin: 0 0 22px;
}
.supplier-quote .hl { color: var(--orange); }
.supplier-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.supplier-tags .tac-tag { box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45); }

/* ==========================================================================
   12. 营区快报 / 文章卡
   ========================================================================== */

.news-card { padding: 20px 20px 16px; display: flex; flex-direction: column; }
.news-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--olive-deep);
}
.news-title { font-size: 1.05rem; margin: 8px 0 8px; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--orange); }
.news-excerpt { font-size: 0.92rem; margin: 0 0 12px; color: rgba(51, 54, 31, 0.85); }

/* ==========================================================================
   13. 联络哨位
   ========================================================================== */

.contact-band { text-align: center; }
.contact-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 30px 36px;
}
.contact-phone {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 12px 0 6px;
}
.contact-meta { margin: 0 0 20px; font-size: 0.95rem; }
.contact-meta .sep { color: var(--orange); padding: 0 8px; }

/* ==========================================================================
   14. 列表页 / 正文页
   ========================================================================== */

.page-hero {
  padding: 52px 0 40px;
  border-bottom: 2px solid var(--ink);
  background-image: radial-gradient(rgba(51, 54, 31, 0.06) 1px, transparent 1.5px);
  background-size: 16px 16px;
}
.page-hero .page-title { margin: 6px 0 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.page-hero .archive-description { margin-top: 12px; max-width: 46em; }
.page-hero .archive-description p { margin: 0; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 56px 0 70px;
}
.layout--single { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }

.post-list { display: grid; gap: 24px; }
.post-card { padding: 24px 24px 20px; }
.post-card .entry-header { margin-bottom: 8px; }
.post-card .entry-title { font-size: 1.3rem; margin: 8px 0 4px; }
.post-card .entry-title a { color: var(--ink); text-decoration: none; }
.post-card .entry-title a:hover { color: var(--orange); }
.entry-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--olive-deep);
}
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--orange); }
.post-thumb { margin: 0 0 16px; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.post-thumb img { display: block; width: 100%; }

/* 正文排版 */
.entry-content { font-size: 1.02rem; }
.entry-content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry-content a { color: var(--olive-deep); }
.entry-content a:hover { color: var(--orange); }
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  background: var(--paper);
  border-left: 4px solid var(--olive);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.entry-content code,
.entry-content pre {
  font-family: var(--font-mono);
  background: var(--paper);
  border: 1px dashed var(--line);
}
.entry-content code { padding: 2px 6px; font-size: 0.88em; }
.entry-content pre { padding: 14px 16px; overflow: auto; }
.entry-content pre code { border: 0; padding: 0; }
.entry-content table th,
.entry-content table td { border: 1px solid var(--line); padding: 9px 12px; }
.entry-content table th { background: var(--olive); color: #ece6cf; letter-spacing: 0.06em; }
.entry-content hr {
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  height: 8px;
  margin: 2em auto;
  width: 180px;
  background: transparent;
}
.entry-content img { border: 2px solid var(--ink); }

/* WP 对齐与说明文字 */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--olive-deep);
  padding: 6px 2px;
}
.sticky .entry-title::after {
  content: "置顶";
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  padding: 1px 8px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.bypostauthor { display: block; }

/* 页码 */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 8px 13px;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.pagination .page-numbers.current { background: var(--olive); color: #ece6cf; }
.pagination .page-numbers:hover { color: var(--orange); }
.pagination .page-numbers.dots { border: 0; box-shadow: none; background: transparent; }

/* 上一篇 / 下一篇 */
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-navigation a {
  display: inline-block;
  padding: 10px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.post-navigation a:hover { color: var(--orange); }

/* 单篇文章 */
.single-article { padding-top: 10px; }
.single-article .entry-header { margin-bottom: 26px; }
.single-article .entry-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 8px 0 10px; }
.entry-footer { margin-top: 28px; padding-top: 16px; border-top: 2px dashed var(--line); }
.entry-footer .tac-tag { margin-right: 8px; margin-bottom: 8px; }

/* 评论区 */
.comments-area { margin-top: 48px; }
.comments-title { font-size: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list .comment { margin-bottom: 16px; }
.comment-body {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.comment-list .children { list-style: none; margin: 12px 0 0; padding-left: 24px; }
.comment-meta .fn { font-weight: 800; font-style: normal; }
.comment-metadata { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.comment-form .submit {
  padding: 12px 24px;
  background: var(--olive);
  color: #ece6cf;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.comment-form .submit:hover { background: var(--olive-deep); color: #fff; }

/* ==========================================================================
   15. 侧栏(哨位)
   ========================================================================== */

.widget-area { display: flex; flex-direction: column; gap: 24px; }
.widget { padding: 20px 20px 16px; }
.widget-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li::before { content: "▸ "; color: var(--orange); }
.widget a { text-decoration: none; }

/* ==========================================================================
   16. 搜索表单
   ========================================================================== */

.search-form .search-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--olive-deep);
  margin-bottom: 6px;
}
.search-row { display: flex; gap: 0; }
.search-field {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.search-submit {
  padding: 11px 20px;
  background: var(--olive);
  color: #ece6cf;
  border: 2px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.search-submit:hover { background: var(--olive-deep); color: #fff; }

/* ==========================================================================
   17. 404
   ========================================================================== */

.error-404 { text-align: center; padding: 80px 0 90px; }
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 10px;
}
.error-404 .search-form { max-width: 460px; margin: 26px auto 30px; text-align: left; }

/* ==========================================================================
   18. 装备铭牌详情(single-product)
   ========================================================================== */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
  padding: 56px 0 70px;
}
.product-main .entry-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 8px 0 14px; }
.product-terms { margin: 0 0 18px; }
.product-terms .tac-tag { margin-right: 8px; margin-bottom: 8px; }
.product-plate { position: sticky; top: 96px; }
.plate-title {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
}
.plate-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: rgba(51, 54, 31, 0.75);
  border-top: 2px dashed var(--line);
  padding-top: 10px;
}
.plate-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.plate-phone {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   19. 页脚
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: #cfc7a4;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 40px;
  padding: 52px 22px 40px;
}
.footer-brand {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #ece6cf;
  margin-bottom: 10px;
}
.footer-slogan {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 14px;
}
.footer-title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #ece6cf;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(207, 199, 164, 0.4);
}
.site-footer .menu,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .menu li,
.footer-menu li { padding: 5px 0; }
.site-footer a { color: #d9d2b2; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-contact p { margin: 0 0 8px; font-size: 0.93rem; }
.footer-coords { margin-top: 14px; color: rgba(217, 124, 43, 0.9); }
.footer-bar {
  border-top: 1px dashed rgba(207, 199, 164, 0.35);
  padding: 20px 0 26px;
  font-size: 0.82rem;
}
.footer-bar p { margin: 0 0 6px; }
.footer-bar .footer-supply { color: #d9d2b2; }
.footer-bar .footer-legal { color: rgba(207, 199, 164, 0.75); }

/* ==========================================================================
   20. 入场动效(.reveal)与降级
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   21. 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; margin: 0 auto; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .product-plate { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .main-navigation .menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 230px;
    background: var(--canvas);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 70;
  }
  .main-navigation.is-open .menu { display: flex; }
  .main-navigation .menu a { display: block; padding: 12px 14px; border-bottom: 1px dashed var(--line-soft); }
  .main-navigation .menu li:last-child a { border-bottom: 0; }
  .main-navigation .menu a::after { display: none; }

  .section { padding: 52px 0; }
  .hero { padding: 48px 0 44px; }
  .grid-3,
  .grid-2,
  .process-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .stat { border-right: 0; border-bottom: 2px dashed var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .alignwide { margin-left: 0; margin-right: 0; }
  .site-code { display: none; }
}
