:root {
  --bg: #f7f8ff;
  --panel: rgba(255,255,255,.82);
  --panel-solid: #ffffff;
  --text: #121a2f;
  --muted: #5f6781;
  --line: rgba(102, 112, 161, .16);
  --primary: #fd5d01;
  --primary-soft: rgba(253, 93, 1, .08);
  --orange: #fe7900;
  --yellow: #feb601;
  --shadow: 0 18px 50px rgba(43,55,105,.08);
}
body.forum-body {
  overflow-x: hidden;
  background: linear-gradient(180deg, #f9faff 0%, #f3f5ff 100%);
  color: var(--text);
}
.forum-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(108,118,170,.12);
}
.forum-nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.forum-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
}
.forum-brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.forum-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.forum-nav-links a {
  color: #24304a;
  font-weight: 600;
}
.forum-nav-links a:hover { color: var(--primary); }
.forum-hero {
  position: relative;
  padding: 84px 0 46px;
}
.forum-hero::before,
.forum-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.forum-hero::before {
  top: -140px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(253,93,1,.13) 0%, rgba(253,93,1,0) 72%);
}
.forum-hero::after {
  right: -80px;
  top: 20px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(254,121,0,.14) 0%, rgba(254,121,0,0) 72%);
}
.forum-hero-panel,
.forum-panel,
.post-panel,
.post-callout,
.post-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}
.forum-hero-panel {
  padding: 42px;
}
.forum-hero-intro {
  max-width: 880px;
}
.forum-kicker,
.post-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}
.forum-hero h1,
.post-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.forum-hero p.lead,
.post-hero p.lead {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--muted);
}
.forum-chip-row,
.post-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.forum-chip,
.post-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(109,119,170,.12);
  color: #24304a;
  font-weight: 600;
}
.forum-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.forum-faq-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 128px;
  padding: 26px 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(109,119,170,.14);
  box-shadow: 0 14px 36px rgba(43,55,105,.06);
  color: var(--text);
}
.forum-faq-card:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(43,55,105,.10);
}
.forum-faq-card span {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}
.forum-faq-card i {
  flex: 0 0 auto;
  color: #24304a;
  font-size: 20px;
}
.forum-search {
  margin-top: 28px;
}
.forum-search label {
  display: block;
  margin-bottom: 12px;
  color: #24304a;
  font-weight: 700;
}
.forum-search-box {
  position: relative;
  max-width: 760px;
}
.forum-search-box i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #7a829f;
  font-size: 16px;
}
.forum-search-box input {
  width: 100%;
  min-height: 62px;
  padding: 16px 18px 16px 48px;
  border: 1px solid rgba(109,119,170,.18);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  font-size: 16px;
  box-shadow: 0 14px 36px rgba(43,55,105,.06);
}
.forum-search-box input:focus {
  outline: none;
  border-color: rgba(253,93,1,.34);
  box-shadow: 0 16px 40px rgba(253,93,1,.10);
}
.forum-search-help {
  margin-top: 12px;
  color: #7a829f;
  font-size: 14px;
  line-height: 1.7;
}
.forum-search-results {
  margin-top: 14px;
  color: #24304a;
  font-size: 14px;
  font-weight: 600;
}
.forum-search-empty {
  display: none;
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px dashed rgba(109,119,170,.22);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
}
.forum-hidden {
  display: none !important;
}
.forum-section {
  padding: 28px 0 24px;
}
.forum-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.forum-section-header h2,
.post-content h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}
.forum-section-header p,
.post-content p,
.post-content li {
  color: var(--muted);
  line-height: 1.9;
}
.forum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.forum-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(43,55,105,.06);
}
.forum-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(253,93,1,.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.forum-card h3 {
  margin: 16px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}
.forum-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.85;
}
.forum-card .meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.forum-card .meta span {
  color: #7a829f;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.forum-card .meta a,
.post-link,
.post-back {
  color: var(--primary);
  font-weight: 700;
}
.forum-footer,
.post-footer {
  padding: 54px 0 28px;
}
.forum-footer .footer-panel,
.post-footer .footer-panel {
  padding: 28px 32px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.forum-footer-row,
.post-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.post-shell {
  padding: 54px 0 28px;
}
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.post-panel,
.post-toc {
  padding: 34px;
}
.post-hero {
  margin-bottom: 26px;
}
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.post-meta-row span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  color: #24304a;
  font-weight: 600;
}
.post-content h2 {
  margin-top: 34px;
}
.post-content h3 {
  margin: 24px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}
.post-content ul {
  margin: 0;
  padding-left: 20px;
}
.post-callout {
  margin-top: 30px;
  padding: 24px 26px;
}
.post-callout h3 { margin-top: 0; }
.post-toc {
  position: sticky;
  top: 112px;
}
.post-toc h3 {
  margin: 0 0 16px;
  font-size: 22px;
}
.post-toc a {
  display: block;
  padding: 10px 0;
  color: #24304a;
  font-weight: 600;
  border-bottom: 1px solid rgba(109,119,170,.12);
}
.post-toc a:last-child { border-bottom: 0; }
.post-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fd5d01 0%, #feb601 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(253,93,1,.20);
}
.post-cta:hover { color: #fff; transform: translateY(-1px); }
@media (max-width: 1199px) {
  .forum-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; }
}
@media (max-width: 767px) {
  .forum-nav {
    min-height: 78px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }
  .forum-nav-links { gap: 10px 14px; }
  .forum-hero { padding: 48px 0 26px; }
  .forum-hero-panel,
  .forum-card,
  .post-panel,
  .post-callout,
  .post-toc,
  .forum-footer .footer-panel,
  .post-footer .footer-panel { padding: 24px 20px; border-radius: 22px; }
  .forum-grid { grid-template-columns: 1fr; }
  .forum-faq-grid { grid-template-columns: 1fr; }
  .forum-faq-card {
    min-height: 104px;
    padding: 22px 20px;
    border-radius: 20px;
  }
  .forum-faq-card span {
    font-size: 17px;
  }
  .forum-section-header,
  .forum-footer-row,
  .post-footer-row { flex-direction: column; align-items: flex-start; }
  .forum-hero h1,
  .post-hero h1 { font-size: 34px; }
  .forum-hero p.lead,
  .post-hero p.lead { font-size: 16px; }
  .forum-search-box input {
    min-height: 56px;
    font-size: 15px;
  }
  .forum-section-header h2,
  .post-content h2 { font-size: 28px; }
  .forum-card h3,
  .post-content h3 { font-size: 22px; }
}
