:root {
  --thu-purple: #660874;
  --thu-purple-dark: #490554;
  --thu-purple-mid: #822691;
  --thu-purple-soft: #f6eff8;
  --thu-purple-tint: #ece0f0;
  --thu-gold: #b68a2e;
  --thu-gold-soft: #fdf7e9;
  --thu-jade: #1b7a58;
  --thu-jade-soft: #eaf6f1;
  --bg-page: #f7f6f9;
  --bg-card: #ffffff;
  --text-main: #1f1b24;
  --text-body: #363040;
  --text-muted: #686073;
  --border: #e5dfec;
  --border-strong: #d3c8df;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(42, 14, 52, 0.05);
  --shadow-md: 0 8px 24px rgba(42, 14, 52, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--thu-purple);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: var(--thu-purple-mid);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--thu-purple-soft);
  color: var(--thu-purple-dark);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(40, 12, 50, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--thu-purple);
  background: var(--thu-purple-soft);
}

.nav-link.active {
  color: var(--thu-purple);
  background: var(--thu-purple-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: #f3eff7;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px 4px 2px 14px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.header-search:focus-within {
  background: #fff;
  border-color: var(--thu-purple);
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text-main);
  width: 170px;
  font-family: inherit;
}

.header-search button {
  border: none;
  background: var(--thu-purple);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--thu-purple-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--thu-purple);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 14px 0 18px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.mobile-search button {
  padding: 9px 16px;
  background: var(--thu-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-links a {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
}

.mobile-links a.active {
  background: var(--thu-purple-soft);
  color: var(--thu-purple);
  font-weight: 600;
}

/* Announcement bar (directly below nav on homepage) */
.announce-bar {
  background: linear-gradient(90deg, #4b0556 0%, #660874 60%, #7d1e8c 100%);
  color: #fff;
  border-bottom: 2px solid var(--thu-gold);
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}

.announce-tag {
  background: var(--thu-gold);
  color: #241800;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.announce-text {
  color: #fff;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.announce-text:hover {
  color: #ffebc2;
  text-decoration: underline;
}

.announce-more {
  color: #f4d896;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.announce-more:hover {
  color: #fff;
}

/* Hero */
.hero-band {
  background:
    radial-gradient(circle at 12% 18%, rgba(102, 8, 116, 0.11), transparent 44%),
    radial-gradient(circle at 88% 82%, rgba(182, 138, 46, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f7f4fa 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--thu-purple-soft);
  color: var(--thu-purple);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--thu-purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--thu-purple-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--thu-purple);
  border-color: var(--thu-purple);
}

.btn-outline:hover {
  background: var(--thu-purple-soft);
  color: var(--thu-purple-dark);
}

.btn-ghost {
  background: rgba(102, 8, 116, 0.06);
  color: var(--text-body);
}

.btn-ghost:hover {
  background: rgba(102, 8, 116, 0.12);
  color: var(--thu-purple);
}

/* Hero countdown card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}

.countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill-gold {
  background: var(--thu-gold-soft);
  color: #8c6514;
  border: 1px solid #eed9a6;
}

.pill-purple {
  background: var(--thu-purple-soft);
  color: var(--thu-purple);
  border: 1px solid var(--thu-purple-tint);
}

.countdown-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.countdown-box {
  background: linear-gradient(135deg, #5d076b 0%, #832292 100%);
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.countdown-num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.countdown-num span {
  font-size: 16px;
  font-weight: 600;
  margin-left: 4px;
  opacity: 0.9;
}

.countdown-label {
  font-size: 13px;
  opacity: 0.92;
  margin-top: 4px;
}

.timeline-mini {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.timeline-mini li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
}

.timeline-mini li strong {
  font-weight: 500;
  color: var(--text-main);
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0c6db;
  flex-shrink: 0;
}

.tl-dot.done {
  background: var(--thu-jade);
}

.tl-dot.active {
  background: var(--thu-gold);
  box-shadow: 0 0 0 3px rgba(182, 138, 46, 0.25);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  text-align: center;
}

.hero-stats-row strong {
  display: block;
  font-size: 18px;
  color: var(--thu-purple);
  line-height: 1.2;
}

.hero-stats-row span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sections */
.section-boards {
  padding: 30px 0 8px;
}

.section-main-feed {
  padding: 20px 0 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: 21px;
  color: var(--text-main);
}

.section-desc {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.board-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.board-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.board-card:hover {
  transform: translateY(-3px);
  border-color: var(--thu-purple-mid);
  box-shadow: var(--shadow-md);
}

.board-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.board-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--thu-purple-soft);
  color: var(--bcolor, var(--thu-purple));
}

.board-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-page);
  padding: 2px 8px;
  border-radius: 999px;
}

.board-card-title {
  margin: 0;
  font-size: 16px;
  color: var(--text-main);
}

.board-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Main two-column layout */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.content-primary,
.content-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  margin: 0;
  font-size: 18px;
  color: var(--text-main);
}

.panel-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Pinned grid */
.pinned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pinned-card {
  background: linear-gradient(180deg, #fcfafd 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--thu-purple);
  border-radius: 10px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pinned-title {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.45;
}

.pinned-title a {
  color: var(--text-main);
}

.pinned-title a:hover {
  color: var(--thu-purple);
}

.pinned-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badges */
.topic-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.45;
}

.badge-pin {
  background: var(--thu-purple);
  color: #fff;
}

.badge-gold {
  background: var(--thu-gold-soft);
  color: #8a6210;
  border: 1px solid #efdba8;
}

.badge-board {
  background: var(--thu-purple-soft);
  color: var(--thu-purple);
}

.badge-board:hover {
  background: var(--thu-purple-tint);
}

.badge-soft {
  background: #f1eef5;
  color: var(--text-muted);
  font-weight: 500;
}

/* Topic list */
.quick-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-chip {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-body);
  border: 1px solid var(--border);
}

.mini-chip:hover {
  background: var(--thu-purple-soft);
  border-color: var(--thu-purple-tint);
  color: var(--thu-purple);
}

.topic-list {
  display: flex;
  flex-direction: column;
}

.topic-row {
  padding: 16px 0;
  border-bottom: 1px solid #efebf3;
}

.topic-row:first-child {
  padding-top: 2px;
}

.topic-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.topic-title {
  margin: 7px 0 6px;
  font-size: 17px;
  line-height: 1.42;
}

.topic-title a {
  color: var(--text-main);
}

.topic-title a:hover {
  color: var(--thu-purple);
}

.topic-excerpt {
  margin: 0 0 9px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.meta-author em {
  font-style: normal;
  background: #f2eef6;
  color: var(--thu-purple-dark);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  font-size: 11.5px;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  background: var(--thu-purple-soft);
  color: var(--thu-purple-dark);
  font-weight: 600;
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: #faf8fc;
}

.score-total {
  font-weight: 800;
  color: var(--thu-purple);
  font-size: 15px;
}

.td-note {
  white-space: normal !important;
  min-width: 170px;
  font-size: 13px;
  color: var(--text-muted);
}

.deg-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}

.deg-ac {
  background: var(--thu-purple-soft);
  color: var(--thu-purple);
}

.deg-pro {
  background: var(--thu-jade-soft);
  color: var(--thu-jade);
}

/* Sidebar */
.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.side-highlight {
  background: linear-gradient(180deg, #faf5fc 0%, #ffffff 100%);
  border-color: var(--thu-purple-tint);
}

.side-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.side-text {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

.side-more-link {
  font-size: 13.5px;
  font-weight: 600;
}

.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #efeaf4;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hot-rank.top {
  background: var(--thu-purple);
  color: #fff;
}

.hot-info {
  min-width: 0;
}

.hot-link {
  display: block;
  font-size: 13.8px;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 2px;
}

.hot-link:hover {
  color: var(--thu-purple);
}

.hot-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud.centered {
  justify-content: center;
  margin-top: 14px;
}

.tag-pill {
  display: inline-block;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-body);
  border: 1px solid var(--border);
}

.tag-pill:hover {
  background: var(--thu-purple);
  border-color: var(--thu-purple);
  color: #fff;
}

.side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--text-body);
  font-size: 14px;
}

.side-nav-list a:hover,
.side-nav-list a.active {
  background: var(--thu-purple-soft);
  color: var(--thu-purple);
  font-weight: 600;
}

.side-nav-list em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}

/* Sub-page banner */
.page-banner {
  background: linear-gradient(180deg, #ffffff 0%, #f5f0f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 0 26px;
}

.page-banner.compact {
  padding: 14px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.page-banner.compact .breadcrumb {
  margin-bottom: 0;
}

.board-banner-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.board-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--thu-purple-soft);
  color: var(--bcolor, var(--thu-purple));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.3;
  color: var(--text-main);
}

.page-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 820px;
}

.page-body {
  padding-top: 24px;
  padding-bottom: 48px;
}

/* Filter tabs & pagination */
.filter-tabs {
  display: flex;
  gap: 8px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-body);
  background: var(--bg-page);
}

.filter-tab.active {
  background: var(--thu-purple);
  color: #fff;
  font-weight: 600;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.page-num {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-body);
  font-size: 14px;
}

.page-num.active {
  background: var(--thu-purple);
  border-color: var(--thu-purple);
  color: #fff;
  font-weight: 600;
}

/* Article Detail */
.article-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}

.article-title {
  margin: 12px 0 16px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
  color: var(--text-main);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-page);
  border-radius: 10px;
  margin-bottom: 18px;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--thu-purple), var(--thu-purple-mid));
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-chip strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.author-chip small {
  color: var(--text-muted);
  font-size: 12px;
}

.article-meta-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.article-lead {
  padding: 14px 16px;
  background: var(--thu-purple-soft);
  border-left: 4px solid var(--thu-purple);
  border-radius: 0 8px 8px 0;
  color: var(--text-body);
  font-size: 14.8px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.article-body {
  font-size: 15.8px;
  line-height: 1.85;
  color: var(--text-body);
}

.article-body h2 {
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  color: var(--thu-purple-dark);
  scroll-margin-top: 84px;
}

.article-body h3 {
  margin: 20px 0 8px;
  font-size: 17px;
  color: var(--text-main);
  scroll-margin-top: 84px;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 7px;
}

.article-body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--thu-gold-soft);
  border-left: 4px solid var(--thu-gold);
  border-radius: 0 8px 8px 0;
  color: #4f3d16;
  font-family: var(--font-serif);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}

.article-body th,
.article-body td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: var(--thu-purple-soft);
  color: var(--thu-purple-dark);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tags-label {
  font-size: 13px;
  color: var(--text-muted);
}

.article-notice {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f8f7fa;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.pager-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfbfd;
}

.pager-item.next {
  text-align: right;
}

.pager-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pager-item a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.pager-item a:hover {
  color: var(--thu-purple);
}

.pager-item em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
}

/* TOC & Related */
.sticky-toc {
  position: sticky;
  top: 84px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  display: block;
  font-size: 13.5px;
  color: var(--text-body);
  padding: 4px 8px;
  border-left: 2px solid transparent;
  line-height: 1.45;
}

.toc-list a:hover {
  color: var(--thu-purple);
  border-left-color: var(--thu-purple);
  background: var(--thu-purple-soft);
}

.toc-l3 a {
  padding-left: 20px;
  font-size: 12.8px;
  color: var(--text-muted);
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-list a {
  display: block;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 2px;
}

.related-list a:hover {
  color: var(--thu-purple);
}

.related-list span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Scores simulator & filter */
.simulator-panel {
  margin-bottom: 22px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.sim-field-wide {
  grid-column: span 4;
}

.sim-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 6px;
}

.sim-field select,
.sim-field input,
.table-filter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #fff;
}

.sim-field select:focus,
.sim-field input:focus,
.table-filter-input:focus {
  outline: none;
  border-color: var(--thu-purple);
  box-shadow: 0 0 0 3px rgba(102, 8, 116, 0.12);
}

.table-filter-wrap {
  width: 280px;
  max-width: 100%;
}

.sim-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sim-result {
  flex: 1;
  min-width: 240px;
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-body);
}

.sim-result.pass {
  background: var(--thu-jade-soft);
  border-color: #a8dec8;
  color: #124f39;
}

.sim-result.fail {
  background: #fef2f2;
  border-color: #f6c4c4;
  color: #7f1d1d;
}

.tips-panel {
  margin-top: 22px;
}

.bullet-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.8;
}

.bullet-list li {
  margin-bottom: 8px;
}

/* Search & About & 404 */
.search-hero-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  max-width: 680px;
}

.search-hero-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}

.prose-panel h2 {
  margin: 24px 0 10px;
  font-size: 19px;
  color: var(--thu-purple-dark);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 84px;
}

.prose-panel h2:first-child {
  margin-top: 0;
}

.prose-panel p,
.prose-panel li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

.callout-box {
  padding: 14px 18px;
  background: var(--thu-gold-soft);
  border-left: 4px solid var(--thu-gold);
  border-radius: 0 10px 10px 0;
  margin: 14px 0 16px;
  color: #4f3a0b;
  font-size: 15px;
}

.stat-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-kv li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.stat-kv li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-kv span {
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
}

.error-panel {
  text-align: center;
  padding: 56px 24px;
  max-width: 680px;
  margin: 24px auto;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  color: var(--thu-purple);
  line-height: 1;
  margin-bottom: 12px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Footer */
.site-footer {
  background: #231829;
  color: #d6cee0;
  padding-top: 40px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #bdb3c9;
}

.footer-heading {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.footer-list a {
  color: #c8bfd4;
}

.footer-list a:hover {
  color: #f4d896;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 12.8px;
  color: #a89db7;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.beian-link {
  color: #e2d4f0;
  font-weight: 500;
}

.beian-link:hover {
  color: #f4d896;
  text-decoration: underline;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--thu-purple);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(73, 5, 84, 0.28);
  z-index: 90;
}

.back-to-top[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .board-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-search input {
    width: 130px;
  }
}

@media (max-width: 960px) {
  .main-nav,
  .header-search {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sticky-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    min-height: 60px;
  }
  .brand-logo {
    height: 38px;
  }
  .hero-band {
    padding: 24px 0 28px;
  }
  .board-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pinned-grid,
  .article-pager,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager-item.next {
    text-align: left;
  }
  .panel,
  .article-panel {
    padding: 16px;
  }
  .sim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sim-field-wide {
    grid-column: span 2;
  }
  .search-hero-form {
    flex-direction: column;
  }
  .announce-more {
    display: none;
  }
  .table-filter-wrap {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .board-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-cta-row .btn {
    width: 100%;
  }
}
