:root{--wiki-ink:#16130f;--wiki-muted:#6f675c;--wiki-pink:#c94dcf;--wiki-gold:#f0a625;--wiki-line:#ece8e2;--wiki-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
html{background:#fff;scrollbar-width:thin;-ms-overflow-style:auto;scrollbar-gutter:auto;overflow-x:hidden;overflow-x:clip;overscroll-behavior-x:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{width:8px;height:8px;display:block}
body.wiki-detail-page{display:flex;flex-direction:column;min-height:100vh;padding-top:0;padding-bottom:calc(60px + env(safe-area-inset-bottom,0px) + 24px);overflow-x:hidden;overflow-x:clip;overscroll-behavior-x:none;background:#fff!important;color:var(--wiki-ink);font-family:var(--wiki-font);line-height:1.75}
body.wiki-detail-page.has-wiki-rail,html:has(.wiki-side-rail) body.wiki-detail-page{padding-left:64px}
#wiki-stage{
  min-width:0;min-height:calc(100vh - 72px);box-sizing:border-box;
  display:flex;flex-direction:column
}
#wiki-stage::before{content:"";flex:1 0 72px}
#wiki-stage::after{content:"";flex:1.2 0 48px}
body.wiki-detail-page .wrap,body.wiki-detail-page .page-shell{
  width:min(1640px,calc(100% - 48px));max-width:1640px;margin:0 auto;
  padding:40px clamp(26px,3vw,56px) 44px;background:#fff;border:1px solid var(--wiki-line);
  border-radius:22px;box-shadow:0 14px 36px rgba(22,19,15,.06);
  flex:0 0 auto;align-self:center
}
/* 全屏水印：定位/铺满/穿透点击 全部写在这里，不依赖各页面内联样式。
   之前 player_guide.html、wiki.html 没有内联 .site-watermark 规则，
   JS 注入的 div 就退化成 position:static + 高度 0 的隐形块，等于没水印。 */
body.wiki-detail-page .site-watermark{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;background-repeat:repeat;z-index:2;opacity:1;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22220%22%20height%3D%22160%22%3E%3Ctext%20x%3D%2220%22%20y%3D%2280%22%20font-size%3D%2212%22%20fill%3D%22%23000000%22%20fill-opacity%3D%220.16%22%20font-family%3D%22Microsoft%20YaHei%2C%20sans-serif%22%20transform%3D%22rotate%2825%2C%20110%2C%2080%29%22%3E%E4%B9%9D%E5%B0%8F%E5%8D%BF%E6%94%BB%E7%95%A5%E7%AB%99%3C/text%3E%3C/svg%3E")}
body.wiki-detail-page .back-btn{display:none!important}
body.wiki-detail-page.wiki-flat .wiki-tabs,
body.wiki-detail-page.wiki-flat .wtab-bar{display:none!important}
body.wiki-detail-page.wiki-flat .section,
body.wiki-detail-page.wiki-flat .info-section,
body.wiki-detail-page.wiki-flat .content-card{margin:0 0 32px}
body.wiki-detail-page.wiki-flat .wrap > .section:last-child,
body.wiki-detail-page.wiki-flat .wrap > .info-section:last-child,
body.wiki-detail-page.wiki-flat .wrap > .content-card:last-child{margin-bottom:0}
body.wiki-detail-page .info-section h2{
  display:flex;align-items:center;justify-content:flex-start;gap:8px;
  margin:0 0 12px;padding:9px 14px;border:0;border-left:4px solid var(--wiki-pink);
  border-radius:0 10px 10px 0;background:#fff4ff;color:var(--wiki-ink);
  font-size:1.02rem;font-weight:800;line-height:1.35
}
body.wiki-detail-page .info-section h2 .icon{width:auto;height:auto;display:inline;background:none;border-radius:0;font-size:1em;place-items:unset}
body.wiki-detail-page .page-title{margin:0 0 24px;text-align:center}
body.wiki-detail-page .page-title h1,body.wiki-detail-page .page-title{
  color:var(--wiki-pink)!important;background:none!important;-webkit-text-fill-color:currentColor;
  font-size:clamp(1.55rem,3.2vw,2.05rem);font-weight:900;letter-spacing:0;line-height:1.25
}
body.wiki-detail-page .page-title p{margin-top:6px;color:var(--wiki-muted);font-size:.88rem}
/* —— 详情页顶部标题条：板块图标 + 文字标题 + 词条数，左侧金色竖标 —— */
body.wiki-detail-page .page-title.wiki-title-art{
  position:relative;
  display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;
  grid-template-rows:auto;
  align-items:center;column-gap:15px;
  margin:0 0 14px;padding:13px 20px 13px 21px;
  border:1px solid #f4e7d2;border-radius:18px;
  background:
    radial-gradient(120% 180% at 0% 0%,#fffaf1 0%,rgba(255,250,241,0) 60%),
    #fff;
  box-shadow:0 1px 2px rgba(120,90,40,.05),0 20px 38px -34px rgba(120,90,40,.6);
  text-align:left;overflow:hidden;
  -webkit-text-fill-color:unset;color:inherit!important
}
body.wiki-detail-page .page-title.wiki-title-art::before{
  content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;
  border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,#f9cb63,#e2951a)
}
body.wiki-detail-page .page-title.wiki-title-art .wiki-title-icon{
  grid-row:1;grid-column:1;justify-self:start;
  box-sizing:border-box;display:block;
  width:50px;height:50px;padding:6px;
  object-fit:contain;border-radius:15px;
  border:1px solid #efe0c6;
  background:linear-gradient(160deg,#fffdf8,#fdf1dc);
  box-shadow:inset 0 1px 0 #fff,0 6px 14px -8px rgba(150,110,50,.55)
}
body.wiki-detail-page .page-title.wiki-title-art h1{
  grid-row:1;grid-column:2;justify-self:start;
  position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;clip:auto;
  font-size:clamp(1.45rem,2.05vw,1.9rem);font-weight:900;line-height:1.2;
  letter-spacing:-.012em;white-space:normal;
  color:#1a1611!important;-webkit-text-fill-color:#1a1611;background:none!important
}
body.wiki-detail-page .page-title.wiki-title-art .wiki-title-meta{
  grid-row:1;grid-column:3;justify-self:start;align-self:center;
  display:inline-flex;align-items:center;
  margin:1px 0 0;
  padding-left:15px;border-left:1px solid #ece0cb;
  font-size:.75rem;font-weight:700;line-height:1.5;letter-spacing:.04em;color:#b09468;
  white-space:nowrap
}
body.wiki-detail-page .page-title.wiki-title-art .wiki-title-hint{
  grid-row:1;grid-column:4;justify-self:end;
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px 6px 11px;
  border:1px solid #f1e0c4;border-radius:999px;
  background:#fffdf8;
  font-size:.74rem;font-weight:800;line-height:1.5;letter-spacing:.02em;
  white-space:nowrap;text-align:left;
  color:#a9825a!important;-webkit-text-fill-color:#a9825a;
  transition:background .18s,border-color .18s,box-shadow .18s,transform .18s
}
body.wiki-detail-page .page-title.wiki-title-art:hover .wiki-title-hint{
  border-color:#e8cfa6;background:#fff;box-shadow:0 4px 12px rgba(150,110,50,.10)
}
body.wiki-detail-page .page-title.wiki-title-art .wiki-title-hint::before{
  content:"";flex:0 0 auto;width:13px;height:13px;
  background:currentColor;opacity:.9;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg stroke='%23000' stroke-width='1.7' stroke-linecap='round' fill='none'%3E%3Cpath d='M2.6 4.5h1.5M7 4.5h6.4M2.6 8h1.5M7 8h6.4M2.6 11.5h1.5M7 11.5h6.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg stroke='%23000' stroke-width='1.7' stroke-linecap='round' fill='none'%3E%3Cpath d='M2.6 4.5h1.5M7 4.5h6.4M2.6 8h1.5M7 8h6.4M2.6 11.5h1.5M7 11.5h6.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat
}
body.wiki-detail-page .page-title.wiki-title-art .wiki-title-hint::after{
  content:"";flex:0 0 auto;width:5px;height:5px;
  border-right:1.5px solid #c9a678;border-bottom:1.5px solid #c9a678;
  transform:rotate(45deg) translate(-1px,-1px);
  transition:transform .2s ease
}
body.wiki-detail-page .page-title.wiki-title-art[aria-expanded="true"] .wiki-title-hint::after{
  transform:rotate(225deg) translate(-1px,-1px)
}
body.wiki-detail-page .wrap[data-wiki-tabs="wrap"] .wiki-tabs,
body.wiki-detail-page .wrap[data-wiki-tabs="wrap"] .wtab-bar{
  flex-wrap:wrap;row-gap:8px;overflow:visible;padding-bottom:10px
}
body.wiki-detail-page .wiki-tab-panel .purple-header ~ .purple-header{margin-top:22px}
.wiki-tabs,body.wiki-detail-page .wtab-bar{
  display:flex;gap:8px;align-items:center;overflow-x:auto;
  padding:2px 2px 18px;margin:0 0 8px;
  scrollbar-width:none;cursor:grab;user-select:none
}
.wiki-tabs::-webkit-scrollbar,body.wiki-detail-page .wtab-bar::-webkit-scrollbar{display:none}
.wiki-tabs.is-dragging{cursor:grabbing}
.wiki-tab,body.wiki-detail-page .wtab{
  flex:0 0 auto;border:1px solid var(--wiki-line);border-radius:999px;padding:8px 16px;background:#fff;
  color:#4f473e;font:700 .86rem var(--wiki-font);line-height:1.2;cursor:pointer;
  transition:border-color .18s,box-shadow .18s,color .18s
}
.wiki-tab:hover,body.wiki-detail-page .wtab:hover{border-color:#f5bf55}
.wiki-tab.is-active,body.wiki-detail-page .wtab.active,body.wiki-detail-page .wtab.is-active{
  border-color:var(--wiki-gold);color:#9b6418;box-shadow:0 0 0 2px rgba(240,166,37,.18)
}
.wiki-tab-panel[hidden]{display:none!important}
.wiki-tab-stack{min-width:0}
body.wiki-detail-page .section,body.wiki-detail-page .info-section,body.wiki-detail-page .content-card{
  margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent
}
body.wiki-detail-page .wiki-tab-stack > .wiki-tab-panel,
body.wiki-detail-page .wiki-tab-stack > div:not(.wtab-bar):not(.wiki-tabs):not(.notice-box):not(.page-title){
  margin:0
}
body.wiki-detail-page .notice-box{
  margin:4px 0 14px
}
body.wiki-detail-page .section-title,
body.wiki-detail-page .purple-header,
body.wiki-detail-page .blue-header,
body.wiki-detail-page .hs-toggle-header,
body.wiki-detail-page .sub-header{
  display:flex;align-items:center;justify-content:flex-start;gap:8px;
  margin:0 0 12px;padding:9px 14px;border:0;border-left:4px solid var(--wiki-pink);
  border-radius:0 10px 10px 0;background:#faf7fc;color:var(--wiki-ink);
  font-size:1.02rem;font-weight:800;line-height:1.35
}
body.wiki-detail-page .blue-header{border-left-color:#7b61ff;background:#f6f4ff}
body.wiki-detail-page .purple-header,body.wiki-detail-page .hs-toggle-header{border-left-color:var(--wiki-pink);background:#fff4ff}
/* —— 正文小节标题：金色短竖标 + 文字 + 右侧渐隐细线（不再是整块蓝底） —— */
body.wiki-detail-page .sub-header:not(.hs-toggle-header){
  display:flex;align-items:center;gap:9px;
  margin:17px 0 11px;padding:0;border:0;border-radius:0;background:none;
  font-size:.93rem;font-weight:900;letter-spacing:.01em;line-height:1.4;color:#2b241a
}
body.wiki-detail-page .sub-header:not(.hs-toggle-header)::before{
  content:"";flex:0 0 auto;width:3px;height:15px;border-radius:2px;
  background:linear-gradient(180deg,#f7bf52,#df8a16)
}
body.wiki-detail-page .sub-header:not(.hs-toggle-header)::after{
  content:"";flex:1 1 auto;height:1px;min-width:12px;
  background:linear-gradient(90deg,#f0e3ca,rgba(240,227,202,0))
}
body.wiki-detail-page .lv-banner + .sub-header:not(.hs-toggle-header){margin-top:15px}

/* —— 一级小节标题（purple/blue-header）：同一套金色标尺，字号再大一档 —— */
body.wiki-detail-page .purple-header,
body.wiki-detail-page .blue-header,
body.wiki-detail-page .section-title{
  display:flex;align-items:center;gap:10px;
  margin:26px 0 13px;padding:0;border:0;border-radius:0;background:none;
  font-size:1.01rem;font-weight:900;letter-spacing:.005em;line-height:1.4;color:#1f1a13
}
body.wiki-detail-page .purple-header::before,
body.wiki-detail-page .blue-header::before,
body.wiki-detail-page .section-title::before{
  content:"";flex:0 0 auto;width:4px;height:16px;border-radius:2px;
  background:linear-gradient(180deg,#f7bf52,#df8a16)
}
body.wiki-detail-page .purple-header::after,
body.wiki-detail-page .blue-header::after,
body.wiki-detail-page .section-title::after{
  content:"";flex:1 1 auto;height:1px;min-width:12px;
  background:linear-gradient(90deg,#f0e3ca,rgba(240,227,202,0))
}
body.wiki-detail-page .purple-header:first-child,
body.wiki-detail-page .blue-header:first-child,
body.wiki-detail-page .section-title:first-child{margin-top:2px}

/* —— 正文 h3：与二级小节标题同款 —— */
body.wiki-detail-page .hs-collapsible-inner h3,
body.wiki-detail-page .section h3,
body.wiki-detail-page .content-card h3{
  display:flex;align-items:center;gap:9px;
  margin:18px 0 10px;padding:0;border:0;background:none;
  font-size:.92rem;font-weight:900;letter-spacing:.01em;line-height:1.4;color:#2b241a
}
body.wiki-detail-page .hs-collapsible-inner h3::before,
body.wiki-detail-page .section h3::before,
body.wiki-detail-page .content-card h3::before{
  content:"";flex:0 0 auto;width:3px;height:14px;border-radius:2px;
  background:linear-gradient(180deg,#f7bf52,#df8a16)
}
body.wiki-detail-page .hs-collapsible-inner h3::after,
body.wiki-detail-page .section h3::after,
body.wiki-detail-page .content-card h3::after{
  content:"";flex:1 1 auto;height:1px;min-width:12px;
  background:linear-gradient(90deg,#f0e3ca,rgba(240,227,202,0))
}

/* —— 未转成标签栏时仍可见的折叠头（遗留页），沿用同一套标尺 —— */
body.wiki-detail-page .hs-toggle-header{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  margin:24px 0 12px;padding:0;border:0;border-radius:0;background:none;
  font-size:1rem;font-weight:900;line-height:1.4;color:#1f1a13
}
body.wiki-detail-page .hs-toggle-header::before{
  content:"";flex:0 0 auto;width:4px;height:16px;border-radius:2px;
  background:linear-gradient(180deg,#f7bf52,#df8a16)
}
body.wiki-detail-page .hs-toggle-header > span{flex:1 1 auto}
body.wiki-detail-page .hs-toggle-header:hover{background:none}
body.wiki-detail-page .hs-collapsible-inner > .sub-header:not(.hs-toggle-header):first-child,
body.wiki-detail-page .section > .sub-header:not(.hs-toggle-header):first-child{margin-top:2px}

/* —— 等级限制：米金卡片 + 「等级限制」标签 + 数值放大 —— */
body.wiki-detail-page .lv-banner{
  display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;
  margin:0 0 15px;padding:9px 13px;
  border:1px solid #f2e3c6;border-radius:12px;
  background:linear-gradient(180deg,#fffcf5,#fdf4e3);
  color:#7a5518;font-size:.9rem;font-weight:700;line-height:1.6;
  box-shadow:0 1px 2px rgba(160,120,40,.05)
}
body.wiki-detail-page .lv-banner .lv-tag{
  flex:0 0 auto;display:inline-flex;align-items:center;
  padding:1px 8px;border-radius:6px;
  background:#f6e4bf;color:#8a5a12;
  font-size:.72rem;font-weight:900;letter-spacing:.04em;line-height:1.75
}
body.wiki-detail-page .lv-banner .lv-num{
  font-size:1.08em;font-weight:900;color:#c2740f;
  font-variant-numeric:tabular-nums;padding:0 1px
}
body.wiki-detail-page .hs-toggle-header{cursor:default}
body.wiki-detail-page .hs-expand-btn{display:none!important}
body.wiki-detail-page .hs-collapsible,body.wiki-detail-page .hs-collapsible.open{display:block!important;grid-template-rows:none!important}
body.wiki-detail-page .hs-collapsible-inner{overflow:visible!important;min-height:0;padding:2px 2px 4px}
body.wiki-detail-page p,body.wiki-detail-page .doc-text,body.wiki-detail-page li{
  color:#3b342c;font-size:.95rem;line-height:1.8
}
body.wiki-detail-page .section ul,body.wiki-detail-page .section ol,
body.wiki-detail-page .hs-collapsible-inner ul,body.wiki-detail-page .hs-collapsible-inner ol{
  margin:0 0 14px;padding:0;list-style:none
}
body.wiki-detail-page .section li,body.wiki-detail-page .hs-collapsible-inner li{margin:0 0 8px}
body.wiki-detail-page li{list-style:none}
body.wiki-detail-page .note{
  margin:6px 0 14px;padding:11px 14px;
  border:1px solid #e8dcfa;border-radius:12px;
  background:linear-gradient(180deg,#fbf8ff,#f6f1fe);
  font-size:.9rem;color:#4a3d63
}

/* —— 操作步骤：编号圆点 + 竖向连接线，读成一条流程 —— */
body.wiki-detail-page .steps{margin:2px 0 14px;padding:0;list-style:none;counter-reset:step}
body.wiki-detail-page .steps li{
  counter-increment:none;
  position:relative;padding:0 0 0 34px;margin:0 0 12px;
  font-size:.95rem;line-height:1.8;color:#3b342c
}
body.wiki-detail-page .steps li::before{
  counter-increment:step;content:counter(step);
  position:absolute;left:0;top:1px;z-index:1;
  width:22px;height:22px;border-radius:50%;
  background:#fff;border:1.5px solid #f0c47a;color:#a9741c;
  font-size:.72rem;font-weight:900;font-variant-numeric:tabular-nums;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 3px #fff
}
body.wiki-detail-page .steps li::after{
  content:"";position:absolute;left:10px;top:25px;bottom:-13px;width:2px;
  background:linear-gradient(180deg,#f5e2c1,#fbf4e8)
}
body.wiki-detail-page .steps li:last-child::after{content:none}

/* —— 普通列表：补回圆点（原来 list-style:none 后全无标记） —— */
body.wiki-detail-page .hs-collapsible-inner ul:not(.steps) > li,
body.wiki-detail-page .section ul:not(.steps) > li{
  position:relative;padding-left:15px;margin:0 0 7px
}
body.wiki-detail-page .hs-collapsible-inner ul:not(.steps) > li::before,
body.wiki-detail-page .section ul:not(.steps) > li::before{
  content:"";position:absolute;left:1px;top:.74em;
  width:5px;height:5px;border-radius:50%;background:#e2b673
}
body.wiki-detail-page .hs-collapsible-inner ul > li.img-li,
body.wiki-detail-page .section ul > li.img-li{padding-left:0;margin:8px 0 14px}
body.wiki-detail-page .hs-collapsible-inner ul > li.img-li::before,
body.wiki-detail-page .section ul > li.img-li::before{content:none}

/* —— 关键词高亮：正文里的 strong 用淡金色马克笔，而不是单纯加粗 —— */
body.wiki-detail-page .hs-collapsible-inner li strong,
body.wiki-detail-page .hs-collapsible-inner p strong,
body.wiki-detail-page .section li strong,
body.wiki-detail-page .section p strong{
  font-weight:800;color:#8a5a12;padding:0 1px;
  background:linear-gradient(180deg,rgba(255,255,255,0) 60%,#fcedc8 60%,#fcedc8 95%,rgba(255,255,255,0) 95%)
}

/* —— 段落节奏 —— */
body.wiki-detail-page .hs-collapsible-inner > p,
body.wiki-detail-page .section > p{margin:0 0 12px}
body.wiki-detail-page .hs-collapsible-inner > p:last-child,
body.wiki-detail-page .section > p:last-child{margin-bottom:0}
body.wiki-detail-page .doc-img,body.wiki-detail-page .img-li,body.wiki-detail-page li.img-li{margin:10px 0 14px;text-align:center}
body.wiki-detail-page .tut-img,body.wiki-detail-page .doc-img img,body.wiki-detail-page .tut-vid{
  display:block;width:auto;max-width:min(920px,100%);margin:8px auto;border:1px solid var(--wiki-line);
  border-radius:12px;box-shadow:0 8px 20px rgba(22,19,15,.06);background:#fff
}
body.wiki-detail-page .table-wrap{overflow-x:auto;margin:8px 0 16px;-webkit-overflow-scrolling:touch}
body.wiki-detail-page .data-table{
  width:100%;border-collapse:collapse;margin:8px 0 16px;font-size:.86rem;
  border:1px solid var(--wiki-line);border-radius:10px;overflow:hidden
}
body.wiki-detail-page .data-table th{
  background:#f7f2ea;color:#6a4b16;font-weight:800;padding:10px 14px;text-align:left;white-space:nowrap
}
body.wiki-detail-page .data-table td{padding:10px 14px;border-top:1px solid #f1ece4;color:#3b342c;line-height:1.55}
body.wiki-detail-page .data-table tr:nth-child(even) td{background:#faf8f4}
body.wiki-detail-page .notice-box{
  margin:0 0 16px;padding:14px 16px;border:1px solid #f0c9c9;border-radius:12px;background:#fff8f8
}
body.wiki-detail-page .notice-box .notice-item{margin:0 0 8px;font-size:.92rem}
body.wiki-detail-page .notice-box .notice-item:last-child{margin:0}
body.wiki-detail-page .tag-nav{display:none!important}
body.wiki-detail-page .hs-media{display:flex;gap:14px;margin:12px 0 4px;align-items:flex-start}
body.wiki-detail-page .hs-media .hs-img-col,body.wiki-detail-page .hs-media .hs-vid-col{flex:1;min-width:0}
body.wiki-detail-page .hs-media img,body.wiki-detail-page .hs-media video{width:100%;border-radius:12px}
body.wiki-detail-page .mindmap-container{border:1px solid var(--wiki-line);border-radius:12px;box-shadow:none;background:#fff;margin:8px 0}
body.wiki-detail-page .footer{border-top:1px solid var(--wiki-line);margin-top:22px;padding:14px 0 0;color:var(--wiki-muted);text-align:center}
.wiki-side-rail{position:fixed;left:0;top:0;bottom:calc(60px + env(safe-area-inset-bottom,0px));z-index:100000;width:64px;display:flex!important;visibility:visible;flex-direction:column;align-items:center;gap:8px;padding:12px 8px calc(16px + env(safe-area-inset-bottom,0px));overflow-y:auto;overflow-x:hidden;background:#fff;border-right:1px solid var(--wiki-line);scrollbar-width:none;transform:translateZ(0);-webkit-transform:translateZ(0)}
.wiki-side-rail::-webkit-scrollbar{display:none}
.wiki-side-btn{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--wiki-line);border-radius:14px;background:#fff;box-shadow:0 3px 8px rgba(22,19,15,.06);transition:transform .2s,border-color .2s,box-shadow .2s}
.wiki-side-btn img{width:28px;height:28px;object-fit:contain;border-radius:8px}
.wiki-side-btn:hover{transform:translateY(-2px);border-color:var(--wiki-gold)}
.wiki-side-btn.is-active{border-color:var(--wiki-gold);box-shadow:0 0 0 2.5px rgba(240,166,37,.28),0 6px 14px rgba(240,166,37,.18)}
/* 顶部五栏导航：原底部导航上移，五个入口 / 跳转 / 选中态保持不变 */
.wiki-top-nav{position:fixed;z-index:100001;bottom:0;left:0;right:0;box-sizing:border-box;display:flex;justify-content:space-around;align-items:center;width:100%;max-width:100vw;height:calc(60px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid var(--wiki-line);box-shadow:0 -8px 24px rgba(22,19,15,.07)}
.wiki-top-nav a{display:flex;min-width:54px;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#746c61;font-size:.78rem;font-weight:700;text-decoration:none;line-height:1.2;white-space:nowrap}
.wiki-top-nav img{width:21px;height:21px;object-fit:contain}
.wiki-top-nav a:hover,.wiki-top-nav a:focus-visible,.wiki-top-nav a.is-active{color:#9b6418}
@media(min-width:961px){.wiki-top-nav{padding-left:max(12px,calc((100vw - 880px)/2));padding-right:max(12px,calc((100vw - 880px)/2))}.wiki-top-nav a{font-size:.84rem}.wiki-top-nav img{width:24px;height:24px}}
@media(max-width:768px){
  body.wiki-detail-page .hs-media{flex-direction:column}
}
/* 堆叠布局（≤768）统一收敛页面底部留白：内容到底即止，不留一大截死白 */
@media(max-width:768px){
  body.wiki-detail-page{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px) + 10px)}
  #wiki-stage::after{flex-basis:0}
  body.wiki-detail-page .wrap,body.wiki-detail-page .page-shell{padding-bottom:20px}
}
@media(max-width:640px){
  body.wiki-detail-page{padding-top:0;padding-bottom:calc(58px + env(safe-area-inset-bottom,0px) + 10px)}
  body.wiki-detail-page.has-wiki-rail,html:has(.wiki-side-rail) body.wiki-detail-page{padding-left:56px}
  #wiki-stage{min-height:0}
  #wiki-stage::before{flex-basis:28px}
  /* 0 而不是固定 20px：有剩余空间时仍靠 flex-grow 撑开（短页面保持垂直居中），
     内容超出时不再额外顶出 20px 死白 */
  #wiki-stage::after{flex-basis:0}
  body.wiki-detail-page .wrap,body.wiki-detail-page .page-shell{
    width:min(920px,calc(100% - 20px));padding:22px 16px 16px;border-radius:16px
  }
  .wiki-tabs,body.wiki-detail-page .wtab-bar{justify-content:flex-start;margin-bottom:6px;padding-bottom:14px}
  .wiki-tab,body.wiki-detail-page .wtab{padding:7px 13px;font-size:.8rem}
  .wiki-side-rail{width:56px;top:0;bottom:calc(58px + env(safe-area-inset-bottom,0px));padding:10px 6px calc(14px + env(safe-area-inset-bottom,0px));gap:6px}
  .wiki-side-btn{width:40px;height:40px;border-radius:12px}
  .wiki-side-btn img{width:24px;height:24px}
  .wiki-top-nav{height:calc(58px + env(safe-area-inset-bottom,0px))}
  .wiki-top-nav a{font-size:.74rem;gap:5px}
  .wiki-top-nav img{width:19px;height:19px}
  body.wiki-detail-page .page-title{margin:0 0 16px}
  body.wiki-detail-page .page-title h1,body.wiki-detail-page .page-title{font-size:1.42rem}
  body.wiki-detail-page .page-title.wiki-title-art{
    margin:0 0 10px;padding:11px 12px 10px;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    column-gap:11px;row-gap:0;justify-items:start;
    border-radius:14px
  }
  body.wiki-detail-page .page-title.wiki-title-art .wiki-title-icon{
    grid-row:1 / span 2;grid-column:1;align-self:center;
    width:40px;height:40px;padding:4px;border-radius:12px
  }
  body.wiki-detail-page .page-title.wiki-title-art h1{
    grid-row:1;grid-column:2;align-self:end;
    font-size:1.2rem;line-height:1.3
  }
  body.wiki-detail-page .page-title.wiki-title-art .wiki-title-meta{
    grid-row:2;grid-column:2;align-self:start;
    margin:0;padding-left:0;border-left:0;
    font-size:.68rem
  }
  body.wiki-detail-page .page-title.wiki-title-art .wiki-title-hint{
    grid-row:1 / span 2;grid-column:3;align-self:center;justify-self:end;
    margin-top:0;padding:4px 11px;font-size:.68rem
  }
  body.wiki-detail-page p,body.wiki-detail-page .doc-text,body.wiki-detail-page li{font-size:.88rem}
  body.wiki-detail-page .data-table{font-size:.78rem}
  body.wiki-detail-page .data-table th,body.wiki-detail-page .data-table td{padding:7px 8px}
}

/* ================= 图鉴详情弹层（宠物图鉴 / 仙侣图鉴共用） =================
   1) 层级 100003 高于底部导航（100001），打开时再把导航隐藏，彻底消除遮挡；
   2) 移动端卡片高度只用 100%（= 固定定位覆盖的真实可视区），不用 vh/dvh，
      避免浏览器工具栏把卡片撑得比可视区还高、上下两端被裁；
   3) 桌面端：资质/情缘表通栏 + 内容卡片多栏瀑布（column），一屏看全，无需上下滚动。
*/
html.wiki-modal-open .wiki-top-nav,
html.wiki-modal-open .wiki-side-rail{display:none!important}

body.wiki-detail-page .pet-detail-overlay{
  display:none;position:fixed;inset:0;z-index:100003;
  box-sizing:border-box;overflow:hidden;
  align-items:center;justify-content:center;
  padding:24px;
  background:radial-gradient(130% 100% at 50% -10%,rgba(58,43,20,.32),rgba(18,13,6,.66));
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)
}
body.wiki-detail-page .pet-detail-overlay.show{display:flex}
/* 弹层打开时把全屏水印提到最上层：弹出的卡片上同样带水印
   （wiki 页里水印被压在 z-index:2，而弹层是 100003，不提层级卡片上就没有水印） */
html.wiki-modal-open body.wiki-detail-page .site-watermark{z-index:100010}

body.wiki-detail-page .pet-detail-card{
  position:relative;
  display:flex;flex-direction:column;
  width:min(1460px,100%);max-width:100%;
  height:auto;max-height:min(calc(100vh - 16px),1080px);
  min-width:0;min-height:0;
  box-sizing:border-box;overflow:hidden;
  background:#fffdf9;
  border:1px solid #f1e3cb;border-radius:22px;
  box-shadow:0 44px 90px -34px rgba(48,32,8,.5),0 1px 0 #fff inset;
  animation:dtCardIn .3s cubic-bezier(.22,.9,.28,1)
}
@keyframes dtCardIn{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}

/* —— 头部 —— */
body.wiki-detail-page .pet-detail-card .detail-header{
  position:relative;flex:0 0 auto;
  display:flex;align-items:center;gap:16px;min-width:0;
  padding:14px 58px 13px 22px;
  background:
    radial-gradient(120% 220% at 0% -40%,#fff7e7 0%,rgba(255,247,231,0) 62%),
    linear-gradient(180deg,#fffdf9,#fdf8ef);
  border-bottom:1px solid #f3e7d1
}
body.wiki-detail-page .pet-detail-card .detail-header::after{
  content:"";position:absolute;left:24px;right:24px;bottom:-1px;height:1px;
  background:linear-gradient(90deg,rgba(240,166,37,0),rgba(240,166,37,.5) 22%,rgba(240,166,37,.5) 78%,rgba(240,166,37,0))
}
body.wiki-detail-page .pet-detail-card .detail-avatar,
body.wiki-detail-page .pet-detail-card .xl-detail-avatar{
  width:62px;height:62px;flex:0 0 auto;border-radius:50%;overflow:hidden;
  background:linear-gradient(150deg,#fff,#f6ead4);
  box-shadow:0 0 0 2px #fff,0 0 0 3.5px #f3dcb0,0 12px 24px -14px rgba(150,110,40,.85)
}
body.wiki-detail-page .pet-detail-card .detail-avatar img,
body.wiki-detail-page .pet-detail-card .xl-detail-avatar img{
  display:block;width:100%;height:100%;object-fit:cover;border-radius:50%
}
body.wiki-detail-page .pet-detail-card .detail-avatar .avatar-text{display:none}
body.wiki-detail-page .pet-detail-card .detail-title{
  font-size:1.4rem;font-weight:900;line-height:1.25;color:#20180d;
  letter-spacing:.01em;overflow-wrap:anywhere;word-break:break-word
}
body.wiki-detail-page .pet-detail-card .detail-alloc{
  margin-top:4px;font-size:.82rem;font-weight:700;color:#9b6418
}
body.wiki-detail-page .pet-detail-card .detail-info{
  margin-top:4px;font-size:.8rem;color:#8a7c68
}
body.wiki-detail-page .pet-detail-card .detail-cat-badge,
body.wiki-detail-page .pet-detail-card .grade-badge{
  display:inline-block;margin-top:7px;padding:2px 11px;
  border-radius:999px;border:1px solid transparent;
  font-size:.72rem;font-weight:800;letter-spacing:.02em
}
body.wiki-detail-page .pet-detail-card .detail-cat-badge.shenshou{background:#fff1e2;color:#c2620a;border-color:#fbdcc0}
body.wiki-detail-page .pet-detail-card .detail-cat-badge.moshou{background:#eaf2ff;color:#2563c9;border-color:#d3e2fb}
body.wiki-detail-page .pet-detail-card .detail-cat-badge.bianyi{background:#e9f9ee;color:#178a45;border-color:#cdeed9}
body.wiki-detail-page .pet-detail-card .grade-badge.g-B{background:#eaf2ff;color:#2563c9;border-color:#d3e2fb}
body.wiki-detail-page .pet-detail-card .grade-badge.g-A{background:#f2ecff;color:#6d43d1;border-color:#e0d3fb}
body.wiki-detail-page .pet-detail-card .grade-badge.g-S{background:#fff1e2;color:#c2620a;border-color:#fbdcc0}
body.wiki-detail-page .pet-detail-card .grade-badge.g-SS{background:#ffeded;color:#cf2f2f;border-color:#fbd4d4}
body.wiki-detail-page .pet-detail-card .detail-close{
  position:absolute;top:14px;right:14px;z-index:6;
  display:grid;place-items:center;
  width:34px;height:34px;padding:0;
  border:1px solid #efe2cc;border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#a08c6c;font-size:1.3rem;line-height:1;cursor:pointer;
  transition:background .18s,color .18s,border-color .18s,transform .3s
}
body.wiki-detail-page .pet-detail-card .detail-close:hover{
  background:#fff;color:#9b6418;border-color:#e9d3ac;transform:rotate(90deg)
}

/* —— 内容区 —— */
body.wiki-detail-page .pet-detail-card .detail-body{
  flex:1 1 auto;min-height:0;
  overflow-y:auto;overflow-x:hidden;
  padding:13px 22px 14px;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:#e6d3ac transparent
}
body.wiki-detail-page .pet-detail-card .detail-body::-webkit-scrollbar{width:6px}
body.wiki-detail-page .pet-detail-card .detail-body::-webkit-scrollbar-thumb{background:#e6d3ac;border-radius:6px}

/* 资质 / 情缘 通栏表 */
body.wiki-detail-page .pet-detail-card .dt-stats{margin:0 0 11px}
body.wiki-detail-page .pet-detail-card .stats-table-wrap{
  overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  border:1px solid #f2e6d2;border-radius:14px;background:#fffefb;
  scrollbar-width:thin;scrollbar-color:#e6d3ac transparent
}
body.wiki-detail-page .pet-detail-card .stats-table-wrap::-webkit-scrollbar{height:6px}
body.wiki-detail-page .pet-detail-card .stats-table-wrap::-webkit-scrollbar-thumb{background:#e6d3ac;border-radius:6px}
body.wiki-detail-page .pet-detail-card .pet-stats-table,
body.wiki-detail-page .pet-detail-card .xl-bond-table{
  border-collapse:separate;border-spacing:0;width:100%;
  font-size:.78rem;line-height:1.35;color:#3f372c;min-width:0
}
body.wiki-detail-page .pet-detail-card .pet-stats-table th,
body.wiki-detail-page .pet-detail-card .xl-bond-table th{
  padding:6px 9px;text-align:center;white-space:nowrap;
  font-size:.73rem;font-weight:800;color:#7a5520;
  background:linear-gradient(180deg,#fdf4e3,#fae9cb);
  border-bottom:1px solid #f0dfc0
}
body.wiki-detail-page .pet-detail-card .pet-stats-table th:first-child,
body.wiki-detail-page .pet-detail-card .xl-bond-table th:first-child{text-align:left}
body.wiki-detail-page .pet-detail-card .pet-stats-table td,
body.wiki-detail-page .pet-detail-card .xl-bond-table td{
  padding:4px 9px;text-align:center;vertical-align:top;
  border-bottom:1px solid #f7f0e4
}
body.wiki-detail-page .pet-detail-card .pet-stats-table tbody tr:nth-child(even) td,
body.wiki-detail-page .pet-detail-card .xl-bond-table tbody tr:nth-child(even) td{background:#fdfbf6}
body.wiki-detail-page .pet-detail-card .pet-stats-table tbody tr:last-child td,
body.wiki-detail-page .pet-detail-card .xl-bond-table tbody tr:last-child td{border-bottom:none}
body.wiki-detail-page .pet-detail-card .pet-stats-table .stat-label{
  text-align:left;font-weight:800;color:#5c4a2c;white-space:nowrap
}
body.wiki-detail-page .pet-detail-card .xl-bond-table .bond-name{
  text-align:left;font-weight:800;color:#8a5a12;white-space:nowrap
}
body.wiki-detail-page .pet-detail-card .c-blue,
body.wiki-detail-page .pet-detail-card .th-blue{color:#2563c9}
body.wiki-detail-page .pet-detail-card .c-purple{color:#6d43d1}
body.wiki-detail-page .pet-detail-card .th-purple{color:#6d43d1}
body.wiki-detail-page .pet-detail-card .c-red,
body.wiki-detail-page .pet-detail-card .th-red{color:#cf2f2f}
body.wiki-detail-page .pet-detail-card .feisheng-note{
  margin:7px 0 0;padding:5px 10px;
  font-size:.74rem;color:#7a5520;
  background:linear-gradient(90deg,#fdf4e3,rgba(253,244,227,.3));
  border-left:3px solid #f0a625;border-radius:0 9px 9px 0
}

/* 内容卡片多栏瀑布：桌面一屏看全 */
body.wiki-detail-page .pet-detail-card .dt-cols{columns:248px;column-gap:14px}
body.wiki-detail-page .pet-detail-card .dt-sec{
  display:block;box-sizing:border-box;
  margin:0 0 9px;padding:9px 13px 10px;
  border:1px solid #f2e7d5;border-radius:14px;
  background:linear-gradient(180deg,#fffefb,#fffcf6);
  box-shadow:0 1px 2px rgba(120,90,40,.045);
  break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid
}
body.wiki-detail-page .pet-detail-card .dt-sec-t{
  display:flex;align-items:center;flex-wrap:wrap;gap:7px;
  margin:0 0 6px;padding:0 0 6px;
  font-size:.84rem;font-weight:900;color:#8a5a12;letter-spacing:.01em;
  border-bottom:1px dashed #f0e3cd
}
body.wiki-detail-page .pet-detail-card .dt-sec-t::before{
  content:"";width:3px;height:13px;border-radius:2px;flex:0 0 auto;
  background:linear-gradient(180deg,#f9cb63,#e2951a)
}
body.wiki-detail-page .pet-detail-card .dt-sec-note{
  font-size:.7rem;font-weight:600;color:#a2917a
}
body.wiki-detail-page .pet-detail-card .dt-sec-b{
  font-size:.8rem;line-height:1.5;color:#3f372c;
  overflow-wrap:anywhere;word-break:break-word
}
body.wiki-detail-page .pet-detail-card .dt-cond{
  padding:1px 8px;border-radius:999px;white-space:nowrap;
  background:#fdf1dc;color:#9b6418;border:1px solid #f5e3c4;
  font-size:.68rem;font-weight:700
}
body.wiki-detail-page .pet-detail-card .dt-kv b{color:#8a5a12;font-weight:800}

@media(max-width:900px){
  body.wiki-detail-page .pet-detail-overlay{padding:14px}
  body.wiki-detail-page .pet-detail-card{height:auto;max-height:calc(100vh - 28px);border-radius:18px}
  body.wiki-detail-page .pet-detail-card .detail-header{padding:16px 54px 14px 18px;gap:13px}
  body.wiki-detail-page .pet-detail-card .detail-avatar,
  body.wiki-detail-page .pet-detail-card .xl-detail-avatar{width:54px;height:54px}
  body.wiki-detail-page .pet-detail-card .detail-title{font-size:1.22rem}
  body.wiki-detail-page .pet-detail-card .detail-body{padding:14px 18px 18px}
}
@media(max-width:600px){
  body.wiki-detail-page .pet-detail-overlay{
    padding:10px;
    padding-top:max(10px,env(safe-area-inset-top,0px));
    padding-bottom:max(10px,env(safe-area-inset-bottom,0px))
  }
  /* 关键：100% 而不是 vh/dvh —— 卡片高度恒等于可视区，不会被工具栏顶出屏幕 */
  body.wiki-detail-page .pet-detail-card{
    height:100%;max-height:100%;border-radius:16px;
    box-shadow:0 24px 60px -24px rgba(48,32,8,.5)
  }
  body.wiki-detail-page .pet-detail-card .detail-header{padding:14px 50px 12px 15px;gap:11px}
  body.wiki-detail-page .pet-detail-card .detail-avatar,
  body.wiki-detail-page .pet-detail-card .xl-detail-avatar{width:48px;height:48px}
  body.wiki-detail-page .pet-detail-card .detail-title{font-size:1.08rem}
  body.wiki-detail-page .pet-detail-card .detail-alloc,
  body.wiki-detail-page .pet-detail-card .detail-info{font-size:.76rem;margin-top:3px}
  body.wiki-detail-page .pet-detail-card .detail-cat-badge,
  body.wiki-detail-page .pet-detail-card .grade-badge{margin-top:5px;padding:1px 9px;font-size:.68rem}
  body.wiki-detail-page .pet-detail-card .detail-close{top:10px;right:10px;width:30px;height:30px;font-size:1.15rem}
  body.wiki-detail-page .pet-detail-card .detail-body{padding:12px 14px calc(16px + env(safe-area-inset-bottom,0px))}
  body.wiki-detail-page .pet-detail-card .dt-cols{columns:1}
  body.wiki-detail-page .pet-detail-card .dt-sec{padding:11px 13px 12px;margin-bottom:12px;border-radius:12px}
  body.wiki-detail-page .pet-detail-card .dt-sec-b{font-size:.82rem;line-height:1.7}
  body.wiki-detail-page .pet-detail-card .pet-stats-table,
  body.wiki-detail-page .pet-detail-card .xl-bond-table{font-size:.73rem}
  body.wiki-detail-page .pet-detail-card .pet-stats-table th,
  body.wiki-detail-page .pet-detail-card .pet-stats-table td,
  body.wiki-detail-page .pet-detail-card .xl-bond-table th,
  body.wiki-detail-page .pet-detail-card .xl-bond-table td{padding:5px 8px}
  /* 手机端情缘表内容长，宁可横向滑动也不要挤成竖排 */
  body.wiki-detail-page .pet-detail-card .xl-bond-table th,
  body.wiki-detail-page .pet-detail-card .xl-bond-table td{white-space:nowrap}
  /* 表格可横向滑动：右缘渐隐提示 */
  body.wiki-detail-page .pet-detail-card .stats-table-wrap{
    -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 26px),rgba(0,0,0,0) 100%);
    mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 26px),rgba(0,0,0,0) 100%)
  }
}

body.wiki-detail-page.wiki-has-menu{padding-left:0}
body.wiki-detail-page.wiki-has-menu .page-title.wiki-title-art,
body.wiki-detail-page.wiki-has-menu .page-title.wiki-title-art img{cursor:pointer}
body.wiki-detail-page.wiki-has-menu .wiki-side-rail{display:none!important}
html.wiki-menu-lock,html.wiki-menu-lock body{overflow:hidden!important;overscroll-behavior:none}
html.wiki-menu-lock body{position:fixed;left:0;right:0;width:100%}
html.wiki-menu-lock body,html.wiki-menu-lock body *{touch-action:none}
.wiki-menu-card{
  position:fixed;z-index:100000;box-sizing:border-box;margin:0;padding:0;
  display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--wiki-line);border-radius:18px;
  box-shadow:0 18px 44px rgba(22,19,15,.14);overflow:hidden;
  opacity:0;transform:translateY(-10px);
  clip-path:inset(0 0 100% 0 round 18px);pointer-events:none;visibility:hidden;
  transition:opacity .26s ease,transform .34s cubic-bezier(.22,.8,.24,1),clip-path .36s cubic-bezier(.22,.8,.24,1),visibility .36s
}
.wiki-menu-card.is-open{
  opacity:1;transform:translateY(0);clip-path:inset(0 0 0 0 round 18px);
  pointer-events:auto;visibility:visible
}
.wiki-menu-card,.wiki-menu-card *{touch-action:pan-y}
.wiki-menu-card a,.wiki-menu-card img{cursor:pointer}

/* —— 顶部搜索条 —— */
.wiki-menu-top{flex:0 0 auto;padding:10px 12px;border-bottom:1px solid #f4f0ea;background:linear-gradient(180deg,#fffdf8,#fff)}
.wiki-menu-search{display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #efe4d3;border-radius:12px;background:#fff;transition:border-color .18s,box-shadow .18s}
.wiki-menu-search:focus-within{border-color:#e9b45c;box-shadow:0 0 0 3px rgba(240,166,37,.16)}
.wiki-menu-search svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:#b08a55;stroke-width:2;stroke-linecap:round}
.wiki-menu-search input{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:.9rem;line-height:1.5;color:#16130f;padding:0}
.wiki-menu-search input::placeholder{color:#b6a894}
.wiki-menu-search input::-webkit-search-cancel-button{cursor:pointer}
.wiki-menu-count{flex:0 0 auto;font-size:.71rem;font-weight:700;color:#ab9576;white-space:nowrap;font-variant-numeric:tabular-nums}

/* —— 列表区：移动端单列滚动，桌面双列一屏看全 —— */
.wiki-menu-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 0}
.wiki-menu-body::-webkit-scrollbar{width:8px}
.wiki-menu-body::-webkit-scrollbar-thumb{background:#e4dccd;border-radius:4px}
.wiki-menu-block{min-width:0}
@media(min-width:860px){
  .wiki-menu-body{display:block;columns:2;column-gap:10px;padding:12px 14px 14px;background:linear-gradient(180deg,#fffdf8,#fff)}
  .wiki-menu-card .wiki-menu-block{
    break-inside:avoid;margin:0 0 10px;
    background:#fff;border:1px solid #efe7d8;border-radius:14px;
    box-shadow:0 2px 10px rgba(22,19,15,.04)
  }
  .wiki-menu-card .wiki-menu-block.is-current{
    background:linear-gradient(180deg,#fffaf2 0%,#fff 72%);
    border-color:#f0b84d;box-shadow:0 0 0 2px rgba(240,166,37,.16),0 2px 10px rgba(22,19,15,.04)
  }
}
.wiki-menu-empty{margin:22px 16px;padding:22px 12px;text-align:center;font-size:.86rem;font-weight:700;color:#a2907a;background:#fdfaf4;border:1px dashed #e8dcc8;border-radius:14px;grid-column:1/-1}
.wiki-menu-empty[hidden]{display:none}
/* 搜索命中时退回单列结果列表 */
.wiki-menu-body.is-filtered{display:block;background:#fff;padding:2px 0}
.wiki-menu-body.is-filtered .wiki-menu-block{background:#fff;border-bottom:1px solid #f4f0ea}
.wiki-menu-body.is-filtered .wiki-menu-block:last-of-type{border-bottom:0}
@media(min-width:860px){
  .wiki-menu-body.is-filtered{columns:auto;padding:4px 2px 2px}
  .wiki-menu-body.is-filtered .wiki-menu-block{margin:0 0 10px;border:1px solid #efe7d8;border-radius:14px;box-shadow:0 2px 10px rgba(22,19,15,.04)}
  .wiki-menu-body.is-filtered .wiki-menu-block:last-of-type{margin-bottom:2px}
}

/* —— 移动端：底部抽屉 —— */
.wiki-menu-scrim{position:fixed;inset:0;z-index:99999;display:none;background:rgba(22,19,15,.36);opacity:0;pointer-events:none;transition:opacity .26s ease}
.wiki-menu-scrim.is-on{opacity:1;pointer-events:auto}
@media(max-width:700px){
  .wiki-menu-scrim{display:block}
  .wiki-menu-card{
    left:0;right:0;top:auto;bottom:0;width:auto;max-height:88vh;
    z-index:100002;                       /* 高过底部导航(100001)，抽屉整幅盖住 */
    border-radius:20px 20px 0 0;border-bottom:0;
    transform:translateY(103%);clip-path:none;
    box-shadow:0 -16px 40px rgba(22,19,15,.20)
  }
  .wiki-menu-card.is-open{transform:translateY(0);clip-path:none}
  .wiki-menu-card::before{
    content:"";position:absolute;left:50%;top:7px;z-index:3;
    width:38px;height:4px;margin-left:-19px;border-radius:2px;background:#e8dfd0
  }
  .wiki-menu-top{padding:18px 12px 9px}
  .wiki-menu-body{display:block;background:#fff;padding:2px 0 max(8px,env(safe-area-inset-bottom,0px))}
  .wiki-menu-card .wiki-menu-block{padding:9px 12px 10px}
  .wiki-menu-card .wiki-menu-head{gap:8px;font-size:.9rem}
  .wiki-menu-card .wiki-menu-head img{width:28px;height:28px;border-radius:9px}
  .wiki-menu-card .wiki-menu-links{margin:6px 0 0 36px;gap:5px}
  .wiki-menu-card .wiki-menu-links a{padding:3px 8px;font-size:.74rem}
  .wiki-menu-card .wiki-menu-kids{gap:4px}
  .wiki-menu-card .wiki-menu-kids a{padding:2px 7px;font-size:.71rem}
}
.wiki-menu-block{padding:10px 14px 12px;border-bottom:1px solid #f4f0ea}
.wiki-menu-block:last-child{border-bottom:0}
.wiki-menu-block.is-current{background:linear-gradient(180deg,#fffaf2 0%,#fff 72%)}
.wiki-menu-head{
  display:flex;align-items:center;gap:10px;color:var(--wiki-ink);
  font-weight:800;font-size:.95rem;line-height:1.3;text-decoration:none
}
.wiki-menu-head img{
  width:32px;height:32px;flex:0 0 auto;object-fit:contain;border-radius:8px
}
.wiki-menu-block.is-current .wiki-menu-head{color:#9b6418}
.wiki-menu-head:hover{color:#9b6418}
.wiki-menu-links{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0 42px}
.wiki-menu-links a{
  display:inline-flex;align-items:center;border:1px solid var(--wiki-line);border-radius:999px;
  padding:4px 10px;background:#fff;color:#4f473e;font-size:.78rem;font-weight:700;
  line-height:1.35;text-decoration:none;transition:border-color .18s,box-shadow .18s,color .18s
}
.wiki-menu-links a:hover{border-color:#f5bf55}
.wiki-menu-links a.is-on{
  border-color:var(--wiki-gold);color:#9b6418;box-shadow:0 0 0 2px rgba(240,166,37,.18)
}
.wiki-menu-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1 0 100%}
.wiki-menu-kids{display:flex;flex-wrap:wrap;gap:4px}
.wiki-menu-kids a{background:#faf7fc}
/* 桌面：板块名与词条同排，18 个板块压到一屏左右 */
@media(min-width:860px){
  .wiki-menu-card .wiki-menu-block{
    display:grid;grid-template-columns:126px minmax(0,1fr);
    align-items:start;column-gap:12px;
    padding:9px 14px 10px 12px
  }
  .wiki-menu-card .wiki-menu-head{align-items:flex-start;gap:8px;padding-top:1px}
  .wiki-menu-card .wiki-menu-head img{width:26px;height:26px;border-radius:8px}
  .wiki-menu-card .wiki-menu-head span{font-size:.86rem;line-height:1.5}
  .wiki-menu-card .wiki-menu-links{
    margin:0;padding-left:12px;border-left:1px solid #f1ece4;
    gap:5px;align-self:stretch;align-items:flex-start
  }
  .wiki-menu-card .wiki-menu-links a{padding:3px 9px;font-size:.745rem}
  .wiki-menu-card .wiki-menu-kids{gap:4px}
  .wiki-menu-card .wiki-menu-kids a{padding:2px 8px;font-size:.71rem}
}
/* 百科开始页：目录直接内联平铺（非悬浮卡） */
.wiki-menu-inline{
  margin:4px 0 10px;background:#fff;border:1px solid var(--wiki-line);
  border-radius:18px;box-shadow:0 10px 28px rgba(22,19,15,.08);overflow:hidden
}
.wiki-menu-inline .wiki-menu-block{padding:12px 16px 14px}
.wiki-menu-inline a,.wiki-menu-inline img{cursor:pointer}
/* 百科开始页：去掉 .wrap 底层白面板，只留目录卡这一层 */
body.wiki-detail-page.wiki-inline-menu .wrap{
  width:min(920px,calc(100% - 32px));padding:12px 0 8px;
  background:none;border:0;box-shadow:none
}
@media(max-width:640px){
  body.wiki-detail-page.wiki-has-menu{padding-left:0}
  .wiki-menu-links{margin-left:0}
  .wiki-menu-head{font-size:.9rem}
  .wiki-menu-links a{font-size:.74rem;padding:4px 9px}
}

/* ===== 百科首页 v3：标题 + 搜索 + 目录卡 ===== */
body.wiki-detail-page.wiki-inline-menu{background:linear-gradient(180deg,#fff8ec 0,#fffdf9 260px,#fff 560px)!important;margin:0}
/* 百科页 wrap 是透明无卡片层，stage 头部的居中弹性空隙只会变成顶部死白，压成 0 */
body.wiki-detail-page.wiki-inline-menu #wiki-stage::before{flex-basis:0}
body.wiki-detail-page.wiki-inline-menu .wrap{
  width:min(1680px,calc(100% - 48px));max-width:1680px;
  padding:0 0 6px;background:none;border:0;box-shadow:none;border-radius:0
}

/* —— 页头 —— */
.wiki-hero{padding:34px 2px 24px}
.wiki-eyebrow{margin:0;font-size:.72rem;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#bb9159}
.wiki-hero h1{margin:7px 0 0;font-size:clamp(1.8rem,3.4vw,2.35rem);line-height:1.15;letter-spacing:.01em;color:#16130f;font-weight:900}
.wiki-sub{margin:10px 0 0;max-width:34em;color:#8a7c69;font-size:.9rem;line-height:1.75}
.wiki-stat{display:inline-block;margin-top:14px;font-size:.78rem;font-weight:700;letter-spacing:.04em;color:#ab9576}
.wiki-empty{margin:22px 0;padding:30px;text-align:center;color:#9c8b74;background:#fff;border:1px dashed #e7dbc8;border-radius:16px}

/* —— 百科首页 v4：索引式目录 —— */
.wiki-menu-inline{
  display:block;margin:0;overflow:hidden;
  background:#fff;border:1px solid #efe6d6;border-radius:18px;
  box-shadow:0 1px 3px rgba(120,90,40,.04),0 26px 54px -38px rgba(120,90,40,.5)
}
.wiki-menu-inline .wiki-menu-block{
  position:relative;display:grid;grid-template-columns:170px minmax(0,1fr);
  column-gap:0;align-items:start;
  padding:13px 26px 13px 22px;border-radius:0;
  border:0;border-bottom:1px solid #f5eee2;background:#fff;
  transition:background .18s ease
}
.wiki-menu-inline .wiki-menu-block:last-child{border-bottom:0}
/* 左侧彩条：默认 2px 低透明度，hover 加宽提亮 */
.wiki-menu-inline .wiki-menu-block::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:var(--wk,#f0a625);opacity:.5;
  transition:width .2s ease,opacity .2s ease
}
.wiki-menu-inline .wiki-menu-block:hover::before{width:3px;opacity:1}
.wiki-menu-inline .wiki-menu-block:nth-child(6n+1){--wk:#8b5cf6}
.wiki-menu-inline .wiki-menu-block:nth-child(6n+2){--wk:#3b82f6}
.wiki-menu-inline .wiki-menu-block:nth-child(6n+3){--wk:#f59e0b}
.wiki-menu-inline .wiki-menu-block:nth-child(6n+4){--wk:#10b981}
.wiki-menu-inline .wiki-menu-block:nth-child(6n+5){--wk:#ec4899}
.wiki-menu-inline .wiki-menu-block:nth-child(6n+6){--wk:#6366f1}
.wiki-menu-inline .wiki-menu-block:hover{background:#fffcf5}
.wiki-menu-inline a,.wiki-menu-inline img{cursor:pointer}

/* —— 左栏：图标 + 板块名 + 词条数 —— */
.wiki-menu-inline .wiki-menu-head{
  display:grid;grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto;column-gap:10px;row-gap:1px;
  align-items:center;align-content:start;
  padding:1px 0 0;
  font-size:1rem;font-weight:900;letter-spacing:-.005em;line-height:1.28;color:#211a11;
  text-decoration:none
}
.wiki-menu-inline .wiki-menu-head img{
  grid-row:1 / span 2;grid-column:1;
  width:34px;height:34px;object-fit:contain;
  transition:transform .2s ease
}
.wiki-menu-inline .wiki-menu-block:hover .wiki-menu-head img{transform:scale(1.05)}
.wiki-menu-inline .wiki-menu-head:hover,
.wiki-menu-inline .wiki-menu-block:hover .wiki-menu-head{color:#a06a12}
.wiki-menu-inline .wiki-menu-head > span:not(.wiki-count){
  grid-row:1;grid-column:2;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.wiki-menu-inline .wiki-count{
  grid-row:2;grid-column:2;justify-self:start;
  font-size:.7rem;font-weight:700;letter-spacing:.05em;line-height:1.5;
  color:#b49a79;font-variant-numeric:tabular-nums
}

/* —— 右栏：纯文字索引（圆点引导 + 大行距） —— */
.wiki-menu-inline .wiki-menu-links{
  display:flex;flex-wrap:wrap;align-items:baseline;align-content:flex-start;
  align-self:stretch;
  column-gap:26px;row-gap:0;margin:0;padding:1px 0 0 26px;
  border-left:1px solid #e8dbc4;
  font-size:.85rem;line-height:1.95
}
.wiki-menu-inline .wiki-menu-links a{
  position:relative;display:inline-block;
  padding:0;margin:0;border:0;border-radius:0;background:none;
  box-shadow:none;
  font-size:inherit;font-weight:700;line-height:inherit;color:#4f4436;
  text-decoration:none;
  transition:color .15s ease
}
.wiki-menu-inline .wiki-menu-links a::before{
  content:"";display:inline-block;width:3px;height:3px;
  margin-right:7px;border-radius:50%;background:#dccfb6;
  vertical-align:2.5px;
  transition:background .15s ease,transform .15s ease
}
.wiki-menu-inline .wiki-menu-links a:hover{color:#b8791c;box-shadow:none}
.wiki-menu-inline .wiki-menu-links a:hover::before{background:#e8a63c;transform:scale(1.5)}

/* —— 分组：主词条 + 子词条同排延续 —— */
.wiki-menu-inline .wiki-menu-group{
  flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:baseline;
  column-gap:14px
}
.wiki-menu-inline .wiki-menu-group > a{
  font-weight:900;color:#8a6a2e
}
.wiki-menu-inline .wiki-menu-group > a::before{
  width:4px;height:4px;background:#e0b96a;vertical-align:2px
}
.wiki-menu-inline .wiki-menu-kids{
  flex:1 1 auto;display:flex;flex-wrap:wrap;align-items:baseline;
  column-gap:14px;margin:0;padding:0
}
.wiki-menu-inline .wiki-menu-kids a{
  position:relative;display:inline-block;
  padding:0;border:0;border-radius:0;background:none;
  font-size:.765rem;font-weight:600;line-height:1.95;color:#9d8fb0;
  text-decoration:none;
  transition:color .15s ease
}
.wiki-menu-inline .wiki-menu-kids a::before{
  content:"";display:inline-block;width:2px;height:2px;
  margin-right:6px;border-radius:50%;background:#d7cde2;vertical-align:2px;
  transition:background .15s ease
}
.wiki-menu-inline .wiki-menu-kids a:hover{color:#7c5cc4}
.wiki-menu-inline .wiki-menu-kids a:hover::before{background:#9b7ad6}

/* —— 宽屏：目录块两列并排，避免每行右侧大片留白 —— */
@media(min-width:1280px){
  .wiki-menu-inline{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:1px;background:#f5eee2;border-color:#f5eee2
  }
  .wiki-menu-inline .wiki-menu-block{
    grid-template-columns:150px minmax(0,1fr);
    padding:14px 22px 14px 18px;
    border:0;background:#fff
  }
  .wiki-menu-inline .wiki-menu-block:last-child{border-bottom:0}
  .wiki-menu-inline .wiki-menu-links{column-gap:22px;padding-left:22px}
}

@media(max-width:760px){
  body.wiki-detail-page.wiki-inline-menu .wrap{width:calc(100% - 22px);padding:0 0 4px}
  .wiki-hero{padding:20px 2px 14px}
  .wiki-sub{font-size:.86rem}
  .wiki-stat{margin-top:10px;font-size:.74rem}
  /* 手机：整块面板拆回独立卡片，左栏收成一行，词条继续用文字索引 */
  .wiki-menu-inline{
    display:block;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible
  }
  .wiki-menu-inline .wiki-menu-block{
    display:block;position:relative;overflow:hidden;
    padding:13px 15px 11px;margin-bottom:10px;border-radius:14px;
    background:#fff;border:1px solid #efe6d6;
    box-shadow:0 1px 2px rgba(120,90,40,.04),0 8px 20px -16px rgba(120,90,40,.3)
  }
  .wiki-menu-inline .wiki-menu-block:last-child{margin-bottom:0}
  .wiki-menu-inline .wiki-menu-block::before{
    left:0;right:0;top:0;bottom:auto;width:auto;height:2px;
    background:var(--wk,#f0a625);opacity:.75
  }
  .wiki-menu-inline .wiki-menu-block:hover::before{width:auto;opacity:.75}
  .wiki-menu-inline .wiki-menu-head{
    grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto;
    column-gap:10px;row-gap:0;
    padding:0 0 10px;border-bottom:1px solid #f5eee2;font-size:.93rem
  }
  .wiki-menu-inline .wiki-menu-head img{
    grid-row:1;grid-column:1;
    width:30px;height:30px
  }
  .wiki-menu-inline .wiki-menu-head > span:not(.wiki-count){grid-row:1;grid-column:2}
  .wiki-menu-inline .wiki-count{grid-row:1;grid-column:3;justify-self:end;align-self:center;padding-top:0}
  .wiki-menu-inline .wiki-menu-links{
    column-gap:15px;padding:9px 0 0;border-left:0;
    font-size:.795rem;line-height:1.9
  }
  .wiki-menu-inline .wiki-menu-kids{column-gap:12px}
  .wiki-menu-inline .wiki-menu-kids a{font-size:.745rem;line-height:1.85}
}

/* ===== 手机端加固：防整页横向拖动 / 防输入框聚焦自动放大 ===== */
/* iOS 与部分安卓内核：表单控件字号小于 16px 时，聚焦会把整页放大，
   放大后页面就"显示不全"、还能左右拖。统一抬到 16px 从根上避免。 */
@media (max-width:820px){
  body.wiki-detail-page input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
  body.wiki-detail-page select,
  body.wiki-detail-page textarea,
  .wiki-searchbar input,
  .wiki-menu-search input{font-size:16px;line-height:1.5}
  /* 字号变大后收一点内边距，控件视觉高度基本不变 */
  .wiki-searchbar{padding:9px 13px}
  .wiki-menu-search{padding:7px 11px}
  .wiki-searchbar input::placeholder,.wiki-menu-search input::placeholder{font-size:14px}
}
/* 横向滚动容器自己吃掉左右手势，滑到头也不再传给整页 */
.wiki-tabs,body.wiki-detail-page .wtab-bar,.wiki-menu-links,.wiki-menu-kids,
.ys-table-wrap,.doc-table-wrap,.yaoshi-scroll,.sect-switch,.sect-tabs{
  overscroll-behavior-x:contain
}
