body {
  background: #f5f6f8;
  color: #333;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  color: #0a58ca;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.logo span {
  color: #0d6efd;
}

.search-box input {
  border-radius: 20px 0 0 20px;
}

.search-box button {
  border-radius: 0 20px 20px 0;
}

.top-nav {
  background: #212529;
}

.top-nav .nav-link {
  color: #f8f9fa !important;
  padding: 0.85rem 1rem;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.top-nav .nav-link:hover,
.top-nav .nav-link.active {
  background: #0d6efd;
  color: #fff !important;
}

.top-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.65);
}

.top-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

.top-nav .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(200%);
}

.content-main {
  margin-top: 20px;
}

.hero-card img {
  height: 320px;
  object-fit: cover;
}

.panel {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.panel-title {
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid #f1f3f5;
  background: #fafafa;
}

.panel-body {
  padding: 16px;
}

.article-item {
  border-bottom: 1px dashed #dee2e6;
  padding: 16px 0;
}

.article-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}

.article-item h5 {
  margin-bottom: 8px;
  line-height: 1.45;
}

.article-item h5 a,
.side-list a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.article-item h5 a {
  -webkit-line-clamp: 2;
}

.article-item p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.side-list a {
  -webkit-line-clamp: 2;
  line-height: 1.5;
}

.meta {
  color: #6c757d;
  font-size: 0.875rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.side-list li {
  margin-bottom: 10px;
}

.side-list li:last-child {
  margin-bottom: 0;
}

.tags a {
  display: inline-block;
  background: #f1f3f5;
  color: #495057;
  border-radius: 16px;
  padding: 4px 10px;
  margin: 0 8px 8px 0;
  font-size: 0.875rem;
}

.tags a:hover {
  background: #0d6efd;
  color: #fff;
}

.article-content p {
  line-height: 1.9;
  margin-bottom: 1rem;
}

.site-footer {
  background: #212529;
  color: #adb5bd;
  margin-top: 24px;
}

.site-footer p {
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .top-nav .navbar-collapse {
    background: #212529;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 8px;
  }

  .hero-card img {
    height: 220px;
  }

  .search-box {
    margin-top: 10px;
  }

  .meta {
    white-space: normal;
  }
}
