/* 智械云枢 / Quoin VI — New API 主题覆盖
 * 主蓝 #1D5BFF · 墨蓝 #0A1B3F · 辅助蓝 #4E7CFF · 纸白 #FFFFFF
 * 浅蓝底 #F4F7FC · 描边 #DCE5F5 · 次级文字 #5B6A80
 * 规则：直角、无渐变/发光/彩色投影
 */

:root,
body,
body[theme-mode],
body[theme-mode='light'],
body[theme-mode='dark'],
.semi-always-light,
.semi-always-dark {
  /* Semi Design 主色 */
  --semi-color-primary: #1d5bff !important;
  --semi-color-primary-hover: #4e7cff !important;
  --semi-color-primary-active: #1546cc !important;
  --semi-color-primary-disabled: #a8c0ff !important;
  --semi-color-primary-light-default: rgba(29, 91, 255, 0.1) !important;
  --semi-color-primary-light-hover: rgba(29, 91, 255, 0.18) !important;
  --semi-color-primary-light-active: rgba(29, 91, 255, 0.26) !important;
  --semi-color-link: #1d5bff !important;
  --semi-color-link-hover: #4e7cff !important;
  --semi-color-link-active: #1546cc !important;
  --semi-color-focus-border: #1d5bff !important;

  /* 中性色走墨蓝系 */
  --semi-color-text-0: #0a1b3f !important;
  --semi-color-text-1: #1b2a4a !important;
  --semi-color-text-2: #5b6a80 !important;
  --semi-color-text-3: #8a97ab !important;
  --semi-color-border: #dce5f5 !important;
  --semi-color-fill-0: #f4f7fc !important;
  --semi-color-fill-1: #eaf0fa !important;
  --semi-color-bg-0: #ffffff !important;
  --semi-color-bg-1: #ffffff !important;
  --semi-color-bg-2: #f4f7fc !important;

  /* Tailwind 侧（v1.0 前端也用） */
  --primary: #1d5bff;
  --primary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #0a1b3f;
  --border: #dce5f5;
  --input: #dce5f5;
  --ring: #1d5bff;
  --muted: #f4f7fc;
  --muted-foreground: #5b6a80;
  --card: #ffffff;
  --card-foreground: #0a1b3f;
  --accent: #f4f7fc;
  --accent-foreground: #0a1b3f;
  --radius: 0px;
}

body,
.semi-always-light,
.semi-always-dark {
  font-family:
    'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', 'PingFang SC',
    'Microsoft YaHei', 'Segoe UI', system-ui, sans-serif;
}

/* 直角：VI 规定圆角为 0 */
.semi-button,
.semi-button-primary,
.semi-button-secondary,
.semi-button-tertiary,
.semi-input,
.semi-input-wrapper,
.semi-select,
.semi-select-selection,
.semi-card,
.semi-modal,
.semi-modal-content,
.semi-tag,
.semi-badge,
.semi-avatar,
.semi-tabs-tab,
.semi-table,
.semi-table-container,
.semi-dropdown,
.semi-popover,
.semi-tooltip-content,
.semi-toast-content,
.semi-notification-notice,
.semi-alert,
.semi-collapse-item,
.semi-navigation-item,
.semi-pagination-item,
[class*='rounded-'] {
  border-radius: 0 !important;
}

/* 去掉彩色投影和发光，只保留极淡的边界阴影 */
.semi-button-primary,
.semi-tag-solid,
.semi-badge-count {
  box-shadow: none !important;
}

.semi-card,
.semi-modal-content,
.semi-dropdown,
.semi-popover,
.semi-table-container {
  box-shadow: 0 1px 0 rgba(10, 27, 63, 0.06) !important;
}

/* 深色模式：墨蓝底 */
.dark,
[data-theme='dark'] {
  --semi-color-bg-0: #0a1b3f !important;
  --semi-color-bg-1: #0f2348 !important;
  --semi-color-bg-2: #142a52 !important;
  --semi-color-text-0: #ffffff !important;
  --semi-color-text-1: #e8eefb !important;
  --semi-color-text-2: #a8b6cf !important;
  --semi-color-border: rgba(255, 255, 255, 0.14) !important;
  --semi-color-fill-0: rgba(255, 255, 255, 0.06) !important;
  --semi-color-fill-1: rgba(255, 255, 255, 0.1) !important;
  --semi-color-primary: #4e7cff !important;
  --semi-color-primary-hover: #6b93ff !important;
}

/* 直角：覆盖 Tailwind 工具类的 !rounded-full / !rounded-* */
.semi-button,
button[class*='rounded'],
a[class*='rounded'][class*='semi-button'],
.semi-input,
.semi-input-wrapper,
.semi-select,
.semi-select-selection,
input,
textarea,
select,
.semi-modal-content,
.semi-card,
.semi-tag,
.semi-dropdown,
.semi-popover {
  border-radius: 0 !important;
}

/* 输入框内的图标按钮保持可点击区域，但不带胶囊形 */
.semi-input-wrapper button,
.semi-input button {
  border-radius: 0 !important;
}
