/* ============================================================================
   BoxKit — 视觉系统 v5 “现代产品站 / Product”
   零依赖、零外部请求（不引任何 webfont；图标一律内联 SVG）。

   设计语言（对标 iloveimg 这类成熟工具站，而不是杂志/海报）：
   · 底：浅灰紫 #f4f5fa，卡片纯白浮起来（靠阴影分层，不靠描边）
   · 字：无衬线。标题大而稳（42px/700），正文用柔和深灰 #5b6070，不用纯黑
   · 色：主色蓝 #2f6bff；每张卡片配一块**彩色圆角图标砖**，这是“像产品”的关键
   · 形：圆角 12–16px，阴影柔和，悬停微微抬起
   · 暗色：同一套排版，底换深蓝黑，色砖自动降饱和
   ========================================================================= */

/* ---------- 令牌：亮色（默认） ---------- */
:root {
  --bg: #f4f5fa;
  --bg-2: #eef0f8;
  --card: #ffffff;
  --card-2: #f8f9fd;
  --ink: #1f2233;          /* 标题：近黑但不死黑 */
  --ink-2: #5b6070;        /* 正文：柔和深灰 */
  --ink-3: #9298a8;        /* 辅助 */
  --line: #e8eaf3;
  --line-2: #d7dbe8;

  --brand: #2f6bff;
  --brand-2: #7c4dff;
  --brand-soft: #eef2ff;
  --ok: #17864a;
  --warn: #d97706;
  --danger: #e0433a;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --shadow-xs: 0 1px 2px rgba(20, 30, 60, .05);
  --shadow: 0 2px 8px rgba(20, 30, 60, .06), 0 1px 2px rgba(20, 30, 60, .04);
  --shadow-md: 0 10px 24px -8px rgba(20, 30, 60, .16);
  --shadow-lg: 0 18px 40px -14px rgba(20, 30, 60, .22);
  --ring: 0 0 0 3px rgba(47, 107, 255, .18);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --serif: var(--sans);            /* v4 遗留引用，统一成无衬线 */
  --grad: linear-gradient(135deg, #2f6bff, #7c4dff);
  --ease: cubic-bezier(.2, .7, .3, 1);

  color-scheme: light;
}

/* ---------- 令牌：暗色 ---------- */
html[data-theme="dark"] {
  --bg: #0e1118;
  --bg-2: #141822;
  --card: #171b25;
  --card-2: #1d2230;
  --ink: #eef1f7;
  --ink-2: #a9b1c4;
  --ink-3: #7a8298;
  --line: #262c3a;
  --line-2: #333b4d;

  --brand: #5b8cff;
  --brand-2: #a78bfa;
  --brand-soft: rgba(91, 140, 255, .14);
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-md: 0 12px 28px -10px rgba(0, 0, 0, .7);
  --shadow-lg: 0 20px 46px -16px rgba(0, 0, 0, .8);
  --ring: 0 0 0 3px rgba(91, 140, 255, .3);
  --grad: linear-gradient(135deg, #5b8cff, #a78bfa);

  color-scheme: dark;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 底色在 html 上：body::before 的像素底纹用了负 z-index，
     若 body 自己还有背景色，底纹会被盖住（v3 踩过同样的坑）。 */
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(47, 107, 255, .18); }

a { color: var(--brand); text-decoration: none; transition: color .16s; }
a:hover { color: var(--brand-2); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 26px; }

/* 像素底纹：棋盘格＝像素／透明，是“像素盒”的母题；只在页面上半部淡出，避免噪声 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%),
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%);
  background-size: 18px 18px, 18px 18px;
  background-position: 0 0, 9px 9px;
  -webkit-mask-image: radial-gradient(110% 62% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(110% 62% at 50% 0%, #000 0%, transparent 72%);
}

/* ---------- 顶栏 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 18.5px; letter-spacing: -.02em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; flex: none; display: block; }
.logo-mark svg {
  width: 100%; height: 100%; display: block; border-radius: 9px;
  box-shadow: 0 4px 12px -3px rgba(47, 107, 255, .55);
}
.logo-name { line-height: 1; }
.logo-sub {
  margin-left: 3px; padding-left: 10px;
  border-left: 1px solid var(--line-2);
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: var(--ink-3); line-height: 1;
}
@media (max-width: 720px) { .logo-sub { display: none; } }
.head-spacer { flex: 1; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  display: grid; place-items: center;
  cursor: pointer; font-size: 15px;
  box-shadow: var(--shadow-xs);
  transition: color .16s, border-color .16s, transform .16s var(--ease), box-shadow .16s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ---------- 版面 ---------- */
main { flex: 1; padding: 52px 0 72px; }

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 22px 0 26px;
  color: var(--ink-3);
  font-size: 12.5px;
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
#net-badge { color: var(--ok); font-weight: 700; }

h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 14px;
}
h2 { font-size: 18px; font-weight: 750; letter-spacing: -.015em; color: var(--ink); margin: 0 0 12px; }

.lede {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 30px;
  max-width: 62ch;
}
.lede strong, .lede b { color: var(--ink); font-weight: 700; }

.crumb { font-size: 13px; color: var(--ink-3); margin: 0 0 18px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 16px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .01em;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--brand);
  box-shadow: 6px 0 0 var(--brand), 0 6px 0 var(--brand);   /* 像素簇 */
}

/* ---------- 首页 hero 居中 ---------- */
.home .wrap { text-align: center; }            /* 行内级元素（含 kicker）才会跟着居中 */
.home .lede { max-width: 660px; margin-left: auto; margin-right: auto; }
.home .sec, .home .grid { text-align: left; }  /* 栏目标题与卡片仍左对齐 */

/* 工具页收窄：workspace 有焦点，不是铺满全屏 */
main:not(.home) .wrap { max-width: 960px; }

/* ---------- 首页信任条 ---------- */
/* 卖点行：一排小药丸，只放结论，不放解释（广告词，不是说明书） */
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 34px;
}
.facts span, .facts div {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.facts b { font-weight: 700; color: var(--ink); }

/* ---------- 搜索 ---------- */
.search {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 8px;
  padding: 15px 20px 15px 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239298a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18px 50%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: border-color .16s, box-shadow .16s;
}
.search::placeholder { color: var(--ink-3); }
.search:hover { border-color: var(--line-2); }
.search:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring), var(--shadow-md); }

/* ---------- 分区标题 ---------- */
.sec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 46px 0 16px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.015em;
  color: var(--ink);
}
.sec .n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.sec.more { margin-top: 50px; }

/* ---------- 卡片 ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform .18s var(--ease), box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: var(--shadow-md);
}

/* 彩色图标砖：实色砖 + 白色图标（.c1…c11 只负责给 --tile 上色） */
.ic {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background-color: var(--tile, var(--brand));
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%),
    linear-gradient(45deg, rgba(255, 255, 255, .13) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .13) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .13) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .13) 75%);
  background-size: auto, 12px 12px, 12px 12px;
  background-position: 0 0, 0 0, 6px 6px;
  color: #fff;
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--tile, var(--brand)) 70%, transparent);
  margin-bottom: 14px;
  transition: transform .18s var(--ease);
}
/* 右下角逃出一块像素：整套卡片统一的“像素盒”记号 */
.ic::after {
  content: "";
  position: absolute;
  right: -3px; bottom: -3px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--tile, var(--brand));
  box-shadow: 0 0 0 2px var(--card);
}
.card:hover .ic { transform: scale(1.06); }
.ic svg { width: 22px; height: 22px; display: block; }

.c1  { --tile: #5b6ae0; }
.c2  { --tile: #d94fa8; }
.c3  { --tile: #2f6bff; }
.c4  { --tile: #12a89a; }
.c5  { --tile: #7c4dff; }
.c6  { --tile: #e08a1e; }
.c7  { --tile: #1298dc; }
.c8  { --tile: #e8503f; }
.c9  { --tile: #1a9553; }
.c10 { --tile: #6b7280; }
.c11 { --tile: #ea6a24; }
.c12 { --tile: #0e7490; }
.c13 { --tile: #d81b60; }
html[data-theme="dark"] .c1  { --tile: #4a56c4; }
html[data-theme="dark"] .c2  { --tile: #b83f8c; }
html[data-theme="dark"] .c3  { --tile: #2a5cd8; }
html[data-theme="dark"] .c4  { --tile: #0f8c81; }
html[data-theme="dark"] .c5  { --tile: #6a41d8; }
html[data-theme="dark"] .c6  { --tile: #bd7419; }
html[data-theme="dark"] .c7  { --tile: #0f80bb; }
html[data-theme="dark"] .c8  { --tile: #c44536; }
html[data-theme="dark"] .c9  { --tile: #157e46; }
html[data-theme="dark"] .c10 { --tile: #565d6b; }
html[data-theme="dark"] .c11 { --tile: #c75a1f; }
html[data-theme="dark"] .c12 { --tile: #0f7c96; }

.card .t {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.card .d {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}

.badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
  vertical-align: 2px;
}
.badge.paid { background: #fff3e0; color: var(--warn); }
html[data-theme="dark"] .badge.paid { background: rgba(217, 119, 6, .18); }

.empty { color: var(--ink-3); padding: 26px 0; font-size: 14px; text-align: center; }

/* ---------- 面板 ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 20px;
}

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row + .row { margin-top: 10px; }

label.f {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
  margin-bottom: 7px;
}

textarea, input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="password"], select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: border-color .16s, box-shadow .16s;
}
textarea { min-height: 170px; line-height: 1.7; }
textarea:hover, input:hover, select:hover { border-color: var(--ink-3); }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
select { cursor: pointer; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--card);
  box-shadow: 0 1px 4px rgba(20, 30, 60, .3);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); border: 3px solid var(--card); cursor: pointer;
}

.btn {
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--shadow-xs);
  transition: transform .16s var(--ease), box-shadow .16s, border-color .16s, background .16s, color .16s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(47, 107, 255, .7);
}
.btn.primary:hover { background: #2258e6; color: #fff; box-shadow: 0 10px 22px -8px rgba(47, 107, 255, .8); }
.btn.primary:disabled { background: var(--ink-3); }

.stats, .hint { color: var(--ink-3); font-size: 12.5px; }
.hint { margin-top: 10px; }
.err { color: var(--danger); font-size: 13.5px; min-height: 20px; white-space: pre-line; }
.ok { color: var(--ok); font-size: 13.5px; }
.guard { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.75; }
.guard b { color: var(--brand); }

.fileline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; font-size: 13.5px; color: var(--ink-2); }
.fileline .nm { font-weight: 700; color: var(--ink); word-break: break-all; }

.mono-out {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
  padding: 15px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-2);
  color: var(--ink);
}

.kv { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ink-2); }
.kv b { font-weight: 700; color: var(--ink); }
.kv .good { color: var(--ok); }

.cloud-note, .notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.cloud-note b, .notice b { color: var(--ink); }
.cloud-note .ic { width: auto; height: auto; background: none; margin: 0; font-size: 15px; }
.notice { margin-bottom: 16px; }

.warnbox {
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  margin-top: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---------- 进度条 ---------- */
.barwrap { margin-top: 14px; }
.bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width .3s var(--ease);
}
.bar.indet i { width: 35% !important; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* ---------- 拖拽区 ---------- */
.drop {
  position: relative;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 40px 22px;
  text-align: center;
  color: var(--ink-3);
  cursor: pointer;
  background-color: var(--card-2);
  background-image:
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%),
    linear-gradient(45deg, var(--line) 25%, transparent 25%, transparent 75%, var(--line) 75%);
  background-size: 14px 14px, 14px 14px;
  background-position: 0 0, 7px 7px;
  font-size: 14.5px;
  transition: border-color .18s, background-color .18s, color .18s;
}
.drop::before {
  content: "";
  display: block;
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  border-radius: 9px;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232f6bff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.drop b, .drop strong { color: var(--ink); font-weight: 700; }
.drop:hover, .drop.hot, .drop.over {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, var(--card));
  color: var(--ink-2);
}
.drop.on { padding: 20px; }

/* ---------- 网格与缩略图 ---------- */
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.thumbs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); margin-top: 16px; }
.thumb, .pg, .preview, .canvas-wrap, .cropbox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.thumb { transition: transform .18s var(--ease), box-shadow .18s; }
.thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.thumb img, .pg img {
  width: 100%; height: 126px;
  object-fit: contain;
  display: block;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.pg img { height: 152px; }
.thumb .meta, .pg .meta {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: break-all;
}
.thumb .meta a { font-weight: 650; font-size: 12.5px; }
.thumb .save { color: var(--ok); font-weight: 700; }
.thumb .big { color: var(--warn); font-weight: 700; }

.pages { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 16px; }
.pages span {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card-2); color: var(--ink-2);
}

/* 棋盘透明底 */
.checker, .canvas-wrap, .preview img {
  background: repeating-conic-gradient(var(--card) 0% 25%, var(--bg-2) 0% 50%) 0 0 / 18px 18px !important;
}
.canvas-wrap { padding: 12px; display: grid; place-items: center; min-height: 240px; overflow: auto; }
.preview { display: none; padding: 12px; text-align: center; }
.preview img { max-width: 100%; max-height: 260px; border: 0; border-radius: 8px; }
.cropbox { display: none; position: relative; touch-action: none; }
.cropbox canvas { display: block; width: 100%; }

/* ---------- 选项卡（药丸，像筛选器） ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background .16s, color .16s, border-color .16s, box-shadow .16s;
}
.tabs button:hover { color: var(--brand); border-color: var(--brand); }
.tabs button.on { background: #232a3d; border-color: #232a3d; color: #fff; box-shadow: var(--shadow); }
html[data-theme="dark"] .tabs button.on { background: var(--brand); border-color: var(--brand); }

.posgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 132px; }
.posgrid button {
  height: 32px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 11px;
  transition: color .16s, border-color .16s, background .16s;
}
.posgrid button:hover { color: var(--brand); border-color: var(--brand); }
.posgrid button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.list { display: none; margin-top: 16px; }
.item, .list .item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-xs);
  font-size: 13.5px;
  color: var(--ink);
}
.item + .item { margin-top: 8px; }
.item:hover { border-color: var(--line-2); }
.item .nm, .item .ms { font-size: 12.5px; color: var(--ink-3); }
.item .del, .item button.del {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-3);
  border-radius: 8px;
  cursor: pointer;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 12px;
  transition: color .16s, border-color .16s, background .16s;
}
.item .del:hover, .item button.del:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

/* ---------- 选项 / 滑块行 ---------- */
.sl { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.sl label { display: flex; align-items: center; gap: 10px; }
.sl output { font-family: var(--mono); font-size: 12.5px; min-width: 30px; font-weight: 700; color: var(--brand); }
.opt { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.opt select, .opt input[type="color"] {
  width: auto;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
}
.opt input[type="color"] { width: 42px; height: 36px; padding: 3px; cursor: pointer; }

/* ---------- 双栏 ---------- */
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
@media (max-width: 780px) { .cols { grid-template-columns: 1fr; } }

/* ---------- 吐司 ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  padding: 12px 20px;
  border-radius: 999px;
  background: #232a3d;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
  z-index: 99;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动条 ---------- */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
  *::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  main { padding: 32px 0 52px; }
  .wrap { padding: 0 18px; }
  .panel { padding: 18px; border-radius: var(--radius); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card { padding: 16px; }
  .ic { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px; }
  .card .t { font-size: 15.5px; }
  .site-head .wrap { height: 58px; }
  .drop { padding: 30px 16px; }
}

/* ---------- 账号 UI（可选功能，不登录完全看不到差异） ---------- */
.auth-slot { display: inline-flex; align-items: center; gap: 8px; }
.auth-open {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 650;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color .16s, color .16s, box-shadow .16s, transform .16s var(--ease);
}
.auth-open:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.auth-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px; font-weight: 650; color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.auth-chip i, .auth-chip img {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 800;
}
.auth-out { border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 12.5px; cursor: pointer; padding: 4px 2px; }
.auth-out:hover { color: var(--danger); }

.auth-veil {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(14, 18, 32, .48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-veil[hidden] { display: none; }
.auth-box {
  position: relative;
  width: 100%; max-width: 402px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.auth-x {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-3);
  font-size: 14px; cursor: pointer;
}
.auth-x:hover { background: var(--bg-2); color: var(--ink); }
.auth-kicker { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; color: var(--brand); }
.auth-box h2 { margin: 6px 0 16px; font-size: 22px; }
.auth-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 16px; border-radius: 11px; background: var(--bg-2); }
.auth-tabs button {
  flex: 1; padding: 8px 0;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer;
  transition: background .16s, color .16s;
}
.auth-tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-xs); }
.auth-form .f { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.auth-form input { margin-bottom: 14px; font-family: var(--sans); font-size: 14px; }
.auth-submit { width: 100%; margin-top: 2px; }
.auth-err {
  margin: 0 0 12px; padding: 9px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
  font-size: 12.5px;
}
.auth-err[hidden] { display: none; }
.auth-hint { margin: 0 0 14px; font-size: 11.5px; line-height: 1.65; color: var(--ink-3); }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--ink-3); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-google[hidden] { display: none; }
#gsi-slot { display: flex; justify-content: center; }
.auth-note { margin: 16px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--ink-3); text-align: center; }
.auth-note a { color: var(--brand); }
@media (max-width: 480px) { .auth-open { padding: 7px 11px; font-size: 13px; } .auth-box { padding: 20px; } }
/* 账号弹窗：分区（登录/注册 vs 账号设置） */
.auth-pane[hidden] { display: none; }
.auth-passkey {
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 650;
  cursor: pointer;
  transition: border-color .16s, color .16s, box-shadow .16s, transform .16s var(--ease);
}
.auth-passkey:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.auth-passkey[hidden] { display: none; }

.acct-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; font-size: 13px; color: var(--ink-3); }
.acct-line b { font-size: 14.5px; color: var(--ink); word-break: break-all; }
.acct-pk { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card-2); margin-bottom: 16px; }
.acct-pk-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.acct-pk-head b { font-family: var(--mono); color: var(--brand); }
.acct-pk-list:not(:empty) { margin: 4px 0 10px; }
.acct-pk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--card);
  font-size: 12.5px; color: var(--ink-2);
}
.acct-pk-item button {
  border: 1px solid var(--line-2); border-radius: 7px;
  background: transparent; color: var(--ink-3);
  font: inherit; font-size: 12px; padding: 2px 9px; cursor: pointer;
}
.acct-pk-item button:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.auth-pk-add { width: 100%; }
.auth-account-out { width: 100%; }

/* ---------- 登录闸门提示条（未登录时出现在工具页） ---------- */
.gate-note {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: var(--radius);
  background: var(--brand-soft);
  font-size: 13.5px;
  color: var(--ink-2);
}
.gate-note b { color: var(--ink); font-size: 14.5px; font-weight: 750; }
.gate-note .gate-login { margin-left: auto; }
@media (max-width: 560px) { .gate-note .gate-login { margin-left: 0; width: 100%; } }

/* ---------- 免费额度提示行（工具页） ---------- */
.quota-line {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.quota-line b { color: var(--ink); font-family: var(--mono); }
.quota-line a { font-weight: 650; }
.quota-vip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 12.5px;
}

/* ==========================================================================
   首页「更酷一点」：极光背景 + 渐变重点词 + 能力跑马灯 + 卡片光边
   全部纯 CSS，零外部请求；动效在 prefers-reduced-motion 下自动关闭。
   ========================================================================== */

/* 1) 极光：页面顶部缓慢漂移的色团（很淡，只为层次，不抢内容） */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 80vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(47, 107, 255, .16), transparent 62%),
    radial-gradient(34% 38% at 78% 12%, rgba(124, 77, 255, .14), transparent 64%),
    radial-gradient(30% 34% at 52% 46%, rgba(34, 211, 238, .10), transparent 66%);
  filter: blur(6px);
  animation: bkAurora 26s ease-in-out infinite alternate;
}
@keyframes bkAurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* 2) 主标题里的重点词：品牌渐变 */
h1 .hl {
  background: linear-gradient(100deg, #2f6bff 0%, #7c4dff 55%, #d6409f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 3) 能力跑马灯：两侧渐隐，轨道无限左移 */
.marquee {
  position: relative;
  margin: 6px auto 30px;
  padding: 11px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: bkMarquee 40s linear infinite;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-3);
  white-space: nowrap;
}
.marquee-track span { color: var(--ink-2); font-weight: 600; }
.marquee-track i { color: var(--brand); font-style: normal; opacity: .55; }
@keyframes bkMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 4) 卡片：悬停时的渐变光边 + 图标砖轻微放大（已有位移，这里补光） */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s;
  background: radial-gradient(120% 90% at 12% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 62%);
}
.card:hover::after { opacity: 1; }

/* 5) 分区标题：渐变短下划线 */
.sec::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 45%, transparent), transparent);
}

/* 6) 深色下把极光调亮一点，暗底才看得出 */
html[data-theme="dark"] body::before {
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(91, 140, 255, .22), transparent 62%),
    radial-gradient(34% 38% at 78% 12%, rgba(167, 139, 250, .20), transparent 64%),
    radial-gradient(30% 34% at 52% 46%, rgba(34, 211, 238, .14), transparent 66%);
}

/* ==========================================================================
   赛博像素盒（Cyber Pixel）—— 新的默认外观
   暗底 + 霓虹渐变 + 像素网格 + 发光。亮色保留为「白天模式」（干净产品风）。
   放在文件末尾：同权重后写覆盖前面的令牌，回退只需删掉这一整段。
   ========================================================================== */
:root {
  --bg: #07080f;
  --bg-2: #0d1020;
  --card: rgba(255, 255, 255, .045);
  --card-2: rgba(255, 255, 255, .03);
  --ink: #eef2ff;
  --ink-2: #a9b4d0;
  --ink-3: #6d7898;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);

  --brand: #4d8bff;
  --brand-2: #a06bff;
  --brand-soft: rgba(77, 139, 255, .16);
  --ok: #35d6a4;
  --warn: #ffc247;
  --danger: #ff6b81;

  --neon: linear-gradient(100deg, #22d3ee 0%, #4d8bff 38%, #a06bff 70%, #ff5ea8 100%);
  --neon-soft: rgba(77, 139, 255, .22);
  --glow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 50px -20px rgba(77, 139, 255, .55);
  --glow-sm: 0 10px 30px -14px rgba(77, 139, 255, .65);
  --shadow: 0 2px 10px rgba(0, 0, 0, .5);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, .9);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 1);
  --ring: 0 0 0 3px rgba(77, 139, 255, .35);
  color-scheme: dark;
}
html[data-theme="dark"] { /* 显式 dark 与默认保持一致 */
  --bg: #07080f; --bg-2: #0d1020; --card: rgba(255,255,255,.045); --card-2: rgba(255,255,255,.03);
  --ink: #eef2ff; --ink-2: #a9b4d0; --ink-3: #6d7898;
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.20);
  --brand: #4d8bff; --brand-2: #a06bff; --brand-soft: rgba(77,139,255,.16);
  color-scheme: dark;
}
/* 白天模式：干净亮色（不是简单反色） */
html[data-theme="light"] {
  --bg: #f4f5fa; --bg-2: #eef0f8; --card: #ffffff; --card-2: #f8f9fd;
  --ink: #1f2233; --ink-2: #5b6070; --ink-3: #9298a8;
  --line: #e8eaf3; --line-2: #d7dbe8;
  --brand: #2f6bff; --brand-2: #7c4dff; --brand-soft: #eef2ff;
  --ok: #17864a; --warn: #d97706; --danger: #e0433a;
  --neon: linear-gradient(100deg, #0891b2, #2f6bff 40%, #7c4dff 72%, #d6409f);
  --glow: 0 16px 40px -18px rgba(47, 107, 255, .45);
  --glow-sm: 0 10px 26px -14px rgba(47, 107, 255, .5);
  --shadow: 0 2px 8px rgba(20,30,60,.06), 0 1px 2px rgba(20,30,60,.04);
  --shadow-md: 0 10px 24px -8px rgba(20,30,60,.16);
  --shadow-lg: 0 18px 40px -14px rgba(20,30,60,.22);
  --ring: 0 0 0 3px rgba(47,107,255,.18);
  color-scheme: light;
}

/* 背景：霓虹色团 + 像素网格（暗色下才铺满） */
body::before {
  content: "";
  position: fixed;
  inset: -25% -15% auto -15%;
  height: 105vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(34% 40% at 16% 18%, rgba(34, 211, 238, .30), transparent 60%),
    radial-gradient(32% 38% at 80% 10%, rgba(160, 107, 255, .34), transparent 62%),
    radial-gradient(30% 36% at 52% 44%, rgba(77, 139, 255, .26), transparent 64%),
    radial-gradient(26% 30% at 88% 60%, rgba(255, 94, 168, .18), transparent 66%);
  animation: bkAurora 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  -webkit-mask-image: radial-gradient(120% 62% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(120% 62% at 50% 0%, #000, transparent 72%);
}
html[data-theme="light"] body::before { opacity: .5; }
html[data-theme="light"] body::after { opacity: .5; background-image:
    linear-gradient(rgba(31, 34, 51, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 34, 51, .05) 1px, transparent 1px); }

/* 页头：深色玻璃 + 霓虹发丝线 */
.site-head {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head::after { content: none; }
html[data-theme="dark"] .site-head, :root:not([data-theme="light"]) .site-head {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 12px 30px -20px rgba(77, 139, 255, .8);
}

/* 眉线：霓虹胶囊 + 微光 */
.kicker {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: color-mix(in srgb, var(--brand) 70%, white);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  box-shadow: 0 0 22px -6px var(--neon-soft);
}
.kicker::before { background: var(--neon); border-radius: 1px; }

/* 主标题：白字 + 霓虹重点词 + 发光 */
h1 { color: var(--ink); text-shadow: 0 0 40px rgba(77, 139, 255, .25); }
h1 .hl {
  background: var(--neon);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(77, 139, 255, .45));
}

/* 能力带：霓虹描边 */
.marquee {
  border-top: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 10%, transparent), transparent);
}
.marquee-track span { color: var(--ink); }
.marquee-track i { color: color-mix(in srgb, var(--brand-2) 80%, white); }

/* 卡片：玻璃 + 霓虹描边亮起 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card:hover {
  border-color: color-mix(in srgb, var(--brand) 65%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent), 0 20px 50px -22px rgba(77, 139, 255, .9);
}
.card .t { color: var(--ink); }
.card .d { color: var(--ink-2); }
.card .ic { box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--tile, var(--brand)) 90%, transparent); }

/* 搜索框 / 面板 / 输入：深色玻璃 */
.search, .panel, .thumb, .pg, .item, .tabs button, .btn {
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search:focus, textarea:focus, input:focus, select:focus { box-shadow: var(--ring); }
.btn.primary {
  background: var(--neon);
  color: #080a14;
  font-weight: 800;
  box-shadow: var(--glow-sm);
}
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 14px 40px -14px rgba(124, 92, 255, .95); }
.auth-open { border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: var(--glow-sm); }
.facts span, .facts div { background: var(--card); border-color: var(--line); }
.sec { color: var(--ink); }
.sec::after { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 60%, transparent), transparent); }

/* ---------- 霓虹加强档：让「酷」是看得见的 ---------- */
body::before { opacity: 1.35; }
body::after { opacity: .8; background-size: 24px 24px, 24px 24px; }

/* 图标砖：常亮发光 + 更饱和 */
.card .ic {
  box-shadow: 0 0 22px -2px color-mix(in srgb, var(--tile, var(--brand)) 75%, transparent),
              0 0 0 1px rgba(255, 255, 255, .10) inset;
}
.card:hover .ic { box-shadow: 0 0 30px 0 color-mix(in srgb, var(--tile, var(--brand)) 95%, transparent); }

/* 卡片：常显渐变顶线（悬停点亮整圈） */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  opacity: .5;
  transition: opacity .2s, left .2s, right .2s;
}
.card:hover::before { opacity: 1; left: 0; right: 0; }

/* 主标题：背后一团光 */
.home h1 { position: relative; }
.home h1::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 620px; height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(77, 139, 255, .28), transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
}

/* 栏目标题：霓虹小方块 + 更亮的线 */
.sec::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--neon);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(77, 139, 255, .9);
}

/* 搜索框：常显微光 */
.search { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 40px -24px rgba(77, 139, 255, .9); }
.search:focus { box-shadow: var(--ring), 0 0 34px -10px rgba(77, 139, 255, .8); }

/* 卖点药丸：霓虹描边 */
.facts span, .facts div { border-color: color-mix(in srgb, var(--brand) 30%, transparent); }

/* 页脚计数更醒目 */
#net-badge { text-shadow: 0 0 14px rgba(53, 214, 164, .7); }

/* ==========================================================================
   可选风格（用 ?style=xxx 或 <html data-style="xxx"> 切换）
   A = 赛博霓虹（默认，上面已有）· B = 像素街机 · C = 极简高级 · D = 粗野撞色
   ========================================================================== */

/* ---------- B. 像素街机：无圆角、硬描边、硬阴影、等宽字 ---------- */
html[data-style="arcade"] {
  --bg: #0b0b1a; --card: #16162e; --card-2: #101024;
  --ink: #ffffff; --ink-2: #b9b9e6; --ink-3: #7b7bb0;
  --line: #ffffff; --line-2: #ffffff;
  --brand: #ff2e88; --brand-2: #22d3ee; --brand-soft: rgba(255, 46, 136, .18);
  --radius: 0px; --radius-sm: 0px; --radius-lg: 0px;
  --neon: none;
  --glow: 6px 6px 0 #000; --glow-sm: 4px 4px 0 #000;
  --shadow: 6px 6px 0 #000; --shadow-md: 8px 8px 0 #000; --shadow-lg: 10px 10px 0 #000;
  --ring: 0 0 0 3px #22d3ee;
  --sans: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
html[data-style="arcade"] body::before { background:
  radial-gradient(40% 40% at 20% 10%, rgba(255,46,136,.35), transparent 60%),
  radial-gradient(40% 40% at 80% 20%, rgba(34,211,238,.30), transparent 60%); animation: none; }
html[data-style="arcade"] body::after { opacity: .28; background-size: 16px 16px, 16px 16px; }
html[data-style="arcade"] .card { border: 3px solid #fff; }
html[data-style="arcade"] .card::before { content: none; }
html[data-style="arcade"] .card:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 #000; }
html[data-style="arcade"] .card .ic { border: 2px solid #000; }
html[data-style="arcade"] h1 { font-family: var(--sans); letter-spacing: -.03em; text-shadow: 4px 4px 0 #000; }
html[data-style="arcade"] .btn, html[data-style="arcade"] .search, html[data-style="arcade"] .panel,
html[data-style="arcade"] .facts span, html[data-style="arcade"] .kicker { border: 3px solid #fff !important; }
html[data-style="arcade"] .btn.primary { background: #ff2e88; color: #fff; box-shadow: 4px 4px 0 #000; }

/* ---------- C. 极简高级：超白、超细、极小圆角、只留一个强调色 ---------- */
html[data-style="minimal"] {
  --bg: #ffffff; --bg-2: #fafafa; --card: #ffffff; --card-2: #fafafa;
  --ink: #0a0a0a; --ink-2: #6b6b6b; --ink-3: #a3a3a3;
  --line: #ececec; --line-2: #dcdcdc;
  --brand: #0a0a0a; --brand-2: #0a0a0a; --brand-soft: #f4f4f4;
  --radius: 3px; --radius-sm: 3px; --radius-lg: 4px;
  --neon: none;
  --shadow: none; --shadow-md: none; --shadow-lg: 0 1px 0 rgba(0,0,0,.04);
  --glow: none; --glow-sm: none; --ring: 0 0 0 2px rgba(0,0,0,.6);
  color-scheme: light;
}
html[data-style="minimal"] body::before, html[data-style="minimal"] body::after { content: none; }
html[data-style="minimal"] .card { border: 1px solid var(--line); box-shadow: none; }
html[data-style="minimal"] .card::before { content: none; }
html[data-style="minimal"] .card:hover { transform: none; border-color: #0a0a0a; box-shadow: none; background: #fff; }
html[data-style="minimal"] .card .ic { background: #0a0a0a !important; color: #fff !important; box-shadow: none; width: 34px; height: 34px; border-radius: 2px; }
html[data-style="minimal"] h1 { font-weight: 600; letter-spacing: -.035em; }
html[data-style="minimal"] h1 .hl { background: none; color: #0a0a0a; filter: none; -webkit-text-fill-color: #0a0a0a; }
html[data-style="minimal"] .kicker { background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; }
html[data-style="minimal"] .marquee { border-color: var(--line); background: none; }
html[data-style="minimal"] .btn.primary { background: #0a0a0a; color: #fff; box-shadow: none; }
html[data-style="minimal"] .facts span { border-color: var(--line); }

/* ---------- D. 粗野撞色：大色块、粗黑边、夸张字号 ---------- */
html[data-style="brutal"] {
  --bg: #f5f0e6; --bg-2: #efe7d8; --card: #fffdf7; --card-2: #fff;
  --ink: #000000; --ink-2: #1a1a1a; --ink-3: #4a4a4a;
  --line: #000000; --line-2: #000000;
  --brand: #ff3b00; --brand-2: #1d4ed8; --brand-soft: #ffe9e0;
  --radius: 0px; --radius-sm: 0px; --radius-lg: 0px;
  --neon: linear-gradient(90deg, #ff3b00, #ffd400 50%, #1d4ed8);
  --shadow: 5px 5px 0 #000; --shadow-md: 7px 7px 0 #000; --shadow-lg: 9px 9px 0 #000;
  --glow: 5px 5px 0 #000; --glow-sm: 4px 4px 0 #000;
  --ring: 0 0 0 3px #1d4ed8;
  color-scheme: light;
}
html[data-style="brutal"] body::before { content: none; }
html[data-style="brutal"] body::after { content: none; }
html[data-style="brutal"] .card { border: 3px solid #000; }
html[data-style="brutal"] .card::before { content: none; }
html[data-style="brutal"] .card:nth-child(4n+1) { background: #fffdf7; }
html[data-style="brutal"] .card:nth-child(4n+2) { background: #fff3c4; }
html[data-style="brutal"] .card:nth-child(4n+3) { background: #d9f2ff; }
html[data-style="brutal"] .card:nth-child(4n+4) { background: #ffe0f0; }
html[data-style="brutal"] .card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 #000; }
html[data-style="brutal"] h1 { font-size: clamp(40px, 7.6vw, 76px); font-weight: 900; letter-spacing: -.045em; }
html[data-style="brutal"] h1 .hl { background: none; color: var(--brand); filter: none; -webkit-text-fill-color: var(--brand); }
html[data-style="brutal"] .kicker { background: #ffd400; color: #000; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
html[data-style="brutal"] .btn.primary { background: #ff3b00; color: #fff; border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
html[data-style="brutal"] .marquee { border-color: #000; background: #ffd400; }
html[data-style="brutal"] .card .ic { border: 2px solid #000; box-shadow: 3px 3px 0 #000; }

/* ==========================================================================
   高级定制（Premium）—— 新的默认外观
   做法：象牙白纸底 + 近黑墨字 + 单一强调色；图标砖改为单色细线；
   卡片用 1px 发丝线 + 极淡阴影；靠字号/字距/留白和小型大写标签做出质感。
   与霓虹/撞色相反：不靠发光和撞色，靠克制。
   ========================================================================== */
:root {
  --bg: #fbfaf7;
  --bg-2: #f4f2ec;
  --card: #ffffff;
  --card-2: #faf9f5;
  --ink: #12110f;
  --ink-2: #55524c;
  --ink-3: #8f8b82;
  --line: #e8e5dd;
  --line-2: #d6d2c7;

  --brand: #1c1b18;          /* 强调色＝墨，不是彩色 */
  --brand-2: #8a6a3b;        /* 一点点青铜色用于点缀 */
  --brand-soft: #f3f1ea;
  --ok: #3f6b4a;
  --warn: #a06a1f;
  --danger: #a83a2c;

  --neon: none;
  --radius: 6px; --radius-sm: 4px; --radius-lg: 8px;
  --glow: none; --glow-sm: 0 1px 2px rgba(18, 17, 15, .04);
  --shadow: 0 1px 2px rgba(18, 17, 15, .04);
  --shadow-md: 0 10px 30px -18px rgba(18, 17, 15, .22);
  --shadow-lg: 0 24px 60px -30px rgba(18, 17, 15, .28);
  --ring: 0 0 0 2px rgba(18, 17, 15, .55);
  color-scheme: light;
}
html[data-theme="light"] {          /* 日版就是旗舰：象牙白纸 + 墨字 */
  --bg: #fbfaf7; --bg-2: #f4f2ec; --card: #ffffff; --card-2: #faf9f5;
  --ink: #12110f; --ink-2: #55524c; --ink-3: #8f8b82;
  --line: #e8e5dd; --line-2: #d6d2c7;
  --brand: #1c1b18; --brand-2: #8a6a3b; --brand-soft: #f3f1ea;
  --ok: #3f6b4a; --warn: #a06a1f; --danger: #a83a2c;
  --neon: none;
  --radius: 6px; --radius-sm: 4px; --radius-lg: 8px;
  --glow: none; --glow-sm: 0 1px 2px rgba(18,17,15,.04);
  --shadow: 0 1px 2px rgba(18,17,15,.04);
  --shadow-md: 0 10px 30px -18px rgba(18,17,15,.22);
  --shadow-lg: 0 24px 60px -30px rgba(18,17,15,.28);
  --ring: 0 0 0 2px rgba(18,17,15,.55);
  color-scheme: light;
}
html[data-theme="dark"] {           /* 夜版：深炭 + 米白，同样是克制路线 */
  --bg: #131211; --bg-2: #1a1917; --card: #1b1a18; --card-2: #201f1c;
  --ink: #f4f1ea; --ink-2: #b3ada1; --ink-3: #7c766b;
  --line: #2a2824; --line-2: #3a3733;
  --brand: #f4f1ea; --brand-2: #c8a97a; --brand-soft: rgba(244, 241, 234, .06);
  --glow: none; --glow-sm: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 12px 30px -18px rgba(0, 0, 0, .9);
  --shadow-lg: 0 26px 60px -30px rgba(0, 0, 0, 1);
  --ring: 0 0 0 2px rgba(244, 241, 234, .6);
  color-scheme: dark;
}

/* 去掉霓虹层：留极淡的一束光营造质感 */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% -10%, rgba(138, 106, 59, .10), transparent 70%);
  animation: none;
}
body::after { content: none; }

/* 标题：更大、更紧、字重对比 */
.home h1, h1 {
  font-size: clamp(34px, 5.6vw, 58px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--ink);
  text-shadow: none;
}
h1 .hl {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: var(--ink); filter: none; -webkit-text-fill-color: currentColor;
  border-bottom: 2px solid var(--brand-2);     /* 用一道青铜细线做强调，而不是渐变 */
  padding-bottom: 2px;
}
.home h1::after { content: none; }

/* 眉线／标签：小号大写 + 宽字距（高级感的来源之一） */
.kicker {
  background: none; border: 0; box-shadow: none; padding: 0;
  color: var(--ink-3);
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.kicker::before { display: none; }

/* 能力带：极细、无底色 */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: none; padding: 13px 0; margin: 10px auto 34px;
}
.marquee-track { font-size: 12.5px; gap: 18px; animation-duration: 52s; }
.marquee-track span { color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.marquee-track i { color: var(--line-2); }

/* 导语：更大更松，字色柔 */
.lede { font-size: 17.5px; line-height: 1.85; color: var(--ink-2); max-width: 58ch; }

/* 搜索：细线方框，不用药丸 */
.search { border-radius: var(--radius); box-shadow: none; background: var(--card); }
.search:hover { border-color: var(--line-2); }
.search:focus { box-shadow: var(--ring); border-color: var(--ink); }

/* 卖点：去掉药丸，改用细线上排 */
.facts { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts span, .facts div {
  background: none; border: 0; box-shadow: none; padding: 0 18px;
  border-left: 1px solid var(--line);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600;
}
.facts span:first-child, .facts div:first-child { border-left: 0; }

/* 分区标题：小号大写标签 + 长细线 */
.sec {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin: 56px 0 22px; gap: 14px;
}
.sec::before { content: none; }
.sec::after { background: var(--line); }
.sec .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; }

/* 卡片：白纸 + 发丝线 + 极淡阴影；图标改单色细线 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 24px 22px 22px;
}
.card::before { content: none; }
.card::after { content: none; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card .t { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.card .d { font-size: 13.5px; color: var(--ink-2); }

.ic {
  width: 38px; height: 38px; border-radius: 4px;
  background: none !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-2);
  box-shadow: none !important;
  margin-bottom: 16px;
}
.ic svg { width: 19px; height: 19px; stroke-width: 1.5; }
.card:hover .ic { border-color: var(--ink); transform: none; }
.ic::after { display: none; }

/* 面板与控件 */
.panel { background: var(--card); border: 1px solid var(--line); box-shadow: none; border-radius: var(--radius); }
.btn { border: 1px solid var(--line-2); background: var(--card); box-shadow: none; border-radius: var(--radius-sm); font-weight: 600; letter-spacing: .01em; }
.btn:hover { border-color: var(--ink); color: var(--ink); transform: none; box-shadow: none; background: var(--bg-2); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.plate, .thumb, .pg { box-shadow: none; }

/* 页头：无阴影，只用一道发丝线 */
.site-head { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); box-shadow: none !important; }
html[data-theme="dark"] .site-head { box-shadow: none !important; }
.logo-mark svg { box-shadow: none; }
.auth-open { border-color: var(--line-2); box-shadow: none; font-weight: 600; }
.auth-open:hover { border-color: var(--ink); color: var(--ink); transform: none; }

/* ---------- 换肤菜单 ---------- */
.skin-menu {
  position: absolute;
  top: 58px;
  right: 24px;
  z-index: 60;
  width: 240px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.skin-menu[hidden] { display: none; }
.skin-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
}
.skin-menu button:hover { background: var(--bg-2); }
.skin-menu button.on { background: var(--brand-soft); }
.skin-menu button b { display: block; font-size: 13.5px; font-weight: 650; }
.skin-menu button span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.site-head .wrap { position: relative; }

/* ==========================================================================
   皮肤令牌（最终声明）
   注意：高级定制那层用了 `html[data-theme="light"]` 覆盖令牌，它的选择器优先级
   与 `html[data-style="..."]` 相同，所以**必须**把三套皮肤的令牌放在文件最后，
   否则会被高级皮的颜色盖掉（只剩结构规则生效，皮就"没换"）。
   ========================================================================== */
html[data-style="arcade"] {
  --bg: #0b0b1a; --bg-2: #101024; --card: #16162e; --card-2: #101024;
  --ink: #ffffff; --ink-2: #b9b9e6; --ink-3: #7b7bb0;
  --line: #ffffff; --line-2: #ffffff;
  --brand: #ff2e88; --brand-2: #22d3ee; --brand-soft: rgba(255, 46, 136, .18);
  --radius: 0px; --radius-sm: 0px; --radius-lg: 0px;
  --neon: none; --glow: 6px 6px 0 #000; --glow-sm: 4px 4px 0 #000;
  --shadow: 6px 6px 0 #000; --shadow-md: 8px 8px 0 #000; --shadow-lg: 10px 10px 0 #000;
  --ring: 0 0 0 3px #22d3ee;
  --sans: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
html[data-style="arcade"] body { background: var(--bg); color: var(--ink-2); }
html[data-style="arcade"] body::before { background:
  radial-gradient(40% 40% at 20% 10%, rgba(255,46,136,.38), transparent 60%),
  radial-gradient(40% 40% at 80% 20%, rgba(34,211,238,.32), transparent 60%); animation: none; }
html[data-style="arcade"] h1 { color: #fff; }
html[data-style="arcade"] h1 .hl { background: none; -webkit-text-fill-color: #ff2e88; color: #ff2e88; filter: none; border-bottom: 2px solid #22d3ee; }
html[data-style="arcade"] .card { background: #16162e; border: 3px solid #fff; }
html[data-style="arcade"] .card .t { color: #fff; }
html[data-style="arcade"] .card .d { color: #b9b9e6; }
html[data-style="arcade"] .ic { border: 2px solid #fff; color: #fff !important; background: #0b0b1a !important; }
html[data-style="arcade"] .sec, html[data-style="arcade"] .kicker, html[data-style="arcade"] .facts span,
html[data-style="arcade"] .facts div, html[data-style="arcade"] .lede, html[data-style="arcade"] .marquee-track span { color: #b9b9e6; }
html[data-style="arcade"] .kicker { border: 2px solid #fff; padding: 4px 10px; }
html[data-style="arcade"] .marquee { border-color: #fff; background: none; }
html[data-style="arcade"] .btn { border: 2px solid #fff; background: #16162e; color: #fff; }
html[data-style="arcade"] .search { border: 2px solid #fff; background: #101024; color: #fff; }
html[data-style="arcade"] .site-head { background: #0b0b1a; border-bottom: 3px solid #fff; }

html[data-style="minimal"] {
  --bg: #ffffff; --bg-2: #fafafa; --card: #ffffff; --card-2: #fafafa;
  --ink: #0a0a0a; --ink-2: #6b6b6b; --ink-3: #a3a3a3;
  --line: #ececec; --line-2: #dcdcdc;
  --brand: #0a0a0a; --brand-2: #0a0a0a; --brand-soft: #f4f4f4;
  --radius: 3px; --radius-sm: 3px; --radius-lg: 4px;
  --neon: none; --shadow: none; --shadow-md: none; --shadow-lg: 0 1px 0 rgba(0,0,0,.04);
  --glow: none; --glow-sm: none; --ring: 0 0 0 2px rgba(0,0,0,.6);
  color-scheme: light;
}
html[data-style="minimal"] body::before, html[data-style="minimal"] body::after { content: none; }
html[data-style="minimal"] h1 .hl { border-bottom: 2px solid #0a0a0a; }
html[data-style="minimal"] .ic { background: #0a0a0a !important; color: #fff !important; border-color: #0a0a0a; }
html[data-style="minimal"] .card { border-color: var(--line); }
html[data-style="minimal"] .kicker { letter-spacing: .22em; }

html[data-style="brutal"] {
  --bg: #f5f0e6; --bg-2: #efe7d8; --card: #fffdf7; --card-2: #fff;
  --ink: #000; --ink-2: #1a1a1a; --ink-3: #4a4a4a;
  --line: #000; --line-2: #000;
  --brand: #ff3b00; --brand-2: #1d4ed8; --brand-soft: #ffe9e0;
  --radius: 0px; --radius-sm: 0px; --radius-lg: 0px;
  --neon: linear-gradient(90deg, #ff3b00, #ffd400 50%, #1d4ed8);
  --shadow: 5px 5px 0 #000; --shadow-md: 7px 7px 0 #000; --shadow-lg: 9px 9px 0 #000;
  --glow: 5px 5px 0 #000; --glow-sm: 4px 4px 0 #000; --ring: 0 0 0 3px #1d4ed8;
  color-scheme: light;
}
html[data-style="brutal"] body::before, html[data-style="brutal"] body::after { content: none; }
html[data-style="brutal"] h1 .hl { background: none; -webkit-text-fill-color: var(--brand); color: var(--brand); border-bottom: 0; filter: none; }
html[data-style="brutal"] .card { border: 3px solid #000; }
html[data-style="brutal"] .card:nth-child(4n+1) { background: #fffdf7; }
html[data-style="brutal"] .card:nth-child(4n+2) { background: #fff3c4; }
html[data-style="brutal"] .card:nth-child(4n+3) { background: #d9f2ff; }
html[data-style="brutal"] .card:nth-child(4n+4) { background: #ffe0f0; }

/* ==========================================================================
   增量（v-next）：新增 6 个工具（拼接 / 放大 / GIF / 矢量 / EXIF / 切图）
   与首页「搜索 + 分类」优化所需的少量样式。
   放在文件末尾：同权重下后写者生效，因此这几条能盖住前面的同名选区，
   又不会影响任何既有页面的既有外观。
   ========================================================================== */

/* 新增图标砖配色：沿用 .c1…c13 的 --tile 机制，明暗两套各给一个降饱和版本，
   与既有 13 个色保持同样的明度手感。 */
.c14 { --tile: #6d4bd8; }
.c15 { --tile: #0f9d8f; }
.c16 { --tile: #d9541e; }
.c17 { --tile: #1f7ae0; }
.c18 { --tile: #b0353f; }
.c19 { --tile: #7a8a1f; }
html[data-theme="dark"] .c14 { --tile: #5c3fbb; }
html[data-theme="dark"] .c15 { --tile: #0c8478; }
html[data-theme="dark"] .c16 { --tile: #b8461a; }
html[data-theme="dark"] .c17 { --tile: #1a68be; }
html[data-theme="dark"] .c18 { --tile: #952d36; }
html[data-theme="dark"] .c19 { --tile: #67751a; }

/* 第二批新增工具（PDF 三件套 / Base64 / 取色器 / 二维码 / 表情包 / 长图切片 / 头像裁剪 / 图片对比）
   的图标砖配色。挑色原则与 c14…c19 一致：中高饱和、中低明度，相邻两色色相拉开 ≥25°，
   保证首页 29 个色砖排在一起不会有「撞色」；dark 版统一降饱和压明度，避免夜里刺眼。 */
.c20 { --tile: #3454d1; }   /* PDF 合并 · 靛蓝 */
.c21 { --tile: #7a3fc4; }   /* PDF 拆分 · 紫罗兰 */
.c22 { --tile: #b03d8f; }   /* PDF 压缩 · 洋红 */
.c23 { --tile: #c93a5b; }   /* 图片转 Base64 · 玫红 */
.c24 { --tile: #c14f24; }   /* 取色器 · 朱红 */
.c25 { --tile: #a8801a; }   /* 二维码 · 琥珀 */
.c26 { --tile: #6f8f1f; }   /* 表情包 · 橄榄 */
.c27 { --tile: #1f8f6b; }   /* 长图切片 · 翡翠 */
.c28 { --tile: #1a8195; }   /* 头像裁剪 · 青蓝 */
.c29 { --tile: #4a6b7a; }   /* 图片对比 · 石板灰 */
html[data-theme="dark"] .c20 { --tile: #2b46b0; }
html[data-theme="dark"] .c21 { --tile: #6635a6; }
html[data-theme="dark"] .c22 { --tile: #94337a; }
html[data-theme="dark"] .c23 { --tile: #a93050; }
html[data-theme="dark"] .c24 { --tile: #a1421e; }
html[data-theme="dark"] .c25 { --tile: #8f6c16; }
html[data-theme="dark"] .c26 { --tile: #5e7a1a; }
html[data-theme="dark"] .c27 { --tile: #1a7a5c; }
html[data-theme="dark"] .c28 { --tile: #166e80; }
html[data-theme="dark"] .c29 { --tile: #3f5c69; }

/* 首页分类筛选片。原本只有一个搜索框，工具只有 13 个时够用；
   加到 19 个、5 个分区之后，光靠打字找工具太慢，所以补一层点选筛选。 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.chip {
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink-2); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip:focus-visible { outline: none; box-shadow: var(--ring); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .k { font-family: var(--mono); font-size: 10.5px; opacity: .6; margin-left: 6px; }

/* 命中计数：只在真的在筛选时出现，平时不占位、不干扰。 */
.hitcount {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  margin: 12px 0 0; letter-spacing: .04em;
}
.hitcount[hidden] { display: none; }

/* 命中高亮。原来搜到结果没有任何视觉反馈，用户不知道「为什么这张还在」。 */
.card mark {
  background: var(--brand-soft); color: var(--brand);
  border-radius: 3px; padding: 0 2px;
}

/* 分区容器：把「标题 + 网格」包成一组，筛选时整组隐藏。
   为什么不用 hidden 属性：.sec 是 flex、.grid 是 grid，都能盖掉 [hidden] 的
   display:none，必须显式 !important 才不会出现「空标题挂在那里」。 */
.secgroup.is-hidden { display: none !important; }

/* `.notice` 里的图标位必须去掉图标砖的盒子。
   `.cloud-note .ic` 早就有这条修正，`.notice .ic` 一直没有 —— 而 `.ic` 现在是
   38×38 + 1px 边框 + margin-bottom:16px 的方块，直接塞进 `display:flex` 的 notice
   会在正文左侧撑出一个空心方框（image-exif.html 的提示条就是这样）。
   在这里按类一次性修掉，以后新页面照抄 `.notice > span.ic` 也不会再踩。 */
.notice .ic {
  width: auto; height: auto;
  border: 0; border-radius: 0;
  margin: 0; padding: 0;
  background: none !important;
  box-shadow: none !important;
  font-size: 15px; line-height: 1.7;
  flex: none;
}
.notice .ic svg { width: 15px; height: 15px; stroke-width: 2; }

/* ==========================================================================
   v6 视觉翻新（2026-09 · 当前默认外观）
   历史问题：文件里先后叠了 v5 / 赛博霓虹 / 高级定制 三套「默认皮肤」，
   :root 与 data-theme 块互相覆盖，最后线上是「象牙白+6px 圆角+无彩色图标砖」
   的灰扑扑那一套。本块放在最末统一收口：
   · 默认（无 data-theme）= 浅色：清爽浅底 + 白卡片 + 彩色图标砖 + 品牌渐变
   · data-theme=light / dark 用同优先级令牌块后写覆盖
   · data-style=arcade/minimal/brutal 皮肤的选择器优先级更高，仍优先生效
   ========================================================================== */

/* ---------- 令牌：默认（浅色） ---------- */
:root {
  --bg: #f4f6fb;
  --bg-2: #eaeef7;
  --card: #ffffff;
  --card-2: #f7f9fd;
  --ink: #161b2b;
  --ink-2: #53607a;
  --ink-3: #8e98af;
  --line: #e7ebf4;
  --line-2: #d3d9e8;

  --brand: #2f6bff;
  --brand-2: #7c4dff;
  --brand-soft: #edf2ff;
  --ok: #17915a;
  --warn: #d97706;
  --danger: #e0435a;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --grad: linear-gradient(135deg, #2f6bff, #7c4dff);

  --shadow-xs: 0 1px 2px rgba(18, 26, 58, .05);
  --shadow: 0 1px 2px rgba(18, 26, 58, .05), 0 10px 26px -14px rgba(18, 26, 58, .16);
  --shadow-md: 0 6px 14px -6px rgba(18, 26, 58, .12), 0 20px 44px -20px rgba(18, 26, 58, .24);
  --shadow-lg: 0 24px 60px -22px rgba(18, 26, 58, .3);
  --ring: 0 0 0 3px rgba(47, 107, 255, .18);

  --glow: none;
  --glow-sm: none;
  color-scheme: light;
}

/* ---------- 令牌：显式亮色与暗色 ---------- */
html[data-theme="light"] {
  --bg: #f4f6fb; --bg-2: #eaeef7; --card: #ffffff; --card-2: #f7f9fd;
  --ink: #161b2b; --ink-2: #53607a; --ink-3: #8e98af;
  --line: #e7ebf4; --line-2: #d3d9e8;
  --brand: #2f6bff; --brand-2: #7c4dff; --brand-soft: #edf2ff;
  --ok: #17915a; --warn: #d97706; --danger: #e0435a;
  --radius: 16px; --radius-sm: 10px; --radius-lg: 22px;
  --grad: linear-gradient(135deg, #2f6bff, #7c4dff);
  --shadow-xs: 0 1px 2px rgba(18, 26, 58, .05);
  --shadow: 0 1px 2px rgba(18, 26, 58, .05), 0 10px 26px -14px rgba(18, 26, 58, .16);
  --shadow-md: 0 6px 14px -6px rgba(18, 26, 58, .12), 0 20px 44px -20px rgba(18, 26, 58, .24);
  --shadow-lg: 0 24px 60px -22px rgba(18, 26, 58, .3);
  --ring: 0 0 0 3px rgba(47, 107, 255, .18);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0b0e18;
  --bg-2: #12162a;
  --card: rgba(255, 255, 255, .05);
  --card-2: rgba(255, 255, 255, .028);
  --ink: #edf1fa;
  --ink-2: #a9b2c9;
  --ink-3: #707b99;
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .2);

  --brand: #5b8cff;
  --brand-2: #a78bfa;
  --brand-soft: rgba(91, 140, 255, .15);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  --grad: linear-gradient(135deg, #5b8cff, #a78bfa);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-md: 0 14px 34px -12px rgba(0, 0, 0, .85);
  --shadow-lg: 0 26px 66px -24px rgba(0, 0, 0, .95);
  --ring: 0 0 0 3px rgba(91, 140, 255, .32);
  color-scheme: dark;
}

/* ---------- 背景：顶部一抹品牌柔光，去掉棋盘/网格 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 72vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 16% 14%, rgba(47, 107, 255, .12), transparent 62%),
    radial-gradient(34% 40% at 82% 10%, rgba(124, 77, 255, .10), transparent 64%);
  animation: none;
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(42% 46% at 16% 14%, rgba(91, 140, 255, .18), transparent 62%),
    radial-gradient(34% 40% at 82% 10%, rgba(167, 139, 250, .16), transparent 64%);
}
body::after { content: none; }

/* ---------- 页头 ---------- */
.site-head {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.site-head::after { content: none; }
.site-head .wrap { gap: 12px; }
.logo-mark svg { border-radius: 10px; box-shadow: 0 5px 14px -4px rgba(47, 107, 255, .5); }

/* 右侧小图标按钮：同组、柔和、hover 亮起 */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  font-size: 15px;
  box-shadow: var(--shadow-xs);
}
.icon-btn:hover {
  color: var(--brand); border-color: var(--brand);
  transform: translateY(-1px); box-shadow: var(--shadow);
}

/* ---------- 首页 hero ---------- */
.home h1, h1 {
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 780;
  letter-spacing: -.03em;
  line-height: 1.14;
  color: var(--ink);
  text-shadow: none;
}
h1 .hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: none;
  -webkit-text-fill-color: transparent;
  border-bottom: 0;
}
.home h1::after { content: none; }
.lede { font-size: 16.5px; line-height: 1.8; color: var(--ink-2); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 0; box-shadow: none;
  color: var(--brand);
  font-size: 12.5px; font-weight: 680; letter-spacing: .01em;
  text-transform: none;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 6px 0 0 var(--brand), 0 6px 0 var(--brand);
  display: block;
}

/* 卖点行：白底药丸 */
.facts { gap: 8px; border: 0; padding: 0; margin: 4px 0 34px; }
.facts span, .facts div {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  padding: 6px 14px;
  font-size: 12.5px; font-weight: 620; letter-spacing: 0;
  color: var(--ink-2);
  text-transform: none;
}

/* 搜索：柔和大药丸 */
.search, input.search {
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--card);
  box-shadow: var(--shadow);
  padding: 14px 20px 14px 48px;
}
.search:hover { border-color: var(--line-2); }
.search:focus { border-color: var(--brand); box-shadow: var(--ring), var(--shadow-md); }

/* 能力跑马灯：细细的分隔带 */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 60%, transparent);
}
.marquee-track span { color: var(--ink-2); font-weight: 620; }
.marquee-track i { color: var(--brand); opacity: .6; }

/* 分区标题：粗一点、加渐变短线 */
.sec {
  font-size: 18px; font-weight: 750; letter-spacing: -.015em;
  color: var(--ink); margin: 48px 0 16px;
  gap: 12px;
  text-transform: none;
}
.sec::before { content: none; }
.sec::after {
  content: "";
  flex: 1; height: 1px; margin-left: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 40%, transparent), transparent);
}

/* ---------- 卡片：白卡 + 彩色图标砖 ---------- */
.card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.card::before { content: none; }
.card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 12% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 60%);
  opacity: 0; transition: opacity .22s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  box-shadow: var(--shadow-md);
}
.card:hover::after { opacity: 1; }
.card .t { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.card .d { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

/* 图标砖：恢复实色彩色砖 + 白色图标 + 柔和光 */
.ic {
  width: 44px; height: 44px;
  border: 0 !important;
  border-radius: 12px;
  background-color: var(--tile, var(--brand)) !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 60%) !important;
  background-size: auto;
  background-position: 0 0;
  color: #fff !important;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--tile, var(--brand)) 65%, transparent);
  margin-bottom: 14px;
}
.ic::after {
  content: "";
  position: absolute; right: -3px; bottom: -3px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--tile, var(--brand));
  box-shadow: 0 0 0 2px var(--card);
  display: block;
}
.ic svg { width: 22px; height: 22px; stroke-width: 2; }
.card:hover .ic { transform: scale(1.06); }

/* ---------- 按钮 ---------- */
.btn {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 660;
  letter-spacing: 0;
  box-shadow: var(--shadow-xs);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand); color: var(--brand);
  box-shadow: var(--shadow);
  background: var(--card);
}
.btn.primary {
  border: 0;
  background: var(--grad);
  color: #fff;
  font-weight: 720;
  box-shadow: 0 8px 20px -8px rgba(47, 107, 255, .55);
}
.btn.primary:hover { background: var(--grad); filter: brightness(1.07); color: #fff; box-shadow: 0 12px 26px -8px rgba(47, 107, 255, .7); }
.btn.primary:disabled { background: var(--ink-3); filter: none; }

/* ---------- 面板 / 卡片类容器 ---------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.thumb, .pg, .preview, .canvas-wrap, .cropbox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.drop {
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  background-color: var(--card-2);
  background-image: none;
  transition: border-color .18s, background-color .18s, color .18s;
}
.drop:hover, .drop.hot, .drop.over {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, var(--card));
  color: var(--ink-2);
}
.tabs button { background: var(--card); }
.tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.posgrid button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 认证 / 登录条 */
.auth-open {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  font-weight: 660;
}
.auth-open:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.gate-note, .notice { border-radius: var(--radius); }
.quota-vip { background: var(--brand-soft); color: var(--brand); }

/* 输入控件滑块 */
input[type="range"]::-webkit-slider-thumb {
  background: var(--brand);
  border: 3px solid var(--card);
  box-shadow: 0 1px 4px rgba(18, 26, 58, .35);
}

/* 吐司：用墨色而不是硬编码深蓝 */
#toast { background: var(--ink); color: var(--bg); }
