/*
Theme Name: 折之环保 Zhezhi Origami
Theme URI: https://example.com/themes/zhezhi-origami
Author: 一叠纸
Author URI: https://example.com/yidiezhi
Description: 为杭州折之环保科技有限公司定制的中文企业主题,核心识别是「折纸折痕光影」:暖纸白(#f2eee4)与浅米(#e9e3d5)铺底,叠一层极淡纸张纤维纹;折面明暗用一组同源暖灰阶(高光面 #efe8da / 中间面 #d6cbb6 / 背光面 #b3a68c / 深折 #8a7c62)塑出立体折叠,墨(#33302a)写正文,单一柿橙(#d9663d)只点在 CTA、链接、关键数字与纸鹤点睛处。区块之间以「折痕」分隔(上浅下深的 1px 双线),区块底由几块大折面拼成,折缝处一道高光线;卡片是「一张折起的纸」(切角折页 + 折角背面深一阶 + 右下折痕);首屏是一座由折面拼出的折纸喷淋塔,塔顶停一只小纸鹤;按钮像折起的纸标签,一角翻折。工艺做成「七折成塔」的折叠步骤,案例做成可展开的「折页」。安静、精巧,有纸的温度与折叠的秩序。演示用虚构主题,零外链,纯 CSS 与内联 SVG。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhezhi-origami
Tags: business, custom-menu, custom-logo, two-columns, right-sidebar, translation-ready, full-width-template
*/

/* ==================================================
   0. 变量:纸底 / 折面暖灰阶 / 墨 / 柿橙 / 折痕
================================================== */
:root {
  --paper: #f2eee4;         /* 暖纸白:主底 */
  --paper-2: #e9e3d5;       /* 浅米:交替底 */
  --paper-3: #f6f2e9;       /* 更亮纸白:卡片高光底 */

  --face-hi: #efe8da;       /* 折面高光面 */
  --face-mid: #d6cbb6;      /* 折面中间面 */
  --face-low: #b3a68c;      /* 折面背光面 */
  --face-deep: #8a7c62;     /* 深折 */

  --ink: #33302a;           /* 墨:主文字(纸底 ≥7:1) */
  --ink-2: #4d473d;         /* 次墨:副文本(纸底 ≥7:1) */
  --ink-soft: #6b6456;      /* 淡墨:标签 / 次要注记 */

  --persimmon: #d9663d;     /* 柿橙:点睛 / 大号数字 / 装饰 */
  --persimmon-deep: #bf5227;/* 深柿橙:CTA 底 / 文字链接 */
  --persimmon-wash: #f0d9cb;/* 柿橙极淡晕:小面积衬底 */

  --crease-hi: rgba(255, 252, 245, .82);  /* 折痕高光(上) */
  --crease-lo: rgba(108, 96, 74, .38);    /* 折痕暗线(下) */
  --hair: rgba(108, 96, 74, .22);         /* 1px 折缝细线 */
  --hair-soft: rgba(108, 96, 74, .13);    /* 极淡折缝 */

  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "Source Han Sans SC", "Noto Sans SC", "WenQuanYi Micro Hei", sans-serif;
  --hand: "Segoe Print", "Bradley Hand", "Xingkai SC", "Hannotate SC", "Comic Sans MS", var(--sans);
  --mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", "DejaVu Sans Mono", "Consolas", "Courier New", monospace;

  --radius: 0px;            /* 折纸取直角:干脆的折边,不用圆角 */
  --wrap: 1160px;
  --gap: clamp(16px, 2.4vw, 26px);
  --dog: 24px;              /* 卡片折角尺寸 */
}

/* ==================================================
   1. 基础 / 纸张纤维底纹
================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  /* 极淡纸张纤维:两向 1px 交叉纹 + 一层柔和受光晕 */
  background-image:
    repeating-linear-gradient(0deg, rgba(108, 96, 74, .022) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(108, 96, 74, .020) 0 1px, transparent 1px 4px),
    radial-gradient(120% 90% at 22% 8%, rgba(246, 242, 233, .7) 0%, rgba(233, 227, 213, 0) 55%);
  background-size: 4px 4px, 4px 4px, 100% 100%;
  background-attachment: scroll, scroll, fixed;
  word-break: break-word;
  overflow-x: hidden;
}

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

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
img { max-width: 100%; height: auto; }
a { color: var(--persimmon-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s ease; }
a:hover { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
strong, b { color: var(--ink); font-weight: 800; }
blockquote {
  margin: 1.4em 0; padding: .4em 1.1em;
  border-left: 3px solid var(--persimmon);
  background: var(--face-hi);
  color: var(--ink-2);
}
code, kbd, samp {
  font-family: var(--mono);
  background: var(--face-hi);
  color: var(--persimmon-deep);
  padding: .06em .38em; border-radius: 2px; font-size: .92em;
}

::selection { background: var(--persimmon); color: #fff; }
:focus-visible { outline: 2px solid var(--persimmon-deep); outline-offset: 2px; }

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

/* 等宽数字 / 手写感数字 */
.mono, .desig, .spec-table td, .aside-tel, .brand-sub, .error-code, .card-no, .rec-no {
  font-family: var(--mono);
}
.hand { font-family: var(--hand); }
.stat-num, .stat-unit { font-variant-numeric: tabular-nums; }

/* 位号 / 折页编号点缀 */
.desig {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* 无障碍 */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden; position: absolute !important;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--persimmon-deep); color: #fff;
  padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==================================================
   2. 折痕分隔线(上浅下深的 1px 双线,像纸被折起)
================================================== */
.crease { display: block; width: 100%; line-height: 0; }
.crease svg { display: block; width: 100%; height: 22px; }

/* ==================================================
   3. 按钮:折起的纸标签(一角翻折)
================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: .96rem;
  line-height: 1; text-decoration: none;
  padding: 13px 22px; cursor: pointer;
  color: var(--ink); background: var(--face-hi);
  border: 1px solid var(--face-low);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
  transition: transform .22s ease, box-shadow .22s ease, background .18s ease, color .18s ease;
}
.btn::after { /* 翻折的折角背面 */
  content: ""; position: absolute; top: 0; right: 0;
  width: 13px; height: 13px;
  background: var(--face-low);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transition: width .22s ease, height .22s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(74, 62, 44, .6); }
.btn:hover::after { width: 18px; height: 18px; }
.btn:focus-visible { outline: 2px solid var(--persimmon-deep); outline-offset: 3px; }

.btn--fold {
  color: #fff; background: var(--persimmon-deep);
  border-color: var(--persimmon-deep);
}
.btn--fold::after { background: rgba(120, 44, 14, .55); }
.btn--fold:hover { color: #fff; background: #a9451e; }

.btn--ghost { background: transparent; border-color: var(--face-low); }
.btn--ghost::after { background: var(--face-mid); }

/* ==================================================
   4. 页头
================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 238, 228, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hair);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(74, 62, 44, .7); background: rgba(244, 240, 231, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; }

.site-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-flex; }
.brand-name { display: block; font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; line-height: 1.1; color: var(--ink); }
.brand-sub { display: block; font-size: .62rem; letter-spacing: .26em; color: var(--ink-soft); text-transform: uppercase; margin-top: 3px; }

/* 导航 */
.site-nav { display: flex; align-items: center; }
.nav-toggle {
  display: none; width: 44px; height: 40px;
  border: 1px solid var(--face-low); background: var(--face-hi);
  cursor: pointer; padding: 0; position: relative;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.nav-toggle .bar { display: block; width: 20px; height: 2px; margin: 3px auto; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-menu li { position: relative; }
.primary-menu a {
  display: inline-block; padding: 9px 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem;
  border-bottom: 2px solid transparent;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--persimmon-deep); border-bottom-color: var(--persimmon); }
.primary-menu .sub-menu {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--paper-3); border: 1px solid var(--hair);
  box-shadow: 0 14px 30px -22px rgba(74, 62, 44, .8);
  display: none; z-index: 20;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 8px 12px; border: 0; }

/* ==================================================
   5. 区块骨架 / 折面底
================================================== */
.section { position: relative; padding: clamp(52px, 7vw, 92px) 0; overflow: hidden; }
.section > .wrap { position: relative; z-index: 2; }
.section--paper2 { background: var(--paper-2); }
.section--fold { background: var(--paper-2); }
/* 大折面:clip-path 多边形 + 暖灰阶,折缝处高光/暗线 */
.section--fold::before {
  content: ""; position: absolute; z-index: 0; inset: 0 auto 0 0;
  width: 46%;
  background: linear-gradient(122deg, var(--face-mid) 0%, var(--face-low) 100%);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
  opacity: .5;
}
.section--fold::after {
  content: ""; position: absolute; z-index: 0; inset: 0 0 0 auto;
  width: 40%;
  background: linear-gradient(214deg, var(--face-hi) 0%, var(--face-mid) 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .45;
}

.sec-head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 44px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  color: var(--persimmon-deep); text-transform: uppercase; margin: 0 0 12px;
}
.kicker::before { content: ""; width: 22px; height: 0; border-top: 2px solid var(--persimmon); }
.sec-title { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 0 0 .3em; }
.sec-lead { color: var(--ink-2); font-size: 1.03rem; margin: 0; }

/* 折纸小徽记(标题旁) */
.fold-badge { display: inline-block; vertical-align: middle; margin-left: 12px; }
.fold-badge svg { display: block; }

/* ==================================================
   6. Hero:折纸喷淋塔 + 纸鹤
================================================== */
.hero { position: relative; padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 6vw, 84px); overflow: hidden; }
.hero::before { /* 背后一块大折面 */
  content: ""; position: absolute; z-index: 0; inset: -10% -10% auto auto;
  width: 58%; height: 120%;
  background: linear-gradient(200deg, var(--face-hi) 0%, var(--face-mid) 55%, var(--face-low) 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 78%);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 52px); align-items: center; }

.slogan-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: var(--paper-3);
  border: 1px solid var(--face-low);
  padding: 7px 14px 7px 12px; margin-bottom: 20px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.slogan-chip .dot { width: 8px; height: 8px; background: var(--persimmon); transform: rotate(45deg); flex: none; }

.hero-title { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.16; letter-spacing: .01em; margin: 0 0 .5em; }
.hero-title .line { display: block; }
.hero-title .mark { color: var(--persimmon-deep); position: relative; }
.hero-title .mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em; background: var(--persimmon-wash); z-index: -1; }
.hero-lede { color: var(--ink-2); font-size: 1.08rem; max-width: 44ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero-tags { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; margin: 0; }

.hero-figure { margin: 0; position: relative; }
.hero-figure svg { display: block; width: 100%; height: auto; }
.hero-cap {
  margin-top: 12px; text-align: center;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--persimmon-deep);
}

/* Hero 折纸塔配色类(SVG 内 class) */
.f-hi { fill: var(--face-hi); }
.f-mid { fill: var(--face-mid); }
.f-low { fill: var(--face-low); }
.f-deep { fill: var(--face-deep); }
.f-paper { fill: var(--paper-3); }
.crease-line { stroke: var(--crease-hi); stroke-width: 1; fill: none; }
.crease-dark { stroke: var(--crease-lo); stroke-width: 1; fill: none; }
.guide { stroke: var(--ink-soft); stroke-width: 1; fill: none; stroke-dasharray: 3 3; }
.guide-txt { fill: var(--ink-soft); font-family: var(--mono); font-size: 11px; letter-spacing: .5px; }
.accent { fill: var(--persimmon); }

/* 纸鹤轻停(克制的浮动) */
.crane { transform-box: fill-box; transform-origin: center bottom; animation: crane-bob 5.5s ease-in-out infinite; }
@keyframes crane-bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-4px) rotate(-1.2deg); } }

/* ==================================================
   7. 纸艺卡片(一张折起的纸)
================================================== */
.fold-card {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--hair);
  padding: 24px 22px 22px;
  clip-path: polygon(0 0, calc(100% - var(--dog)) 0, 100% var(--dog), 100% 100%, 0 100%);
  transition: transform .28s ease, box-shadow .28s ease;
}
.fold-card::after { /* 折角背面(深一阶) */
  content: ""; position: absolute; top: 0; right: 0;
  width: var(--dog); height: var(--dog);
  background: linear-gradient(135deg, var(--face-low) 0%, var(--face-deep) 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transition: width .28s ease, height .28s ease;
}
.fold-card::before { /* 右下角一道折痕 */
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 46px; height: 46px; pointer-events: none;
  background:
    linear-gradient(135deg, transparent 48%, var(--crease-hi) 49% 50%, var(--crease-lo) 51% 52%, transparent 53%);
}
.fold-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(74, 62, 44, .75); }
.fold-card:hover::after { width: calc(var(--dog) + 8px); height: calc(var(--dog) + 8px); }

.card-no { position: absolute; top: 14px; left: 20px; font-size: .66rem; color: var(--ink-soft); letter-spacing: .12em; }

/* ==================================================
   8. 数据折卡
================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { position: relative; padding-left: 16px; }
.stat::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: linear-gradient(var(--crease-hi), var(--persimmon) 50%, var(--crease-lo)); }
.stat-value { display: flex; align-items: baseline; gap: 3px; margin: 4px 0 6px; }
.stat-num { font-size: clamp(2.1rem, 4.4vw, 2.9rem); font-weight: 800; color: var(--persimmon-deep); line-height: 1; }
.stat-unit { font-size: 1.05rem; font-weight: 700; color: var(--ink-2); }
.stat-label { color: var(--ink-2); font-size: .92rem; }

/* ==================================================
   9. 七折成塔:折叠步骤
================================================== */
.fold-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fold-step { position: relative; }
.fold-step .step-fig {
  position: relative; background: var(--paper-3); border: 1px solid var(--hair);
  padding: 16px; margin-bottom: 12px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.fold-step .step-fig::after {
  content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px;
  background: var(--face-low); clip-path: polygon(0 0, 100% 100%, 0 100%);
}
.fold-step svg { display: block; width: 100%; height: auto; }
.step-ord {
  display: inline-block; font-family: var(--hand); font-size: 1.05rem; font-weight: 700;
  color: var(--persimmon-deep); margin-bottom: 2px;
}
.fold-step h3 { font-size: 1.04rem; margin: 0 0 .3em; }
.fold-step p { color: var(--ink-2); font-size: .9rem; margin: 0; }
.fold-step .step-craft { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 4px; }

/* ==================================================
   10. 折纸设备:型号折卡
================================================== */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.model-card { display: flex; flex-direction: column; }
.model-fig { display: flex; justify-content: center; margin-bottom: 14px; min-height: 150px; align-items: flex-end; }
.model-fig svg { display: block; }
.model-fig img { width: auto; max-height: 160px; }
.model-name { font-family: var(--mono); font-weight: 700; color: var(--persimmon-deep); letter-spacing: .06em; margin: 0 0 2px; }
.model-level { display: inline-block; font-family: var(--hand); font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.model-card h3 { font-size: 1.16rem; margin: 0 0 .4em; }
.model-card h3 a { color: var(--ink); text-decoration: none; }
.model-card h3 a:hover { color: var(--persimmon-deep); }
.model-desc { color: var(--ink-2); font-size: .95rem; margin: 0 0 14px; flex: 1; }
.spec-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0 0 14px; }
.spec-chips li {
  font-family: var(--mono); font-size: .74rem; color: var(--ink-2);
  background: var(--face-hi); border: 1px solid var(--hair);
  padding: 4px 9px;
}
.card-link { color: var(--persimmon-deep); font-weight: 700; text-decoration: none; font-size: .94rem; }
.card-link:hover { color: var(--ink); }
.demo-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  color: var(--persimmon-deep); background: var(--persimmon-wash);
  padding: 3px 9px;
}

/* ==================================================
   11. 折痕档案:可展开折页
================================================== */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.foldpage { position: relative; background: var(--paper-3); border: 1px solid var(--hair); overflow: hidden; }
.foldpage .fp-head {
  position: relative; padding: 18px 20px 16px;
  background: linear-gradient(160deg, var(--face-hi), var(--face-mid));
  border-bottom: 1px solid var(--hair);
}
.foldpage .fp-head::after { /* 折页封面折角 */
  content: ""; position: absolute; top: 0; right: 0; width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--face-low), var(--face-deep));
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.fp-model { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--persimmon-deep); }
.fp-title { font-size: 1.1rem; margin: 6px 0 0; }
.fp-body { padding: 6px 20px 20px; }
.fp-rows { list-style: none; margin: 0; padding: 0; }
.fp-row {
  display: grid; grid-template-columns: 74px 1fr; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed var(--hair);
  position: relative;
}
.fp-row:last-child { border-bottom: 0; }
.fp-k { font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.fp-v { color: var(--ink-2); font-size: .92rem; }
.fp-v.num { font-family: var(--mono); color: var(--persimmon-deep); font-weight: 700; }
.fp-seal {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: .76rem; font-weight: 700; color: var(--ink-2);
}
.fp-seal .dot { width: 7px; height: 7px; background: var(--persimmon); transform: rotate(45deg); }

/* ==================================================
   12. 通用条目卡 / 列表
================================================== */
.entries { display: grid; gap: var(--gap); }
.entry-card { }
.entry-meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); margin-bottom: 8px; }
.entry-title { font-size: 1.24rem; margin: 0 0 .4em; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--persimmon-deep); }
.entry-ex { color: var(--ink-2); }
.more-link { color: var(--persimmon-deep); font-weight: 700; text-decoration: none; }
.more-link:hover { color: var(--ink); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* ==================================================
   13. 关于 + 选料
================================================== */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.about-copy p { color: var(--ink-2); }
.about-notes { display: grid; gap: var(--gap); }
.note-card { }
.field-label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--persimmon-deep); text-transform: uppercase; margin-bottom: 8px; }
.note-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ==================================================
   14. 联系
================================================== */
.contact-wrap { position: relative; background: var(--paper-3); border: 1px solid var(--face-low); padding: clamp(26px, 4vw, 44px); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.contact-wrap::after { content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; background: linear-gradient(135deg, var(--face-low), var(--face-deep)); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(22px, 3vw, 40px); align-items: center; }
.contact-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.contact-inner > div > p { color: var(--ink-2); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.contact-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-fields li { display: flex; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--hair); }
.contact-fields li:last-child { border-bottom: 0; }
.contact-fields .ck { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--persimmon-deep); min-width: 44px; }
.contact-fields span:last-child { color: var(--ink-2); }

/* ==================================================
   15. 页脚
================================================== */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--hair); padding: clamp(40px, 5vw, 60px) 0 26px; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-title { font-size: 1.02rem; margin: 0 0 12px; }
.footer-about p { color: var(--ink-2); font-size: .92rem; }
.footer-slogan { color: var(--persimmon-deep); font-weight: 700; }
.footer-menu { flex-direction: column; gap: 0; }
.footer-menu li { border-bottom: 1px dashed var(--hair); }
.footer-menu a { display: block; padding: 8px 0; color: var(--ink-2); text-decoration: none; }
.footer-menu a:hover { color: var(--persimmon-deep); }
.footer-contact { font-style: normal; display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.footer-supplier { margin: 30px 0 0; padding: 16px 18px; background: var(--face-hi); border-left: 3px solid var(--persimmon); color: var(--ink-2); font-size: .9rem; }
.footer-legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--ink-soft); font-size: .82rem; }
.footer-legal p { margin: 0 0 .5em; }

/* ==================================================
   16. 页面 / 文章 / 归档 / 侧栏
================================================== */
.page-header { padding: clamp(40px, 5vw, 66px) 0 clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--hair); position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; right: -4%; top: -30%; width: 34%; height: 160%; background: linear-gradient(200deg, var(--face-hi), var(--face-mid)); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); opacity: .4; }
.page-header .wrap { position: relative; z-index: 2; }
.page-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; }
.archive-desc { color: var(--ink-2); margin-top: .5em; }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 48px); padding-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 70px); align-items: start; }
.layout-one { padding-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 70px); }
.entries-col { min-width: 0; }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content img { border: 1px solid var(--hair); }
.entry-content > p:first-of-type { }
.product-thumb { margin: 0 0 24px; border: 1px solid var(--hair); }
.post-tags { margin-top: 20px; font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); }
.post-nav { margin-top: 30px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hair); padding-top: 18px; }
.post-nav a { color: var(--ink); text-decoration: none; }
.post-nav a:hover { color: var(--persimmon-deep); }
.nav-label { display: block; font-size: .74rem; color: var(--ink-soft); font-family: var(--mono); }
.nav-title { font-weight: 700; }

.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination .current {
  display: inline-flex; padding: 8px 14px; text-decoration: none;
  border: 1px solid var(--hair); color: var(--ink); background: var(--paper-3);
}
.pagination .current { background: var(--persimmon-deep); color: #fff; border-color: var(--persimmon-deep); }
.pagination a:hover { border-color: var(--persimmon); color: var(--persimmon-deep); }

/* 侧栏 */
.widget-area { min-width: 0; }
.widget { background: var(--paper-3); border: 1px solid var(--hair); padding: 18px 18px; margin-bottom: var(--gap); position: relative; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.widget::after { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: var(--face-low); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.widget-title { font-size: 1rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--persimmon); display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--hair); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink-2); text-decoration: none; }
.widget a:hover { color: var(--persimmon-deep); }
.log-list a { display: block; }

/* 搜索表单 */
.search-form { display: flex; gap: 8px; }
.search-field-wrap { flex: 1; }
.search-field {
  width: 100%; padding: 10px 12px; font: inherit;
  border: 1px solid var(--face-low); background: var(--paper-3); color: var(--ink);
}
.search-field:focus { outline: 2px solid var(--persimmon-deep); outline-offset: 1px; }
.search-submit { flex: none; }

/* 产品单页 */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); padding-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(40px, 5vw, 70px); align-items: start; }
.product-fig-fallback { display: flex; justify-content: center; padding: 24px; background: var(--face-hi); border: 1px solid var(--hair); margin-bottom: 22px; }
.product-aside { position: sticky; top: 88px; }
.aside-panel { background: var(--paper-3); border: 1px solid var(--face-low); padding: 20px; position: relative; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.aside-panel::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(135deg, var(--face-low), var(--face-deep)); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .9rem; }
.spec-table caption { text-align: left; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--persimmon-deep); text-transform: uppercase; margin-bottom: 10px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 8px; border-bottom: 1px dashed var(--hair); vertical-align: top; }
.spec-table thead th { border-bottom: 2px solid var(--face-low); color: var(--ink); }
.spec-table tbody th { color: var(--ink-soft); font-weight: 700; width: 40%; }
.spec-table td { color: var(--ink-2); }
.spec-note { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); margin: 4px 0 16px; }
.aside-cta { border-top: 1px solid var(--hair); padding-top: 16px; }
.aside-cta .field-label { margin-bottom: 12px; text-transform: none; letter-spacing: .02em; font-family: var(--sans); font-size: .92rem; color: var(--ink); font-weight: 700; }
.aside-tel { display: block; margin-top: 12px; font-size: 1.1rem; color: var(--ink); font-weight: 700; }
.supplier-note { margin-top: 14px; font-size: .85rem; color: var(--ink-soft); border-top: 1px dashed var(--hair); padding-top: 12px; }
.related { margin-top: 30px; border-top: 1px solid var(--hair); padding-top: 18px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { color: var(--persimmon-deep); text-decoration: none; }
.related a:hover { color: var(--ink); }

/* 空状态 / 404 */
.empty-note { text-align: center; max-width: 560px; margin: 0 auto; padding: clamp(30px, 5vw, 56px) 0; }
.empty-note svg { display: block; margin: 0 auto 18px; }
.empty-title { font-size: 1.4rem; margin: 0 0 .4em; }
.empty-desc { color: var(--ink-2); margin: 0 0 20px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 20px; }
.sec-404 { padding: clamp(50px, 8vw, 100px) 0; }
.error-code { display: inline-block; font-family: var(--mono); font-size: .8rem; letter-spacing: .18em; color: var(--persimmon-deep); margin-bottom: 8px; }

.star-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* 表格 / 通用内容 */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--hair); padding: 8px 10px; }
.entry-content th { background: var(--face-hi); }

/* ==================================================
   17. 折叠入场动画(reveal)/ reduced-motion
================================================== */
html.js .reveal { opacity: 0; transform: perspective(900px) rotateX(-14deg) translateY(16px); transform-origin: top center; }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .72s cubic-bezier(.2, .72, .2, 1); }
html.js .reveal.delay-1 { transition-delay: .09s; }
html.js .reveal.delay-2 { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .crane { animation: none !important; }
  .btn, .fold-card, .site-header { transition: none !important; }
  .fold-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* ==================================================
   18. 响应式
================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; margin: 4px auto 0; }
  .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .fold-steps { grid-template-columns: repeat(2, 1fr); }
  .product-layout, .layout-side { grid-template-columns: 1fr; }
  .product-aside { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: relative; }
  .nav-panel {
    position: absolute; right: 0; top: calc(100% + 12px);
    min-width: 232px; background: var(--paper-3); border: 1px solid var(--face-low);
    box-shadow: 0 18px 40px -26px rgba(74, 62, 44, .85);
    padding: 8px; display: none;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  }
  .site-header.nav-open .nav-panel { display: block; }
  .site-header.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .primary-menu { flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: 11px 12px; border-bottom: 1px dashed var(--hair); }
  .primary-menu a:hover, .primary-menu .current-menu-item > a { border-bottom-color: var(--hair); }
  .primary-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; background: transparent; }
}

@media (max-width: 620px) {
  .model-grid, .news-grid, .archive-grid, .star-grid { grid-template-columns: 1fr; }
  .stat-grid, .fold-steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}
