/* ===========================================================
   青岛婚姻家事律师 — 排版重设计 v3.1
   设计理念：静谧奢华 · 律政典范 · 世界顶级律所排版
   配色：墨玉黑 + 香槟金 | 字体：Noto Serif SC + Inter
   =========================================================== */

/* === 字体加载 === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

/* ============================================================
   设计令牌
   ============================================================ */
:root {
  /* ─ 品牌色系：深酒红 × 暖金 × 奶油白 ─ */
  --brand-ink:        #2D1B1E;  /* 深酒红——最深色，标题/导航 */
  --brand-dark:       #3D2529;  /* 酒红——主色，按钮/强调 */
  --brand-mid:        #5C4045;  /* 中酒红——次级文字 */
  --brand-gold:       #C4A07A;  /* 暖金——点缀/装饰/CTA */
  --brand-gold-light: #D4B896;  /* 浅暖金——悬停高亮 */
  --brand-gold-dim:   rgba(196, 160, 122, 0.10); /* 金透——轻背景 */
  --brand-gold-mid:   rgba(196, 160, 122, 0.22); /* 金透——悬停背景 */
  --brand-gold-glow:  rgba(196, 160, 122, 0.30); /* 金晕——阴影 */

  /* ─ 背景色系 ─ */
  --bg-page:          #F5F1EB;  /* 页底——奶油白 */
  --bg-card:          #FFFFFF;  /* 卡片——纯白 */
  --bg-warm:          #EDE6DF;  /* 暖区间——TTS栏/页脚 */
  --bg-code:          #E5DDD6;  /* 代码底 */
  --bg-overlay:       rgba(45, 27, 30, 0.03); /* 微覆盖 */

  /* ─ 边框 ─ */
  --border-hair:      1px solid rgba(45, 27, 30, 0.06);
  --border-light:     1px solid rgba(45, 27, 30, 0.10);
  --border-mid:       1px solid rgba(45, 27, 30, 0.14);
  --border-gold:      1px solid rgba(196, 160, 122, 0.25);

  /* ─ 文字色 ─ */
  --text-primary:      #2D1B1E;  /* 主文——深酒红 */
  --text-secondary:    #5C4045;  /* 辅文——酒红灰 */
  --text-muted:        #9C8A8A;  /* 弱化——暖灰 */
  --text-inverse:      #FFFFFF;  /* 反白 */
  --text-link:         #5C4045;  /* 链接 */
  --text-link-hover:   #2D1B1E;

  /* ─ 阴影 ─ */
  --shadow-sm:    0 1px 3px rgba(45, 27, 30, 0.04);
  --shadow-md:    0 2px 8px rgba(45, 27, 30, 0.05);
  --shadow-lg:    0 4px 16px rgba(45, 27, 30, 0.06);
  --shadow-xl:    0 8px 24px rgba(45, 27, 30, 0.08);
  --shadow-gold:  0 2px 12px rgba(196, 160, 122, 0.20);

  /* ─ 圆角：极克制 ─ */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  6px;
  --radius-xl:  8px;
  --radius-2xl: 12px;
  --radius-full: 9999px;

  /* ─ 间距：8点网格 ─ */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
  --space-7: 28px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --space-24: 96px;

  /* ─ 排版比例（1.25 Major Third） ─ */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.8125rem; /* 13px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.0625rem; /* 17px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3rem;      /* 48px */

  /* ─ 行高 ─ */
  --leading-tight:    1.2;
  --leading-snug:     1.4;
  --leading-normal:   1.6;
  --leading-relaxed:  1.8;
  --leading-loose:    2.0;

  /* ─ 过渡 ─ */
  --transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* ─ 内容区 ─ */
  --content-max: 1200px;
  --content-padding: 32px;
}

/* ============================================================
   全局
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Serif SC', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
  overflow-x: hidden;
}

::selection {
  background: var(--brand-gold-dim);
  color: var(--brand-ink);
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--text-link-hover);
}

/* ============================================================
   顶部联系栏（极简发丝级）
   ============================================================ */
.top-contact-bar {
  display: none;
}

/* ============================================================
   站点头部
   ============================================================ */
.site-header {
  background: var(--bg-card) !important;
  border-bottom: var(--border-hair) !important;
}

.site-header .inside-header {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-6) var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Noto Serif SC', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: 3px;
  color: var(--brand-ink) !important;
  line-height: var(--leading-tight);
}
.site-logo a {
  color: var(--brand-ink) !important;
  text-decoration: none !important;
}
.site-logo .logo-sub {
  display: block;
  font-family: 'Noto Serif SC', 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--brand-gold);
  letter-spacing: 4px;
  margin-top: 8px;
  position: relative;
  padding-top: 12px;
}
.site-logo .logo-sub::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--brand-gold);
  margin: 0 auto 10px;
  opacity: 0.6;
}

.site-description {
  color: var(--text-muted) !important;
  font-size: var(--text-base) !important;
  font-weight: 400;
}

/* ============================================================
   导航（极简 · 大间距）
   ============================================================ */
.main-navigation {
  background: var(--bg-card) !important;
  border-bottom: var(--border-hair) !important;
}

.main-navigation .inside-navigation {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.main-navigation .main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.main-navigation .main-nav ul li a {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-base) !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  padding: var(--space-3) var(--space-4) !important;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
}
.main-navigation .main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-5);
  right: var(--space-5);
  height: 1px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}
.main-navigation .main-nav ul li a:hover {
  color: var(--brand-ink) !important;
}
.main-navigation .main-nav ul li a:hover::after {
  transform: scaleX(1);
}
.main-navigation .main-nav ul li.current-menu-item a {
  color: var(--brand-ink) !important;
  font-weight: 600 !important;
}
.main-navigation .main-nav ul li.current-menu-item a::after {
  transform: scaleX(1);
}

/* ============================================================
   站点内容
   ============================================================ */
.site-content {
  padding: var(--space-16) 0;
}
.home.blog .site-content,
.blog .site-content {
  background: var(--bg-page) !important;
}
.content-area {
  padding-right: var(--space-12);
}
@media (max-width: 768px) {
  .content-area { padding-right: 0; }
}

/* ============================================================
   智能咨询专区 —— 内嵌对话卡片
   ============================================================ */
.consultation-banner {
  background: var(--bg-card);
  border: 1px solid rgba(196, 160, 122, 0.18);
  border-radius: 16px;
  margin-bottom: var(--space-12);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(196, 160, 122, 0.10);
}
.consultation-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold), var(--brand-gold-light), var(--brand-gold), transparent);
  opacity: 0.8;
  z-index: 1;
  border-radius: 12px 12px 0 0;
}

/* 头部 */
.consultation-header {
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid rgba(196, 160, 122, 0.12);
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}
.consultation-header .ch-icon {
  font-size: 32px;
  line-height: 1;
}
.consultation-header .ch-info { flex: 1; }
.consultation-header .ch-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-ink);
}
.consultation-header .ch-status {
  font-size: 14px;
  color: var(--text-muted);
}
.consultation-header .ch-status .dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%; background: #2ECC71; margin-right: 4px;
}

/* 对话区 */
.consultation-conversation {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6) var(--space-8);
  min-height: 280px;
  
  background: #FBF8F5;
}
.consultation-conversation .cc-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  padding: 60px 0;
  line-height: 1.8;
}
.consultation-conversation .cc-msg {
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
}
.consultation-conversation .cc-msg .cc-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.consultation-conversation .cc-msg .cc-bubble {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 85%;
}
.consultation-conversation .cc-msg.user {
  align-items: flex-end;
}
.consultation-conversation .cc-msg.user .cc-bubble {
  background: var(--brand-ink);
  color: #fff;
  border-radius: 6px 2px 6px 6px;
}
.consultation-conversation .cc-msg.bot {
  align-items: flex-start;
}
.consultation-conversation .cc-msg.bot .cc-bubble {
  background: #fff;
  border: 1px solid rgba(45,27,30,0.06);
  color: #3D3529;
  border-radius: 2px 6px 6px 6px;
  box-shadow: 0 1px 3px rgba(45,27,30,0.04);
}
.consultation-conversation .cc-msg.bot .cc-bubble strong {
  color: var(--brand-ink);
}

/* 输入区 */
/* ── 底部输入区（胶囊设计） ── */
.consultation-footer {
  padding: var(--space-6) var(--space-8) var(--space-6);
  background: var(--bg-card);
  border-top: 1px solid rgba(196, 160, 122, 0.10);
  flex-shrink: 0;
}
.cf-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: #F9F7F4;
  border-radius: 28px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid #EDE8E0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cf-pill:focus-within {
  border-color: #B88A6A;
  box-shadow: 0 2px 12px rgba(184, 138, 106, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}
.cf-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #3D3529;
  padding: 12px 0;
  min-height: 48px;
}
.cf-input::placeholder {
  color: #B5ADA5;
  font-size: 13px;
}
.cf-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #B88A6A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.cf-send:hover {
  background: #9C7050;
  transform: scale(1.05);
}
.cf-send:active {
  transform: scale(0.97);
}
.cf-send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 字数提示 */
.cf-counter {
  text-align: right;
  font-size: 11px;
  color: #C5BDB3;
  margin-top: 4px;
  padding-right: 8px;
}
.cf-counter.warning { color: #D49080; }
/* 隐私声明 */
.cf-privacy {
  text-align: center;
  font-size: 13px;
  color: #8C8379;
  line-height: 1.7;
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid rgba(196, 160, 122, 0.12);
  background: rgba(196, 160, 122, 0.04);
  letter-spacing: 0.3px;
  border-radius: 0 0 12px 12px;
  margin-top: auto;
}
.cf-privacy::before {
  content: '⚠️ ';
  font-size: 12px;
}

/* 统一内部边框色 */
.consultation-header { border-bottom-color: rgba(196, 160, 122, 0.12); }
.consultation-footer { border-top-color: rgba(196, 160, 122, 0.12); }

/* ============================================================
   全站标题层级规范 —— 新中式 · 统一克制
   ============================================================ */

/* ─ 层级1: 分类/页面大标题（婚前财产、离婚纠纷、常见问题等） ─ */
.page-header .page-title,
.page .entry-title {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 1.25rem !important;          /* 20px */
  font-weight: 600 !important;
  line-height: 1.4;
  color: var(--brand-ink) !important;
  letter-spacing: 0.3px;
  margin: 0 0 4px 0 !important;
  text-transform: none;
  border: none;
  background: transparent;
  padding: 0;
}

/* 页面标题下方描述文字（婚前协议、彩礼、同居财产等） */
.taxonomy-description {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem !important;         /* 13px */
  color: var(--text-muted) !important;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}
.taxonomy-description p {
  margin: 0;
}

/* ─ 分类页page-header背景/边距统一 ─ */
.page-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: var(--space-6) 0 var(--space-4) 0 !important;
  margin: 0 !important;
}

/* ─ 层级2: 单篇文章标题（文章详情页） ─ */
/* Already styled at line ~647 */

/* ─ 层级3: 文章列表标题（首页/分类列表） ─ */
/* Already styled in article list section */

/* ============================================================
   首页文章列表 —— 新中式 · 书卷雅韵
   左竖线引文 · 暖金点缀 · 层级分明
   ============================================================ */
.home.blog .site-main,
.blog .site-main,
.archive .site-main {
  display: grid;
  gap: 2px;
}

/* ─ 文章卡片：带左竖线装饰 ─ */
.home.blog .site-main > article,
.blog .site-main > article,
.archive .site-main > article,
.article-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 0 10px 16px;
  box-shadow: none;
  transition: none;
  position: relative;
  border-bottom: var(--border-hair);
}

/* 左竖线装饰——新中式书卷韵味 */
.home.blog .site-main > article::before,
.blog .site-main > article::before,
.archive .site-main > article::before,
.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--brand-gold);
  border-radius: 2px;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.home.blog .site-main > article:hover::before,
.blog .site-main > article:hover::before,
.archive .site-main > article:hover::before,
.article-card:hover::before {
  opacity: 0.7;
  transform: scaleY(1.05);
}

.home.blog .site-main > article:last-child,
.blog .site-main > article:last-child,
.archive .site-main > article:last-child,
.article-card:last-child {
  border-bottom: none;
}

.home.blog .site-main > article:hover,
.blog .site-main > article:hover,
.archive .site-main > article:hover,
.article-card:hover {
  box-shadow: none;
  transform: none;
}

/* ─ 标题：端庄突出 ─ */
.home.blog .entry-title,
.blog .entry-title,
.archive .entry-title,
.article-card .entry-title {
  font-family: 'Noto Serif SC', 'Inter', system-ui, sans-serif;
  font-size: var(--text-md) !important;
  font-weight: 700 !important;
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin: 0 0 2px !important;
}

.home.blog .entry-title a,
.blog .entry-title a,
.archive .entry-title a,
.article-card .entry-title a {
  color: var(--brand-ink) !important;
  transition: color 0.25s ease;
  text-decoration: none;
}
.home.blog .entry-title a:hover,
.blog .entry-title a:hover,
.archive .entry-title a:hover,
.article-card .entry-title a:hover {
  color: var(--brand-gold) !important;
}

/* ─ 引言摘要：轻小灰色 ─ */
.home.blog .entry-summary,
.blog .entry-summary,
.archive .entry-summary,
.article-card .entry-summary {
  color: var(--text-muted) !important;
  font-size: 0.8125rem !important;  /* 13px */
  line-height: 1.6;
  margin-top: 0;
}

.home.blog .entry-summary p,
.blog .entry-summary p,
.archive .entry-summary p,
.article-card .entry-summary p {
  margin: 0;
}

.home.blog .entry-meta,
.blog .entry-meta,
.article-card .entry-meta {
  display: none !important;
}

/* 分类标签：隐藏（顶级律所不需要分类标签） */
.home.blog .entry-meta .cat-links,
.blog .entry-meta .cat-links,
.entry-footer .cat-links,
.single .entry-meta .cat-links,
.single .entry-footer .cat-links {
  display: none !important;
}

/* 阅读更多：隐藏 */
.home.blog .read-more-container,
.blog .read-more-container {
  display: none !important;
}

/* ============================================================
   单篇文章 —— 顶级阅读体验
   ============================================================ */
.single .site-content {
  background: var(--bg-page) !important;
}
.single .site-main {
  background: var(--bg-card);
  border: var(--border-hair);
  padding: var(--space-16) var(--space-16);
  max-width: 820px;
  margin: 0 auto;
}

/* 文章分类标签 */
.article-cat-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
}

.single .entry-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(45, 27, 30, 0.08);
}

.single .entry-title {
  font-family: 'Noto Serif SC', 'Inter', system-ui, sans-serif;
  font-size: var(--text-lg) !important;
  font-weight: 700 !important;
  line-height: 1.35;
  color: var(--brand-ink) !important;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3) !important;
}

.article-footer-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.single .entry-meta {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── 正文排版 ── */
.single .entry-content {
  font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.single .entry-content p {
  margin: 0 0 1.35em;
}

.single .entry-content > p:first-child {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.35em;
}

/* ── 段落标题：杂志风 ── */
.single .entry-content h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--brand-ink);
  margin: 1.8em 0 0.6em;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.single .entry-content h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 1.4em 0 0.4em;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.single .entry-content h4 {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 1.2em 0 0.3em;
  line-height: 1.35;
}

/* ── 法律条文引用卡片 ── */
.single .entry-content blockquote,
.single .entry-content .legal-card {
  margin: 1.6em 0;
  padding: var(--space-5) var(--space-6);
  background: var(--bg-warm);
  border-left: 3px solid var(--brand-gold);
  font-family: 'Noto Serif SC', serif;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95em;
  border-radius: 0 4px 4px 0;
}

/* 加粗强调 */
.single .entry-content strong {
  color: var(--brand-ink);
  font-weight: 600;
}

/* 文章内列表 */
.single .entry-content ul,
.single .entry-content ol {
  margin: 0 0 1.35em 1.2em;
  padding-left: 0.5em;
}
.single .entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

/* 文章内提示框 */
.single .entry-content .article-note {
  margin: 2em 0;
  padding: var(--space-5) var(--space-6);
  background: var(--bg-warm);
  border-left: 3px solid var(--brand-gold);
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 0.95em;
  border-radius: 0 4px 4px 0;
}
.single .entry-content .article-note strong {
  color: var(--brand-ink);
}

... [OUTPUT TRUNCATED - 965 chars omitted out of 50965 total] ...

ns: 1fr; }
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  padding: var(--space-5);
  background: var(--bg-warm);
  border: var(--border-hair);
  transition: background var(--transition-fast);
}
.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  background: var(--brand-gold-dim);
}

/* ============================================================
   TTS 朗读
   ============================================================ */
.tts-toolbar {
  background: var(--bg-warm);
  border: var(--border-hair);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-8) !important;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.tts-btn {
  font-family: 'Inter', system-ui, sans-serif;
  background: transparent;
  border: var(--border-light);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tts-btn:hover {
  background: var(--brand-gold-dim);
  color: var(--brand-ink);
}
.tts-btn.tts-play {
  background: var(--brand-ink);
  color: var(--text-inverse);
  border-color: var(--brand-ink);
}
.tts-speed {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  padding-left: var(--space-4);
  border-left: var(--border-hair);
}
.tts-speed label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tts-speed-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 2px;
  background: var(--border-mid);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}
.tts-speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--brand-ink);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.tts-speed-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 30px;
  text-align: center;
}

/* ============================================================
   侧边栏 —— 极简卡片
   ============================================================ */
.sidebar .widget {
  background: var(--bg-card);
  border: var(--border-hair);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.sidebar .widget-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-xs) !important;
  font-weight: 500 !important;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-hair);
}
.sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .widget ul li {
  padding: var(--space-3) 0;
  border-bottom: var(--border-hair);
  font-size: var(--text-base);
}
.sidebar .widget ul li:last-child {
  border-bottom: none;
}
.sidebar .widget ul li a {
  color: var(--text-secondary);
  display: block;
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}
.sidebar .widget ul li a:hover {
  color: var(--brand-ink);
  padding-left: var(--space-1);
}

/* —— 律师卡片 —— */
.lawyer-profile-card {
  text-align: center;
}
.lawyer-profile-card .lawyer-photo {
  margin-bottom: var(--space-4);
  display: inline-block;
}
.lawyer-profile-card .lawyer-photo img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-light);
}
.lawyer-name {
  font-family: 'Noto Serif SC', serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--brand-ink);
  margin: var(--space-3) 0 var(--space-1);
  letter-spacing: 2px;
}
.lawyer-title {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  font-weight: 400;
  letter-spacing: 1px;
}
.lawyer-bio {
  text-align: left;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}
.lawyer-contact {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border-hair);
}
.lawyer-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--brand-ink);
  color: var(--text-inverse);
  padding: var(--space-3) 0;
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: 1px;
  transition: background var(--transition-fast);
  text-decoration: none;
  padding: var(--space-4) 0;
}
.lawyer-phone-btn:hover {
  background: var(--brand-dark);
  color: var(--brand-gold-light);
  transform: none;
  box-shadow: none;
}

/* ========== 律师名片 - 二维码 ========== */
.lawyer-qrcode {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border-hair);
  text-align: center;
}
.lawyer-qrcode .qrcode-img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  display: block;
  margin: 0 auto var(--space-2);
  border: 1px solid var(--border-light);
}
.lawyer-qrcode .qrcode-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   分页
   ============================================================ */
.paging-navigation {
  background: transparent !important;
  border: none !important;
  padding: var(--space-10) 0;
}
.paging-navigation .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.paging-navigation .nav-links a,
.paging-navigation .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: transparent;
  border: var(--border-hair);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 400;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.paging-navigation .nav-links a:hover {
  background: var(--brand-gold-dim);
  border-color: var(--brand-gold);
}
.paging-navigation .nav-links .page-numbers.current {
  background: var(--brand-ink);
  color: var(--text-inverse);
  border-color: var(--brand-ink);
}

/* ============================================================
   评论区 —— 杂志级
   ============================================================ */
.comment-area {
  background: var(--bg-card);
  border: var(--border-hair);
  padding: var(--space-10);
  margin-top: var(--space-10);
}
.comments-title {
  font-family: 'Noto Serif SC', 'Inter', system-ui, sans-serif;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 2px solid var(--brand-gold-dim);
  letter-spacing: 0.5px;
}

.comment-area .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-area .comment-list .comment {
  padding: var(--space-6) 0;
  border-bottom: var(--border-hair);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
}
.comment-area .comment-list .comment:last-child {
  border-bottom: none;
}
.comment-area .comment-list .comment strong {
  color: var(--brand-ink);
  font-weight: 600;
}

.comment-area input,
.comment-area textarea {
  width: 100%;
  border: var(--border-light) !important;
  padding: var(--space-4) var(--space-5) !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  background: var(--bg-page);
  transition: border-color var(--transition-fast);
}
.comment-area input:focus,
.comment-area textarea:focus {
  border-color: var(--brand-gold) !important;
  outline: none !important;
}
.comment-area .form-submit input {
  width: auto;
  background: var(--brand-ink) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  padding: var(--space-3) var(--space-8) !important;
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  letter-spacing: 1px;
  transition: background var(--transition-fast);
}
.comment-area .form-submit input:hover {
  background: var(--brand-dark) !important;
}

/* ============================================================
   页脚 + 免责声明
   ============================================================ */
.site-footer {
  background: var(--bg-card) !important;
  border-top: var(--border-hair) !important;
  color: var(--text-secondary) !important;
  font-size: var(--text-base);
}

.footer-disclaimer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--content-padding) var(--space-6);
  text-align: center;
  border-top: var(--border-hair);
}
.footer-disclaimer p {
  margin: var(--space-1) 0;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}
.footer-disclaimer strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   智能法律咨询助手 v4 — 情感化设计
   ============================================================ */

/* —— 悬浮触发按钮 —— */
#ai-legal-btn {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 9998;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-ink), var(--brand-dark));
  color: var(--text-inverse);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(45, 27, 30, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all var(--transition-normal);
  border-radius: 50%;
}
#ai-legal-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(45, 27, 30, 0.4);
}
#ai-legal-btn .btn-icon { line-height: 1; position: relative; z-index: 1; }
#ai-legal-btn .btn-badge { display: none; }
#ai-legal-btn.is-close {
  background: var(--text-muted);
  box-shadow: var(--shadow-md);
}

/* —— 对话容器：暖色卡片悬浮 —— */


/* ===== 书展示组件（Sidebar + 首页 + 文章底部） ===== */
.book-card {
  background: var(--base-3);
  border: 1px solid rgba(196, 160, 122, 0.20);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.book-card__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.book-card__cover-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: block;
}
.book-card__info {
  flex: 1;
  min-width: 0;
}
.book-card__title {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #2D1B1E;
  line-height: 1.4;
  margin: 0 0 4px;
}
.book-card__author {
  font-size: 14px;
  color: #9C8A8A;
  margin: 0 0 8px;
}
.book-card__desc {
  font-size: 14px;
  color: #6B5B5B;
  line-height: 1.7;
  margin: 0 0 10px;
}
.book-card__cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #C4A07A;
  text-decoration: none;
  border-bottom: 1px solid rgba(196,160,122,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
  cursor: pointer;
}
.book-card__cta:hover {
  border-bottom-color: #C4A07A;
  color: #8B6914;
}

/* 首页横幅版 */
.book-banner {
  background: linear-gradient(135deg, #f9f5f0 0%, #f0ebe3 100%);
  border: 1px solid rgba(196, 160, 122, 0.25);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 30px;
}
.book-banner__inner {
  display: flex;
  gap: 24px;
  align-items: center;
}
.book-banner__cover {
  flex-shrink: 0;
  width: 120px;
  height: 170px;
  background: linear-gradient(135deg, #8B6914, #C4A07A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.book-banner__info {
  flex: 1;
}
.book-banner__label {
  font-size: 11px;
  font-weight: 500;
  color: #C4A07A;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.book-banner__title {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #2D1B1E;
  line-height: 1.3;
  margin: 0 0 6px;
}
.book-banner__author {
  font-size: 13px;
  color: #9C8A8A;
  margin: 0 0 12px;
}
.book-banner__desc {
  font-size: 14px;
  color: #6B5B5B;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 600px;
}
.book-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.book-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.book-banner__btn--primary {
  background: #2D1B1E;
  color: #fff;
  border: none;
}
.book-banner__btn--primary:hover {
  background: #4a2d30;
  color: #fff;
}
.book-banner__btn--outline {
  background: transparent;
  color: #2D1B1E;
  border: 1px solid rgba(45,27,30,0.25);
}
.book-banner__btn--outline:hover {
  border-color: #2D1B1E;
  background: rgba(45,27,30,0.04);
}

/* 文章底部CTA */
.post-book-cta {
  background: linear-gradient(135deg, #f9f5f0 0%, #f0ebe3 100%);
  border: 1px solid rgba(196, 160, 122, 0.20);
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  text-align: center;
}
.post-book-cta__inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.post-book-cta__cover {
  flex-shrink: 0;
  width: 120px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.post-book-cta__cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.post-book-cta__text {
  flex: 1;
  text-align: left;
  min-width: 0;
}
.post-book-cta__title {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #2D1B1E;
  margin: 0 0 8px;
}
.post-book-cta__desc {
  font-size: 14px;
  color: #6B5B5B;
  line-height: 1.7;
  margin: 0;
}
.post-book-cta__btn-wrap {
  text-align: center;
}
.post-book-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: #2D1B1E;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}
.post-book-cta__btn:hover {
  background: #4a2d30;
  color: #fff;
}
@media (max-width: 600px) {
  .post-book-cta__inner {
    flex-direction: column;
    align-items: center;
  }
  .post-book-cta__text {
    text-align: center;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .book-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .book-banner__cover {
    width: 100px;
    height: 140px;
    font-size: 32px;
  }
  .book-banner__desc {
    max-width: 100%;
  }
  .book-banner__actions {
    justify-content: center;
  }
  .book-card__inner {
    align-items: center;
    text-align: center;
  }
}