/* 详情与独立预览共用首页480px画布和四入口底栏。 */
html.detail-frame{background:#e7ebe7}
body.detail-shell{width:100%;max-width:480px;min-height:100vh;margin:0 auto;padding-bottom:calc(84px + env(safe-area-inset-bottom));background:#faf8f1}
.detail-shell header,.detail-shell main,.detail-shell footer{max-width:480px}
/* 首页、值得看、详情和名录共用一套底栏。字号固定，小屏自然折行。 */
:root{--topic-nav-height:76px}
:root.large-text,:root.reader-large{--topic-nav-height:84px}
#root>.bottom-nav,.recommend-nav,.topic-nav{box-sizing:border-box;position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);display:flex;align-items:stretch;justify-content:space-around;width:100%;max-width:480px;height:calc(var(--topic-nav-height) + env(safe-area-inset-bottom));padding:11px 0 calc(12px + env(safe-area-inset-bottom));background:#fff;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;z-index:80;font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
#root>.bottom-nav a,.recommend-nav a,.topic-nav a{box-sizing:border-box;display:block;flex:1;min-width:0;min-height:44px;padding:0 2px;margin:0;color:#9caaa9;background:transparent;border:0;font-size:var(--type-meta,14px);font-weight:400;line-height:1.4;letter-spacing:0;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;word-break:normal;-webkit-tap-highlight-color:transparent}
#root>.bottom-nav i,.recommend-nav i,.topic-nav i{display:block;height:20px;margin:0 0 5px;font-style:normal;line-height:20px}
#root>.bottom-nav svg,.recommend-nav svg,.topic-nav svg{display:block;width:20px;height:20px;margin:auto;stroke-width:1.5}
#root>.bottom-nav a.active,.recommend-nav a.active,.topic-nav a.active{color:#326b7c;font-weight:600}
#root>.bottom-nav a:focus-visible,.recommend-nav a:focus-visible,.topic-nav a:focus-visible{outline:2px solid #397c8d;outline-offset:-3px}
body.detail-shell,.sheet,#root>main{padding-bottom:calc(var(--topic-nav-height) + 12px + env(safe-area-inset-bottom))}
#root main.participation-page,:root.large-text #root main.participation-page{padding-bottom:calc(var(--topic-nav-height) + 12px + env(safe-area-inset-bottom))}
@media(max-width:420px){:root.large-text,:root.reader-large{--topic-nav-height:96px}}
@media(max-width:360px){:root{--topic-nav-height:88px}:root.large-text,:root.reader-large{--topic-nav-height:96px}}

/* 返回箭头独立成图标，避免字符箭头过细过小。 */
.detail-shell .back{display:inline-flex;align-items:center;gap:5px;min-height:44px;text-decoration:none}
.detail-shell .back-arrow{display:block;width:22px;height:22px;flex:0 0 22px}
