/* 火瞪羚 · 食品品类研究报告 · 报告页样式
   所有品类报告共用这一份。改版式只改这里，全库同步。 */

:root {
  --red: #E63817;
  --red-soft: rgba(230, 56, 23, 0.07);
  --ink: #14100e;
  --ink-2: #3f3a35;
  --ink-3: #857d76;
  --paper: #ffffff;
  --paper-2: #f7f5f2;
  --line: #e4dfd9;
  --line-2: #efeae4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

.topbar { height: 4px; background: var(--red); position: sticky; top: 0; z-index: 20; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---------- 封面区 ---------- */

.cover { padding: 66px 0 42px; border-bottom: 1px solid var(--line); }

.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }

.crumb a { color: var(--red); text-decoration: none; font-weight: 600; }

.crumb a:hover { text-decoration: underline; }

.cover h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.cover .sig {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.cover .sig b { color: var(--ink-2); font-weight: 600; }

.cover .stance {
  margin-top: 30px;
  max-width: 780px;
  padding: 20px 24px;
  background: var(--paper-2);
  border-left: 3px solid var(--red);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* 关键判定条：阶段 / 机会 / 路径 */

.verdict {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 34px;
}

.verdict > div { background: var(--paper); padding: 22px 24px 24px; }

.verdict .k {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 600;
}

.verdict .v {
  font-size: 22px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.35;
  color: var(--red);
}

.verdict .d { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-top: 8px; }

/* ---------- 主体：正文 + 侧栏目录 ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 68px;
  padding: 48px 0 0;
  align-items: start;
}

.doc { max-width: 780px; min-width: 0; }

/* 侧栏目录 */

.toc { position: sticky; top: 42px; font-size: 14px; }

.toc .t {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  color: var(--ink-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.6;
}

.toc a:hover { color: var(--red); border-left-color: var(--red); }

.toc a.sub { font-size: 13px; color: var(--ink-3); padding-left: 24px; }

/* ---------- 正文排版 ---------- */

.doc h2 {
  margin: 62px 0 20px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  scroll-margin-top: 32px;
}

.doc h2:first-child { margin-top: 0; }

.doc h2 .no {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}

.doc h3 {
  margin: 40px 0 12px;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 32px;
}

.doc h4 { margin: 28px 0 8px; font-size: 17px; font-weight: 700; }

.doc p { margin: 0 0 20px; }

.doc strong { font-weight: 700; }

.doc a { color: var(--red); }

/* 摘要块 */

.abstract {
  background: var(--paper-2);
  padding: 30px 32px 12px;
  margin-bottom: 8px;
}

.abstract p:last-child { margin-bottom: 20px; }

/* 要点条 */

.key {
  margin: 26px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  font-size: 16.5px;
  line-height: 1.85;
}

.key b { color: var(--red); }

/* 列表 */

.doc ul, .doc ol { margin: 0 0 20px; padding-left: 22px; }

.doc li { margin-bottom: 8px; }

/* 表格 */

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0 28px;
  font-size: 14.5px;
  line-height: 1.75;
}

.doc caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-3);
  padding-bottom: 10px;
}

.doc thead th {
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 14px;
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.doc tbody td, .doc tbody th {
  text-align: left;
  font-weight: 400;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}

.doc tbody tr:last-child td { border-bottom: 1px solid var(--line); }

.doc tbody th { font-weight: 600; white-space: nowrap; }

.table-scroll { overflow-x: auto; margin: 26px 0; }

.table-scroll table { margin: 0; }

/* 数据待补充标记 */

.gap {
  display: inline-block;
  font-size: 13px;
  padding: 1px 7px;
  background: #f0ece6;
  color: #7d746c;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---------- 图表：引用原始图表截图 ---------- */

figure.fig {
  margin: 30px 0 32px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

figure.fig .fh {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line-2);
}

figure.fig .ft {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
}

figure.fig .fd {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-top: 6px;
}

figure.fig img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

figure.fig figcaption {
  padding: 12px 22px 14px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
  background: var(--paper-2);
}

/* ---------- 图表：横条对比（纯 CSS，无外部依赖） ---------- */

.chart {
  margin: 30px 0 32px;
  padding: 24px 26px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.chart .ct {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 4px;
}

.chart .cs { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; line-height: 1.7; }

.bar { margin-bottom: 15px; }

.bar:last-of-type { margin-bottom: 4px; }

.bar .bl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 5px;
  gap: 12px;
}

.bar .bl span:first-child { color: var(--ink-2); }

.bar .bv { font-weight: 700; font-size: 14px; white-space: nowrap; }

.bar .bt { height: 9px; background: #eee9e3; position: relative; }

.bar .bf { height: 9px; background: var(--ink); display: block; }

.bar.hi .bf { background: var(--red); }

.bar.hi .bv { color: var(--red); }

.bar.dim .bf { background: #c9c1b8; }

.chart .cn {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
}

/* 双向条：以零轴为中心，左负右正 */
.bt2 { display: flex; align-items: stretch; height: 9px; }

.bt2 > div { flex: 1 1 50%; background: #eee9e3; display: flex; }

.bt2 > .lf { justify-content: flex-end; border-right: 1px solid #b9b1a8; }

.bt2 > .rt { justify-content: flex-start; }

.bt2 .bf { height: 9px; background: var(--ink); }

.bar.hi .bt2 .bf { background: var(--red); }

.bar.neg .bt2 .bf { background: #9a938b; }

.bar.neg .bv { color: #6f6862; }

.chart .zero {
  display: flex;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.chart .zero span { flex: 1 1 50%; }

.chart .zero span:first-child { text-align: right; padding-right: 6px; }

.chart .zero span:last-child { padding-left: 6px; }

/* 来源脚注 */

.src { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }

.sources { margin-top: 8px; }

.sources li { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-bottom: 10px; }

/* ---------- 页脚 ---------- */

footer {
  border-top: 1px solid var(--line);
  margin-top: 66px;
  padding: 34px 0 76px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.9;
}

footer a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ---------- 窄屏 ---------- */

@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 40px; }
  .toc a { display: inline-block; margin-right: 14px; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 22px; }
  body { font-size: 16px; }
  .cover h1 { font-size: 33px; }
  .verdict { grid-template-columns: 1fr; }
  .doc h2 { font-size: 24px; }
}

/* ---------- 打印 ---------- */

@media print {
  .toc, .topbar { display: none; }
  .layout { display: block; }
  .doc { max-width: none; }
  .doc h2 { page-break-after: avoid; }
  .doc table { page-break-inside: avoid; }
}

/* ==================================================================
   官网统一顶栏 / 页脚 / 下载PDF / 末页(简介+二维码) · 2026-08-13 加
   报告页与整站一致（学案例页）；打印时去掉网站外壳，末页独立成页。
   ================================================================== */
:root{ --red-deep:#C32910; --cream:#FAF7F2;
  --serif:"Source Han Serif SC","Noto Serif SC","Songti SC","STSong",serif; }

/* 顶栏 */
.site-head{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--line)}
.site-head .nav{max-width:1180px;margin:0 auto;padding:0 28px;height:66px;
  display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-head .nav-logo{display:flex;align-items:center;gap:12px}
.site-head .nav-logo img{height:50px;width:auto;display:block}
.site-head .nav-links{display:flex;align-items:center;gap:28px;font-size:15px;color:#5a4f47}
.site-head .wxbtn{display:inline-flex;align-items:center;padding:11px 26px;border-radius:999px;background:var(--red);color:#fff;font-size:15px;font-weight:600;text-decoration:none;box-shadow:0 8px 22px rgba(230,56,23,.22);white-space:nowrap}
.site-head .wxbtn:hover{background:var(--red-deep)}
.site-head .nav-links a{color:inherit;text-decoration:none}
.site-head .nav-links a:hover,.site-head .nav-links a.on{color:var(--red)}
.site-head .nav-links a.on{font-weight:600}
.site-head .nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:38px;height:38px;padding:8px;margin-left:4px;background:none;border:none;cursor:pointer}
.site-head .nav-toggle span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px;transition:transform .25s,opacity .2s}
@media(max-width:820px){
  .site-head .nav{padding:0 18px;height:60px;gap:10px}
  .site-head .nav-logo img{height:44px}
  .site-head .wxbtn{padding:9px 16px;font-size:14px;box-shadow:none}
  .site-head .nav-toggle{display:flex}
  .site-head .nav-links{display:none;position:absolute;top:60px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 14px 30px rgba(20,16,14,.12);padding:4px 0}
  .site-head.nav-open .nav-links{display:flex}
  .site-head .nav-links a{padding:14px 20px;font-size:16px;color:var(--ink)}
  .site-head .nav-links a:not(:last-child){border-bottom:1px solid var(--line-2)}
  .site-head.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .site-head.nav-open .nav-toggle span:nth-child(2){opacity:0}
  .site-head.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}

/* 下载 PDF 按钮 */
.dlbtn{display:inline-flex;align-items:center;gap:7px;padding:10px 22px;border-radius:999px;
  background:var(--red);color:#fff;font-size:14px;font-weight:600;text-decoration:none;
  border:none;cursor:pointer;box-shadow:0 8px 22px rgba(230,56,23,.22);white-space:nowrap}
.dlbtn:hover{background:var(--red-deep)}
.cover-dl{margin:22px 0 2px}

/* 末页：火瞪羚简介 + 二维码（只在导出PDF/打印时出现，网页上隐藏） */
.pdf-appendix{display:none;max-width:1180px;margin:0 auto;padding:52px 40px 10px}
.pdf-card{display:flex;gap:38px;align-items:center;flex-wrap:wrap;background:var(--cream);
  border:1px solid var(--line);border-radius:20px;padding:38px 42px}
.pdf-card .txt{flex:1;min-width:300px}
.pdf-card .bnd{font-family:var(--serif);font-size:25px;font-weight:800;margin-bottom:14px}
.pdf-card .bnd span{color:var(--red)}
.pdf-card .txt p{font-size:15px;line-height:1.9;color:var(--ink-2);margin:0 0 10px}
.pdf-card .qr{text-align:center;flex:none}
.pdf-card .qr img{width:158px;height:158px;border-radius:12px;display:block}
.pdf-card .qr div{font-size:13px;color:var(--ink-3);margin-top:9px}

/* 官网页脚 */
.site-foot{background:#120D0A;color:rgba(255,255,255,.6);font-size:14px;padding:38px 0;margin-top:56px}
.site-foot .foot{max-width:1180px;margin:0 auto;padding:0 40px;display:flex;
  justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.site-foot .fmark{font-family:var(--serif);font-weight:800;font-size:20px;color:#fff;letter-spacing:.05em}
.site-foot a{color:rgba(255,255,255,.72);text-decoration:none}
.site-foot a:hover{color:#fff}
.site-foot .fr{text-align:right;line-height:1.7}

/* ---------- 打印 / 导出PDF ---------- */
@page{ margin:14mm 12mm; }
@media print{
  .site-head,.dlbtn,.toc,.site-foot,.topbar,.crumb{display:none!important}
  .layout{grid-template-columns:1fr!important;gap:0!important}
  .doc{max-width:none!important}
  .wrap{max-width:none!important;padding:0!important}
  .pdf-appendix{display:block!important;break-before:page;page-break-before:always;max-width:none;padding:0}
  .pdf-card{background:#fff;border:1px solid #ccc}
  body{font-size:11.5pt}
  a{color:inherit!important;text-decoration:none!important}
  .cover,.cd-block,section,figure,.chart{break-inside:avoid}
}

/* ============ 报告详情页 = 案例详情页版式：米色底 + 白卡阴影（2026-08-14）============ */
body{background:var(--cream)}
.wrap{padding-top:30px}
.layout{grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:start;padding:0}
/* 主内容白卡（封面已移入 .doc 内）*/
.doc{max-width:none;background:#fff;border:1px solid var(--line);border-radius:20px;
  box-shadow:0 22px 50px rgba(26,20,17,.08);padding:44px 50px}
.cover{padding:2px 0 12px;border-bottom:none}
/* 右侧目录也做成白卡 */
.toc{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px 12px;
  box-shadow:0 22px 50px rgba(26,20,17,.06);top:88px}
.toc .t{margin-top:0}
@media(max-width:1040px){
  .layout{grid-template-columns:1fr}
  .doc{padding:34px 28px}
  .toc{margin-top:22px}
}
@media(max-width:700px){
  .doc{padding:26px 20px}
}
@media print{
  body{background:#fff}
  .doc{box-shadow:none;border:none;border-radius:0;padding:0;max-width:none}
  .wrap{padding-top:0}
}
/* 修：封面移入 .doc 后，.doc a 覆盖了下载按钮白字 */
a.dlbtn{color:#fff}
/* 卡片上方返回链接（对齐案例页「返回全部案例」）*/
.back-link{display:inline-block;margin:0 0 18px 2px;color:var(--red);font-weight:600;font-size:14px;text-decoration:none}
.back-link:hover{text-decoration:underline}
@media print{.back-link{display:none}}

/* ===== 报告正文内块圆角+阴影，对齐案例详情页内块（2026-08-14）===== */
.abstract{border-radius:14px}
.key{border-radius:0 10px 10px 0}
.verdict{border-radius:14px;overflow:hidden}
figure.fig{border-radius:14px;overflow:hidden;box-shadow:0 16px 38px rgba(20,16,14,.10)}
.chart{border-radius:14px}
@media print{
  .abstract,.key,.verdict,figure.fig,.chart{box-shadow:none!important;border-radius:0!important}
}
/* 目录标题与「附 数据来源」与正文目录项统一字号/字色（2026-08-14）*/
.toc .t{font-size:14px;color:var(--ink-2);letter-spacing:0;font-weight:600}
.toc a.sub{font-size:14px;color:var(--ink-2);padding-left:12px}
