/* ============================================================
   sec.css —— 二级通用列表页样式（公告公示等栏目复用）
   左侧栏目导航 sec-side / 右侧信息列表 infobox（结构参照 binzhouygcgnew/sec.html）
   ============================================================ */

/* 页面底部留白（内容带通用骨架在 common.css） */
.content-wrap{ padding-bottom:56px; }

/* ---------- 两栏布局：左栏目 260px + 右列表自适应 ---------- */
.sec-cols{ display:grid; grid-template-columns:260px minmax(0,1fr); gap:22px; align-items:start; }

/* ---------- 左侧栏目 ---------- */
/* 吸顶：跟随公共头部高度（--hdr-h 见 common.css），滚动时常驻 */
.sec-side{ padding:0; overflow:hidden; position:sticky; top:calc(var(--hdr-h, 100px) + 20px); }
.sec-side-t{
  margin:0; padding:17px 22px 15px; font-size:17px; font-weight:700; letter-spacing:2px; color:#15304f;
  border-bottom:1px solid #eef2f7; position:relative;
}
/* 标题下鞍钢金短线，与页头横幅 sub-rule 同一视觉语言 */
.sec-side-t::after{
  content:""; position:absolute; left:22px; bottom:-1px; width:34px; height:2px; border-radius:2px;
  background:linear-gradient(90deg,#f3c25a,#c9a86a);
}
.sec-nav a{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:14px 20px 14px 22px; font-size:15px; color:#4c5b70; text-decoration:none;
  border-left:3px solid transparent; transition:background .2s, color .2s, border-color .2s;
}
.sec-nav a i{ font-style:normal; font-size:13px; line-height:1; color:#b6c2d2; transition:.2s; }
.sec-nav a:hover{ color:#1561c9; background:#f5f9ff; }
.sec-nav a:hover i{ color:#1561c9; transform:translateX(3px); }
.sec-nav a.current{
  color:#1561c9; font-weight:600; border-left-color:#1561c9;
  background:linear-gradient(90deg,#eaf3ff 0%, #f7fbff 100%);
}
.sec-nav a.current i{ color:#1561c9; }

/* ---------- 右侧信息列表 ---------- */
.infobox{ display:flex; flex-direction:column; min-height:520px; }
/* 列表体：撑满卡片剩余高度，翻页条借此吸底 */
.infobox-bd{ flex:1; display:flex; flex-direction:column; }
.infobox-hd{
  display:flex; align-items:baseline; justify-content:space-between; gap:14px;
  padding:2px 2px 14px; border-bottom:2px solid #eef2f7;
}
/* 标题 + 蓝色短划线（与左侧金线呼应，一冷一暖） */
.infobox-tt{
  position:relative; padding-bottom:12px; margin-bottom:-16px;
  font-size:20px; font-weight:700; letter-spacing:2px; color:#15304f;
}
.infobox-tt::after{
  content:""; position:absolute; left:0; bottom:0; width:44px; height:2px; border-radius:2px;
  background:linear-gradient(90deg,#1561c9,#4aa3ff);
}
.infobox-count{ flex:none; font-size:13px; color:#93a2b5; letter-spacing:.5px; }

/* ---------- 列表搜索框 ---------- */
.infobox-hd{ align-items:center; }   /* 含搜索框时标题与输入框垂直居中对齐 */
.sec-search{
  flex:none; display:flex; align-items:center;
  height:36px; padding:0 4px 0 14px; border-radius:18px;
  background:#f4f8fd; border:1px solid #e2ecf7; transition:.2s;
}
.sec-search:focus-within{
  border-color:#4b9bf0; background:#fff; box-shadow:0 0 0 3px rgba(75,155,240,.14);
}
.sec-search-input{
  width:180px; border:0; outline:0; background:transparent;
  font-size:13.5px; color:#1f3a66;
}
.sec-search-input::placeholder{ color:#a9b7c8; }
.sec-search-btn{
  flex:none; width:30px; height:30px; margin-left:4px; border:0; border-radius:50%;
  background:linear-gradient(135deg,#1561c9,#4aa3ff); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:.2s;
  box-shadow:0 3px 10px rgba(21,97,201,.22);
}
.sec-search-btn:hover{ filter:brightness(1.1); transform:scale(1.06); }
.sec-search-btn:active{ transform:none; }

/* 列表行 */
.wb-data-item{ list-style:none; }
.wb-data-list{
  display:flex; align-items:center; gap:16px;
  padding:15px 6px; border-bottom:1px dashed #e6edf6; transition:background .2s;
  animation:secIn .35s ease both;
}
@keyframes secIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
.wb-data-list:hover{ background:#f7fbff; }
/* 行首小圆点：悬停转蓝 */
.wb-data-list::before{
  content:""; flex:none; width:6px; height:6px; border-radius:50%;
  background:#c3d4e8; transition:.2s;
}
.wb-data-list:hover::before{ background:#1561c9; box-shadow:0 0 0 3px rgba(21,97,201,.14); }
.wb-data-infor{ flex:1; min-width:0; display:flex; align-items:center; gap:10px; }
.infotitle{
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:15px; color:#2c3e57; text-decoration:none; transition:color .2s;
}
.wb-data-list:hover .infotitle{ color:#1561c9; }

/* 类型角标 */
.wb-tag{ flex:none; font-size:12px; padding:2px 9px; border-radius:4px; letter-spacing:1px; }
.wb-tag.t-notice{ color:#1a6cb5; background:#e8f3ff; border:1px solid #cfe4fb; }
.wb-tag.t-bid{    color:#1e8449; background:#eaf7ee; border:1px solid #cfe9d8; }
.wb-tag.t-change{ color:#b26a00; background:#fdf3e3; border:1px solid #f5ddb5; }
/* NEW 角标：7 天内发布（sec.js 按当前日期计算） */
.wb-new{
  flex:none; font-size:11px; font-weight:700; letter-spacing:1px; color:#fff;
  padding:2px 7px; border-radius:4px; background:linear-gradient(135deg,#e2703a,#f3a03a);
}
.wb-data-date{ flex:none; font-size:13.5px; color:#93a2b5; font-variant-numeric:tabular-nums; }

/* 翻页容器：插件自行 inline-block 横向排列，这里只保留吸底与居中 */
.pager{ margin-top:auto; padding-top:24px; text-align:center; }

/* ============================================================
   mricode.pagination 插件覆写（不改动插件源文件）
   主题对齐鞍钢蓝；并修复 .m-pagination-jump 写死 73px 导致的跳转折行
   ============================================================ */
.m-pagination{ display:inline-block; height:auto; margin:0; line-height:1; }
.m-pagination-page,
.m-pagination-info,
.m-pagination-size,
.m-pagination-jump{ vertical-align:middle; }

/* 页码按钮 */
.m-pagination-page>li{ margin:0 6px 0 0; }
.m-pagination-page>li>a{
  height:30px; line-height:30px; padding:0 12px; border-radius:8px;
  border:1px solid #dce8f6; background:#fff; color:#4c5b70; transition:.2s;
}
.m-pagination-page>li:hover>a{ border-color:#8fc0f0; background:#eaf4ff; color:#1561c9; }
.m-pagination-page>li.active>a{
  background:linear-gradient(135deg,#1561c9,#4aa3ff); border-color:transparent;
  color:#fff; font-weight:600; box-shadow:0 4px 12px rgba(21,97,201,.22);
}

/* 跳转：宽度放开（插件写死 73px 是上下行根因），输入框与按钮同行等高 */
.m-pagination-jump{ width:auto; }
.m-pagination-group{ display:inline-flex; align-items:stretch; }
.m-pagination-group>input{
  float:none; width:46px; height:30px; padding:0; text-align:center;
  border:1px solid #dce8f6; border-right:0; border-radius:8px 0 0 8px;
  color:#1f3a66; background:#fff;
}
.m-pagination-group>input:focus{ outline:none; border-color:#4b9bf0; box-shadow:0 0 0 3px rgba(75,155,240,.14); }
.m-pagination-group>button{
  float:none; height:30px; padding:0 12px; cursor:pointer;
  border:1px solid #dce8f6; border-radius:0 8px 8px 0;
  background:#f7fbff; color:#2f6fb5; transition:.2s;
}
.m-pagination-group>button:hover{ background:#eaf4ff; border-color:#8fc0f0; }

/* 共 N 条 */
.m-pagination-info{ height:32px; line-height:32px; color:#93a2b5; font-size:13px; }
.m-pagination-info>span{ margin:0 4px; color:#1561c9; font-weight:600; }

/* 每页条数（showPageSizes 的下拉，chosen 未增强时的原生 select） */
.m-pagination-size>select{
  height:32px; padding:0 8px; border:1px solid #dce8f6; border-radius:8px; color:#4c5b70; background:#fff;
}

/* 窄屏：页码按钮收窄防溢出 */
@media (max-width:600px){
  .m-pagination-page>li>a{ padding:0 9px; }
  .m-pagination-page>li{ margin-right:4px; }
}

/* ---------- 响应式：窄屏单栏，侧栏横排 ---------- */
@media (max-width:900px){
  .sec-cols{ grid-template-columns:1fr; }
  .sec-side{ position:static; }
  .sec-nav{ display:flex; flex-wrap:wrap; }
  .sec-nav a{ flex:1 1 auto; border-left:0; border-bottom:3px solid transparent; justify-content:center; }
  .sec-nav a.current{ border-left:0; border-bottom-color:#1561c9; }
  /* 搜索框折到标题下方，占满整行 */
  .infobox-hd{ flex-wrap:wrap; gap:12px; }
  .sec-search{ flex:1 1 100%; }
  .sec-search-input{ flex:1; width:auto; }
}
