/* codex-theme-override.css
 * 热更包：暖橙金主题覆盖 (primary teal -> amber)
 * 生成日期: 2026-08-02
 * 回滚：删除 index.html 中的 <link rel="stylesheet" href="/assets/codex-theme-override.css"> 即可
 */

/* ── bg-primary-* ── */
.bg-primary-50  { background-color: #fffbeb !important; }
.bg-primary-100 { background-color: #fef3c7 !important; }
.bg-primary-200 { background-color: #fde68a !important; }
.bg-primary-300 { background-color: #fcd34d !important; }
.bg-primary-400 { background-color: #fbbf24 !important; }
.bg-primary-500 { background-color: #f59e0b !important; }
.bg-primary-600 { background-color: #d97706 !important; }
.bg-primary-700 { background-color: #b45309 !important; }
.bg-primary-800 { background-color: #92400e !important; }
.bg-primary-900 { background-color: #78350f !important; }

/* ── text-primary-* ── */
.text-primary-50  { color: #fffbeb !important; }
.text-primary-100 { color: #fef3c7 !important; }
.text-primary-200 { color: #fde68a !important; }
.text-primary-300 { color: #fcd34d !important; }
.text-primary-400 { color: #fbbf24 !important; }
.text-primary-500 { color: #f59e0b !important; }
.text-primary-600 { color: #d97706 !important; }
.text-primary-700 { color: #b45309 !important; }
.text-primary-800 { color: #92400e !important; }
.text-primary-900 { color: #78350f !important; }

/* ── border-primary-* ── */
.border-primary-50  { border-color: #fffbeb !important; }
.border-primary-100 { border-color: #fef3c7 !important; }
.border-primary-200 { border-color: #fde68a !important; }
.border-primary-300 { border-color: #fcd34d !important; }
.border-primary-400 { border-color: #fbbf24 !important; }
.border-primary-500 { border-color: #f59e0b !important; }
.border-primary-600 { border-color: #d97706 !important; }
.border-primary-700 { border-color: #b45309 !important; }

/* ── ring (focus 轮廓) ── */
.ring-primary-500, .focus\:ring-primary-500:focus {
  --tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1)) !important;
}
.ring-primary-600, .focus\:ring-primary-600:focus {
  --tw-ring-color: rgb(217 119 6 / var(--tw-ring-opacity, 1)) !important;
}

/* ── 渐变按钮 from-*/to-* ── */
.from-primary-400 {
  --tw-gradient-from: #fbbf24 !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(251,191,36,0)) !important;
}
.from-primary-500 {
  --tw-gradient-from: #f59e0b !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245,158,11,0)) !important;
}
.from-primary-600 {
  --tw-gradient-from: #d97706 !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(217,119,6,0)) !important;
}
.to-primary-400 { --tw-gradient-to: #fbbf24 !important; }
.to-primary-500 { --tw-gradient-to: #f59e0b !important; }
.to-primary-600 { --tw-gradient-to: #d97706 !important; }
.to-primary-700 { --tw-gradient-to: #b45309 !important; }
.via-primary-500 { --tw-gradient-via: #f59e0b !important; }

/* ── hover / focus 交互态 ── */
.hover\:bg-primary-50:hover  { background-color: #fffbeb !important; }
.hover\:bg-primary-100:hover { background-color: #fef3c7 !important; }
.hover\:bg-primary-500:hover { background-color: #f59e0b !important; }
.hover\:bg-primary-600:hover { background-color: #d97706 !important; }
.hover\:bg-primary-700:hover { background-color: #b45309 !important; }
.hover\:text-primary-500:hover { color: #f59e0b !important; }
.hover\:text-primary-600:hover { color: #d97706 !important; }
.hover\:text-primary-700:hover { color: #b45309 !important; }
.hover\:border-primary-500:hover { border-color: #f59e0b !important; }
.hover\:border-primary-600:hover { border-color: #d97706 !important; }

/* ── dark mode ── */
.dark .dark\:bg-primary-900\/20  { background-color: rgb(120 53 15 / 0.20) !important; }
.dark .dark\:bg-primary-900\/30  { background-color: rgb(120 53 15 / 0.30) !important; }
.dark .dark\:text-primary-300    { color: #fcd34d !important; }
.dark .dark\:text-primary-400    { color: #fbbf24 !important; }
.dark .dark\:hover\:text-primary-300:hover { color: #fcd34d !important; }
.dark .dark\:hover\:text-primary-400:hover { color: #fbbf24 !important; }
.dark .dark\:border-primary-500  { border-color: #f59e0b !important; }
.dark .dark\:border-primary-700  { border-color: #b45309 !important; }

/* ── NProgress 顶部加载条（原来硬编码 #14b8a6/#2dd4bf）── */
#nprogress .bar             { background: #f59e0b !important; }
#nprogress .peg             { box-shadow: 0 0 10px #f59e0b, 0 0 5px #f59e0b !important; }
#nprogress .spinner-icon    {
  border-top-color:  #f59e0b !important;
  border-left-color: #f59e0b !important;
}

/* ── 兜底：inline style 硬编码 teal 色值 ── */
[style*="2dd4bf"] { color: #f59e0b !important; background-color: #f59e0b !important; }
[style*="14b8a6"] { color: #d97706 !important; background-color: #d97706 !important; }
[style*="0d9488"] { color: #d97706 !important; background-color: #d97706 !important; }
