:root {
  color-scheme: light;
  --forum-ink: #451718;
  --forum-blue: #9b3329;
  --forum-blue-hover: #6e211d;
  --forum-muted: #8e7470;
  --forum-line: #ead9c6;
  --forum-surface: #fff;
  --forum-page: #f6eee4;
  --forum-tint: #fffaf2;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--forum-page); color: #26384b; font: 15px/1.65 system-ui, "Microsoft YaHei", sans-serif; }
a { color: var(--forum-blue); text-decoration: none; }
a:hover { color: var(--forum-blue-hover); text-decoration: underline; }
.forum-header { background: linear-gradient(115deg, #142a40, #1c3c5b); color: #fff; box-shadow: 0 2px 10px #172b401a; }
.forum-nav { max-width: 1120px; min-height: 66px; margin: auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.forum-brand { display: flex; align-items: center; gap: 11px; color: white; font-size: 18px; font-weight: 750; letter-spacing: .02em; }
.forum-brand:hover { color: #fff; text-decoration: none; }
.forum-brand small { display: block; color: #b9cad9; font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.forum-brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #ffffff55; border-radius: 11px; background: #ffffff12; font-family: Georgia, serif; font-size: 21px; }
.forum-nav-links { display: flex; align-items: center; gap: 22px; }
.forum-nav-links > a, .forum-account, .forum-account a { color: #edf4fa; font-size: 14px; white-space: nowrap; }
.forum-nav-links > a:hover, .forum-account a:hover { color: white; }
.forum-account { padding-left: 18px; border-left: 1px solid #ffffff3d; }
.forum-page .site-header { position: relative; z-index: 30; background: rgba(44,12,15,.96); border-bottom: 1px solid rgba(255,214,154,.2); color: #fff5e7; }
.forum-page .header-inner { min-height: 78px; gap: 22px; }
.forum-page .main-nav { gap: clamp(10px,1.5vw,20px); overflow: visible; white-space: nowrap; }
.forum-page .main-nav > a, .forum-page .home-nav-trigger { display: flex; align-items: center; gap: 5px; color: #f4ded0; font-size: 13px; white-space: nowrap; }
.forum-page .home-nav-group { position: relative; }
.forum-page .home-nav-trigger span { color: #f0ae55; font-size: 12px; }
.forum-page .home-nav-dropdown { position: absolute; z-index: 40; top: 100%; left: -12px; min-width: 176px; padding: 7px; border: 1px solid rgba(231,184,117,.4); border-radius: 8px; background: #451316; box-shadow: 0 14px 30px #14050559; visibility: hidden; opacity: 0; pointer-events: none; }
.forum-page .home-nav-group:hover .home-nav-dropdown, .forum-page .home-nav-group:focus-within .home-nav-dropdown { visibility: visible; opacity: 1; pointer-events: auto; }
.forum-page .home-nav-dropdown a { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: 5px; color: #f5dfc3; font-size: 12px; }
.forum-page .home-nav-dropdown a:hover { background: #d48f432b; color: #fff0ce; }
.forum-page .home-nav-dropdown .home-nav-group-home { border-bottom: 1px solid #e9c18533; color: #ffd18b; font-weight: 700; }
.forum-page .forum-local-nav { background: linear-gradient(110deg,#641719,#8f1d1d); color: #f8e7d5; }
.forum-local-nav nav { width: min(1220px,calc(100% - 40px)); min-height: 40px; margin: auto; display: flex; align-items: center; gap: 21px; }
.forum-local-nav a, .forum-local-nav .forum-account { color: #f8e7d5; font-size: 12px; white-space: nowrap; }
.forum-local-nav .forum-account { margin-left: auto; padding-left: 16px; border-left: 1px solid #ffffff3d; }
.forum-local-nav .forum-account a { color: #ffd69a; }
.forum-page .forum-main { min-height: calc(100vh - 216px); }
.forum-main { width: calc(100% - 40px); max-width: 1120px; margin: 30px auto 54px; min-height: calc(100vh - 150px); }
.forum-directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 4px 22px; }
.forum-directory-heading h1 { margin: 5px 0 3px; color: var(--forum-ink); font-size: 27px; letter-spacing: -.03em; }
.forum-directory-heading p { margin: 0; color: var(--forum-muted); }
.forum-eyebrow { color: #5580a2; font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.forum-directory-summary { display: flex; align-items: center; gap: 16px; padding: 11px 15px; border: 1px solid #e0e8ef; border-radius: 10px; background: #fff; color: var(--forum-muted); font-size: 12px; white-space: nowrap; }
.forum-directory-summary strong { display: block; color: var(--forum-ink); font-size: 17px; line-height: 1.25; }
.forum-directory-summary i { width: 1px; height: 26px; background: var(--forum-line); }
.forum-category { margin-bottom: 15px; overflow: hidden; border: 1px solid #e0e7ed; border-radius: 12px; background: var(--forum-surface); box-shadow: 0 4px 16px #253e550b; }
.forum-category-heading { display: flex; align-items: center; gap: 13px; padding: 17px 21px 15px; }
.forum-category-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #edf4f8; color: #47799f; font-size: 18px; }
.forum-category-copy { min-width: 0; flex: 1; }
.forum-category-copy h2 { margin: 0; color: var(--forum-ink); font-size: 17px; line-height: 1.4; }
.forum-category-copy h2 a { color: inherit; }
.forum-category-copy p { margin: 3px 0 0; color: var(--forum-muted); font-size: 12px; }
.forum-category-counts { display: flex; align-items: center; gap: 17px; color: var(--forum-muted); font-size: 11px; }
.forum-category-counts strong { display: block; color: #40556a; font-size: 15px; line-height: 1.3; text-align: right; }
.forum-board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 21px 19px 70px; }
.forum-board-card { display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 12px 13px 11px; border: 1px solid #e8edf1; border-radius: 9px; background: #fbfcfd; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.forum-board-card:hover { transform: translateY(-1px); border-color: #c9d9e6; background: #f5f9fc; text-decoration: none; }
.forum-board-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #28445d; font-size: 14px; font-weight: 650; }
.forum-board-card-name { display: block; min-width: 0; flex: 1; }
.forum-board-card-name { font-size: inherit; }
.forum-board-card-name font, .forum-category-copy h2 font { font-size: inherit !important; }
.forum-board-intro font[size], .panel h1 font[size], .panel h2 font[size], .forum-main .muted font[size] { font-size: inherit !important; }
.forum-board-card-title > span[aria-hidden="true"] { flex: 0 0 auto; color: #91a3b2; font-size: 14px; font-weight: 400; line-height: 1; }
.forum-board-description { display: -webkit-box; overflow: hidden; color: var(--forum-muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.forum-board-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 3px; color: #8392a1; font-size: 10px; }
.forum-board-today { color: #378068; }
.forum-empty-category { padding: 14px 22px 18px 70px; color: var(--forum-muted); font-size: 13px; }
.forum-recent-panel h2 { display: flex; align-items: baseline; gap: 10px; }
.forum-heading-note { color: var(--forum-muted); font-size: 12px; font-weight: 400; }
.forum-recent-list { padding: 0 22px 8px; }
.forum-recent-item { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 12px 0; border-top: 1px solid #edf1f4; }
.forum-recent-item:first-child { border-top: 0; }
.forum-recent-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #84a6c0; }
.forum-recent-copy { min-width: 0; flex: 1; }
.forum-recent-copy > a { display: block; overflow: hidden; color: #2c465e; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.forum-recent-copy .muted { margin-top: 2px; font-size: 11px; }
.forum-recent-item time { flex: 0 0 auto; font-size: 11px; }
.forum-board-intro { display: flex; align-items: baseline; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--forum-line); background: #fbfcfd; }
.forum-board-intro > span { flex: 0 0 auto; color: #55728a; font-size: 11px; font-weight: 700; }
.forum-board-intro p { margin: 0; color: var(--forum-muted); font-size: 12px; }
.forum-topic-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 22px; border-bottom: 1px solid #edf1f4; }
.forum-topic-row:last-child { border-bottom: 0; }
.forum-topic-main { min-width: 0; flex: 1; }
.forum-topic-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.forum-topic-title > a { overflow: hidden; color: #28445d; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.forum-topic-tag { padding: 1px 6px; border-radius: 4px; background: #eef2f5; color: #6c7d8b; font-size: 10px; line-height: 1.6; }
.forum-topic-pinned { background: #fff3df; color: #a56e20; }
.forum-topic-featured { background: #eaf3fb; color: #3978a6; }
.forum-topic-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; color: var(--forum-muted); font-size: 11px; }
.forum-topic-stats { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 5px; flex: 0 0 auto; min-width: 82px; color: var(--forum-muted); font-size: 10px; }
.forum-topic-stats strong { color: #455d71; font-size: 12px; font-weight: 650; text-align: right; }
.panel { margin: 0 0 22px; overflow: hidden; border: 1px solid #e0e7ed; border-radius: 12px; background: var(--forum-surface); box-shadow: 0 4px 16px #253e5510; }
.panel h1, .panel h2 { margin: 0; padding: 17px 22px; border-bottom: 1px solid var(--forum-line); background: linear-gradient(180deg, #fbfcfd, #f3f7fa); color: var(--forum-ink); font-size: 18px; font-weight: 700; line-height: 1.5; }
.panel h1 a, .panel h2 a { font-weight: 600; }
.panel h1 a:first-child, .panel h2 a:first-child { color: var(--forum-ink); }
.panel h1 a:last-child:not(:first-child) { float: right; padding: 5px 13px; border-radius: 7px; background: var(--forum-blue); color: #fff; font-size: 13px; }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 22px; border-top: 1px solid var(--forum-line); }
.panel h1 + .row, .panel h2 + .row { border-top: 0; }
.row > div:first-child { min-width: 0; }
.row > span { flex: 0 0 auto; text-align: right; }
.row a { font-weight: 550; }
.row strong { color: var(--forum-ink); }
.muted { color: var(--forum-muted); font-size: 13px; }
.muted a { color: inherit; }
.post { padding: 21px 24px 24px; border-top: 1px solid var(--forum-line); }
.post:first-of-type { border-top: 0; }
.post > div:first-child { padding-bottom: 12px; border-bottom: 1px solid #edf1f4; }
.post-body { margin-top: 16px; overflow-wrap: anywhere; color: #283746; line-height: 1.85; }
.post-body font[size="1"] { font-size: .82em !important; }
.post-body font[size="2"] { font-size: .92em !important; }
.post-body font[size="3"] { font-size: 1em !important; }
.post-body font[size="4"] { font-size: 1.08em !important; }
.post-body font[size="5"] { font-size: 1.16em !important; }
.post-body font[size="6"], .post-body font[size="7"] { font-size: 1.25em !important; }
.post-body p { margin: .7em 0; }
.post-body img { display: inline-block; max-width: min(100%, 820px); height: auto; margin: 8px 10px 8px 0; border: 1px solid #e0e6eb; border-radius: 7px; vertical-align: middle; }
.post-body table { max-width: 100%; margin: 12px 0; border-collapse: collapse; overflow-wrap: anywhere; }
.post-body td, .post-body th { padding: 7px 10px; border: 1px solid #dce4eb; }
.post-body th { background: #f2f6f9; }
.post-body a { overflow-wrap: anywhere; }
.post-body iframe, .post-body object, .post-body embed { max-width: 100%; }
.forum-avatar { float: right; width: 88px; height: 88px; object-fit: cover; margin: 0 0 12px 18px; border: 3px solid #edf2f6; border-radius: 50%; background: #f3f6f9; }
form { max-width: 850px; }
form p { margin: 0 0 18px; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid #cfd9e2; border-radius: 7px; background: #fff; color: #26384b; font: inherit; }
textarea { min-height: 260px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid #4383b522; border-color: #4383b5; }
button { padding: 9px 19px; border: 0; border-radius: 7px; background: var(--forum-blue); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: var(--forum-blue-hover); }
table:not(.post-body table) { border-collapse: collapse; }
td, th { border-color: var(--forum-line); }
@media (max-width: 700px) {
  .forum-page .header-inner { flex-wrap: wrap; padding: 12px 0; gap: 12px; }
  .forum-page .main-nav { order: 3; width: 100%; flex: 0 0 100%; justify-content: flex-start; flex-wrap: wrap; gap: 7px 13px; }
  .forum-page .header-action { margin-left: auto; }
  .forum-page .home-nav-dropdown { left: 0; }
  .forum-local-nav nav { width: calc(100% - 24px); flex-wrap: wrap; gap: 8px 14px; padding: 9px 0; }
  .forum-local-nav .forum-account { margin-left: 0; padding-left: 0; border: 0; }
  .forum-main { width: calc(100% - 24px); margin: 16px auto 32px; }
  .forum-directory-heading { align-items: flex-start; flex-direction: column; gap: 13px; padding: 4px 2px 15px; }
  .forum-directory-heading h1 { font-size: 23px; }
  .forum-directory-summary { width: 100%; justify-content: space-around; }
  .forum-category { margin-bottom: 12px; border-radius: 9px; }
  .forum-category-heading { gap: 10px; padding: 13px 13px 12px; }
  .forum-category-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .forum-category-copy h2 { font-size: 15px; }
  .forum-category-copy p { font-size: 11px; }
  .forum-category-counts { gap: 9px; }
  .forum-category-counts strong { font-size: 13px; }
  .forum-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 12px 13px; }
  .forum-board-card { gap: 4px; padding: 10px; }
  .forum-board-card-title { font-size: 12px; }
  .forum-board-meta { gap: 3px 7px; font-size: 9px; }
  .forum-empty-category { padding: 12px 14px 15px; }
  .forum-recent-list { padding: 0 14px 6px; }
  .forum-recent-item { gap: 9px; }
  .forum-recent-item time { max-width: 94px; text-align: right; }
  .forum-board-intro { align-items: flex-start; gap: 8px; padding: 10px 14px; }
  .forum-topic-row { gap: 8px; padding: 12px 14px; }
  .forum-topic-title > a { font-size: 12px; white-space: normal; }
  .forum-topic-meta { gap: 2px 8px; font-size: 10px; }
  .forum-topic-meta > span:last-child { display: none; }
  .forum-topic-stats { grid-template-columns: auto auto; min-width: 55px; gap: 0 3px; font-size: 9px; }
  .forum-topic-stats strong { font-size: 10px; }
  .panel { margin-bottom: 15px; border-radius: 9px; }
  .panel h1, .panel h2 { padding: 13px 15px; font-size: 16px; }
  .row { gap: 8px; padding: 12px 15px; }
  .row > span { max-width: 38%; font-size: 12px; }
  .post { padding: 16px 15px 19px; }
  .post-body { font-size: 14px; }
  .post-body table { display: block; overflow-x: auto; }
  .panel h1 a:last-child:not(:first-child) { float: none; display: inline-block; margin-left: 6px; }
}
@media (min-width: 701px) and (max-width: 920px) {
  .forum-main { width: calc(100% - 32px); margin-top: 22px; }
  .forum-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 21px; }
  .forum-page .header-inner { gap: 12px; }
  .forum-page .main-nav { gap: 7px 12px; }
}
@media (max-width: 420px) {
  .forum-board-grid { grid-template-columns: minmax(0, 1fr); }
  .forum-directory-summary { gap: 10px; padding-right: 10px; padding-left: 10px; }
}
