* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #222;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f4f4f4;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.site-header-main {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 14px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  overflow-wrap: anywhere;
}

.site-logo.active {
  color: #d32020;
}

.site-logo img {
  display: block;
  max-width: 180px;
  max-height: 44px;
  object-fit: contain;
}

.site-search-form {
  display: flex;
  flex: 0 1 360px;
  min-width: 220px;
  gap: 8px;
  align-items: center;
}

.site-search-form input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
}

.site-search-form button {
  flex: 0 0 auto;
  min-width: 64px;
  height: 38px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: #d32020;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.banner-slot {
  margin: 16px 0;
}

.banner-slot img,
.banner-item img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.site-nav {
  position: relative;
  border-top: 1px solid #eee;
}

.site-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 16px;
}

.site-nav a {
  display: block;
  padding: 14px 18px;
  font-size: 15px;
  color: #333;
}

.site-nav a.active,
.site-nav a:hover {
  color: #fff;
  background: #d32020;
}

.page-wrap {
  max-width: 1120px;
  min-height: 560px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  background: #fff;
}

.ad-slot {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin-bottom: 16px;
  color: #888;
  border: 1px dashed #bbb;
  background: #fafafa;
}

.ad-item {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.ad-item img {
  display: block;
  max-width: 100%;
  max-height: 88px;
}

.empty-state {
  padding: 28px 16px;
  text-align: center;
  color: #777;
  background: #fafafa;
  border: 1px solid #eee;
}

.bottom-ad {
  margin-top: 22px;
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 22px;
  border-bottom: 2px solid #d32020;
}

.article-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.article-cover {
  width: 96px;
  height: 64px;
  object-fit: cover;
}

.article-cover-main,
.not-found-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin: 16px 0;
}

.article-summary {
  color: #555;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-grid figcaption {
  padding: 6px 0;
  color: #666;
  font-size: 13px;
}

.video-area video,
.video-area iframe {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 16px 0;
  background: #111;
  border: 0;
  aspect-ratio: 16 / 9;
}

.article-title {
  font-size: 17px;
  font-weight: 700;
}

.article-meta {
  color: #777;
  font-size: 13px;
  white-space: nowrap;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}

@media (max-width: 720px) {
  .site-header-main {
    display: block;
  }

  .site-logo {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .site-search-form {
    width: 100%;
    min-width: 0;
  }
}

.pagination a,
.pagination span {
  min-width: 34px;
  padding: 8px 11px;
  text-align: center;
  color: #333;
  border: 1px solid #ddd;
  background: #fff;
}

.pagination .current {
  color: #fff;
  border-color: #d32020;
  background: #d32020;
}

.site-footer {
  padding: 22px 16px;
  text-align: center;
  color: #777;
  border-top: 1px solid #ddd;
  background: #fff;
}
