/* ═══════════════════════════════════════════════════
   玄羽-API 主题 — 青滕科技风
   深黑 #020406 + 青绿渐变 #2dd4bf→#34d399 + 玻璃拟态
   覆盖 new-api (Semi Design) 默认样式
   ═══════════════════════════════════════════════════ */

:root,
body[theme-mode='dark'] {
  /* Semi 全局变量覆写 */
  --semi-color-primary: #2dd4bf;
  --semi-color-primary-hover: #34d399;
  --semi-color-primary-active: #14b8a6;
  --semi-color-primary-disabled: rgba(45, 212, 191, .3);
  --semi-color-primary-light-default: rgba(45, 212, 191, .10);
  --semi-color-primary-light-hover: rgba(45, 212, 191, .18);
  --semi-color-primary-light-active: rgba(45, 212, 191, .26);
  --semi-color-success: #34d399;
  --semi-color-warning: #fbbf24;
  --semi-color-danger: #f87171;
  --semi-color-info: #67a6c9;
  --semi-color-link: #2dd4bf;
  --semi-color-link-hover: #34d399;
  --semi-color-link-active: #14b8a6;
  --semi-color-link-visited: #2dd4bf;

  --semi-color-bg-0: rgba(8, 14, 13, .72);
  --semi-color-bg-1: rgba(10, 18, 16, .60);
  --semi-color-bg-2: rgba(14, 24, 22, .66);
  --semi-color-bg-3: rgba(18, 30, 27, .72);
  --semi-color-bg-4: rgba(24, 38, 34, .78);
  --semi-color-nav-bg: rgba(6, 10, 9, .78);
  --semi-color-fill-0: rgba(45, 212, 191, .06);
  --semi-color-fill-1: rgba(45, 212, 191, .12);
  --semi-color-fill-2: rgba(45, 212, 191, .18);
  --semi-color-border: rgba(45, 212, 191, .14);
  --semi-color-shadow: rgba(0, 0, 0, .5);

  --semi-color-text-0: #eefcf8;
  --semi-color-text-1: #b8d8cf;
  --semi-color-text-2: #8fa8a1;
  --semi-color-text-3: #5d7069;
  --semi-color-disabled-text: #4a5a55;
  --semi-color-disabled-bg: rgba(255, 255, 255, .04);
  --semi-color-disabled-border: rgba(45, 212, 191, .08);

  --semi-border-radius-small: 8px;
  --semi-border-radius-medium: 10px;
  --semi-border-radius-large: 14px;
}

/* ── 全局底色 + 氛围光 ── */
html, body {
  background: #020406 !important;
  color: #eefcf8 !important;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(45, 212, 191, .08), transparent 60%),
    radial-gradient(900px 450px at -10% 110%, rgba(52, 211, 153, .06), transparent 60%),
    radial-gradient(600px 600px at 50% 50%, rgba(103, 166, 201, .03), transparent 70%);
}

/* ── 顶栏 / 侧栏：玻璃拟态 ── */
.semi-navigation,
.semi-layout-header,
[class*='header'], [class*='Header'],
.semi-navigation-list {
  background: rgba(4, 8, 7, .72) !important;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: rgba(45, 212, 191, .14) !important;
}
.semi-navigation-item,
.semi-navigation-sub-title,
.semi-navigation-item-text {
  color: #8fa8a1 !important;
}
.semi-navigation-item:hover,
.semi-navigation-item-selected {
  color: #ecfdf9 !important;
  background: rgba(45, 212, 191, .10) !important;
  border-radius: 8px;
}
.semi-navigation-item-selected {
  border-left: 2px solid #2dd4bf !important;
}

/* ── 卡片 / 面板：玻璃卡片 ── */
.semi-card,
.semi-table-container,
[class*='card'], [class*='Card'],
.semi-tabs-content,
.semi-descriptions,
.semi-empty {
  background: rgba(10, 18, 16, .55) !important;
  border: 1px solid rgba(45, 212, 191, .14) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
.semi-card:hover, [class*='card']:hover {
  border-color: rgba(45, 212, 191, .30) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35), 0 0 24px rgba(45, 212, 191, .10);
}

/* ── 主按钮：青绿渐变 + 微光 ── */
.semi-button-primary,
.semi-button-primary.semi-button-with-icon,
button[class*='primary'] {
  background: linear-gradient(135deg, #2dd4bf, #34d399) !important;
  color: #02251f !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(45, 212, 191, .25);
  transition: all .18s ease;
}
.semi-button-primary:hover {
  box-shadow: 0 4px 24px rgba(45, 212, 191, .45);
  transform: translateY(-1px);
}
.semi-button-secondary,
.semi-button-tertiary {
  background: rgba(45, 212, 191, .08) !important;
  border: 1px solid rgba(45, 212, 191, .32) !important;
  color: #2dd4bf !important;
}
.semi-button-secondary:hover,
.semi-button-tertiary:hover {
  border-color: #2dd4bf !important;
  background: rgba(45, 212, 191, .15) !important;
}

/* ── 输入框 / 选择器 ── */
.semi-input-wrapper,
.semi-select,
.semi-input,
.semi-textarea-wrapper,
.semi-input-number,
.semi-datepicker,
.semi-timepicker,
.semi-cascader,
.semi-treeselect {
  background: rgba(0, 0, 0, .40) !important;
  border: 1px solid rgba(45, 212, 191, .16) !important;
  border-radius: 8px !important;
  color: #eefcf8 !important;
}
.semi-input-wrapper:focus-within,
.semi-select:focus,
.semi-input:focus,
.semi-textarea-wrapper:focus-within {
  border-color: #2dd4bf !important;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, .15) !important;
}
.semi-input, .semi-input-default, input, textarea { color: #eefcf8 !important; }
::placeholder { color: #5d7069 !important; }

/* ── 表格 ── */
.semi-table-thead .semi-table-row-head {
  background: rgba(45, 212, 191, .08) !important;
  color: #2dd4bf !important;
}
.semi-table-tbody .semi-table-row {
  background: transparent !important;
  border-color: rgba(45, 212, 191, .08) !important;
}
.semi-table-tbody .semi-table-row:hover {
  background: rgba(45, 212, 191, .06) !important;
}
.semi-table-row-cell { border-color: rgba(45, 212, 191, .08) !important; }

/* ── 弹窗 / 抽屉 / 通知 ── */
.semi-modal-content,
.semi-sidesheet-content,
.semi-toast-content,
.semi-notification-notice,
.semi-popover .semi-popover-content,
.semi-dropdown-menu {
  background: rgba(10, 16, 15, .92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(45, 212, 191, .20) !important;
  border-radius: 14px !important;
  color: #eefcf8 !important;
}
.semi-modal-header, .semi-sidesheet-header {
  border-color: rgba(45, 212, 191, .12) !important;
}

/* ── Tabs / Tag / Badge / 分页 ── */
.semi-tabs-bar .semi-tabs-tab {
  color: #8fa8a1 !important;
}
.semi-tabs-bar .semi-tabs-tab-active {
  color: #2dd4bf !important;
}
.semi-tabs-bar .semi-tabs-tab::after,
.semi-tabs-bar-line .semi-tabs-tab-active ~ .semi-tabs-tab-ink {
  background: #2dd4bf !important;
}
.semi-tag {
  border: 1px solid rgba(45, 212, 191, .28) !important;
  background: rgba(45, 212, 191, .08) !important;
  color: #2dd4bf !important;
  border-radius: 99px !important;
}
.semi-pagination-item-active {
  background: rgba(45, 212, 191, .16) !important;
  border-color: #2dd4bf !important;
  color: #2dd4bf !important;
}
.semi-progress-track-inner-fill,
.semi-progress-circle .semi-progress-circle-ring-inner {
  stroke: #2dd4bf !important;
}
.semi-progress-track-inner-fill {
  background: linear-gradient(90deg, #2dd4bf, #34d399) !important;
}

/* ── 开关 / 复选 / 单选 ── */
.semi-switch-checked {
  background: linear-gradient(135deg, #2dd4bf, #34d399) !important;
}
.semi-checkbox-checked .semi-checkbox-inner,
.semi-radio-checked .semi-radio-inner {
  background: #2dd4bf !important;
  border-color: #2dd4bf !important;
}

/* ── 标题文字：青绿渐变高光 ── */
h1, h2, [class*='title'], [class*='Title'] {
  color: #ecfdf9 !important;
}
[class*='banner'], [class*='Banner'], [class*='hero'], [class*='Hero'] h1,
.semi-typography-h1 {
  background: linear-gradient(120deg, #ecfdf9 20%, #2dd4bf 60%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 链接 ── */
a, .semi-typography-link {
  color: #2dd4bf !important;
}
a:hover { color: #34d399 !important; }

/* ── 代码块 / 统计数字 ── */
code, pre, .semi-typography code {
  background: rgba(45, 212, 191, .10) !important;
  color: #2dd4bf !important;
  border-radius: 6px;
  font-family: 'Cascadia Code', Consolas, ui-monospace, monospace;
}
pre code { background: transparent !important; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(45, 212, 191, .18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(45, 212, 191, .35); }
::-webkit-scrollbar-track { background: transparent; }

/* ── 统计卡片数字 ── */
[class*='statistic'], [class*='Statistic'], [class*='number'], [class*='Number'] {
  color: #2dd4bf !important;
  font-weight: 700;
}

/* ── 分割线 ── */
hr, .semi-divider { border-color: rgba(45, 212, 191, .12) !important; }

/* ── 骨架屏/加载 ── */
.semi-spin-children { color: #2dd4bf; }
.semi-spin { color: #2dd4bf !important; }
