/* 企业官网前台 - 最小样式 */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background: #f5f7fa;
}
a { color: #1a5fb4; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.site-logo {
  font-size: 20px;
  font-weight: 600;
  color: #1a3a5c;
}
.site-logo a { color: inherit; text-decoration: none; }
.site-nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a.active { color: #1a5fb4; }

.site-main { max-width: 1100px; margin: 0 auto; padding: 32px 20px 48px; }

.hero {
  background: linear-gradient(135deg, #1a5fb4 0%, #3584e4 100%);
  color: #fff;
  border-radius: 8px;
  padding: 48px 40px;
  margin-bottom: 32px;
}
.hero h1 { margin: 0 0 12px; font-size: 28px; font-weight: 600; }
.hero p { margin: 0; opacity: .92; font-size: 16px; max-width: 640px; }

.section-title {
  font-size: 20px;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a5fb4;
  color: #1a3a5c;
}

.article-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.article-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f2f5;
  gap: 16px;
}
.article-list li:last-child { border-bottom: none; }
.article-list .title { flex: 1; min-width: 0; }
.article-list .title a { color: #333; font-size: 16px; }
.article-list .title a:hover { color: #1a5fb4; }
.article-list .meta { flex-shrink: 0; color: #999; font-size: 13px; white-space: nowrap; }
.article-list .tag-top {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.article-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.article-card h3 a { color: #333; }
.article-card .desc { color: #666; font-size: 14px; margin: 0 0 12px; }
.article-card .meta { color: #999; font-size: 13px; }

.empty-tip {
  text-align: center;
  padding: 48px 20px;
  color: #999;
  background: #fff;
  border-radius: 8px;
}

/* 分类筛选 */
.cate-filter { margin-bottom: 20px; }
.cate-filter a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 20px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
}
.cate-filter a:hover,
.cate-filter a.active {
  background: #1a5fb4;
  border-color: #1a5fb4;
  color: #fff;
}

/* 详情页 */
.article-detail {
  background: #fff;
  border-radius: 8px;
  padding: 32px 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.article-detail h1 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.35;
  color: #1a3a5c;
}
.article-detail .article-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.article-detail .article-body {
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
}
.article-detail .article-body img { display: block; margin: 16px auto; }
.back-link { margin-top: 28px; font-size: 14px; }

.pagination { margin-top: 24px; text-align: center; }
.pagination ul { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination li a,
.pagination li span {
  display: block;
  padding: 6px 12px;
  border: 1px solid #dde3ea;
  border-radius: 4px;
  background: #fff;
  color: #555;
  text-decoration: none;
  font-size: 14px;
}
.pagination li.active span { background: #1a5fb4; border-color: #1a5fb4; color: #fff; }
.pagination li.disabled span { color: #ccc; }

.site-footer {
  background: #1a3a5c;
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 24px 20px;
  font-size: 14px;
  margin-top: 40px;
}
.site-footer a { color: rgba(255,255,255,.9); }

@media (max-width: 768px) {
  .site-header .inner { flex-direction: column; padding: 12px 20px; gap: 12px; }
  .site-nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 32px 24px; }
  .article-detail { padding: 24px 20px; }
  .article-list li { flex-direction: column; align-items: flex-start; }
}
