/* ==========================================================================
   赤峰市中小微企业金融服务信用信息共享平台 —— enterprises.jsp 专属样式
   说明：已从页面内联 <style> 中抽出，并剔除与 website.css 重复的规则。
         website.css 需先加载，本文件在其后加载（同选择器时以本文件为准）。
   ========================================================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6; color: #333; background: #f0f2f5; min-height: 100vh; font-size: 14px;
}

.top-bar .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }

.nav-bar .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }

.page-header .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.news-item { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; }

.news-title { flex: 1; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 4px; min-width: 0; }

.news-date { color: #999; font-size: 13px; white-space: nowrap; flex-shrink: 0; width: 110px; text-align: right; }

.news-meta { color: #999; font-size: 12px; white-space: nowrap; flex-shrink: 0; width: 60px; text-align: center; margin-left: -4px; }

.grade-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; flex-shrink: 0; width: 30px; text-align: center; margin-right: 0; position: relative; left: -60px; }

.grade-aa { background: #d4edda; color: #155724; }

.grade-a { background: #e8f4fd; color: #2d6098; }

.grade-b { background: #fff3e0; color: #e65100; }

.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* === 优秀企业数据列表（企业名称 / 信用等级 / 成立日期） === */
.ke-table {
  padding: 0;
}

.ke-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 120px 160px;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: background 0.2s;
}

.ke-row:last-child {
  border-bottom: none;
}

.ke-row:not(.ke-head):hover {
  background: #f8f9fa;
}

.ke-head {
  background: #f7f9fb;
  color: #555;
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid #e8ecef;
}

.ke-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 表头各列字体统一，避免被下方各列样式（字号、颜色）覆盖 */
.ke-head > span {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.ke-col-name {
  color: #333;
}

.ke-col-grade {
  text-align: center;
}

/* 信用等级徽标：样式与 index.css 中“公示企业”表格保持一致
   （enterprises.css 原有全局 .grade-badge 带定位偏移，供 enterprises.jsp 使用，
     故此处用 .ke-table 作用域覆盖） */
.ke-table .grade-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
  width: auto;
  position: static;
  left: auto;
  margin-right: 0;
}

/* 配色：由优到差 绿 → 黄 → 橙 → 红，未评级为灰 */
.ke-table .grade-aaa { background: #b7e4c7; color: #0b5a2b; border-color: #8bd0a4; }

.ke-table .grade-aa { background: #c8ebd4; color: #0f6b34; border-color: #9dd9b3; }

.ke-table .grade-a { background: #d4edda; color: #155724; border-color: #a8dfba; }

.ke-table .grade-b { background: #fff3cd; color: #856404; border-color: #f2dfa1; }

.ke-table .grade-c { background: #ffe0c2; color: #9a4500; border-color: #f7c184; }

.ke-table .grade-d { background: #f8d7da; color: #a12622; border-color: #efb3b8; }

.ke-table .grade-none { background: #eceff1; color: #60707a; border-color: #d6dde1; }

.ke-col-date {
  color: #666;
  font-size: 13px;
  text-align: center;
}

/* 窄屏：压缩侧列宽度，保证企业名称完整显示 */
@media (max-width: 900px) {
  .ke-row {
    grid-template-columns: minmax(160px, 1fr) 90px 110px;
  }
}

@media (max-width: 600px) {
  .ke-row {
    grid-template-columns: minmax(120px, 1fr) 70px;
    gap: 8px;
  }
  .ke-col-date {
    display: none;
  }
}

@media (max-width: 1240px) { .nav-logo-text { font-size: 0.95rem; } .nav-links { gap: 0; } .nav-link { padding: 23px 10px; font-size: 13px; } }

@media (max-width: 1080px) { .nav-content { gap: 20px; } .nav-logo-text { font-size: 0.9rem; } .nav-logo { max-width: 200px; } .nav-link { padding: 23px 5px; font-size: 12px; } .nav-search input { width: 100px; } }

@media (max-width: 900px) { .nav-content { flex-wrap: wrap; gap: 10px; height: auto; padding: 10px 0; } .nav-logo { justify-content: center; } .nav-links { justify-content: center; flex-wrap: wrap; } .nav-search { justify-content: center; } }

@media (max-width: 600px) { .footer-content { flex-direction: column; gap: 15px; text-align: center; } .footer-links { flex-wrap: wrap; justify-content: center; gap: 15px; } }
