:root {
  --color-primary: #1668dc;
  --color-primary-hover: #1055bb;
  --color-primary-soft: #eef5fd;
  --color-primary-border: #a9c9f2;
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-border: #dfe3ec;
  --color-border-light: #e4e7ef;
  --color-text-primary: #303133;
  --color-text-strong: #2b2f36;
  --color-text-secondary: #606266;
  --color-text-muted: #909399;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --radius-input: 4px;
  --radius-panel: 8px;
  --space-page: 12px;
  --space-panel-gap: 10px;
  --space-grid-gap: 12px;
  --space-panel-padding: 18px 20px;
  --side-width: 280px;
  --app-header-height: 58px;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--color-text-primary);
  background: var(--color-background);
  font-family: var(--font-sans);
  font-size: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  min-height: calc(100vh - var(--app-header-height));
  padding: var(--space-page);
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
}

.panel + .panel {
  margin-top: var(--space-panel-gap);
}

.query-panel,
.list-panel,
.component-panel {
  padding: var(--space-panel-padding);
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 24px;
  color: var(--color-text-strong);
  font-size: 16px;
  font-weight: 700;
}

.section-title::before {
  content: "";
  width: 3px;
  height: 18px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--color-primary);
}

.demo-layout,
.tree-table-layout {
  display: grid;
  grid-template-columns: var(--side-width) minmax(0, 1fr);
  gap: var(--space-grid-gap);
  align-items: start;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid-gap);
  margin-top: 16px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-grid-gap);
  margin-top: 16px;
}

.detail-layout,
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 1200px) {
  .demo-layout,
  .tree-table-layout,
  .detail-layout,
  .chart-grid,
  .component-grid,
  .overview-grid,
  .info-grid,
  .step-row,
  .query-form {
    grid-template-columns: 1fr;
  }

  .side-stack {
    position: static;
  }

  .query-actions {
    justify-content: flex-start;
  }
}

input[type="checkbox"], input[type="radio"] { accent-color: #1668dc; }
.demo-note {
  margin: 0 0 10px; padding: 10px 14px;
  border: 1px solid #a9c9f2; border-radius: 8px;
  color: #1668dc; background: #eef5fd; line-height: 1.6;
}
.more-query {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; border: 0; background: transparent;
  color: #1668dc; cursor: pointer;
}
.component-block { min-width: 0; padding: 14px; border: 1px solid #e4e7ef; border-radius: 8px; background: #fff; }
.component-block.wide { grid-column: 1 / -1; }
.block-title { margin: 0 0 12px; color: #303133; font-size: 14px; font-weight: 700; }
.visual-guide { margin-bottom: 10px; }
.guide-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.guide-card { min-width: 0; padding: 14px; border: 1px solid #e4e7ef; border-radius: 8px; background: #fff; }
.color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.color-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.color-swatch { width: 40px; height: 28px; border: 1px solid #dfe3ec; border-radius: 4px; }
.color-name { color: #303133; font-weight: 600; line-height: 1.4; }
.color-value { color: #909399; font-size: 12px; line-height: 1.4; }
.type-list, .spec-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.type-row, .spec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #606266; }
.type-sample { color: #303133; font-weight: 700; white-space: nowrap; }
.spec-value { color: #303133; font-weight: 600; white-space: nowrap; }
.text-page-title { font-size: 24px; }
.text-card-title { font-size: 18px; }
.text-section-title { font-size: 16px; }
.text-body { font-size: 14px; }
.text-assist { font-size: 12px; color: #909399; }

.query-form {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 32px; align-items: center; margin-top: 24px;
}
.form-item {
  display: grid; grid-template-columns: 100px minmax(0, 1fr);
  align-items: center; gap: 8px; min-width: 0;
}
.form-label { text-align: right; color: #606266; white-space: nowrap; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #dcdfe6; border-radius: 4px;
  color: #303133; background: #fff; outline: none;
}
.input, .select { height: 32px; padding: 0 12px; }
.input.is-readonly, .select.is-readonly, .textarea.is-readonly { color: #909399; background: #f5f7fb; cursor: not-allowed; }
.textarea { min-height: 72px; padding: 8px 12px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #c0c4cc; }
.input:focus, .select:focus, .textarea:focus { border-color: #1668dc; }
.input-group { display: flex; align-items: center; width: 100%; }
.input-group .input { border-radius: 4px 0 0 4px; }
.input-suffix {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-width: 42px; padding: 0 10px;
  border: 1px solid #dcdfe6; border-left: 0; border-radius: 0 4px 4px 0;
  color: #606266; background: #f5f7fb; white-space: nowrap;
}
.date-range { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 6px; width: 100%; }
.range-separator { color: #909399; text-align: center; }
.cascader, .tree-select { position: relative; width: 100%; }
.cascader .select, .tree-select .input { padding-right: 30px; }
.field-arrow { position: absolute; right: 10px; top: 50%; color: #909399; transform: translateY(-50%); pointer-events: none; }
.check-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: #606266; }
.check-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.switch { position: relative; display: inline-flex; align-items: center; width: 42px; height: 22px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-slider { width: 42px; height: 22px; border-radius: 12px; background: #dcdfe6; cursor: pointer; transition: background 0.2s ease; }
.switch-slider::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(31, 45, 61, 0.2); transition: transform 0.2s ease;
}
.switch input:checked + .switch-slider { background: #1668dc; }
.switch input:checked + .switch-slider::after { transform: translateX(20px); }
.advanced { display: contents; }
.advanced.is-hidden { display: none; }
.query-actions { display: flex; justify-content: flex-end; gap: 10px; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 32px; padding: 0 16px;
  border: 1px solid #dcdfe6; border-radius: 18px;
  color: #606266; background: #fff; cursor: pointer; white-space: nowrap;
}
.btn:hover { color: #1668dc; border-color: #a9c9f2; background: #eef5fd; }
.btn-primary { border-color: #1668dc; color: #fff; background: #1668dc; }
.btn-primary:hover { color: #fff; border-color: #1055bb; background: #1055bb; }
.btn-success { border-color: #67c23a; color: #fff; background: #67c23a; }
.btn-success:hover { color: #fff; border-color: #5eb838; background: #5eb838; }
.btn-danger { border-color: #d96c6c; color: #fff; background: #d96c6c; }
.btn-danger:hover { color: #fff; border-color: #c45656; background: #c45656; }
.btn:disabled { color: #b9bec8; border-color: #e2e6ef; background: #f7f8fb; cursor: not-allowed; }
.button-row, .tag-row, .inline-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-divider { width: 1px; height: 26px; margin: 0 2px; background: #dfe3ec; }
.list-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.status-tag, .tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; line-height: 18px; }
.tag { color: #1668dc; border: 1px solid #a9c9f2; background: #eef5fd; }
.status-tag.is-running { color: #1668dc; background: #e8f1fc; }
.status-tag.is-stopped { color: #e6a23c; background: #fdf6ec; }
.status-tag.is-retired { color: #909399; background: #f4f4f5; }
.status-tag.is-danger { color: #c45656; background: #fef0f0; }
.link { color: #1668dc; text-decoration: underline; cursor: pointer; }

.table-shell {
  height: 300px; border: 1px solid #dfe3ec; border-radius: 8px 8px 0 0;
  overflow: auto; background: #fff;
}
.table-shell.is-loading, .table-shell.is-error { display: flex; align-items: center; justify-content: center; }
.loading-state, .error-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; color: #909399; text-align: center; }
.loading-spinner { width: 28px; height: 28px; margin-bottom: 10px; border: 3px solid #dfe3ec; border-top-color: #1668dc; border-radius: 50%; }
.error-icon { width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; color: #c45656; background: #fef0f0; line-height: 34px; font-weight: 700; }
.table-shell.is-empty { display: flex; align-items: center; justify-content: center; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; color: #909399; text-align: center; }
.empty-icon { width: 56px; height: 44px; margin-bottom: 10px; color: #b8c0cc; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-title { color: #606266; font-weight: 700; }
.empty-desc { margin-top: 4px; color: #909399; font-size: 12px; }
table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; }
th, td {
  min-width: 120px;
  height: 40px; padding: 8px 14px;
  border-right: 1px solid #e4e7ef; border-bottom: 1px solid #e4e7ef;
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
th { position: sticky; top: 0; z-index: 2; color: #303133; font-weight: 700; background: #fff; }
tbody tr:nth-child(even) td { background: #f4f6fd; }
.col-check { width: 64px; min-width: 64px; text-align: center; }
.col-index { width: 80px; min-width: 80px; text-align: center; }
.col-action { width: 150px; min-width: 150px; text-align: center; }
.col-action.is-fixed-right { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -4px 0 8px rgba(31, 45, 61, 0.06); }
th.col-action.is-fixed-right { z-index: 3; }
.pagination-bar {
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 46px; padding: 8px 12px;
  border: 1px solid #dfe3ec; border-top: 0; border-radius: 0 0 8px 8px;
  color: #606266; background: #fff; font-size: 13px;
}
.pagination-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn {
  height: 28px; min-width: 30px; padding: 0 8px;
  border: 1px solid #dcdfe6; border-radius: 4px;
  color: #606266; background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 500; line-height: 26px;
}
.page-btn.page-arrow { min-width: 30px; }
.page-btn:hover { color: #1668dc; border-color: #1668dc; }
.page-btn.is-active { color: #fff; border-color: #1668dc; background: #1668dc; }
.page-btn:disabled { color: #c0c4cc; background: #f7f8fb; cursor: not-allowed; }
.page-more {
  min-width: 30px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #dcdfe6; border-radius: 4px;
  color: #909399; background: #fff; font-size: 13px;
}
.page-size, .jump-input {
  height: 28px; border: 1px solid #dcdfe6; border-radius: 4px;
  color: #606266; background: #fff; outline: none; font-size: 13px;
}
.page-size { width: 100px; padding: 0 24px 0 8px; }
.jump-input { width: 54px; padding: 0 6px; text-align: center; }
.pagination-total { color: #606266; white-space: nowrap; }
.pagination-jumper { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #606266; }

.side-stack { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.tree-panel { overflow: hidden; }
.tree-sidebar-header { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #e4e7ef; color: #2b2f36; font-size: 15px; font-weight: 700; }
.tree-search { padding: 8px 12px; border-bottom: 1px solid #e4e7ef; }
.tree-body { max-height: 400px; overflow: auto; padding: 4px 0 12px; }
.tree-node-row { display: flex; align-items: center; gap: 4px; height: 32px; margin: 1px 8px; padding: 0 8px 0 0; border-radius: 4px; color: #303133; font-size: 13px; cursor: pointer; }
.tree-node-row:hover { background: #f5f7fb; }
.tree-node-row.is-active { color: #1668dc; background: #e8f1fc; font-weight: 600; }
.tree-toggle { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #909399; font-size: 10px; flex: 0 0 20px; }
.tree-toggle.is-leaf { visibility: hidden; }
.tree-icon { width: 14px; height: 14px; margin-right: 4px; flex: 0 0 auto; color: #1668dc; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tree-icon.icon-region { color: #d68b00; }
.tree-icon.icon-station { color: #6d7f3f; }
.tree-icon.icon-point { color: #1668dc; }
.tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-count { margin-left: auto; color: #909399; font-size: 11px; }
.tree-table-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 12px; margin-top: 16px; align-items: start; }
.tree-table-layout .tree-panel { min-height: 360px; }
.tab-sidebar { border: 1px solid #dfe3ec; border-radius: 8px; overflow: hidden; background: #fff; }
.tab-sidebar-title { padding: 16px 16px 12px; border-bottom: 1px solid #e4e7ef; color: #2b2f36; font-size: 15px; font-weight: 700; }
.tab-list { margin: 0; padding: 0; list-style: none; }
.tab-btn { display: block; width: 100%; height: 44px; padding: 0 16px; border: 0; border-left: 4px solid transparent; color: #606266; background: transparent; text-align: left; cursor: pointer; }
.tab-btn:hover { color: #303133; background: #f5f7fb; }
.tab-btn.is-active { color: #1668dc; border-left-color: #1668dc; background: #e8f1fc; font-weight: 600; }

.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.metric-card { min-height: 104px; padding: 16px; border: 1px solid #dfe3ec; border-radius: 8px; background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%); }
.metric-label { color: #606266; line-height: 1.5; }
.metric-value { margin-top: 8px; color: #1668dc; font-size: 26px; font-weight: 700; line-height: 1; }
.metric-extra { margin-top: 10px; color: #909399; font-size: 12px; }
.chart-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; margin-top: 16px; }
.chart-card { min-height: 248px; padding: 16px; border: 1px solid #dfe3ec; border-radius: 8px; background: #fff; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { margin: 0; color: #303133; font-size: 16px; font-weight: 700; }
.segmented { display: inline-flex; padding: 2px; border: 1px solid #dfe3ec; border-radius: 18px; background: #f7f8fb; }
.segment { height: 26px; padding: 0 12px; border: 0; border-radius: 14px; color: #606266; background: transparent; cursor: pointer; }
.segment.is-active { color: #fff; background: #1668dc; }
.bar-chart { display: grid; gap: 12px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 54px; align-items: center; gap: 10px; min-height: 28px; }
.bar-label { color: #606266; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 12px; overflow: hidden; border-radius: 8px; background: #edf0f5; }
.bar-fill { height: 100%; border-radius: 8px; background: #1668dc; }
.bar-fill.alt { background: #d68b00; }
.bar-fill.warn { background: #b85c5c; }
.bar-fill.deep { background: #6d7f3f; }
.bar-value { color: #303133; text-align: right; font-weight: 700; }

.detail-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.detail-card, .info-card { padding: 18px; border: 1px solid #dfe3ec; border-radius: 8px; background: #fff; }
.detail-card-title { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e4e7ef; color: #303133; font-size: 16px; font-weight: 700; }
.detail-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.detail-card-item {
  display: grid; grid-template-columns: 94px minmax(0, 1fr);
  align-items: center; min-width: 0; min-height: 34px;
  padding: 5px 0;
}
.detail-card-label { color: #606266; text-align: right; white-space: nowrap; }
.detail-card-label::after { content: "："; }
.detail-card-value { color: #303133; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-card-value .status-tag {
  display: inline-flex; width: auto; max-width: max-content;
  align-items: center; font-weight: 400;
}
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.info-item {
  display: grid; grid-template-columns: 98px minmax(0, 1fr);
  align-items: center; min-width: 0; min-height: 34px;
  padding: 5px 0;
}
.info-item label { color: #606266; text-align: right; white-space: nowrap; }
.info-item label::after { content: "："; }
.info-item > span { max-width: 100%; color: #303133; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-item .status-tag, .info-item .tag {
  display: inline-flex; width: auto; max-width: max-content;
  align-items: center; font-weight: 400;
}
.form-section { margin-top: 16px; padding: 16px; border: 1px solid #e4e7ef; border-radius: 8px; background: #fff; }
.form-section:first-child { margin-top: 0; }
.form-section-title { margin: 0 0 14px; color: #303133; font-size: 15px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.form-grid .form-item { grid-template-columns: 110px minmax(0, 1fr); }
.form-grid .form-item.full { grid-column: 1 / -1; }
.alert {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px;
  border: 1px solid #a9c9f2; border-radius: 4px;
  color: #1668dc; background: #eef5fd; line-height: 1.6;
}
.alert.is-warning { color: #a36b00; border-color: #f0d49a; background: #fdf6ec; }
.scheme-tabs { display: flex; gap: 0; margin-bottom: 12px; border-bottom: 1px solid #dfe3ec; }
.scheme-tab { height: 38px; padding: 0 16px; border: 0; color: #606266; background: transparent; cursor: pointer; }
.scheme-tab.is-active { color: #1668dc; border-bottom: 3px solid #1668dc; font-weight: 700; }
.tabs-panel { margin-top: 16px; }
.step-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.step { padding: 10px 12px; border: 1px solid #dfe3ec; border-radius: 8px; background: #fff; }
.step.is-active { border-color: #a9c9f2; color: #1668dc; background: #eef5fd; font-weight: 700; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; color: #fff; background: #1668dc; font-size: 12px; }
.timeline { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.timeline-time { color: #909399; font-size: 12px; text-align: right; line-height: 22px; }
.timeline-content { position: relative; padding-left: 18px; color: #606266; line-height: 1.6; }
.timeline-content::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px; border: 2px solid #1668dc; border-radius: 50%; background: #fff;
}
.timeline-content::after {
  content: ""; position: absolute; left: 5px; top: 18px; bottom: -18px;
  width: 1px; background: #dfe3ec;
}
.timeline-item:last-child .timeline-content::after { display: none; }
.timeline-title { color: #303133; font-weight: 700; }

.modal-mask { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(31, 45, 61, 0.32); }
.modal-mask.is-visible { display: flex; }
.modal { width: 680px; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(31, 45, 61, 0.24); }
.modal.is-confirm { width: 420px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; border-bottom: 1px solid #dfe3ec; }
.modal-title { margin: 0; color: #303133; font-size: 16px; font-weight: 700; }
.close-btn { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #606266; background: transparent; cursor: pointer; font-size: 20px; line-height: 32px; }
.modal-body { flex: 1; overflow: auto; padding: 18px 20px 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid #dfe3ec; }
.modal-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.modal-form-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.modal-form-item.full { grid-column: 1 / -1; }
.modal-form-label { color: #606266; font-size: 13px; }
.required { color: #e6a23c; margin-right: 2px; }
.toast {
  position: fixed; top: 20px; left: 50%; z-index: 120;
  display: none; min-width: 280px; padding: 10px 16px;
  border: 1px solid #a9c9f2; border-radius: 4px;
  color: #1668dc; text-align: center; background: #eef5fd;
  box-shadow: 0 4px 12px rgba(48, 49, 51, 0.12);
  transform: translateX(-50%);
}
.toast.is-visible { display: block; }
@media (max-width: 1200px) {
  .demo-layout, .detail-layout, .chart-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .component-grid, .guide-grid, .overview-grid, .info-grid, .step-row, .query-form { grid-template-columns: 1fr; }
  .query-actions { justify-content: flex-start; }
}

/* ===== 数据表格（mtx：集中式储能运维/电价预测/数据资产运营页共用）===== */
.mtx-wrapper {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border-light); border-radius: 12px;
  background: var(--color-surface); box-shadow: 0 6px 18px rgba(7, 28, 56, .05);
}
.mtx { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.mtx th, .mtx td {
  padding: 13px 16px; text-align: left; vertical-align: top;
  line-height: 1.75; border-bottom: 1px solid var(--color-border-light);
}
.mtx thead th {
  background: linear-gradient(135deg, #0d3a72, #1668dc); color: #fff;
  font-weight: 600; white-space: nowrap;
}
.mtx tbody tr:nth-child(even) { background: #f7f9fc; }
.mtx tbody tr:last-child td { border-bottom: none; }
.mtx td strong { color: #0d3a72; }
.mtx td:first-child { white-space: nowrap; }

/* ===== 平台三层架构图（充电站运行平台）===== */
.arch-stack { display: flex; flex-direction: column; gap: 18px; }
.arch-row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: stretch; }
.arch-tag { border-radius: 10px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 6px; text-indent: 6px; writing-mode: vertical-rl; text-orientation: upright; display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.arch-tag.blue { background: linear-gradient(180deg, #3b82f6, #1668dc); }
.arch-tag.teal { background: linear-gradient(180deg, #2bbfa5, #149d86); }
.arch-panel { border: 1.5px dashed; border-radius: 12px; padding: 14px; background: #fff; }
.arch-panel.blue { border-color: #9cc3f5; }
.arch-panel.teal { border-color: #8fd9cc; }
.arch-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.arch-term { background: var(--color-primary-soft); border-radius: 10px; padding: 13px 10px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--color-primary); font-weight: 600; font-size: 15px; }
.arch-term svg { width: 19px; height: 19px; flex: none; }
.arch-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.arch-app { background: #f4fbfa; border: 1px solid #e2f2ef; border-radius: 10px; padding: 12px; }
.arch-app h3 { margin: 0 0 10px; text-align: center; font-size: 15px; color: var(--color-text-strong); }
.arch-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.arch-pill { background: #27b39c; color: #fff; border-radius: 7px; padding: 8px 4px; text-align: center; font-size: 13px; }
.arch-devs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.arch-dev { background: var(--color-primary-soft); border-radius: 10px; padding: 14px 6px; text-align: center; color: var(--color-primary); font-weight: 600; font-size: 14px; }
@media (max-width: 960px) {
  .arch-apps { grid-template-columns: repeat(2, 1fr); }
  .arch-devs { grid-template-columns: repeat(3, 1fr); }
  .arch-terms { grid-template-columns: 1fr; }
}
