body .xqd-category {
  --blue: #071f87;
  --blue-dark: #061663;
  --yellow: #f2b233;
  --yellow-dark: #d89512;
  --ink: #172b3a;
  --muted: #5d6b76;
  --line: #d8e1e8;
  --soft: #f3f7fa;
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.category .site-content > .ast-container,
body.category #content > .ast-container,
body.category .content-area,
body.category #primary,
body.category .site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body .xqd-category,
body .xqd-category * {
  box-sizing: border-box;
}

body .xqd-category a {
  color: inherit;
  text-decoration: none;
}

body .xqd-category img {
  display: block;
  max-width: 100%;
  height: auto;
}

body .xqd-category-container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

body .xqd-category-hero {
  padding: 30px 0 28px;
  background:
    linear-gradient(90deg, rgba(6, 22, 99, 0.98), rgba(6, 22, 99, 0.88)),
    #071f87;
  color: #fff;
}

body .xqd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

body .xqd-breadcrumb a:hover {
  color: var(--yellow);
}

body .xqd-label {
  display: inline-block;
  padding: 5px 11px;
  border-left: 3px solid var(--yellow);
  background: rgba(242, 178, 51, 0.16);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

body .xqd-category-hero h1 {
  max-width: 820px;
  margin: 12px 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

body .xqd-category-hero p,
body .xqd-category-desc {
  max-width: 850px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
}

body .xqd-category-desc p {
  margin: 0;
}

body .xqd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body .xqd-hero-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

body .xqd-category-body {
  padding: 24px 0 60px;
  background: var(--soft);
}

body .xqd-category-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: start;
}

body .xqd-category-sidebar,
body .xqd-latest-panel {
  display: grid;
  gap: 16px;
}

body .xqd-side-box,
body .xqd-toolbar,
body .xqd-post-row,
body .xqd-empty,
body .xqd-quote-card {
  border: 1px solid var(--line);
  background: #fff;
}

body .xqd-side-box h2 {
  margin: 0;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.35;
}

body .xqd-side-nav {
  display: grid;
}

body .xqd-side-nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #edf2f6;
  color: var(--ink);
  font-size: 14px;
}

body .xqd-side-nav a:last-child {
  border-bottom: 0;
}

body .xqd-side-nav a:hover,
body .xqd-side-nav a.is-active {
  background: #fff7e6;
  color: var(--blue);
}

body .xqd-side-nav b {
  min-width: 26px;
  padding: 2px 6px;
  background: #f1f5f8;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

body .xqd-side-nav a.is-active b {
  background: var(--yellow);
  color: var(--blue-dark);
}

body .xqd-side-nav-compact a {
  min-height: 40px;
}

body .xqd-side-posts,
body .xqd-latest-list {
  display: grid;
}

body .xqd-side-posts a,
body .xqd-latest-list a {
  display: grid;
  gap: 5px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf2f6;
}

body .xqd-side-posts a:last-child,
body .xqd-latest-list a:last-child {
  border-bottom: 0;
}

body .xqd-side-posts strong,
body .xqd-latest-list strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

body .xqd-side-posts span,
body .xqd-latest-list span {
  color: var(--muted);
  font-size: 12px;
}

body .xqd-side-posts a:hover strong,
body .xqd-latest-list a:hover strong {
  color: var(--blue);
}

body .xqd-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}

body .xqd-chip-list a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #f7fafc;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

body .xqd-chip-list a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--blue-dark);
}

body .xqd-category-content {
  display: grid;
  gap: 14px;
}

body .xqd-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}

body .xqd-toolbar span {
  display: block;
  color: var(--yellow-dark);
  font-size: 13px;
  font-weight: 900;
}

body .xqd-toolbar strong {
  display: block;
  color: var(--blue-dark);
  font-size: 18px;
}

body .xqd-search {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 76px;
  gap: 8px;
}

body .xqd-search input,
body .xqd-search button {
  min-height: 36px;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
}

body .xqd-search input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
}

body .xqd-search button {
  border: 0;
  background: var(--yellow);
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 900;
}

body .xqd-post-list {
  display: grid;
  gap: 12px;
}

body .xqd-post-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
}

body .xqd-post-row-no-thumb {
  grid-template-columns: 64px minmax(0, 1fr);
}

body .xqd-post-date {
  display: grid;
  min-height: 62px;
  align-content: center;
  justify-items: center;
  border-left: 3px solid var(--yellow);
  background: #fff7e6;
  color: var(--blue-dark);
}

body .xqd-post-date b {
  font-size: 25px;
  line-height: 1;
}

body .xqd-post-date span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

body .xqd-post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

body .xqd-post-cats a {
  padding: 3px 8px;
  background: #f1f5f8;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

body .xqd-post-main h2 {
  margin: 0 0 6px;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

body .xqd-post-main h2 a:hover {
  color: var(--yellow-dark);
}

body .xqd-post-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

body .xqd-post-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

body .xqd-post-foot a {
  color: var(--blue);
  font-weight: 900;
}

body .xqd-post-thumb {
  display: block;
  min-height: 112px;
  overflow: hidden;
  background: var(--line);
}

body .xqd-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body .xqd-post-row:hover .xqd-post-thumb img {
  transform: scale(1.04);
}

body .xqd-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 18px 0 0;
}

body .xqd-pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

body .xqd-pagination .page-numbers.current,
body .xqd-pagination .page-numbers:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--blue-dark);
}

body .xqd-quote-card {
  padding: 20px 18px;
  border-top: 4px solid var(--yellow);
}

body .xqd-quote-card span {
  color: var(--yellow-dark);
  font-size: 13px;
  font-weight: 900;
}

body .xqd-quote-card strong {
  display: block;
  margin: 8px 0;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.35;
}

body .xqd-quote-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body .xqd-quote-card a,
body .xqd-empty a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 900;
}

body .xqd-empty {
  padding: 36px;
}

body .xqd-empty h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
}

body .xqd-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1120px) {
  body .xqd-category-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  body .xqd-latest-panel {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  body.category {
    overflow-x: hidden !important;
  }

  body .xqd-category {
    left: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }

  body .xqd-category-container {
    width: calc(100% - 28px) !important;
  }

  body .xqd-category-grid,
  body .xqd-latest-panel {
    grid-template-columns: 1fr;
  }

  body .xqd-category-sidebar,
  body .xqd-latest-panel {
    display: none !important;
  }

  body .xqd-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  body .xqd-search {
    grid-template-columns: 1fr 76px;
  }

  body .xqd-post-row,
  body .xqd-post-row-no-thumb {
    grid-template-columns: 1fr;
  }

  body .xqd-post-date {
    min-height: auto;
    justify-items: start;
    padding: 10px 14px;
  }

  body .xqd-post-date b {
    font-size: 24px;
  }

  body .xqd-post-thumb {
    min-height: 190px;
  }
}

@media (max-width: 520px) {
  body .xqd-category-hero {
    padding: 28px 0 24px;
  }

  body .xqd-category-hero h1 {
    font-size: 30px;
  }

  body .xqd-category-hero p,
  body .xqd-category-desc {
    font-size: 15px;
  }

  body .xqd-category-body {
    padding: 24px 0 48px;
  }

  body .xqd-post-row {
    padding: 14px;
  }

  body .xqd-post-main h2 {
    font-size: 20px;
  }
}
