/* === dialogue.css - 优雅浅色多语录版 === */

/* === 全局基础与呼吸感设置 === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  background: #fcfbfa;
  color: #3a3f47;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  /* 顶部留出导航栏高度 */
}

/* === 高级感配色变量 === */
:root {
  --primary-color: #2e4057;
  --accent-color: #c5a059;
  --text-main: #3a3f47;
  --text-muted: #8e959f;
  --bg-block: #ffffff;
  --bg-light: #f5f6f8;
  --border-color: #eaecef;
}

/* === 顶部导航（融合 dialogue2 的结构） === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(252, 251, 250, 0.85);
  /* 半透明毛玻璃 */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

header .logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: .05em;
}

header .logo span {
  color: var(--accent-color);
}

header nav a {
  font-size: .95rem;
  margin-left: 24px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s;
  font-weight: 500;
}

header nav a:hover {
  color: var(--primary-color);
}

/* === 排版与标题 === */
.section-title {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent-color);
  margin-bottom: 8px;
  font-weight: 500;
}

p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 18px;
}


/* === 对话核心区块 === */
.dialogue-block {
  padding: 32px 0;
  margin: 24px 0;
}

/* === 说话人样式（高级莫兰迪半透明背景版） === */
.dialogue-block .speaker,
.dialogue-block .speaker-b,
.dialogue-block .speaker-c {
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-right: 8px;
  display: inline-block;
  letter-spacing: 0.02em;
}

/* 角色 A：深索道（规划师）- 采用淡雅的深钛蓝/灰蓝衬底 */
.dialogue-block .speaker {
  color: #2e4057;
  background: #eef2f6;
}

/* 角色 B：安德路（提问者）- 采用淡雅的暖砂/浅香槟金衬底 */
.dialogue-block .speaker-b {
  color: #9a763e;
  background: #f7f3eb;
}

/* 角色 C：格林格·金（守夜人）- 采用淡雅的莫兰迪苔绿衬底 */
.dialogue-block .speaker-c {
  color: #4f6334;
  background: #eff3ea;
}


/* 场景交待与阅读时间 */
.dialogue-block .scene {
  font-style: normal;
  color: var(--primary-color);
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: #f0f4f8;
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
  letter-spacing: 0.02em;
}

.dialogue-block .read-time {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: -16px;
  margin-bottom: 24px;
}

/* === dialogue 区域内的二级标题（H2）高级感优化 === */
.section h2,
#content h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 500;
  color: var(--primary-color);
  margin: 20px 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  position: relative;
  padding-bottom: 12px;
}

/* 在二级标题下方加上一条极其含蓄、轻薄的香槟金底线 */
.section h2::after,
#content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  border-radius: 2px;
}


/* === dialogue 区域内的三级标题（H3）高级感优化 === */
.section h3,
#content h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 500;
  color: var(--primary-color);
  margin: 28px 0 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  position: relative;
  padding-left: 12px;
}

/* 在三级标题左侧，加入一根极其轻薄、灵动的香槟金垂直短线 */
.section h3::before,
#content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* === dialogue 区域内的四级标题（H4）高级感优化 === */
.section h4,
#content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 24px 0 24px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* === 优雅香槟金分割线（中间向两端渐变淡出） === */
.section hr,
#content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, rgba(212, 168, 83, 0), rgba(212, 168, 83, 0.25) 20%, rgba(212, 168, 83, 0.25) 80%, rgba(212, 168, 83, 0));
  margin: 44px 0;
  width: 100%;
}

/* 金句强调 */
.dialogue-block .quote-line {
  margin: 32px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent-color);
  color: var(--text-main);
  background: #fbf9f3;
  font-style: italic;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600px;
  line-height: 1.8;
}

/* 核心词强调 */
.dialogue-block .epilogue {
  margin: 32px;
  padding: 20px 24px;
  border-left: 3px solid var(--primary-color);
  color: var(--primary-color);
  background: var(--bg-light);
  font-style: italic;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600px;
  line-height: 1.8;
}

/* 重点词汇高亮（替代原html里的行内color） */
.highlight-primary {
  color: var(--primary-color);
  font-weight: 600;
}

.highlight-accent {
  color: var(--accent-color);
  font-weight: 600;
}

/* === 多维度列表样式（无序/有序） === */

/* 1. 精致无序列表（用于 加法/乘法/指数 概念拆解） */
.dialogue-block .concept-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 24px 8px;
}

.dialogue-block .concept-list li {
  font-size: 1rem;
  margin-bottom: 14px;
  position: relative;
  padding-left: 20px;
}

/* 自定义一个小巧优雅的香槟金圆点作为前缀 */
.dialogue-block .concept-list li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 1.2rem;
}

/* 列表前面的加粗核心词（如“加法：”） */
.dialogue-block .concept-list .keyword {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 4px;
}

/* 2. 精致有序列表（用于 步骤/核心改动 递进排版） */
.dialogue-block .ordered-list {
  list-style: none;
  counter-reset: list-counter;
  padding: 0;
  margin: 24px 0;
}

.dialogue-block .ordered-list li {
  font-size: 1rem;
  margin-bottom: 16px;
  position: relative;
  padding-left: 28px;
}

/* CSS 自动生成的典雅数字标签 */
.dialogue-block .ordered-list li::before {
  counter-increment: list-counter;
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--accent-color);
  /* 香槟金序号 */
  font-variant-numeric: tabular-nums;
}


/* === 表格样式（符合 Morandi 浅色高雅风） === */
.dialogue-block .summary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  background: var(--bg-block);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.dialogue-block .summary-table th,
.dialogue-block .summary-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.dialogue-block .summary-table th {
  background-color: #f7f6f4;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-color);
}

.dialogue-block .summary-table tr:last-child td {
  border-bottom: none;
}

/* 鼠标悬停时的微动效，提升交互质感 */
.dialogue-block .summary-table tr:hover td {
  background-color: #fdfdfd;
}


/* === 幕间过渡样式（第一幕、第二幕、终幕） === */
.dialogue-act {
  display: flex;
  align-items: center;
  margin: 48px 0 32px;
  /* 留出充足的上下呼吸空间 */
  color: var(--accent-color);
  /* 使用优雅的暖砂金/香槟金 */
  font-size: 0.95rem;
  /* 略小于大标题，比普通正文精致 */
  font-weight: 600;
  /* 适当加粗 */
  letter-spacing: 0.15em;
  /* 拉大字间距，营造一种静谧、戏剧开幕的仪式感 */
  text-transform: uppercase;
}

/* 在“第一幕”文字的两侧或右侧加上一条极其细腻的淡雅装饰线 */
.dialogue-act::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-color), rgba(234, 236, 239, 0));
  /* 渐变淡出的细腻线条 */
  margin-left: 16px;
  /* 线条与文字的间距 */
}

/* === 案例展示专栏块（Case Box） === */
.dialogue-block .case-box {
  background: #f4f5f2;
  border-radius: 6px;
  padding: 24px 28px;
  margin: 32px 0;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

/* 案例盒子内部的通用段落 */
.dialogue-block .case-box p {
  font-size: 0.95rem;
  color: #5a5956;
  margin-bottom: 12px;
  line-height: 1.75;
}

.dialogue-block .case-box p:last-child {
  margin-bottom: 0;
}

/* 案例标题样式 */
.dialogue-block .case-box p strong:first-child {
  color: var(--primary-color);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* 案例末尾的总结/金句提炼 */
.dialogue-block .case-box p:last-child strong {
  color: var(--accent-color);
  font-weight: 600;
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(212, 168, 83, 0.2);
}

/* === 问答与测试题样式（Quiz Block） === */

/* 问答题的整体包裹容器，给予柔和的留白 */
.dialogue-block .quiz-item {
  margin: 32px 0;
  padding: 4px 0;
}

/* 问答题的题目（Q1, Q2...） */
.dialogue-block .quiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-color);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* 选项列表容器（采用无序列表结构更优雅） */
.dialogue-block .quiz-options {
  list-style: none;
  padding: 0;
  margin: 0 0 0 12px;
}

/* 单个选项样式 */
.dialogue-block .quiz-options li {
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

/* 自定义小箭头前缀 */
.dialogue-block .quiz-options li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: -1px;
  color: rgba(212, 168, 83, 0.8);
  font-weight: normal;
}

/* === 术语/方法论补充说明块（Term Note） === */
.dialogue-block .term-note {
  background: rgba(212, 168, 83, 0.04);
  border-left: 3px solid var(--accent-color);
  border-radius: 0 6px 6px 0;
  padding: 18px 24px;
  margin: 28px 0;
}

/* 术语说明内的段落排版 */
.dialogue-block .term-note p {
  font-size: 0.95rem;
  color: #8a8885;
  margin: 0;
  line-height: 1.75;
}

/* strong 高亮 */
.dialogue-block .term-note p strong {
  color: var(--accent-color);
  font-weight: 600;
  margin-right: 4px;
  letter-spacing: 0.02em;
}

/* 术语说明内允许你使用 standard html 标签进行二次强调 */
.dialogue-block .term-note p strong:not(:first-child) {
  color: var(--primary-color);
}

/* === 互动工具箱导向 === */
.tool-guide {
  text-align: center;
  margin: 40px 0;
  padding: 24px;
  border: 1px dashed var(--accent-color);
  border-radius: 6px;
  background: #fdfcf9;
}

.tool-guide p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tool-guide a,
.btn-back {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: .95rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all .3s;
  margin: 6px;
}

.tool-guide a:hover,
.btn-back:hover {
  background: var(--accent-color);
  color: #fff;
}

/* === 文章底部标签 === */
.post-tags {
  text-align: center;
  margin: 40px 0 20px;
}

.post-tags .tag {
  display: inline-block;
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-muted);
  margin: 4px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.post-tags .tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* === 页尾样式（完美契合 dialogue2 视觉） === */
footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  text-align: center;
  margin-top: 60px;
}

footer .slogan {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

footer .slogan span {
  color: var(--primary-color);
  font-weight: 500;
}

footer .copyright {
  font-size: .75rem;
  color: var(--text-muted);
}

/* === 回到顶部按钮（完全保留 dialogue2 功能与样式升级） === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-block);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all .3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.back-to-top:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* === Meta / References (文献引注与元信息区) === */
.meta {
  background: #fdfdfd;
  /* 极其轻微的陶瓷白底色，与大背景形成微弱层次 */
  border-top: 1px dashed var(--border-color);
  /* 顶部用一条极细的虚线与正文优雅隔开 */
  margin: 48px 0 24px;
  /* 顶部留出较多空间，给读者“正文已完结”的视觉暗示 */
  padding: 24px 0 0;
  /* 清爽的顶部内边距 */
  font-size: 0.88rem;
  /* 精致的小字号 */
  color: #7c7a77;
  /* 换用更有质感的莫兰迪中灰色 */
  line-height: 1.85;
}

/* 针对引注中的强强调标签（如“参考文献：”或“数据来源：”） */
.meta strong {
  color: var(--primary-color);
  /* 改用深钛蓝，显得克制、客观且权威 */
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-bottom: 6px;
}

/* 参考文献的有序列表样式 */
.meta ol {
  list-style: none;
  counter-reset: meta-counter;
  padding-left: 0;
  margin: 12px 0;
}

.meta ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
  color: #7c7a77;
}

/* 用 CSS 生成的精致香槟金数字序号 */
.meta ol li::before {
  counter-increment: meta-counter;
  content: "[" counter(meta-counter) "]";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 500;
  color: var(--accent-color);
  font-variant-numeric: tabular-nums;
}

/* 针对引注中的外文、书名或特定强调（em） */
.meta em {
  font-style: normal;
  color: var(--primary-color);
  font-weight: 500;
}

/* === 移动端精致优化 === */
@media(max-width:480px) {
  body {
    padding-top: 84px;
  }

  header nav a {
    margin-left: 16px;
    font-size: .9rem;
  }
}