/* ============================================================
   ice.starorbit.cloud 全站 UI 大升级样式
   覆盖 Semi Design + Tailwind，提升高级感
   ============================================================ */

/* ===== 全局基础 ===== */
:root{
  --ice-primary:#3b6cf6;
  --ice-primary-hover:#2b5bd7;
  --ice-primary-light:#3b6cf614;
  --ice-bg:#f8f9fc;
  --ice-surface:#ffffff;
  --ice-surface-2:#f1f3f9;
  --ice-border:#e6e8ef;
  --ice-text-1:#1a1d29;
  --ice-text-2:#5c6373;
  --ice-text-3:#8b92a3;
  --ice-shadow-1:0 1px 3px rgba(16,24,40,.04),0 1px 2px rgba(16,24,40,.06);
  --ice-shadow-2:0 4px 16px -2px rgba(16,24,40,.08),0 2px 6px rgba(16,24,40,.04);
  --ice-shadow-3:0 12px 40px -8px rgba(16,24,40,.14);
  --ice-shadow-primary:0 2px 8px rgba(59,108,246,.3);
  --ice-radius:12px;
  --ice-radius-sm:8px;
  --ice-radius-xs:6px;
  --ice-font:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  --ice-mono:'SF Mono','JetBrains Mono','Fira Code',ui-monospace,Consolas,monospace;
  --ice-success:#10b981;
  --ice-danger:#ef4444;
  --ice-warning:#f59e0b;
  --ice-transition:all .2s cubic-bezier(.4,0,.2,1);
}
body,html{
  background:var(--ice-bg)!important;
  font-family:var(--ice-font)!important;
  -webkit-font-smoothing:antialiased!important;
  -moz-osx-font-smoothing:grayscale!important;
  color:var(--ice-text-1)!important;
}

/* ===== 顶部导航栏 ===== */
header,[class*=ant-layout-header],.ant-layout-header{
  background:rgba(255,255,255,.85)!important;
  backdrop-filter:saturate(180%) blur(20px)!important;
  -webkit-backdrop-filter:saturate(180%) blur(20px)!important;
  box-shadow:0 1px 0 rgba(0,0,0,.04),0 1px 3px rgba(0,0,0,.03)!important;
  border-bottom:1px solid rgba(0,0,0,.05)!important;
}

/* ===== Semi 卡片 ===== */
.semi-card{
  background:var(--ice-surface)!important;
  border:1px solid var(--ice-border)!important;
  border-radius:var(--ice-radius)!important;
  box-shadow:var(--ice-shadow-1)!important;
  transition:var(--ice-transition)!important;
  overflow:hidden;
}
.semi-card:hover{
  box-shadow:var(--ice-shadow-2)!important;
  border-color:#d0d4e0!important;
}
.semi-card-bordered{
  border:1px solid var(--ice-border)!important;
}
.semi-card-body{
  padding:20px 24px!important;
}

/* ===== Semi 按钮 ===== */
.semi-button{
  border-radius:var(--ice-radius-xs)!important;
  font-weight:500!important;
  transition:var(--ice-transition)!important;
  height:34px;
}
.semi-button.semi-button-primary{
  background:var(--ice-primary)!important;
  border-color:var(--ice-primary)!important;
  color:#fff!important;
  box-shadow:var(--ice-shadow-primary)!important;
}
.semi-button.semi-button-primary:hover{
  background:var(--ice-primary-hover)!important;
  border-color:var(--ice-primary-hover)!important;
  box-shadow:0 4px 12px rgba(59,108,246,.4)!important;
  transform:translateY(-1px);
}
.semi-button.semi-button-primary:active{
  transform:translateY(0);
}
.semi-button.semi-button-secondary{
  background:var(--ice-surface)!important;
  border:1px solid var(--ice-border)!important;
  color:var(--ice-text-1)!important;
}
.semi-button.semi-button-secondary:hover{
  background:var(--ice-surface-2)!important;
  border-color:#c5cad6!important;
}
.semi-button.semi-button-tertiary{
  background:transparent!important;
  border:1px solid transparent!important;
  color:var(--ice-primary)!important;
}
.semi-button.semi-button-tertiary:hover{
  background:var(--ice-primary-light)!important;
}
.semi-button.semi-button-danger{
  background:var(--ice-danger)!important;
  border-color:var(--ice-danger)!important;
  color:#fff!important;
  box-shadow:0 2px 8px rgba(239,68,68,.25)!important;
}
.semi-button.semi-button-danger:hover{
  background:#dc2626!important;
  box-shadow:0 4px 12px rgba(239,68,68,.35)!important;
  transform:translateY(-1px);
}
.semi-button.semi-button-warning{
  background:var(--ice-warning)!important;
  border-color:var(--ice-warning)!important;
  color:#fff!important;
}

/* ===== Semi 表格 ===== */
.semi-table{
  border-radius:var(--ice-radius-sm)!important;
  overflow:hidden;
}
.semi-table-thead > .semi-table-row > .semi-table-row-head{
  background:var(--ice-surface-2)!important;
  color:var(--ice-text-2)!important;
  font-weight:600!important;
  border-bottom:2px solid var(--ice-border)!important;
  font-size:13px!important;
}
.semi-table-tbody > .semi-table-row{
  transition:background .15s ease!important;
}
.semi-table-tbody > .semi-table-row:hover > .semi-table-row-cell{
  background:var(--ice-primary-light)!important;
}
.semi-table-tbody > .semi-table-row > .semi-table-row-cell{
  border-bottom:1px solid rgba(230,232,239,.6)!important;
  color:var(--ice-text-1)!important;
}
.semi-table-tbody > .semi-table-row:last-child > .semi-table-row-cell{
  border-bottom:none!important;
}

/* ===== Semi 输入框 ===== */
.semi-input,.semi-input-wrapper{
  border-radius:var(--ice-radius-xs)!important;
  transition:var(--ice-transition)!important;
}
.semi-input-wrapper{
  border:1px solid var(--ice-border)!important;
  background:var(--ice-surface)!important;
}
.semi-input-wrapper:hover{
  border-color:#c5cad6!important;
}
.semi-input-wrapper:focus-within{
  border-color:var(--ice-primary)!important;
  box-shadow:0 0 0 3px var(--ice-primary-light)!important;
}
.semi-input{
  background:transparent!important;
}

/* ===== Semi Select ===== */
.semi-select{
  border-radius:var(--ice-radius-xs)!important;
}
.semi-select-selection{
  border:1px solid var(--ice-border)!important;
  border-radius:var(--ice-radius-xs)!important;
  background:var(--ice-surface)!important;
  transition:var(--ice-transition)!important;
}
.semi-select-selection:hover{
  border-color:#c5cad6!important;
}
.semi-select-focus .semi-select-selection{
  border-color:var(--ice-primary)!important;
  box-shadow:0 0 0 3px var(--ice-primary-light)!important;
}

/* ===== Semi Tag（胶囊化）===== */
.semi-tag{
  border-radius:999px!important;
  font-weight:500!important;
  padding:2px 12px!important;
  font-size:12px!important;
}
.semi-tag-large{
  padding:4px 16px!important;
}

/* ===== Semi Tabs ===== */
.semi-tabs-bar{
  border-bottom:1px solid var(--ice-border)!important;
}
.semi-tabs-tab{
  border-radius:var(--ice-radius-xs) var(--ice-radius-xs) 0 0!important;
  padding:10px 20px!important;
  color:var(--ice-text-2)!important;
  font-weight:500!important;
  transition:var(--ice-transition)!important;
}
.semi-tabs-tab:hover{
  color:var(--ice-primary)!important;
  background:var(--ice-primary-light)!important;
}
.semi-tabs-tab-active{
  color:var(--ice-primary)!important;
  font-weight:600!important;
}
.semi-tabs-tab-active .semi-tabs-tab-slider{
  background:var(--ice-primary)!important;
  height:3px!important;
  border-radius:3px 3px 0 0!important;
}

/* ===== Semi 导航/侧边栏 ===== */
.semi-navigation,.semi-side-bar{
  background:var(--ice-surface)!important;
  border-right:1px solid var(--ice-border)!important;
}
.semi-navigation-item{
  border-radius:var(--ice-radius-xs)!important;
  margin:2px 8px!important;
  transition:var(--ice-transition)!important;
}
.semi-navigation-item:hover{
  background:var(--ice-surface-2)!important;
}
.semi-navigation-item-selected{
  background:var(--ice-primary-light)!important;
  color:var(--ice-primary)!important;
  font-weight:600!important;
}
.semi-navigation-item-selected::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:3px;
  height:60%;
  background:var(--ice-primary);
  border-radius:0 3px 3px 0;
}

/* ===== Semi Banner ===== */
.semi-banner{
  border-radius:var(--ice-radius-sm)!important;
  border:1px solid!important;
  padding:12px 16px!important;
}
.semi-banner-info{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
}

/* ===== Semi Form ===== */
.semi-form-field label{
  font-weight:500!important;
  color:var(--ice-text-2)!important;
}

/* ===== Semi Switch ===== */
.semi-switch{
  border-radius:999px!important;
}
.semi-switch-checked .semi-switch-knob{
  background:var(--ice-primary)!important;
}

/* ===== Semi Progress ===== */
.semi-progress-track{
  border-radius:999px!important;
  overflow:hidden;
}

/* ===== Semi Pagination ===== */
.semi-page-item{
  border-radius:var(--ice-radius-xs)!important;
  transition:var(--ice-transition)!important;
}
.semi-page-item-active{
  background:var(--ice-primary)!important;
  color:#fff!important;
  border-color:var(--ice-primary)!important;
}

/* ===== Semi Divider ===== */
.semi-divider{
  border-color:var(--ice-border)!important;
}

/* ===== Semi Empty ===== */
.semi-empty{
  padding:40px 20px!important;
}
.semi-empty-image{
  opacity:.6;
}

/* ===== Semi Avatar ===== */
.semi-avatar{
  border:2px solid var(--ice-surface)!important;
  box-shadow:var(--ice-shadow-1)!important;
}

/* ===== Semi Spin ===== */
.semi-spin-block{
  background:rgba(255,255,255,.8)!important;
  backdrop-filter:blur(4px)!important;
}

/* ===== Typography ===== */
.semi-typography-h1,.semi-typography-h2,.semi-typography-h3,.semi-typography-h4{
  font-weight:700!important;
  color:var(--ice-text-1)!important;
  letter-spacing:-.02em!important;
}

/* ===== Tailwind 通用覆盖 ===== */
.container,main{
  max-width:1280px;
}
.card{
  border-radius:var(--ice-radius)!important;
  box-shadow:var(--ice-shadow-1)!important;
  border:1px solid var(--ice-border)!important;
  background:var(--ice-surface)!important;
  transition:var(--ice-transition)!important;
}
.card:hover{
  box-shadow:var(--ice-shadow-2)!important;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar{
  width:8px;
  height:8px;
}
::-webkit-scrollbar-track{
  background:transparent;
}
::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.15);
  border-radius:4px;
}
::-webkit-scrollbar-thumb:hover{
  background:rgba(0,0,0,.25);
}

/* ===== 链接/按钮通用 ===== */
a{
  transition:var(--ice-transition)!important;
}
a:hover{
  color:var(--ice-primary)!important;
}

/* ===== 渐变标题/品牌点缀 ===== */
h1,h2,h3{
  letter-spacing:-.02em!important;
}

/* ===== 暗色模式 ===== */
[theme-mode='dark']{
  --ice-bg:#0f1115;
  --ice-surface:#1a1d24;
  --ice-surface-2:#222631;
  --ice-border:#2d3140;
  --ice-text-1:#e8eaf0;
  --ice-text-2:#9ca3b5;
  --ice-text-3:#6b7280;
  --ice-shadow-1:0 1px 3px rgba(0,0,0,.3),0 1px 2px rgba(0,0,0,.2);
  --ice-shadow-2:0 4px 16px rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.3);
  --ice-shadow-3:0 12px 40px rgba(0,0,0,.5);
  --ice-primary-light:#3b6cf626;
}
[theme-mode='dark'] .semi-card{
  background:var(--ice-surface)!important;
  border-color:var(--ice-border)!important;
}
[theme-mode='dark'] .semi-table-thead > .semi-table-row > .semi-table-row-head{
  background:var(--ice-surface-2)!important;
}
[theme-mode='dark'] header{
  background:rgba(26,29,36,.85)!important;
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}
/* ============================================================
   ice.starorbit.cloud 增强升级 v2
   追加：登录页/侧边栏/动效/暗色完善/组件补充
   ============================================================ */

/* ===== 设计 Token 扩展 ===== */
:root{
  --ice-gradient-primary:linear-gradient(135deg,#3b6cf6 0%,#6d8dff 50%,#8b5cf6 100%);
  --ice-gradient-soft:linear-gradient(180deg,rgba(59,108,246,.05) 0%,rgba(255,255,255,0) 100%);
  --ice-font-size-xs:12px;
  --ice-font-size-sm:13px;
  --ice-font-size-md:14px;
  --ice-font-size-lg:16px;
  --ice-font-size-xl:20px;
  --ice-space-1:4px;
  --ice-space-2:8px;
  --ice-space-3:12px;
  --ice-space-4:16px;
  --ice-space-5:20px;
  --ice-space-6:24px;
  --ice-ease:cubic-bezier(.4,0,.2,1);
  --ice-ease-out:cubic-bezier(.16,1,.3,1);
  --ice-duration-fast:.15s;
  --ice-duration-normal:.25s;
  --ice-duration-slow:.45s;
  --ice-glass-bg:rgba(255,255,255,.72);
  --ice-glass-border:rgba(255,255,255,.6);
}

/* ===== 页面进入动画 ===== */
body{
  animation:ice-fade-in .35s var(--ice-ease) both;
}
@keyframes ice-fade-in{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

/* ===== 登录页美化 ===== */
/* 登录页背景渐变 + 光晕 */
body:has(.semi-card form),body:has(input[placeholder*="username"]){
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%,rgba(59,108,246,.10) 0%,transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%,rgba(139,92,246,.08) 0%,transparent 60%),
    var(--ice-bg)!important;
}
.semi-card:has(input[placeholder*="username"]),.semi-card:has(form){
  border-radius:20px!important;
  box-shadow:var(--ice-shadow-3),0 0 0 1px rgba(255,255,255,.5)!important;
  overflow:hidden!important;
}
.semi-card:has(form) .semi-card-body{
  padding:40px 36px!important;
}
.semi-card:has(form) h3{
  font-size:24px!important;
  font-weight:800!important;
  background:var(--ice-gradient-primary);
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
}
/* 登录按钮全宽渐变 */
.semi-card:has(form) .semi-button-primary{
  background:var(--ice-gradient-primary)!important;
  border:none!important;
  height:42px!important;
  font-size:15px!important;
  font-weight:600!important;
  border-radius:10px!important;
  box-shadow:0 4px 16px rgba(59,108,246,.35)!important;
}
.semi-card:has(form) .semi-button-primary:hover{
  box-shadow:0 8px 24px rgba(59,108,246,.45)!important;
  transform:translateY(-2px)!important;
}

/* ===== 顶部导航毛玻璃增强 ===== */
header, .ant-layout-header{
  background:var(--ice-glass-bg)!important;
  backdrop-filter:saturate(180%) blur(24px)!important;
  -webkit-backdrop-filter:saturate(180%) blur(24px)!important;
}

/* ===== 侧边栏毛玻璃 ===== */
.semi-navigation{
  background:rgba(255,255,255,.82)!important;
  backdrop-filter:saturate(160%) blur(20px)!important;
  -webkit-backdrop-filter:saturate(160%) blur(20px)!important;
  transition:background .3s var(--ice-ease)!important;
}
.semi-navigation-item{
  border-radius:10px!important;
  margin:2px 10px!important;
  position:relative!important;
  overflow:hidden!important;
}
.semi-navigation-item::after{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:0;
  background:var(--ice-primary-light);
  transition:width .25s var(--ice-ease)!important;
}
.semi-navigation-item:hover::after{
  width:100%;
}
.semi-navigation-item-selected{
  background:var(--ice-primary-light)!important;
  box-shadow:inset 0 0 0 1px rgba(59,108,246,.08)!important;
}
.semi-navigation-item-selected::after{
  width:100%!important;
}

/* ===== 按钮涟漪效果 ===== */
.semi-button{
  position:relative!important;
  overflow:hidden!important;
}
.semi-button::after{
  content:"";
  position:absolute;
  top:50%;left:50%;
  width:0;height:0;
  border-radius:50%;
  background:rgba(255,255,255,.3);
  transform:translate(-50%,-50%);
  opacity:0;
  pointer-events:none;
  transition:width .5s var(--ice-ease),height .5s var(--ice-ease),opacity .3s;
}
.semi-button:active::after{
  width:160px;height:160px;
  opacity:1;
  transition:0s;
}
.semi-button-tertiary::after,.semi-button-secondary::after{
  background:rgba(59,108,246,.12);
}

/* ===== 卡片悬浮增强 ===== */
.semi-card{
  position:relative!important;
}
.semi-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:var(--ice-shadow-2),0 8px 24px rgba(59,108,246,.08)!important;
  border-color:rgba(59,108,246,.25)!important;
}
.semi-card::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:var(--ice-gradient-primary);
  opacity:0;
  transition:opacity .3s var(--ice-ease)!important;
  z-index:1;
}
.semi-card:hover::before{
  opacity:1;
}

/* ===== 表格增强 ===== */
.semi-table{
  box-shadow:var(--ice-shadow-1)!important;
  border:1px solid var(--ice-border)!important;
}
.semi-table-thead > .semi-table-row > .semi-table-row-head{
  background:linear-gradient(180deg,#f8f9fc 0%,var(--ice-surface-2) 100%)!important;
  letter-spacing:.02em!important;
  text-transform:uppercase!important;
  font-size:11px!important;
}
.semi-table-tbody > .semi-table-row{
  position:relative!important;
}
.semi-table-tbody > .semi-table-row::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:var(--ice-primary);
  opacity:0;
  transition:opacity .2s!important;
}
.semi-table-tbody > .semi-table-row:hover::before{
  opacity:1;
}

/* ===== 输入框增强 ===== */
.semi-input-wrapper,.semi-select-selection,.semi-input-number,.semi-textarea{
  border-radius:10px!important;
  box-shadow:0 1px 2px rgba(16,24,40,.03)!important;
}
.semi-input-wrapper:focus-within,.semi-select-focus .semi-select-selection{
  box-shadow:0 0 0 4px var(--ice-primary-light),0 1px 2px rgba(16,24,40,.04)!important;
}

/* ===== Tag 增强 ===== */
.semi-tag{
  transition:var(--ice-transition)!important;
}
.semi-tag:hover{
  transform:translateY(-1px);
  box-shadow:var(--ice-shadow-1)!important;
}
.semi-tag-blue{
  background:rgba(59,108,246,.08)!important;
  color:#3b6cf6!important;
}
.semi-tag-green,.semi-tag-success{
  background:rgba(16,185,129,.08)!important;
  color:#059669!important;
}
.semi-tag-red,.semi-tag-danger{
  background:rgba(239,68,68,.08)!important;
  color:#dc2626!important;
}
.semi-tag-orange,.semi-tag-warning{
  background:rgba(245,158,11,.08)!important;
  color:#d97706!important;
}

/* ===== Modal 美化 ===== */
.semi-modal-content{
  border-radius:16px!important;
  box-shadow:var(--ice-shadow-3)!important;
  border:1px solid rgba(255,255,255,.2);
  overflow:hidden!important;
}
.semi-modal-header{
  border-bottom:1px solid var(--ice-border)!important;
  padding:20px 24px!important;
}
.semi-modal-title{
  font-weight:700!important;
  font-size:17px!important;
}
.semi-modal-footer{
  border-top:1px solid var(--ice-border)!important;
  padding:14px 24px!important;
  background:var(--ice-surface-2)!important;
}

/* ===== Toast / Notification 美化 ===== */
.semi-toast,.semi-notification{
  border-radius:12px!important;
  box-shadow:var(--ice-shadow-3)!important;
  border:1px solid var(--ice-border)!important;
  backdrop-filter:blur(12px)!important;
  background:rgba(255,255,255,.95)!important;
}

/* ===== Tooltip 美化 ===== */
.semi-tooltip-content{
  border-radius:8px!important;
  padding:6px 12px!important;
  font-size:12px!important;
  box-shadow:var(--ice-shadow-2)!important;
}
.semi-tooltip-content-arrow{
  display:none!important;
}

/* ===== Dropdown 美化 ===== */
.semi-dropdown-menu{
  border-radius:12px!important;
  box-shadow:var(--ice-shadow-3)!important;
  border:1px solid var(--ice-border)!important;
  padding:6px!important;
  overflow:hidden!important;
}
.semi-dropdown-item{
  border-radius:8px!important;
  margin:2px 4px!important;
  padding:8px 12px!important;
  transition:background .15s!important;
}
.semi-dropdown-item:hover{
  background:var(--ice-primary-light)!important;
}

/* ===== Statistic 数字 ===== */
.semi-statistic{
  border-radius:12px!important;
}
.semi-statistic-content{
  font-weight:800!important;
  letter-spacing:-.02em!important;
  background:var(--ice-gradient-primary);
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
}

/* ===== 列表增强 ===== */
.semi-list{
  border-radius:12px!important;
  border:1px solid var(--ice-border)!important;
  overflow:hidden!important;
}
.semi-list-item{
  transition:background .15s!important;
}
.semi-list-item:hover{
  background:var(--ice-primary-light)!important;
}

/* ===== 表格分页条 ===== */
.pricing-pagination-divider,.semi-pagination{
  background:var(--ice-surface)!important;
  border-radius:12px!important;
  padding:8px 12px!important;
  box-shadow:var(--ice-shadow-1)!important;
}

/* ===== 模型广场卡片增强 ===== */
.semi-card:has(h3.text-lg.font-bold){
  transition:transform .3s var(--ice-ease),box-shadow .3s var(--ice-ease),border-color .3s!important;
}
.semi-card:has(h3.text-lg.font-bold):hover{
  transform:translateY(-4px)!important;
  box-shadow:0 12px 32px rgba(59,108,246,.12),var(--ice-shadow-2)!important;
  border-color:rgba(59,108,246,.3)!important;
}
.semi-card:has(h3.text-lg.font-bold) .ice-spec-badge{
  animation:ice-badge-in .4s var(--ice-ease-out) both;
}
@keyframes ice-badge-in{
  from{opacity:0;transform:translateY(4px) scale(.9)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
/* 徽章悬停 */
.ice-spec-badge:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 2px 8px rgba(0,0,0,.08)!important;
}

/* ===== 暗色模式补充 ===== */
[theme-mode='dark'] .semi-navigation{
  background:rgba(26,29,36,.85)!important;
}
[theme-mode='dark'] .semi-input-wrapper,
[theme-mode='dark'] .semi-select-selection{
  background:var(--ice-surface)!important;
  border-color:var(--ice-border)!important;
  color:var(--ice-text-1)!important;
}
[theme-mode='dark'] .semi-modal-content,
[theme-mode='dark'] .semi-modal-footer{
  background:var(--ice-surface)!important;
  border-color:var(--ice-border)!important;
}
[theme-mode='dark'] .semi-toast,.dark .semi-toast{
  background:rgba(26,29,36,.95)!important;
  border-color:var(--ice-border)!important;
}
[theme-mode='dark'] .semi-dropdown-menu{
  background:var(--ice-surface)!important;
  border-color:var(--ice-border)!important;
}
[theme-mode='dark'] .semi-table{
  border-color:var(--ice-border)!important;
}
[theme-mode='dark'] .semi-table-thead > .semi-table-row > .semi-table-row-head{
  background:linear-gradient(180deg,var(--ice-surface) 0%,var(--ice-surface-2) 100%)!important;
}
[theme-mode='dark'] .semi-card:has(form){
  box-shadow:var(--ice-shadow-3),0 0 0 1px rgba(255,255,255,.06)!important;
}
[theme-mode='dark'] .semi-navigation-item-selected{
  box-shadow:inset 0 0 0 1px rgba(59,108,246,.2)!important;
}

/* ===== 响应式 ===== */
@media (max-width:768px){
  .semi-card-body{padding:16px!important}
  .semi-card:has(form) .semi-card-body{padding:28px 20px!important}
  .ice-spec-row{gap:4px}
  .ice-spec-badge{font-size:10px;padding:2px 6px}
  .semi-table-tbody > .semi-table-row > .semi-table-row-cell{
    font-size:12px!important;
  }
}

/* ===== 滚动条暗色 ===== */
[theme-mode='dark'] ::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
}
[theme-mode='dark'] ::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.25);
}

/* ============================================================
   ice.starorbit.cloud 增强升级 v3
   追加：控制台 KPI / 图表 / 拟人化文案样式
   ============================================================ */

/* ===== 拟人化问候语 ===== */
.ice-greeting{
  background:var(--ice-gradient-primary);
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  font-weight:800!important;
}
.ice-greeting-tip{
  color:var(--ice-text-2)!important;
  font-size:14px!important;
  font-weight:400!important;
  letter-spacing:.01em!important;
}

/* ===== 控制台 KPI 卡片 ===== */
[class*=statistic],[class*=Statistic],[class*=kpi],[class*=KPI]{
  border-radius:16px!important;
  border:1px solid var(--ice-border)!important;
  background:linear-gradient(160deg,rgba(255,255,255,.98) 0%,rgba(248,249,252,.6) 100%)!important;
  padding:18px 22px!important;
  box-shadow:var(--ice-shadow-1)!important;
  transition:transform .3s var(--ice-ease),box-shadow .3s var(--ice-ease),border-color .3s!important;
  position:relative!important;
  overflow:hidden!important;
}
[class*=statistic]:hover,[class*=Statistic]:hover{
  transform:translateY(-3px)!important;
  box-shadow:var(--ice-shadow-2),0 8px 24px rgba(59,108,246,.08)!important;
  border-color:rgba(59,108,246,.2)!important;
}
[class*=statistic]::after,[class*=Statistic]::after{
  content:"";
  position:absolute;
  top:-40px;right:-40px;
  width:120px;height:120px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(59,108,246,.08) 0%,transparent 70%);
  pointer-events:none;
}
[class*=statistic] [class*=value], [class*=statistic] b,
[class*=Statistic] [class*=value], [class*=Statistic] b{
  font-size:22px!important;
  font-weight:800!important;
  background:var(--ice-gradient-primary);
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  letter-spacing:-.02em!important;
}

/* ===== 控制台图表卡片标题 ===== */
[class*=chart] [class*=title], [class*=Chart] [class*=title],
[class*=chart-title], [class*=ChartTitle]{
  font-weight:700!important;
  font-size:15px!important;
  letter-spacing:-.01em!important;
  color:var(--ice-text-1)!important;
}

/* ===== 首页 API 信息卡片按钮美化 ===== */
button[class*="bg-green-500"]{
  background:linear-gradient(135deg,#10b981,#059669)!important;
  box-shadow:0 2px 8px rgba(16,185,129,.3)!important;
  border:none!important;
  color:#fff!important;
  transition:var(--ice-transition)!important;
}
button[class*="bg-green-500"]:hover{
  box-shadow:0 4px 14px rgba(16,185,129,.4)!important;
  transform:translateY(-1px)!important;
}
button[class*="bg-blue-500"]{
  background:linear-gradient(135deg,#3b6cf6,#2b5bd7)!important;
  box-shadow:0 2px 8px rgba(59,108,246,.3)!important;
  border:none!important;
  color:#fff!important;
  transition:var(--ice-transition)!important;
}
button[class*="bg-blue-500"]:hover{
  box-shadow:0 4px 14px rgba(59,108,246,.4)!important;
  transform:translateY(-1px)!important;
}

/* ============================================================
   ice.starorbit.cloud 增强升级 v4
   追加：自动暗色模式支持（系统偏好）
   ============================================================ */

/* 系统暗色偏好时自动应用暗色变量（仅当页面未显式强制浅色） */
@media (prefers-color-scheme: dark){
  :root:not([theme-mode='light']){
    --ice-bg:#0f1115;
    --ice-surface:#1a1d24;
    --ice-surface-2:#222631;
    --ice-border:#2d3140;
    --ice-text-1:#e8eaf0;
    --ice-text-2:#9ca3b5;
    --ice-text-3:#6b7280;
    --ice-shadow-1:0 1px 3px rgba(0,0,0,.3),0 1px 2px rgba(0,0,0,.2);
    --ice-shadow-2:0 4px 16px rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.3);
    --ice-shadow-3:0 12px 40px rgba(0,0,0,.5);
    --ice-primary-light:#3b6cf626;
    --ice-glass-bg:rgba(26,29,36,.72);
    --ice-glass-border:rgba(255,255,255,.06);
  }
  :root:not([theme-mode='light']) body,
  :root:not([theme-mode='light']) html{
    background:var(--ice-bg)!important;
    color:var(--ice-text-1)!important;
  }
  :root:not([theme-mode='light']) .semi-card,
  :root:not([theme-mode='light']) .card{
    background:var(--ice-surface)!important;
    border-color:var(--ice-border)!important;
  }
  :root:not([theme-mode='light']) .semi-table-thead > .semi-table-row > .semi-table-row-head{
    background:var(--ice-surface-2)!important;
    color:var(--ice-text-2)!important;
  }
  :root:not([theme-mode='light']) .semi-table-tbody > .semi-table-row > .semi-table-row-cell{
    color:var(--ice-text-1)!important;
    border-color:var(--ice-border)!important;
  }
  :root:not([theme-mode='light']) header{
    background:var(--ice-glass-bg)!important;
  }
  :root:not([theme-mode='light']) .semi-navigation{
    background:rgba(26,29,36,.85)!important;
  }
  :root:not([theme-mode='light']) .semi-input-wrapper,
  :root:not([theme-mode='light']) .semi-select-selection{
    background:var(--ice-surface)!important;
    border-color:var(--ice-border)!important;
    color:var(--ice-text-1)!important;
  }
  :root:not([theme-mode='light']) ::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.15);
  }
}

/* ============================================================
   ice.starorbit.cloud 增强升级 v5
   修复 pointer-events + 模型广场网格/图标/操作按钮细节
   ============================================================ */

/* ===== 修复：装饰元素不拦截鼠标事件 ===== */
.semi-card::before,
.semi-navigation-item::after,
.semi-button::after,
.semi-card:has(h3.text-lg.font-bold)::before{
  pointer-events:none!important;
}

/* ===== 模型广场：卡片网格间距 ===== */
/* 卡片容器通常是 flex flex-wrap 或 grid */
[class*="flex"][class*="wrap"]:has(.semi-card){
  gap:16px!important;
}
@media (min-width:1024px){
  [class*="flex"][class*="wrap"]:has(.semi-card){
    gap:20px!important;
  }
}
/* 卡片最小宽度，避免太窄 */
.semi-card:has(h3.text-lg.font-bold){
  min-width:0!important;
}

/* ===== 模型广场：图标区域美化 ===== */
.semi-card:has(h3.text-lg.font-bold) [class*="w-12"][class*="h-12"],
.semi-card:has(h3.text-lg.font-bold) [class*="w-12.h-12"]{
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(59,108,246,.12),rgba(139,92,246,.08))!important;
  box-shadow:inset 0 0 0 1px rgba(59,108,246,.1)!important;
}

/* ===== 模型广场：模型名与价格行 ===== */
.semi-card:has(h3.text-lg.font-bold) h3{
  font-size:15px!important;
  letter-spacing:-.01em!important;
}
.semi-card:has(h3.text-lg.font-bold) [class*="text-xs"]{
  font-size:12px!important;
  color:var(--ice-text-2)!important;
}

/* ===== 模型广场：描述与标签行 ===== */
.semi-card:has(h3.text-lg.font-bold) [class*="text-gray"]{
  color:var(--ice-text-2)!important;
  line-height:1.6!important;
}

/* ===== 表格操作按钮间距 ===== */
.semi-table-tbody [class*="semi-button-size-small"]{
  margin:0 2px!important;
}

/* ===== 登录页 Logo 动画 ===== */
.semi-card:has(form) img,
.semi-card:has(form) [class*="avatar"]{
  animation:ice-logo-float 3s ease-in-out infinite!important;
}
@keyframes ice-logo-float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}

/* ===== 表单校验错误提示美化 ===== */
.semi-form-field-error-message,.semi-form-field .semi-form-field-error{
  color:var(--ice-danger)!important;
  font-size:12px!important;
  margin-top:4px!important;
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
}

/* ===== 通知徽标 ===== */
.semi-badge-count{
  background:var(--ice-danger)!important;
  box-shadow:0 0 0 2px var(--ice-surface)!important;
  font-weight:600!important;
}

/* ===== 链接卡片整体 hover ===== */
a[class*="semi-card"],a.semi-card{
  text-decoration:none!important;
}

/* ============================================================
   ice.starorbit.cloud 增强升级 v6
   面包屑/步骤条/抽屉/Toast 状态色/打印样式
   ============================================================ */

/* ===== 面包屑 ===== */
.semi-breadcrumb-item{
  color:var(--ice-text-2)!important;
  transition:var(--ice-transition)!important;
}
.semi-breadcrumb-item:hover{
  color:var(--ice-primary)!important;
}
.semi-breadcrumb-item-last{
  color:var(--ice-text-1)!important;
  font-weight:600!important;
}

/* ===== 步骤条 ===== */
.semi-steps .semi-steps-item-title{
  font-weight:600!important;
}
.semi-steps-item-finish .semi-steps-item-icon{
  background:var(--ice-success)!important;
  border-color:var(--ice-success)!important;
  color:#fff!important;
}
.semi-steps-item-process .semi-steps-item-icon{
  background:var(--ice-primary)!important;
  border-color:var(--ice-primary)!important;
  color:#fff!important;
  box-shadow:0 0 0 4px var(--ice-primary-light)!important;
}

/* ===== 抽屉 ===== */
.semi-drawer-content{
  border-radius:16px 0 0 16px!important;
  box-shadow:var(--ice-shadow-3)!important;
}
.semi-drawer-title{
  font-weight:700!important;
  font-size:17px!important;
}

/* ===== Toast 状态色 ===== */
.semi-toast-success{
  border-left:3px solid var(--ice-success)!important;
}
.semi-toast-error,.semi-toast-warning{
  border-left:3px solid var(--ice-danger)!important;
}
.semi-toast-info{
  border-left:3px solid var(--ice-primary)!important;
}

/* ===== 链接卡片整体 hover ===== */
a[class*="semi-card"],a.semi-card{
  text-decoration:none!important;
}

/* ===== 打印样式 ===== */
@media print{
  .semi-navigation,.semi-side-bar,header,.semi-button,.semi-tag,[class*="sidebar"]{
    display:none!important;
  }
  .semi-card{
    box-shadow:none!important;
    border:1px solid #ddd!important;
    break-inside:avoid!important;
  }
  body,html{
    background:#fff!important;
  }
}

/* ============================================================
   ice.starorbit.cloud 去 AI 味覆盖层 v7
   原则：保留现有布局/功能，仅收敛视觉。
   去掉紫色渐变、光晕、渐变文字、刻意动画，降低阴影与圆角。
   ============================================================ */

:root{
  /* 渐变改为纯蓝，去紫色 */
  --ice-gradient-primary:linear-gradient(135deg,#2563eb 0%,#3b6cf6 100%);
  --ice-shadow-primary:0 1px 3px rgba(37,99,235,.22);
  --ice-shadow-1:0 1px 2px rgba(16,24,40,.04);
  --ice-shadow-2:0 2px 6px rgba(16,24,40,.06);
  --ice-shadow-3:0 8px 20px rgba(16,24,40,.08);
}

/* 卡片顶部渐变条去掉 */
.semi-card::before{display:none!important;}

/* 卡片圆角收敛 10px，阴影更轻 */
.semi-card{
  border-radius:10px!important;
  box-shadow:var(--ice-shadow-1)!important;
}
.semi-card:hover{
  transform:translateY(-1px)!important;
  box-shadow:var(--ice-shadow-2)!important;
  border-color:#d8dce6!important;
}

/* KPI 数字渐变改纯色深色 */
[class*=statistic] [class*=value],
[class*=statistic] b,
[class*=Statistic] [class*=value],
[class*=Statistic] b,
.semi-statistic-content{
  background:none!important;
  -webkit-text-fill-color:var(--ice-text-1)!important;
  color:var(--ice-text-1)!important;
}
[class*=statistic]:hover,[class*=Statistic]:hover{
  transform:none!important;
}

/* 登录页光晕背景改纯色 */
body:has(.semi-card form),
body:has(input[placeholder*="username"]){
  background:var(--ice-bg)!important;
}

/* 登录卡片圆角与阴影收敛 */
.semi-card:has(form){
  border-radius:14px!important;
  box-shadow:var(--ice-shadow-3)!important;
}

/* 登录页标题渐变改纯色 */
.semi-card:has(form) h3{
  background:none!important;
  -webkit-text-fill-color:var(--ice-text-1)!important;
  color:var(--ice-text-1)!important;
}

/* 登录按钮渐变改纯色 */
.semi-card:has(form) .semi-button-primary{
  background:var(--ice-primary)!important;
  box-shadow:var(--ice-shadow-primary)!important;
}

/* Logo 浮动动画去掉 */
.semi-card:has(form) img,
.semi-card:has(form) [class*="avatar"]{
  animation:none!important;
}

/* 问候语渐变改纯色 */
.ice-greeting{
  background:none!important;
  -webkit-text-fill-color:var(--ice-text-1)!important;
  color:var(--ice-text-1)!important;
}

/* 按钮涟漪保留但更淡（可选：保留） */
.semi-button::after{background:rgba(255,255,255,.15);}

/* 模型广场图标区：渐变改浅灰 */
.semi-card:has(h3.text-lg.font-bold) [class*="w-12"][class*="h-12"]{
  background:var(--ice-surface-2)!important;
  box-shadow:inset 0 0 0 1px var(--ice-border)!important;
}

/* 顶部导航阴影更轻 */
header,.ant-layout-header{
  box-shadow:0 1px 0 rgba(0,0,0,.03)!important;
}

/* 页面进入动画保留（很淡） */
body{animation:ice-fade-in .3s ease both;}
@keyframes ice-fade-in{from{opacity:0;transform:none}to{opacity:1;transform:none}}
