:root {
  --ink: #102033;
  --muted: #5d6a7a;
  --line: #dbe3ec;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --navy: #12385f;
  --navy-2: #0f2f50;
  --teal: #0f8b8d;
  --orange: #f47b20;
  --green: #2f9e61;
  --warn: #c66a16;
  --shadow: 0 18px 42px rgba(18, 56, 95, 0.12);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 227, 236, 0.86);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 8px 20px rgba(15, 139, 141, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #26384b;
  font-size: 15px;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}

.nav-action-link {
  color: #405064;
  font-size: 14px;
  font-weight: 800;
}

.nav-action-link:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(244, 123, 32, 0.22);
}

.btn-primary:hover {
  background: #e56d13;
}

.btn-secondary {
  border-color: rgba(18, 56, 95, 0.18);
  background: #fff;
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 88%);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 46px;
  padding: 52px 0 70px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  border-radius: 999px;
  background: rgba(15, 139, 141, 0.08);
  color: #0b7375;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 68px);
  color: var(--navy-2);
}

.lead {
  margin: 20px 0 0;
  color: #47586b;
  font-size: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 12px;
}

.trust-item strong {
  display: block;
  font-size: 18px;
  color: var(--navy);
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.data-board {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.data-board-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(219, 227, 236, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.data-cell {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.data-cell:last-child {
  border-right: 0;
}

.data-cell strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
}

.data-cell span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.disclosure {
  display: block;
  margin-top: 8px;
  color: #7b8795;
  font-size: 12px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 56, 95, 0.08);
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  width: min(280px, 70%);
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(16, 32, 51, 0.12);
}

.hero-badge strong {
  display: block;
  color: var(--navy);
}

.hero-badge span {
  color: var(--muted);
  font-size: 13px;
}

main section,
.page-section {
  padding: 78px 0;
}

.section-alt {
  background: var(--soft);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy-2);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.case-card,
.price-card,
.form-panel,
.dashboard-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.card {
  padding: 22px;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf6f6;
  color: #0d7779;
  margin-bottom: 16px;
}

.card h3,
.case-card h3,
.price-card h3,
.dashboard-panel h3 {
  margin: 0 0 10px;
  font-size: 19px;
  color: var(--navy);
}

.card p,
.case-card p,
.price-card p,
.dashboard-panel p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

.flow {
  display: grid;
  gap: 12px;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.flow-step strong {
  display: block;
  color: var(--navy);
}

.flow-step span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.channel-list {
  display: grid;
  gap: 12px;
}

.channel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff4eb;
  color: #a94f08;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf4fb;
  color: var(--navy);
  font-size: 14px;
}

td {
  color: #405064;
}

tr:last-child td {
  border-bottom: 0;
}

.price-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price {
  margin: 12px 0;
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
}

.price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.features {
  margin: 12px 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #44556a;
}

.features li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
}

.features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.price-card .btn {
  margin-top: auto;
}

.case-card {
  overflow: hidden;
}

.case-card .case-top {
  padding: 18px;
  background: linear-gradient(135deg, #12385f, #0f8b8d);
  color: #fff;
}

.case-card .case-top span {
  display: block;
  opacity: 0.78;
  font-size: 13px;
}

.case-card .case-body {
  padding: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  color: var(--navy);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.page-hero {
  background: linear-gradient(180deg, #f5f9fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  padding: 72px 0 58px;
}

.page-hero h1 {
  max-width: 900px;
}

.breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.form-panel {
  padding: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.tool-output {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(15, 139, 141, 0.24);
  background: #eef9f9;
  color: #184a4c;
}

.tool-output strong {
  color: var(--navy);
}

.tool-output ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.tool-output.is-warning {
  background: #fff4eb;
  border-color: rgba(244, 123, 32, 0.28);
  color: #7a3b05;
}

.library-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.library-platform-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.library-platform-card strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.library-platform-card p {
  margin: 10px 0 14px;
  color: #405064;
  line-height: 1.7;
}

.library-platform-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-platform-card a {
  padding: 6px 8px;
  border-radius: 6px;
  background: #eef6f6;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.library-section-head {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.library-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.library-list .article-item h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-resource-grid,
.library-route-grid {
  display: grid;
  gap: 16px;
}

.library-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.library-resource-card,
.library-route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(17, 36, 60, 0.05);
}

.library-resource-card {
  padding: 18px;
}

.library-resource-card span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef6f6;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.library-resource-card h3 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.45;
}

.library-resource-card ul,
.library-route-card ol {
  margin: 0;
  padding-left: 18px;
  color: #405064;
  line-height: 1.75;
}

.library-resource-card li + li,
.library-route-card li + li {
  margin-top: 6px;
}

.library-route-card {
  padding: 18px 18px 20px;
}

.library-route-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 18px;
}

label {
  font-weight: 700;
  color: #23364a;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 139, 141, 0.16);
  border-color: var(--teal);
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.form-message {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  display: none;
}

.form-message.success {
  display: block;
  background: #eaf8f0;
  color: #17623b;
  border: 1px solid rgba(47, 158, 97, 0.26);
}

.form-message.error {
  display: block;
  background: #fff1ed;
  color: #9b321b;
  border: 1px solid rgba(196, 69, 39, 0.26);
}

.side-note {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: sticky;
  top: 96px;
}

.side-note h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
}

.side-nav {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 16px;
  align-self: start;
}

.side-nav strong {
  display: block;
  margin-bottom: 12px;
}

.side-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 26px;
}

.dashboard-panel {
  padding: 20px;
  margin-bottom: 18px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #ecf7ff;
  color: #176397;
}

.status.pass {
  background: #eaf8f0;
  color: #17623b;
}

.status.reject {
  background: #fff1ed;
  color: #9b321b;
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.forum-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #31445a;
  font-size: 13px;
  font-weight: 700;
}

.forum-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.thread-list {
  display: grid;
  gap: 12px;
}

.thread-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(16, 32, 51, 0.04);
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-weight: 800;
}

.thread-card h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 18px;
}

.thread-card p {
  margin: 0;
  color: var(--muted);
}

.thread-meta,
.thread-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #778596;
  font-size: 12px;
}

.thread-stats {
  min-width: 92px;
  justify-content: flex-end;
  align-content: start;
}

.thread-stats span {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #435469;
  font-weight: 700;
}

.compose-box {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compose-box h3 {
  margin-bottom: 14px;
  color: var(--navy);
}

.community-note {
  padding: 14px;
  border: 1px solid rgba(244, 123, 32, 0.28);
  border-radius: 8px;
  background: #fff7f0;
  color: #7a3b05;
  font-size: 13px;
}

.auth-box {
  margin-top: 0;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
}

.auth-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.auth-switch button.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 5px rgba(13, 29, 46, 0.08);
}

.gh-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.gh-repo-head {
  padding: 18px 20px 0;
  background: #f6f8fa;
  border-bottom: 1px solid var(--line);
}

.gh-repo-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.gh-repo-title span {
  color: var(--muted);
  font-weight: 600;
}

.gh-tabs {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  overflow-x: auto;
}

.gh-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  color: #425466;
  font-weight: 700;
  white-space: nowrap;
}

.gh-tab.active {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.gh-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.gh-search {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  padding: 8px 12px;
  color: #33475b;
  background: #f6f8fa;
}

.gh-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fa;
}

.gh-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(18, 56, 95, 0.12);
  background: #ddf4ff;
  color: #0969da;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gh-label.orange {
  background: #fff1e5;
  color: #9a4b05;
}

.gh-label.green {
  background: #dafbe1;
  color: #1a7f37;
}

.gh-label.red {
  background: #ffebe9;
  color: #cf222e;
}

.gh-discussion-list {
  display: grid;
}

.gh-discussion-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 96px;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.gh-discussion-row:hover {
  background: #f6f8fa;
}

.gh-discussion-row:last-child {
  border-bottom: 0;
}

.gh-state {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #1a7f37;
  border-radius: 50%;
  color: #1a7f37;
  font-size: 12px;
  font-weight: 900;
}

.gh-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.gh-row-title h3 {
  font-size: 17px;
  color: #1f2937;
}

.gh-row-title a:hover h3 {
  color: #0969da;
}

.gh-row-body {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.gh-row-meta {
  color: #6e7781;
  font-size: 12px;
}

.gh-comments {
  color: #57606a;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.gh-sidebar {
  display: grid;
  gap: 16px;
}

.gh-side-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.gh-side-section:last-child {
  border-bottom: 0;
}

.gh-side-section h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 16px;
}

.gh-category-list {
  display: grid;
  gap: 8px;
}

.gh-category {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #425466;
  font-size: 14px;
}

.community-hero {
  background: #f6f8fa;
  border-bottom: 1px solid var(--line);
}

.community-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
}

.community-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 56px);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.community-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.community-stat strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
}

.community-stat span {
  color: var(--muted);
  font-size: 13px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.portal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 18px;
}

.portal-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fa;
}

.portal-panel-head h2,
.portal-panel-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-tab {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #425466;
  font-size: 13px;
  font-weight: 700;
}

.portal-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.hot-topic {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.hot-topic:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf4fb;
  color: var(--navy);
  font-weight: 900;
}

.rank-num.top {
  background: #fff1e5;
  color: #a94f08;
}

.hot-topic h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #1f2937;
}

.hot-topic p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hot-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6e7781;
  font-size: 12px;
}

.hot-score {
  color: #57606a;
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.board-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.board-card h3 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 17px;
}

.board-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-list {
  display: grid;
}

.article-item {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.article-item:last-child {
  border-bottom: 0;
}

.article-item h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

.article-item p {
  margin: 0;
  color: var(--muted);
}

.ticker-list {
  display: grid;
  gap: 10px;
}

.ticker-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  color: #405064;
  font-size: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ticker-time {
  color: var(--teal);
  font-weight: 800;
}

.tgb-wrap {
  background: #f5f7fa;
}

.tgb-top {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tgb-top-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  color: #405064;
  font-size: 14px;
}

.tgb-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-weight: 800;
}

.tgb-mini-links a {
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.tgb-mini-links a:hover,
.tgb-mini-links a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tgb-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 70px;
}

.tgb-channel-map {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 210px;
  gap: 14px;
  margin-bottom: 16px;
}

.tgb-logo-panel,
.tgb-channel-panel,
.tgb-login-panel,
.tgb-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tgb-logo-panel {
  padding: 18px;
}

.tgb-logo-panel strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
}

.tgb-logo-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tgb-channel-panel {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.tgb-channel-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.tgb-channel-row strong {
  color: var(--navy);
}

.tgb-channel-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #405064;
  font-size: 14px;
}

.tgb-login-panel {
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: center;
}

.tgb-login-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tgb-pulse-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.tgb-pulse-strip div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tgb-pulse-strip strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.tgb-pulse-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tgb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.tgb-layout > *,
.portal-layout > *,
.tgb-card,
.portal-panel {
  min-width: 0;
}

.tgb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tgb-tabs a,
.tgb-tabs button {
  padding: 13px 18px;
  color: #405064;
  font-weight: 800;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.tgb-tabs a.active,
.tgb-tabs button.active {
  color: var(--orange);
  background: #fff7f0;
}

.tgb-control-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.tgb-control-bar label {
  color: var(--navy);
  font-weight: 800;
}

.tgb-control-bar input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.tgb-control-bar input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.12);
}

.tgb-control-bar button,
.tgb-subtabs button,
.tgb-sort button {
  border: 0;
  color: #405064;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.tgb-control-bar button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tgb-banner {
  position: relative;
  min-height: 112px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #12385f, #0f8b8d);
  color: #fff;
  overflow: hidden;
}

.tgb-carousel-track {
  position: relative;
  min-height: 112px;
}

.tgb-carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 18px 88px 18px 18px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.tgb-carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.tgb-banner strong {
  display: block;
  font-size: 22px;
  line-height: 1.32;
}

.tgb-banner span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.tgb-carousel-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 2;
}

.tgb-carousel-controls button {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.tgb-carousel-controls [data-home-carousel-dot] {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.46);
}

.tgb-carousel-controls button.active {
  background: #fff;
  color: var(--teal);
}

.tgb-subtabs,
.tgb-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #405064;
  font-size: 14px;
}

.tgb-sort {
  background: #f6f8fa;
}

.tgb-subtabs span,
.tgb-sort span {
  font-weight: 700;
}

.tgb-subtabs button.active,
.tgb-sort button.active {
  color: var(--orange);
}

.tgb-tab-note {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #fffaf5;
  color: #7a3b05;
  font-size: 14px;
  line-height: 1.55;
}

.tgb-feed {
  background: #fff;
}

.tgb-feed-item[hidden],
.tgb-table tr[hidden] {
  display: none;
}

.tgb-feed-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 100px;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.tgb-feed-item h3 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 18px;
}

.tgb-feed-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tgb-feed-stat {
  color: #6e7781;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.tgb-feed-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tgb-feed-actions button,
.tgb-mini-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #405064;
  font-weight: 700;
  cursor: pointer;
}

.tgb-feed-actions button.active,
.tgb-mini-action.active {
  border-color: rgba(244, 123, 32, 0.32);
  background: #fff7f0;
  color: var(--orange);
}

.tgb-empty {
  padding: 24px 16px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.tgb-more-row {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.tgb-more-row[hidden] {
  display: none;
}

.tgb-more-row button {
  min-width: 168px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fa;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.tgb-more-row button:hover {
  border-color: rgba(15, 139, 141, 0.36);
  background: #eefafa;
  color: var(--teal);
}

.tgb-table {
  width: 100%;
  min-width: 820px;
}

.tgb-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.tgb-table td,
.tgb-table th {
  padding: 12px 14px;
  font-size: 14px;
}

.tgb-side {
  display: grid;
  gap: 16px;
}

.tgb-card-head {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fa;
  color: var(--navy);
  font-weight: 900;
}

.tgb-card-body {
  padding: 14px;
}

.tgb-section-gap {
  margin-top: 16px;
}

.tgb-rank-list {
  display: grid;
  gap: 12px;
}

.tgb-rank-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  color: #405064;
  font-size: 14px;
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.tgb-rank-item strong {
  display: block;
  color: var(--navy);
}

.tgb-rank-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff1e5;
  color: #a94f08;
  font-weight: 900;
}

.tgb-warning {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(244, 123, 32, 0.24);
  border-radius: 8px;
  background: #fff7f0;
  color: #7a3b05;
  font-size: 14px;
}

.tgb-seo-topic {
  margin-bottom: 16px;
  padding: 18px;
}

.tgb-topic-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef6f6;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.tgb-seo-topic h1,
.tgb-seo-topic h2 {
  margin-top: 10px;
  color: var(--navy);
  font-size: 24px;
}

.tgb-seo-topic p {
  margin: 8px 0 0;
  color: #405064;
  line-height: 1.75;
}

.tgb-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.tgb-seo-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tgb-seo-box h3 {
  color: var(--navy);
  font-size: 16px;
}

.tgb-seo-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #405064;
  line-height: 1.75;
}

.tgb-seo-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.tgb-seo-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.tgb-seo-list a span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.news-detail {
  max-width: 920px;
  margin: 0 auto 16px;
  padding: 24px;
}

.news-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.news-detail h1 {
  margin-top: 14px;
  color: var(--navy);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.22;
}

.news-detail-summary {
  margin-top: 12px;
  color: #405064;
  font-size: 18px;
  line-height: 1.8;
  white-space: pre-line;
}

.news-detail-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.news-detail-block h2 {
  color: var(--navy);
  font-size: 20px;
}

.news-detail-block p,
.news-detail-block li {
  color: #405064;
  line-height: 1.8;
}

.news-detail-block ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.news-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.news-detail-related {
  max-width: 920px;
  margin: 0 auto 24px;
}

.thread-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.thread-stat-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--navy);
  font-weight: 800;
}

.thread-replies {
  padding: 0;
  overflow: hidden;
}

.thread-reply {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.thread-reply-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--navy);
  font-weight: 900;
}

.thread-reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.thread-reply-meta strong {
  color: var(--navy);
}

.thread-reply p,
.thread-empty {
  margin-top: 6px;
  color: #405064;
  line-height: 1.75;
  white-space: pre-line;
}

.thread-empty {
  padding: 18px;
}

.thread-reply-action {
  margin-top: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.thread-reply-action:hover {
  color: var(--orange);
}

.thread-reply-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.thread-reply-form-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.thread-reply-form-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.thread-reply-form-head span {
  color: var(--muted);
  font-size: 14px;
}

.thread-reply-form textarea {
  min-height: 120px;
  text-align: left;
  background: #fff;
}

.thread-reply-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.thread-reply-form-actions .btn {
  width: auto;
}

.thread-reply-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.thread-reply-message.error {
  color: #b42318;
}

.thread-reply-message.success {
  color: var(--teal);
  font-weight: 800;
}

.home-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(13, 29, 46, 0.45);
}

.home-modal[hidden] {
  display: none;
}

.home-modal-panel {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 29, 46, 0.28);
}

.home-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.home-modal-head h3 {
  color: var(--navy);
}

.home-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.home-modal-body {
  padding: 18px;
}

.home-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  background: #0d1d2e;
  color: #fff;
  box-shadow: 0 16px 38px rgba(13, 29, 46, 0.24);
  font-weight: 700;
}

.home-toast[hidden] {
  display: none;
}

.cta-band {
  padding: 46px 0;
  background: var(--navy);
  color: #fff;
}

.cta-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta-inner h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.76);
  margin: 10px 0 0;
}

.site-footer {
  background: #0d1d2e;
  color: rgba(255, 255, 255, 0.76);
  padding: 44px 0 24px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid strong {
  display: block;
  color: #fff;
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 45;
}

.floating-actions a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(16, 32, 51, 0.14);
  color: var(--navy);
}

.floating-actions a.primary-float {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.legal-content {
  max-width: 860px;
}

.legal-content h2 {
  margin-top: 34px;
  color: var(--navy);
}

.legal-content p,
.legal-content li {
  color: #46576b;
}

@media (max-width: 980px) {
  .nav {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-action-link,
  .nav-actions .btn-secondary {
    display: none;
  }

  .hero-inner,
  .split,
  .section-head,
  .form-grid,
  .dashboard-layout,
  .forum-layout,
  .community-hero-inner,
  .portal-layout,
  .tgb-channel-map,
  .tgb-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tgb-pulse-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-media {
    order: -1;
  }

  .hero-badge {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .grid-4,
  .data-board-inner,
  .board-grid,
  .library-platform-grid,
  .library-resource-grid,
  .library-route-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .data-cell:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-note {
    position: static;
  }

  .thread-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .thread-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .tgb-feed-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .tgb-feed-stat {
    grid-column: 2;
    text-align: left;
  }

  .tgb-control-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tgb-carousel-slide {
    padding: 18px 16px 48px;
  }

  .hot-topic {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .hot-score {
    grid-column: 2;
    text-align: left;
  }

  .thread-reply-form-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-actions .btn-primary {
    display: none;
  }

  main section,
  .page-section {
    padding: 54px 0;
  }

  .trust-row,
  .data-board-inner,
  .board-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .library-platform-grid,
  .library-resource-grid,
  .library-route-grid,
  .metric-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .data-cell {
    border-bottom: 1px solid var(--line);
  }

  .data-cell:last-child {
    border-bottom: 0;
  }

  .btn {
    width: 100%;
  }

  .thread-reply-form-actions .btn {
    width: 100%;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
  }
}
