/* ============================================================
   inner.css — 全站统一宽度 + 内页分类导航
   一、统一容器宽度：所有内容容器 max-width:1400px
   二、内页分类导航（.pape_op flex 布局）
   ============================================================ */

/* ===== 一、统一容器宽度 ===== */
/* .w 是全站内容容器，原 style.min.css 用固定 width+断点，改 max-width 自然响应 */
.w {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* 覆盖 style.min.css 里媒体查询对 .w 的固定宽度 */
@media (max-width: 1440px) { .w { width: 100% !important; max-width: 1400px !important; } }
@media (max-width: 1200px) { .w { width: 100% !important; max-width: 1400px !important; } }
@media (max-width: 1100px) { .w { width: 100% !important; max-width: 1400px !important; } }
@media (max-width: 991px)  { .w { width: 100% !important; max-width: 1400px !important; padding: 0 16px !important; } }
@media (max-width: 768px)  { .w { width: 100% !important; max-width: 1400px !important; padding: 0 16px !important; } }
@media (max-width: 480px)  { .w { padding: 0 12px !important; } }

/* article 详情页容器 */
.main-content-container {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 20px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* FAQ 页容器 */
.faq-container {
  max-width: 1400px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* 招聘列表容器 */
.job_list_container {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* UIkit 容器（hero 等） */
.uk-container {
  max-width: 1400px !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* ===== 二、内页分类导航 ===== */

@media (min-width: 992px) {

  /* 原 style.min.css 里 .pape_r 有 float:right + width:76%，现在整页只走 .pape_r */
  .colmp .pape_r {
    float: none !important;
    width: 100% !important;
    padding-bottom: 40px;
  }

  /* ========== .pape_op 改为 flex 导航条 ========== */
  .colmp .pape_r > .pape_op {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    padding: 40px 0 20px !important;   /* 清掉原生 height:56px，改自然高度 */
    margin-bottom: 24px;
    border-bottom: 1px solid #e4e6eb;
    height: auto !important;
    line-height: normal !important;
    position: relative;
  }

  /* --- 左侧：h3 大标题 --- */
  .colmp .pape_op > h3 {
    flex: 0 0 auto;
    display: block !important;
    float: none !important;
    background: none !important;
    background-image: none !important;
    background-position: initial !important;
    margin: 0 !important;
    border-bottom: none !important;   /* 清掉原生 border-bottom:3px solid var(--color2) */
    font-size: 24px !important;
    font-weight: 800;
    line-height: 1.15 !important;
    color: #1a2b4a;
    white-space: nowrap;
  }

  /* h3 英文副标题（伪元素，硬编码 CATEGORY，想动态改 data-en 可改 template） */
  .colmp .pape_op > h3::before {
    content: 'CATEGORY';
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #a0a2ab;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.4;
    float: none !important;
  }

  .colmp .pape_op > h3::after {
    display: none !important;
  }

  /* --- 中间：ul.pape_l_ul 分类标签一排 --- */
  .colmp .pape_op > .pape_l_ul {
    flex: 1 1 auto;
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
        justify-content: flex-end;
    padding: 0 !important;
    background: none !important;
    line-height: normal !important;
    width: auto !important;
  }

  .colmp .pape_op > .pape_l_ul li {
    position: relative;
    display: inline-block !important;
    border-bottom: 0 !important;
  }

  .colmp .pape_op > .pape_l_ul li > a {
    display: inline-block !important;
    width: auto !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    background: none !important;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    position: relative;
    line-height: 1.4;
    box-sizing: border-box;
  }

  /* 竖排圆点装饰隐藏 */
  .colmp .pape_op > .pape_l_ul a::before {
    display: none !important;
  }

  /* hover + 当前高亮 */
  .colmp .pape_op > .pape_l_ul li > a:hover {
    color: #1a2b4a;
    border-bottom-color: #f5b400;
  }

  .colmp .pape_op > .pape_l_ul li.hv > a {
    color: #1a2b4a !important;
    border-bottom-color: #f5b400;
  }

  /* --- 二级下拉 --- */
  .colmp .pape_op > .pape_l_ul dl {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    float: none !important;
    width: auto;
    min-width: 200px;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 40, 90, 0.16);
    border: 1px solid #eef0f4;
    z-index: 80;
    line-height: normal !important;
  }

  .colmp .pape_op > .pape_l_ul dl dd { border-bottom: 0 !important; }

  .colmp .pape_op > .pape_l_ul dl dd a {
    display: block !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    background: none !important;
    color: #333;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .colmp .pape_op > .pape_l_ul dl dd a:hover,
  .colmp .pape_op > .pape_l_ul dl li.hv dd a {
    color: #1a2b4a;
    border-bottom-color: #f5b400;
    padding-left: 20px !important;
  }

  .colmp .pape_op > .pape_l_ul dl a::after { display: none !important; }

  /* --- 面包屑单独一行（.pape_r 直接子级，已移出 .pape_op） --- */
  .colmp .pape_r > .fr {
    float: none !important;
    width: 100%;
    text-align: left !important;
    font-size: 13px;
    color: #999;
    padding: 18px 0 4px !important;
    margin: 0 0 28px !important;
    line-height: 1.6;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
    background: #fafbfd;
  }
  .colmp .pape_r > .fr a {
    color: #999;
    transition: color 0.15s;
    margin: 0 2px;
  }
  .colmp .pape_r > .fr a:hover {
    color: #1a2b4a;
  }
  .colmp .pape_r > .fr .sep {
    color: #ccc;
    margin: 0 4px;
  }
}

/* 中等屏紧凑 */
@media (min-width: 992px) and (max-width: 1200px) {
  .colmp .pape_r > .pape_op { padding: 28px 0 16px !important; }
  .colmp .pape_op > h3 { font-size: 34px !important; padding-right: 40px !important; }
  .colmp .pape_op > h3::before { font-size: 13px; letter-spacing: 4px; }
  .colmp .pape_op > .pape_l_ul { gap: 6px 24px; }
  .colmp .pape_op > .pape_l_ul li > a { font-size: 16px; padding: 8px 0 !important; }
}

/* ≤991px 移动端：换行堆叠，标签一行一个 */
@media (max-width: 991px) {
  .colmp .pape_r > .pape_op {
    display: block !important;
    height: auto !important;
    padding: 20px 0 !important;
    line-height: normal !important;
    border-bottom: 1px solid #eee;
  }
  .colmp .pape_op > h3 {
    float: none !important;
    border-bottom: none !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    padding: 0 0 12px 0 !important;
    margin: 0 !important;
    color: #1a2b4a !important;
  }
  .colmp .pape_op > h3::before {
    content: 'CATEGORY';
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: #a0a2ab;
    margin-bottom: 6px;
  }
  .colmp .pape_op > .pape_l_ul {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
  }
  .colmp .pape_op > .pape_l_ul li {
    display: block !important;
    border-bottom: 1px solid #f2f2f2 !important;
  }
  .colmp .pape_op > .pape_l_ul li > a {
    display: block !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    font-size: 15px;
    background: none !important;
    border-bottom: 2px solid transparent;
  }
  .colmp .pape_r > .fr {
    float: none !important;
    padding: 12px 0 !important;
    margin: 0 0 16px !important;
    text-align: left !important;
    font-size: 12px;
    color: #999;
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fafbfd;
  }
}

/* ============================================================
   三、详情页双栏布局 + 右侧相关新闻侧边栏
   适用：article/article-details.html、product/details.html
   ============================================================ */

/* 双栏容器 */
.detail-layout {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.detail-main {
  flex: 1 1 0;
  min-width: 0;           /* 防止 flex 子项溢出 */
  max-width: calc(100% - 340px - 24px);  /* 侧边栏 340px + gap 24px */
}
.detail-sidebar {
  flex: 0 0 340px;
  width: 340px;
  max-width: 100%;
  /* 吸顶由 UIkit uk-sticky 组件管理，无需 CSS position:sticky */
}

/* 侧边栏盒子 */
.sidebar-box {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 40, 90, 0.06);
}
.sidebar-title {
  margin: 0;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #1a2b4a;
  background: linear-gradient(135deg, #f8f9fc, #eef2f9);
  border-bottom: 1px solid #eef0f4;
  position: relative;
}
.sidebar-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #0057b3;
  border-radius: 2px;
  vertical-align: -3px;
  margin-right: 8px;
}

/* 新闻列表 */
.sidebar-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-news-item {
  border-bottom: 1px solid #f2f4f7;
  transition: background 0.15s ease;
}
.sidebar-news-item:last-child {
  border-bottom: none;
}
.sidebar-news-item:hover {
  background: #f8faff;
}
.sidebar-news-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
}
.sidebar-news-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: #f2f4f7;
}
.sidebar-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.sidebar-news-item:hover .sidebar-news-thumb img {
  transform: scale(1.08);
}
.sidebar-news-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-news-name {
  font-size: 13px;
  line-height: 1.5;
  color: #1a2b4a;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.15s ease;
}
.sidebar-news-item:hover .sidebar-news-name {
  color: #0057b3;
}
.sidebar-news-date {
  font-size: 12px;
  color: #98a2b3;
}

/* ≤991px 移动端：侧边栏移到主内容下方，全宽 */
@media (max-width: 991px) {
  .detail-layout {
    flex-direction: column;
    gap: 20px;
  }
  .detail-main {
    max-width: 100%;
  }
  .detail-sidebar {
    flex: 0 0 auto;
    width: 100%;
  }
}
