* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.82;
  color: #243042;
  background: linear-gradient(180deg, #f4fbfb 0%, #f9fbf7 420px, #f7faf8 100%);
}
a { color: #16736b; text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #dbe8e5;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand { font-weight: 760; color: #1b2838; }
main { width: min(1180px, calc(100% - 40px)); margin: 42px auto 84px; }
.hero, .panel, .thread-head, .post {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce9e4;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(46, 74, 77, 0.06);
}
.hero, .thread-head { padding: 42px; margin-bottom: 24px; }
.panel { padding: 30px; margin-top: 18px; }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.18; margin: 0 0 18px; color: #162235; font-weight: 760; }
h2 { font-size: 22px; margin: 0 0 20px; color: #243042; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  display: block;
  min-height: 148px;
  background: #ffffff;
  border: 1px solid #dce9e4;
  border-radius: 8px;
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: #9ccfc6; box-shadow: 0 16px 36px rgba(22, 115, 107, .10); text-decoration: none; }
.card h3 { margin: 0 0 10px; color: #162235; font-size: 21px; }
.card p { margin: 0 0 14px; }
.meta, .eyebrow, .card p, .notice, .attachments span, .pager { color: #6b7f83; font-size: 14px; }
.eyebrow { margin: 0 0 10px; color: #b65f4a; font-weight: 700; }
.eyebrow a { color: #b65f4a; }
.forum-tree { list-style: none; padding-left: 0; margin: 0; display: grid; gap: 12px; }
.forum-tree .forum-tree { margin-top: 12px; padding-left: 20px; border-left: 2px solid #e0ece8; }
.forum-tree li { padding: 14px 0 2px; border-top: 1px solid #edf3f1; }
.forum-tree li:first-child { border-top: 0; }
.thread-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.thread-list li { border-top: 1px solid #e3eeea; padding: 18px 0; }
.thread-list li:first-child { border-top: 0; padding-top: 0; }
.thread-list strong { font-size: 18px; color: #162235; }
.pager { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pager a, .pager span { border: 1px solid #dce9e4; border-radius: 6px; padding: 4px 9px; background: #fff; }
.pager .current { color: #162235; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0 0; }
.stats div { border: 1px solid #dce9e4; border-radius: 8px; padding: 12px 14px; background: #f7fbfa; }
.stats dt { color: #6b7f83; font-size: 13px; }
.stats dd { margin: 0; font-weight: 700; }
.back-link { display: inline-block; margin-bottom: 16px; color: #60777a; }
.post { width: min(880px, 100%); margin: 22px auto; padding: 34px 38px; }
.post header { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e3eeea; padding-bottom: 14px; margin-bottom: 24px; }
.post header strong { color: #172033; font-size: 18px; }
.content { font-size: 17px; }
.content p { margin: 0 0 1.15em; }
.content blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid #86c5bc; background: #f3fbf9; }
.attachments { margin-top: 20px; border-top: 1px dashed #cddfd9; padding-top: 14px; }
.attachments ul { margin: 8px 0 0; padding-left: 20px; }
.missing-asset { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #edf8f6; color: #16736b; }
.empty { color: #8aa0a6; }
@media (max-width: 640px) {
  .site-header, .post header { display: block; }
  h1 { font-size: 26px; }
  main { width: min(100% - 20px, 1120px); margin-top: 22px; }
  .hero, .panel, .thread-head, .post { padding: 20px; }
}
