/* 策略指南 — 共享样式
   视觉基准：webapp/guide/sentiment/01_overview.html（浅色卡片 + 蓝色主色）
   差异：新增顶部导航、.wrap 自适应容器（在线文档需适配窗口宽度） */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: #eef1f6;
  color: #1f2733;
  -webkit-font-smoothing: antialiased;
}

/* ── 顶部导航 ── */
.topnav {
  background: #fff; border-bottom: 1px solid #dfe5ee;
  position: sticky; top: 0; z-index: 20;
}
.topnav .inner {
  max-width: 1240px; margin: 0 auto; padding: 0 44px;
  height: 56px; display: flex; align-items: center; gap: 24px;
}
.topnav .brand { font-weight: 700; color: #2b6cb0; letter-spacing: .5px; }
.topnav nav { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.topnav nav a { color: #5a6879; text-decoration: none; }
.topnav nav a:hover { color: #2b6cb0; }
.topnav nav a.on { color: #2b6cb0; font-weight: 700; }

/* ── 页面容器（替代原固定 1440px，在线文档需自适应） ── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 36px 44px 48px; }

a { color: #2b6cb0; }
ul { list-style: none; }

/* ── 标题区 ── */
.page-head { border-bottom: 3px solid #2b6cb0; padding-bottom: 14px; margin-bottom: 26px; }
.page-head .kicker { font-size: 14px; letter-spacing: 3px; color: #2b6cb0; font-weight: 700; }
.page-head h1 { font-size: 34px; margin-top: 6px; letter-spacing: .5px; }
.page-head .sub { font-size: 15px; color: #5a6879; margin-top: 8px; }

/* ── 卡片 ── */
.card {
  background: #fff; border-radius: 12px; padding: 22px 26px;
  box-shadow: 0 2px 10px rgba(30, 50, 90, .07);
  margin-bottom: 20px;
}
.card h2 {
  font-size: 19px; margin-bottom: 14px; padding-left: 12px;
  border-left: 5px solid #2b6cb0; line-height: 1.1;
}
.card h2 .tag {
  font-size: 12px; font-weight: 500; color: #7b8798;
  margin-left: 10px; letter-spacing: 0;
}
.card h3 { font-size: 16px; margin: 18px 0 8px; }
.card h3:first-child { margin-top: 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

p { font-size: 15px; line-height: 1.75; }
p + p { margin-top: 10px; }
.muted { color: #64748b; }
.small { font-size: 13.5px; line-height: 1.65; }
.dim { color: #94a3b8; font-size: 13px; }
code {
  font-family: Consolas, "Courier New", monospace; font-size: 13.5px;
  background: #eef2f7; color: #b83280; padding: 1px 6px; border-radius: 4px;
}
b.hl { color: #2b6cb0; }

ul.tick { list-style: none; }
ul.tick li { font-size: 14.5px; line-height: 1.7; padding-left: 22px; position: relative; margin-bottom: 6px; }
ul.tick li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: #2b6cb0;
}
ul.tick.warn li::before { background: #dd6b20; }
ul.tick.plain li::before { background: #cbd5e1; }

.note {
  border-radius: 8px; padding: 13px 16px; font-size: 14px; line-height: 1.7;
  border-left: 4px solid #2b6cb0; background: #f2f7fd;
  margin-top: 14px;
}
.note.warn { border-left-color: #dd6b20; background: #fff8f1; }
.note.ok { border-left-color: #2f855a; background: #f1f9f4; }
.note.danger { border-left-color: #c53030; background: #fdf2f2; }
.note .t { font-weight: 700; display: block; margin-bottom: 3px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid #e6ebf2; vertical-align: top; }
th { background: #f4f7fb; font-weight: 700; color: #33415c; font-size: 13px; }
td code { font-size: 12.5px; }

.pill {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px;
  border-radius: 20px; line-height: 1.6; white-space: nowrap;
}
.pill.blue { background: #e3edfb; color: #2b6cb0; }
.pill.green { background: #e2f5ea; color: #2f855a; }
.pill.orange { background: #fdeade; color: #c05621; }
.pill.red { background: #fbe3e3; color: #c53030; }
.pill.gray { background: #eceff4; color: #64748b; }

.kv { font-size: 14px; line-height: 1.8; }
.kv .k { color: #64748b; display: inline-block; min-width: 96px; }

/* ── 模块小卡（策略五模块用） ── */
.mod {
  background: #f7f9fc; border: 1px solid #e2e7ee;
  border-radius: 10px; padding: 14px 15px;
}
.mod .n { font-family: Consolas, monospace; font-size: 11px; color: #94a3b8; }
.mod .t { font-size: 14.5px; font-weight: 700; margin: 3px 0 6px; }
.mod .d { font-size: 12.5px; color: #64748b; line-height: 1.6; }

/* ── Hero（页首深蓝渐变，与 01_overview 一致） ── */
.hero {
  background: linear-gradient(135deg, #2b6cb0 0%, #1a4a7a 100%);
  color: #fff; border-radius: 14px; padding: 30px 34px; margin-bottom: 20px;
}
.hero .lead { font-size: 26px; font-weight: 700; letter-spacing: .5px; line-height: 1.35; }
.hero .lead em { font-style: normal; color: #ffd479; }
.hero .desc { font-size: 15.5px; line-height: 1.85; margin-top: 12px; color: #dce8f6; }
.flow { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.flow .step {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600;
}
/* 情绪模块默认关闭：虚线 + 弱化底色，避免看起来像"已选中/已启用" */
.flow .step.gate {
  background: rgba(255,255,255,.06); color: #c3d6ea;
  border: 1px dashed rgba(255,255,255,.45);
}
.flow .arw { color: #9fc0e2; font-size: 16px; }

.panel { border-radius: 9px; padding: 16px 18px; }
.panel.do { background: #f1f9f4; border: 1px solid #c6e6d3; }
.panel.dont { background: #f7f8fa; border: 1px solid #e2e7ee; }
.panel .ph { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.panel.do .ph { color: #2f855a; }
.panel.dont .ph { color: #64748b; }
.panel li { font-size: 14px; line-height: 1.8; }
.panel ul { list-style: none; }
.panel li::before { content: "·"; font-weight: 900; margin-right: 8px; color: #94a3b8; }

.path { font-size: 15px; line-height: 2; }
.path .seg { background: #eef2f7; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.path .cur { background: #2b6cb0; color: #fff; }

/* ── 代码块（插件页） ── */
pre {
  background: #1f2733; border-radius: 10px; padding: 16px 18px;
  overflow-x: auto; margin: 14px 0;
}
pre code {
  background: none; color: #cfd6e6; padding: 0;
  font-size: 12.8px; line-height: 1.7;
}
pre .k { color: #ff9ec4; }
pre .c { color: #7f8ea3; }
pre .s { color: #a6e3a1; }
pre .f { color: #7fd1ff; }
.flowchart {
  font-family: Consolas, monospace; font-size: 13px; line-height: 1.9;
  background: #f7f9fc; border: 1px solid #e2e7ee; border-radius: 10px;
  padding: 16px 20px; color: #4a5768; white-space: pre;
  overflow-x: auto;
}
.flowchart b { color: #2b6cb0; }

/* ── 下一步导航卡 ── */
.next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.next a {
  display: block; background: #f7f9fc; border: 1px solid #e2e7ee;
  border-radius: 10px; padding: 15px 17px; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.next a:hover { border-color: #2b6cb0; transform: translateY(-2px); }
.next .nt { font-size: 15px; font-weight: 700; color: #2b6cb0; margin-bottom: 4px; }
.next .nd { font-size: 13px; color: #64748b; line-height: 1.6; }

/* ── 页脚 ── */
footer {
  border-top: 1px solid #dfe5ee; margin-top: 34px; padding: 20px 0 34px;
  max-width: 1240px; margin-left: auto; margin-right: auto;
  padding-left: 44px; padding-right: 44px;
  font-size: 13px; color: #94a3b8;
}
