/* AndroidAPS 中文文档：在保留 RTD/Sphinx 信息架构的前提下，增强中文阅读与医疗技术文档层级。 */
html { scroll-behavior: smooth; }
body, .rst-content, .wy-menu-vertical { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif; }
.wy-side-nav-search { background: linear-gradient(135deg, #123b5d, #0f6072); }
.wy-side-nav-search > a, .wy-side-nav-search .wy-dropdown > a { color: #fff; font-weight: 700; }
.wy-nav-side { background: #14344d; }
.wy-menu-vertical a { color: #d9e6ef; }
.wy-menu-vertical a:hover, .wy-menu-vertical li.current a { background: #1d506f; color: #fff; }
.wy-menu-vertical li.toctree-l2.current > a, .wy-menu-vertical li.toctree-l3.current > a { background: #edf7f8; color: #123b5d; }
.wy-nav-content { max-width: 1040px; }
.rst-content h1, .rst-content h2, .rst-content h3 { color: #123b5d; }
.rst-content h1 { border-bottom: 2px solid #35a8b6; padding-bottom: .42em; }
.rst-content h2 { border-bottom: 1px solid #d7e5ec; padding-bottom: .3em; margin-top: 1.6em; }
.rst-content p, .rst-content li { line-height: 1.78; }
.rst-content .admonition { border-radius: 7px; border-left-width: 5px; box-shadow: 0 1px 2px rgba(18,59,93,.08); }
.rst-content .admonition-title { font-weight: 700; }
.rst-content code.literal, .rst-content tt.literal { color: #173f5b; background: #eef6f8; font-weight: 600; }
.rst-content pre, .rst-content div[class^="highlight"] { border-radius: 7px; }
.rst-content table.docutils { display: table; width: 100%; font-size: .93em; }
.rst-content table.docutils th { background: #167d91; color: #fff; }
.rst-content img { max-width: 100%; height: auto; border-radius: 4px; }
.rst-content a { color: #007b92; }
.rst-content a:hover { color: #125f85; }
@media screen and (max-width: 768px) { .wy-nav-content { padding: 1.2em; } .rst-content table.docutils { display: block; overflow-x: auto; } }
