/* 粉丝助手全站深色主题（覆盖 Tailwind 浅色类） */
html { color-scheme: dark; }
body {
  background-color: #0f172a !important;  /* slate-900 */
  color: #e2e8f0 !important;             /* slate-200 */
}

/* 背景覆盖 */
.bg-white { background-color: #1e293b !important; }          /* slate-800 */
.bg-gray-50, .bg-gray-100, .bg-slate-50, .bg-slate-100 { background-color: #1e293b !important; }
/* 只覆盖浅色渐变（深色/彩色渐变如紫色公告栏保留原色） */
.from-slate-100, .from-gray-50, .from-blue-50, .from-slate-50, .from-white { --tw-gradient-from: #0f172a !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.to-blue-50, .to-white, .to-slate-100 { --tw-gradient-to: #1e293b !important; }

/* 文字覆盖 */
.text-gray-500, .text-gray-600, .text-gray-700, .text-slate-500, .text-slate-600 { color: #94a3b8 !important; }
.text-gray-800, .text-gray-900, .text-slate-700, .text-slate-800, .text-slate-900 { color: #e2e8f0 !important; }
.text-black { color: #e2e8f0 !important; }

/* 边框覆盖 */
.border-gray-100, .border-gray-200, .border-slate-100, .border-slate-200 { border-color: #334155 !important; }
.divide-gray-100, .divide-gray-200 { --tw-divide-opacity: 1; border-color: #334155 !important; }

/* 卡片/区块 */
.shadow-sm, .shadow, .shadow-md, .shadow-lg { box-shadow: 0 1px 3px rgba(0,0,0,0.5) !important; }

/* hover 状态 */
.hover\:bg-gray-50:hover, .hover\:bg-gray-100:hover { background-color: #334155 !important; }

/* 表单 */
input, select, textarea {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
input::placeholder, textarea::placeholder { color: #64748b !important; }

/* 表格 */
thead { background-color: #1e293b !important; }
tr:nth-child(even) { background-color: #22324e; }
tr:nth-child(even):hover { background-color: #334155 !important; }

/* 链接 */
a { color: #60a5fa; }
a:hover { color: #93c5fd; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* 金色按钮强制深色文字（logo 色） */
.bg-\[#F0B90B\] { color: #0f172a !important; }
a.bg-\[#F0B90B\]:hover { color: #0f172a !important; }

/* 深色主题链接色（2026-09-19 PSI：修 color-contrast——深底必须配浅字） */
.text-blue-400, .text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800, .text-blue-900,
a.text-blue-500, a.text-blue-600, a.text-blue-700, a.text-blue-800, a.text-blue-900 {
  color: #93c5fd !important;   /* blue-300，on #1e293b 对比度 ≈7.5:1 */
}
a.text-blue-500:hover, a.text-blue-600:hover, a.text-blue-700:hover,
a.text-blue-800:hover, a.text-blue-900:hover { color: #bfdbfe !important; }
/* 文章正文链接：浅色 + 下划线（区分于周围文字） */
.article-body a, .article-content a, article .prose a {
  color: #93c5fd !important; text-decoration: underline !important; text-underline-offset: 2px;
}

/* bg-blue-50/100 覆盖（2026-09-19 PSI：原本浅蓝底 + 浅色字 = 对比度不足） */
.bg-blue-50, .bg-blue-100 { background-color: #1e3a8a !important; }   /* blue-900 深底 */
.bg-blue-50 .text-blue-900, .bg-blue-100 .text-blue-900,
.bg-blue-50.text-blue-900, .bg-blue-100.text-blue-900 { color: #dbeafe !important; }  /* blue-100 亮字 */
/* 一般链接：深色主题下加下划线（修 link-in-text-block——唔靠颜色区分） */
footer a, .space-y-2 a { text-decoration: underline !important; text-underline-offset: 2px; }

/* 状态色覆盖（2026-09-19 PSI：深色底配浅色字——修 color-contrast） */
.text-green-500, .text-green-600, .text-green-700 { color: #4ade80 !important; }   /* green-400 */
.text-emerald-500, .text-emerald-600, .text-emerald-700 { color: #34d399 !important; }
.text-amber-500, .text-amber-600, .text-amber-700 { color: #fbbf24 !important; }   /* amber-400 */
.text-yellow-500, .text-yellow-600, .text-yellow-700 { color: #facc15 !important; }
.text-red-500, .text-red-600, .text-red-700 { color: #f87171 !important; }         /* red-400 */
.text-indigo-500, .text-indigo-600, .text-indigo-700 { color: #a5b4fc !important; }
.text-purple-500, .text-purple-600, .text-purple-700 { color: #c4b5fd !important; }
.text-pink-500, .text-pink-600 { color: #f9a8d4 !important; }
/* 状态底色覆盖 */
.bg-green-50, .bg-green-100 { background-color: #14532d !important; }   /* green-900 */
.bg-red-50, .bg-red-100 { background-color: #7f1d1d !important; }
.bg-amber-50, .bg-yellow-50 { background-color: #78350f !important; }

/* 金色按钮例外（2026-09-19 PSI：品牌金底 #F0B90B 上嘅文字保持深色）
   ⚠️ selector 只可以匹配「背景係金色」—— 用 [class*="F0B90B"] 会误中 group-hover:text-[#F0B90B] 嘅普通链接 */
[class*="bg-[#F0B90B]"], a[class*="bg-[#F0B90B]"] { color: #0f172a !important; }
[class*="bg-[#F0B90B]"]:hover, a[class*="bg-[#F0B90B]"]:hover { color: #0f172a !important; }
