/* 秒转侠 · 统一背景效果组件（全站只此一份，请勿在页面内重复定义）
   用法：<link rel="stylesheet" href="/js/fk-theme.css">
   效果：默认 / 关灯 / 祭奠黑白 / 办公·蓝 / 办公·灰
   由 /js/fk-theme.js 切换，写入 html[data-fk-fx] 并记忆到 localStorage。 */

/* ---------- 1. 关灯（夜间深色） ---------- */
html[data-fk-fx="night"],
html.fk-night{background:#0a0907!important}
html[data-fk-fx="night"] body,
html.fk-night body{
  filter:invert(1) hue-rotate(180deg)!important;
  background-color:#f5f6f8!important;
}
html[data-fk-fx="night"] img,
html[data-fk-fx="night"] video,
html[data-fk-fx="night"] canvas,
html[data-fk-fx="night"] svg,
html[data-fk-fx="night"] .qr-box img,
html.fk-night img,
html.fk-night video,
html.fk-night canvas,
html.fk-night svg{
  filter:invert(1) hue-rotate(180deg)!important;
}

/* ---------- 2. 祭奠黑白（肃穆灰度 + 顶部黑丝带） ---------- */
html[data-fk-fx="mourning"] body{
  filter:grayscale(1) contrast(.92)!important;
  background-color:#f2f2f2!important;
}
html[data-fk-fx="mourning"] body::before{
  content:"";position:fixed;top:0;left:0;right:0;height:3px;
  background:#0f0f0f;z-index:99998;pointer-events:none;
}

/* ---------- 3. 办公·蓝（蓝白商务：纯白卡片、细边框、克制的圆角） ---------- */
html[data-fk-fx="office-blue"] body{
  background-image:none!important;
  background-color:#eff4fc!important;
  color:#1e2c43!important;
}
html[data-fk-fx="office-blue"] .bg-splash,
html[data-fk-fx="office-blue"] .duilian{display:none!important}
html[data-fk-fx="office-blue"] .panel,
html[data-fk-fx="office-blue"] .tool-card,
html[data-fk-fx="office-blue"] .fk-toolkit,
html[data-fk-fx="office-blue"] footer,
html[data-fk-fx="office-blue"] .card,
html[data-fk-fx="office-blue"] .cat-section,
html[data-fk-fx="office-blue"] .feature-card{
  background:#ffffff!important;
  background-image:none!important;
  border:1px solid #d9e3f2!important;
  border-radius:10px!important;
  box-shadow:0 1px 3px rgba(23,54,110,.06)!important;
}
html[data-fk-fx="office-blue"] h1,
html[data-fk-fx="office-blue"] h2,
html[data-fk-fx="office-blue"] h3,
html[data-fk-fx="office-blue"] .tk-head h1{color:#12325f!important}
html[data-fk-fx="office-blue"] .btn,
html[data-fk-fx="office-blue"] .btn.ghost{background:#1d4ed8!important;color:#fff!important;border-radius:6px!important}
html[data-fk-fx="office-blue"] .btn.ghost{background:#e8f0fe!important;color:#1d4ed8!important}

/* ---------- 4. 办公·灰（灰白极简：无阴影、直角感） ---------- */
html[data-fk-fx="office-gray"] body{
  background-image:none!important;
  background-color:#f7f7f8!important;
  color:#26272b!important;
}
html[data-fk-fx="office-gray"] .bg-splash,
html[data-fk-fx="office-gray"] .duilian{display:none!important}
html[data-fk-fx="office-gray"] .panel,
html[data-fk-fx="office-gray"] .tool-card,
html[data-fk-fx="office-gray"] .fk-toolkit,
html[data-fk-fx="office-gray"] footer,
html[data-fk-fx="office-gray"] .card,
html[data-fk-fx="office-gray"] .cat-section,
html[data-fk-fx="office-gray"] .feature-card{
  background:#ffffff!important;
  background-image:none!important;
  border:1px solid #e4e4e7!important;
  border-radius:6px!important;
  box-shadow:none!important;
}
html[data-fk-fx="office-gray"] h1,
html[data-fk-fx="office-gray"] h2,
html[data-fk-fx="office-gray"] h3,
html[data-fk-fx="office-gray"] .tk-head h1{color:#1f2023!important}
html[data-fk-fx="office-gray"] .btn,
html[data-fk-fx="office-gray"] .btn.ghost{background:#3f3f46!important;color:#fff!important;border-radius:6px!important}
html[data-fk-fx="office-gray"] .btn.ghost{background:#f0f0f2!important;color:#3f3f46!important}

/* ---------- 5. 切换面板（首页汉堡菜单内） ---------- */
.fk-fx-panel{
  position:absolute;right:0;top:52px;width:224px;
  background:#fff;border:1px solid #e6eaf2;border-radius:12px;
  box-shadow:0 10px 28px rgba(20,40,90,.16);padding:8px;z-index:9995;
}
.fk-fx-panel::before{
  content:"";position:absolute;right:18px;top:-6px;width:10px;height:10px;background:#fff;
  border-left:1px solid #e6eaf2;border-top:1px solid #e6eaf2;transform:rotate(45deg);
}
.fk-fx-title{font-size:11px;color:#94a3b8;padding:6px 10px 4px;letter-spacing:.5px}
.fk-fx-item{
  display:flex;align-items:center;gap:9px;width:100%;border:0;background:none;
  padding:8px 10px;border-radius:8px;cursor:pointer;text-align:left;font:inherit;color:#26303d;
}
.fk-fx-item:hover{background:#f3f6fc}
.fk-fx-item[aria-checked="true"]{background:#eaf0ff;color:#2046c7;font-weight:600}
.fk-fx-swatch{width:18px;height:18px;border-radius:5px;border:1px solid #dbe2ee;flex:0 0 18px;position:relative}
.fk-fx-swatch.night{background:#14161b}
.fk-fx-swatch.mourning{background:linear-gradient(180deg,#0f0f0f 0 3px,#d9d9d9 3px 100%)}
.fk-fx-swatch.office-blue{background:linear-gradient(135deg,#fff 0 62%,#dbe8ff 62% 100%);border-color:#c9d9f2}
.fk-fx-swatch.office-gray{background:linear-gradient(135deg,#fff 0 62%,#ececef 62% 100%);border-color:#dcdce1}
.fk-fx-swatch.none{background:linear-gradient(135deg,#f5f6f8 0 50%,#e8edf7 50% 100%)}
.fk-fx-name{font-size:13px;flex:1}
.fk-fx-hint{font-size:11px;color:#9aa4b3;padding:6px 10px 2px;line-height:1.5}

@media(max-width:640px){
  .fk-fx-panel{width:196px;right:-4px}
}
