/* 全站统一的小修：页脚可读性 + 少量兼容 */
#colophon {
  background: #1f2430;
}
#colophon .site-footer-nav {
  background: transparent !important;
}
#colophon .copyright,
#colophon .copyright a,
#colophon .beian a,
#colophon .footer-bottom-right,
#colophon .b2-dot {
  color: #e9ebf0 !important;
}
#colophon .copyright a:hover {
  color: #ff7a4d !important;
}
/* 公安备案图标：保持原色（此前为了配色做过灰度处理，已去掉） */
#colophon .beian img {
  filter: none;
  opacity: 1;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 4px 0 0;
}
#colophon .beian .p1e-police {
  display: inline-flex;
  align-items: center;
}
/* 手机上页脚：居中、备案号并排显示更紧凑 */
@media screen and (max-width:768px){
  #colophon .footer-bottom-left,
  #colophon .footer-bottom-right{text-align:center !important}
  #colophon .beian{justify-content:center !important;flex-wrap:wrap !important;flex-direction:row !important;gap:2px 4px !important}
  #colophon .footer-bottom{margin-bottom:0 !important;padding-bottom:8px !important}
  #colophon .beian .b2-dot{display:none !important}
  #colophon .beian a{font-size:12px !important;color:#e9ebf0 !important}
  #colophon .beian img{width:16px !important;height:16px !important}
}

/* 页面底部避免被固定菜单遮挡 */
.site-content {
  padding-bottom: 8px;
}

/* ---------- 「加载更多」按钮：居中、不再被裁切 ---------- */
.load-more {
  text-align: center;
  padding: 22px 10px 12px;
  overflow: visible;
  box-sizing: border-box;
}
.load-more > .post-load-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: static !important;
  min-width: 160px;
  max-width: 100%;
  height: 44px;
  padding: 0 22px !important;
  border: 1px solid #e8eaef !important;
  border-radius: 22px !important;
  background: #fff !important;
  color: #4b5262 !important;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(31, 36, 48, .05);
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.load-more > .post-load-button::after,
.load-more > .post-load-button::before {
  display: none !important;
  content: none !important;
}
.load-more > .post-load-button:hover {
  color: #ed5d33 !important;
  border-color: #ed5d33 !important;
  box-shadow: 0 4px 14px rgba(237, 93, 51, .15);
  transform: translateY(-1px);
}
.load-more > .post-load-button.loading {
  opacity: .65;
  pointer-events: none;
}
.load-more > .post-load-button.load-more-end {
  color: #8a909c !important;
  border-color: #eef0f4 !important;
  background: #fafbfc !important;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* 列表容器不要裁切按钮/悬停阴影 */
.post-3 .load-more,
.post-1 .load-more,
.b2_gap {
  overflow: visible !important;
}



/* 广告横幅：文章正文顶部 / 底部 */
.p1e-ad-banner {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.p1e-ad-banner a {
  display: block;
  line-height: 0;
}
.p1e-ad-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ================= 分类栏目页 Banner（后台「分类管理」设置） ================= */
.tax-header {
  position: relative;
  overflow: hidden;
}
/* 无 Banner：保持原来的纯色胶囊标题 */
.tax-header:not(.has-banner) .tax-title h1 {
  background-color: #ed5d33;
}
/* 有 Banner：整条变成大图，内容压到左下角 */
.tax-header.has-banner {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 26px;
}
.tax-header.has-banner .tax-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
}
.tax-header.has-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, .10) 0%, rgba(8, 12, 20, .45) 46%, rgba(8, 12, 20, .80) 100%);
}
.tax-header.has-banner .wrapper {
  position: relative;
  z-index: 2;
}
.tax-header.has-banner .tax-info {
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}
.tax-header.has-banner .tax-title {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}
.tax-header.has-banner .tax-title h1 {
  order: 1;
  background: none !important;
  padding: 0;
  font-size: 38px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.8px;
  color: #fff !important;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .38);
}
.tax-header.has-banner .tax-title h1::after {
  display: none;
}
.tax-header.has-banner .tax-info-item {
  order: 2;
  margin: 0;
}
.tax-header.has-banner .tax-info-item .fliter-button {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  box-shadow: none;
}
.tax-header.has-banner .tax-info-item .fliter-button:hover {
  background: rgba(255, 255, 255, .28);
  color: #fff;
}
.tax-header.has-banner .tax-search {
  order: 2;
  margin: 0 0 2px;
  max-width: 360px;
}
.tax-header.has-banner .tax-search input {
  background: rgba(255, 255, 255, .94);
  border: 0;
  height: 44px;
}
.tax-header.has-banner .tax-search button {
  color: #333;
}
.tax-desc {
  order: 3;
  margin: 2px 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

@media screen and (max-width: 720px) {
  .tax-header.has-banner { min-height: 220px; padding-bottom: 18px; }
  .tax-header.has-banner .tax-title h1 { font-size: 26px; }
  .tax-header.has-banner .tax-search { display: none; }
  .tax-desc { font-size: 13px; }
}

/* 没有 Banner 的分类：描述换到标题下一行，用深灰字 */
.tax-header:not(.has-banner) .tax-title {
  flex-wrap: wrap;
  row-gap: 6px;
}
.tax-header:not(.has-banner) .tax-desc {
  flex-basis: 100%;
  text-align: right;
  color: #6b7280;
  text-shadow: none;
  font-size: 13px;
  margin: 0;
}

/* ---------- 首页顶部 Banner（Hero） ---------- */
.p1e-hero{position:relative;height:var(--hero-h,460px);overflow:hidden;display:flex;align-items:center;margin:0 0 26px}
.p1e-hero-bg{position:absolute;inset:0;overflow:hidden}
.p1e-hero-img{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.02)}
.p1e-hero-video{width:100%;height:100%;object-fit:cover;display:block}
.p1e-hero-mask{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,14,22,.62),rgba(10,14,22,.34) 46%,rgba(10,14,22,.68))}
.p1e-hero-in{position:relative;z-index:2;width:100%;max-width:1200px;margin:0 auto;padding:0 40px;box-sizing:border-box;text-align:center;color:#fff}
.p1e-hero-title{margin:0;color:#fff;font-size:42px;line-height:1.25;font-weight:700;letter-spacing:.5px;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.p1e-hero-sub{margin:14px 0 0;color:rgba(255,255,255,.92);font-size:16px;line-height:1.7}
.p1e-hero-search{display:flex;align-items:center;gap:10px;max-width:640px;margin:28px auto 0;padding:8px 8px 8px 22px;background:rgba(255,255,255,.96);border-radius:999px;box-shadow:0 14px 34px rgba(0,0,0,.22)}
.p1e-hero-search i{font-size:18px;color:#9aa4b2;flex:0 0 auto}
.p1e-hero-search input{flex:1 1 auto;min-width:0;border:0;background:none;outline:none;font-size:16px;color:#111827;padding:10px 4px}
.p1e-hero-search input::placeholder{color:#9aa4b2}
.p1e-hero-search button{flex:0 0 auto;border:0;cursor:pointer;padding:12px 26px;border-radius:999px;background:linear-gradient(135deg,#ed5d33,#ff8a5c);color:#fff;font-size:15px;font-weight:600;transition:filter .2s}
.p1e-hero-search button:hover{filter:brightness(1.05)}
.p1e-hero-hot{margin-top:16px;font-size:14px;color:rgba(255,255,255,.82);display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:center;align-items:center}
.p1e-hero-hot span{opacity:.75}
.p1e-hero-hot a{color:#fff;text-decoration:none;padding:2px 0;border-bottom:1px dashed rgba(255,255,255,.45);transition:border-color .2s,opacity .2s}
.p1e-hero-hot a:hover{opacity:1;border-bottom-color:#fff}
@media screen and (max-width:720px){
  .p1e-hero{height:auto;min-height:300px;padding:64px 0}
  .p1e-hero-in{padding:0 18px}
  .p1e-hero-title{font-size:25px;line-height:1.35}
  .p1e-hero-sub{font-size:14px;margin-top:10px}
  .p1e-hero-search{margin-top:20px;padding:5px 5px 5px 16px}
  .p1e-hero-search button{padding:10px 18px;font-size:14px}
  .p1e-hero-hot{font-size:12px;margin-top:12px}
}
/* 顶栏：去掉登录/注册后，右侧只剩搜索框，靠右对齐 */
.header-banner-right.normal-banner-right{display:flex;align-items:center;justify-content:flex-end}
/* 移动端：顶部菜单横向可滑动，避免整页出现横向溢出 */
body{overflow-x:hidden}
@media screen and (max-width:768px){
  .header-banner-left{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .header-banner-left .ym-menu{min-width:max-content}
  .header-banner-right.normal-banner-right{display:none}
  .p1e-hero-title{word-break:break-word}
  .p1e-hero-hot{justify-content:center;padding:0 4px}
}

/* 移动端 hero 定宽，防止被顶部菜单撑宽 */
@media screen and (max-width:768px){
  .p1e-hero,.p1e-hero-in{width:100% !important;max-width:100vw !important;box-sizing:border-box !important}
  .p1e-hero-in{padding:0 18px !important;margin:0 auto !important}
  .p1e-hero-search{width:100% !important;max-width:100% !important;box-sizing:border-box !important}
  .p1e-hero-hot{max-width:100%;overflow:hidden}
}

html,body{max-width:100%;overflow-x:hidden}
#page.site{max-width:100vw;overflow-x:hidden}
.site-content,.b2-content,#primary-home{max-width:100%;box-sizing:border-box}
/* 桌面端：搜索框绝对靠右 */
@media screen and (min-width:769px){
  .header-banner-content.wrapper{position:relative}
  .header-banner-right.normal-banner-right{position:absolute !important;right:40px;top:50%;transform:translateY(-50%)}
}

/* ============================================================
   移动端适配修复（2026-11-24）
   1. 顶部一级分类导航由「横向溢出被裁」改为两行自动换行全显示
   2. 顶部不再 fixed，避免导航换行后被固定高度压住内容
   3. 底部固定栏留白，避免遮挡列表最后一行
   4. 卡片两列不再向右溢出视口
   ============================================================ */
@media screen and (max-width:768px){
  /* --- 顶部整体：取消固定，随内容撑高 --- */
  .site-header,.site-header-in{position:static !important;height:auto !important;min-height:0 !important}
  .site-header{margin-bottom:10px}
  /* 顶部 banner 各层取消固定高度，否则换行后的第二行会被 overflow:hidden 裁掉 */
  .header-banner,.header-banner-content,.header-banner-content.wrapper,
  .header-banner-left,#ym-menu.ym-menu,#ym-menu.ym-menu ul.menu{
    height:auto !important;min-height:0 !important;overflow:visible !important;
  }
  .top-style .header-banner-content,.top-style .ym-menu{
    height:auto !important;margin-bottom:0 !important;padding:0 !important;
  }

  /* --- 一级分类导航：换行、全部可见 --- */
  .header-banner-left{display:block !important;width:100% !important;max-width:100% !important;overflow:visible !important}
  #ym-menu.ym-menu{display:block !important;width:100% !important;min-width:0 !important;max-width:100% !important;overflow:visible !important;white-space:normal !important}
  #ym-menu.ym-menu ul.menu{
    display:flex !important;flex-wrap:wrap !important;align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;min-width:0 !important;max-width:100% !important;
    margin:0 !important;padding:5px 8px !important;
    box-sizing:border-box !important;
    gap:0 2px !important;row-gap:1px !important;
  }
  #ym-menu.ym-menu ul.menu > li{flex:0 0 auto !important;width:auto !important;max-width:none !important;margin:0 !important}
  #ym-menu.ym-menu ul.menu > li > a{
    display:inline-block !important;
    font-size:13px !important;line-height:1.6 !important;
    padding:3px 6px !important;margin:0 !important;
    white-space:nowrap !important;
  }
  /* 「旗下网站」下拉在触屏上不可用，手机端隐藏 */
  #ym-menu.ym-menu ul.menu > li.menu-item-has-children{display:none !important}

  /* --- 底部固定栏留白，最后一行不被压住 --- */
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px)) !important}
  #mobile-footer-menu{padding-left:2px !important;padding-right:2px !important}
  /* 底部栏中间搜索按钮：B2 原样式是白图标（白底不可见），改成站点主色圆按钮 + 白色搜索图标 */
  #mobile-footer-menu .mobile-footer-center{display:flex !important;align-items:center !important;justify-content:center !important;flex:0 0 auto !important}
  #mobile-footer-menu .mobile-footer-center button{
    width:44px !important;height:44px !important;min-width:44px !important;
    display:flex !important;align-items:center !important;justify-content:center !important;
    background:#ed5d33 !important;border:0 !important;border-radius:50% !important;
    box-shadow:0 4px 12px rgba(237,93,51,.35) !important;
    padding:0 !important;margin:-6px auto 0 !important;
  }
  #mobile-footer-menu .mobile-footer-center button svg{stroke:#fff !important;color:#fff !important}
  #mobile-footer-menu .mobile-footer-left,#mobile-footer-menu .mobile-footer-right{display:flex !important;align-items:center !important;flex:1 1 0 !important;justify-content:space-around !important}
  #mobile-footer-menu a,#mobile-footer-menu button{text-decoration:none !important}
  #mobile-footer-menu b{font-size:12px !important;font-weight:500}
  /* 底栏图标与文字统一灰色（避免 B2 把「标签/顶部」染成主题色） */
  #mobile-footer-menu a{color:#7b8494 !important}
  #mobile-footer-menu a b{color:#7b8494 !important}
  #mobile-footer-menu a svg{stroke:#7b8494 !important;color:#7b8494 !important}
  /* 文章页「上一篇 / 下一篇」：不再左右溢出 */
  .post-pre-next{box-sizing:border-box !important;width:100% !important;max-width:100% !important;margin-left:0 !important;margin-right:0 !important}
  .post-pre-next-in,.post-pre,.post-next{box-sizing:border-box !important;max-width:100% !important}

  /* --- 列表两列：不再右溢出 --- */
  .b2_gap,ul.b2_gap,li.b2_gap,.post-list,.post-list-item,.post-list-item.post-list-item-2,
  .b2_gap > li,.b2_gap > div{
    box-sizing:border-box !important;max-width:100% !important;
  }
  .header-banner-content.wrapper,.site-header-in,.wrapper,#page.site{
    box-sizing:border-box !important;max-width:100% !important;
  }
  /* 卡片区域左右留白与顶部对齐 */
  ul.b2_gap{margin-left:0 !important;margin-right:0 !important;width:100% !important}

  /* --- 顶部重排：LOGO 独占一行在上，分类导航在下面 --- */
  .site-header-in{display:flex !important;flex-direction:column !important}
  .site-header-in > .header{order:-1 !important;width:100% !important;height:auto !important}
  .site-header-in > .header-banner{order:0 !important;width:100% !important}
  .site-header-in > .header .top-style{height:auto !important;min-height:0 !important}
  .site-header-in > .header .top-style .wrapper{
    display:flex !important;align-items:center !important;justify-content:space-between !important;
    height:auto !important;min-height:0 !important;
    padding:9px 12px !important;box-sizing:border-box !important;width:100% !important;
  }
  /* 汉堡按钮：脱离绝对定位，作为左侧固定占位 */
  #mobile-menu-button{
    position:static !important;flex:0 0 38px !important;width:38px !important;height:38px !important;
    margin:0 !important;top:auto !important;left:auto !important;
    display:flex !important;flex-direction:column !important;justify-content:center !important;gap:4px !important;
  }
  #mobile-menu-button .line-1,#mobile-menu-button .line-2,#mobile-menu-button .line-3{
    width:18px !important;height:2px !important;border-radius:2px !important;margin:0 !important;
    background:#121212 !important;
  }
  /* LOGO 居中，尺寸收敛，避免撑破一行 */
  .site-header-in > .header .header-logo{
    flex:1 1 auto !important;min-width:0 !important;margin:0 !important;
    display:flex !important;align-items:center !important;justify-content:center !important;
  }
  .site-header-in > .header .header-logo .logo{
    display:flex !important;align-items:center !important;justify-content:center !important;margin:0 !important;
  }
  .site-header-in > .header .header-logo h1{margin:0 !important;line-height:0 !important}
  .site-header-in > .header .header-logo img{
    max-height:32px !important;max-width:62vw !important;width:auto !important;display:block !important;
  }
  /* 右侧搜索按钮：固定占位，与左侧等宽 */
  .site-header-in > .header .header-user{
    flex:0 0 38px !important;width:38px !important;margin:0 !important;
    display:flex !important;align-items:center !important;justify-content:flex-end !important;
  }
  .site-header-in > .header .header-user button{padding:0 !important;background:none !important;border:0 !important}
}

/* 公告弹窗：站点已无公告功能，彻底关闭（B2 遗留组件，保留容器避免 Vue 报错） */
#gong-box,#post-gg{display:none !important}
