/* ===== 转转接口 - Semi UI 黑金全局主题覆盖 ===== */

/* 覆盖所有 Semi UI CSS 变量 */
:root, body, body[theme-mode="dark"], body[theme-mode="light"], .semi-light-scrollbar, .semi-dark-scrollbar {
  --semi-color-primary: #c9a96e !important;
  --semi-color-primary-hover: #d4b87a !important;
  --semi-color-primary-active: #b8956a !important;
  --semi-color-primary-disabled: rgba(201,169,110,0.35) !important;
  --semi-color-primary-light-default: rgba(201,169,110,0.1) !important;
  --semi-color-primary-light-hover: rgba(201,169,110,0.18) !important;
  --semi-color-primary-light-active: rgba(201,169,110,0.22) !important;

  --semi-color-bg-0: #0a0908 !important;
  --semi-color-bg-1: #141210 !important;
  --semi-color-bg-2: #1c1a16 !important;
  --semi-color-bg-3: #24221e !important;
  --semi-color-bg-4: #2c2a26 !important;

  --semi-color-text-0: #f5f0e8 !important;
  --semi-color-text-1: #e0dbd4 !important;
  --semi-color-text-2: #9a9590 !important;

  --semi-color-border: rgba(201,169,110,0.12) !important;
  --semi-color-shadow: rgba(0,0,0,0.5) !important;

  --semi-color-fill-0: rgba(255,255,255,0.03) !important;
  --semi-color-fill-1: rgba(255,255,255,0.05) !important;
  --semi-color-fill-2: rgba(255,255,255,0.07) !important;

  --semi-color-success: #c9a96e !important;
  --semi-color-success-hover: #d4b87a !important;
  --semi-color-success-active: #b8956a !important;
  --semi-color-success-light-default: rgba(201,169,110,0.1) !important;
  --semi-color-success-light-hover: rgba(201,169,110,0.18) !important;
  --semi-color-success-light-active: rgba(201,169,110,0.22) !important;

  --semi-color-warning: #c9a96e !important;
  --semi-color-warning-hover: #d4b87a !important;
  --semi-color-warning-light-default: rgba(201,169,110,0.1) !important;
  --semi-color-warning-light-hover: rgba(201,169,110,0.18) !important;

  --semi-color-danger: #b07060 !important;
  --semi-color-danger-hover: #c08070 !important;
  --semi-color-danger-active: #a06050 !important;
  --semi-color-danger-light-default: rgba(176,112,96,0.1) !important;
  --semi-color-danger-light-hover: rgba(176,112,96,0.18) !important;

  --semi-color-info: #708090 !important;
  --semi-color-info-hover: #8090a0 !important;
  --semi-color-info-light-default: rgba(112,128,144,0.1) !important;
  --semi-color-info-light-hover: rgba(112,128,144,0.18) !important;

  --semi-color-focus-border: #c9a96e !important;
  --semi-color-disabled-text: #5c5854 !important;
  --semi-color-disabled-border: rgba(255,255,255,0.05) !important;
  --semi-color-disabled-bg: rgba(255,255,255,0.03) !important;

  --semi-color-link: #c9a96e !important;
  --semi-color-link-hover: #d4b87a !important;
  --semi-color-link-visited: #b8956a !important;

  --semi-color-overlay-bg: rgba(10,9,8,0.6) !important;
  --semi-color-mask-bg: rgba(0,0,0,0.6) !important;

  --semi-color-nav-bg: #141210 !important;
  --semi-color-nav-text: #9a9590 !important;
  --semi-color-nav-text-hover: #c9a96e !important;
  --semi-color-nav-text-active: #c9a96e !important;
}

/* 全局背景与文字 */
html, body {
  background: #0a0908 !important;
  color: #f5f0e8 !important;
}

body {
  font-family: 'DM Sans', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* 按钮 */
.semi-button-primary {
  background-color: #c9a96e !important;
  color: #0a0908 !important;
  border-color: #c9a96e !important;
}
.semi-button-primary:hover {
  background-color: #d4b87a !important;
  border-color: #d4b87a !important;
}
.semi-button-primary:active {
  background-color: #b8956a !important;
  border-color: #b8956a !important;
}
.semi-button-primary.semi-button-disabled {
  background-color: rgba(201,169,110,0.35) !important;
  color: rgba(10,9,8,0.5) !important;
}

/* 次要按钮 */
.semi-button-secondary {
  background-color: transparent !important;
  color: #c9a96e !important;
  border-color: rgba(201,169,110,0.3) !important;
}
.semi-button-secondary:hover {
  background-color: rgba(201,169,110,0.08) !important;
  border-color: rgba(201,169,110,0.5) !important;
}

/* 文字按钮 */
.semi-button-tertiary {
  color: #c9a96e !important;
}
.semi-button-tertiary:hover {
  background-color: rgba(201,169,110,0.08) !important;
}

/* 危险按钮 */
.semi-button-danger {
  background-color: #b07060 !important;
  color: #f5f0e8 !important;
}
.semi-button-danger:hover {
  background-color: #c08070 !important;
}

/* 警告按钮 */
.semi-button-warning {
  background-color: #c0a060 !important;
  color: #0a0908 !important;
}

/* 输入框 */
.semi-input-wrapper {
  background-color: rgba(0,0,0,0.2) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.semi-input-wrapper:hover {
  border-color: rgba(201,169,110,0.3) !important;
}
.semi-input-wrapper-focus {
  border-color: #c9a96e !important;
  background-color: rgba(0,0,0,0.3) !important;
  box-shadow: 0 0 0 2px rgba(201,169,110,0.1) !important;
}
.semi-input-default {
  color: #f5f0e8 !important;
}
.semi-input-default::placeholder {
  color: #5c5854 !important;
}

/* 文本域 */
.semi-input-textarea {
  background-color: rgba(0,0,0,0.2) !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #f5f0e8 !important;
}

/* 卡片 */
.semi-card {
  background-color: rgba(20,18,16,0.5) !important;
  border-color: rgba(201,169,110,0.12) !important;
}
.semi-card-bordered {
  border-color: rgba(201,169,110,0.12) !important;
}
.semi-card-header {
  color: #f5f0e8 !important;
}
.semi-card-body {
  color: #e0dbd4 !important;
}

/* 表格 */
.semi-table {
  background-color: transparent !important;
}
.semi-table-thead > .semi-table-row > .semi-table-row-head {
  background-color: rgba(20,18,16,0.7) !important;
  color: #c9a96e !important;
  border-bottom-color: rgba(201,169,110,0.15) !important;
}
.semi-table-tbody > .semi-table-row > .semi-table-row-cell {
  background-color: rgba(20,18,16,0.3) !important;
  color: #f5f0e8 !important;
  border-bottom-color: rgba(255,255,255,0.04) !important;
}
.semi-table-tbody > .semi-table-row:hover > .semi-table-row-cell {
  background-color: rgba(20,18,16,0.5) !important;
}

/* 分页 */
.semi-pagination-item {
  color: #9a9590 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.semi-pagination-item:hover {
  color: #c9a96e !important;
  background-color: rgba(201,169,110,0.08) !important;
}
.semi-pagination-item-active {
  background-color: #c9a96e !important;
  color: #0a0908 !important;
  border-color: #c9a96e !important;
}
.semi-pagination-item-disabled {
  color: #5c5854 !important;
}

/* 菜单 */
.semi-navigation {
  background-color: #141210 !important;
  border-right-color: rgba(201,169,110,0.1) !important;
}
.semi-navigation-item {
  color: #9a9590 !important;
}
.semi-navigation-item:hover {
  color: #c9a96e !important;
  background-color: rgba(201,169,110,0.06) !important;
}
.semi-navigation-item-selected {
  color: #c9a96e !important;
  background-color: rgba(201,169,110,0.1) !important;
}
.semi-navigation-sub-title {
  color: #9a9590 !important;
}

/* 弹窗 */
.semi-modal-content {
  background-color: #141210 !important;
  border-color: rgba(201,169,110,0.15) !important;
}
.semi-modal-header {
  color: #f5f0e8 !important;
}
.semi-modal-body {
  color: #e0dbd4 !important;
}

/* 对话框 */
.semi-dialog-content {
  background-color: #141210 !important;
  border-color: rgba(201,169,110,0.15) !important;
}

/* 下拉选择 */
.semi-select-option {
  color: #f5f0e8 !important;
}
.semi-select-option:hover {
  background-color: rgba(201,169,110,0.08) !important;
  color: #c9a96e !important;
}
.semi-select-option-selected {
  background-color: rgba(201,169,110,0.12) !important;
  color: #c9a96e !important;
}
.semi-select-option-focus {
  background-color: rgba(201,169,110,0.08) !important;
}

/* 级联选择 */
.semi-cascader-option:hover {
  background-color: rgba(201,169,110,0.08) !important;
}
.semi-cascader-option-active {
  background-color: rgba(201,169,110,0.12) !important;
  color: #c9a96e !important;
}

/* 日期选择器 */
.semi-datepicker-day:hover {
  background-color: rgba(201,169,110,0.08) !important;
}
.semi-datepicker-day-selected {
  background-color: #c9a96e !important;
  color: #0a0908 !important;
}
.semi-datepicker-day-today {
  color: #c9a96e !important;
}

/* 标签页 */
.semi-tabs-tab {
  color: #9a9590 !important;
}
.semi-tabs-tab:hover {
  color: #c9a96e !important;
}
.semi-tabs-tab-active {
  color: #c9a96e !important;
}
.semi-tabs-bar {
  background-color: #c9a96e !important;
}

/* 抽屉 */
.semi-sidesheet-inner {
  background-color: #141210 !important;
  border-left-color: rgba(201,169,110,0.15) !important;
}

/* 消息提示 */
.semi-toast-wrapper {
  background-color: rgba(201,169,110,0.12) !important;
  border-color: rgba(201,169,110,0.25) !important;
}
.semi-toast-wrapper-success {
  background-color: rgba(201,169,110,0.12) !important;
  border-color: rgba(201,169,110,0.25) !important;
}
.semi-toast-wrapper-success .semi-toast-content {
  color: #c9a96e !important;
}
.semi-toast-wrapper-error {
  background-color: rgba(176,112,96,0.1) !important;
  border-color: rgba(176,112,96,0.2) !important;
}

/* 通知 */
.semi-notification-wrapper {
  background-color: #141210 !important;
  border-color: rgba(201,169,110,0.15) !important;
}

/* 开关 */
.semi-switch-checked {
  background-color: #c9a96e !important;
}

/* 单选 */
.semi-radio-inner-checked {
  border-color: #c9a96e !important;
  background-color: #c9a96e !important;
}
.semi-radio-inner-checked::after {
  background-color: #0a0908 !important;
}

/* 复选框 */
.semi-checkbox-inner-checked {
  background-color: #c9a96e !important;
  border-color: #c9a96e !important;
}
.semi-checkbox-inner-checked .semi-checkbox-inner-display::after {
  border-color: #0a0908 !important;
}

/* 滑块 */
.semi-slider-handle {
  border-color: #c9a96e !important;
  background-color: #c9a96e !important;
}
.semi-slider-track {
  background-color: #c9a96e !important;
}

/* 进度条 */
.semi-progress-line-track-inner {
  background-color: #c9a96e !important;
}

/* 标签 Tag */
.semi-tag-solid {
  background-color: rgba(201,169,110,0.15) !important;
  color: #c9a96e !important;
  border-color: rgba(201,169,110,0.25) !important;
}

/* 时间线 */
.semi-timeline-item-dot {
  border-color: #c9a96e !important;
}

/* 步骤条 */
.semi-steps-item-icon {
  background-color: rgba(255,255,255,0.08) !important;
  color: #9a9590 !important;
}
.semi-steps-item-icon-active {
  background-color: #c9a96e !important;
  color: #0a0908 !important;
}
.semi-steps-item-icon-finish {
  background-color: #c9a96e !important;
  color: #0a0908 !important;
}

/* 面包屑 */
.semi-breadcrumb-item {
  color: #9a9590 !important;
}
.semi-breadcrumb-item:hover {
  color: #c9a96e !important;
}
.semi-breadcrumb-item-active {
  color: #c9a96e !important;
}

/* 树形控件 */
.semi-tree-option:hover {
  background-color: rgba(201,169,110,0.06) !important;
}
.semi-tree-option-selected {
  background-color: rgba(201,169,110,0.1) !important;
  color: #c9a96e !important;
}

/* 上传 */
.semi-upload-drag-area {
  background-color: rgba(20,18,16,0.5) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.semi-upload-drag-area:hover {
  border-color: rgba(201,169,110,0.3) !important;
}

/* 折叠面板 */
.semi-collapse-item {
  border-bottom-color: rgba(255,255,255,0.06) !important;
}

/* 描述列表 */
.semi-descriptions-item-th {
  color: #c9a96e !important;
}
.semi-descriptions-item-td {
  color: #f5f0e8 !important;
}

/* 统计数值 */
.semi-statistic-value {
  color: #f5f0e8 !important;
}
.semi-statistic-title {
  color: #9a9590 !important;
}

/* 加载状态 */
.semi-spin-wrapper .semi-spin-wrapper-children {
  color: #c9a96e !important;
}

/* 骨架屏 */
.semi-skeleton-paragraph-row {
  background-color: rgba(255,255,255,0.04) !important;
}

/* 空状态 */
.semi-empty {
  color: #9a9590 !important;
}

/* 结果页 */
.semi-result-title {
  color: #f5f0e8 !important;
}
.semi-result-subtitle {
  color: #9a9590 !important;
}

/* 徽章 */
.semi-badge-top-right {
  background-color: #c9a96e !important;
  color: #0a0908 !important;
}

/* 头像 */
.semi-avatar {
  background-color: rgba(201,169,110,0.15) !important;
  color: #c9a96e !important;
}

/* Popover */
.semi-popover-wrapper {
  background-color: #141210 !important;
  border-color: rgba(201,169,110,0.15) !important;
}

/* Tooltip */
.semi-tooltip-wrapper {
  background-color: #141210 !important;
  border-color: rgba(201,169,110,0.2) !important;
  color: #f5f0e8 !important;
}

/* 全局链接 */
a {
  color: #c9a96e !important;
}
a:hover {
  color: #d4b87a !important;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0908; }
::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,169,110,0.35); }

/* 选中文本 */
::selection {
  background: rgba(201,169,110,0.25) !important;
  color: #f5f0e8 !important;
}

/* 覆盖所有内联颜色 */
[style*="rgb(24, 160, 88)"],
[style*="color: rgb(24, 160, 88)"],
[style*="rgb(56, 137, 220)"],
[style*="color: rgb(56, 137, 220)"] {
  color: #c9a96e !important;
}
