/* ===== 第23轮：DUX 9.2 骨架（逐块对齐 nasaeye.com）
   全部规则以 .dux-shell 前缀限定，仅在 mirror_mode.json 的 ncit_dux_shell=true
   （functions.php 给 body 追加 dux-shell 类）时生效。原紫主题 style.css 一行未改，
   把开关改回 false 即整站回滚到杂志版式。 ===== */

.dux-shell{background:#f5f6f7;color:#22272b;font-size:15px;line-height:1.8;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.dux-shell a{color:#2b3136;text-decoration:none}
.dux-shell a:hover{color:#1c5fd6}
.dux-shell .container{max-width:1240px;margin:0 auto;padding:0 20px;width:auto}
.dux-shell .container:after{content:"";display:block;clear:both}

/* ---------- 顶栏 ---------- */
.dux-shell .header{background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.03);
  padding:20px 0;margin-bottom:20px;position:relative;z-index:99}
.dux-shell .logo{float:left;font-size:20px;font-weight:600;margin:0;line-height:32px;white-space:nowrap}
.dux-shell .logo a{color:#22272b}
.dux-shell .brand{float:left;margin-left:10px;font-size:12px;color:#999;line-height:16px;padding-top:1px}
.dux-shell .site-nav{float:right;margin:0;padding:0;list-style:none;font-size:0}
.dux-shell .site-nav>li{display:inline-block;margin-left:25px;position:relative;list-style:none}
.dux-shell .site-nav>li>a{display:block;padding:3px 0;font-size:15px;color:#2b3136;line-height:26px}
.dux-shell .site-nav>li.current-menu-item>a{color:#1c5fd6}
.dux-shell .nav-search>a{display:inline-flex;align-items:center}
.dux-shell .site-nav svg{display:block}

/* ---------- 两栏（DUX 原版：content-wrap 100% + sidebar 负 margin） ---------- */
.dux-shell .content-wrap{float:left;width:100%}
.dux-shell .content{margin-right:380px;min-height:400px}
.dux-shell .sidebar{float:left;width:360px;margin-left:-360px;position:relative}

/* ---------- 首页头条 / 小节标题 ---------- */
.dux-shell .excerpt-minic-index{background:#fff;padding:20px;margin-bottom:20px}
.dux-shell .excerpt-minic-index h2{font-size:18px;margin:0 0 8px;font-weight:600;line-height:1.6}
.dux-shell .excerpt-minic-index .red{color:#d6362f}
.dux-shell .excerpt-minic-index .note{margin:0;color:#5f666d;font-size:14px}
.dux-shell .excerpt-minic-index .note a{color:#5f666d}
.dux-shell .excerpts-title{background:#fff;padding:14px 20px;margin-bottom:20px}
.dux-shell .excerpts-title h3{margin:0;font-size:16px;font-weight:600;position:relative;padding-left:12px;line-height:1.4}
.dux-shell .excerpts-title h3:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;background:#1c5fd6;border-radius:2px}

/* ---------- 列表项 ---------- */
.dux-shell .excerpt{background:#fff;padding:20px;margin-bottom:20px}
.dux-shell .excerpt header h2{margin:0 0 8px;font-size:17px;font-weight:600;line-height:1.6}
.dux-shell .excerpt header h2 a{color:#22272b}
.dux-shell .excerpt header h2 a:hover{color:#1c5fd6}
.dux-shell .excerpt .note{margin:0 0 10px;color:#5f666d;font-size:14px;line-height:1.75}
.dux-shell .excerpt .meta{font-size:13px;color:#999}
.dux-shell .excerpt .meta time{color:#1c5fd6}

/* ---------- 栏目头 / 分页 ---------- */
.dux-shell .catleader{background:#fff;padding:18px 20px;margin-bottom:20px;font-size:18px;font-weight:600}
.dux-shell .catleader h1{margin:0;font-size:18px;font-weight:600}
.dux-shell .pagination{background:#fff;padding:16px 20px;margin-bottom:20px;text-align:center;font-size:14px}
/* 第23轮：分页结构改为 DUX 的 ul>li，样式同步对齐（原 .page-numbers 规则保留给回滚分支） */
.dux-shell .pagination ul{list-style:none;margin:0;padding:0}
.dux-shell .pagination li{display:inline-block;margin:0 2px}
.dux-shell .pagination li a,.dux-shell .pagination li span{display:inline-block;padding:4px 10px;color:#5f666d}
.dux-shell .pagination li.active span{background:#1c5fd6;color:#fff;border-radius:3px}
.dux-shell .pagination li>span{color:#9aa0a6}
.dux-shell .pagination .page-numbers{display:inline-block;padding:4px 10px;margin:0 2px;color:#5f666d}
.dux-shell .pagination .page-numbers.current{background:#1c5fd6;color:#fff;border-radius:3px}
.dux-shell .pagination .page-numbers.dots{color:#aaa}
/* 第23轮：posttoc 对齐 DUX 9.2 —— 无框、左侧竖线、圆点、单列、-level-1 粗体 */
.dux-shell .posttoc{margin-right:3px;padding:0 20px;overflow-y:auto;max-height:316px}
.dux-shell .posttoc ul{list-style:none;margin:0;padding:12px 0 15px;border-left:2px solid #e6e8eb}
.dux-shell .posttoc li{position:relative;padding:3px 0;margin:0;cursor:pointer;
  font-size:13px;color:#333;transition:color .2s ease-in-out}
.dux-shell .posttoc li::before{content:"";z-index:2;position:absolute;top:10px;left:-5px;width:8px;height:8px;
  border-radius:50%;background-color:#fff;border:2px solid #1c5fd6;display:none;transition:all .3s ease-in-out}
.dux-shell .posttoc li::after{content:"";position:absolute;top:13px;left:0;width:16px;height:2px;
  background-color:#e6e8eb;border-radius:10px;transition:all .3s ease-in-out}
.dux-shell .posttoc li.active,.dux-shell .posttoc li:hover{color:#1c5fd6}
.dux-shell .posttoc li.active::before{display:block;background-color:#1c5fd6}
.dux-shell .posttoc li.active::after{background-color:#1c5fd6}
.dux-shell .posttoc .-level-1{padding-left:28px;font-weight:bold}
.dux-shell .posttoc .-level-1::before{display:block}
.dux-shell .excerpts-title small,.dux-shell .catleader h1 small{color:#999;font-size:14px;
  font-weight:normal;margin-left:6px}

/* 第23轮b：原 zhiwei style.css 的 .posttoc{background:#f7f6fb;border:1px solid #ece8f7;
   border-radius:6px;padding:14px 18px} 与 .posttoc ul{padding-left:18px} 未被下方规则覆盖，
   实测 computed 仍是浅紫底 + 1px 边框 + ul padding:0，与 nasaeye 的白底/无框/左侧竖线不符。
   这里用 !important 精确压回（只作用于 .dux-shell 下的 .posttoc，不影响原紫色版式）。 */
.dux-shell .posttoc{background:transparent!important;border:0!important;border-radius:0!important;
  padding:0 20px!important;margin:0!important;max-height:316px;overflow-y:auto}
.dux-shell .posttoc ul{list-style:none!important;margin:0!important;padding:12px 0 15px!important;
  border-left:2px solid #e6e8eb}
.dux-shell .posttoc li{padding:3px 0!important;font-size:13px!important;line-height:1.6!important;
  background:none!important}
.dux-shell .posttoc .-level-1{padding-left:28px!important;font-weight:bold}
.dux-shell .sidebar .widget_ui_toc{padding:0!important}

/* ---------- 侧栏（第23轮b：逐条对齐 nasaeye 的 DUX widget）----------
   nasaeye 实测：.widget{padding:0}；.widget h3{padding:10px 20px 10px 37px;
   background:#fbfbfb;border-bottom:1px}，竖条在 left:20px、top:50%、高 15px、radius 10px；
   posts 列表项 a 自带 padding:12px 20px；muted 日期 #bbb 12px。
   原来我方 widget 有 16px 20px 内边距、标题无底色条带，视觉与对标站明显不同。 */
.dux-shell .sidebar .widget{background:#fff;padding:0;margin-bottom:20px}
.dux-shell .sidebar .widget h3{margin:0;font-size:15px;font-weight:600;position:relative;
  padding:10px 20px 10px 37px;background:#fbfbfb;border-bottom:1px solid #e6e8eb;line-height:1.6}
.dux-shell .sidebar .widget h3:before{content:"";position:absolute;left:20px;top:50%;
  margin-top:-7.5px;height:15px;width:4px;background:#1c5fd6;border-radius:10px}
.dux-shell .sidebar .widget ul{margin:0;padding:0;list-style:none}
.dux-shell .widget_ui_posts li{padding:0;border-bottom:1px solid #f0f1f2;font-size:13.5px;line-height:1.6}
.dux-shell .widget_ui_posts li:last-child{border-bottom:0}
.dux-shell .widget_ui_posts li a{color:#2b3136;display:block;padding:12px 20px}
.dux-shell .widget_ui_posts li .date{display:block;color:#bbb;font-size:12px;margin-top:2px}
.dux-shell .widget_ui_tags .items{padding:12px 20px}
.dux-shell .widget_ui_tags ul{display:flex;flex-wrap:wrap;gap:8px}
.dux-shell .widget_ui_tags li{background:#f4f5f6;border-radius:3px;list-style:none}
.dux-shell .widget_ui_tags li a{display:block;padding:4px 9px;font-size:12.5px;color:#5f666d}
/* 目录项样式由下方 .dux-shell .posttoc 统管；原来的 .widget_ui_toc li 与 li:before
   特异性同为 0,2,1 且位置更靠后，会把 posttoc 的 8px 圆点压成 4px，已删除。 */

/* ---------- 详情页 5 块 ---------- */
.dux-shell .article-header{background:#fff;padding:34px 40px 24px;text-align:center}
.dux-shell .article-title{margin:0 0 14px;font-size:26px;font-weight:600;line-height:1.5;color:#22272b}
.dux-shell .article-meta{font-size:13px;color:#999}
.dux-shell .article-meta .item{margin:0 8px}
.dux-shell .article-meta a{color:#999}
.dux-shell .article-content{background:#fff;padding:8px 40px 30px;font-size:15.5px;line-height:1.95;color:#2b3136}
.dux-shell .article-content h2{font-size:19px;font-weight:600;margin:30px 0 14px;padding-left:12px;position:relative;line-height:1.5}
.dux-shell .article-content h2:before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;background:#1c5fd6;border-radius:2px}
.dux-shell .article-content h3{font-size:16.5px;font-weight:600;margin:22px 0 10px}
.dux-shell .article-content p{margin:0 0 16px;text-indent:2em}
.dux-shell .article-content ul,.dux-shell .article-content ol{margin:0 0 16px;padding-left:2em}
.dux-shell .article-content li{margin-bottom:6px}
.dux-shell .article-content table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:14px}
.dux-shell .article-content th,.dux-shell .article-content td{border:1px solid #e8eaec;padding:8px 10px;text-align:left}
.dux-shell .article-content img{max-width:100%;height:auto;display:block;margin:0 auto 18px}
.dux-shell .article-content blockquote{margin:0 0 18px;padding:12px 16px;background:#f7f8f9;border-left:3px solid #d8dde2;color:#4a5158}
.dux-shell .post-copyright-custom{background:#fff;border-top:1px solid #f0f1f2;padding:16px 40px;font-size:12.5px;color:#999;line-height:1.9;word-break:break-all}
.dux-shell .article-tags{background:#fff;padding:0 40px 18px;font-size:13px}
.dux-shell .article-tags a{display:inline-block;background:#f4f5f6;color:#5f666d;padding:3px 10px;border-radius:3px;margin-right:6px}
.dux-shell .article-nav{background:#fff;padding:16px 40px 28px;font-size:13.5px;line-height:1.7;display:flex;gap:24px}
.dux-shell .article-nav>span{flex:1;color:#aaa;min-width:0}
.dux-shell .article-nav>span:last-child{text-align:right}
.dux-shell .article-nav a{color:#2b3136;display:inline-block;margin-top:2px}

/* ---------- 页脚 ---------- */
.dux-shell .site-footer{background:#fff;padding:24px 0;font-size:13px;color:#999;clear:both}
.dux-shell .site-footer a{color:#5f666d}
.dux-shell .back-top{display:none!important}

/* ---------- 移动端 ---------- */
.dux-shell .m-icon-nav{display:none}
@media(max-width:768px){
  .dux-shell .header{padding:12px 0}
  .dux-shell .logo{font-size:17px;line-height:26px}
  .dux-shell .brand{display:none}
  .dux-shell .site-nav{float:none;display:none;position:fixed;top:0;left:0;bottom:0;width:70%;max-width:300px;
    background:#fff;z-index:1001;padding:60px 0 20px;overflow-y:auto;
    box-shadow:2px 0 12px rgba(0,0,0,.12);font-size:15px}
  .dux-shell .site-nav>li{display:block;margin:0}
  .dux-shell .site-nav>li>a{padding:12px 20px;font-size:15px;border-bottom:1px solid #f2f3f4}
  .dux-shell .m-icon-nav{display:flex;position:absolute;right:14px;top:12px;width:44px;height:44px;
    align-items:center;justify-content:center;cursor:pointer;color:#22272b}
  .dux-shell .m-icon-nav .i-close{display:none}
  .dux-shell.m-nav-show .m-icon-nav .i-menu{display:none}
  .dux-shell.m-nav-show .m-icon-nav .i-close{display:block}
  .dux-shell.m-nav-show .site-nav{display:block}
  .dux-shell .content{margin-right:0}
  .dux-shell .sidebar{float:none;width:auto;margin:0}
  .dux-shell .article-header{padding:20px 16px 14px}
  .dux-shell .article-title{font-size:21px}
  .dux-shell .article-content{padding:6px 16px 20px;font-size:15px}
  .dux-shell .post-copyright-custom,.dux-shell .article-tags,.dux-shell .article-nav{padding-left:16px;padding-right:16px}
  .dux-shell .article-nav{display:block}
  .dux-shell .article-nav>span{display:block;margin-bottom:10px}
  .dux-shell .article-nav>span:last-child{text-align:left}
}

@media print{
  .dux-shell .header,.dux-shell .sidebar,.dux-shell .pagination{display:none!important}
  .dux-shell .content{margin-right:0}
}


/* ===== 第24轮：完全效仿对标站（strict_parity） ===== */
@font-face{font-family:"dux-font";src:url("/assets/fonts/iconfont.woff2?ver=9.0") format("woff2");font-display:swap}
.tbfa{font-family:"dux-font";font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased}
.dux-shell .m-icon-nav .tbfa{display:block;font-size:22px;line-height:1;color:inherit}
.dux-shell .m-icon-nav .tbfa:nth-child(2){display:none}
.dux-shell.m-nav-show .m-icon-nav .tbfa:nth-child(1){display:none}
.dux-shell.m-nav-show .m-icon-nav .tbfa:nth-child(2){display:block}
.dux-shell .karbar{display:block;position:fixed;right:18px;bottom:20px;z-index:900;opacity:0;visibility:hidden;transition:opacity .2s ease}
.dux-shell .karbar.show{opacity:1;visibility:visible}
.dux-shell .karbar ul{list-style:none;margin:0;padding:0}
.dux-shell .karbar li.karbar-totop{display:block}
.dux-shell .karbar .karbar-totop>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:68px;min-height:56px;padding:6px 0;border:0;border-radius:6px;background:#1c5fd6;color:#fff;font-size:12px;line-height:1.2;cursor:pointer;font-family:inherit;text-decoration:none}
.dux-shell .karbar .karbar-totop>a:hover{opacity:.88;color:#fff}
.dux-shell .karbar .karbar-totop>a .tbfa{font-size:18px;line-height:1}
.dux-shell .footer .flinks{margin-bottom:10px;font-size:13px;color:#5f666d}
@media(max-width:600px){.dux-shell .karbar .karbar-totop>a{width:52px;min-height:52px;font-size:11px}}
/* 对标站 header 后的独立 site-search 块：与 DUX 一致，默认隐藏，body.search-on 才展开 */
.dux-shell .site-search{display:none}
body.dux-shell.search-on .site-search{display:block}
.dux-shell .site-search .container{padding:12px 14px}
.dux-shell .site-search-form{display:flex;align-items:center;gap:8px;margin:0}
.dux-shell .site-search-form .search-input{flex:1;padding:8px 10px;border:1px solid #dcdfe6;border-radius:3px;font-size:14px}
.dux-shell .site-search-form .search-btn{background:#1c5fd6;color:#fff;border:0;border-radius:3px;padding:8px 14px;cursor:pointer}
