.tb-site-page {
  --tb-border: rgba(125, 138, 158, 0.18);
  --tb-soft: rgba(125, 138, 158, 0.08);
  --tb-soft-strong: rgba(125, 138, 158, 0.14);
  --tb-ink: var(--main-color, #202532);
  --tb-muted: var(--muted-color, #6d7480);
  --tb-radius: var(--theme-border-radius, 12px);
  color: var(--tb-ink);
}

.tb-site-page a {
  text-decoration: none;
}

.tb-site-breadcrumb {
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.7;
}

.tb-site-breadcrumb a {
  color: var(--tb-muted);
}

.tb-site-breadcrumb a:hover {
  color: var(--theme-color, #2f6fec);
}

.tb-breadcrumb-sep {
  color: rgba(125, 138, 158, 0.72);
}

.tb-site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background:
    linear-gradient(135deg, rgba(var(--theme-color-rgb, 58, 123, 213), 0.10), transparent 42%),
    var(--main-bg-color, #fff);
}

.tb-hero-main {
  min-width: 0;
}

.tb-hero-eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.tb-site-icon,
.tb-side-icon {
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--tb-soft);
  border: 1px solid var(--tb-border);
  object-fit: cover;
}

.tb-site-icon-wrap,
.tb-side-icon-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--theme-color-rgb, 58, 123, 213), 0.12), rgba(125, 138, 158, 0.10));
  border: 1px solid var(--tb-border);
  color: var(--theme-color, #2f6fec);
  font-weight: 800;
  line-height: 1;
}

.tb-site-icon-wrap {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.tb-side-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  font-size: 18px;
}

.tb-site-icon-fallback,
.tb-side-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tb-site-icon-wrap.has-img .tb-site-icon-fallback,
.tb-side-icon-wrap.has-img .tb-side-icon-fallback {
  display: none;
}

.tb-site-icon-wrap .tb-site-icon,
.tb-side-icon-wrap .tb-side-icon {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: cover;
}

.tb-hero-meta {
  min-width: 0;
}

.tb-chip-row,
.tb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--tb-border);
  border-radius: 999px;
  background: var(--main-bg-color, #fff);
  color: var(--tb-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tb-chip-solid {
  border-color: rgba(var(--theme-color-rgb, 58, 123, 213), 0.24);
  background: rgba(var(--theme-color-rgb, 58, 123, 213), 0.10);
  color: var(--theme-color, #2f6fec);
}

.tb-site-title {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.tb-site-summary {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--tb-ink);
  font-size: 17px;
  line-height: 1.8;
}

.tb-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 12px;
  color: var(--tb-muted);
  font-size: 13px;
}

.tb-source-brief {
  max-width: 840px;
  margin: 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.75;
}

.tb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

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

.tb-btn-primary {
  color: #fff !important;
  background: var(--theme-color, #2f6fec);
  box-shadow: 0 10px 24px rgba(var(--theme-color-rgb, 58, 123, 213), 0.24);
}

.tb-btn-secondary {
  color: var(--tb-ink) !important;
  background: var(--main-bg-color, #fff);
  border-color: var(--tb-border);
}

.tb-btn-block {
  width: 100%;
}

.tb-text-link {
  color: var(--theme-color, #2f6fec);
  overflow-wrap: anywhere;
}

.tb-tags-hero {
  margin-top: 16px;
}

.tb-hero-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.tb-preview-frame {
  overflow: hidden;
  border: 1px solid var(--tb-border);
  border-radius: calc(var(--tb-radius) - 2px);
  background: var(--main-bg-color, #fff);
  aspect-ratio: 456 / 300;
}

.tb-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.tb-hero-preview figcaption {
  margin-top: 10px;
  color: var(--tb-muted);
  font-size: 12px;
  text-align: center;
}

.tb-quick,
.tb-judgement-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.tb-quick.count-1,
.tb-judgement-grid.count-1 {
  grid-template-columns: minmax(0, 1fr);
}

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

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

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

.tb-judge-card,
.tb-card,
.tb-side-card {
  border: 1px solid var(--tb-border);
  border-radius: var(--tb-radius);
  background: var(--main-bg-color, #fff);
}

.tb-judge-card {
  padding: 16px;
  min-height: 132px;
}

.tb-judge-label {
  margin-bottom: 8px;
  color: var(--theme-color, #2f6fec);
  font-size: 13px;
  font-weight: 800;
}

.tb-judge-card p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.72;
}

.tb-judge-not-fit .tb-judge-label,
.tb-judge-risk .tb-judge-label {
  color: #b45a13;
}

.tb-judge-fee .tb-judge-label {
  color: #17735f;
}

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

.tb-site-main {
  min-width: 0;
}

.tb-card {
  margin-bottom: 18px;
  padding: 22px;
}

.tb-section-kicker {
  margin-bottom: 14px;
  color: var(--tb-ink);
  font-size: 16px;
  font-weight: 800;
}

.tb-info-table {
  display: grid;
  border: 1px solid var(--tb-border);
  border-radius: calc(var(--tb-radius) - 3px);
  overflow: hidden;
}

.tb-info-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border-top: 1px solid var(--tb-border);
}

.tb-info-row:first-child {
  border-top: 0;
}

.tb-info-label,
.tb-info-value {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.65;
}

.tb-info-label {
  color: var(--tb-muted);
  background: var(--tb-soft);
}

.tb-info-value {
  min-width: 0;
}

.tb-mobile-toc {
  display: none;
}

.tb-toc {
  display: grid;
  gap: 8px;
}

.tb-toc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-toc-list li {
  margin: 0;
  padding: 0;
}

.tb-toc a,
.tb-toc button {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.tb-toc a:hover,
.tb-toc a.is-active,
.tb-toc button:hover,
.tb-toc button.is-active {
  color: var(--theme-color, #2f6fec);
  background: rgba(var(--theme-color-rgb, 58, 123, 213), 0.10);
}

.tb-toc-empty {
  color: var(--tb-muted);
  font-size: 13px;
}

.tb-site-article {
  color: var(--tb-ink);
  font-size: 16px;
  line-height: 1.9;
}

.tb-site-article > :first-child {
  margin-top: 0;
}

.tb-site-article h2 {
  scroll-margin-top: 86px;
  margin: 34px 0 14px;
  padding-left: 13px;
  border-left: 4px solid var(--theme-color, #2f6fec);
  color: var(--tb-ink);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.tb-site-article h3 {
  scroll-margin-top: 86px;
  margin: 26px 0 10px;
  color: var(--tb-ink);
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0;
}

.tb-site-article p,
.tb-site-article li {
  color: var(--tb-ink);
}

.tb-site-article a {
  color: var(--theme-color, #2f6fec);
}

.tb-site-article blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--tb-soft-strong);
  background: var(--tb-soft);
  border-radius: 8px;
}

.tb-site-article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.tb-faq-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: 0;
}

.tb-faq-item {
  padding: 13px 0;
  border-top: 1px solid var(--tb-border);
}

.tb-faq-item:first-of-type {
  border-top: 0;
}

.tb-faq-item summary {
  cursor: pointer;
  color: var(--tb-ink);
  font-weight: 800;
}

.tb-faq-item p {
  margin: 10px 0 0;
  color: var(--tb-muted);
  line-height: 1.75;
}

.tb-related-section {
  margin-bottom: 18px;
}

.tb-related-section h4 {
  margin: 24px 0 14px !important;
  font-size: 18px !important;
}

.tb-bottom-tags .tb-tags {
  gap: 8px;
}

.tb-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tb-bottom-actions .tb-section-kicker {
  width: 100%;
  margin-bottom: 2px;
}

.tb-source-note p {
  margin: 0 0 8px;
  color: var(--tb-muted);
  line-height: 1.75;
}

.tb-source-note p:last-child {
  margin-bottom: 0;
}

.tb-site-sidebar {
  align-self: stretch;
  min-width: 0;
}

.tb-sidebar-inner {
  height: 100%;
  position: static;
}

.tb-sticky-tools {
  position: sticky;
  top: 82px;
  z-index: 3;
  display: flex;
  max-height: calc(100vh - 98px);
  flex-direction: column;
  min-height: 0;
}

.tb-sticky-tools .tb-side-entry {
  flex: 0 0 auto;
}

.tb-side-card {
  margin-bottom: 14px;
  padding: 16px;
}

.tb-side-entry {
  text-align: center;
}

.tb-side-icon {
  margin-bottom: 10px;
}

.tb-side-icon-wrap .tb-side-icon {
  margin-bottom: 0;
}

.tb-side-title {
  margin-bottom: 12px;
  color: var(--tb-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.tb-side-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tb-side-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.tb-side-list dt,
.tb-side-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.tb-side-list dt {
  color: var(--tb-muted);
}

.tb-side-list dd {
  color: var(--tb-ink);
}

.tb-side-risk {
  background: rgba(180, 90, 19, 0.08);
}

.tb-side-risk p {
  margin: 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.75;
}

.tb-side-toc-card {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.tb-side-toc-card .tb-toc {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.tb-side-toc-card .tb-toc::-webkit-scrollbar {
  width: 6px;
}

.tb-side-toc-card .tb-toc::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(121, 131, 149, 0.35);
}

.tb-comments-section {
  margin-top: 18px;
}

@media (max-width: 1199px) {
  .tb-site-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-hero-preview {
    max-width: 560px;
  }

}

@media (max-width: 991px) {
  .tb-site-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-site-sidebar {
    order: 2;
  }

  .tb-sidebar-inner {
    position: static;
  }

  .tb-sticky-tools {
    position: static;
    display: block;
    max-height: none;
  }

  .tb-side-toc-card {
    display: none;
    position: static;
  }

  .tb-mobile-toc {
    display: block;
  }
}

@media (max-width: 767px) {
  .tb-site-hero {
    padding: 20px;
    gap: 20px;
  }

  .tb-hero-eyebrow {
    align-items: flex-start;
  }

  .tb-site-title {
    font-size: 28px;
  }

  .tb-site-summary {
    font-size: 15px;
  }

  .tb-hero-actions,
  .tb-btn {
    width: 100%;
  }

  .tb-quick,
  .tb-quick.count-1,
  .tb-quick.count-2,
  .tb-quick.count-3,
  .tb-quick.count-4,
  .tb-judgement-grid,
  .tb-judgement-grid.count-1,
  .tb-judgement-grid.count-2,
  .tb-judgement-grid.count-3,
  .tb-judgement-grid.count-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-card {
    padding: 18px;
  }

  .tb-info-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-info-label {
    padding-bottom: 4px;
  }

  .tb-info-value {
    padding-top: 4px;
  }

  .tb-site-article {
    font-size: 15px;
  }

  .tb-site-article h2 {
    font-size: 21px;
  }
}
