/* Editorial category aggregation pages */
.editorial-category-page {
  --ec-ink: #202124;
  --ec-muted: #5f6368;
  --ec-green: #01875f;
  --ec-line: #e8eaed;
  --ec-surface: #f8f9fa;
  background: #fff;
  color: var(--ec-ink);
  padding: 0 0 32px;
}

.editorial-category-wrap {
  width: 1200px;
  margin: 0 auto;
}

.editorial-category-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--ec-muted);
  font-size: 13px;
}

.editorial-category-breadcrumb a {
  color: inherit;
}

.editorial-category-breadcrumb a:hover,
.editorial-category-breadcrumb a:focus-visible {
  color: var(--ec-green);
}

.editorial-category-breadcrumb i {
  color: #9aa0a6;
  font-style: normal;
}

.editorial-category-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 0 20px;
}

.editorial-category-intro > div {
  min-width: 0;
  max-width: 850px;
}

.editorial-category-intro span {
  display: block;
  margin-bottom: 6px;
  color: var(--ec-green);
  font-size: 13px;
  font-weight: 600;
}

.editorial-category-intro h1 {
  margin: 0;
  color: var(--ec-ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
}

.editorial-category-intro p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--ec-muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-category-intro > strong {
  flex: none;
  padding-bottom: 3px;
  color: var(--ec-muted);
  font-size: 14px;
  font-weight: 500;
}

.editorial-category-related {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ec-surface);
}

.editorial-category-related b {
  flex: none;
  margin-right: 8px;
  font-size: 15px;
}

.editorial-category-related a {
  flex: none;
  padding: 7px 11px;
  border-radius: 18px;
  color: var(--ec-muted);
  font-size: 13px;
  line-height: 1;
}

.editorial-category-related a:hover,
.editorial-category-related a:focus-visible,
.editorial-category-related a.is-active {
  background: #e6f4ef;
  color: var(--ec-green);
}

.editorial-category-related.topic-category-groups {
  display: block;
  overflow: visible;
}

.topic-category-groups > header,
.topic-category-group > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.topic-category-group {
  padding-top: 8px;
}

.topic-category-group .topic-category-root {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--ec-ink);
  font-weight: 600;
}

.topic-category-group > div > a {
  display: inline-flex;
  white-space: nowrap;
}

.editorial-category-featured {
  padding: 24px 0 20px;
}

.editorial-category-section-head,
.editorial-category-toolbar,
.editorial-category-sidebar section > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.editorial-category-section-head {
  margin-bottom: 12px;
}

.editorial-category-section-head h2,
.editorial-category-toolbar h2,
.editorial-category-sidebar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.editorial-category-section-head span,
.editorial-category-toolbar span {
  color: var(--ec-muted);
  font-size: 13px;
}

.editorial-category-featured > div:last-child {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.editorial-category-featured > div:last-child > a {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--ec-surface);
}

.editorial-category-featured img {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.editorial-category-featured span {
  min-width: 0;
}

.editorial-category-featured strong,
.editorial-category-featured small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-category-featured strong {
  color: var(--ec-ink);
  font-size: 14px;
  font-weight: 500;
}

.editorial-category-featured small {
  margin-top: 5px;
  color: var(--ec-muted);
  font-size: 12px;
}

.editorial-category-featured a:hover strong,
.editorial-category-featured a:focus-visible strong {
  color: var(--ec-green);
}

.editorial-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 840px) 328px;
  align-items: start;
  gap: 32px;
  padding-top: 8px;
}

.editorial-category-toolbar {
  min-height: 50px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ec-line);
}

.editorial-category-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.editorial-category-toolbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.editorial-category-toolbar nav a {
  padding: 8px 13px;
  border-radius: 18px;
  color: var(--ec-muted);
  font-size: 13px;
}

.editorial-category-toolbar nav a:hover,
.editorial-category-toolbar nav a:focus-visible,
.editorial-category-toolbar nav a.is-active {
  background: #e6f4ef;
  color: var(--ec-green);
}

.editorial-category-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  min-height: 132px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ec-line);
}

.editorial-category-cover {
  align-self: start;
}

.editorial-category-cover img {
  display: block;
  width: 160px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.editorial-category-item > div {
  min-width: 0;
}

.editorial-category-type {
  display: block;
  margin-bottom: 4px;
  color: var(--ec-green);
  font-size: 12px;
}

.editorial-category-item h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.editorial-category-item h2 a {
  color: var(--ec-ink);
}

.editorial-category-item h2 a:hover,
.editorial-category-item h2 a:focus-visible {
  color: var(--ec-green);
}

.editorial-category-item p {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 9px;
  color: var(--ec-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-category-item footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ec-muted);
  font-size: 12px;
}

.editorial-category-item footer span,
.editorial-category-item footer time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-category-item footer a {
  margin-left: auto;
  color: var(--ec-green);
  font-weight: 500;
  white-space: nowrap;
}

.editorial-category-sidebar {
  display: grid;
  gap: 16px;
}

.editorial-category-sidebar section {
  padding: 16px;
  border-radius: 12px;
  background: var(--ec-surface);
}

.editorial-category-sidebar section > header {
  margin-bottom: 10px;
}

.editorial-category-sidebar h2 {
  font-size: 17px;
}

.editorial-category-sidebar header a {
  color: var(--ec-green);
  font-size: 12px;
}

.editorial-category-side-grid > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}

.editorial-category-side-grid > div > a {
  min-width: 0;
  text-align: center;
}

.editorial-category-side-grid img {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 6px;
  border-radius: 10px;
  object-fit: cover;
}

.editorial-category-side-grid strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ec-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-category-side-grid a:hover strong,
.editorial-category-side-grid a:focus-visible strong {
  color: var(--ec-green);
}

.editorial-category-tag-cloud nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.editorial-category-tag-cloud nav a {
  padding: 7px 10px;
  border-radius: 16px;
  background: #fff;
  color: var(--ec-muted);
  font-size: 12px;
}

.editorial-category-tag-cloud nav a:nth-child(3n + 1) {
  color: var(--ec-green);
  font-weight: 500;
}

.editorial-category-tag-cloud nav a:hover,
.editorial-category-tag-cloud nav a:focus-visible {
  background: #e6f4ef;
  color: var(--ec-green);
}

.editorial-category-more nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.editorial-category-more nav a {
  overflow: hidden;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--ec-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-category-more nav a:hover,
.editorial-category-more nav a:focus-visible,
.editorial-category-more nav a.is-active {
  background: #e6f4ef;
  color: var(--ec-green);
}

.editorial-category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 0 8px;
}

.editorial-category-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 17px;
  color: var(--ec-muted);
  font-size: 13px;
}

.editorial-category-pagination a:hover,
.editorial-category-pagination a:focus-visible,
.editorial-category-pagination a.is-active {
  background: #e6f4ef;
  color: var(--ec-green);
}

.editorial-category-empty {
  padding: 72px 24px;
  color: var(--ec-muted);
  text-align: center;
}

.editorial-category-empty strong {
  display: block;
  color: var(--ec-ink);
  font-size: 18px;
}

.editorial-category-empty p {
  margin: 8px 0 0;
  font-size: 13px;
}

.editorial-category-page a,
.editorial-category-page button {
  transform: none !important;
}

@media (max-width: 1240px) {
  .editorial-category-wrap {
    width: auto;
    margin: 0 24px;
  }

  .editorial-category-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  .editorial-category-related {
    overflow-x: auto;
  }
}

@media (max-width: 900px) {
  .editorial-category-featured > div:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editorial-category-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .editorial-category-wrap {
    margin: 0 16px;
  }

  .editorial-category-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .editorial-category-featured > div:last-child {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-category-item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .editorial-category-cover img {
    width: 112px;
    height: 76px;
  }

  .editorial-category-item footer span:first-child,
  .editorial-category-item footer span:nth-child(3) {
    display: none;
  }
}

/* Editorial detail and secondary pages */
:root {
  --secondary-green: #01875f;
  --secondary-green-dark: #006c4c;
  --secondary-green-soft: #e8f3ef;
  --secondary-ink: #202124;
  --secondary-text: #3c4043;
  --secondary-muted: #5f6368;
  --secondary-line: #dadce0;
  --secondary-surface: #f8f9fa;
}

/* Game-specific guide/news centres continue the compact channel grammar. */
.remaining-editorial.is-game-center {
  padding: 8px 0 40px;
  background: #fff;
}
.remaining-editorial.is-game-center .rp-breadcrumb { height: 36px; margin: 0 0 10px; }
.remaining-editorial.is-game-center .rp-game-center-head {
  margin: 0 0 18px !important;
  padding: 10px 0 18px !important;
  border: 0 !important;
  background: #fff !important;
}
.remaining-editorial.is-game-center .rp-game-center-head h1 {
  margin: 0 0 8px;
  color: var(--secondary-ink) !important;
  font-size: 28px !important;
  line-height: 36px !important;
  font-weight: 500 !important;
}
.remaining-editorial.is-game-center .rp-game-center-head p {
  max-width: 760px;
  margin: 0;
  color: var(--secondary-muted) !important;
  font-size: 14px;
  line-height: 22px;
}
.remaining-editorial.is-game-center .rp-editorial-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
}
.remaining-editorial.is-game-center .rp-editorial-list {
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
}
.remaining-editorial.is-game-center .rp-editorial-list > .rp-section-head {
  min-height: 52px !important;
  border: 0 !important;
}
.remaining-editorial.is-game-center .rp-editorial-list > .rp-section-head h2 {
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
}
.remaining-editorial.is-game-center .rp-editorial-list > .rp-section-head + div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 0 22px;
}
.remaining-editorial.is-game-center .rp-article-row {
  min-width: 0;
  min-height: 124px;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px;
  background: var(--secondary-surface);
}
.remaining-editorial.is-game-center .rp-article-row > a,
.remaining-editorial.is-game-center .rp-article-row > a img { width: 150px; height: 100%; min-height: 124px; }
.remaining-editorial.is-game-center .rp-article-row > a img { border-radius: 0; object-fit: cover; }
.remaining-editorial.is-game-center .rp-article-row > div { min-width: 0; padding: 14px 14px 12px 0; }
.remaining-editorial.is-game-center .rp-article-row h2 {
  margin: 0 0 7px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--secondary-ink) !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 500;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.remaining-editorial.is-game-center .rp-article-row p {
  height: 40px;
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--secondary-muted) !important;
  font-size: 12px !important;
  line-height: 20px !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.remaining-editorial.is-game-center .rp-article-row small { color: var(--secondary-muted) !important; font-size: 11px; }
.remaining-editorial.is-game-center .rp-editorial-layout > aside { display: block; }
.remaining-editorial.is-game-center .rp-game-center-card {
  padding: 22px 18px 0;
  border: 0 !important;
  border-radius: 12px;
  background: var(--secondary-surface) !important;
}
.remaining-editorial.is-game-center .rp-game-center-card > img { width: 80px; height: 80px; border-radius: 16px; }
.remaining-editorial.is-game-center .rp-game-center-card h2 { color: var(--secondary-ink) !important; font-size: 18px !important; font-weight: 500; }
.remaining-editorial.is-game-center .rp-game-center-card p { color: var(--secondary-muted) !important; font-size: 12px; }
.remaining-editorial.is-game-center .rp-center-tabs { border: 0; }
.remaining-editorial.is-game-center .rp-center-tabs a { border-radius: 8px 8px 0 0; }
.remaining-editorial.is-game-center .rp-center-tabs a:hover,
.remaining-editorial.is-game-center .rp-center-tabs a.is-active { color: var(--secondary-green-dark) !important; background: var(--secondary-green-soft); }

/* Guide/news article detail uses the same left-aligned, continuous canvas. */
.article-detail-page { padding: 6px 0 40px; background: #fff; }
.article-detail-page .article-breadcrumb { height: 38px; }
.article-detail-page .article-title-panel {
  margin: 0 auto !important;
  box-sizing: border-box;
  padding: 14px 0 24px !important;
  border: 0 !important;
  background: #fff !important;
  text-align: left !important;
}
.article-detail-page .article-title-panel > p { margin-bottom: 9px; }
.article-detail-page .article-title-panel h1 { max-width: 920px; font-size: 30px !important; line-height: 40px !important; }
.article-detail-page .article-title-panel > div {
  margin-top: 13px;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 8px 24px !important;
}
.article-detail-page .article-detail-layout { grid-template-columns: minmax(0, 840px) 328px; gap: 32px; }
.article-detail-page .article-body { padding: 0 !important; border: 0 !important; background: #fff !important; }
.article-detail-page .article-source-note { margin-bottom: 22px; border: 0 !important; border-radius: 10px; }
.article-detail-page .article-content h2,
.article-detail-page .article-content h3 { padding-left: 0 !important; }
.article-detail-page .article-content h2::before,
.article-detail-page .article-content h3::before { display: none; }
.article-detail-page .article-version-link {
  margin-top: 26px;
  padding: 14px 16px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--secondary-surface) !important;
}
.article-detail-page .article-actions { gap: 12px; }
.article-detail-page .article-actions button { border-width: 1px; }
.article-detail-page .article-prev-next {
  gap: 10px;
  border: 0 !important;
  background: #fff !important;
}
.article-detail-page .article-prev-next a {
  border: 0 !important;
  border-radius: 10px;
  background: var(--secondary-surface);
}
.article-detail-page .article-detail-sidebar > section {
  margin-bottom: 16px;
  padding: 0 18px 16px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--secondary-surface) !important;
}
.article-detail-page .article-detail-sidebar h2,
.article-detail-page .article-recommend h2 { height: 54px; border: 0 !important; font-size: 18px; font-weight: 500; }
.article-detail-page .article-hot-list > a { border: 0 !important; }
.article-detail-page .article-recommend {
  margin-top: 32px;
  padding: 0 0 18px;
  border: 0 !important;
  background: #fff !important;
}
.article-detail-page .article-recommend > div { gap: 16px; padding-top: 8px; }
.article-detail-page .article-recommend img { height: 132px; border-radius: 10px; }
.article-detail-page .article-recommend strong { font-size: 14px; line-height: 21px; }

/* 文章正文后的操作区：统一为站点绿色轻量组件，避免大面积灰底和蓝色图标。 */
.article-detail-page .article-version-link {
  min-height: 58px !important;
  margin-top: 24px !important;
  padding: 10px 14px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  border-radius: 10px !important;
  background: var(--secondary-surface, #f8f9fa) !important;
}
.article-detail-page .article-version-link > img {
  width: 24px !important;
  height: 24px !important;
  filter: brightness(0) saturate(100%) invert(31%) sepia(93%) saturate(837%) hue-rotate(126deg) brightness(91%) contrast(99%) !important;
  opacity: .88 !important;
}
.article-detail-page .article-version-link strong {
  color: var(--secondary-ink, #202124) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
}
.article-detail-page .article-version-link small {
  margin-top: 2px !important;
  color: var(--secondary-muted, #5f6368) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}
.article-detail-page .article-version-link a {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--secondary-green, #01875f) !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
}
.article-detail-page .article-version-link a:hover,
.article-detail-page .article-version-link a:focus-visible {
  color: var(--secondary-green-dark, #006c4c) !important;
  background: transparent !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.article-detail-page .article-actions {
  margin: 14px 0 22px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.article-detail-page .article-actions button {
  width: auto !important;
  height: 36px !important;
  min-height: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 18px !important;
  color: var(--secondary-green, #01875f) !important;
  background: var(--secondary-green-soft, #e6f4ef) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  transform: none !important;
}
.article-detail-page .article-actions button img {
  width: 16px !important;
  height: 16px !important;
  filter: brightness(0) saturate(100%) invert(31%) sepia(93%) saturate(837%) hue-rotate(126deg) brightness(91%) contrast(99%) !important;
}
.article-detail-page .article-actions button:hover,
.article-detail-page .article-actions button:focus-visible,
.article-detail-page .article-actions button.is-active {
  color: #fff !important;
  background: var(--secondary-green, #01875f) !important;
}
.article-detail-page .article-actions button:hover img,
.article-detail-page .article-actions button:focus-visible img,
.article-detail-page .article-actions button.is-active img {
  filter: brightness(0) invert(1) !important;
}
.article-detail-page .article-prev-next {
  gap: 12px !important;
  margin-top: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  border: 0 !important;
  background: transparent !important;
}
.article-detail-page .article-prev-next a {
  min-height: 58px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--secondary-surface, #f8f9fa) !important;
}
.article-detail-page .article-prev-next span {
  color: var(--secondary-muted, #5f6368) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}
.article-detail-page .article-prev-next strong {
  margin-top: 2px !important;
  color: var(--secondary-ink, #202124) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
}
.article-detail-page .article-prev-next a:hover strong,
.article-detail-page .article-prev-next a:focus-visible strong {
  color: var(--secondary-green, #01875f) !important;
}

/* Topic detail repeats the topic channel's image-led editorial system. */
.remaining-topic-detail { padding: 8px 0 40px; background: #fff !important; }
.remaining-topic-detail .rp-breadcrumb { height: 36px; margin: 0 0 10px; }
.remaining-topic-detail .rp-topic-hero {
  height: 316px;
  min-height: 316px;
  margin-bottom: 28px;
  border: 0 !important;
  border-radius: 12px;
}
.remaining-topic-detail .rp-topic-hero > img { height: 316px; }
.remaining-topic-detail .rp-topic-hero::after {
  /* The copy spans the image on small screens, including its brightest areas. */
  background: rgba(32, 33, 36, .72);
}
.remaining-topic-detail .rp-topic-hero-copy {
  top: auto;
  right: 36px;
  bottom: 28px;
  left: 36px;
  width: min(680px, calc(100% - 72px));
  max-width: none;
  transform: none;
}
.remaining-topic-detail .rp-topic-hero-copy h1 { margin: 10px 0 8px; font-size: 30px !important; line-height: 40px !important; }
.remaining-topic-detail .rp-topic-hero-copy p {
  max-width: 680px;
  margin: 0 0 12px;
  display: -webkit-box;
  overflow: hidden;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.remaining-topic-detail .rp-topic-stats { gap: 20px; font-size: 12px; }
.remaining-topic-detail .rp-topic-layout { grid-template-columns: minmax(0, 1fr) 284px; gap: 28px; }
.remaining-topic-detail .rp-topic-items { padding: 0 !important; border: 0 !important; background: #fff !important; }
.remaining-topic-detail .rp-topic-items > .rp-section-head { min-height: 52px; border: 0 !important; }
.remaining-topic-detail .rp-topic-grid { gap: 16px; }
.remaining-topic-detail .rp-topic-item {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  border: 0 !important;
  border-radius: 12px;
  background: var(--secondary-surface);
}
.remaining-topic-detail .rp-topic-item > img { height: 150px; }
.remaining-topic-detail .rp-topic-item > div { min-height: 200px; padding: 15px; display: flex; flex: 1; flex-direction: column; }
.remaining-topic-detail .rp-topic-item h3 { margin: 8px 0 7px; font-size: 17px; line-height: 23px; font-weight: 500; }
.remaining-topic-detail .rp-topic-item p {
  height: 60px;
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--secondary-muted) !important;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.remaining-topic-detail .rp-topic-item small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.remaining-topic-detail .rp-topic-item .rp-button { min-height: 34px; margin-top: auto; padding: 0 14px; align-self: flex-start; }
.remaining-topic-detail .rp-topic-side {
  padding: 0 18px 16px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--secondary-surface) !important;
}
.remaining-topic-detail .rp-topic-side .rp-section-head { min-height: 52px; border: 0 !important; }
.remaining-topic-detail .topic-related-content { margin-top: 18px; }
.topic-related-content ul { margin: 0; padding: 0; list-style: none; }
.topic-related-content li { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 8px; padding: 8px 0; line-height: 1.6; }
.topic-related-content li span { color: #5f6368; }
.topic-related-content li a { color: #202124; overflow-wrap: anywhere; }
.topic-related-content li a:hover { color: #01875f; }
.remaining-topic-detail .rp-topic-side.topic-related-content { display: block; }
.remaining-topic-detail .rp-topic-side div { border: 0 !important; }

.remaining-editorial.is-game-center a:hover,
.article-detail-page a:hover,
.remaining-topic-detail a:hover,
.remaining-editorial.is-game-center a:hover img,
.article-detail-page a:hover img,
.remaining-topic-detail a:hover img { transform: none !important; }

/* 2026-08-27 editorial responsive QA: article/category/topic detail templates follow the same compact mobile grammar. */
@media (max-width: 1100px) {
  .editorial-category-page,
  .article-detail-page,
  .remaining-editorial,
  .remaining-topic-detail {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .article-detail-page .site-container,
  .remaining-editorial .site-container,
  .remaining-topic-detail .site-container {
    width: calc(100% - 32px) !important;
    max-width: 1200px !important;
  }

  .article-detail-page .article-detail-layout,
  .remaining-editorial.is-game-center .rp-editorial-layout,
  .remaining-topic-detail .rp-topic-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .article-detail-page .article-detail-layout,
  .remaining-editorial.is-game-center .rp-editorial-layout,
  .remaining-topic-detail .rp-topic-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .remaining-editorial.is-game-center .rp-editorial-layout > aside,
  .article-detail-page .article-detail-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .remaining-topic-detail .rp-topic-side {
    display: none;
  }
}

@media (max-width: 720px) {
  .article-detail-page .site-container,
  .remaining-editorial .site-container,
  .remaining-topic-detail .site-container {
    width: calc(100% - 24px) !important;
  }

  .article-detail-page .article-breadcrumb,
  .remaining-editorial.is-game-center .rp-breadcrumb,
  .remaining-topic-detail .rp-breadcrumb {
    height: auto !important;
    min-height: 30px;
    flex-wrap: wrap;
    line-height: 18px;
  }

  .article-detail-page .article-title-panel h1,
  .remaining-editorial.is-game-center .rp-game-center-head h1,
  .remaining-topic-detail .rp-topic-hero-copy h1 {
    font-size: 24px !important;
    line-height: 32px !important;
  }

  .article-detail-page .article-title-panel > div,
  .remaining-topic-detail .rp-topic-stats {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .remaining-editorial.is-game-center .rp-editorial-list > .rp-section-head + div,
  .remaining-topic-detail .rp-topic-grid,
  .article-detail-page .article-recommend > div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .remaining-editorial.is-game-center .rp-article-row {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 100px;
  }

  .remaining-editorial.is-game-center .rp-article-row > a,
  .remaining-editorial.is-game-center .rp-article-row > a img {
    width: 112px;
    min-height: 100px;
  }

  .remaining-editorial.is-game-center .rp-article-row > div {
    padding: 12px 12px 10px 0;
  }

  .remaining-topic-detail .rp-topic-hero {
    height: 280px;
    min-height: 280px;
  }

  .remaining-topic-detail .rp-topic-hero > img {
    height: 280px;
  }

  .remaining-topic-detail .rp-topic-hero-copy {
    right: 22px;
    bottom: 24px;
    left: 22px;
    width: auto;
  }

  .remaining-topic-detail .rp-topic-item {
    min-height: 0;
  }

  .remaining-topic-detail .rp-topic-item > div {
    min-height: 0;
  }

  .article-detail-page .article-detail-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-detail-page .article-content img,
  .article-detail-page .article-content table {
    max-width: 100%;
  }

  .article-detail-page .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .remaining-editorial.is-game-center .rp-article-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .remaining-editorial.is-game-center .rp-article-row > a,
  .remaining-editorial.is-game-center .rp-article-row > a img {
    width: 96px;
  }

  .remaining-editorial.is-game-center .rp-article-row p {
    display: none;
  }

  .article-detail-page .article-title-panel {
    padding-bottom: 18px !important;
  }
}

/* 2026-08-27 article detail close-out: related content and comments follow channel typography. */
.article-detail-page .article-recommend {
  margin-top: 28px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.article-detail-page .article-recommend h2 {
  height: 42px !important;
  margin: 0 0 12px !important;
  border: 0 !important;
  color: var(--secondary-ink, #202124) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 28px !important;
}
.article-detail-page .article-recommend > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px !important;
  padding-top: 0 !important;
}
.article-detail-page .article-recommend > div a {
  min-width: 0;
  border-radius: 10px;
  outline-offset: 3px;
}
.article-detail-page .article-recommend img {
  width: 100%;
  height: 118px !important;
  border-radius: 10px !important;
  object-fit: cover;
}
.article-detail-page .article-recommend strong {
  height: 42px !important;
  margin-top: 10px !important;
  color: var(--secondary-ink, #202124) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 21px !important;
}
.article-detail-page .article-recommend small {
  margin-top: 8px !important;
  color: var(--secondary-muted, #5f6368) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}
.article-detail-page .xidown-comment-panel {
  margin: 26px 0 28px !important;
  padding: 22px 24px 24px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--secondary-surface, #f8f9fa) !important;
}

.article-detail-page .article-comment-container {
  max-width: 1200px;
}

.article-detail-page .article-comment-container .xidown-comment-panel {
  width: 840px;
  max-width: 100%;
}

.remaining-topic-detail .xidown-comment-panel {
  max-width: 860px;
  margin: 24px 0 26px !important;
  padding: 20px 22px 22px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--secondary-surface, #f8f9fa) !important;
}

.remaining-topic-detail .xidown-comment-heading {
  margin-bottom: 14px !important;
}

.remaining-topic-detail .topic-comment-container .xidown-comment-panel {
  min-width: 0;
  max-width: none;
}

.remaining-topic-detail .xidown-comment-heading h2 {
  color: var(--secondary-ink, #202124) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 28px !important;
}

.remaining-topic-detail .xidown-comment-heading span,
.remaining-topic-detail .xidown-comment-form label,
.remaining-topic-detail .xidown-star-field legend {
  color: var(--secondary-muted, #5f6368) !important;
  font-size: 13px !important;
  line-height: 20px !important;
}

.remaining-topic-detail .xidown-comment-fields {
  gap: 14px !important;
}

.remaining-topic-detail .xidown-comment-form input,
.remaining-topic-detail .xidown-comment-form textarea {
  border: 1px solid var(--secondary-line, #dadce0) !important;
  border-radius: 10px !important;
  color: var(--secondary-ink, #202124) !important;
  background: #fff !important;
  font-size: 14px !important;
}

.remaining-topic-detail .xidown-comment-form input {
  height: 40px !important;
}

.remaining-topic-detail .xidown-comment-form textarea {
  min-height: 104px !important;
}

.remaining-topic-detail .xidown-comment-form input:focus,
.remaining-topic-detail .xidown-comment-form textarea:focus {
  border-color: var(--secondary-green, #01875f) !important;
  outline: 2px solid rgba(1, 135, 95, .12) !important;
}

.remaining-topic-detail .xidown-comment-actions > .rp-button {
  min-width: 112px !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 18px !important;
  color: #fff !important;
  background: var(--secondary-green, #01875f) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.remaining-topic-detail .xidown-comment-actions > .rp-button:hover,
.remaining-topic-detail .xidown-comment-actions > .rp-button:focus-visible {
  color: #fff !important;
  background: var(--secondary-green-dark, #006c4c) !important;
}

.remaining-topic-detail .rp-topic-grid {
  gap: 16px !important;
}

.remaining-topic-detail .rp-topic-item {
  min-height: 322px !important;
  border-radius: 10px !important;
  background: var(--secondary-surface, #f8f9fa) !important;
}

.remaining-topic-detail .rp-topic-item > img {
  height: 136px !important;
}

.remaining-topic-detail .rp-topic-item > div {
  min-height: 180px !important;
  padding: 13px 14px 14px !important;
}

.remaining-topic-detail .rp-topic-item .rp-chip {
  width: auto !important;
  align-self: flex-start !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.remaining-topic-detail .rp-topic-item h3 {
  margin: 8px 0 6px !important;
  font-size: 15px !important;
  line-height: 22px !important;
}

.remaining-topic-detail .rp-topic-item p {
  height: 54px !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  line-height: 18px !important;
  -webkit-line-clamp: 3;
}

.remaining-topic-detail .rp-topic-item small {
  color: var(--secondary-muted, #5f6368) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.remaining-topic-detail .rp-topic-item .rp-button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 16px !important;
  font-size: 13px !important;
}
.remaining-topic-detail .rp-topic-hero-copy .rp-chip {
  color: #202124 !important;
}
.remaining-topic-detail .rp-topic-hero > img {
  height: 100% !important;
}
.remaining-topic-detail .rp-topic-hero-copy h1 {
  text-wrap: balance;
}
.remaining-topic-detail .rp-topic-item p:empty {
  display: none;
}
@media (max-width: 767px) {
  .remaining-topic-detail .rp-topic-item,
  .remaining-topic-detail .rp-topic-item > div {
    min-height: 0 !important;
  }
  .remaining-topic-detail .rp-topic-item .rp-button {
    margin-top: 12px;
  }
}
.article-detail-page .xidown-comment-heading {
  margin-bottom: 14px !important;
}
.article-detail-page .xidown-comment-heading h2 {
  color: var(--secondary-ink, #202124) !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 28px !important;
}
.article-detail-page .xidown-comment-heading span,
.article-detail-page .xidown-comment-form label,
.article-detail-page .xidown-star-field legend {
  color: var(--secondary-muted, #5f6368) !important;
  font-size: 13px !important;
  line-height: 20px !important;
}
.article-detail-page .xidown-comment-fields {
  gap: 14px !important;
}
.article-detail-page .xidown-comment-form input,
.article-detail-page .xidown-comment-form textarea {
  border: 1px solid var(--secondary-line, #dadce0) !important;
  border-radius: 10px !important;
  color: var(--secondary-ink, #202124) !important;
  background: #fff !important;
  font-size: 14px !important;
}
.article-detail-page .xidown-comment-form input {
  height: 40px !important;
}
.article-detail-page .xidown-comment-form textarea {
  min-height: 104px !important;
}
.article-detail-page .xidown-comment-form input:focus,
.article-detail-page .xidown-comment-form textarea:focus {
  border-color: var(--secondary-green, #01875f) !important;
  outline: 2px solid rgba(1, 135, 95, .12) !important;
}
.article-detail-page .xidown-comment-actions > .rp-button {
  min-width: 112px !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 18px !important;
  color: #fff !important;
  background: var(--secondary-green, #01875f) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.article-detail-page .xidown-comment-actions > .rp-button:hover,
.article-detail-page .xidown-comment-actions > .rp-button:focus-visible {
  color: #fff !important;
  background: var(--secondary-green-dark, #006c4c) !important;
}

@media (max-width: 720px) {
  .article-detail-page .article-recommend > div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  .article-detail-page .xidown-comment-panel {
    padding: 18px !important;
  }

  .remaining-topic-detail .xidown-comment-panel {
    max-width: none;
    padding: 18px !important;
  }
  .editorial-category-intro h1 { font-size: 24px; line-height: 32px; }
}
