/* ==========================================================================
   yavin质观 · 全球与中国大模型及 AI 企业全谱系工作台 (/llm · V17)
   Palette: Void Obsidian #050507 · Charcoal #09090b · Cell #090a0f · Alabaster #fafafa
            Surgical Cyan #38bdf8 · Amethyst #a78bfa · Emerald #34d399 · Amber #f59e0b
   ========================================================================== */

.page-llm main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  background: #050507 !important;
  color: #fafafa !important;
}

@media (min-width: 601px) {
  .page-llm header nav > a[href="/"] {
    display: inline-flex !important;
  }
}

/* Hero Radial Glow */
.zg-ps-hero.is-llm {
  background:
    radial-gradient(780px 310px at 14% -10%, rgba(56, 189, 248, 0.14), transparent 68%),
    radial-gradient(700px 280px at 86% -12%, rgba(167, 139, 250, 0.13), transparent 68%),
    radial-gradient(540px 230px at 50% -18%, rgba(52, 211, 153, 0.08), transparent 70%),
    #050507;
}

.zg-ps-tab[data-llm-group="llm"].is-active::before {
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
}
.zg-ps-tab[data-llm-group="llm"].is-active .zg-ps-tab-code {
  color: #38bdf8;
}
.zg-ps-tab[data-llm-group="llm"].is-active .zg-ps-tab-cnt {
  border-color: rgba(56, 189, 248, 0.44);
  background: rgba(56, 189, 248, 0.14);
}

/* Series Tier & Evidence Badges */
.zg-badge.is-t1 {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.44);
  background: rgba(56, 189, 248, 0.12);
}
.zg-badge.is-t2 {
  color: #ddd6fe;
  border-color: rgba(167, 139, 250, 0.44);
  background: rgba(167, 139, 250, 0.13);
}
.zg-badge.is-t3 {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.44);
  background: rgba(52, 211, 153, 0.12);
}
.zg-badge.is-t4 {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.44);
  background: rgba(251, 146, 60, 0.12);
}
.zg-badge.is-t5 {
  color: #fbcfe8;
  border-color: rgba(244, 114, 182, 0.44);
  background: rgba(244, 114, 182, 0.12);
}
.zg-badge.is-c-grade {
  color: #fef08a;
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.18);
  font-weight: 700;
}
.zg-badge.is-rose {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.44);
  background: rgba(251, 113, 133, 0.12);
}

/* Disclosure Banner */
.zg-llm-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 16px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.58;
  color: #d4d4d8;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 2px solid #38bdf8;
}
.zg-llm-notice.is-amber {
  border-color: rgba(245, 158, 11, 0.34);
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
  color: #fde68a;
}
.zg-llm-notice strong {
  color: #ffffff;
  font-weight: 600;
}
.zg-llm-notice.is-amber strong {
  color: #fef08a;
}

/* -------------------- T1-T5 SERIES TIER CARDS -------------------- */
.zg-llm-tiers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 1180px) {
  .zg-llm-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .zg-llm-tiers {
    grid-template-columns: 1fr;
  }
}

.zg-llm-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  text-align: left;
  border-radius: 2px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 2px solid var(--tier-col, #38bdf8);
  color: #e4e4e7;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.zg-llm-tier-card:hover {
  background: #0e1018;
  border-color: rgba(255, 255, 255, 0.24);
  border-top-color: var(--tier-col, #38bdf8);
}
.zg-llm-tier-card.is-on {
  background: #101320;
  border-color: var(--tier-col, #38bdf8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18) inset;
}
.zg-llm-tier-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.zg-llm-tier-code {
  font-family: var(--zg-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tier-col, #38bdf8);
}
.zg-llm-tier-cnt {
  font-family: var(--zg-mono);
  font-size: 11px;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
}
.zg-llm-tier-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.32;
}
.zg-llm-tier-meta {
  font-family: var(--zg-mono);
  font-size: 10.5px;
  color: #8e8e9a;
  line-height: 1.44;
}
.zg-llm-tier-split {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--zg-mono);
  font-size: 10.5px;
  color: #a1a1aa;
}

.zg-llm-tier-detail {
  padding: 13px 16px;
  margin-bottom: 16px;
  background: #0a0c12;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-left: 3px solid var(--tier-col, #38bdf8);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zg-llm-tier-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 780px) {
  .zg-llm-tier-detail-grid {
    grid-template-columns: 1fr;
  }
}
.zg-llm-tier-metric {
  padding: 8px 10px;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.zg-llm-tier-metric span {
  display: block;
  font-family: var(--zg-mono);
  font-size: 10px;
  color: #71717a;
  margin-bottom: 3px;
}
.zg-llm-tier-metric strong {
  font-size: 12px;
  color: #f4f4f5;
  font-weight: 600;
}

/* -------------------- SUB-VIEW SWITCHER BAR -------------------- */
.zg-llm-subswitch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.zg-llm-subbtn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 15px;
  text-align: left;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 2px;
  color: #d4d4d8;
  cursor: pointer;
  transition: all 0.15s ease;
}
.zg-llm-subbtn:hover {
  background: #0e111a;
  border-color: rgba(56, 189, 248, 0.35);
}
.zg-llm-subbtn.is-on {
  background: #101422;
  border-color: #38bdf8;
  box-shadow: 0 2px 0 0 #38bdf8 inset;
}
.zg-llm-subbtn.is-violet.is-on {
  border-color: #a78bfa;
  box-shadow: 0 2px 0 0 #a78bfa inset;
}
.zg-llm-subbtn.is-emerald.is-on {
  border-color: #34d399;
  box-shadow: 0 2px 0 0 #34d399 inset;
}
.zg-llm-subbtn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--zg-mono);
  font-size: 10.5px;
  color: #8e8e9a;
}
.zg-llm-subbtn.is-on .zg-llm-subbtn-top span:first-child {
  color: #38bdf8;
  font-weight: 700;
}
.zg-llm-subbtn.is-violet.is-on .zg-llm-subbtn-top span:first-child {
  color: #a78bfa;
}
.zg-llm-subbtn.is-emerald.is-on .zg-llm-subbtn-top span:first-child {
  color: #34d399;
}
.zg-llm-subbtn strong {
  font-size: 13.5px;
  color: #ffffff;
}
.zg-llm-subbtn small {
  font-size: 11.5px;
  color: #8e8e9a;
}

/* -------------------- TOOLBAR SELECTS & CONTROLS -------------------- */
.zg-llm-select {
  height: 30px;
  padding: 0 9px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #050508;
  color: #e4e4e7;
  font-family: var(--zg-sans);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
.zg-llm-select:focus {
  border-color: #38bdf8;
}

/* -------------------- SORTABLE DATA TABLES -------------------- */
.zg-llm-tbl-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: #08090d;
}
.zg-llm-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  min-width: 920px;
}
.zg-llm-tbl thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 11px;
  text-align: left;
  font-family: var(--zg-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a1a1aa;
  background: #0c0e15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  user-select: none;
}
.zg-llm-tbl thead th.is-sortable {
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}
.zg-llm-tbl thead th.is-sortable:hover {
  color: #ffffff;
  background: #121520;
}
.zg-llm-tbl thead th.is-sorted {
  color: #38bdf8;
}
.zg-llm-tbl thead th.is-num,
.zg-llm-tbl tbody td.is-num {
  text-align: right;
}
.zg-llm-tbl tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.12s ease;
}
.zg-llm-tbl tbody tr:last-child {
  border-bottom: 0;
}
.zg-llm-tbl tbody tr:hover {
  background: #10131e;
}
.zg-llm-tbl tbody tr.is-c-row {
  background: rgba(245, 158, 11, 0.055);
}
.zg-llm-tbl tbody tr.is-c-row:hover {
  background: rgba(245, 158, 11, 0.11);
}
.zg-llm-tbl tbody td {
  padding: 10px 11px;
  vertical-align: middle;
  color: #e4e4e7;
  line-height: 1.44;
}
.zg-llm-cell-title {
  font-weight: 600;
  color: #ffffff;
  display: block;
}
.zg-llm-cell-sub {
  font-size: 11.5px;
  color: #8e8e9a;
  display: block;
  margin-top: 2px;
}
.zg-llm-mono {
  font-family: var(--zg-mono);
  font-size: 11.5px;
}

/* Inline Financial Visual Bars */
.zg-llm-gm-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 82px;
}
.zg-llm-gm-track {
  width: 78px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
}
.zg-llm-gm-fill {
  height: 100%;
  border-radius: 1px;
}
.zg-llm-gm-fill.is-hi {
  background: linear-gradient(90deg, #34d399, #38bdf8);
}
.zg-llm-gm-fill.is-mid {
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
}
.zg-llm-gm-fill.is-low {
  background: #f59e0b;
}
.zg-llm-gm-fill.is-neg {
  background: #fb7185;
}
.zg-llm-pos {
  color: #34d399;
  font-weight: 600;
}
.zg-llm-neg {
  color: #fb7185;
  font-weight: 600;
}
.zg-llm-muted {
  color: #71717a;
}

/* -------------------- BINDINGS MATRIX DUAL-NODE CARDS -------------------- */
.zg-llm-bind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 960px) {
  .zg-llm-bind-grid {
    grid-template-columns: 1fr;
  }
}

.zg-llm-bind-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 17px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.zg-llm-bind-card:hover {
  background: #0d1018;
  border-color: rgba(56, 189, 248, 0.36);
}
.zg-llm-bind-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.zg-llm-bind-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.12fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
@media (max-width: 640px) {
  .zg-llm-bind-flow {
    grid-template-columns: 1fr;
  }
}
.zg-llm-bind-node {
  min-width: 0;
}
.zg-llm-bind-node small {
  display: block;
  font-family: var(--zg-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #71717a;
  margin-bottom: 3px;
}
.zg-llm-bind-node strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.35;
}
.zg-llm-bind-node span {
  display: block;
  font-size: 11.5px;
  color: #a1a1aa;
  margin-top: 2px;
}
.zg-llm-bind-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-family: var(--zg-mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.zg-llm-rf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--zg-mono);
  font-size: 11px;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.42);
  text-decoration: none;
  transition: all 0.14s ease;
}
.zg-llm-rf-btn:hover {
  color: #ffffff;
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.24);
}
.zg-llm-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--zg-mono);
  font-size: 11px;
  font-weight: 600;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.38);
  text-decoration: none;
  transition: all 0.14s ease;
}
.zg-llm-chip-btn:hover {
  color: #ffffff;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
}

/* -------------------- ENTERPRISE & VOUCHER CARDS -------------------- */
.zg-llm-fin-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.zg-llm-fin-cell {
  min-width: 0;
}
.zg-llm-fin-cell span {
  display: block;
  font-family: var(--zg-mono);
  font-size: 10px;
  color: #71717a;
}
.zg-llm-fin-cell b {
  display: block;
  font-family: var(--zg-mono);
  font-size: 12.5px;
  color: #ffffff;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.zg-llm-redline-box {
  padding: 8px 10px;
  border-radius: 2px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 2px solid #f59e0b;
  font-size: 11.5px;
  line-height: 1.5;
  color: #fde68a;
}

/* -------------------- DRAWER SPEC GRID & CHIPS -------------------- */
.zg-llm-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .zg-llm-spec-grid {
    grid-template-columns: 1fr;
  }
}
.zg-llm-spec-box {
  padding: 10px 12px;
  background: #07080c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
}
.zg-llm-spec-box.is-wide {
  grid-column: 1 / -1;
}
.zg-llm-spec-box span {
  display: block;
  font-family: var(--zg-mono);
  font-size: 10.5px;
  color: #8e8e9a;
  margin-bottom: 4px;
}
.zg-llm-spec-box strong {
  font-size: 13px;
  color: #f4f4f5;
  font-weight: 600;
  line-height: 1.5;
}
.zg-llm-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.zg-llm-peer-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11.5px;
  color: #d4d4d8;
  background: #06070b;
  border: 1px solid rgba(255, 255, 255, 0.11);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.14s ease;
}
.zg-llm-peer-chip:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.10);
}
.zg-llm-peer-chip em {
  font-style: normal;
  font-family: var(--zg-mono);
  font-size: 10px;
  color: #71717a;
}

/* Summary KPI Strip inside panes */
.zg-llm-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .zg-llm-mini-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.zg-llm-mini-kpi {
  padding: 11px 13px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2px;
}
.zg-llm-mini-kpi span {
  display: block;
  font-family: var(--zg-mono);
  font-size: 10.5px;
  color: #8e8e9a;
}
.zg-llm-mini-kpi b {
  display: block;
  margin-top: 4px;
  font-family: var(--zg-mono);
  font-size: 20px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.zg-llm-mini-kpi small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #71717a;
}
