html { background: #f0f0f2; }
body { max-width: none !important; margin: 0 !important; background: #f0f0f2; }

.header {
  padding-left: max(24px, calc((100% - 1200px) / 2)) !important;
  padding-right: max(24px, calc((100% - 1200px) / 2)) !important;
  z-index: 200;
}

.header-nav {
  align-self: stretch;
  align-items: stretch;
  gap: 8px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

.header-nav a::after {
  bottom: 0;
}

.content-layout,
.detail-layout {
  max-width: 1200px;
  width: min(1200px, calc(100% - 48px));
  margin: 20px auto 48px;
  padding: 8px 0;
  gap: 0;
  background: #fff;
  border: 1px solid #E6E8EE;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  align-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
}

.main-area,
.detail-main {
  flex: 1;
  min-width: 0;
  max-width: none !important;
  padding: 4px 4px 12px;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid #EEF1F6;
  padding: 8px 4px 12px;
  box-sizing: border-box;
}

.sidebar-section {
  border: none;
  box-shadow: none;
  background: transparent;
  margin: 0;
}

.content-layout .qa-card,
.content-layout .news-card,
.content-layout .data-card {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #F2F3F7;
  margin: 0;
  box-shadow: none;
}

.content-layout .qa-card:hover,
.content-layout .news-card:hover,
.content-layout .data-card:hover {
  transform: none;
  background: #F8F9FC;
  box-shadow: none;
}

.page-header,
.filter-bar {
  padding-left: max(24px, calc((100% - 1200px) / 2)) !important;
  padding-right: max(24px, calc((100% - 1200px) / 2)) !important;
}

.filter-bar {
  background: #fff;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8E8ED;
  display: flex;
  gap: 16px;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
}

.list-filter-result {
  padding: 16px 20px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #2663DE;
}

.cover-art {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  background: #101827;
}

.cover-art img,
.cover-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a.news-card,
a.data-card {
  display: flex !important;
  gap: 16px;
  align-items: flex-start;
}

.news-thumb,
.data-thumb {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.data-body {
  flex: 1;
  min-width: 0;
}

.data-body .data-title {
  display: block;
  margin-bottom: 8px;
  line-height: 1.5;
}

.data-body .data-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  margin-bottom: 8px;
}

.qa-thumb-lg.cover-art,
.article-cover {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  margin: 0 0 20px;
}

.header-account {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.header-logout {
  margin: 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

a.filter-tag,
.filter-tag {
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  background: #F5F5F7;
  color: #6B7280;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

a.filter-tag.active,
.filter-tag.active {
  background: #2663DE;
  color: #fff;
}
