/* ============================================================
   yuwenqiao.cn · 猫咪生活报 博客皮肤 v1.0
   独立 CSS 皮肤 —— 米白旧报纸底 + 浅棕字 + 橘黄墨绿点缀
   适配常见博客结构：站点头 / 导航 / 列表 / 文章 / 侧栏 / 页脚
   用法：<link rel="stylesheet" href="blog-skin.css">
   ============================================================ */

/* ---------- 0. 设计令牌 ---------- */
:root {
  /* 页面与表面 */
  --page-bg: #efe4cb;              /* 米白旧报纸底 */
  --surface-card: #fbf4e3;         /* 卡片：暖米白纸张 */
  --surface-nested: #ece1c6;       /* 嵌套：略深米色 */
  --surface-dark: #2a3829;         /* 深墨绿（暗色块/页脚） */
  --surface-dark-2: #344638;

  /* 边框（浅棕系，全站虚线） */
  --border: #d4c19a;
  --border-input: #b89c6b;

  /* 文本层级（浅棕） */
  --text: #5a4631;
  --text-secondary: #8a7456;
  --text-tertiary: #b39a78;
  --on-dark: #efe4cb;              /* 深色块上的米色字 */
  --on-dark-mute: rgba(239,228,203,.62);

  /* 主色（墨绿） */
  --accent: #2d5d3f;
  --accent-hover: #3a7251;
  --accent-muted: #e3ede2;
  --on-accent: #fbf4e3;

  /* 点缀色 */
  --orange: #c97644;               /* 橘黄：头条 / 星标 */
  --orange-soft: #d49454;
  --orange-tint: #f3e1cf;
  --green: #5a7a4f;                /* 墨绿浅：标签 */
  --green-tint: #e3ede2;
  --brown: #8b5a3c;                /* 栗棕 */
  --danger: #b34a3a;

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* 阴影（暖棕调） */
  --shadow-card: 0 1px 2px rgba(90,70,49,.06), 0 4px 16px rgba(90,70,49,.07);
  --shadow-hover: 0 6px 22px rgba(90,70,49,.13);

  /* 资源（可按需替换为绝对 URL） */
  --paper-texture: url("paper-texture.jpg");
  --maxw: 1180px;
  --content-w: 720px;
}

/* ---------- 1. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 全页纸张纹理叠层 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background-image: var(--paper-texture);
  background-size: 420px 420px;
  background-repeat: repeat;
  background-position: center;
  opacity: .42;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color .15s, color .15s; }
a:hover { color: var(--orange); border-bottom-color: var(--orange); }
::selection { background: var(--orange); color: var(--on-dark); }

/* ---------- 2. 排版 ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1.1em; }
small { font-size: .85em; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-nested); padding: 2px 6px; border-radius: var(--r-sm); border: 1px dashed var(--border); }
pre { font-family: var(--font-mono); background: var(--surface-card); border: 1px dashed var(--border-input); border-radius: var(--r-md); padding: 16px 18px; overflow-x: auto; }
pre code { background: none; border: none; padding: 0; }
blockquote {
  margin: 1.6em 0; padding: 14px 20px 14px 28px;
  background: var(--surface-card); border: 1px dashed var(--border); border-left: 3px solid var(--orange);
  border-radius: var(--r-md); position: relative; color: var(--text-secondary); font-style: italic;
}
blockquote::before {
  content: "\201C"; position: absolute; left: 8px; top: 0;
  font-family: Georgia, serif; font-size: 38px; color: var(--orange); opacity: .4; line-height: 1;
}
hr { border: none; border-top: 1px dashed var(--border-input); margin: 2.4em 0; }

/* ---------- 3. 容器 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--content-w); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   4. 站点头 —— 报头样式
   ============================================================ */
.site-header {
  background: var(--surface-dark);
  background-image: linear-gradient(180deg, var(--surface-dark-2), var(--surface-dark));
  color: var(--on-dark);
  border-bottom: 1px dashed rgba(239,228,203,.18);
  position: relative;
}
/* 报头底部一条橘色"报眉"高光 */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange) 20%, var(--orange) 80%, transparent);
  opacity: .55;
}
.site-header .container {
  display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px;
  flex-wrap: wrap;
}
/* 报头主标 */
.brand { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.brand .brand-title {
  font-family: var(--font-serif); font-size: 26px; font-weight: 800;
  letter-spacing: -.01em; color: var(--on-dark); margin: 0;
}
.brand .brand-title a { color: inherit; border: none; }
.brand .brand-title a:hover { color: var(--orange-soft); }
.brand .brand-sub {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .14em;
  color: var(--on-dark-mute); text-transform: uppercase;
}
/* 邮戳 */
.postmark {
  display: inline-grid; place-items: center; text-align: center;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px dashed rgba(239,228,203,.42);
  color: rgba(239,228,203,.62);
  font-family: var(--font-sans); font-size: 9px; font-weight: 800; letter-spacing: .12em;
  line-height: 1.15;
  transform: rotate(-8deg);
  flex: 0 0 auto;
}
.postmark .pm-no { font-size: 14px; font-family: var(--font-serif); margin-top: 2px; }
/* 主导航 */
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--on-dark); border: 1px dashed transparent; border-radius: var(--r-sm);
  padding: 7px 13px; font-size: 14px; font-weight: 600; font-family: var(--font-sans);
  transition: background .15s, border-color .15s;
}
.nav a:hover { background: rgba(239,228,203,.08); border-color: rgba(239,228,203,.22); color: var(--on-dark); }
.nav a.active { background: rgba(239,228,203,.13); border-color: rgba(239,228,203,.3); }
/* 报头日期条 */
.datebar {
  background: var(--surface-card); border-bottom: 1px dashed var(--border);
  font-family: var(--font-sans); font-size: 12.5px; color: var(--text-secondary);
}
.datebar .container {
  display: flex; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap;
}
.datebar .db-left { display: flex; align-items: center; gap: 10px; }
.datebar .db-left .issue { color: var(--orange); font-weight: 800; letter-spacing: .04em; }
.datebar .db-right { margin-left: auto; color: var(--text-tertiary); }
.datebar .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-tertiary); }

/* ============================================================
   5. 区块标题（报眉）
   ============================================================ */
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 48px 0 22px;
}
.section-head .bar { width: 4px; height: 22px; background: var(--orange); border-radius: 2px; flex: 0 0 auto; }
.section-head .zh { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.section-head .en {
  font-family: var(--font-sans); font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: var(--text-tertiary); text-transform: uppercase;
}
.section-head .line {
  flex: 1; height: 1px;
  background-image: linear-gradient(90deg, var(--border-input) 50%, transparent 50%);
  background-size: 8px 1px;
}
.section-head .more { font-family: var(--font-sans); font-size: 12.5px; color: var(--text-secondary); font-weight: 700; }

/* ============================================================
   6. 首页 · 文章列表
   ============================================================ */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }

/* 文章卡片 —— 剪报风格 */
.post-card {
  position: relative;
  background: var(--surface-card);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 18px;
  transition: transform .15s, box-shadow .2s, border-color .15s, border-style .15s;
  display: flex; flex-direction: column; gap: 10px;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-input);
  border-style: solid;
}
/* 左上角邮戳边角 */
.post-card::before {
  content: ""; position: absolute; left: -2px; top: -2px;
  width: 16px; height: 16px;
  border-top: 1.5px dashed var(--orange);
  border-left: 1.5px dashed var(--orange);
  border-top-left-radius: var(--r-lg);
  pointer-events: none;
}
/* 头条卡（第一篇）顶部贴一条橘色胶带 */
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured .pc-title { font-size: clamp(24px, 3vw, 30px); }
.post-card.featured::after {
  content: ""; position: absolute; left: 28px; top: -12px;
  width: 92px; height: 22px;
  background: linear-gradient(180deg, rgba(201,118,68,.55), rgba(201,118,68,.35));
  border-left: 1px dashed rgba(251,244,227,.5);
  border-right: 1px dashed rgba(251,244,227,.5);
  transform: rotate(-3deg);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  border-radius: 1px;
  pointer-events: none;
}
/* 头条徽章 */
.pc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  font-family: var(--font-sans); font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange); border: 1px dashed var(--orange);
  border-radius: var(--r-pill); padding: 3px 10px;
}
.pc-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* 分类标签 */
.pc-cat {
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--green); text-transform: uppercase;
}
/* 标题 */
.pc-title { margin: 0; font-size: 21px; line-height: 1.3; }
.pc-title a { color: var(--text); border: none; }
.pc-title a:hover { color: var(--orange); }
/* 摘要 */
.pc-excerpt { color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; margin: 0; }
/* 元信息 */
.pc-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: auto; padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-sans); font-size: 12px; color: var(--text-tertiary);
}
.pc-meta .pc-date { display: inline-flex; align-items: center; gap: 5px; }
.pc-meta .pc-read { color: var(--orange); font-weight: 700; }
.pc-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); }

/* ============================================================
   7. 文章详情页
   ============================================================ */
.article {
  max-width: var(--content-w); margin: 56px auto 0; padding: 0 28px;
}
.article-head { margin-bottom: 32px; }
.article-head .ac-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--green); text-transform: uppercase; margin-bottom: 12px;
}
.article-head .ac-cat::before { content: ""; width: 18px; height: 1.5px; background: var(--green); }
.article-head h1 {
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.18; margin: 0 0 14px;
}
.article-head .ac-sub {
  font-size: 17px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 20px;
  font-style: italic;
}
.article-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
  font-family: var(--font-sans); font-size: 13px; color: var(--text-secondary);
}
.article-meta .am-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.article-meta .am-author .av {
  width: 28px; height: 28px; border-radius: 50%; border: 1px dashed var(--border-input);
  background: var(--orange-tint) center/cover no-repeat;
}
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); }
.article-meta .am-read { color: var(--orange); font-weight: 700; }

/* 正文 */
.post-content { font-size: 17px; line-height: 1.85; color: var(--text); }
.post-content > * + * { margin-top: 1.4em; }
.post-content h2 { margin-top: 2em; margin-bottom: .6em; padding-bottom: .3em; border-bottom: 1px dashed var(--border); }
.post-content h2::before { content: "§ "; color: var(--orange); font-family: Georgia, serif; }
.post-content h3 { margin-top: 1.6em; margin-bottom: .5em; color: var(--brown); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li { margin: .4em 0; }
.post-content li::marker { color: var(--orange); font-weight: 800; }
.post-content a { border-bottom-color: var(--accent); }
.post-content img { border-radius: var(--r-md); border: 1px dashed var(--border); box-shadow: var(--shadow-card); margin: 1.8em auto; }
/* 铅笔批注式注解 */
.post-content .aside, .post-content aside.note {
  background: var(--orange-tint); border: 1px dashed var(--orange);
  border-radius: var(--r-md); padding: 14px 18px;
  font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--brown);
  position: relative; margin: 1.8em 0;
}
.post-content .aside::before {
  content: "✎ 编辑批注"; display: block;
  font-family: var(--font-sans); font-style: normal; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; color: var(--orange); text-transform: uppercase; margin-bottom: 6px;
}
/* 文末标签 */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 24px;
  padding-top: 20px; border-top: 1px dashed var(--border);
}
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  color: var(--green); background: var(--green-tint);
  border: 1px dashed var(--green); border-radius: var(--r-pill);
  padding: 4px 11px; transition: all .15s;
}
.tag:hover { background: var(--green); color: var(--on-accent); border-style: solid; }
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* 文末签名 */
.post-sign {
  margin: 32px 0 0; padding: 18px 22px;
  background: var(--surface-nested); border: 1px dashed var(--border); border-radius: var(--r-md);
  font-style: italic; color: var(--text-secondary); text-align: center;
}
.post-sign .sig-name { font-family: var(--font-serif); font-weight: 800; color: var(--text); font-style: normal; }

/* 上下篇导航 */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0;
}
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block; padding: 14px 18px;
  background: var(--surface-card); border: 1px dashed var(--border); border-radius: var(--r-md);
  color: var(--text); transition: all .15s;
}
.post-nav a:hover { border-color: var(--border-input); border-style: solid; transform: translateY(-2px); box-shadow: var(--shadow-card); }
.post-nav .pn-label { font-family: var(--font-sans); font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--orange); text-transform: uppercase; }
.post-nav .pn-title { font-weight: 700; margin-top: 4px; font-size: 15px; }
.post-nav .pn-next { text-align: right; }

/* ============================================================
   8. 侧栏
   ============================================================ */
.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; margin: 40px 0; }
@media (max-width: 960px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
@media (max-width: 960px) { .sidebar { position: static; } }

.widget {
  background: var(--surface-card); border: 1px dashed var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 18px 20px;
  position: relative;
}
.widget-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-serif); font-size: 15px; font-weight: 800; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px dashed var(--border);
}
.widget-title::before { content: ""; width: 3px; height: 14px; background: var(--orange); border-radius: 2px; }

/* 关于小卡片 */
.widget-about { text-align: center; }
.widget-about .wa-ava {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  border: 1.5px dashed var(--border-input);
  background: var(--orange-tint) center/cover no-repeat;
  position: relative;
}
.widget-about .wa-ava::after {
  content: ""; position: absolute; right: -4px; bottom: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--surface-card);
}
.widget-about .wa-name { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.widget-about .wa-bio { font-size: 13px; color: var(--text-secondary); margin: 0 0 12px; line-height: 1.55; }
.widget-about .wa-social { display: flex; justify-content: center; gap: 8px; }
.widget-about .wa-social a {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-nested); border: 1px dashed var(--border-input);
  color: var(--text-secondary); font-size: 14px;
}
.widget-about .wa-social a:hover { background: var(--accent); color: var(--on-accent); border-style: solid; }

/* 最新文章 */
.widget-recent li {
  list-style: none; padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.widget-recent li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-recent li:first-child { padding-top: 0; }
.widget-recent a { color: var(--text); border: none; font-weight: 600; font-size: 14px; line-height: 1.5; display: block; }
.widget-recent a:hover { color: var(--orange); }
.widget-recent .wr-date { font-family: var(--font-sans); font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* 标签云 */
.widget-tags .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tags .tagcloud a {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  color: var(--text-secondary); background: var(--surface-nested);
  border: 1px dashed var(--border); border-radius: var(--r-pill);
  padding: 3px 9px; transition: all .15s;
}
.widget-tags .tagcloud a:hover { background: var(--orange); color: var(--on-dark); border-color: var(--orange); border-style: solid; }
.widget-tags .tagcloud a[data-size="lg"] { font-size: 14px; color: var(--orange); border-color: var(--orange); }
.widget-tags .tagcloud a[data-size="md"] { font-size: 13px; color: var(--green); border-color: var(--green); }

/* ============================================================
   9. 分页
   ============================================================ */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin: 48px 0 32px; font-family: var(--font-sans);
}
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border-input); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  background: var(--surface-card); transition: all .15s;
}
.pagination a:hover { border-style: solid; color: var(--orange); border-color: var(--orange); }
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); border-style: solid; }
.pagination .ellipsis { border: none; background: none; }

/* ============================================================
   10. 页脚
   ============================================================ */
.site-footer {
  background: var(--surface-dark); color: var(--on-dark);
  border-top: 3px solid var(--orange);
  margin-top: 80px; padding: 48px 0 28px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background-image: linear-gradient(90deg, var(--on-dark-mute) 50%, transparent 50%);
  background-size: 8px 1px;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--on-dark); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--font-sans); margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 1px dashed rgba(239,228,203,.18);
}
.site-footer a { color: var(--on-dark-mute); border: none; font-family: var(--font-sans); font-size: 13.5px; line-height: 2; }
.site-footer a:hover { color: var(--orange-soft); }
.site-footer .footer-brand .fb-title { font-family: var(--font-serif); font-size: 20px; font-weight: 800; color: var(--on-dark); margin: 0 0 6px; }
.site-footer .fb-tag { color: var(--on-dark-mute); font-size: 13px; font-family: var(--font-sans); margin: 0 0 12px; }
.site-footer .footer-bottom {
  max-width: var(--maxw); margin: 36px auto 0; padding: 18px 28px 0;
  border-top: 1px dashed rgba(239,228,203,.18);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-sans); font-size: 12px; color: var(--on-dark-mute);
}
.site-footer .footer-bottom .fb-no { color: var(--orange-soft); font-weight: 700; letter-spacing: .04em; }

/* ============================================================
   11. 工具类 & 响应式
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* 阅读进度条（可选 JS 接 .reading-progress） */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  width: 0; transition: width .1s;
}

/* 移动端调整 */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header .container { gap: 12px; }
  .postmark { display: none; }
  .article { margin-top: 32px; }
  .post-content { font-size: 16px; }
}
/* ===== 小初高下拉 + 整本书书单（2026-08-06 桥哥需求）===== */
.nav-dd { position: relative; }
.nav-dd-btn::after { content: "▾"; margin-left: 3px; font-size: 11px; opacity: .75; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); right: -10px; z-index: 60;
  min-width: 420px; padding: 12px;
  background: var(--surface-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(42,56,41,.25);
  display: none; text-align: left;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { display: block; }
.nav-dd-menu::before {
  content: ""; position: absolute; top: -6px; right: 26px;
  width: 11px; height: 11px; background: var(--surface-card);
  border-left: 1px dashed var(--border); border-top: 1px dashed var(--border);
  transform: rotate(45deg);
}
.nav .nav-dd-menu a, .nav .nav-dd-menu .dd-coming { display: block; padding: 6px 8px; font-size: 14.5px; font-weight: 600; color: var(--text); border: 1px dashed transparent; border-radius: 7px; transition: background .15s, color .15s; }
.nav .nav-dd-menu .dd-stage { display: flex; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.nav .nav-dd-menu .dd-stage a { flex: 1; text-align: center; padding: 8px 0; font-size: 14px; border-color: var(--border); }
.nav .nav-dd-menu .dd-stage a:hover, .nav .nav-dd-menu .dd-stage a.dd-cur { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nav .nav-dd-menu .dd-book-title { margin: 10px 0 5px; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--text-secondary); }
.nav .nav-dd-booklist { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px 10px; }
.nav .nav-dd-booklist a::before, .nav .nav-dd-booklist .dd-coming::before { content: "📖 "; font-size: 11px; opacity: .8; }
.nav .nav-dd-booklist a:hover { background: var(--accent-muted); border-color: var(--accent-muted); color: var(--accent); }

/* ===== 整本书书单面板（2026-08-06 v2：学段并列顶部 + 书单独立展示）===== */
.booklist-panel { margin-bottom: 14px; padding: 12px; background: var(--surface-card); border: 1px dashed var(--border); border-radius: 10px; }
.booklist-title { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--accent); margin-bottom: 8px; }
.booklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.booklist-grid a { display: block; padding: 5px 8px; font-size: 12.5px; font-weight: 600; color: var(--text); border-radius: 6px; white-space: nowrap; }
.booklist-grid a::before { content: "📖 "; font-size: 10px; opacity: .8; }
.booklist-grid a:hover { background: var(--accent-muted); color: var(--accent); }
.booklist-grid a.cur { background: var(--accent); color: var(--on-accent); }

/* ===== 页脚行书 LOGO（2026-08-06 桥哥定稿：品牌统一语文桥）===== */
.site-footer .footer-brand .fb-title {
  font-family: "Ma Shan Zheng", "STXingkai", "Xingkai SC", "KaiTi", serif;
  font-size: 44px; font-weight: 400; letter-spacing: 8px;
  color: var(--on-dark); margin: 0 0 10px; line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.site-footer .fb-tag { letter-spacing: .06em; }

/* ===== 页脚书法 LOGO 图片（2026-08-06 桥哥设计稿：透明底金字）===== */
.site-footer .footer-brand .fb-logo {
  display: block; height: 46px; width: auto;
  filter: drop-shadow(0 0 14px rgba(232,201,92,.4)) drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* 下拉书单当前书高亮（2026-08-06 v3） */
.nav .nav-dd-booklist a.cur { background: var(--accent); color: var(--on-accent); }

/* 学段书单下拉：未建页面书目置灰（2026-08-06 v4） */
.nav .nav-dd-booklist .dd-coming {
  display: block; padding: 6px 8px; font-size: 14.5px; font-weight: 600;
  color: var(--text-tertiary); border-radius: 7px; white-space: nowrap; cursor: default;
}
.nav .nav-dd-booklist .dd-coming::before { content: "📖 "; font-size: 11px; opacity: .5; }
.nav .nav-dd-menu .dd-stage a { font-weight: 700; }

/* 学段书单：分组脚注（当代文学/科学人文由教师推荐） */
.nav .nav-dd-menu .dd-note {
  margin-top: 8px; padding: 6px 8px 0; border-top: 1px dashed var(--border);
  font-size: 11px; color: var(--text-tertiary); text-align: center; letter-spacing: .04em;
}

/* 悬停桥：覆盖按钮→菜单间隙，悬停固定、移出书目区才收起（2026-08-06） */
.nav-dd::after {
  content: ""; position: absolute; top: 100%; left: -12px; right: -12px; height: 14px;
  z-index: 59;
}

/* 右伴读栏：隐藏滚动条（可滚无可见条，2026-08-06 定稿）
   ⚠️ 不覆盖 position——正式页=旧布局(fixed) / -a页=新布局(grid sticky)，两种都要保留原生定位 */
.reader-aside-right {
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
}
.reader-aside-right::-webkit-scrollbar { width: 0 !important; height: 0 !important; }

/* 首段同样缩进（2026-08-06 桥哥：中文排版规范，首段两字缩进） */
.text-content > p:first-of-type { text-indent: 2em !important; }

/* 正式页旧布局：左栏容器去冗余滚动（toc-panel 已限高，避免嵌套双滚动条，2026-08-06） */
.reader-aside-left { overflow: visible !important; }
