/* ============================================================
   ARC Raiders 全站统一设计层 · 升级深色电竞风
   由 lib/core.mjs 的 injectDesign() 注入首页 / 26 个子页 / 外站预览页。
   只改视觉（配色/圆角/阴影/字体/动效），不改布局属性，也不改动任何 DOM 文本，
   因此文案运行时回填、SEO 标签、右下角弹窗、埋点脚本全部保持可用。
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
html.arc-design {
  --arc-bg: #080c13;
  --arc-bg-2: #0e1520;
  --arc-surface: #131c29;
  --arc-surface-2: #1a2534;
  --arc-border: rgba(241, 170, 28, .16);
  --arc-border-strong: rgba(241, 170, 28, .38);
  --arc-accent: #f1aa1c;
  --arc-accent-2: #ff8a3d;
  --arc-text: #e9eef7;
  --arc-muted: #98a6ba;
  --arc-radius: 14px;
  --arc-shadow: 0 18px 44px rgba(0, 0, 0, .48);
}

/* ---------- 2. 全局底色、字体与氛围光晕 ---------- */
html.arc-design,
html.arc-design body {
  background-color: var(--arc-bg) !important;
  color: var(--arc-text) !important;
}
html.arc-design body {
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei",
               system-ui, -apple-system, sans-serif !important;
  line-height: 1.72;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
}
html.arc-design body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(980px 560px at 8% -8%, rgba(241, 170, 28, .11), transparent 62%),
    radial-gradient(820px 500px at 96% 4%, rgba(66, 126, 255, .10), transparent 64%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 46px);
}

/* ---------- 3. 浅色底块 -> 深色玻璃面板 ---------- */
html.arc-design [class*="bg-white"],
html.arc-design [class*="bg-gray-1"],
html.arc-design [class*="bg-gray-2"],
html.arc-design [class*="bg-slate-1"],
html.arc-design [class*="bg-slate-2"],
html.arc-design [class*="bg-neutral-1"],
html.arc-design [class*="bg-zinc-1"],
html.arc-design [style*="background:#fff"],
html.arc-design [style*="background: #fff"],
html.arc-design [style*="background-color:#fff"],
html.arc-design [style*="background-color: #fff"],
html.arc-design [style*="background:white"],
html.arc-design [style*="background: white"] {
  background-color: var(--arc-surface) !important;
  color: var(--arc-text) !important;
}

/* ---------- 4. 深色文字 -> 浅色（保留橙黄/彩色高亮） ---------- */
html.arc-design [class*="text-black"],
html.arc-design [class*="text-gray-6"],
html.arc-design [class*="text-gray-7"],
html.arc-design [class*="text-gray-8"],
html.arc-design [class*="text-gray-9"],
html.arc-design [class*="text-slate-6"],
html.arc-design [class*="text-slate-7"],
html.arc-design [class*="text-slate-8"],
html.arc-design [class*="text-slate-9"],
html.arc-design [class*="text-neutral-6"],
html.arc-design [class*="text-neutral-7"],
html.arc-design [class*="text-neutral-8"],
html.arc-design [class*="text-neutral-9"],
html.arc-design [style*="color:#000"],
html.arc-design [style*="color: #000"],
html.arc-design [style*="color:black"],
html.arc-design [style*="color: black"],
html.arc-design [style*="color:#111"],
html.arc-design [style*="color:#222"],
html.arc-design [style*="color:#333"],
html.arc-design [style*="color: #333"] {
  color: var(--arc-text) !important;
}

/* ---------- 5. 卡片 / 面板：统一描边、阴影、玻璃质感 ---------- */
html.arc-design [class*="bg-slate-8"],
html.arc-design [class*="bg-slate-9"],
html.arc-design [class*="bg-gray-8"],
html.arc-design [class*="bg-gray-9"],
html.arc-design [class*="bg-white"],
html.arc-design [class*="rounded-lg"],
html.arc-design [class*="rounded-xl"],
html.arc-design [class*="rounded-2xl"],
html.arc-design [class*="newyear-banner"],
html.arc-design [class*="countdown-number"] {
  border: 1px solid var(--arc-border) !important;
  box-shadow: var(--arc-shadow) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html.arc-design [class*="hover-lift"]:hover {
  box-shadow: 0 22px 46px rgba(0, 0, 0, .55), 0 0 0 1px var(--arc-border-strong) !important;
}

/* ---------- 6. 主色按钮：橙金渐变 ---------- */
html.arc-design [class*="bg-yellow-5"],
html.arc-design [class*="bg-amber-5"],
html.arc-design [class*="bg-orange-5"] {
  background-image: linear-gradient(135deg, #ffc44d 0%, #f1aa1c 55%, #ff8a3d 100%) !important;
  color: #10151f !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 196, 77, .55) !important;
}
html.arc-design button,
html.arc-design [role="button"],
html.arc-design a[class*="bg-"] {
  border-radius: 10px !important;
  transition: box-shadow .2s ease, filter .2s ease, background-color .2s ease !important;
}
html.arc-design button:hover,
html.arc-design [role="button"]:hover {
  filter: brightness(1.14);
  box-shadow: 0 8px 22px rgba(241, 170, 28, .22) !important;
}

/* ---------- 7. 表单控件深色化（排除滑块/复选/单选/隐藏域） ---------- */
html.arc-design input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html.arc-design select,
html.arc-design textarea {
  background-color: var(--arc-surface-2) !important;
  color: var(--arc-text) !important;
  border: 1px solid var(--arc-border) !important;
  border-radius: 8px !important;
}
html.arc-design input::placeholder,
html.arc-design textarea::placeholder { color: var(--arc-muted) !important; }

/* ---------- 8. 标题层级与链接 ---------- */
html.arc-design h1 { font-weight: 800 !important; letter-spacing: -.02em; }
html.arc-design h2 { font-weight: 750 !important; }
html.arc-design h3,
html.arc-design h4 { font-weight: 700 !important; }
html.arc-design h1,
html.arc-design h2,
html.arc-design h3 { text-shadow: 0 2px 20px rgba(0, 0, 0, .55); }
html.arc-design a { transition: color .18s ease, opacity .18s ease; }
html.arc-design a:hover { color: var(--arc-accent) !important; }
html.arc-design hr { border-color: var(--arc-border) !important; }
html.arc-design table,
html.arc-design th,
html.arc-design td { border-color: var(--arc-border) !important; }

/* ---------- 9. 顶部导航与侧边栏 ---------- */
html.arc-design #top-navbar {
  background: rgba(8, 12, 19, .94) !important;
  border-bottom: 1px solid var(--arc-border-strong) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
html.arc-design .top-nav-link,
html.arc-design .top-nav-cat-btn { color: #c7d2e2 !important; border-radius: 9px !important; }
html.arc-design .top-nav-link:hover,
html.arc-design .top-nav-link.active,
html.arc-design .top-nav-cat-btn:hover,
html.arc-design .top-nav-cat-btn.hover {
  color: var(--arc-accent) !important;
  background: rgba(241, 170, 28, .14) !important;
}
html.arc-design #top-navbar > .top-nav-dropdown {
  background: rgba(12, 18, 28, .98) !important;
  border-color: var(--arc-border-strong) !important;
  border-radius: 12px !important;
}
html.arc-design .top-nav-drop-link { color: #d6dfec !important; }
html.arc-design #float-sidebar {
  background: rgba(9, 13, 21, .97) !important;
  border-right: 1px solid var(--arc-border-strong) !important;
}

/* ---------- 10. 右下角弹窗与页面工具条 ---------- */
html.arc-design #arc-popup-card {
  background: linear-gradient(160deg, rgba(22, 31, 45, .97), rgba(12, 18, 28, .97)) !important;
  color: var(--arc-text) !important;
  border: 1px solid var(--arc-border-strong) !important;
  border-radius: var(--arc-radius) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(241, 170, 28, .07) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html.arc-design #arc-popup-title,
html.arc-design #arc-popup-text,
html.arc-design #arc-popup-html,
html.arc-design #arc-popup-close { color: var(--arc-text) !important; }
html.arc-design #arc-popup-action {
  background-image: linear-gradient(135deg, #ffc44d, #f1aa1c 60%, #ff8a3d) !important;
  color: #10151f !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
}

/* ---------- 11. 滚动条、选中态、焦点、动效偏好 ---------- */
html.arc-design ::-webkit-scrollbar { width: 10px; height: 10px; }
html.arc-design ::-webkit-scrollbar-track { background: var(--arc-bg); }
html.arc-design ::-webkit-scrollbar-thumb {
  background: #2b3a4f;
  border: 2px solid var(--arc-bg);
  border-radius: 8px;
}
html.arc-design ::-webkit-scrollbar-thumb:hover { background: var(--arc-accent); }
html.arc-design ::selection { background: rgba(241, 170, 28, .35); color: #fff; }
html.arc-design :focus-visible { outline: 2px solid var(--arc-accent); outline-offset: 2px; }
html.arc-design img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html.arc-design *,
  html.arc-design *::before,
  html.arc-design *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
