/* =============================================================
   信息公告模块样式
   ============================================================= */

/* ---------- 类型标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: .01em;
}
.tag--buy      { color: #164F8A; background: #ECF3FB; border-color: #CFE0F2; }
.tag--fix      { color: #9A5B12; background: #FDF3E4; border-color: #F3DEC0; }
.tag--cand     { color: #3C4E9B; background: #EDEFFB; border-color: #D5DAF2; }
.tag--result   { color: #1E7A45; background: #EAF7EF; border-color: #C4E7D2; }
.tag--fail     { color: #8A4B12; background: #FDF0E3; border-color: #F2D6BC; }
.tag--stop     { color: #8A3B3B; background: #FBEDED; border-color: #EFD2D2; }
.tag--single   { color: #8A6A1B; background: #FBF5E4; border-color: #EFE2BE; }

/* ---------- 布局 ---------- */
.notice-layout {
  display: grid;
  grid-template-columns: 246px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) { .notice-layout { grid-template-columns: 1fr; } }

/* ---------- 左侧分类 ---------- */
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.side-card + .side-card { margin-top: 18px; }
.side-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
.side-card-head svg { width: 16px; height: 16px; color: var(--gold-2); }
.side-list { padding: 8px 0; }
.side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13.5px;
  color: #3E4E5F;
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.side-list a em { font-style: normal; }
.side-list a b {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 999px;
}
.side-list a:hover { background: var(--bg); color: var(--navy); }
.side-list a.on {
  background: #FBF3EC;
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
}
.side-list a.on b { color: #fff; background: var(--gold); }

.side-note { padding: 18px 18px 20px; border-top: 1px solid var(--line-2); }
.side-note h5 { font-size: 13px; color: var(--navy); margin-bottom: 8px; }
.side-note p { font-size: 12.3px; color: var(--muted); line-height: 1.85; }
.side-note .btn { margin-top: 14px; height: 36px; font-size: 13px; width: 100%; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 300px;
  min-width: 220px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.filter-search:focus-within { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27, 77, 134, .08); background: #fff; }
.filter-search svg { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.filter-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 14px;
}
.filter-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.filter-select {
  height: 40px;
  padding: 0 32px 0 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238695A4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: #35465a;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--navy-3); }
.filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 12.8px;
  color: var(--muted);
}
.filter-meta b { color: var(--navy); font-variant-numeric: tabular-nums; }
.chip-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  margin-right: 6px;
  font-size: 12px;
  color: #46586B;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip-clear:hover { color: var(--navy); border-color: var(--navy-3); }

/* ---------- 公告列表 ---------- */
.notice-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.notice-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: #FCFDFE;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.notice-list-head b { color: var(--navy); font-weight: 600; }

.notice-row {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-2);
  transition: background .2s;
}
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover { background: #FAFCFF; }
.notice-row:hover .notice-t { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; }
.notice-tagline { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.notice-t { font-size: 15px; line-height: 1.6; color: #20303F; font-weight: 500; }
.notice-sub { margin-top: 6px; font-size: 12.5px; color: var(--muted-2); display: flex; gap: 16px; flex-wrap: wrap; }
.notice-sub em { font-style: normal; color: #6C7C8D; }
.notice-date {
  text-align: right;
  font-size: 13px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.notice-date.is-new { color: var(--gold); font-weight: 600; }
.notice-date i { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); margin-top: 3px; }
@media (max-width: 640px) {
  .notice-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .notice-date { text-align: left; }
  .notice-t { font-size: 14px; }
}

.notice-empty { padding: 60px 20px; text-align: center; color: var(--muted-2); font-size: 14px; }
.notice-empty svg { width: 34px; height: 34px; margin: 0 auto 12px; color: #C3CEDA; }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  font-size: 13.5px;
  color: #46586B;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  transition: all .2s;
}
.pager button:hover:not(:disabled) { border-color: var(--navy-3); color: var(--navy); }
.pager button.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .pager-info { font-size: 12.5px; color: var(--muted-2); margin-left: 6px; }

/* ---------- 公告详情 ---------- */
.notice-source {
  margin-top: 26px;
  padding: 14px 18px;
  background: #F7FAFD;
  border: 1px dashed #D8E4F0;
  border-radius: var(--radius);
  font-size: 12.8px;
  color: #55697D;
  line-height: 1.9;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.notice-source b { color: var(--navy); }
.notice-source a { color: var(--navy-3); font-weight: 600; white-space: nowrap; }

.detail-loading { padding: 80px 20px; text-align: center; color: var(--muted-2); font-size: 14px; }

/* ---------- 首页公告卡 ---------- */
.notice-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.notice-tabs button {
  position: relative;
  padding: 10px 16px;
  font-size: 13.8px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.notice-tabs button:hover { color: var(--navy); }
.notice-tabs button.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }
.notice-tabs button b { font-weight: 400; font-size: 11.5px; color: var(--muted-2); margin-left: 4px; }
.notice-tabs button.on b { color: var(--gold); }

.home-rows { }
.home-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px dashed var(--line);
}
.home-row:last-child { border-bottom: 0; }
.home-row .t { font-size: 14.5px; color: #22303F; line-height: 1.65; display: flex; align-items: center; gap: 8px; }
.home-row .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-row:hover .t span { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; }
.home-row .d { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 详情页要点条 ---------- */
.notice-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.notice-facts > div { background: #FBFCFE; padding: 13px 16px; }
.notice-facts span { display: block; font-size: 11.8px; color: var(--muted-2); letter-spacing: .04em; }
.notice-facts b { display: block; margin-top: 4px; font-size: 13.6px; color: var(--navy); font-weight: 600; word-break: break-all; }

/* ---------- 资质清单 ---------- */
.qual-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  font-size: 13.2px;
  color: #3E4E5F;
  line-height: 1.7;
  border-bottom: 1px dashed var(--line-2);
}
.qual-list li:last-child { border-bottom: 0; }
.qual-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .85;
}

/* ---------- 自适应：避免长标题把栅格撑破 ---------- */
.home-row { min-width: 0; }
.home-row .t { min-width: 0; overflow: hidden; }
.home-row .t span { display: block; min-width: 0; }
.notice-list { min-width: 0; }
.notice-row > div { min-width: 0; }
.notice-tagline { min-width: 0; }
