* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo { height: 40px; width: auto; }
.site-title { font-size: 18px; font-weight: 600; flex: 1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.site-nav a { color: #374151; }
.site-nav a:hover { color: #2563eb; }
.site-footer {
  margin-top: 32px;
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.site-footer a { margin: 0 8px; color: #6b7280; }
.site-footer a:hover { color: #2563eb; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: transform .15s;
}
.card-item:hover { transform: translateY(-2px); }
.card-cover { height: 160px; object-fit: cover; width: 100%; background: #e5e7eb; }
.card-body { padding: 14px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card-summary { font-size: 13px; color: #6b7280; }
.page-title { font-size: 22px; font-weight: 700; margin: 20px 0 16px; }
.empty-tip { text-align: center; color: #9ca3af; padding: 40px 0; }
.loading { text-align: center; color: #9ca3af; padding: 24px; }
/* 详情页通用 */
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9ca3af;
  margin: 16px 0 20px;
}
.detail-breadcrumb a {
  color: #6b7280;
  transition: color .15s;
}
.detail-breadcrumb a:hover { color: #2563eb; }
.detail-breadcrumb .sep { color: #d1d5db; user-select: none; }
.detail-breadcrumb .current {
  color: #374151;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-article {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
  overflow: hidden;
  margin-bottom: 32px;
}
.detail-header {
  padding: 28px 28px 0;
}
.detail-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 10px;
}
.detail-meta {
  font-size: 14px;
  color: #9ca3af;
  padding-bottom: 4px;
}
.detail-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-meta-date::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d1d5db;
}
.detail-tag {
  display: inline-block;
  font-size: 12px;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.detail-cover-wrap {
  padding: 20px 28px 0;
}
.detail-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.detail-content {
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
}
.detail-content p { margin-bottom: 12px; }
.detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}
.detail-actions {
  padding: 0 28px 28px;
  border-top: 1px solid #f3f4f6;
  padding-top: 20px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 14px;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.btn-back:hover {
  border-color: #b45309;
  color: #b45309;
  box-shadow: 0 2px 8px rgba(180, 83, 9, .1);
}
.btn-back-icon {
  font-size: 16px;
  line-height: 1;
}

.banner-section { position: relative; overflow: hidden; }
.banner-slider {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}
.banner-slider .banner-item { flex: 0 0 100%; min-width: 100%; }
.banner-slider .banner-item img { width: 100%; max-height: 400px; object-fit: cover; display: block; }
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.banner-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.banner-dots span.active { background: #fff; }
