/* ============================================================
   中科OPC算力网 · 官网 Demo 设计系统  V202611162200-r2
   light-structure / 明快结构化简洁风 · 全新整体风格（非仅换色）
   设计语言：白色面板 + 墨色表头/页脚 + 蓝青渐变识别条
   填充式页签与侧栏 + 高对比清晰配色 · 零外部依赖 · 离线可开
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #F3F5FA;
  --bg-soft: #E9EEF7;
  --surface: #FFFFFF;
  --surface-2: #F7F9FD;
  --border: #DFE4EE;
  --border-strong: #C4CDDD;
  --text: #101A2C;
  --text-sub: #4E5E76;
  --text-faint: #8791A3;
  --primary: #1E56E8;
  --primary-strong: #1747C4;
  --primary-dim: #E8EEFC;
  --cyan: #0891B2;
  --amber: #B45309;
  --amber-dim: #FBF0DC;
  --green: #047857;
  --green-dim: #E2F4EC;
  --red: #DC2626;
  --red-dim: #FBE9E9;
  --ink: #152238;
  --ink-2: #0F1B33;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 14px;
  --nav-h: 72px;
  --shadow: 0 2px 6px rgba(16, 26, 44, 0.05), 0 14px 34px rgba(16, 26, 44, 0.07);
  --shadow-sm: 0 1px 3px rgba(16, 26, 44, 0.07);
  --ring: 0 0 0 3px rgba(30, 86, 232, 0.16);
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.75 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 背景氛围层（顶部识别色带 + 轻晕，无网格） ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 420px at 15% -10%, rgba(30, 86, 232, 0.07), transparent 60%),
    radial-gradient(800px 380px at 88% -6%, rgba(8, 145, 178, 0.05), transparent 58%);
}

/* ============================================================
   App Shell · header（白底 + 顶部品牌渐变条 + 填充式导航胶囊）
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #1E56E8 0%, #0891B2 55%, #7C3AED 100%);
}
.nav-inner {
  max-width: 1200px; height: 100%; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-badge {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8EEFC, #DDEAFB);
  border: 1px solid #C6D7F8;
}
.brand-badge .brand-mark, .brand > .brand-mark { width: 24px; height: 24px; }
.brand-name { font-weight: 800; font-size: 19.5px; letter-spacing: 0.01em; line-height: 1.25; white-space: nowrap; }
.brand-name small {
  display: block; font-family: var(--font-mono); font-weight: 500;
  font-size: 8.5px; letter-spacing: 0.2em; color: var(--text-faint); margin-top: 2px;
}
.nav-links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  position: relative; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-sub);
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}
.nav-links a:hover { color: var(--primary-strong); background: var(--primary-dim); }
.nav-actions { display: flex; gap: 10px; flex: none; align-items: center; }

/* active 唯一规则：由 body[data-page] 匹配 data-nav（填充胶囊 · 高亮清晰） */
body[data-page="price"]    .nav-links a[data-nav="price"],
body[data-page="network"]  .nav-links a[data-nav="network"],
body[data-page="centers"]  .nav-links a[data-nav="centers"],
body[data-page="experts"]  .nav-links a[data-nav="experts"],
body[data-page="models"]   .nav-links a[data-nav="models"],
body[data-page="datasets"] .nav-links a[data-nav="datasets"] {
  color: #FFFFFF;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 86, 232, 0.32);
}

/* ============================================================
   App Shell · footer（墨色页脚 · 高对比）
   ============================================================ */
.site-footer {
  background: var(--ink-2); color: #93A1BB;
  margin-top: 96px; border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #1E56E8, #0891B2) 1;
}
.footer-bottom { padding: 22px 24px; }
.footer-bottom > div {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom span { font-size: 12.5px; color: #93A1BB; }
.footer-bottom span .ft-version { color: #5E6F92; }
.footer-bottom a { color: #C7D2E8; font-weight: 500; }
.footer-bottom a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom .mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; }

/* ============================================================
   布局
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   排版组件
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
  color: #FFFFFF; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px;
  background: var(--primary);
}
.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: 0.01em; margin: 14px 0 8px; line-height: 1.35; }
.section-desc { color: var(--text-sub); font-size: 15px; max-width: 680px; }
.lead { color: var(--text-sub); font-size: 16px; line-height: 1.9; }
.mono { font-family: var(--font-mono); }
.dim { color: var(--text-sub); }
.amber-t { color: var(--amber); }
.green-t { color: var(--green); }
.red-t { color: var(--red); }
.blue-t { color: var(--primary-strong); }

/* ============================================================
   通用组件
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #FFFFFF; box-shadow: 0 5px 14px rgba(30, 86, 232, 0.30); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(30, 86, 232, 0.36); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); background: var(--primary-dim); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.card-hover:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 10px; border-radius: 999px;
  border: none; color: var(--text-sub);
  background: var(--bg-soft);
  white-space: nowrap;
}
.tag-blue { color: var(--primary-strong); background: var(--primary-dim); }
.tag-amber { color: var(--amber); background: var(--amber-dim); }
.tag-orange { color: #C2560C; background: #FDEEDC; }
.tag-green { color: var(--green); background: var(--green-dim); }
.tag-red { color: var(--red); background: var(--red-dim); }

/* 价格 */
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--text); }
.price-idle { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--amber); }
.price-strike { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); text-decoration: line-through; }
.unit { font-size: 12px; color: var(--text-faint); }

/* 信任条 stat（数字 + 蓝色识别短杠） */
.stat-num {
  font-family: var(--font-mono); font-size: 30px; font-weight: 800; line-height: 1.2;
  color: var(--text); position: relative; display: inline-block; padding-bottom: 8px;
}
.stat-num em { font-style: normal; color: var(--primary); }
.stat-num::after {
  content: ""; position: absolute; left: 1px; bottom: 0;
  width: 30px; height: 4px; border-radius: 2px; background: var(--primary);
}
.stat-label { font-size: 13.5px; font-weight: 600; color: var(--text-sub); margin-top: 6px; }
.stat-sub { font-size: 11px; color: var(--text-faint); margin-top: 2px; font-family: var(--font-mono); }

/* 数据表（墨色表头 + 斑马纹 · 高对比清晰） */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data th {
  text-align: left; font-size: 12px; font-weight: 700; color: #FFFFFF;
  letter-spacing: 0.07em; padding: 13px 18px;
  background: var(--ink); white-space: nowrap;
}
table.data td { padding: 13px 18px; font-size: 13.5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tbody tr:nth-child(even) { background: var(--surface-2); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background 0.15s; }
table.data tbody tr:hover { background: var(--primary-dim); }
table.data .num { font-family: var(--font-mono); font-size: 13px; }

/* 规格键值行 */
.spec-list { display: flex; flex-direction: column; gap: 8px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--border-strong); }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--text-faint); flex: none; }
.spec-row .v { font-family: var(--font-mono); font-size: 12px; color: var(--text-sub); text-align: right; }

/* 筛选 tabs（填充式激活态） */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--text-sub);
  background: #FFFFFF; transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.tab:hover { border-color: var(--primary); color: var(--primary-strong); }
.tab.active { border-color: var(--primary); color: #FFFFFF; background: var(--primary); box-shadow: 0 4px 12px rgba(30, 86, 232, 0.30); }
.tab .num { font-family: var(--font-mono); font-size: 11px; opacity: 0.75; margin-left: 4px; }

/* 空状态 / 骨架 */
.empty { padding: 64px 24px; text-align: center; color: var(--text-faint); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); font-size: 14px; background: var(--surface-2); }
.skeleton { border-radius: var(--radius-lg); background: #EDF1F8; border: 1px solid var(--border); height: 320px; position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(30, 86, 232, 0.07), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* 分组标签（方块标记 + 加粗标题） */
.group-label { display: flex; align-items: center; gap: 12px; margin: 46px 0 22px; }
.group-label span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; color: var(--text);
}
.group-label span::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--primary); flex: none; }
.group-label i { flex: 1; height: 1px; background: var(--border); }

/* 评分条 */
.score-bar { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; min-width: 64px; }
.score-bar i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }

/* 地图面板 */
.map-panel {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #FBFCFE;
  overflow: hidden; box-shadow: var(--shadow-sm);
}

/* ============================================================
   页头横幅（内页通用）
   ============================================================ */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: 38px; font-weight: 800; margin: 14px 0 10px; letter-spacing: 0.01em; }
.page-hero .lead { max-width: 680px; }

/* ============================================================
   动画 · 页面载入 stagger
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.reveal-d1 { animation-delay: 0.06s; }
.reveal-d2 { animation-delay: 0.14s; }
.reveal-d3 { animation-delay: 0.22s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0 0; }
  .section-head h2 { font-size: 24px; }
  .brand-name { font-size: 16px; }
  .brand-badge { width: 36px; height: 36px; border-radius: 10px; }
}

/* ============================================================
   控制台（用户端 / 管理端共用 Shell）
   ============================================================ */
.console-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: var(--nav-h); padding: 0 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.console-topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #1E56E8 0%, #0891B2 55%, #7C3AED 100%);
}
.console-badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  color: #C7D2E8; padding: 6px 13px;
  background: var(--ink-2); border-radius: 999px; white-space: nowrap;
}
.console-user { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.console-shell {
  display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 26px;
  max-width: 1280px; margin: 0 auto; padding: 28px 24px 72px;
}
.console-side { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; display: flex; flex-direction: column; gap: 5px; }
.cside-label { font-size: 10.5px; font-weight: 700; color: var(--text-faint); letter-spacing: .16em; margin-bottom: 6px; }
.cside-group { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--text-faint); letter-spacing: .14em; margin: 15px 12px 7px; font-weight: 700; cursor: pointer; user-select: none; transition: color .2s; }
.cside-group:hover { color: var(--primary-strong); }
.cside-group::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 2px; }
.cside-group.collapsed::after { transform: rotate(-45deg); }
.cside-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 14px; background: none; border: 1px solid transparent;
  border-radius: var(--radius); color: var(--text-sub);
  font: 600 13.5px/1 var(--font-body); cursor: pointer; text-align: left;
  transition: color .18s, background .18s, box-shadow .18s;
}
.cside-item:hover { color: var(--primary-strong); background: var(--surface); }
.cside-item.active { color: #FFFFFF; background: var(--primary); box-shadow: 0 5px 14px rgba(30, 86, 232, 0.30); }
.cside-item.active .mono { color: rgba(255, 255, 255, 0.72); }
.cside-foot { margin-top: 18px; padding: 14px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); font-size: 12px; color: var(--text-faint); line-height: 1.7; }
.console-main { min-width: 0; }
.cpane { display: none; }
.cpane.active { display: block; animation: cfadeUp .4s ease both; }
@keyframes cfadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cpane-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cpane-head h1 {
  font-size: 25px; font-weight: 800; letter-spacing: .01em;
  position: relative; padding-left: 15px;
}
.cpane-head h1::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 22px; border-radius: 3px; background: var(--primary);
}
.cpane-sub { color: var(--text-sub); font-size: 13.5px; margin-top: 6px; }
.cpane-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.balance-band { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.balance-num { font-family: var(--font-mono); font-size: 34px; font-weight: 800; color: var(--primary-strong); line-height: 1.25; }
.pkg-card { cursor: pointer; border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pkg-card:hover { transform: translateY(-2px); }
.pkg-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), var(--ring); }
.console-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 99;
  max-width: 380px; padding: 14px 18px;
  background: var(--ink-2); color: #F2F5FB;
  border: none; border-left: 4px solid #2FD07E; border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 27, 51, 0.35); font-size: 13.5px; font-weight: 500; line-height: 1.6;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.console-toast.show { opacity: 1; transform: none; }
/* 编辑态输入 */
.an-input { width: 100%; padding: 10px 12px; background: #FFFFFF; border: 1.5px solid var(--border-strong); border-radius: var(--radius); color: var(--text); font: 500 13.5px var(--font-body); outline: none; transition: border-color .15s, box-shadow .15s; }
.an-input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.tp-price {
  width: 96px; padding: 6px 9px; background: #FFFFFF;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  color: var(--primary-strong); font: 700 13px var(--font-mono); outline: none;
}
.tp-price:focus { border-color: var(--primary); box-shadow: var(--ring); }

@media (max-width: 900px) {
  .console-topbar { padding: 0 16px; gap: 10px; }
  .console-topbar .console-badge { display: none; }
  .console-shell { grid-template-columns: 1fr; padding: 20px 16px 56px; }
  .console-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .cside-label, .cside-group, .cside-foot { display: none; }
  .cside-item { width: auto; }
  .cpane-head h1 { font-size: 21px; }
  .cpane-head h1::before { height: 18px; }
}

/* ============================================================
   弹框（演示系统通用模态）
   ============================================================ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 27, 51, 0.55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal-box {
  width: min(560px, 100%); max-height: 86vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 27, 51, 0.28); padding: 26px;
}
.modal-box h3 {
  font-size: 17px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); position: relative; padding-left: 14px;
}
.modal-box h3::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--primary); }
