/* 网盘机器人前台共享工具样式（v107）：语言下拉 + 日夜按钮 + 深色模式覆盖
 * 深色模式开关：<html class="nd-dark">；二维码框 .qr 在深色下保持白色（可扫码）。
 */
/* ---- 语言下拉 + 日夜按钮（JS 注入到 .nav-in；无导航页用右下角悬浮条） ---- */
.nd-tools { display:flex; align-items:center; gap:8px; margin-left:12px; flex-shrink:0; }
.nd-lang { position:relative; }
.nd-lang-btn, .nd-theme-btn {
  background:#fff; border:1px solid #E2E8F0; border-radius:9px; color:#111827;
  font-size:14px; line-height:1; padding:9px 12px; cursor:pointer; white-space:nowrap;
}
.nd-lang-btn:hover, .nd-theme-btn:hover { border-color:#6366F1; color:#4F46E5; }
.nd-lang-btn .nd-caret { font-size:11px; color:#64748B; margin-left:2px; }
.nd-lang-menu {
  display:none; position:absolute; right:0; top:calc(100% + 8px); z-index:200;
  background:#fff; border:1px solid #E5E7EB; border-radius:12px; min-width:190px; padding:8px;
  box-shadow:0 12px 32px rgba(0,0,0,.12);
}
.nd-lang-menu.open { display:block; }
.nd-lang-head {
  padding:8px 12px 10px; margin-bottom:4px; color:#64748B; font-size:13px;
  border-bottom:1px solid #F1F5F9;
}
.nd-lang-item {
  display:flex; justify-content:space-between; align-items:center; width:100%;
  background:transparent; border:none; border-radius:8px; cursor:pointer;
  padding:9px 12px; font-size:14px; color:#111827; text-align:left;
}
.nd-lang-item:hover { background:#F8FAFC; }
.nd-lang-item.on { color:#2563EB; font-weight:600; }
.nd-lang-item .nd-dot { color:#2563EB; font-size:10px; }
.nd-tools.nd-float {
  position:fixed; right:16px; bottom:16px; z-index:200; margin-left:0;
  background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:8px;
  box-shadow:0 12px 32px rgba(0,0,0,.14);
}
/* ---- 深色模式：页面底色与文字 ---- */
html.nd-dark body { background:#0F172A; color:#E2E8F0; }
html.nd-dark a { color:#60A5FA; }
html.nd-dark .nav { background:rgba(15,23,42,.92); border-bottom-color:#334155; }
html.nd-dark .nav-links a { color:#CBD5E1; }
html.nd-dark .nav-links a:hover { color:#fff; }
html.nd-dark .nav-links a.on { color:#60A5FA; }
html.nd-dark .nav-links a.on::after { background:#60A5FA; }
html.nd-dark .nav-toggle { color:#E2E8F0; border-color:#334155; background:transparent; }
html.nd-dark footer { color:#94A3B8; border-top-color:#334155; }
html.nd-dark footer a { color:#60A5FA; }
html.nd-dark .hero h1 { color:#F1F5F9; }
html.nd-dark .hero p, html.nd-dark .section .sub, html.nd-dark .sub,
html.nd-dark .card p, html.nd-dark .step p, html.nd-dark .paybot p, html.nd-dark .gate p,
html.nd-dark .desc, html.nd-dark .note, html.nd-dark .tip, html.nd-dark .meta,
html.nd-dark .res .meta, html.nd-dark .res-meta, html.nd-dark .hot-meta,
html.nd-dark .stat span, html.nd-dark .res-cat, html.nd-dark .res-rm, html.nd-dark .res-rk,
html.nd-dark .copy-tip, html.nd-dark .quota-note, html.nd-dark .sec-head h2 small,
html.nd-dark .pkg .price small, html.nd-dark .main .sub { color:#94A3B8; }
html.nd-dark .section h2, html.nd-dark .sec-head h2, html.nd-dark .card h2, html.nd-dark .card h3,
html.nd-dark .res .t, html.nd-dark .res-t, html.nd-dark .hot-name, html.nd-dark .hot-price,
html.nd-dark .p-name, html.nd-dark .price, html.nd-dark .gate h1, html.nd-dark .main h2,
html.nd-dark .cat-head, html.nd-dark .sidebar h3, html.nd-dark .stat b, html.nd-dark .kv b,
html.nd-dark .total, html.nd-dark .amount, html.nd-dark th, html.nd-dark td b { color:#F1F5F9; }
html.nd-dark .hero { background:linear-gradient(180deg,#1E3A8A,#14532D 55%,#78350F); }
html.nd-dark .hero .small { color:#86EFAC; }
/* ---- 深色模式：卡片与容器 ---- */
html.nd-dark .card, html.nd-dark .pkg, html.nd-dark .res, html.nd-dark .res-card,
html.nd-dark .res-row, html.nd-dark .hot-card, html.nd-dark .p-card, html.nd-dark .step,
html.nd-dark .pay-item, html.nd-dark .faq-item, html.nd-dark .gate, html.nd-dark .sidebar,
html.nd-dark .code-box, html.nd-dark .ch, html.nd-dark .cat-pill, html.nd-dark .chip,
html.nd-dark .sub-chip, html.nd-dark .pg-btn, html.nd-dark .qty-btn, html.nd-dark .buybox,
html.nd-dark .pan-box, html.nd-dark .res-link, html.nd-dark .addr {
  background:#1E293B; border-color:#334155; color:#E2E8F0;
}
html.nd-dark .pkg.sel, html.nd-dark .ch.sel { border-color:#6366F1; background:#1E293B; }
html.nd-dark .cat-pill.on, html.nd-dark .chip.active { background:#2563EB; color:#fff; border-color:#2563EB; }
html.nd-dark .pg-btn.cur { background:#2563EB; color:#fff; }
html.nd-dark .paybot { border-color:#4C1D95; }
html.nd-dark .p-tag { background:#1E293B; color:#E2E8F0; }
html.nd-dark .p-img, html.nd-dark .hot-img, html.nd-dark .p-img .noimg { background:#0F172A; color:#94A3B8; }
html.nd-dark .p-foot { border-top-color:#334155; }
html.nd-dark .res-rl code, html.nd-dark .res-code code, html.nd-dark .pan-box code,
html.nd-dark .meta code, html.nd-dark .copy-code, html.nd-dark .res-kw {
  background:#0F172A; border-color:#334155; color:#E2E8F0;
}
html.nd-dark table { border-color:#334155; }
html.nd-dark th { background:#1E293B; border-color:#334155; }
html.nd-dark td { border-color:#334155; }
/* ---- 深色模式：按钮（通用在前、彩色在后，同权重靠顺序取胜） ---- */
html.nd-dark .btn { background:#1E293B; border-color:#334155; color:#E2E8F0; }
html.nd-dark .btn:hover { background:#0F172A; }
html.nd-dark .btn-primary { background:#6366F1; color:#fff; border-color:#6366F1; }
html.nd-dark .btn-primary:hover { background:#4F46E5; }
html.nd-dark .btn-danger { background:#DC2626; color:#fff; border-color:#DC2626; }
html.nd-dark .btn-purple { background:#8b5cf6; color:#fff; }
html.nd-dark .btn-ghost, html.nd-dark .btn-outline, html.nd-dark .detail-btn,
html.nd-dark .hero-btns .qry {
  background:#1E293B; border-color:#334155; color:#E2E8F0;
}
html.nd-dark .btn-ghost:hover, html.nd-dark .btn-outline:hover {
  border-color:#6366F1; color:#A5B4FC;
}
html.nd-dark .hero-btns .go { background:#14532D; color:#fff; }
/* 详情页/用户中心两处内联浅灰幽灵按钮：只命中带 F1F5F9 内联样式的 */
html.nd-dark .buy-btn[style*="F1F5F9"] {
  background:#1E293B !important; color:#E2E8F0 !important; border-color:#475569 !important;
}
html.nd-dark a.btn[style*="F1F5F9"] {
  background:#1E293B !important; color:#E2E8F0 !important; border-color:#334155 !important;
}
/* ---- 深色模式： pills / 状态色 ---- */
html.nd-dark .pill-auto { background:rgba(37,99,235,.18); color:#60A5FA; }
html.nd-dark .pill-guest { background:rgba(124,58,237,.20); color:#A78BFA; }
html.nd-dark .pill-ok { background:rgba(21,128,61,.20); color:#4ADE80; }
html.nd-dark .pill-out { background:#334155; color:#94A3B8; }
html.nd-dark .hot-buy.out { background:#334155; color:#94A3B8; }
html.nd-dark .paid-tag { color:#A78BFA; }
html.nd-dark .badge.paid { background:#7C3AED; color:#fff; }
html.nd-dark .warn { background:rgba(180,83,9,.16); border-color:#92400E; color:#FCD34D; }
html.nd-dark .warn a { color:#60A5FA; }
html.nd-dark .err, html.nd-dark .fail, html.nd-dark .msg { color:#F87171; }
html.nd-dark .ok { color:#4ADE80; }
html.nd-dark .wait { color:#FBBF24; }
html.nd-dark .st1 { color:#4ADE80; }
html.nd-dark .st0 { color:#94A3B8; }
html.nd-dark .st2 { color:#F87171; }
html.nd-dark .tree-nav a, html.nd-dark .side-link { color:#CBD5E1; }
html.nd-dark .tree-nav a:hover, html.nd-dark .side-link:hover { color:#fff; }
html.nd-dark .side-link.active { color:#60A5FA; }
html.nd-dark .hot-words a { color:#94A3B8; }
html.nd-dark .hot-words a:hover { color:#E2E8F0; }
html.nd-dark .more-link, html.nd-dark .sec-head .more, html.nd-dark .back { color:#60A5FA; }
html.nd-dark .perm { background:rgba(37,99,235,.16); color:#60A5FA; }
/* ---- 深色模式：表单 ---- */
html.nd-dark input, html.nd-dark select, html.nd-dark textarea {
  background:#0F172A; color:#E2E8F0; border-color:#334155;
}
html.nd-dark input::placeholder { color:#64748B; }
html.nd-dark label { color:#CBD5E1; }
html.nd-dark .qr { background:#fff !important; }
/* 移动端下拉面板深色 */
@media (max-width:860px) {
  html.nd-dark .nav-links { background:#1E293B; border-bottom-color:#334155; }
}
/* 深色下语言下拉与悬浮条 */
html.nd-dark .nd-lang-btn, html.nd-dark .nd-theme-btn {
  background:#1E293B; border-color:#334155; color:#E2E8F0;
}
html.nd-dark .nd-lang-btn:hover, html.nd-dark .nd-theme-btn:hover {
  border-color:#6366F1; color:#A5B4FC;
}
html.nd-dark .nd-lang-menu { background:#1E293B; border-color:#334155; }
html.nd-dark .nd-lang-head { color:#94A3B8; border-bottom-color:#334155; }
html.nd-dark .nd-lang-item { color:#E2E8F0; }
html.nd-dark .nd-lang-item:hover { background:#0F172A; }
html.nd-dark .nd-lang-item.on { color:#60A5FA; }
html.nd-dark .nd-lang-item .nd-dot { color:#60A5FA; }
html.nd-dark .nd-tools.nd-float { background:#1E293B; border-color:#334155; }

/* 注入工具后收紧导航（长语言下尽量保持单行；不支持 :has 的浏览器自动回落为换行） */
.brand { white-space:nowrap; }
.nav-in:has(> .nd-tools) .nav-links { gap:6px; }
.nav-in:has(> .nd-tools) .nav-links a { padding:8px 10px; font-size:14px; }
html.nd-dark .badge { background:rgba(37,99,235,.18); color:#60A5FA; }
html.nd-dark .hot-words a { background:#1E293B; border-color:#334155; color:#CBD5E1; }

/* 品牌字深色下提亮；标签、登录卡片 h1/底部文字深色适配 */
html.nd-dark .brand { color:#F1F5F9; }
html.nd-dark .tag { background:#1E293B; border-color:#334155; color:#CBD5E1; }
html.nd-dark .card h1, html.nd-dark h1 { color:#F1F5F9; }
html.nd-dark .foot { color:#94A3B8; }
/* 窄屏只留语言图标，工具栏不溢出 */
@media (max-width:480px) {
  .nd-tools { gap:6px; margin-left:6px; }
  .nd-lang-btn, .nd-theme-btn { padding:9px 10px; }
}

/* 翻译标志：文A 字标（代替 🌐 地球图标） */
.nd-translate-mark { font-weight:800; font-size:15px; letter-spacing:-0.5px; line-height:1; }
