/* ==========================================================================
   赤峰市中小微企业金融服务信用信息共享平台 —— financial-institutions.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; }

.inst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.inst-card {
  background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden; transition: all 0.25s; border: 1px solid transparent;
}

.inst-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); border-color: #4a8ac8; transform: translateY(-2px); }

.inst-card-top {
  background: linear-gradient(135deg, #2d6098, #3a72a8);
  padding: 20px; display: flex; align-items: center; gap: 14px;
}

.inst-logo {
  width: 52px; height: 52px; border-radius: 10px; background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #2d6098; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); overflow: hidden;
}

.inst-logo img { width: 36px; height: 36px; object-fit: contain; }

.inst-name { font-size: 16px; font-weight: 600; color: white; line-height: 1.3; }

.inst-type { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }

.inst-card-body { padding: 18px 20px; }

.inst-desc { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 14px; }

/* 简介取自后台摘要/富文本，超过 4 行截断，避免卡片高度失控 */
.inst-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* 无 logo 附件时的文字占位：取机构名称前两字，按卡片顺序循环配色（避开标题栏的蓝色系，保证对比度） */
.inst-logo-text { color: #fff; font-weight: 700; }
.inst-logo-c0 { background: #c41230; }
.inst-logo-c1 { background: #e65100; }
.inst-logo-c2 { background: #2e7d32; }
.inst-logo-c3 { background: #6a1b9a; }
.inst-logo-c4 { background: #ad1457; }

/* 未配置合作产品时的占位提示 */
.inst-service-none { font-size: 13px; color: #aaa; }

/* 机构列表为空时，提示占满整行 */
.inst-grid-empty { grid-column: 1 / -1; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.inst-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.inst-tag { display: inline-block; background: #e8f4fd; color: #2d6098; padding: 3px 10px; border-radius: 3px; font-size: 11px; }

.inst-tag.highlight { background: #fff3e0; color: #e65100; }

.inst-services { border-top: 1px solid #f0f0f0; padding-top: 12px; }

.inst-services-title { font-size: 12px; color: #999; margin-bottom: 6px; }

.inst-service-list { display: flex; flex-direction: column; gap: 4px; }

.inst-service-item { font-size: 13px; color: #555; padding-left: 12px; position: relative; display: block; transition: color 0.2s; }

.inst-service-item::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #4a8ac8; }

.inst-service-item:hover { color: #2d6098; }

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

@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; } .inst-grid { grid-template-columns: repeat(2, 1fr); } }

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