:root {
  --brand: #0b4f8a;
  --brand-dark: #073863;
  --brand-mid: #1677c2;
  --brand-soft: #eaf3fc;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --container: 1180px;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.nav-link.active {
  background: var(--brand);
  color: #ffffff;
}

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

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 4px 2px 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.header-search:focus-within {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(22, 119, 194, 0.12);
  background: #fff;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 150px;
  font-size: 0.88rem;
  color: var(--text);
}

.header-search button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

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

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-nav-list a {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.mobile-nav-list a.active {
  background: var(--brand);
  color: #fff;
}

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

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

.mobile-search button {
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Announcement Banner (Mandatory on Home below Nav) */
.announce-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 50%, #fef9ee 100%);
  border-bottom: 1px solid #dbe7f5;
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #1e3a5f;
  line-height: 1.55;
}

.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  margin-top: 2px;
}

/* Hero Section */
.hero-section {
  padding: 24px 0 20px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  background: linear-gradient(135deg, #093d6c 0%, #0d5694 55%, #1677c2 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-desc {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.7;
}

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

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

.btn-white {
  background: #ffffff;
  color: var(--brand-dark);
}

.btn-white:hover {
  background: #f1f5f9;
  color: var(--brand-dark);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 240px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Main Grid Layout */
.page-main {
  padding: 12px 0 48px;
}

.section-block {
  margin-bottom: 28px;
}

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

.section-title {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand);
  display: inline-block;
}

.section-more {
  font-size: 0.88rem;
  color: var(--brand);
  font-weight: 500;
  white-space: nowrap;
}

/* Board Directory Cards */
.board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

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

.board-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-mid);
  box-shadow: var(--shadow);
  color: var(--text);
}

.board-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.board-icon svg {
  width: 20px;
  height: 20px;
}

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

.board-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.board-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Two-Column Content + Sidebar */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 20px;
}

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

.spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.spotlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-mid);
  box-shadow: var(--shadow);
}

.spotlight-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
}

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

.badge-pin {
  background: var(--accent-soft);
  color: #b45309;
}

.badge-feat {
  background: #dcfce7;
  color: #15803d;
}

.spotlight-title {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.45;
  font-weight: 700;
}

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

.spotlight-title a:hover {
  color: var(--brand);
}

.spotlight-summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Forum Thread Feed List */
.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.thread-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.14s ease;
}

.thread-item:last-child {
  border-bottom: 0;
}

.thread-item:hover {
  background: #fafcff;
}

.thread-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

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

.thread-title a:hover {
  color: var(--brand);
}

.thread-excerpt {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.thread-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Dual Feature Columns on Home */
.dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}

.mini-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-list a {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 4px;
}

.mini-list a:hover {
  color: var(--brand);
}

.mini-list .mini-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tools Strip */
.tools-banner {
  background: linear-gradient(120deg, #f0f7ff 0%, #ffffff 55%, #fffbeb 100%);
  border: 1px solid #d4e4f7;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tools-banner h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: var(--brand-dark);
}

.tools-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.widget-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hot-rank;
}

.hot-list li {
  counter-increment: hot-rank;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.hot-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hot-list li::before {
  content: counter(hot-rank);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.hot-list li:nth-child(1)::before {
  background: #dc2626;
  color: #fff;
}

.hot-list li:nth-child(2)::before {
  background: #ea580c;
  color: #fff;
}

.hot-list li:nth-child(3)::before {
  background: #d97706;
  color: #fff;
}

.hot-link {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
  display: block;
}

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

.hot-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.quick-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.86rem;
}

.quick-facts li:last-child {
  border-bottom: 0;
}

.quick-facts span:first-child {
  color: var(--text-muted);
  flex-shrink: 0;
}

.quick-facts span:last-child {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* Breadcrumb & Page Banner */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 14px 0;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.page-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.3;
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.filter-tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Article Detail */
.article-wrap {
  padding: 28px;
}

.article-header {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.article-title {
  margin: 10px 0 12px;
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--text);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.article-cover {
  margin: 0 0 22px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.article-summary-box {
  background: #f8fbff;
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 22px;
  font-size: 0.94rem;
  color: #1e3a5f;
}

.article-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: #1e293b;
  word-break: break-word;
}

.article-prose h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
  color: var(--brand-dark);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 86px;
}

.article-prose h3 {
  margin: 20px 0 8px;
  font-size: 1.06rem;
  color: var(--text);
}

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

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

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

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

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

.article-prose th {
  background: var(--bg);
  font-weight: 600;
}

.article-prose blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: #78350f;
}

.article-notice {
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 6px;
}

.toc-list a {
  display: block;
  padding: 5px 10px;
  border-left: 2px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.toc-list a:hover, .toc-list a.active {
  border-left-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 0 6px 6px 0;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.page-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
}

.page-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-btn:hover:not(.active) {
  border-color: var(--brand);
  color: var(--brand);
}

/* Tools Page */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.tool-card {
  padding: 22px;
}

.tool-card h2 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  color: var(--brand-dark);
}

.tool-card .tool-sub {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-field input, .form-field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.92rem;
  background: #fff;
  color: var(--text);
}

.calc-result {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--brand-soft);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--brand-dark);
}

.calc-result strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

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

.prompt-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: #fafcff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-card h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

.prompt-text {
  margin: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover, .copy-btn.copied {
  background: var(--brand);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #0f1f33;
  color: #cbd5e1;
  padding: 36px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.footer-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive Breakpoints (Strict 375px safe!) */
@media (max-width: 1024px) {
  .board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .main-nav, .header-search {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .hero-card {
    padding: 20px;
    gap: 18px;
  }
  .hero-title {
    font-size: 1.48rem;
  }
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .spotlight-grid, .dual-grid, .tools-grid, .prompt-grid, .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tools-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-wrap {
    padding: 18px 16px;
  }
  .article-title {
    font-size: 1.32rem;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-logo {
    height: 36px;
  }
}

@media (max-width: 400px) {
  .board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-stats {
    gap: 14px;
  }
  .thread-item {
    padding: 14px;
  }
}
