:root {
  --bg: #101010;
  --bg-panel: #171717;
  --bg-panel-2: #1c1c1c;
  --border: #262626;
  --border-strong: #333;
  --text: #e6e6e6;
  --muted: #8f8f8f;
  --accent: #00bfff;
  --accent-dim: #0a7ea4;
  --danger: #e61515;
  --row-odd: #161616;
  --row-even: #1a1a1a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- top navigation ---------- */
.gs-navbar {
  background: #0b0b0b;
  border-bottom: 1px solid #000;
  position: sticky;
  top: 0;
  z-index: 20;
}
.gs-nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.gs-nav-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.gs-nav-container li a {
  display: block;
  padding: 14px 18px;
  color: #bdbdbd;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.gs-nav-container li a:hover {
  color: #fff;
  background: #151515;
  text-decoration: none;
}
.gs-nav-container li.active a { color: var(--accent); }
.gs-nav-container .home-icon { font-size: 15px; letter-spacing: 0; }

.gs-divider {
  height: 3px;
  border-bottom: 1px solid #000;
  background: linear-gradient(to right, #1e5799 0%, #f300ff 50%, #e0ff00 100%);
}

/* ---------- forum shell ---------- */
.gs-forum {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}

.gs-header {
  text-align: center;
  padding: 18px 0 26px;
}
.gs-header h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
  color: #f2f2f2;
}
.gs-header h1 a { color: inherit; }
.gs-header h1 a:hover { text-decoration: none; }
.gs-header h1 span { color: var(--accent); }
.gs-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .5px;
}

.notice {
  border: 1px solid #2a3a40;
  background: #122127;
  color: #a9d9e6;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 20px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.crumbs a { color: #b9b9b9; }

/* ---------- tables ---------- */
.blocktable {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--bg-panel);
}
.blocktable > h2 {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #cfcfcf;
  background: #131313;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}
table.grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
table.grid thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding: 9px 16px;
  background: #141414;
  border-bottom: 1px solid var(--border);
  letter-spacing: .6px;
}
table.grid tbody tr:nth-child(odd) { background: var(--row-odd); }
table.grid tbody tr:nth-child(even) { background: var(--row-even); }
table.grid tbody tr:hover { background: #1f2629; }
table.grid td {
  padding: 13px 16px;
  border-bottom: 1px solid #202020;
  vertical-align: middle;
}
table.grid tbody tr:last-child td { border-bottom: 0; }

th.tcl, td.tcl { width: auto; }
th.tc2, td.tc2, th.tc3, td.tc3 { width: 80px; text-align: center; }
th.tcr, td.tcr { width: 220px; }

.forum-name {
  font-size: 16px;
  font-weight: 600;
  color: #f0f0f0;
}
.forum-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.forum-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: .5px;
}
.badge-sticky { background: #123d4d; color: #7fe3ff; border: 1px solid #1d6076; }
.badge-closed { background: #3a1414; color: #ff9a9a; border: 1px solid #6b1e1e; }

.count { color: #c7c7c7; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.lastpost { font-size: 12px; color: var(--muted); line-height: 1.5; }
.lastpost .author { color: #d8d8d8; }
.lastpost time { white-space: nowrap; }

/* ---------- topic / post ---------- */
.topic-head {
  margin: 0 0 18px;
}
.topic-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  color: #f5f5f5;
  font-weight: 700;
}
.topic-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.post {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bg-panel);
}
.post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #131313;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.post-head .floor { color: #cfcfcf; }
.post-body {
  display: grid;
  grid-template-columns: 180px 1fr;
}
.post-author {
  padding: 18px 16px;
  border-right: 1px solid #202020;
  background: #151515;
}
.post-author .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  word-break: break-all;
}
.post-author .title {
  font-size: 12px;
  color: #9a9a9a;
  margin-top: 2px;
}
.post-author dl {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.post-author dt { display: none; }
.post-author dd { margin: 0 0 2px; }
.post-content {
  padding: 18px 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.post-content p { margin: 0 0 12px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content strong { color: #fff; }
.post-content blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent-dim);
  background: #121212;
  color: #c9c9c9;
  border-radius: 0 4px 4px 0;
}
.post-content pre {
  margin: 12px 0;
  padding: 12px 14px;
  background: #0c0c0c;
  border: 1px solid #242424;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
.post-content code {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  color: #d6d6d6;
}
.post-content img.post-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
  border: 1px solid #262626;
}
.post-content .video {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 12px 0;
}
.post-content .video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}
.post-content .u { text-decoration: underline; }
.post-content ul, .post-content ol { margin: 10px 0; padding-left: 24px; }
.post-content li { margin: 3px 0; }

/* ---------- landing ---------- */
.landing {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.landing h1 {
  margin: 0;
  font-size: 82px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #f5f5f5;
  line-height: 1;
}
.landing h1 span { color: var(--accent); }
.landing .tagline {
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 1px;
  margin: 18px 0 30px;
}
.landing .btn {
  display: inline-block;
  padding: 12px 34px;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  transition: background .15s, color .15s;
}
.landing .btn:hover {
  background: var(--accent);
  color: #06171d;
  text-decoration: none;
}
.landing-footer {
  text-align: center;
  color: #565656;
  font-size: 12px;
  padding: 0 20px 30px;
}

/* ---------- footer ---------- */
.gs-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .gs-header h1 { font-size: 34px; }
  .landing h1 { font-size: 52px; }
  table.grid { table-layout: auto; }
  table.grid thead th { padding: 8px 8px; font-size: 11px; }
  table.grid td { padding: 11px 8px; }
  th.tcr, td.tcr { display: none; }
  th.tc2, td.tc2, th.tc3, td.tc3 { width: 42px; white-space: nowrap; text-align: center; }
  .post-body { grid-template-columns: 1fr; }
  .post-author {
    border-right: 0;
    border-bottom: 1px solid #202020;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 16px;
  }
  .post-author dl { margin: 0; display: flex; gap: 12px; }
  .post-author dd:not(.reg) { display: none; }
  .post-content { padding: 16px; }
}
