/* ============================================================================
   腾龙发科AI元宇宙 · V70 数字孪生医疗样式层  twin-medical-v70.css
   页面：/frontend/twin-medical.html      前缀 tm70-
   叠加于 common.css / frontend.css / site-nav-v61.css / mobile-v63.css 之上
   严格零内联样式、零第三方依赖，动态宽度一律走预定义档位类 tm70-w0 ~ tm70-w10
   ============================================================================ */

/* ---------------- 一、Hero ---------------- */
.tm70-hero {
  padding: 46px 0 28px;
  background:
    radial-gradient(920px 340px at 12% -10%, rgba(99,102,241,0.22), transparent 62%),
    radial-gradient(780px 300px at 88% 0%, rgba(34,211,238,0.16), transparent 60%);
  border-bottom: 1px solid rgba(99,102,241,0.16);
}
.tm70-crumb { color: #64748b; font-size: 13px; margin-bottom: 14px; }
.tm70-crumb a { color: #94a3b8; text-decoration: none; }
.tm70-crumb a:hover { color: #a5b4fc; }
.tm70-crumb span + span::before { content: '/'; margin: 0 8px; color: #475569; }
.tm70-hero h1 { font-size: 34px; line-height: 1.28; margin: 0 0 12px; color: #f1f5f9; font-weight: 700; }
.tm70-hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg,#818cf8,#22d3ee,#a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm70-hero p { color: #94a3b8; font-size: 14.5px; line-height: 1.9; max-width: 900px; margin: 0 0 8px; }
.tm70-tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tm70-tag {
  font-size: 12px; color: #c7d2fe; padding: 5px 12px; border-radius: 20px;
  background: rgba(99,102,241,0.14); border: 1px solid rgba(129,140,248,0.28);
}
.tm70-tag.cyan { color: #a5f3fc; background: rgba(6,182,212,0.12); border-color: rgba(34,211,238,0.3); }
.tm70-tag.violet { color: #ddd6fe; background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.3); }

/* ---------------- 二、KPI ---------------- */
.tm70-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 26px; }
.tm70-kpi {
  background: rgba(15,23,42,0.62); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px; padding: 16px 12px; text-align: center;
  backdrop-filter: blur(8px); transition: border-color .2s, transform .2s;
}
.tm70-kpi:hover { border-color: rgba(129,140,248,0.5); transform: translateY(-2px); }
.tm70-kpi-v {
  font-size: 21px; font-weight: 700; line-height: 1.2;
  background: linear-gradient(92deg,#a5b4fc,#67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm70-kpi-l { font-size: 12.5px; color: #7c8aa3; margin-top: 6px; }

/* ---------------- 三、模块锚点导航 ---------------- */
.tm70-tabs {
  position: sticky; top: 0; z-index: 20; padding: 12px 0;
  background: rgba(8,12,24,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(99,102,241,0.14);
}
.tm70-tabs-inner { display: flex; flex-wrap: wrap; gap: 8px; }
.tm70-tab {
  font-size: 13px; color: #94a3b8; padding: 8px 15px; border-radius: 9px;
  border: 1px solid rgba(99,102,241,0.2); background: rgba(15,23,42,0.5);
  cursor: pointer; text-decoration: none; transition: all .18s; font-family: inherit;
  white-space: nowrap;
}
.tm70-tab:hover { color: #c7d2fe; border-color: rgba(129,140,248,0.5); }
.tm70-tab.on { color: #fff; background: linear-gradient(92deg,#4f46e5,#0891b2); border-color: transparent; }

/* ---------------- 四、通用区块 ---------------- */
.tm70-sec { padding: 44px 0 6px; }
.tm70-sec-alt { background: rgba(15,23,42,0.34); }
.tm70-sec-h { margin-bottom: 22px; }
.tm70-sec-h h2 { font-size: 25px; color: #e2e8f0; margin: 0 0 10px; font-weight: 700; }
.tm70-sec-h h2 em {
  font-style: normal;
  background: linear-gradient(92deg,#818cf8,#22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm70-sec-h p { color: #8fa0b8; font-size: 14px; line-height: 1.85; margin: 0; max-width: 980px; }
.tm70-sub-h { font-size: 16px; color: #cbd5e1; margin: 22px 0 12px; font-weight: 600; }

/* ---------------- 五、指标卡 ---------------- */
.tm70-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 20px; }
.tm70-metric {
  background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.18);
  border-radius: 12px; padding: 15px 14px; backdrop-filter: blur(8px);
}
.tm70-metric-v {
  font-size: 20px; font-weight: 700; line-height: 1.2;
  background: linear-gradient(92deg,#a5b4fc,#67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tm70-metric-v .u { font-size: 12px; color: #7c8aa3; margin-left: 3px; }
.tm70-metric-l { font-size: 12.5px; color: #7c8aa3; margin-top: 5px; }
.tm70-metric-d { font-size: 11.5px; margin-top: 4px; color: #34d399; }
.tm70-metric-d.dn { color: #f87171; }
.tm70-metric-d.wn { color: #fbbf24; }

/* ---------------- 六、面板与分栏 ---------------- */
.tm70-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tm70-split > * { min-width: 0; }
.tm70-metrics > *, .tm70-grid > *, .tm70-flow > * { min-width: 0; }
.tm70-analyze { min-width: 0; }
.tm70-panel {
  background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.18);
  border-radius: 14px; padding: 18px; backdrop-filter: blur(8px); margin-bottom: 18px;
}
.tm70-panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 15px; color: #dbe4f0; font-weight: 600;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(99,102,241,0.16);
}
.tm70-panel-time { font-size: 12px; color: #64748b; font-weight: 400; }

/* ---------------- 七、表格 ---------------- */
.tm70-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(99,102,241,0.16); }
.tm70-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.tm70-table thead th {
  background: rgba(30,41,59,0.72); color: #93a4bd; font-weight: 600;
  text-align: left; padding: 11px 12px; white-space: nowrap;
  border-bottom: 1px solid rgba(99,102,241,0.2);
}
.tm70-table tbody td {
  padding: 10px 12px; color: #c3cede; border-bottom: 1px solid rgba(99,102,241,0.08);
  vertical-align: middle;
}
.tm70-table tbody tr:hover td { background: rgba(99,102,241,0.07); }
.tm70-table tbody tr:last-child td { border-bottom: none; }
.tm70-table .num { font-variant-numeric: tabular-nums; }
.tm70-tag {
  display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 10px;
  border: 1px solid rgba(129,140,248,0.3); color: #c7d2fe; background: rgba(99,102,241,0.14);
}
.tm70-tag.g { color: #6ee7b7; border-color: rgba(16,185,129,0.34); background: rgba(16,185,129,0.13); }
.tm70-tag.b { color: #7dd3fc; border-color: rgba(56,189,248,0.34); background: rgba(56,189,248,0.13); }
.tm70-tag.r { color: #fca5a5; border-color: rgba(239,68,68,0.34); background: rgba(239,68,68,0.13); }
.tm70-tag.o { color: #fdba74; border-color: rgba(249,115,22,0.34); background: rgba(249,115,22,0.13); }
.tm70-tag.p { color: #d8b4fe; border-color: rgba(168,85,247,0.34); background: rgba(168,85,247,0.13); }

/* ---------------- 八、进度条（档位类，禁内联 style） ---------------- */
.tm70-bar { height: 6px; border-radius: 6px; background: rgba(99,102,241,0.16); overflow: hidden; min-width: 76px; }
.tm70-bar-in { height: 100%; border-radius: 6px; background: linear-gradient(90deg,#6366f1,#22d3ee); }
.tm70-w0 .tm70-bar-in { width: 0; }
.tm70-w1 .tm70-bar-in { width: 10%; }
.tm70-w2 .tm70-bar-in { width: 20%; }
.tm70-w3 .tm70-bar-in { width: 30%; }
.tm70-w4 .tm70-bar-in { width: 40%; }
.tm70-w5 .tm70-bar-in { width: 50%; }
.tm70-w6 .tm70-bar-in { width: 60%; }
.tm70-w7 .tm70-bar-in { width: 70%; }
.tm70-w8 .tm70-bar-in { width: 80%; }
.tm70-w9 .tm70-bar-in { width: 90%; }
.tm70-w10 .tm70-bar-in { width: 100%; }
.tm70-bar-in.warn { background: linear-gradient(90deg,#f59e0b,#f97316); }
.tm70-bar-in.danger { background: linear-gradient(90deg,#ef4444,#f43f5e); }

/* ---------------- 九、数据接入流 ---------------- */
.tm70-streams { list-style: none; margin: 0; padding: 0; }
.tm70-streams li {
  display: flex; align-items: center; gap: 10px; padding: 11px 6px;
  border-bottom: 1px dashed rgba(99,102,241,0.16); font-size: 13.5px;
}
.tm70-streams li:last-child { border-bottom: none; }
.tm70-streams b { color: #cbd5e1; font-weight: 600; }
.tm70-streams i { color: #7c8aa3; font-style: normal; margin-left: auto; font-size: 12.5px; }
.tm70-stream-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34,211,238,0.6); animation: tm70-pulse 2s infinite;
}
@keyframes tm70-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

/* ---------------- 十、工具条 / 表单控件 ---------------- */
.tm70-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.tm70-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 380px;
  background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.22); border-radius: 10px; padding: 0 12px; }
.tm70-search-i { color: #64748b; font-size: 13px; }
.tm70-search input {
  flex: 1; background: transparent; border: none; outline: none; color: #dbe4f0;
  font-size: 13.5px; padding: 10px 0; font-family: inherit;
}
.tm70-select, .tm70-field input, .tm70-field select, .tm70-field textarea {
  background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.22); border-radius: 10px;
  color: #dbe4f0; font-size: 13.5px; padding: 9px 12px; outline: none; font-family: inherit;
}
.tm70-select:focus, .tm70-field input:focus, .tm70-field select:focus, .tm70-field textarea:focus {
  border-color: rgba(129,140,248,0.65);
}
.tm70-btn {
  font-size: 13.5px; padding: 9px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(99,102,241,0.28); background: rgba(30,41,59,0.7); color: #cbd5e1;
  font-family: inherit; transition: all .18s; white-space: nowrap;
}
.tm70-btn:hover { border-color: rgba(129,140,248,0.6); color: #e2e8f0; }
.tm70-btn-primary { background: linear-gradient(92deg,#4f46e5,#0891b2); border-color: transparent; color: #fff; }
.tm70-btn-primary:hover { filter: brightness(1.12); color: #fff; }
.tm70-btn-ghost { background: transparent; }
.tm70-btn-sm { font-size: 12.5px; padding: 6px 13px; }

/* ---------------- 十一、分类胶囊 ---------------- */
.tm70-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tm70-chip {
  font-size: 12.5px; color: #93a4bd; padding: 6px 14px; border-radius: 20px; cursor: pointer;
  border: 1px solid rgba(99,102,241,0.2); background: rgba(15,23,42,0.5);
  transition: all .18s; font-family: inherit;
}
.tm70-chip:hover { color: #c7d2fe; border-color: rgba(129,140,248,0.5); }
.tm70-chip.on { color: #fff; background: linear-gradient(92deg,#4f46e5,#0891b2); border-color: transparent; }

/* ---------------- 十二、卡片网格 ---------------- */
.tm70-grid { display: grid; gap: 16px; margin-bottom: 18px; }
.tm70-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tm70-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tm70-grid-5 { grid-template-columns: repeat(5, 1fr); }
.tm70-card {
  background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.18);
  border-radius: 14px; padding: 18px; backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, box-shadow .2s; position: relative;
}
.tm70-card:hover { transform: translateY(-3px); border-color: rgba(129,140,248,0.5);
  box-shadow: 0 10px 26px rgba(79,70,229,0.14); }
.tm70-card-ico {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 12px;
  background: linear-gradient(135deg,rgba(99,102,241,0.3),rgba(34,211,238,0.24));
  border: 1px solid rgba(129,140,248,0.28);
}
.tm70-card-t { font-size: 15.5px; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; padding-right: 46px; }
.tm70-card-d { font-size: 13px; color: #8fa0b8; line-height: 1.75; margin-bottom: 10px; min-height: 42px; }
.tm70-card-e { font-size: 12.5px; color: #6ee7b7; margin-bottom: 10px; }
.tm70-card-m { font-size: 12px; color: #7c8aa3; margin-bottom: 12px; }
.tm70-card-f { display: flex; gap: 8px; flex-wrap: wrap; }
.tm70-card-tag { position: absolute; top: 14px; right: 14px; }
.tm70-card-score { font-size: 12.5px; color: #a5b4fc; }

/* ---------------- 十三、分页 ---------------- */
.tm70-pager { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 6px 0 12px; }
.tm70-page {
  min-width: 34px; text-align: center; font-size: 13px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(99,102,241,0.2); background: rgba(15,23,42,0.5); color: #93a4bd;
  cursor: pointer; font-family: inherit; transition: all .16s;
}
.tm70-page:hover { color: #c7d2fe; border-color: rgba(129,140,248,0.5); }
.tm70-page.on { color: #fff; background: linear-gradient(92deg,#4f46e5,#0891b2); border-color: transparent; }
.tm70-page[disabled] { opacity: .42; cursor: not-allowed; }
.tm70-note { font-size: 12.5px; color: #64748b; }

/* ---------------- 十四、表单与输出 ---------------- */
.tm70-analyze { margin-top: 18px; }
.tm70-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; align-items: end; }
.tm70-field { display: flex; flex-direction: column; gap: 7px; }
.tm70-field label { font-size: 12.5px; color: #8fa0b8; }
.tm70-field input, .tm70-field select, .tm70-field textarea { width: 100%; box-sizing: border-box; }
.tm70-field textarea { min-height: 74px; resize: vertical; }
.tm70-field-btn { justify-content: flex-end; }
.tm70-field-wide { grid-column: span 2; }
.tm70-field-block { margin-top: 13px; }
.tm70-form-actions { margin-top: 14px; }
.tm70-out {
  margin-top: 14px; font-size: 13px; color: #93a4bd; line-height: 1.8;
  background: rgba(30,41,59,0.5); border: 1px dashed rgba(99,102,241,0.24);
  border-radius: 10px; padding: 12px 14px; min-height: 44px;
}
.tm70-out.ok { color: #86efac; border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.08); }
.tm70-out.err { color: #fca5a5; border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.08); }

/* ---------------- 十五、五步法流程 ---------------- */
.tm70-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tm70-flow-step {
  background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.18);
  border-radius: 14px; padding: 18px 16px; position: relative;
}
.tm70-flow-no {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 12px;
  background: linear-gradient(135deg,#4f46e5,#0891b2);
}
.tm70-flow-name { font-size: 14.5px; color: #e2e8f0; font-weight: 700; margin-bottom: 8px; }
.tm70-flow-desc { font-size: 12.5px; color: #8fa0b8; line-height: 1.75; margin-bottom: 10px; }
.tm70-flow-dur { font-size: 12px; color: #a5b4fc; }

/* ---------------- 十六、开发者文档 ---------------- */
.tm70-docs { background: rgba(9,14,28,0.72); border: 1px solid rgba(99,102,241,0.2); border-radius: 14px; overflow: hidden; }
.tm70-docs-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(99,102,241,0.16); }
.tm70-doc-tab {
  font-size: 12.5px; color: #93a4bd; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(99,102,241,0.2); background: rgba(15,23,42,0.5); font-family: inherit;
  transition: all .16s;
}
.tm70-doc-tab:hover { color: #c7d2fe; }
.tm70-doc-tab.on { color: #fff; background: linear-gradient(92deg,#4f46e5,#0891b2); border-color: transparent; }
.tm70-code {
  margin: 0; padding: 18px; font-size: 12.5px; line-height: 1.75; color: #a5f3fc;
  overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre; background: transparent;
}

/* ---------------- 十七、弹窗与提示 ---------------- */
.tm70-mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(4,8,18,0.72);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.tm70-mask.on { display: flex; }
.tm70-modal-box {
  width: 100%; max-width: 720px; max-height: 86vh; overflow-y: auto;
  background: rgba(13,19,36,0.98); border: 1px solid rgba(99,102,241,0.32);
  border-radius: 16px; padding: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.tm70-modal-h { font-size: 19px; color: #e2e8f0; font-weight: 700; margin-bottom: 6px; }
.tm70-modal-sub { font-size: 13px; color: #8fa0b8; margin-bottom: 16px; line-height: 1.7; }
.tm70-modal-sec { margin-bottom: 14px; }
.tm70-modal-sec-t { font-size: 13px; color: #a5b4fc; font-weight: 600; margin-bottom: 8px; }
.tm70-modal-list { list-style: none; margin: 0; padding: 0; }
.tm70-modal-list li { font-size: 13px; color: #93a4bd; padding: 5px 0; line-height: 1.7; }
.tm70-modal-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.tm70-modal-meta div { font-size: 12.5px; color: #8fa0b8; background: rgba(30,41,59,0.55); border-radius: 9px; padding: 9px 12px; }
.tm70-modal-meta b { color: #dbe4f0; display: block; margin-top: 4px; font-size: 13.5px; }
.tm70-modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.tm70-toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(16px);
  z-index: 80; background: rgba(15,23,42,0.97); border: 1px solid rgba(99,102,241,0.4);
  color: #dbe4f0; font-size: 13.5px; padding: 12px 20px; border-radius: 11px;
  opacity: 0; pointer-events: none; transition: all .26s; max-width: 86vw; text-align: center;
}
.tm70-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.tm70-toast.ok { border-color: rgba(16,185,129,0.5); color: #86efac; }
.tm70-toast.err { border-color: rgba(239,68,68,0.5); color: #fca5a5; }

/* ---------------- 十八、空态与收藏 ---------------- */
.tm70-empty { font-size: 13px; color: #64748b; padding: 26px 0; text-align: center; grid-column: 1 / -1; }
.tm70-fav { margin-top: 18px; }
.tm70-a { color: #a5b4fc; cursor: pointer; background: none; border: none; font-family: inherit; font-size: 13px; padding: 0; }
.tm70-a:hover { text-decoration: underline; }
.tm70-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- 十九、响应式 ---------------- */
@media (max-width: 1180px) {
  .tm70-kpis { grid-template-columns: repeat(3, 1fr); }
  .tm70-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .tm70-flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .tm70-metrics { grid-template-columns: repeat(3, 1fr); }
  .tm70-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tm70-split { grid-template-columns: 1fr; }
  .tm70-form-row { grid-template-columns: repeat(2, 1fr); }
  .tm70-field-wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .tm70-hero { padding: 32px 0 22px; }
  .tm70-hero h1 { font-size: 25px; }
  .tm70-kpis { grid-template-columns: repeat(2, 1fr); }
  .tm70-metrics { grid-template-columns: repeat(2, 1fr); }
  .tm70-grid-3, .tm70-grid-4, .tm70-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .tm70-flow { grid-template-columns: 1fr; }
  .tm70-form-row { grid-template-columns: 1fr; }
  .tm70-field-wide { grid-column: span 1; }
  .tm70-sec { padding: 32px 0 4px; }
  .tm70-sec-h h2 { font-size: 21px; }
  .tm70-modal-meta { grid-template-columns: 1fr; }
  .tm70-tabs-inner { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 420px) {
  .tm70-kpis, .tm70-metrics { grid-template-columns: 1fr; }
  .tm70-grid-3, .tm70-grid-4, .tm70-grid-5 { grid-template-columns: 1fr; }
}
