/* 由 tools/port_story.py 生成：让原始单文件 HTML 的样式在 Quarto 页面里还原 */

/* ---- 与 Quarto/Bootstrap 共存的补丁 ---- */
body:has(.cvi-story) { background: #f7f5f0; }
body:has(.cvi-story) #quarto-content { padding: 0; }
body:has(.cvi-story) #title-block-header { display: none; }  /* 原文自带标题区 hero */
.cvi-story { margin-top: -1px; }
.cvi-story .card { display: block; flex-direction: initial; word-wrap: normal; min-width: 0; color: inherit; }
.cvi-story .lead { font-weight: 400; }
.cvi-story h2, .cvi-story h3, .cvi-story h4 { border-bottom: none; font-weight: 700; line-height: inherit; }
.cvi-story h2 { margin-top: 10px; }
.cvi-story a { text-decoration-thickness: 1px; }
.cvi-story table { caption-side: top; }
.cvi-story th, .cvi-story td { vertical-align: middle; }
.cvi-story header.hero h1 { color: #fff; }
.cvi-story nav.toc { top: var(--cvi-navbar-h, 0px); }
.cvi-story section, .cvi-story .kp { scroll-margin-top: 120px; }
.cvi-story details summary { display: list-item; color: inherit; }
/* 还原浏览器默认值（Bootstrap 改过的部分） */
.cvi-story h2 { padding-bottom: 0; }
.cvi-story h4 { font-size: 1em; }
.cvi-story ul, .cvi-story ol { margin: 1em 0; }
.cvi-story button { line-height: normal; }
.cvi-story input { font-size: 13.3333px; line-height: normal; margin: 2px; }
.cvi-story .keypoints { margin-top: 26px; border-left: 6px solid var(--accent2); }
.cvi-story .keypoints h2 { border-left: none; padding-left: 0; font-size: 22px; margin: 0 0 6px; }
.cvi-story .keypoints ul { margin: .4em 0; padding-left: 1.3em; }
.cvi-story #summary { padding-bottom: 0; }
body:has(.cvi-story) #title-block-header { display: none; }
.cvi-story code { color: #9a3412; background: #f1ece1; padding: 0 4px; border-radius: 3px; }
