/* ============================================================
   OmniGate 模型广场 · Market 页面样式
   ============================================================ */

/* ---------- 模型卡片网格 ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}
.model-card {
  position: relative;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
}
.model-card::before {
  content: "";
  position: absolute;
  top: -40%; left: -30%;
  width: 160%; height: 90%;
  background: radial-gradient(circle at 30% 20%, rgba(13, 148, 136, 0.15), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.model-card:hover::before { opacity: 1; }
.model-card .mc-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; position: relative; }
.model-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
/* v10 · 厂商 logo 覆盖单字（img 绝对定位铺满，失败时隐藏露出文字）；主容器 max-width 1600→1920 全宽拉满 */
.model-icon img, .dh-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* 图标统一品牌橙渐变（同一设计语言，去八彩色噪点） */
.model-icon.mi-a, .model-icon.mi-b, .model-icon.mi-c, .model-icon.mi-d,
.model-icon.mi-e, .model-icon.mi-f, .model-icon.mi-g, .model-icon.mi-h {
  background: var(--gradient);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.model-card:hover .model-icon { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.model-card .mc-name { font-size: 15.5px; font-weight: 650; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-card .mc-vendor { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-card .mc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; position: relative; }
.model-card .mc-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.model-card .mc-price {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: baseline;
  gap: 3px;
  letter-spacing: 0.2px;
}
.model-card .mc-price .p-num {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 16.5px;
  background: var(--gradient);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 7s ease-in-out infinite;
  text-shadow: 0 0 16px rgba(255, 145, 50, 0.3);
  letter-spacing: 0;
}
.model-card .mc-price .p-unit { color: var(--text-3); }
.model-card .mc-status { position: absolute; top: 18px; right: 18px; }
.mc-sub-btn { font-size: 12px; padding: 4px 12px; }

/* 卡片 hover 顶部光条 */
.model-card::after {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1.5px;
  background: var(--gradient);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s;
}
.model-card:hover::after { opacity: 0.8; }

/* ---------- 模型详情 ---------- */
.detail-hero {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--card);
  border: 1px solid var(--border);
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 260px at 12% 0%, rgba(255, 145, 50, 0.2), transparent 60%),
    radial-gradient(420px 240px at 90% 10%, rgba(255, 201, 143, 0.12), transparent 60%);
}
.detail-hero .dh-inner { position: relative; display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.detail-hero .dh-icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  font-size: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 34px rgba(255, 145, 50, 0.35);
  flex-shrink: 0;
}
.detail-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.detail-hero .dh-vendor { color: var(--text-3); font-size: 13px; margin-bottom: 12px; }
.detail-hero .dh-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-hero .dh-desc { color: var(--text-2); font-size: 14px; max-width: 720px; line-height: 1.8; }
.detail-hero .dh-actions { margin-left: auto; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* 计费表 */
.pricing-table { width: 100%; }
.pricing-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13.5px; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:first-child { color: var(--text-2); width: 42%; }
.pricing-table td .num { font-size: 14px; font-weight: 600; }

/* 详情 Tab */
.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.detail-tab {
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: #fff; border-bottom-color: var(--primary-2); }

/* 接入示例底部说明（接口描述 · 计费方式） */
.code-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-3);
}
.code-foot .dot-sep { color: var(--text-3); opacity: 0.6; }

/* 接口清单（1:N 模型接入文档） */
.api-list { display: flex; flex-direction: column; gap: 8px; }
.api-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.2s;
}
.api-item:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.05); }
.api-item.active {
  border-color: var(--primary);
  background: rgba(255, 145, 50, 0.07);
  box-shadow: 0 0 14px rgba(255, 145, 50, 0.12);
}
.api-method {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.api-method.post { background: rgba(255, 145, 50, 0.15); color: #ffb648; border: 1px solid rgba(255, 145, 50, 0.35); }
.api-method.get { background: rgba(79, 141, 255, 0.14); color: #7db0ff; border: 1px solid rgba(79, 141, 255, 0.32); }
.api-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.api-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.api-ep {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.api-bill { font-size: 11px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }

.doc-section { margin-bottom: 26px; }
.doc-section h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-section h3::before {
  content: "";
  width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--gradient);
}
.doc-section p { color: var(--text-2); margin-bottom: 8px; }

/* 步骤条（快速开始） */
.steps { display: flex; gap: 0; margin: 18px 0 26px; counter-reset: step; }
.step {
  flex: 1;
  position: relative;
  padding: 0 20px;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1px solid rgba(255, 145, 50, 0.4);
  color: #ffce7d;
  font-weight: 700;
  font-family: var(--font-num);
  box-shadow: 0 0 14px rgba(255, 145, 50, 0.2);
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(50% + 34px);
  right: calc(-50% + 34px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 145, 50, 0.5), rgba(255, 201, 143, 0.3));
}
.step .st-title { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.step .st-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ---------- 我的模型 ---------- */
.my-model-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.my-model-row .mm-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 17px; }
.my-model-row .mm-info { flex: 1; min-width: 0; }
.my-model-row .mm-name { font-weight: 600; font-size: 14px; }
.my-model-row .mm-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.my-model-row .mm-usage { text-align: right; }
.my-model-row .mm-usage .num { font-size: 15px; font-weight: 650; }
.my-model-row .mm-usage .lbl { font-size: 11.5px; color: var(--text-3); }

/* 用量进度条 */
.usage-bar { width: 150px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 5px; }
.usage-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 8px rgba(255, 145, 50, 0.6);
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* ---------- API Keys ---------- */
.key-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  width: fit-content;
}
.key-value .kv-hide { letter-spacing: 2.5px; }
.icon-btn {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); color: var(--text); }

.security-tip {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 182, 72, 0.06);
  border: 1px solid rgba(255, 182, 72, 0.22);
  font-size: 12.8px;
  color: #ffb066;
  margin-bottom: 20px;
  line-height: 1.7;
}
.security-tip .st-icon { font-size: 18px; line-height: 1.4; }

/* ---------- Playground ---------- */
.playground-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  height: calc(100vh - var(--topbar-h) - 110px);
  min-height: 520px;
}
.playground-wrap.compare { grid-template-columns: 1fr 1fr; }
.play-pane {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.play-pane .pp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.play-pane .pp-head .pp-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pp-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.msg { display: flex; gap: 12px; max-width: 88%; animation: riseIn 0.3s ease both; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.msg.user .msg-avatar { background: var(--gradient); }
.msg.ai .msg-avatar { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-strong); }
.msg-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text);
}
.msg.user .msg-bubble {
  background: var(--gradient-soft);
  border-color: rgba(255, 145, 50, 0.35);
}
.msg-bubble .mb-meta { font-size: 11px; color: var(--text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.pp-input {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.pp-input textarea {
  flex: 1;
  resize: none;
  max-height: 110px;
}
.stop-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--danger);
  background: rgba(255, 92, 124, 0.1);
  border: 1px solid rgba(255, 92, 124, 0.3);
  border-radius: 999px;
  padding: 1px 9px;
}
.stop-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: blink 0.8s infinite; }

/* ---------- 账户中心 ---------- */
.balance-hero {
  position: relative;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(150deg, rgba(255, 145, 50, 0.16), rgba(255, 201, 143, 0.05) 55%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 145, 50, 0.3);
}
.balance-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 240px at 82% 12%, rgba(255, 145, 50, 0.1), transparent 60%);
  pointer-events: none;
}
.balance-hero .bh-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; position: relative; }
.balance-hero .bh-amount {
  font-size: 44px;
  font-weight: 800;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(255, 145, 50, 0.3);
}
.balance-hero .bh-amount .cur { font-size: 22px; font-weight: 600; margin-right: 6px; color: var(--text-2); }
.balance-hero .bh-mini { display: flex; gap: 34px; position: relative; }
.balance-hero .bh-mini .bm-item .bm-v { font-family: var(--font-num); font-size: 16px; font-weight: 650; }
.balance-hero .bh-mini .bm-item .bm-l { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* 充值面板 */
.recharge-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-bottom: 26px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.amount-opt {
  padding: 12px 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--text);
  position: relative;
}
.amount-opt small { display: block; font-size: 10.5px; color: var(--text-3); font-family: inherit; margin-top: 1px; }
.amount-opt:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.06); }
.amount-opt.on {
  border-color: var(--primary);
  background: rgba(255, 145, 50, 0.14);
  box-shadow: 0 0 18px rgba(255, 145, 50, 0.22), inset 0 0 0 1px rgba(255, 145, 50, 0.5);
}
.amount-opt.on::after {
  content: "✓";
  position: absolute;
  top: -7px; right: -5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(255, 145, 50, 0.6);
}
.channel-opts { display: flex; gap: 10px; }
.channel-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 0;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-2);
  transition: all 0.18s;
}
.channel-opt:hover { border-color: var(--border-strong); color: var(--text); }
.channel-opt.on { border-color: #2ee6a8; color: #fff; background: rgba(46, 230, 168, 0.1); }
.channel-opt.on.wechat { border-color: #2ee6a8; background: rgba(46, 230, 168, 0.1); }
.channel-opt.on.alipay { border-color: #4f8dff; background: rgba(79, 141, 255, 0.12); }

/* 二维码展示 */
.qr-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 22px;
  text-align: center;
}
.qr-box .qr-code {
  width: 168px; height: 168px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 88px;
  background: #fff;
  color: #000;
}
.qr-box .qr-tip { font-size: 12.5px; color: var(--text-2); }
.qr-box .qr-amount { font-family: var(--font-num); font-weight: 700; font-size: 15px; color: var(--gold); margin-bottom: 4px; }
.qr-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--warning); margin-top: 8px; }
.qr-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); animation: blink 1s infinite; }

/* 交易流水表 */
.ledger-direction { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-num); font-weight: 600; }
.ld-in { color: var(--success); }
.ld-out { color: var(--danger); }
.ld-refund { color: var(--warning); }
.ledger-direction .arrow { font-size: 11px; }

/* 导航徽标（账户中心入口） */
.nav-link .nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 145, 50, 0.8);
  margin-left: 2px;
}
.help-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.help-nav { position: sticky; top: calc(var(--topbar-h) + 20px); }
.help-nav .hn-group { margin-bottom: 20px; }
.help-nav .hn-title { font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; padding-left: 12px; }
.help-nav .hn-link {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.help-nav .hn-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.help-nav .hn-link.active { color: #fff; background: var(--gradient-soft); border-left-color: var(--primary); }
.help-content .hc-block { margin-bottom: 34px; }
.help-content h2 { font-size: 21px; font-weight: 700; margin-bottom: 8px; position: relative; padding-left: 20px; line-height: 1.5; }
.help-content h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  border-radius: 2px;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(255, 140, 41, 0.7);
}
.help-content h2 .anchor {
  position: absolute;
  inset: 0;
  font-size: 0;
  color: transparent;
}
.help-content h4 { font-size: 14.5px; font-weight: 600; margin: 20px 0 8px; }
.help-content p { color: var(--text-2); margin-bottom: 10px; }

/* 错误码表 */
.err-table td .num { font-weight: 600; color: var(--primary-2); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 15px 4px; }
.faq-item:last-child { border-bottom: none; }
.faq-item .fq-q { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.faq-item .fq-q::before { content: "▸"; color: var(--primary-2); transition: transform 0.2s; }
.faq-item.open .fq-q::before { transform: rotate(90deg); }
.faq-item .fq-a { color: var(--text-2); font-size: 13.5px; padding: 8px 0 0 24px; display: none; line-height: 1.8; }
.faq-item.open .fq-a { display: block; animation: fadeIn 0.25s ease; }

/* ============================================================
   v8 · 市场首页改版：全宽 + 交易所式版面（2026-08-12）
   ============================================================ */

/* ---- Hero：全宽左右分栏 ---- */
.hero-split { text-align: left; padding: 52px 0 40px; }
.hero-inner { max-width: 1920px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 40px; align-items: center; }
.hero-split h1 { font-size: 52px; text-align: left; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 2.5px; color: var(--primary-2); border: 1px solid rgba(255, 150, 60, 0.28); background: rgba(255, 145, 50, 0.07); padding: 7px 15px; border-radius: 999px; margin-bottom: 22px; }
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.hero-split .hero-desc { margin: 20px 0 28px; text-align: left; max-width: 560px; }
.hero-split .hero-actions { justify-content: flex-start; margin-bottom: 36px; }

/* 行情条（替代原统计卡） */
.hero-ticker { display: inline-flex; background: var(--glass); border: 1px solid rgba(255, 150, 60, 0.2); border-radius: 14px; overflow: hidden; }
.ticker-item { padding: 13px 24px; border-right: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 3px; }
.ticker-item:last-child { border-right: none; }
.tk-label { font-size: 11px; color: var(--text-3); letter-spacing: 1px; }
.tk-val { font-size: 20px; font-weight: 800; font-family: var(--font-num); letter-spacing: 0.5px; }

/* ---- 星芒汇聚面板（Hero 右） ---- */
.hero-right { display: flex; justify-content: center; align-items: center; }
.nexus-panel { position: relative; width: 400px; height: 400px; }
.nexus-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 150, 60, 0.22); } /* 2026-09-04 淡紫→品牌橙（与内环一致） */
.nexus-ring.r2 { inset: 52px; border-color: rgba(255, 145, 50, 0.16); }
.nexus-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.nexus-lines line { stroke: url(#nxGrad); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: 0.55; }
.nexus-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(255, 145, 50, 0.2), transparent 68%); }
.nexus-core svg { width: 104px; height: 104px; filter: drop-shadow(0 0 18px rgba(255, 145, 50, 0.4)); }
.nexus-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.nexus-node .nn-badge { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px); overflow: hidden; }
.nexus-node .nn-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.nexus-node .nn-name { font-size: 11px; color: var(--text-3); letter-spacing: 1px; white-space: nowrap; }
.nexus-node .nn-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: nxPulse 2.2s ease-in-out infinite; }
@keyframes nxPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- 模型区：全宽 + 左分类 rail + 右横向卡 ---- */
.market-main { max-width: 1920px; margin: 0 auto; padding: 8px 28px 64px; }
.market-layout { display: grid; grid-template-columns: 208px 1fr; gap: 26px; align-items: start; }
.cat-rail { position: sticky; top: calc(var(--topbar-h) + 22px); display: flex; flex-direction: column; gap: 5px; background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 16px 12px 14px; }
.rail-title { font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--text-3); padding: 2px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 7px; }
.cat-btn { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-family: inherit; color: var(--text-2); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all 0.18s; text-align: left; }
.cat-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.cat-btn.active { background: linear-gradient(135deg, rgba(255, 140, 41, 0.16), rgba(255, 145, 50, 0.05)); color: var(--primary-2); border-color: rgba(255, 150, 60, 0.28); }
.cat-btn .cnt { font-size: 11px; font-family: var(--font-num); color: var(--text-3); }
.cat-btn.active .cnt { color: var(--primary-2); }
.rail-search { margin-top: 10px; padding-top: 13px; border-top: 1px solid var(--border); }
.rail-search .search-box { width: 150px; }

/* 模型横向卡（2 列） */
.model-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.model-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; overflow: hidden; }
.model-row .model-icon { width: 54px; height: 54px; border-radius: 15px; font-size: 21px; flex: none; }
.mr-main { flex: 1; min-width: 0; }
.mr-name { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mr-vendor { font-size: 12px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.3px; }
.mr-tags { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.mr-price { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 6px; }
.mr-per { font-size: 10.5px; color: var(--text-3); letter-spacing: 1px; }
.mr-num { font-size: 19px; font-weight: 800; font-family: var(--font-num); color: var(--text); }
.mr-num .mr-unit { font-size: 11px; font-weight: 600; color: var(--text-3); }
.mr-price .btn { margin-top: 6px; }

/* 窄屏回退 */
@media (max-width: 1280px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-split h1, .hero-split .hero-desc, .hero-split .hero-actions { text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-right { margin-top: 10px; }
  .market-layout { grid-template-columns: 1fr; }
  .cat-rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rail-title { display: none; }
  .rail-search { border-top: none; margin-top: 0; padding-top: 0; }
  .model-rows { grid-template-columns: 1fr; }
}
