/*
Theme Name: MoldTrade 模具通
Theme URI: https://example.com/moldtrade
Author: MoldTrade
Author URI: https://example.com
Description: 面向二手注塑模具收售企业的 WordPress 主题。内置「模具」自定义文章类型、参数铭牌、询价表单与回收流程展示，采用钢青蓝 + 熔料橙的工业蓝图视觉语言。
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moldtrade
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. 设计变量 —— 钢与熔料
   ink   深钢青（机床漆面的冷蓝灰）
   melt  熔料橙（料筒里熔融塑料的颜色，全站唯一强调色）
   blueprint 蓝图线（仅用于首屏技术图）
   ========================================================= */
:root {
  --ink-900: #16222e;
  --ink-800: #1c2b3a;
  --ink-700: #24384c;
  --ink-600: #33475b;
  --ink-500: #4b5e72;
  --ink-400: #6e7f91;
  --ink-300: #9aa8b6;

  --melt: #ee6a17;
  --melt-deep: #c9560f;
  --melt-soft: #fdece0;

  --blueprint: #7fa6c9;

  --mist: #f0f2f5;
  --paper: #ffffff;
  --line: #d8dee5;
  --line-soft: #e7ebef;

  --ok: #1f8a4c;
  --sold: #8a94a0;

  --font-sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    Menlo, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 2px rgba(22, 34, 46, 0.06), 0 8px 24px rgba(22, 34, 46, 0.07);
  --shadow-lift: 0 2px 4px rgba(22, 34, 46, 0.08), 0 14px 34px rgba(22, 34, 46, 0.12);

  --container: 1180px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-800);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--melt-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  color: var(--ink-900);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--melt);
  outline-offset: 2px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

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

/* =========================================================
   2. 顶栏 + 页头
   ========================================================= */
.topbar {
  background: var(--ink-900);
  color: #c8d2dc;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar__note {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.topbar__contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar__contact a,
.topbar__contact span {
  color: #e8eef4;
}

.topbar__contact strong {
  color: var(--melt);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.site-header.is-stuck {
  box-shadow: 0 6px 18px rgba(22, 34, 46, 0.1);
}

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

/* 站牌式 Logo：仿模具铭牌的方形钢牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
}

.brand:hover {
  text-decoration: none;
}

.brand__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  background: var(--ink-800);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35);
  position: relative;
}

.brand__plate::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

.brand__text {
  line-height: 1.2;
}

.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 12px;
  color: var(--ink-400);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.custom-logo {
  max-height: 48px;
  width: auto;
}

/* 导航 */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--ink-700);
  font-weight: 500;
  border-radius: var(--radius);
}

.main-nav a:hover {
  text-decoration: none;
  color: var(--ink-900);
  background: var(--mist);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--melt-deep);
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-800);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   3. 按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--melt {
  background: var(--melt);
  color: #fff;
}

.btn--melt:hover {
  background: var(--melt-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-300);
}

.btn--ghost:hover {
  border-color: var(--ink-800);
  color: var(--ink-900);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--lg {
  padding: 15px 34px;
  font-size: 16px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* =========================================================
   4. 铭牌组件 —— 本主题的签名元素
   仿模具钢牌：四角铆钉、蚀刻分隔线、等宽字参数
   ========================================================= */
.plate {
  position: relative;
  background: linear-gradient(180deg, #fdfdfe 0%, #f3f5f7 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(22, 34, 46, 0.06);
}

.plate::before,
.plate::after,
.plate > .plate__rivets::before,
.plate > .plate__rivets::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #b7c1cb 45%, #7d8b99 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 1px 1px rgba(22, 34, 46, 0.3);
}

.plate::before {
  top: 7px;
  left: 7px;
}

.plate::after {
  top: 7px;
  right: 7px;
}

.plate > .plate__rivets::before {
  bottom: 7px;
  left: 7px;
}

.plate > .plate__rivets::after {
  bottom: 7px;
  right: 7px;
}

.plate--dark {
  background: linear-gradient(180deg, var(--ink-700) 0%, var(--ink-800) 100%);
  border-color: var(--ink-600);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 30px rgba(22, 34, 46, 0.35);
  color: #dfe6ec;
}

/* 参数行：label 在左（宋体感的小字），值用等宽字，如同钢牌上冲压出的字符 */
.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.spec:last-child {
  border-bottom: 0;
}

.spec__label {
  color: var(--ink-400);
  flex: none;
}

.spec__value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-800);
  letter-spacing: 0.02em;
  text-align: right;
}

.plate--dark .spec {
  border-bottom-color: var(--ink-600);
}

.plate--dark .spec__label {
  color: var(--ink-300);
}

.plate--dark .spec__value {
  color: #f2f6fa;
}

/* =========================================================
   5. 分型线分隔符（PL = Parting Line）
   ========================================================= */
.pl-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--ink-300);
}

.pl-rule::before,
.pl-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.pl-rule__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-400);
  background: var(--paper);
}

/* =========================================================
   6. 首屏 Hero —— 深钢底 + 图纸网格 + 模具剖面蓝图
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #eef3f8;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(127, 166, 201, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 166, 201, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--blueprint);
  margin-bottom: 18px;
}

.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blueprint);
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.22;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--melt);
}

.hero__sub {
  font-size: 17px;
  color: #b9c6d2;
  max-width: 34em;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-300);
  letter-spacing: 0.06em;
}

.hero__meta b {
  color: var(--blueprint);
  font-weight: 600;
}

/* 蓝图剖面区 */
.hero__figure {
  position: relative;
}

.hero__figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__figure .bp-line {
  stroke: var(--blueprint);
  stroke-width: 1.4;
  fill: none;
}

.hero__figure .bp-thin {
  stroke: rgba(127, 166, 201, 0.55);
  stroke-width: 0.8;
  fill: none;
}

.hero__figure .bp-dash {
  stroke: rgba(127, 166, 201, 0.7);
  stroke-width: 1;
  stroke-dasharray: 6 5;
  fill: none;
}

.hero__figure .bp-melt {
  stroke: var(--melt);
  stroke-width: 1.6;
  fill: rgba(238, 106, 23, 0.16);
}

.hero__figure .bp-fill {
  fill: rgba(127, 166, 201, 0.08);
  stroke: var(--blueprint);
  stroke-width: 1.4;
}

.hero__figure .bp-text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #a9bccd;
  letter-spacing: 0.12em;
}

.hero__figure .bp-text--melt {
  fill: var(--melt);
}

/* =========================================================
   7. 通用 Section
   ========================================================= */
.section {
  padding: 72px 0;
}

.section--paper {
  background: var(--paper);
}

.section--ink {
  background: var(--ink-800);
  color: #dfe6ec;
}

.section__head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--melt-deep);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section--ink .eyebrow {
  color: var(--melt);
}

.section__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.section--ink .section__title {
  color: #fff;
}

.section__desc {
  color: var(--ink-500);
  font-size: 16px;
  margin-top: 10px;
}

.section--ink .section__desc {
  color: #aebac6;
}

.section__more {
  margin-top: 36px;
  text-align: center;
}

/* =========================================================
   8. 数据带（铭牌式）
   ========================================================= */
.stats-band {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}

.stats-band .plate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 26px 18px;
}

.stat {
  text-align: center;
  padding: 4px 12px;
  border-right: 1px dashed var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

.stat__num small {
  font-size: 0.5em;
  color: var(--melt-deep);
  margin-left: 2px;
}

.stat__label {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 2px;
}

/* =========================================================
   9. 回收范围（品类卡）
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  color: var(--ink-800);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.cat-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--ink-300);
}

.cat-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--melt-soft);
  color: var(--melt-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cat-card__icon svg {
  width: 24px;
  height: 24px;
}

.cat-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.cat-card p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
}

.cat-card__count {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--melt-deep);
  letter-spacing: 0.06em;
}

/* =========================================================
   10. 模具卡片
   ========================================================= */
.mold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mold-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.mold-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.mold-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  overflow: hidden;
}

.mold-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.mold-card:hover .mold-card__media img {
  transform: scale(1.04);
}

.mold-card__media .no-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.badge--onsale {
  background: var(--melt);
  color: #fff;
}

.badge--sold {
  background: var(--sold);
  color: #fff;
}

.badge--wanted {
  background: var(--ok);
  color: #fff;
}

.mold-card__body {
  padding: 18px 18px 6px;
  flex: 1;
}

.mold-card__title {
  font-size: 17px;
  margin-bottom: 4px;
}

.mold-card__title a {
  color: var(--ink-900);
}

.mold-card__title a:hover {
  color: var(--melt-deep);
  text-decoration: none;
}

.mold-card__cat {
  font-size: 13px;
  color: var(--ink-400);
}

.mold-card__cat a {
  color: var(--ink-400);
}

/* 卡片底部：迷你铭牌 */
.mold-card__plate {
  margin: 14px;
  padding: 10px 14px;
}

.mold-card__plate .spec {
  padding: 6px 0;
  font-size: 13.5px;
}

.mold-card__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--melt-deep);
}

.mold-card__price small {
  font-size: 12px;
  color: var(--ink-400);
  font-weight: 400;
  margin-left: 2px;
}

/* =========================================================
   11. 交易流程（真实顺序，允许编号）
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-lg);
  padding: 26px 22px 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--melt);
  display: inline-block;
  border: 1px solid var(--melt);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.step h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: #aebac6;
  margin: 0;
}

.step__arrow {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-500);
  font-family: var(--font-mono);
}

.step:last-child .step__arrow {
  display: none;
}

/* =========================================================
   12. 为什么选我们
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-item {
  padding: 28px 26px;
}

.why-item h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-item h3::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--melt);
  border-radius: 2px;
  flex: none;
}

.why-item p {
  font-size: 14.5px;
  color: var(--ink-500);
  margin: 0;
}

/* =========================================================
   13. CTA 横幅
   ========================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--melt-deep), var(--melt));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 18px 44px rgba(201, 86, 15, 0.35);
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
}

.cta-band .btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.75);
}

.cta-band__phone {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.03em;
  color: #fff;
}

/* =========================================================
   14. 资讯卡
   ========================================================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.post-card time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-400);
  letter-spacing: 0.08em;
}

.post-card h3 {
  font-size: 17px;
  margin: 10px 0 8px;
}

.post-card h3 a {
  color: var(--ink-900);
}

.post-card h3 a:hover {
  color: var(--melt-deep);
  text-decoration: none;
}

.post-card p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0 0 14px;
  flex: 1;
}

.post-card .more {
  font-size: 13.5px;
  font-weight: 600;
}

/* =========================================================
   15. 页脚
   ========================================================= */
.site-footer {
  background: var(--ink-900);
  color: #a9b6c2;
  margin-top: 72px;
}

.site-footer a {
  color: #cbd6e0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 44px;
}

.footer-col h3 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.9;
}

.footer-contact li {
  display: flex;
  gap: 8px;
}

.footer-contact .k {
  color: var(--ink-400);
  flex: none;
}

.footer-contact .v {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: #e6edf3;
}

.footer-bottom {
  border-top: 1px solid var(--ink-700);
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-400);
}

.footer-bottom a {
  color: var(--ink-300);
}

/* =========================================================
   16. 归档页 / 筛选
   ========================================================= */
.page-hero {
  background: var(--ink-900);
  color: #fff;
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(127, 166, 201, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 166, 201, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 6px;
}

.page-hero__desc {
  color: #aebac6;
  margin: 0;
  max-width: 46em;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--blueprint);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--blueprint);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.filters__label {
  font-size: 13px;
  color: var(--ink-400);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  margin-right: 4px;
}

.chip {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-600);
  font-size: 13.5px;
  transition: all 0.15s;
}

.chip:hover {
  text-decoration: none;
  border-color: var(--ink-400);
  color: var(--ink-900);
}

.chip.is-active {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: #fff;
}

.archive-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink-500);
}

/* 分页 */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 14px;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: #fff;
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  text-decoration: none;
  border-color: var(--ink-400);
}

/* =========================================================
   17. 模具详情页
   ========================================================= */
.mold-single {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.mold-single__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-900);
  position: relative;
}

.mold-single__media img {
  width: 100%;
}

.mold-single__media .no-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}

.mold-single__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.mold-single__gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mold-single__panel {
  position: sticky;
  top: 96px;
}

.mold-single__panel .plate {
  padding: 26px 26px 20px;
}

.mold-single__title {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 6px;
}

.mold-single__cat {
  font-size: 13.5px;
  color: var(--ink-400);
  margin-bottom: 16px;
}

.mold-single__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}

.mold-single__price .num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--melt-deep);
}

.mold-single__price .unit {
  color: var(--ink-400);
  font-size: 14px;
}

.mold-single__actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mold-single__hint {
  font-size: 12.5px;
  color: var(--ink-400);
  margin: 12px 0 0;
  text-align: center;
}

.mold-content {
  margin-top: 56px;
}

.mold-content__title,
.related__title {
  font-size: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--melt);
  margin-bottom: 20px;
}

.related {
  margin-top: 64px;
}

/* =========================================================
   18. 正文排版（页面 / 文章）
   ========================================================= */
.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin: 0 auto;
}

.entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.entry-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-400);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.entry-content {
  font-size: 16px;
}

.entry-content h2 {
  font-size: 24px;
  margin-top: 1.6em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.entry-content h3 {
  font-size: 19px;
  margin-top: 1.4em;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.2em 0;
}

.entry-content blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--melt);
  background: var(--melt-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-700);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14.5px;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.entry-content th {
  background: var(--mist);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-block-image figcaption,
.entry-content figcaption {
  font-size: 13px;
  color: var(--ink-400);
  text-align: center;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 860px;
  margin: 28px auto 0;
  font-size: 14px;
}

/* =========================================================
   19. 表单（询价 / 搜索 / 评论）
   ========================================================= */
.inquiry-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
}

.form-row label .req {
  color: var(--melt-deep);
}

.inquiry-form input[type="text"],
.inquiry-form input[type="tel"],
.inquiry-form input[type="email"],
.inquiry-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--melt);
  box-shadow: 0 0 0 3px rgba(238, 106, 23, 0.16);
}

.inquiry-form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 12.5px;
  color: var(--ink-400);
}

.hp-field {
  position: absolute !important;
  left: -9999px;
}

.notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.notice--ok {
  background: #e9f7ef;
  border-color: #bfe6cf;
  color: #14532d;
}

.notice--err {
  background: #fdeeee;
  border-color: #f2c4c4;
  color: #7f1d1d;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 评论 */
.comments-area {
  max-width: 860px;
  margin: 40px auto 0;
}

.comment-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.comment-list .comment {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.comment-list .comment .children {
  list-style: none;
  margin: 14px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--line-soft);
}

.comment-meta {
  font-size: 13px;
  color: var(--ink-400);
  margin-bottom: 8px;
}

/* =========================================================
   20. 404 / 其他
   ========================================================= */
.error-404 {
  text-align: center;
  padding: 90px 20px;
}

.error-404 .code {
  font-family: var(--font-mono);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  color: var(--line);
  line-height: 1;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink-800);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s;
  z-index: 90;
  box-shadow: var(--shadow-lift);
}

.back-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--melt);
}

/* 浮动联系条（移动端） */
.mobile-contact {
  display: none;
}

/* =========================================================
   21. 响应式
   ========================================================= */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero__figure {
    max-width: 560px;
  }

  .stats-band .plate {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .cat-grid,
  .mold-grid,
  .post-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step__arrow {
    display: none;
  }

  .mold-single {
    grid-template-columns: 1fr;
  }

  .mold-single__panel {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(22, 34, 46, 0.14);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .main-nav a {
    padding: 13px 24px;
    border-radius: 0;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }

  .cat-grid,
  .mold-grid,
  .post-grid,
  .why-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-band {
    padding: 32px 26px;
  }

  .topbar__note {
    display: none;
  }

  .mobile-contact {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(22, 34, 46, 0.12);
  }

  .mobile-contact a {
    flex: 1;
    text-align: center;
    padding: 13px 8px;
    font-weight: 700;
    font-size: 15px;
  }

  .mobile-contact a:first-child {
    color: var(--ink-800);
  }

  .mobile-contact a:last-child {
    background: var(--melt);
    color: #fff;
  }

  body {
    padding-bottom: 52px;
  }

  .back-top {
    bottom: 72px;
  }
}

/* =========================================================
   22. 动效偏好
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* WordPress 核心对齐类 */
.alignleft {
  float: left;
  margin: 0 1.2em 0.8em 0;
}

.alignright {
  float: right;
  margin: 0 0 0.8em 1.2em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.sticky {
  display: block;
}

.bypostauthor {
  display: block;
}
