:root {
  --paper: #fff;
  --panel: #fff;
  --ink: #333;
  --muted: #626262;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --orange: #ff7500;
  --orange-dark: #a64000;
  --orange-light: #fff0e3;
  --field: #fff;
  --green: #387d3d;
  font: 100%/1.6 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--orange-dark); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #1c5d7a;
  outline-offset: 2px;
}
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
h1, h2, p, ul, dl, dd, form { margin: 0; }
h1 { font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.3; }
h2 { font-size: 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
strong, a, p, h1, code { overflow-wrap: anywhere; }
small, .meta, .crumb { font-size: .82rem; color: var(--muted); }
time { white-space: nowrap; }
.shell { width: min(100% - 20px, 1040px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 2; background: white; padding: .5rem; }
.site-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.utility { background: #f7f7f7; border-bottom: 1px solid var(--line); }
.utility-row, .utility-links, .masthead, .main-nav, .account, .actions, .footer-inner {
  display: flex; align-items: center; flex-wrap: wrap;
}
.utility-row { gap: .25rem .7rem; min-height: 35px; font-size: 12px; }
.utility-links { gap: .65rem; }
.utility-links a { color: var(--muted); white-space: nowrap; }
.utility-links a + a { border-left: 1px solid #ddd; padding-left: 8px; }
.utility-links .mini-brand { color: var(--orange-dark); font-weight: 750; }
.utility-links .mini-brand::before {
  content: ""; display: inline-block; vertical-align: .03em; margin-right: .3rem;
  width: .62rem; height: .56rem; border-radius: 2px 2px 2px 0; background: var(--orange);
}
.account { gap: 10px; }
.account a, .account .account-link { color: #666; }
.text-button { color: var(--orange-dark); }
.text-button { background: none; border: 0; padding: 0; text-decoration: underline; text-align: left; }
.account .account-login, .account .account-register {
  border: 1px solid var(--orange); border-radius: 2px; padding: 2px 12px; font-weight: 400;
}
.account .account-login { color: #351900; background: var(--orange); border-color: var(--orange); }
.unread { display: inline-block; margin-left: .18rem; width: .42rem; height: .42rem; border-radius: 50%; background: #c52d20; vertical-align: middle; }
.masthead { display: none; gap: .85rem; min-height: 100px; }
.portal-page .masthead { display: flex; }
.wordmark { display: block; position: relative; width: 188px; height: 64px; line-height: 1; }
.wordmark:hover { text-decoration: none; }
.brand-bubble {
  position: absolute;
  inset: 2px auto auto 4px;
  display: grid;
  place-items: center;
  width: 132px;
  height: 46px;
  border-radius: 10px;
  background: #ff7500;
  color: #fff;
  font-size: 30px;
  font-weight: 750;
  text-shadow: 0 1px 2px #913800;
}
.brand-bubble::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -12px;
  border: 8px solid transparent;
  border-top-color: #ff7500;
  border-left-color: #ff7500;
}
.brand-signature { position: absolute; inset: auto auto 0 33px; color: #a64000; font-size: 14px; font-weight: 750; letter-spacing: 1px; }
.city-label { padding: .08rem .45rem; border: 1px solid #ccc; border-radius: 2px; color: var(--muted); font-size: .78rem; }
.searchbox { display: flex; width: 220px; height: 26px; margin-left: auto; min-width: 0; }
.searchbox input { flex: 1; width: 0; border-right: 0; border-radius: 2px 0 0 2px; padding: 0 8px; }
.searchbox button { width: 36px; background: #fff; border: 1px solid #ccc; }
.search-icon { display: inline-block; position: relative; width: 10px; height: 10px; border: 1.5px solid #666; border-radius: 50%; }
.search-icon::after { content: ""; width: 5px; height: 1.5px; background: #666; position: absolute; top: 7px; left: 6px; transform: rotate(45deg); }
.nav-band, .board-band { display: none; }
.portal-page .nav-band, .portal-page .board-band, .form-page .nav-band { display: block; }
.nav-band { background: var(--orange); }
.main-nav a {
  color: #fff; text-shadow: 0 1px 2px #883100; padding: 0 5px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; width: 100px; font-size: 18px; font-weight: 400;
}
.main-nav a:hover, .main-nav [aria-current="page"] { background: #e56800; text-decoration: none; }
.board-band { background: #f9f9f9; }
.board-nav { font-size: 17px; }
.board-nav nav { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 10px 0; }
.board-nav a { color: var(--ink); padding: 0 .3rem; line-height: 32px; text-align: center; }
.board-nav a:hover, .board-nav .selected { color: var(--orange-dark); background: var(--orange-light); }
.board-menu { display: none; }
main.shell { min-height: 60vh; padding-block: .75rem 1.65rem; }
.inner-page main.shell { width: min(100% - 20px, 980px); }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 280px); gap: 10px; margin-top: .65rem; }
.forum-info { border-color: var(--orange); }
.forum-info-name { display: flex; align-items: center; gap: .6rem; padding: .65rem; }
.forum-info-name .board-icon { width: 2.7rem; height: 2.7rem; font-size: 1rem; }
.forum-info .stats { grid-template-columns: 1fr; padding-block: .35rem; border-top: 1px solid var(--line); }
.board-post { width: 100%; margin-bottom: .75rem; }
.mobile-board-action { display: none; }
.forum-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .48rem .7rem; }
.forum-list-head { border-bottom: 2px solid #ff7500; padding-block: 0; }
.forum-tabs { display: flex; align-items: stretch; gap: 6px; }
.forum-tabs a { padding: 9px 13px; color: var(--ink); font-size: 18px; }
.forum-tabs [aria-current] { color: #a64000; font-weight: 750; }
.forum-search { display: flex; min-width: 0; font-size: .84rem; }
.forum-search input { width: min(10rem, 40vw); padding: .2rem .4rem; }
.forum-search .button { min-height: 30px; padding: .12rem .55rem; border-left: 0; }
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .65rem; }
.feature-card { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); color: var(--ink); font-size: .86rem; line-height: 1.36; }
.feature-card small { display: block; font-size: .74rem; }
.feature-thumb { flex: 0 0 auto; display: grid; place-items: center; width: clamp(40px, 8vw, 82px); height: 62px; background: #e1f0f8; color: #245776; }
.feature-card:nth-child(2) .feature-thumb { background: #e8f4e9; color: var(--green); }
.feature-card:nth-child(3) .feature-thumb { background: var(--orange-light); color: var(--orange-dark); }
.panel { background: var(--panel); border: 1px solid var(--line); min-width: 0; margin-bottom: .85rem; }
.panel-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .35rem .8rem; padding: .52rem .82rem; border-bottom: 1px solid var(--line); background: var(--soft); }
.panel-head h2 { color: var(--ink); }
.panel-head > span { color: var(--muted); font-size: .82rem; }
.panel-head h1 { font-size: 1.25rem; }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-tile { min-width: 0; display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; min-height: 3.45rem; border-bottom: 1px solid #eee; text-decoration: none; }
.board-tile:nth-child(odd) { border-right: 1px solid #eee1d1; }
.board-tile:hover { background: #fafafa; text-decoration: none; }
.board-icon, .avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 1.95rem; height: 1.95rem;
  color: var(--orange-dark); background: var(--orange-light); border: 1px solid #f1d5bc; font-weight: 750; border-radius: 2px;
}
.board-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.board-meta small { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.board-count { color: var(--muted); font: .82rem/1.2 ui-monospace, monospace; }
.stats { display: grid; grid-template-columns: 1fr 1fr; text-align: center; padding: .65rem; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd { color: var(--orange-dark); font-size: 1.35rem; font-weight: 750; }
.compact-list { padding: .25rem .7rem; font-size: .92rem; }
.compact-list li { padding: .45rem 0; border-bottom: 1px dotted var(--line); }
.compact-list li:last-child { border: 0; }
.info-panel p { padding: .7rem .8rem; font-size: .9rem; }
.thread-list li, .records li { border-bottom: 1px solid #eee1d1; padding: .65rem .82rem; }
.thread-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.thread-list li:last-child, .records li:last-child { border-bottom: 0; }
.thread-title-link { font-weight: 650; color: var(--ink); text-decoration: none; }
.meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.thread-row-main { flex: 1; min-width: 0; }
.thread-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #eaf4f8; color: #325975; font-weight: 750; }
.row-stats { display: flex; flex: 0 0 auto; gap: .85rem; color: var(--muted); text-align: center; font-size: .75rem; }
.row-stats b { display: block; color: #555; font-size: .88rem; }
.tag, .pill { display: inline-block; padding: .01rem .3rem; color: var(--orange-dark); background: var(--orange-light); border: 1px solid #efcdad; font-size: .72rem; line-height: 1.4; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.page-heading {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 1rem; margin: .7rem 0 .85rem;
}
.page-heading p { color: var(--muted); margin-top: .2rem; font-size: .9rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: .35rem .75rem; border: 1px solid #ccc; border-radius: 2px; text-decoration: none;
  background: #fff; color: var(--orange-dark); font-weight: 650; line-height: 1.3;
}
.button:hover { background: var(--orange-light); text-decoration: none; }
.button.primary { background: var(--orange-dark); color: #fff; border-color: var(--orange-dark); }
.button.primary:hover { background: #893500; }
.button.green { background: var(--green); border-color: var(--green); color: #fff; }
.button.green:hover { background: #2e6333; }
.actions { gap: .5rem; }
.tabs { justify-content: flex-start; gap: .25rem .55rem; border-top: 1px solid var(--line); }
.tabs a { padding: .15rem .55rem; border-radius: 2px; color: var(--muted); font-size: .84rem; }
.tabs [aria-current] { color: #fff; background: var(--orange-dark); font-weight: 700; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: .75rem; color: var(--muted); font-size: .88rem; }
.empty, .form-body, .form-extra { padding: .85rem; }
.narrow { max-width: 40rem; margin-inline: auto; }
.form-page .narrow { margin-top: 1.1rem; }
.auth-card { max-width: 27rem; }
.form-heading { border-bottom: 1px solid var(--line); padding: .8rem 0 .65rem; }
.form-heading h1 { font-size: 1.5rem; }
.auth-card .panel-head { background: #fff; padding: .6rem .85rem .4rem; }
.auth-card .panel-head h2 { color: var(--orange-dark); border-bottom: 2px solid var(--orange); padding-bottom: .22rem; }
.form-body > p { margin-bottom: .8rem; }
.form-body label { display: block; font-weight: 650; margin-bottom: .24rem; }
.form-body input:not([type=hidden]), .form-body textarea, .form-body select { display: block; width: 100%; max-width: 100%; }
.form-body textarea { resize: vertical; }
input, textarea, select { color: var(--ink); background: var(--field); border: 1px solid #ccc; border-radius: 2px; padding: .4rem .55rem; min-width: 0; }
input[type=number] { width: 5rem; }
.helptext, .form-body ul:not(.errorlist) { color: var(--muted); font-size: .82rem; }
.errorlist { color: #9a2217; margin-block: .4rem; font-size: .9rem; }
.form-extra, .filters { border-top: 1px solid var(--line); }
.filters {
  display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; padding: .75rem; border-top: 0;
}
.filters label { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.filters input, .filters select { max-width: 100%; }
.flash { margin-bottom: .65rem; border: 1px solid var(--line); background: #fff0e3; padding: .5rem .75rem; }
.flash.error { background: #ffe6dc; }
.secret { background: var(--orange-light); border: 1px dashed #d9a476; padding: .75rem; user-select: all; }
.floor {
  display: grid; grid-template-columns: 10.625rem minmax(0, 1fr); background: var(--panel);
  border: 1px solid var(--line); border-top: 0; scroll-margin-top: .8rem;
}
.floor:target { border-color: var(--orange); }
.floor-user {
  background: #fafafa; border-right: 1px solid var(--line); padding: .75rem .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; min-width: 0;
}
.avatar { width: 2.65rem; height: 2.65rem; font-size: 1.15rem; }
.floor-main { min-width: 0; padding: .65rem .82rem; }
.floor-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .82rem; padding-bottom: .45rem; border-bottom: 1px dotted var(--line); margin-bottom: .7rem; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
blockquote { margin: 0 0 .75rem; padding: .5rem .75rem; background: #f7f7f7; border-left: 3px solid #ccc; overflow-wrap: anywhere; }
.attachments { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.attachments a { max-width: 100%; }
.attachments img { display: block; width: auto; height: auto; max-width: min(100%, 29rem); max-height: 26rem; object-fit: contain; }
.floor-actions { margin-top: .7rem; font-size: .85rem; }
.mod-strip, .mod-nav { background: var(--soft); border: 1px solid var(--line); margin-bottom: .7rem; padding: .55rem .7rem; }
.mod-nav { gap: .65rem 1.1rem; }
.profile { padding: .85rem; }
.profile-main { display: flex; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.profile > p, .profile .actions { margin-top: .65rem; }
.records li > form, .records li > .actions, .records li > p { margin-top: .3rem; }
.mail-meta { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.topic-actions { margin: 12px 0; }
.topic-actions .button { min-height: 32px; }
.topic-meta { border: 1px solid var(--line); border-top: 0; padding: 8px 12px; }
.topic-strip { border: 1px solid var(--line); background: #fafafa; padding: .37rem .65rem; margin-top: .65rem; font-size: .82rem; }
.topic-strip a { display: inline-block; background: #e8f5e9; color: var(--green); border-radius: 2px; padding: .05rem .45rem; font-weight: 700; }
.topic-head { border: 1px solid var(--line); border-top: 0; margin: 0; padding: .7rem .75rem; }
.topic-head h1 { font-size: 18px; font-weight: 400; }
.topic-counts { display: flex; flex-wrap: wrap; gap: .25rem .72rem; }
.topic-counts b { color: var(--orange-dark); }
.thread-page .mod-strip { margin: 0; border-top: 0; }
.thread-page #reply { margin-top: .75rem; }
.floor-user .avatar { width: 130px; height: 130px; margin: .25rem 0; font-size: 1.8rem; background: #e8f2f8; color: #315775; border-color: #d7e5ef; }
.floor-main .post-body { min-height: 3rem; }
.pagination > * { border: 1px solid var(--line); border-radius: 2px; padding: .12rem .45rem; }
.pagination [aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.crumb strong { color: var(--orange-dark); }
.footer { border-top: 2px solid var(--orange); margin-top: 20px; padding: 20px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.footer-links a { color: #626262; font-size: 13px; }
.footer-links a + a { padding-left: 8px; border-left: 1px solid #ddd; }
.footer-info { text-align: center; color: #626262; font-size: 12px; }
.float-links { display: none; }
@media (min-width: 1150px) {
  .float-links { display: flex; position: fixed; top: 50%; right: 0; width: 42px; flex-direction: column; transform: translateY(-50%); background: #2d2d2d; z-index: 2; }
  .float-links a { display: grid; place-items: center; min-height: 50px; border-bottom: 1px solid #444; color: #fff; font-size: 11px; line-height: 1.2; }
  .float-links a:hover { background: #a64000; }
  .float-links span { font-size: 19px; }
}
@media (max-width: 850px) {
  .main-nav a { min-width: 0; flex: 1; padding-inline: .48rem; font-size: .95rem; }
  .forum-layout { grid-template-columns: minmax(0, 1fr) minmax(11rem, 25%); gap: .55rem; }
  .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell, .inner-page main.shell { width: calc(100% - 1.15rem); }
  .utility-row { min-height: 0; padding-block: .28rem .4rem; gap: .23rem .55rem; }
  .utility-links { gap: .55rem; font-size: .78rem; }
  .utility-links a { padding-block: .25rem; }
  .account { margin-left: auto; gap: .22rem .45rem; font-size: .78rem; }
  .account .account-login, .account .account-register { padding: .18rem .38rem; }
  .searchbox { width: 100%; height: 36px; order: 2; font-size: .93rem; }
  .searchbox input { flex: 1 1 auto; width: 0; padding: .33rem .5rem; }
  .searchbox button { padding-inline: .86rem; }
  .masthead { gap: .6rem; min-height: 65px; }
  .wordmark { width: 136px; transform: scale(.8); transform-origin: center left; }
  .main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .main-nav a { width: 100%; padding-inline: .12rem; font-size: .86rem; min-height: 39px; }
  .board-nav .desktop-boards { display: none; }
  .board-menu { display: block; }
  .board-menu summary { padding: .48rem .15rem; }
  .board-menu nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .board-menu a { padding: .55rem .1rem; font-size: .82rem; }
  .board-tile { padding: .48rem .35rem; gap: .32rem; min-height: 48px; }
  .board-icon { width: 1.5rem; height: 1.55rem; font-size: .78rem; }
  .board-meta strong { font-size: .875rem; }
  .board-meta small { font-size: .75rem; }
  .board-count { font-size: .72rem; }
  .forum-layout { grid-template-columns: minmax(0, 1fr); }
  .forum-sidebar .board-post { display: none; }
  .mobile-board-action { display: flex; justify-content: flex-end; margin-bottom: .55rem; }
  .forum-sidebar .forum-info { margin-bottom: 0; }
  .thread-list li, .records li { padding-inline: .6rem; gap: .5rem; }
  .row-views { display: none; }
  .forum-tabs a { font-size: 15px; padding-inline: 7px; }
  .floor { grid-template-columns: minmax(0, 1fr); }
  .floor-user { align-items: center; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: .4rem .57rem; }
  .floor-user .avatar { width: 1.8rem; height: 1.8rem; margin: 0; font-size: .85rem; }
  .floor-main { padding: .55rem .6rem; }
  .floor-actions a, .floor-actions button { display: inline-flex; align-items: center; min-height: 38px; }
}

.search-hero { background: #fff3e8; padding: 22px 18px; margin: 8px 0 16px; }
.search-hero h1 { font-size: 22px; }
.search-hero .filters { padding: 10px 0 0; align-items: end; }
.search-hero .filters label { min-width: 0; gap: 6px; font-size: 14px; }
.search-hero .filters label:first-child { flex: 1; min-width: min(100%, 230px); }
.search-hero .filters input { flex: 1; }
.search-results .panel-head { background: #fff; border-bottom: 2px solid #ff7500; }
.message-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; }
.message-nav a { display: block; border-left: 3px solid transparent; padding: 11px 13px; color: #626262; font-size: 14px; }
.message-nav [aria-current] { border-left-color: #ff7500; color: #a64000; background: #fff3e8; font-weight: 700; }
.profile { padding: 24px; }
.profile .avatar { width: 90px; height: 90px; border-radius: 50%; }
.form-heading { border-bottom: 2px solid #ff7500; }
.form-page .narrow { width: min(100%, 420px); margin-top: 30px; }
.auth-card { padding: 24px 36px; border-radius: 4px; }
.auth-card .panel-head, .auth-card .form-body, .auth-card .form-extra { padding-inline: 0; }
.auth-card .panel-head h2 { font-size: 15px; }
.auth-card .primary { width: 100%; }

@media (max-width: 640px) {
  .message-layout { grid-template-columns: minmax(0, 1fr); }
  .message-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .message-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; }
  .message-nav [aria-current] { border-bottom-color: #ff7500; }
  .profile { padding: 14px; }
  .profile .avatar { width: 54px; height: 54px; }
  .auth-card { padding: 16px 20px; }
  .form-page .narrow { margin-top: 14px; }
}

.related-strip { display: flex; min-width: 0; min-height: 108px; margin-bottom: 10px; border: 1px solid #eee; }
.related-strip h2 {
  display: grid; align-content: center; justify-items: center; flex: 0 0 60px;
  background: #e8f5e9; color: #387d3d; text-align: center; font-size: 16px; line-height: 1.4;
}
.related-strip ul { display: flex; flex: 1; flex-wrap: wrap; gap: 2px; padding: 2px; }
.related-strip li { flex: 1 1 120px; min-width: 0; }
.related-strip a {
  display: flex; align-items: end; height: 104px; color: #fff;
  background: linear-gradient(135deg, #2196f3, #21cbf3); font-size: 13px;
}
.related-strip li:nth-child(2n) a { background: linear-gradient(135deg, #ff9800, #ff5722); }
.related-strip li:nth-child(3n) a { background: linear-gradient(135deg, #0ba360, #3cba92); }
.related-strip a span { width: 100%; padding: 6px; background: #222b; line-height: 1.4; }
@media (max-width: 640px) {
  .related-strip { display: none; }
}
