/* ═══════════════════════════════════════════════════════════
   Limooi · 通用深色主题（适配原站独立页面）
   ───────────────────────────────────────────────────────────
   这些页面（团队版 / 任务市场 / 提示词商店 / 发票 / 视频复刻 /
   画布 / API 文档）各有自己的变量名，这里统一覆盖为荧光绿体系。
   只改变量与通用元素外观，不动布局。
   ═══════════════════════════════════════════════════════════ */

/* ══ 覆盖各页面自己的变量名 ══ */
:root,
html,
body {
  /* 通用 */
  --bg: #0a0908 !important;
  --bg-2: #0f0d0c !important;
  --card: #14120f !important;
  --surface: #14120f !important;
  --panel: #14120f !important;
  --panel-2: #1b1815 !important;

  /* 文字 */
  --ink: #f4f3f1 !important;
  --txt: #f4f3f1 !important;
  --text: #f4f3f1 !important;
  --sub: #a8a29e !important;
  --muted: #a8a29e !important;
  --text-muted: #a8a29e !important;
  --text-secondary: #a8a29e !important;

  /* 线条 */
  --line: rgba(255,255,255,.085) !important;
  --border: rgba(255,255,255,.085) !important;
  --border-subtle: rgba(255,255,255,.06) !important;
  --line-soft: rgba(255,255,255,.05) !important;

  /* 品牌色：原站各页的 pink / brand 全部换成荧光绿 */
  --brand: #c9ff5d !important;
  --brand-2: #a8e04a !important;
  --brand-soft: rgba(201,255,93,.12) !important;
  --pink: #c9ff5d !important;
  --primary: #c9ff5d !important;
  --accent: #c9ff5d !important;
  --accent-soft: rgba(201,255,93,.12) !important;

  /* 状态色 */
  --ok: #4ade80 !important;
  --warn: #fbbf24 !important;
  --err: #f87171 !important;
  --danger: #f87171 !important;

  color-scheme: dark;
}

/* ══ 页面底色 ══ */
html,
body {
  background: #0a0908 !important;
  color: #f4f3f1 !important;
  -webkit-font-smoothing: antialiased;
}

/* 极淡网格纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 18%, transparent 72%);
}

body > * { position: relative; z-index: 1; }

/* ══ 卡片 / 面板 ══ */
.card,
.panel,
.surface,
.surface-card,
.box,
.section,
.item,
.row-card {
  background: #14120f !important;
  border-color: rgba(255,255,255,.085) !important;
  color: #f4f3f1 !important;
}

.card:hover {
  border-color: rgba(201,255,93,.22) !important;
}

/* ══ 标题 ══ */
h1, h2, h3, h4, h5 {
  color: #f4f3f1 !important;
}

p, span, li, td, th, label, div {
  /* 只在没被显式设置时兜底，避免覆盖子元素自己的颜色 */
}

/* ══ 弱化文字 ══ */
.muted,
.sub,
.tip,
.note,
.hint,
.intro-tip,
.kpi-label,
label,
small {
  color: #a8a29e !important;
}

/* ══ 输入框 ══ */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
select {
  background: rgba(0,0,0,.42) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 10px !important;
  color: #f4f3f1 !important;
  transition: border-color .16s, box-shadow .16s !important;
}

input::placeholder,
textarea::placeholder { color: #57534e !important; }

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(201,255,93,.55) !important;
  box-shadow: 0 0 0 3px rgba(201,255,93,.09) !important;
  outline: none !important;
}

/* ══ 按钮 ══ */
.btn,
button {
  transition: background .16s, border-color .16s, transform .12s, color .16s !important;
}

.btn.primary,
button.primary,
.btn-primary,
.btn.brand {
  background: #c9ff5d !important;
  border-color: #c9ff5d !important;
  color: #0a0908 !important;
  font-weight: 700 !important;
}

.btn.primary:hover,
button.primary:hover,
.btn-primary:hover {
  box-shadow: 0 8px 26px -10px rgba(201,255,93,.55) !important;
  transform: translateY(-1px) !important;
}

.btn:not(.primary):not(.brand),
button:not(.primary):not(.brand) {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #a8a29e !important;
}

.btn:not(.primary):not(.brand):hover,
button:not(.primary):not(.brand):hover {
  background: rgba(255,255,255,.085) !important;
  color: #f4f3f1 !important;
}

/* ══ 表格 ══ */
table { color: #f4f3f1 !important; }

thead th {
  color: #6b6560 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.085) !important;
  background: rgba(255,255,255,.02) !important;
}

tbody td {
  border-bottom: 1px solid rgba(255,255,255,.045) !important;
  color: #f4f3f1 !important;
}

tbody tr:hover { background: rgba(255,255,255,.028) !important; }

/* ══ 标签 / 徽章 ══ */
.badge, .tag, .chip, .pill {
  border-radius: 99px !important;
}

.badge.ok, .tag.ok { color: #4ade80 !important; }
.badge.warn, .tag.warn { color: #fbbf24 !important; }
.badge.off, .tag.err { color: #f87171 !important; }

/* ══ 弹窗 / 遮罩 ══ */
.modal, .gate, .overlay {
  background: rgba(6,5,4,.78) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.modal-card, .gate-card, .dialog, .popup {
  background: linear-gradient(180deg, #161311, #100e0d) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 18px !important;
  color: #f4f3f1 !important;
  box-shadow: 0 40px 90px rgba(0,0,0,.72) !important;
}

/* ══ 分隔线 ══ */
hr,
.divider,
.sec-head {
  border-color: rgba(255,255,255,.085) !important;
}

/* ══ 滚动条 ══ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(201,255,93,.16);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201,255,93,.34);
  background-clip: content-box;
}

::selection {
  background: rgba(201,255,93,.25) !important;
  color: #fff !important;
}

/* ══ 链接 ══ */
a { color: inherit; }
a:hover { color: #c9ff5d !important; }

/* ══ 客服二维码（若页面内有）══ */
.customer-service-qr,
img[alt*="二维码"] {
  background: #fff !important;
  padding: 8px !important;
  border-radius: 12px !important;
}

/* ══ 减少动效 ══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
