@charset "UTF-8";
/* ==========================================================================
   赤峰市中小微企业金融服务信用信息共享平台 —— 前台网站公共样式
   从 web/WEB-INF/pages/website/*.html 中抽取的公共部分，供所有 JSP 复用
   ========================================================================== */

/* === 全局重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* === 整体吸顶头部 === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* === 顶部栏 === */
.top-bar {
  background: #2a5a8a;
  color: white;
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 20px;
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.top-bar a {
  color: white;
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* === 导航栏 === */
.nav-bar {
  background: linear-gradient(180deg, #2d6098 0%, #3a72a8 100%);
  color: white;
  display: flex;
  align-items: center;
  min-height: 70px;
}

.nav-bar .container {
  width: 100%;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  max-width: 260px;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 0;
  justify-content: center;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 23px 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.1);
  border-bottom-color: #5a9ad5;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-search input {
  width: 150px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  background: rgba(255,255,255,0.95);
}

.nav-search button {
  background: #5a9ad5;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-search button:hover {
  background: #4a8ac8;
}

/* === 页面标题区 === */
.page-header {
  background: linear-gradient(135deg, #2d6098, #3a72a8);
  color: white;
  padding: 30px 0;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 13px;
  opacity: 0.8;
}

.breadcrumb a {
  color: white;
  opacity: 0.9;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* === 内容区 === */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* === 通用面板 + 列表（新闻/公告/政策法规/信用公示等共用） === */
.news-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.news-panel-header {
  background: linear-gradient(90deg, #2d6098, #3a72a8);
  color: white;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.news-item:hover {
  background: #f8f9fa;
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  flex: 1;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 20px;
}

.news-title:hover {
  color: #4a8ac8;
}

.news-date {
  color: #999;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-tag {
  display: inline-block;
  background: #e8f4fd;
  color: #2d6098;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* 空数据提示 */
.empty-tip {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* === 详情页（文章正文 + 侧栏） === */
.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* 无侧栏的详情页（如服务申请）：单列并水平居中 */
.article-container--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.article-main {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.article-header {
  padding: 30px 32px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.article-tag {
  display: inline-block;
  background: #e8f4fd;
  color: #2d6098;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #999;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-body {
  padding: 28px 32px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 18px;
  text-indent: 2em;
}

.article-body h2 {
  font-size: 17px;
  font-weight: 600;
  color: #333;
  margin: 28px 0 14px;
  padding-left: 10px;
  border-left: 3px solid #4a8ac8;
}

.article-body ul {
  margin: 12px 0 18px 2em;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.article-body ul li {
  margin-bottom: 6px;
}

.article-body img {
  max-width: 100%;
}

/* 申报流程图：多张等宽图片竖向拼接，去掉首行缩进与行内间隙，保证上下严格对齐 */
.article-body--flow p {
  text-indent: 0;
}

.article-body--flow img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.article-footer {
  padding: 20px 32px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-footer-btns {
  display: flex;
  gap: 12px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
  cursor: pointer;
  background: white;
}

.btn-outline:hover {
  border-color: #4a8ac8;
  color: #4a8ac8;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #4a8ac8;
  color: white;
  border-radius: 4px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: #3a7ab8;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

.sidebar-panel-header {
  background: linear-gradient(90deg, #2d6098, #3a72a8);
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 10px 16px;
  border-bottom: 1px solid #f5f5f5;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list li a {
  font-size: 13px;
  color: #555;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.sidebar-list li a:hover {
  color: #4a8ac8;
}

.sidebar-list li .date {
  font-size: 12px;
  color: #bbb;
  margin-top: 4px;
}

/* === 搜索条（列表页关键字检索） === */
.list-search {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.list-search input {
  width: 220px;
  padding: 8px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.list-search input:focus {
  border-color: #5a9ad5;
}

.list-search button {
  background: #2d6098;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.list-search button:hover {
  background: #3a72a8;
}

/* === 分页 === */
.pager-info {
  text-align: center;
  font-size: 13px;
  color: #999;
  padding: 16px 20px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.pagination a:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.pagination .active {
  background: #2d6098;
  color: white;
  border-color: #2d6098;
}

.pagination .disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* === 底部 === */
.footer {
  background: #2d6098;
  color: white;
  padding: 30px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 15px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

/* === 响应式 === */
@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; }
  .article-container { grid-template-columns: 1fr; }
  .article-header, .article-body, .article-footer { padding-left: 20px; padding-right: 20px; }
  .article-title { font-size: 18px; }
}

@media (max-width: 600px) {
  .footer-content { flex-direction: column; gap: 15px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .news-item { flex-wrap: wrap; }
  .news-title { white-space: normal; margin-right: 0; }
}
