/*
Theme Name: 白话AI (Baihua AI)
Theme URI: https://example.com/baihua-ai
Author: 白话AI Studio
Author URI: https://example.com
Description: 一款为「教普通人使用 AI」的教程网站量身打造的 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: baihua-ai
Tags: blog, education, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =============================================================
   白话AI — 设计系统
   瓷青纸底 × 宋体标题 × 朱砂印章
   ============================================================= */

:root {
  /* 纸与墨 */
  --paper: #f4f6ee;
  --paper-2: #eaeedf;
  --card: #fdfef9;
  --ink: #232920;
  --ink-2: #66705f;
  --line: #dde3ce;

  /* 朱砂（印章红）—— 全站唯一的"重色" */
  --seal: #d5442a;
  --seal-deep: #b23319;
  --seal-soft: #f7dfd6;

  /* 辅色 */
  --pine: #33624d;
  --pine-soft: #deeae0;
  --gold: #b98b2f;
  --gold-soft: #f1e7cc;
  --blue: #40608a;
  --blue-soft: #dfe7f0;

  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(35, 41, 32, 0.05), 0 8px 20px -12px rgba(35, 41, 32, 0.14);
  --shadow-lg: 0 2px 4px rgba(35, 41, 32, 0.06), 0 22px 46px -18px rgba(35, 41, 32, 0.22);
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.4; }
::selection { background: var(--seal); color: #fff6ec; }
:focus-visible { outline: 2.5px solid var(--seal); outline-offset: 3px; border-radius: 4px; }

/* 纸张颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 通用 ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }
.container-narrow { max-width: 768px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--band { background: var(--paper-2); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.32em;
  color: var(--seal-deep);
}
.eyebrow::before {
  content: ""; width: 0.62em; height: 0.62em; flex: none;
  background: var(--seal); border-radius: 2px; transform: rotate(45deg);
}
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 900; letter-spacing: 0.02em; line-height: 1.3;
  margin-top: 0.75rem;
}
.section-lead { color: var(--ink-2); max-width: 40em; margin-top: 0.9rem; }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
}

.more-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--ink); white-space: nowrap;
  padding-bottom: 0.2rem; border-bottom: 1.5px solid var(--line);
  transition: color 0.25s, border-color 0.25s;
}
.more-link .arr { transition: transform 0.25s var(--ease); }
.more-link:hover { color: var(--seal-deep); border-color: var(--seal); }
.more-link:hover .arr { transform: translateX(4px); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85em 1.6em; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1.4;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--seal); color: #fff6ec; box-shadow: 0 10px 22px -10px rgba(178, 51, 25, 0.55); }
.btn-primary:hover { background: var(--seal-deep); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(178, 51, 25, 0.6); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-cream { background: #fff6ec; color: var(--seal-deep); box-shadow: 0 10px 22px -12px rgba(35, 41, 32, 0.4); }
.btn-cream:hover { transform: translateY(-2px); background: #ffffff; }
.btn-sm { padding: 0.55em 1.2em; font-size: 0.9rem; }

/* 入场动画（仅在启用 JS 时生效） */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 页眉 ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.6em 1.2em; border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(35, 41, 32, 0.25); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.seal {
  width: 2.35rem; height: 2.35rem; flex: none;
  display: grid; place-items: center;
  background: var(--seal); color: #fff6ec;
  font-family: var(--font-serif); font-weight: 900; font-size: 1.15rem;
  border-radius: 9px; transform: rotate(-4deg);
  box-shadow: 2px 3px 0 rgba(35, 41, 32, 0.18);
}
.brand-text { font-family: var(--font-serif); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.04em; }
.brand-tag { font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.28em; margin-left: 0.2rem; border-left: 1px solid var(--line); padding-left: 0.9rem; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.nav-list a {
  font-size: 0.95rem; font-weight: 500; padding: 0.4rem 0;
  border-bottom: 2px solid transparent; transition: color 0.25s, border-color 0.25s;
}
.nav-list a:hover { color: var(--seal-deep); }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--seal-deep); border-color: var(--seal); }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--paper); padding: 1.5rem clamp(20px, 4vw, 32px) 3rem; overflow: auto;
}
.nav-open .mobile-nav { display: block; }
body.nav-open { overflow: hidden; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav a {
  display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem;
  padding: 1.05rem 0.2rem; border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--seal-deep); }
.mobile-nav .search-form { margin-top: 1.6rem; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}
.hero-copy h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  font-weight: 900; line-height: 1.32; letter-spacing: 0.02em;
  margin: 1.15rem 0 1.3rem;
}
.hero-sub { font-size: clamp(1rem, 1.4vw, 1.1rem); line-height: 2.1; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats { display: flex; flex-wrap: wrap; margin-top: 2.6rem; }
.stat b { display: block; font-family: var(--font-serif); font-weight: 900; font-size: 1.5rem; line-height: 1.3; }
.stat b em { font-style: normal; color: var(--seal); }
.stat span { font-size: 0.82rem; color: var(--ink-2); letter-spacing: 0.08em; }
.stat + .stat { margin-left: 1.6rem; padding-left: 1.6rem; border-left: 1px solid var(--line); }

/* 手写朱砂下划线 */
.mark { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.mark svg {
  position: absolute; left: -4%; bottom: 0.02em; width: 108%; height: 0.3em;
  z-index: -1; color: var(--seal); overflow: visible;
}

/* 竖排装饰 */
.hero-vertical {
  position: absolute; top: 3rem; right: -0.5rem;
  writing-mode: vertical-rl; letter-spacing: 0.55em;
  font-size: 0.78rem; color: var(--ink-2); opacity: 0.8;
  user-select: none; pointer-events: none;
}
.hero-vertical::after { content: "❋"; color: var(--seal); margin-top: 0.8em; letter-spacing: 0; }

/* 对话卡片 */
.hero-visual { position: relative; z-index: 0; }
.hero-visual::before {
  content: ""; position: absolute; inset: -10% -14%; z-index: -2;
  background: radial-gradient(closest-side, var(--pine-soft), transparent 72%);
  opacity: 0.85;
}
.chat-stack { position: relative; max-width: 430px; margin-inline: auto; }
.chat-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 1.15rem 1.15rem 1.35rem; transform: rotate(-1.4deg);
}
.chat-card--back {
  position: absolute; inset: 0; z-index: -1;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px;
  transform: rotate(2.6deg) translate(12px, 8px);
}
.tape {
  position: absolute; top: -13px; left: 40px; width: 96px; height: 26px;
  background: color-mix(in srgb, var(--seal) 72%, #ffffff);
  opacity: 0.9; transform: rotate(-4deg); border-radius: 2px;
  box-shadow: 0 1px 2px rgba(35, 41, 32, 0.12);
}
.chat-head { display: flex; align-items: center; gap: 6px; padding: 0.1rem 0.25rem 0.85rem; border-bottom: 1px dashed var(--line); }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.chat-dot:first-child { background: var(--seal); }
.chat-title { margin-left: auto; font-size: 0.76rem; letter-spacing: 0.18em; color: var(--ink-2); }
.msg { display: flex; align-items: flex-end; gap: 0.6rem; margin-top: 1.05rem; }
.msg-avatar {
  width: 34px; height: 34px; flex: none; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700; font-size: 0.82rem;
}
.msg--user { flex-direction: row-reverse; }
.msg--user .msg-avatar { background: var(--gold-soft); color: var(--gold); }
.msg--ai .msg-avatar { background: var(--pine-soft); color: var(--pine); font-size: 0.72rem; letter-spacing: 0.02em; }
.bubble { max-width: 78%; padding: 0.7rem 0.95rem; border-radius: 16px; font-size: 0.92rem; line-height: 1.85; }
.msg--user .bubble { background: var(--seal-soft); border-bottom-right-radius: 4px; }
.msg--ai .bubble { background: var(--paper-2); border-bottom-left-radius: 4px; }
.chat-chip {
  display: flex; width: max-content; margin: 1.15rem auto 0; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--ink-2);
  border: 1px dashed var(--line); border-radius: 999px; padding: 0.35em 1em;
  background: var(--paper);
}
.chat-chip b { color: var(--seal-deep); font-weight: 600; }

.float-badge {
  position: absolute; z-index: 2;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm); padding: 0.45rem 0.95rem;
  font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.fb-1 { top: -14px; right: -18px; transform: rotate(3deg); color: var(--pine); animation: bob 6s ease-in-out infinite; }
.fb-2 { bottom: 26px; left: -30px; transform: rotate(-3deg); color: var(--seal-deep); animation: bob 7s ease-in-out 0.8s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--card); padding-block: 0.95rem;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.02rem;
  padding-inline: 1.5rem; display: inline-flex; align-items: center; gap: 3rem;
  color: var(--ink); white-space: nowrap;
}
.marquee-group span::after { content: "❋"; color: var(--seal); font-size: 0.85rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 学习路径 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.path-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.85rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--seal) 40%, var(--line)); }
.path-num {
  position: absolute; top: 0.2rem; right: 1rem;
  font-family: var(--font-serif); font-weight: 900; font-size: 4.6rem; line-height: 1.2;
  color: var(--ink); opacity: 0.07; pointer-events: none;
}
.path-tag {
  width: max-content; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em;
  padding: 0.32em 0.9em; border-radius: 999px;
  background: var(--seal-soft); color: var(--seal-deep);
}
.path-card:nth-child(2) .path-tag { background: var(--pine-soft); color: var(--pine); }
.path-card:nth-child(3) .path-tag { background: var(--gold-soft); color: var(--gold); }
.path-title { font-size: 1.45rem; font-weight: 700; }
.path-desc { color: var(--ink-2); font-size: 0.95rem; line-height: 2; }
.path-meta {
  margin-top: auto; padding-top: 1.05rem; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--ink-2);
}
.path-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--ink); }
.path-link .arr { transition: transform 0.25s var(--ease); }
.path-card:hover .path-link { color: var(--seal-deep); }
.path-card:hover .path-link .arr { transform: translateX(4px); }

/* ---------- 文章卡片 ---------- */
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdd4ba; }

.card-cover {
  position: relative; aspect-ratio: 16 / 9.6; overflow: hidden;
  display: grid; place-items: center;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .card-cover img { transform: scale(1.05); }
.cover-p0 { background: linear-gradient(135deg, #f7dfd6, #efc4b2); color: #b23319; }
.cover-p1 { background: linear-gradient(135deg, #deeae0, #c2d8c6); color: #33624d; }
.cover-p2 { background: linear-gradient(135deg, #f1e7cc, #e5d3a3); color: #93701f; }
.cover-p3 { background: linear-gradient(135deg, #dfe7f0, #c5d3e4); color: #40608a; }
.card-cover::after {
  content: ""; position: absolute; width: 130px; height: 130px; right: -34px; top: -34px;
  border: 1.5px dashed currentColor; border-radius: 50%; opacity: 0.3;
}
.cover-char {
  font-family: var(--font-serif); font-weight: 900; font-size: 4.4rem;
  transform: rotate(-6deg); line-height: 1; user-select: none;
}

.card-body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: 1.25rem 1.35rem 1.3rem; }
.cat-pill {
  align-self: flex-start; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em;
  padding: 0.32em 0.85em; border-radius: 999px;
  background: var(--seal-soft); color: var(--seal-deep);
  transition: background 0.25s, color 0.25s;
}
a.cat-pill:hover { background: var(--seal); color: #fff6ec; }
.card-title { font-size: 1.2rem; font-weight: 700; line-height: 1.6; }
.card-title a { transition: color 0.25s; }
.card-title a:hover { color: var(--seal-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--seal); }
.card-excerpt {
  color: var(--ink-2); font-size: 0.92rem; line-height: 1.95;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--ink-2);
}
.card-meta .dot { color: var(--line); }
.sticky-pill {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: #fff6ec; background: var(--ink); border-radius: 6px; padding: 0.15em 0.6em;
}

/* ---------- 三个承诺 ---------- */
.promise { display: flex; flex-direction: column; gap: 0.85rem; }
.promise-seal {
  width: 3.3rem; height: 3.3rem; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 900; font-size: 1.4rem; color: #fff6ec;
  transform: rotate(-4deg); box-shadow: 2.5px 3.5px 0 rgba(35, 41, 32, 0.16);
}
.promise:nth-child(1) .promise-seal { background: var(--seal); }
.promise:nth-child(2) .promise-seal { background: var(--pine); }
.promise:nth-child(3) .promise-seal { background: var(--gold); }
.promise h3 { font-size: 1.28rem; }
.promise p { color: var(--ink-2); font-size: 0.95rem; line-height: 2; }

/* ---------- 学员反馈 ---------- */
.quote-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.quote-card:nth-child(1) { transform: rotate(-1.2deg); }
.quote-card:nth-child(2) { transform: rotate(0.9deg) translateY(12px); }
.quote-card:nth-child(3) { transform: rotate(-0.7deg); }
.quote-card:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--shadow-lg); }
.quote-mark { font-family: var(--font-serif); font-weight: 900; font-size: 2.5rem; line-height: 1; color: var(--seal); }
.quote-text { margin: 0.5rem 0 1.25rem; font-size: 0.97rem; line-height: 2.05; }
.quote-person { display: flex; align-items: center; gap: 0.75rem; border-top: 1px dashed var(--line); padding-top: 1.05rem; }
.quote-ava {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: #fff6ec;
}
.quote-card:nth-child(1) .quote-ava { background: var(--pine); }
.quote-card:nth-child(2) .quote-ava { background: var(--seal); }
.quote-card:nth-child(3) .quote-ava { background: var(--blue); }
.quote-name { font-weight: 600; font-size: 0.93rem; line-height: 1.5; }
.quote-role { font-size: 0.8rem; color: var(--ink-2); }

/* ---------- 订阅信 ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--seal); color: #fff6ec;
  border-radius: 26px;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.6rem, 5vw, 4rem);
}
.cta::before, .cta::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(-45deg, rgba(255, 246, 236, 0.95) 0 12px, transparent 12px 26px);
  opacity: 0.9;
}
.cta::before { top: 0; }
.cta::after { bottom: 0; }
.cta-watermark {
  position: absolute; right: -1.5rem; bottom: -3.5rem; z-index: 0;
  font-family: var(--font-serif); font-weight: 900; font-size: 13rem; line-height: 1;
  color: #fff6ec; opacity: 0.09; transform: rotate(-8deg);
  pointer-events: none; user-select: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta-title { font-size: clamp(1.65rem, 3.4vw, 2.35rem); font-weight: 900; }
.cta-text { margin-top: 0.85rem; line-height: 2.05; opacity: 0.94; max-width: 34em; }
.cta-note { display: block; margin-top: 0.7rem; font-size: 0.82rem; opacity: 0.75; letter-spacing: 0.08em; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #cfc9bb; margin-top: clamp(3rem, 7vw, 5rem); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-block: 4rem 3rem;
}
.footer-brand .brand-text { color: #f4f0e4; font-size: 1.45rem; }
.footer-tag { margin-top: 1.1rem; font-size: 0.92rem; line-height: 2.05; color: #a8a493; max-width: 22em; }
.footer-col h4, .footer-col .widget-title {
  font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.22em; color: #f4f0e4; margin-bottom: 1.15rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { display: inline-block; padding: 0.32rem 0; font-size: 0.92rem; color: #a8a493; transition: color 0.25s, transform 0.25s var(--ease); }
.footer-col a:hover { color: #f4f0e4; transform: translateX(3px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(244, 240, 228, 0.12);
  padding-block: 1.4rem; font-size: 0.84rem; color: #8b8776;
}
.footer-bottom a { color: inherit; border-bottom: 1px solid transparent; }
.footer-bottom a:hover { color: #f4f0e4; border-color: currentColor; }
.footer-menu-list { display: flex; gap: 1.5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

/* ---------- 归档 / 页面头部 ---------- */
.page-header { text-align: center; padding-top: clamp(3rem, 7vw, 5rem); }
.page-header .section-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-header .archive-description { color: var(--ink-2); max-width: 36em; margin: 1rem auto 0; }
.page-header + .section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* 分页 */
.pagination { margin-top: 3.2rem; }
.pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 2.7rem; height: 2.7rem; padding: 0 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.pagination a.page-numbers:hover { border-color: var(--seal); color: var(--seal-deep); transform: translateY(-2px); }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 文章页 ---------- */
.post-hero { text-align: center; padding-top: clamp(3rem, 7vw, 4.5rem); }
.post-title {
  font-size: clamp(1.85rem, 4.2vw, 2.9rem); font-weight: 900; line-height: 1.45;
  max-width: 22em; margin: 1.1rem auto 0;
}
.post-meta {
  display: flex; justify-content: center; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-2);
}
.post-meta .dot { color: var(--line); }
.post-hero .flourish { margin-top: 1.7rem; color: var(--seal); font-size: 0.95rem; letter-spacing: 0.5em; }

.post-thumb { max-width: 980px; margin: 2.6rem auto 0; padding-inline: clamp(20px, 4vw, 32px); }
.post-thumb img { width: 100%; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.entry-content { margin-top: 2.8rem; font-size: 1.05rem; line-height: 2.15; color: #333a2f; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > p:first-child { font-size: 1.13rem; color: var(--ink); }
.entry-content h2 {
  position: relative; padding-left: 0.85em;
  font-size: 1.55rem; margin-top: 2.4em;
}
.entry-content h2::before {
  content: ""; position: absolute; left: 0; top: 0.36em;
  width: 5px; height: 1.05em; background: var(--seal); border-radius: 3px;
}
.entry-content h3 { font-size: 1.26rem; margin-top: 2em; }
.entry-content a {
  color: var(--seal-deep);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--seal) 45%, transparent);
  transition: text-decoration-color 0.25s;
}
.entry-content a:hover { text-decoration-color: var(--seal); }
.entry-content strong { color: var(--ink); }
.entry-content mark { background: linear-gradient(transparent 58%, var(--gold-soft) 58%); padding: 0 0.1em; color: inherit; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-block: 0.45em; }
.entry-content li::marker { color: var(--seal); font-weight: 600; }
.entry-content blockquote {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--seal);
  border-radius: 0 14px 14px 0; padding: 1.05em 1.4em; color: #4c5344; font-size: 0.98em;
}
.entry-content blockquote > * + * { margin-top: 0.8em; }
.entry-content code {
  background: #ecefdf; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.12em 0.45em; font-size: 0.86em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.entry-content pre {
  background: #272d24; color: #edefdf; border-radius: 14px;
  padding: 1.2em 1.4em; overflow: auto; font-size: 0.88em; line-height: 1.85;
}
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content img { border-radius: 14px; border: 1px solid var(--line); }
.entry-content figcaption, .entry-content .wp-caption-text {
  text-align: center; font-size: 0.84rem; color: var(--ink-2); margin-top: 0.7em;
}
.entry-content hr { border: 0; margin: 2.8em 0; text-align: center; }
.entry-content hr::before { content: "❋　❋　❋"; color: var(--seal); font-size: 0.8rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.94em; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 0.6em 0.9em; text-align: left; }
.entry-content th { background: var(--paper-2); font-weight: 600; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.6rem; }
.post-tags a {
  font-size: 0.82rem; padding: 0.32em 0.95em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  transition: border-color 0.25s, color 0.25s;
}
.post-tags a:hover { border-color: var(--seal); color: var(--seal-deep); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.4rem; }
.post-nav a {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem 1.3rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.post-nav a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--seal) 40%, var(--line)); box-shadow: var(--shadow-sm); }
.post-nav .nav-label { font-size: 0.76rem; letter-spacing: 0.24em; color: var(--ink-2); }
.post-nav .nav-title { display: block; font-family: var(--font-serif); font-weight: 700; margin-top: 0.45rem; line-height: 1.65; }
.post-nav .next { text-align: right; }

/* ---------- 留言 ---------- */
.comments-area { margin-top: 4rem; }
.comments-title, .comment-reply-title { font-size: 1.4rem; margin-bottom: 1.6rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(1rem, 4vw, 2.6rem); }
.comment-body {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.2rem 1.35rem; margin-bottom: 1.15rem;
}
.comment-author { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 0.78rem; margin-top: 0.2rem; }
.comment-metadata a { color: var(--ink-2); }
.comment-content { margin-top: 0.7rem; font-size: 0.95rem; }
.comment-content > * + * { margin-top: 0.7em; }
.reply { margin-top: 0.7rem; font-size: 0.84rem; }
.reply a { color: var(--seal-deep); font-weight: 600; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.35rem; }
.comment-form-comment { grid-column: 1 / -1; }
.comment-notes, .logged-in-as { font-size: 0.84rem; color: var(--ink-2); grid-column: 1 / -1; }
.form-submit { grid-column: 1 / -1; margin: 0; }

/* ---------- 表单 ---------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.72em 1em;
  transition: border-color 0.25s, box-shadow 0.25s;
}
input:focus, textarea:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3.5px var(--seal-soft); }
textarea { resize: vertical; }

input[type="submit"], .search-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75em 1.7em; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--seal); color: #fff6ec; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 10px 22px -10px rgba(178, 51, 25, 0.55);
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
input[type="submit"]:hover, .search-submit:hover { background: var(--seal-deep); transform: translateY(-2px); }

.search-form { display: flex; gap: 0.6rem; }
.search-form .search-field { flex: 1; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.error-code { font-family: var(--font-serif); font-weight: 900; font-size: clamp(4.5rem, 12vw, 7.5rem); line-height: 1.1; }
.error-code em { font-style: normal; color: var(--seal); }
.error-404 p { color: var(--ink-2); margin-top: 1rem; }
.error-404 .search-form { max-width: 420px; margin: 2.2rem auto 1.4rem; }

/* ---------- 无内容提示 ---------- */
.content-none {
  text-align: center; padding: 3.5rem 1.5rem;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-2);
}
.content-none h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 0.6rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
  .hero-vertical { display: none; }
}
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 3rem 3.6rem; }
  .hero-visual { max-width: 460px; margin-top: 1.6rem; }
  .fb-2 { left: -6px; }
  .grid-3 { grid-template-columns: 1fr; }
  .quote-card, .quote-card:nth-child(2n) { transform: none; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .brand-tag { display: none; }
  .header-actions .btn { display: none; }
  .stat + .stat { margin-left: 1.1rem; padding-left: 1.1rem; }
  .cta { border-radius: 20px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
/* =============================================================
   WordPress 辅助样式
   ============================================================= */

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--ink); color: var(--paper); clip: auto !important; clip-path: none;
  display: block; height: auto; width: auto; left: 1rem; top: 1rem;
  padding: 0.7em 1.2em; border-radius: 10px; z-index: 100000; text-decoration: none;
}

.alignleft { float: left; margin: 0.4em 1.6em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0.4em 0 1em 1.6em; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignwide { width: min(980px, 100%); position: relative; left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; position: relative; left: 50%; transform: translateX(-50%); border-radius: 0; }
.entry-content .alignfull img { border-radius: 0; border-left: 0; border-right: 0; }

.wp-caption { max-width: 100%; }
.wp-caption img { margin-inline: auto; }

.gallery { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery-item { margin: 0; }

.wp-block-embed iframe, .entry-content iframe { max-width: 100%; }

.post-password-form input[type="password"] {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.72em 1em;
}

.bypostauthor .comment-author::after {
  content: "作者"; font-size: 0.68rem; font-weight: 600; color: var(--seal-deep);
  background: var(--seal-soft); border-radius: 6px; padding: 0.1em 0.5em;
}

.widget + .widget { margin-top: 1.6rem; }
.wp-block-search .wp-block-search__input { border-radius: 12px; }
