/*
Theme Name: 弈青环保 Yiju Weiqi
Theme URI: https://example.com/themes/yiju-weiqi
Author: 半目先生
Author URI: https://example.com/banmu
Description: 为临汾弈青环保设备有限公司定制的围棋棋枰视觉中文主题:楸木棋盘底、19路墨线网格与星位、黑白棋子元素、衬线标题;定式图鉴产品、复盘室案例、段位免状、棋钟工期与「此处无子」404。演示用虚构主题。
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: yiju-weiqi
Tags: business, custom-menu, custom-logo, two-columns, right-sidebar
*/

/* --------------------------------------------------
   0. 变量:楸木 / 纸白 / 墨黑 / 玄黑子 / 蛤白子 / 紫檀
-------------------------------------------------- */
:root {
  --qiu: #e9d5a8;            /* 楸木棋盘底 */
  --qiu-grain: rgba(151, 117, 58, .12); /* 木纹微色差 */
  --qiu-deep: #d9bd82;       /* 板缘 */
  --paper: #faf8f2;          /* 纸白 */
  --card: #fffdf8;
  --ink: #232019;            /* 墨黑 */
  --ink-soft: #5a5344;       /* 仅用于纸白底之上 */
  --stone-b: #1d1c1a;        /* 玄黑子 */
  --stone-w: #f5f2ea;        /* 蛤白子 */
  --tan: #5d3a2a;            /* 棋盒紫檀 */
  --tan-deep: #48281b;
  --line: rgba(35, 32, 25, .55);  /* 棋盘线 */
  --hair: rgba(35, 32, 25, .16);  /* 发丝边框 */
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --radius: 6px;             /* 棋盒盖圆角小方 */
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  word-break: break-word;
}

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

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
img { max-width: 100%; height: auto; }
a { color: var(--tan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tan-deep); }
hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }

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

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

/* 无障碍 */
.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(--tan); color: #fff; padding: .6em 1.2em; border-radius: var(--radius);
}
.skip-link:focus {
  left: 12px; top: 12px;
  clip: auto; clip-path: none; height: auto; width: auto;
}

/* WordPress 常规类 */
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--ink-soft); text-align: center; padding: .4em 0; }
.sticky .entry-title::after { content: "★"; margin-left: .4em; color: var(--tan); font-size: .8em; }
.bypostauthor { border-left: 3px solid var(--tan); }

/* --------------------------------------------------
   2. 通用部件:木底 / 棋子 / 星位横线 / 按钮
-------------------------------------------------- */
/* 楸木底 + 横向木纹(硬边条纹,非光效) */
.bg-qiu {
  background-color: var(--qiu);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--qiu-grain) 0 1px,
    rgba(151, 117, 58, 0) 1px 7px
  );
}

/* 棋子:radial 高光是全站唯一允许的渐变 */
.gostone {
  display: inline-block;
  width: 1em; height: 1em;
  border-radius: 50%;
  vertical-align: -.12em;
  flex: none;
}
.gostone--b { background: radial-gradient(circle at 35% 30%, #5a544c 0%, var(--stone-b) 62%); }
.gostone--w {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--stone-w) 55%, #ded7c5 100%);
  border: 1px solid rgba(35, 32, 25, .3);
}

/* 带星位的分隔横线:一条墨线 + 三颗星 */
.goban-rule {
  border: 0;
  height: 11px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  background-image:
    radial-gradient(circle, var(--ink) 0 2.6px, rgba(35, 32, 25, 0) 3.4px),
    radial-gradient(circle, var(--ink) 0 2.6px, rgba(35, 32, 25, 0) 3.4px),
    radial-gradient(circle, var(--ink) 0 2.6px, rgba(35, 32, 25, 0) 3.4px),
    linear-gradient(var(--line), var(--line));
  background-size: 11px 11px, 11px 11px, 11px 11px, calc(100% - 48px) 1px;
  background-position: 25% center, center center, 75% center, center center;
  background-repeat: no-repeat;
}

/* 交替黑白小棋子列表符号 */
.stone-list { list-style: none; padding-left: 0; }
.stone-list li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.stone-list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: .95em; height: .95em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a544c 0%, var(--stone-b) 62%);
}
.stone-list li:nth-child(even)::before {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--stone-w) 55%, #ded7c5 100%);
  border: 1px solid rgba(35, 32, 25, .3);
}

/* 按钮:紫檀底白字,棋盒盖圆角小方 */
.btn {
  display: inline-block;
  padding: .72em 1.6em;
  background: var(--tan);
  color: #fff;
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--tan-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: rgba(35, 32, 25, .07); color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--tan); border-color: var(--paper); }
.btn--paper:hover { background: #fff; color: var(--tan-deep); }

/* 小题引 */
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .22em;
  color: var(--tan);
  margin-bottom: .9em;
}
.bg-qiu .kicker { color: var(--ink); }
.kicker .gostone { width: .85em; height: .85em; }

.demo-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--tan);
  border: 1px solid var(--tan);
  border-radius: 4px;
  padding: .1em .6em;
  vertical-align: middle;
}

/* 手数 / 数字:等宽 */
.mono, .mv, .t-num, .tesuu-no, .entry-meta, .news-date, .dan-year { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------
   3. 页头与导航
-------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.site-header.is-scrolled { border-bottom-color: rgba(35, 32, 25, .4); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}
.site-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: block; flex: none; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 44px; width: auto; }
.brand-text { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand-text:hover { color: var(--ink); }
.brand-name { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; }
.brand-sub { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .3em; color: var(--ink-soft); margin-top: 2px; }

.site-nav { display: flex; align-items: center; }
.primary-menu {
  list-style: none; display: flex; gap: 26px;
  margin: 0; padding: 0;
}
.primary-menu a {
  display: inline-block;
  padding: .4em 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.primary-menu a:hover { color: var(--tan); border-bottom-color: var(--tan); }
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { border-bottom-color: var(--ink); }

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

/* --------------------------------------------------
   4. 首页 hero:一角棋枰
-------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero-board { position: absolute; top: 0; right: 0; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px; padding-bottom: 84px;
}
.slogan-chip {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: .35em 1em;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 1.4em;
}
.slogan-chip .gostone { width: .9em; height: .9em; }
.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  margin-bottom: .45em;
}
.hero-title .line { display: block; }
.hero-lede { max-width: 34em; font-size: 1.06rem; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.6em; }
.hero-tags { font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; margin: 0; }
.hero-figure { margin: 0; text-align: center; }
.hero-figure svg { max-width: 100%; height: auto; }
.hero-cap {
  font-family: var(--serif);
  font-size: .9rem;
  letter-spacing: .08em;
  margin-top: .6em;
}

/* --------------------------------------------------
   5. 白方实地:围空数据
-------------------------------------------------- */
.sec { padding: 76px 0; }
.sec-head { max-width: 680px; margin-bottom: 42px; }
.sec-title { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: .35em; }
.sec-lede { color: var(--ink-soft); margin-bottom: 0; }
.bg-qiu .sec-lede { color: var(--ink); }

.territory-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.territory {
  position: relative;
  text-align: center;
  padding: 20px 14px 22px;
  border: 1px solid rgba(35, 32, 25, .35);
  border-radius: var(--radius);
  background-color: var(--qiu);
  background-image:
    repeating-linear-gradient(to right, var(--line) 0 1px, rgba(35, 32, 25, 0) 1px 28px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, rgba(35, 32, 25, 0) 1px 28px),
    repeating-linear-gradient(to bottom, var(--qiu-grain) 0 1px, rgba(151, 117, 58, 0) 1px 7px);
}
.t-wall { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.t-wall .gostone { width: 20px; height: 20px; }
.t-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .15em;
  color: var(--ink);
}
.t-unit { font-style: normal; font-family: var(--serif); font-size: 1rem; margin-left: .2em; }
.t-cap { font-size: .84rem; margin: 0; color: rgba(35, 32, 25, .85); }
.stats-note {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .05em;
  color: var(--ink-soft);
}

/* --------------------------------------------------
   6. 定式图鉴:产品卡与小棋谱图
-------------------------------------------------- */
.dingshi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dingshi-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.dingshi-card:hover { transform: translateY(-3px); border-color: rgba(35, 32, 25, .45); }

/* 小棋谱图:CSS 画的一角棋盘(30px 路距,星位在第4线) */
.dg-fig {
  position: relative;
  height: 190px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background-color: var(--qiu);
  background-image:
    radial-gradient(circle at 90px 90px, rgba(35, 32, 25, .85) 0 3px, rgba(35, 32, 25, 0) 4px),
    repeating-linear-gradient(to right, var(--line) 0 1px, rgba(35, 32, 25, 0) 1px 30px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, rgba(35, 32, 25, 0) 1px 30px),
    repeating-linear-gradient(to bottom, var(--qiu-grain) 0 1px, rgba(151, 117, 58, 0) 1px 7px);
  background-repeat: no-repeat, repeat, repeat, repeat;
}
.dg-fig .thumb-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.dg-stone {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  left: 77px; top: 77px; /* 星位 4-4 */
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--stone-w) 55%, #ded7c5 100%);
  border: 1px solid rgba(35, 32, 25, .35);
}
.dg-fig--komoku .dg-stone { left: 77px; top: 47px; } /* 小目 3-4 */
.dg-fig--sansan .dg-stone { left: 47px; top: 47px; } /* 三三 3-3 */
.dg-stone--foe {
  left: 137px; top: 47px;
  background: radial-gradient(circle at 35% 30%, #5a544c 0%, var(--stone-b) 62%);
  border: 0;
}
.dg-fig--single { height: 260px; }
.dg-fig--empty { height: 280px; max-width: 440px; margin: 0 auto 28px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); border-radius: 0 0 var(--radius) 0; }

.dg-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.dg-name { font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; color: var(--tan); margin-bottom: .4em; }
.dg-model { font-size: 1.35rem; margin-bottom: .4em; }
.dg-model a { color: var(--ink); text-decoration: none; }
.dg-model a:hover { color: var(--tan); }
.dg-desc { font-size: .93rem; color: var(--ink-soft); }
.spec-chips { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chips li {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: .18em .6em;
  background: var(--paper);
}
.dg-foot { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dg-link { font-weight: 600; text-decoration: none; }
.dg-link:hover { text-decoration: underline; }

/* --------------------------------------------------
   7. 行棋之道:手数步骤
-------------------------------------------------- */
.tesuu-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  margin-bottom: 48px;
}
.tesuu-grid::before {
  content: "";
  position: absolute; left: 4%; right: 4%; top: 27px;
  height: 1px;
  background: rgba(35, 32, 25, .5);
}
.tesuu-step { position: relative; text-align: center; padding: 0 6px; }
.kifu-stone {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.kifu-stone--b { background: radial-gradient(circle at 35% 30%, #5a544c 0%, var(--stone-b) 62%); color: var(--stone-w); }
.kifu-stone--w {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--stone-w) 55%, #ded7c5 100%);
  border: 1px solid rgba(35, 32, 25, .4);
  color: var(--ink);
}
.tesuu-no { display: block; font-size: .78rem; letter-spacing: .2em; margin-bottom: .5em; }
.tesuu-title { font-size: 1.12rem; margin-bottom: .35em; }
.tesuu-desc { font-size: .9rem; margin: 0; }

.goban-terms {
  margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid rgba(35, 32, 25, .4);
  padding-top: 26px;
}
.goban-terms > div { min-width: 0; }
.goban-terms dt {
  font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; gap: .5em;
  margin-bottom: .25em;
}
.goban-terms dt .gostone { width: .8em; height: .8em; }
.goban-terms dd { margin: 0; font-size: .88rem; }

/* --------------------------------------------------
   8. 复盘室:棋谱记录体案例
-------------------------------------------------- */
.kifu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kifu-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  display: flex; flex-direction: column;
}
.kifu-meta { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 1em; }
.kifu-head { list-style: none; margin: 0 0 1em; padding: 0 0 1em; border-bottom: 1px solid var(--hair); }
.kifu-head li { display: flex; align-items: baseline; gap: .6em; margin-bottom: .3em; }
.kifu-head .gostone { width: .9em; height: .9em; align-self: center; }
.side-label { font-family: var(--serif); font-weight: 700; flex: none; }
.kifu-moves { list-style: none; margin: 0 0 1.1em; padding: 0; }
.kifu-moves li { display: flex; gap: .7em; font-size: .9rem; margin-bottom: .5em; }
.mv { flex: none; min-width: 3.4em; font-size: .82rem; letter-spacing: .08em; color: var(--tan); padding-top: .15em; }
.kifu-result {
  margin: auto 0 0;
  border-top: 1px solid var(--hair);
  padding-top: 1em;
  font-size: .92rem;
}
.kifu-result strong { font-family: var(--serif); color: var(--tan); font-size: 1.05rem; display: block; margin-bottom: .2em; }
.kifu-note { margin-top: 26px; font-size: .82rem; color: var(--ink-soft); }

/* --------------------------------------------------
   9. 棋钟工期
-------------------------------------------------- */
.clock-flex { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.clock-fig { margin: 0; text-align: center; }
.clock-fig svg { max-width: 100%; height: auto; }
.clock-copy .stone-list { margin-bottom: 0; font-size: .95rem; }

/* --------------------------------------------------
   10. 金浩丰引言
-------------------------------------------------- */
.sec-quote { text-align: center; }
.goban-quote {
  margin: 0 auto; max-width: 780px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.9;
  border: 0;
  padding: 0;
}
.goban-quote .gostone { width: .7em; height: .7em; margin: 0 .3em; vertical-align: baseline; }
.goban-quote cite {
  display: block;
  margin-top: 1.2em;
  font-family: var(--mono);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .2em;
  color: var(--ink-soft);
}

/* --------------------------------------------------
   11. 段位免状
-------------------------------------------------- */
.dan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dan-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(35, 32, 25, .4);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
  text-align: center;
}
.dan-card::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  pointer-events: none;
}
.dan-rank { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.2; display: block; }
.dan-rank::after {
  content: "";
  display: block;
  width: 34px; height: 1px;
  margin: .45em auto .6em;
  background: var(--ink);
}
.dan-name { font-size: .92rem; margin-bottom: .5em; }
.dan-year { font-size: .76rem; letter-spacing: .14em; color: var(--ink-soft); display: block; }
.dan-note { margin-top: 26px; font-size: .88rem; color: var(--ink-soft); }

/* --------------------------------------------------
   12. 棋院手谈:新闻卡
-------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(35, 32, 25, .45); }
.news-date { display: block; font-size: .76rem; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: .7em; }
.news-title { font-size: 1.12rem; margin-bottom: .5em; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--tan); }
.news-ex { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------
   13. 约一局 CTA
-------------------------------------------------- */
.cta-panel {
  background: var(--tan);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: center;
}
.cta-title { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .35em; }
.cta-lede { color: #f2e9e1; margin-bottom: 1.4em; }
.cta-rows { list-style: none; margin: 0 0 1.6em; padding: 0; }
.cta-rows li { display: flex; gap: 1em; margin-bottom: .5em; align-items: baseline; }
.cta-rows .cta-k { font-family: var(--serif); font-weight: 700; flex: none; color: #fff; }
.cta-rows .cta-v { font-family: var(--mono); font-size: .95rem; letter-spacing: .04em; color: #f2e9e1; }
.cta-side { text-align: center; }
.cta-side .gostone { width: 18px; height: 18px; margin: 0 5px 18px; }

/* --------------------------------------------------
   14. 页脚:收进棋盒
-------------------------------------------------- */
.site-footer { background: var(--tan); color: #ece1d6; }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 40px;
  padding-top: 60px; padding-bottom: 40px;
}
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.footer-about p { font-size: .92rem; margin-bottom: .8em; }
.footer-slogan { font-family: var(--serif); color: #fff; letter-spacing: .12em; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: .45em; }
.footer-menu a { color: #ece1d6; text-decoration: none; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-contact { font-style: normal; font-size: .92rem; }
.footer-contact span { display: block; margin-bottom: .4em; font-family: var(--mono); letter-spacing: .04em; }
.footer-stones { display: flex; gap: 10px; margin-bottom: 16px; }
.footer-stones .gostone { width: 14px; height: 14px; }
.footer-supplier {
  border-top: 1px solid rgba(250, 248, 242, .25);
  padding: 22px 0 0;
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: .04em;
  color: #f2e9e1;
}
.footer-legal { padding: 14px 0 34px; font-size: .8rem; color: #d9c8bc; }
.footer-legal p { margin: 0 0 .35em; }

/* --------------------------------------------------
   15. 内页:页首横幅 / 列表 / 侧栏
-------------------------------------------------- */
.page-header { padding: 56px 0 40px; }
.page-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .2em; }
.archive-desc { max-width: 640px; margin: 0; }
.page-header .kicker { margin-bottom: .6em; }

.layout-side {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px;
  padding-top: 56px; padding-bottom: 76px;
}
.layout-one { max-width: 820px; padding-top: 56px; padding-bottom: 76px; }

.entries { display: grid; gap: 24px; }
.entry-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: border-color .18s ease;
}
.entry-card:hover { border-color: rgba(35, 32, 25, .45); }
.entry-meta { font-size: .78rem; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: .6em; display: flex; flex-wrap: wrap; gap: .5em 1.4em; }
.entry-meta a { color: var(--tan); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }
.entry-title { font-size: 1.35rem; margin-bottom: .4em; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--tan); }
.entry-ex { color: var(--ink-soft); font-size: .95rem; }
.more-link { font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-numbers {
  display: inline-block;
  font-family: var(--mono);
  padding: .4em .9em;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--tan); color: var(--tan); }

.widget-area { min-width: 0; }
.widget { border-top: 1px solid rgba(35, 32, 25, .4); padding-top: 18px; margin-bottom: 34px; }
.widget-title { font-size: 1.02rem; margin-bottom: .8em; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: .5em; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }

/* --------------------------------------------------
   16. 正文排版
-------------------------------------------------- */
.entry-content { font-size: 1.02rem; }
.entry-content > * { margin-top: 0; }
.entry-content h2, .entry-content h3 { position: relative; padding-left: 1.1em; margin-top: 1.8em; }
.entry-content h2::before, .entry-content h3::before {
  content: "";
  position: absolute; left: 0; top: .38em;
  width: .6em; height: .6em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a544c 0%, var(--stone-b) 62%);
}
.entry-content h3::before {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--stone-w) 55%, #ded7c5 100%);
  border: 1px solid rgba(35, 32, 25, .35);
}
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 1em 1.4em;
  border-left: 3px solid var(--tan);
  background: #f4efe2;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code, .entry-content pre { font-family: var(--mono); background: #f1ece0; border-radius: 4px; }
.entry-content code { padding: .12em .4em; font-size: .9em; }
.entry-content pre { padding: 1em 1.2em; overflow-x: auto; }
.entry-content table, .spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: .95rem;
}
.entry-content th, .entry-content td, .spec-table th, .spec-table td {
  text-align: left;
  padding: .65em .8em;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.entry-content th, .spec-table th { font-family: var(--serif); white-space: nowrap; }
.spec-table th { width: 36%; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 2px solid var(--ink); }

.post-tags { margin-top: 1.6em; font-size: .85rem; }
.post-tags a {
  display: inline-block;
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: .1em .6em;
  margin: 0 .3em .4em 0;
  text-decoration: none;
}
.post-tags a:hover { border-color: var(--tan); }

.single-header { margin-bottom: 2em; }
.single-header .entry-meta { margin-top: .8em; margin-bottom: 0; }

.post-nav { margin-top: 48px; }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a {
  display: block;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
}
.post-nav a:hover { border-color: var(--tan); }
.post-nav .nav-next { text-align: right; }
.post-nav .nav-label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; color: var(--tan); margin-bottom: .3em; }
.post-nav .nav-title { font-family: var(--serif); font-weight: 700; }

/* --------------------------------------------------
   17. 表单与搜索
-------------------------------------------------- */
input[type="text"], input[type="search"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(35, 32, 25, .45);
  border-radius: var(--radius);
  padding: .58em .9em;
}
input:focus, textarea:focus { border-color: var(--tan); outline: none; }
.search-form { display: flex; gap: 10px; }
.search-form .search-field-wrap { flex: 1; min-width: 0; }
.search-submit { flex: none; }

/* --------------------------------------------------
   18. 空局与 404:此处无子
-------------------------------------------------- */
.empty-board { text-align: center; padding: 30px 0 10px; }
.empty-title { font-size: 1.6rem; margin-bottom: .4em; }
.empty-desc { max-width: 460px; margin: 0 auto 1.6em; color: var(--ink-soft); }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 1.8em; }
.empty-board .search-form { max-width: 420px; margin: 0 auto; }
.sec-404 { padding: 90px 0; }
.error-code { font-family: var(--mono); font-size: .9rem; letter-spacing: .3em; color: var(--tan); display: block; margin-bottom: .8em; }
.demo-entries { margin-top: 44px; text-align: left; }
.demo-entries .sec-title { font-size: 1.2rem; }

/* --------------------------------------------------
   19. 定式单品页
-------------------------------------------------- */
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.15fr) .85fr; gap: 48px;
  padding-top: 56px; padding-bottom: 76px;
}
.product-main .dg-fig { border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 28px; }
.product-thumb { margin: 0 0 28px; }
.product-thumb img { border-radius: var(--radius); display: block; }
.product-aside { min-width: 0; }
.aside-panel {
  border: 1px solid rgba(35, 32, 25, .4);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  background: var(--card);
  position: sticky; top: 92px;
}
.aside-panel .spec-table { font-size: .88rem; }
.aside-cta { text-align: center; border-top: 1px solid var(--hair); padding-top: 20px; margin-top: 6px; }
.aside-cta .btn { width: 100%; margin-bottom: .8em; }
.aside-tel { font-family: var(--mono); letter-spacing: .08em; display: block; margin-bottom: .3em; }
.supplier-note { font-size: .8rem; color: var(--ink-soft); margin: .6em 0 0; }
.spec-note { font-size: .8rem; color: var(--ink-soft); margin-top: .6em; }
.related-products { margin-top: 40px; }
.related-products .sec-title { font-size: 1.2rem; }

/* --------------------------------------------------
   20. 落子式入场动画(reduced-motion 直显)
-------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.22, .9, .32, 1.18);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .dingshi-card, .news-card { transition: none; }
}

/* --------------------------------------------------
   21. 响应式
-------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure { order: 2; }
  .territory-grid { grid-template-columns: repeat(2, 1fr); }
  .dingshi-grid, .kifu-grid, .news-grid { grid-template-columns: repeat(2, 1fr) ; }
  .tesuu-grid { grid-template-columns: repeat(2, 1fr); }
  .tesuu-grid::before { display: none; }
  .goban-terms { grid-template-columns: repeat(2, 1fr); }
  .dan-grid { grid-template-columns: repeat(2, 1fr); }
  .clock-flex, .cta-panel, .product-layout { grid-template-columns: 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .aside-panel { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 10px 24px 18px;
  }
  .nav-open .nav-panel { display: block; }
  .primary-menu { flex-direction: column; gap: 0; }
  .primary-menu li { border-bottom: 1px solid var(--hair); }
  .primary-menu li:last-child { border-bottom: 0; }
  .primary-menu a { display: block; padding: .8em 0; border-bottom: 0; }
  .sec { padding: 56px 0; }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .cta-panel { padding: 40px 26px; }
}

@media (max-width: 560px) {
  .territory-grid, .dingshi-grid, .kifu-grid, .news-grid,
  .tesuu-grid, .goban-terms, .dan-grid, .footer-inner { grid-template-columns: 1fr; }
  .post-nav .nav-links { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
  .hero-title { font-size: 2.1rem; }
  .t-num { font-size: 2.3rem; }
  .search-form { flex-direction: column; }
}
