.article-page-shell {
  --article-max: 1170px;
  --article-blue: #2196f3;
  --article-blue-dark: #1976d2;
  --article-ink: #101114;
  --article-muted: #646a76;
  --article-line: rgba(16, 17, 20, 0.08);
  --article-line-strong: rgba(16, 17, 20, 0.12);
  --article-bg: #f4f5f7;
  --article-surface: rgba(255, 255, 255, 0.94);
  --article-soft: #f8f8fa;
  --article-shadow: 0 24px 56px rgba(10, 12, 18, 0.08);
  background:
    linear-gradient(180deg, rgba(33, 150, 243, 0.08) 0, rgba(244, 245, 247, 0) 260px),
    var(--article-bg);
  color: var(--article-ink);
  font-family: "Pretendard Variable", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.article-page-shell *,
.article-page-shell *::before,
.article-page-shell *::after {
  box-sizing: border-box;
}

.article-page-shell .in-header > div {
  width: min(var(--article-max), calc(100% - 30px)) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.article-page-shell .public-subheader-shell {
  width: min(var(--article-max), calc(100% - 30px));
}

.article-page-main {
  padding: 18px 0 72px;
}

.article-band {
  padding: 0 0 16px;
}

.article-shell {
  width: min(var(--article-max), calc(100% - 30px));
  margin: 0 auto;
}

.article-icon,
.article-meta-icon,
.article-action-icon,
.article-chip-icon,
.article-logo-icon {
  flex: 0 0 auto;
}

.article-chip-row,
.article-forum-actions,
.article-thread-extra,
.article-thread-meta,
.article-thread-actions,
.article-board-tabs,
.article-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-kicker,
.article-chip,
.article-tag,
.article-comic-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.article-kicker {
  background: rgba(16, 17, 20, 0.86);
  color: #fff;
  letter-spacing: 0;
}

.article-chip {
  background: rgba(33, 150, 243, 0.1);
  color: var(--article-blue-dark);
}

.article-chip.is-guide {
  background: rgba(47, 143, 131, 0.14);
  color: #23756c;
}

.article-chip.is-warm {
  background: rgba(255, 111, 0, 0.13);
  color: #a84e18;
}

.article-chip.is-hot {
  background: rgba(255, 183, 77, 0.22);
  color: #8a6500;
}

.article-tag {
  background: rgba(16, 17, 20, 0.05);
  color: var(--article-muted);
}

.article-comic-chip {
  background: rgba(89, 68, 163, 0.09);
  color: #5944a3;
}

.article-primary-btn,
.article-secondary-btn,
.article-card-link,
.article-back-link,
.article-action-btn,
.article-board-tab,
.article-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.article-primary-btn,
.article-card-link,
.article-action-btn.is-primary {
  background: linear-gradient(135deg, var(--article-blue) 0%, var(--article-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(25, 118, 210, 0.2);
}

.article-secondary-btn,
.article-back-link,
.article-action-btn,
.article-board-tab,
.article-sort-btn {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--article-line);
  color: #343941;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.article-primary-btn:hover,
.article-card-link:hover,
.article-action-btn.is-primary:hover,
.article-secondary-btn:hover,
.article-back-link:hover,
.article-action-btn:hover,
.article-board-tab:hover,
.article-sort-btn:hover {
  transform: translateY(-1px);
}

.article-action-btn.is-copied {
  background: #2f8f83;
  border-color: #2f8f83;
  color: #fff;
}

.article-forum-head,
.article-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.9)),
    linear-gradient(180deg, rgba(33, 150, 243, 0.06), rgba(33, 150, 243, 0));
  box-shadow: var(--article-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.article-category-head {
  grid-template-columns: 1fr;
}

.article-forum-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.article-forum-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--article-blue) 0%, #0d47a1 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(25, 118, 210, 0.25);
}

.article-forum-title,
.article-detail-title {
  margin: 8px 0 0;
  color: var(--article-ink);
  font-weight: 900;
  letter-spacing: 0;
}

.article-forum-title {
  font-size: 34px;
  line-height: 1.12;
}

.article-forum-desc,
.article-thread-summary,
.article-detail-summary,
.article-side-copy,
.article-prose-caption {
  margin: 0;
  color: var(--article-muted);
  line-height: 1.75;
}

.article-forum-actions {
  justify-content: flex-end;
  align-content: start;
}

.article-forum-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.article-forum-stat {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: rgba(248, 248, 250, 0.9);
}

.article-forum-stat span {
  color: var(--article-muted);
  font-size: 12px;
  font-weight: 800;
}

.article-forum-stat strong {
  overflow: hidden;
  color: var(--article-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-forum-stat small {
  margin-left: 3px;
  color: var(--article-muted);
  font-size: 12px;
}

.article-forum-notice {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 247, 230, 0.95), rgba(255, 252, 244, 0.95));
  color: #775324;
  line-height: 1.7;
}

.article-forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.article-forum-main,
.article-sidebar,
.article-detail-main {
  min-width: 0;
}

.article-feed-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: var(--article-surface);
  box-shadow: 0 18px 36px rgba(10, 12, 18, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.article-searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: var(--article-soft);
  color: var(--article-muted);
}

.article-searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--article-ink);
  font: inherit;
  font-size: 14px;
}

.article-board-tab.is-active,
.article-sort-btn.is-active {
  background: var(--article-ink);
  border-color: var(--article-ink);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 12, 18, 0.12);
}

.article-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
}

.article-feed-head h2 {
  margin: 0;
  color: var(--article-ink);
  font-size: 22px;
}

.article-feed-head span {
  color: var(--article-muted);
  font-size: 13px;
  font-weight: 800;
}

.article-thread-feed {
  display: grid;
  gap: 10px;
}

.article-thread-card {
  display: grid;
  grid-template-columns: 48px 48px minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: var(--article-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.article-thread-card:hover {
  border-color: rgba(33, 150, 243, 0.28);
  box-shadow: 0 20px 42px rgba(10, 12, 18, 0.08);
  transform: translateY(-1px);
}

.article-thread-card.is-featured {
  border-color: rgba(255, 183, 77, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 183, 77, 0.11), rgba(255, 255, 255, 0) 38%),
    var(--article-surface);
}

.article-thread-rank {
  display: grid;
  gap: 5px;
  justify-items: center;
  color: #8d95a1;
  font-size: 11px;
  font-weight: 900;
}

.article-thread-rank span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(16, 17, 20, 0.055);
  color: #46505c;
}

.article-thread-rank strong {
  color: #8a6500;
  font-size: 11px;
}

.article-author-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f8f83, var(--article-blue-dark));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.article-author-avatar.is-large {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.article-thread-main {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.article-thread-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.article-thread-titleline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.article-thread-title {
  color: var(--article-ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
}

.article-thread-title:hover {
  color: var(--article-blue-dark);
}

.article-thread-board {
  flex: 0 0 auto;
  max-width: 128px;
  overflow: hidden;
  color: var(--article-muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-thread-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-thread-meta {
  color: var(--article-muted);
  font-size: 12px;
  font-weight: 700;
}

.article-thread-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-thread-cover {
  display: block;
  width: 150px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #e7edf4;
  box-shadow: inset 0 0 0 1px var(--article-line);
}

.article-thread-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 14px;
}

.article-side-card,
.article-empty,
.article-reply-box,
.article-floor,
.article-detail-head {
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: var(--article-surface);
  box-shadow: 0 18px 36px rgba(10, 12, 18, 0.05);
}

.article-side-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.article-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.article-side-head h3 {
  margin: 0;
  color: var(--article-ink);
  font-size: 16px;
}

.article-side-head span {
  color: #87909b;
  font-size: 12px;
  font-weight: 800;
}

.article-spotlight {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.article-spotlight img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.article-spotlight strong {
  color: var(--article-ink);
  line-height: 1.45;
}

.article-spotlight p,
.article-sidebar-empty {
  margin: 0;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.7;
}

.article-board-list,
.article-related-list {
  display: grid;
  gap: 8px;
}

.article-board-link,
.article-related-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--article-soft);
  color: inherit;
  text-decoration: none;
}

.article-board-link.is-active {
  background: rgba(33, 150, 243, 0.08);
  box-shadow: inset 3px 0 0 var(--article-blue);
}

.article-board-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.article-board-link strong,
.article-related-link strong {
  overflow: hidden;
  color: var(--article-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-board-link em {
  color: #7b8490;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.article-related-link {
  grid-template-columns: 1fr;
}

.article-related-link span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--article-muted);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-empty {
  padding: 24px;
  color: var(--article-muted);
  text-align: center;
}

.article-thread-detail {
  display: grid;
  gap: 10px;
}

.article-detail-op {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.article-detail-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
  padding: 18px;
}

.article-detail-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.article-detail-title {
  font-size: 34px;
  line-height: 1.16;
}

.article-detail-cover {
  width: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #e7edf4;
}

.article-detail-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.article-detail-main {
  display: grid;
  gap: 12px;
}

.article-floor {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.article-floor-side {
  display: grid;
  align-content: start;
  gap: 5px;
  color: #7b8490;
  font-size: 12px;
  font-weight: 800;
}

.article-floor-side strong {
  color: var(--article-blue-dark);
  font-size: 18px;
}

.article-prose {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.article-prose-block h1,
.article-prose-block h2,
.article-prose > h1,
.article-prose > h2,
.article-prose > h3,
.article-prose-comic-body h3 {
  margin: 0;
  color: var(--article-ink);
}

.article-prose-block h1,
.article-prose > h1 {
  font-size: 30px;
  line-height: 1.25;
}

.article-prose-block h2,
.article-prose > h2,
.article-prose > h3 {
  font-size: 26px;
  line-height: 1.3;
}

.article-prose-block p,
.article-prose > p,
.article-prose p,
.article-prose-block li,
.article-prose li,
.article-prose-block blockquote,
.article-prose blockquote,
.article-prose td,
.article-prose th {
  margin: 0;
  color: #222830;
  font-size: 17px;
  line-height: 1.9;
}

.article-prose-block ul,
.article-prose ul,
.article-prose ol {
  margin: 0;
  padding-left: 20px;
}

.article-prose-block--quote blockquote {
  padding: 16px 18px;
  border-left: 4px solid var(--article-blue);
  border-radius: 0 8px 8px 0;
  background: rgba(33, 150, 243, 0.07);
}

.article-prose > blockquote {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--article-blue);
  border-radius: 0 8px 8px 0;
  background: rgba(33, 150, 243, 0.07);
}

.article-prose a {
  color: var(--article-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-prose a:hover {
  text-decoration: underline;
}

.article-prose hr {
  width: 100%;
  height: 1px;
  margin: 6px 0;
  border: 0;
  background: var(--article-line);
}

.article-prose table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--article-line);
}

.article-prose th,
.article-prose td {
  padding: 10px 12px;
  border: 1px solid var(--article-line);
  text-align: left;
  vertical-align: top;
}

.article-prose th {
  background: var(--article-soft);
  color: var(--article-ink);
  font-weight: 900;
}

.article-prose .tt-related-comic {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: var(--article-soft);
}

.article-prose .tt-related-comic-cover {
  width: 104px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
}

.article-prose .tt-related-comic-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.article-prose .tt-related-comic-tag {
  color: var(--article-blue-dark);
  font-size: 11px;
  font-weight: 900;
}

.article-prose .tt-related-comic-title {
  margin: 0;
  color: var(--article-ink);
  font-size: 20px;
  line-height: 1.35;
}

.article-prose .tt-related-comic-link {
  width: fit-content;
}

.article-prose-block--image img,
.article-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.article-prose-comic {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: var(--article-soft);
}

.article-prose-comic-cover {
  width: 104px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
}

.article-prose-comic-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.09);
  color: var(--article-blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.article-reply-box {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.article-reply-field {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--article-line);
  border-radius: 8px;
  background: var(--article-soft);
  color: var(--article-muted);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .article-forum-layout,
  .article-detail-layout,
  .article-detail-head {
    grid-template-columns: 1fr;
  }

  .article-forum-head {
    grid-template-columns: 1fr;
  }

  .article-forum-actions {
    justify-content: flex-start;
  }

  .article-detail-cover {
    width: 100%;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .article-page-main {
    padding-bottom: 42px;
  }

  .article-shell,
  .article-page-shell .public-subheader-shell {
    width: calc(100% - 30px);
  }

  .article-forum-head,
  .article-category-head,
  .article-detail-head,
  .article-side-card,
  .article-feed-tools,
  .article-thread-card,
  .article-floor,
  .article-reply-box {
    padding: 12px;
  }

  .article-forum-brand {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .article-forum-logo {
    width: 52px;
    height: 52px;
  }

  .article-forum-title,
  .article-detail-title {
    font-size: 26px;
  }

  .article-forum-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-thread-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .article-thread-rank {
    grid-column: 1;
  }

  .article-author-avatar {
    display: none;
  }

  .article-thread-main {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .article-thread-cover {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 190px;
  }

  .article-thread-row,
  .article-detail-op {
    display: grid;
  }

  .article-thread-board {
    max-width: 100%;
  }

  .article-primary-btn,
  .article-secondary-btn,
  .article-card-link,
  .article-back-link,
  .article-action-btn {
    min-height: 42px;
  }

  .article-forum-actions .article-primary-btn,
  .article-forum-actions .article-secondary-btn,
  .article-detail-op .article-back-link,
  .article-detail-op .article-action-btn {
    width: 100%;
  }

  .article-floor {
    grid-template-columns: 1fr;
  }

  .article-floor-side {
    display: flex;
    align-items: center;
  }

  .article-prose-block h1,
  .article-prose-block h2,
  .article-prose > h1,
  .article-prose > h2,
  .article-prose > h3 {
    font-size: 22px;
  }

  .article-prose-block p,
  .article-prose > p,
  .article-prose p,
  .article-prose-block li,
  .article-prose li,
  .article-prose-block blockquote {
    font-size: 16px;
  }

  .article-prose-comic {
    grid-template-columns: 1fr;
  }

  .article-prose-comic-cover {
    width: 100%;
    height: 220px;
  }
}
