/* ==========================================================================
   Lavender Glass Toolbox —— 设计系统
   淡紫色调 · 玻璃拟态 · 丰富交互动效
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 淡紫色阶 */
  --lav-50: #faf8ff;
  --lav-100: #f3ecff;
  --lav-200: #e8dcff;
  --lav-300: #ded0ff;
  --lav-400: #c4b5fd;
  --lilac: #a78bfa;
  --violet: #8b5cf6;
  --grape: #7c3aed;
  --orchid: #a855f7;
  --plum: #c084fc;
  --iris: #c4b5fd;

  /* 墨色(冷紫灰) */
  --ink-900: #1f1a2e;
  --ink-800: #2e2742;
  --ink-700: #423a5c;
  --ink-500: #635a7d;
  --ink-400: #837a99;
  --ink-300: #a49bb8;
  --ink-200: #c9c2d6;

  /* 玻璃层 */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-soft: rgba(255, 255, 255, 0.34);
  --glass-line: rgba(255, 255, 255, 0.72);
  --hairline: rgba(139, 92, 246, 0.22);
  --hairline-soft: rgba(139, 92, 246, 0.12);

  /* 阴影 */
  --sh-xs: 0 1px 3px rgba(76, 45, 140, 0.08);
  --sh-sm: 0 3px 12px rgba(76, 45, 140, 0.10);
  --sh-md: 0 12px 32px -10px rgba(76, 45, 140, 0.24);
  --sh-lg: 0 28px 64px -20px rgba(60, 34, 120, 0.32);
  --sh-glow: 0 10px 30px -8px rgba(139, 92, 246, 0.42);

  /* 圆角 */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  --blur: 20px;
  --blur-lg: 34px;

  /* 缓动 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo,
    Consolas, monospace;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--lav-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(139, 92, 246, 0.24);
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.32);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.55);
  background-clip: content-box;
}

/* ---------- 3. 动态淡紫背景 ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 12% -10%, #fdfcff 0%, transparent 55%),
    radial-gradient(1000px 700px at 100% 0%, #f7f4ff 0%, transparent 50%),
    linear-gradient(160deg, #fdfbff 0%, #faf7ff 34%, #f6f1ff 66%, #f1ebff 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  will-change: transform;
}

.blob-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle at 35% 35%, #e2d8ff, #cbb9ff 60%, transparent 72%);
  animation: drift1 26s var(--ease-snap) infinite alternate;
}
.blob-2 {
  width: 460px;
  height: 460px;
  top: 8%;
  right: -140px;
  background: radial-gradient(circle at 40% 40%, #e6deff, #cfc0ff 62%, transparent 74%);
  animation: drift2 32s var(--ease-snap) infinite alternate;
}
.blob-3 {
  width: 600px;
  height: 600px;
  bottom: -220px;
  left: 26%;
  background: radial-gradient(circle at 45% 45%, #ece6ff, #d8ccff 60%, transparent 74%);
  animation: drift3 38s var(--ease-snap) infinite alternate;
}
.blob-4 {
  width: 340px;
  height: 340px;
  top: 44%;
  left: 42%;
  background: radial-gradient(circle at 40% 40%, #f2edff, #ded4ff 62%, transparent 74%);
  opacity: 0.2;
  animation: drift1 30s var(--ease-snap) infinite alternate-reverse;
}

@keyframes drift1 {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(140px, 90px, 0) scale(1.18);
  }
}
@keyframes drift2 {
  from {
    transform: translate3d(0, 0, 0) scale(1.06);
  }
  to {
    transform: translate3d(-130px, 130px, 0) scale(0.9);
  }
}
@keyframes drift3 {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(90px, -120px, 0) scale(1.15);
  }
}

/* 细腻噪点, 增强玻璃质感 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. 玻璃基类 ---------- */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(165%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-md), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ---------- 5. 布局骨架 ---------- */
.app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(250, 248, 255, 0.62);
  backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 26px -14px rgba(76, 45, 140, 0.35);
  animation: slideDown 0.7s var(--ease-out) backwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #b39dff 0%, #8b5cf6 50%, #a855f7 100%);
  box-shadow: var(--sh-glow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen {
  0%,
  62% {
    transform: translateX(-120%);
  }
  82%,
  100% {
    transform: translateX(120%);
  }
}

.brand-text {
  line-height: 1.15;
}
.brand-name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(100deg, #7c3aed, #a855f7 45%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-300);
}

/* 搜索 */
.search {
  flex: 1;
  max-width: 460px;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
}
.search svg {
  position: absolute;
  left: 14px;
  color: var(--ink-300);
  pointer-events: none;
  transition: color 0.25s;
}
.search input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 42px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  outline: none;
  color: var(--ink-800);
  font-size: 14px;
  box-shadow: var(--sh-xs), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.3s var(--ease-out), background 0.3s, transform 0.3s var(--ease-out);
}
.search input::placeholder {
  color: var(--ink-300);
}
.search input:focus {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16), var(--sh-sm);
  transform: translateY(-1px);
}
.search:focus-within svg {
  color: var(--violet);
}
.search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-400);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.search-clear:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet);
  transform: rotate(90deg);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--sh-xs);
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-300);
  position: relative;
}
.status-pill.online .dot {
  background: #34c17b;
  box-shadow: 0 0 0 0 rgba(52, 193, 123, 0.55);
  animation: pulse 2.2s infinite;
}
.status-pill.offline .dot {
  background: var(--orchid);
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 193, 123, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(52, 193, 123, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 193, 123, 0);
  }
}

/* 主体 */
.shell {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 26px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* 侧边分类 */
.sidebar {
  position: sticky;
  top: 92px;
  padding: 16px;
  border-radius: var(--r-lg);
  animation: fadeUp 0.7s var(--ease-out) 0.08s both;
}

.side-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-300);
  padding: 4px 10px 10px;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-500);
  position: relative;
  transition: color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  text-align: left;
}
.cat-item .cat-ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--ink-400);
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}
.cat-item .cat-n {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-300);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 2px 7px;
  transition: all 0.3s;
}
.cat-item:hover {
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(3px);
}
.cat-item:hover .cat-ico {
  color: var(--violet);
  transform: scale(1.08) rotate(-4deg);
}
.cat-item.active {
  color: #fff;
  background: linear-gradient(120deg, #9f7aff, #a855f7);
  box-shadow: var(--sh-glow);
}
.cat-item.active .cat-ico {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.cat-item.active .cat-n {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.side-foot {
  margin-top: 14px;
  padding: 13px;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, rgba(196, 181, 253, 0.16), rgba(255, 95, 114, 0.13));
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-500);
}
.side-foot b {
  color: var(--ink-800);
}

/* 舞台 */
.stage {
  min-width: 0;
}

/* ---------- 6. 首页 ---------- */

/* 公告栏 */
.annbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px 13px 17px;
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  overflow: hidden;
  animation: fadeUp 0.7s var(--ease-out) 0.05s both;
}
.annbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #b39dff, #8b5cf6 55%, #a855f7);
}

.ann-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(120deg, #a78bfa, #7c3aed);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: var(--sh-glow);
  flex-shrink: 0;
}

.ann-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ann-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.6;
}
.ann-item b.ann-num {
  color: var(--violet);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ann-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--sh-xs);
}
.ann-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ann-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ann-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(131, 122, 153, 0.32);
  transition: all 0.35s var(--ease-out);
}
.ann-dots button:hover {
  background: rgba(139, 92, 246, 0.6);
  transform: scale(1.25);
}
.ann-dots button.on {
  width: 18px;
  background: linear-gradient(120deg, #a78bfa, #7c3aed);
}

.ann-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-400);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.ann-close:hover {
  background: rgba(139, 92, 246, 0.13);
  color: var(--violet);
  transform: rotate(90deg);
}

.annslide-enter-active {
  transition: all 0.42s var(--ease-out);
}
.annslide-leave-active {
  transition: all 0.2s var(--ease-out);
}
.annslide-enter-from {
  opacity: 0;
  transform: translateY(11px);
}
.annslide-leave-to {
  opacity: 0;
  transform: translateY(-11px);
}

/* 工具网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  padding: 20px;
  border-radius: var(--r-lg);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(165%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.4s;
  animation: fadeUp 0.62s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 158px;
}

/* 鼠标跟随高光 */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 255, 255, 0.7),
    rgba(196, 181, 253, 0.18) 40%,
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.tile:hover::after {
  opacity: 1;
}
.tile:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(139, 92, 246, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}
.tile:active {
  transform: translateY(-3px) scale(0.99);
  transition-duration: 0.1s;
}

.tile-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.45s var(--ease-spring);
}
.tile:hover .tile-ico {
  transform: translateY(-2px) rotate(-6deg) scale(1.08);
}

.tile h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: -0.005em;
}
.tile p {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-400);
  flex: 1;
}

.tile-foot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.11);
  color: var(--violet);
  border: 1px solid rgba(139, 92, 246, 0.18);
}
.chip.gray {
  background: rgba(131, 122, 153, 0.12);
  color: var(--ink-400);
  border-color: rgba(131, 122, 153, 0.18);
}
.tile-go {
  margin-left: auto;
  color: var(--ink-300);
  transition: transform 0.4s var(--ease-out), color 0.3s;
}
.tile:hover .tile-go {
  color: var(--violet);
  transform: translateX(4px);
}

/* 空态 */
.empty {
  padding: 70px 20px;
  text-align: center;
  border-radius: var(--r-lg);
  color: var(--ink-400);
  animation: fadeUp 0.5s var(--ease-out) backwards;
}
.empty svg {
  color: var(--ink-200);
  margin-bottom: 14px;
}
.empty b {
  display: block;
  font-size: 15px;
  color: var(--ink-700);
  margin-bottom: 6px;
}

/* ---------- 7. 工具面板 ---------- */
.panel {
  border-radius: var(--r-xl);
  padding: 26px 28px 30px;
  animation: panelIn 0.55s var(--ease-out) backwards;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--hairline);
}
.back-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-xs);
  transition: transform 0.35s var(--ease-spring), color 0.25s, background 0.25s,
    box-shadow 0.3s;
}
.back-btn:hover {
  color: #fff;
  background: linear-gradient(130deg, #a78bfa, #7c3aed);
  transform: translateX(-3px);
  box-shadow: var(--sh-glow);
}
.back-btn:active {
  transform: scale(0.92);
}

.panel-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.panel-title h2 {
  font-size: 19px;
  font-weight: 750;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.panel-title p {
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 5px;
  line-height: 1.6;
}
.panel-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* 表单 */
.field {
  margin-bottom: 18px;
}
.label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-500);
  margin-bottom: 9px;
  letter-spacing: 0.01em;
}
.label .hint {
  font-weight: 500;
  color: var(--ink-300);
  font-size: 11.5px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-xs), inset 0 1px 2px rgba(76, 45, 140, 0.05);
  outline: none;
  color: var(--ink-800);
  font-size: 13.5px;
  transition: box-shadow 0.3s var(--ease-out), background 0.3s, border-color 0.3s,
    transform 0.3s var(--ease-out);
}
.input:hover,
.textarea:hover,
.select:hover {
  background: rgba(255, 255, 255, 0.78);
}
.input:focus,
.textarea:focus,
.select:focus {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14), var(--sh-sm);
  transform: translateY(-1px);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-300);
}
.textarea {
  min-height: 150px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.72;
  tab-size: 2;
}
.textarea.tall {
  min-height: 230px;
}
.select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239d8070' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.row > * {
  flex: 1;
  min-width: 0;
}
.row.tight > * {
  flex: 0 0 auto;
}

/* 按钮 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--sh-xs), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.3s, background 0.28s,
    color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
}
.btn:active {
  transform: translateY(0) scale(0.975);
  transition-duration: 0.09s;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(130deg, #a78bfa 0%, #8b5cf6 48%, #a855f7 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: var(--sh-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.primary:hover {
  box-shadow: 0 16px 34px -10px rgba(124, 58, 237, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.04);
}
/* 流光 */
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
}
.btn.primary:hover::after {
  transform: translateX(130%);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink-500);
}
.btn.danger {
  color: #d9425c;
}
.btn.danger:hover {
  background: rgba(255, 95, 114, 0.12);
  box-shadow: 0 6px 18px -6px rgba(255, 95, 114, 0.4);
}
.btn.sm {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 10px;
}

.btn-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* 分段控件 */
.seg {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--sh-xs), inset 0 1px 2px rgba(76, 45, 140, 0.05);
}
.seg button {
  padding: 7px 15px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-400);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.seg button:hover {
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.7);
}
.seg button.on {
  color: #fff;
  background: linear-gradient(130deg, #a78bfa, #7c3aed);
  box-shadow: var(--sh-glow);
  transform: translateY(-1px);
}

/* 开关 */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  user-select: none;
}
.switch input {
  display: none;
}
.switch .track {
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: rgba(131, 122, 153, 0.28);
  position: relative;
  transition: background 0.35s var(--ease-out);
  box-shadow: inset 0 1px 3px rgba(50, 28, 100, 0.18);
  flex-shrink: 0;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(70, 40, 130, 0.3);
  transition: transform 0.4s var(--ease-spring);
}
.switch input:checked + .track {
  background: linear-gradient(120deg, #a78bfa, #7c3aed);
}
.switch input:checked + .track::after {
  transform: translateX(19px);
}

/* 滑块 */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b39dff, #8b5cf6 60%, #a855f7);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(70, 40, 130, 0.18);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #8b5cf6;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.slider::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.6);
}

/* 结果区 */
.result {
  margin-top: 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
  animation: resultIn 0.45s var(--ease-out) backwards;
}
@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(243, 236, 255, 0.75);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.result-head .spacer {
  margin-left: auto;
}
.result-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow: auto;
  color: var(--ink-700);
}
.result-body.plain {
  font-family: var(--font);
  font-size: 13.5px;
}

/* 错误/成功条 */
.alert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  font-size: 13px;
  line-height: 1.65;
  animation: resultIn 0.4s var(--ease-out) backwards;
  margin-top: 16px;
}
.alert.err {
  background: rgba(255, 95, 114, 0.1);
  border: 1px solid rgba(255, 95, 114, 0.28);
  color: #c8384f;
}
.alert.ok {
  background: rgba(52, 193, 123, 0.11);
  border: 1px solid rgba(52, 193, 123, 0.3);
  color: #1f8f57;
}
.alert.warn {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #6d28d9;
}
.alert svg {
  flex-shrink: 0;
  margin-top: 1px;
}
.alert code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 5px;
  border-radius: 5px;
}

/* JSON 语法高亮 */
.tok-key {
  color: #7c3aed;
}
.tok-str {
  color: #15803d;
}
.tok-num {
  color: #1d4ed8;
}
.tok-bool {
  color: #a21caf;
}
.tok-null {
  color: #837a99;
  font-style: italic;
}

/* 键值统计卡 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}
.stat {
  padding: 14px 15px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-xs);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  animation: fadeUp 0.5s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
}
.stat b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 600;
}

/* 颜色工具 */
.swatch {
  height: 130px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.swatch:hover {
  transform: scale(1.015);
}
.palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 9px;
}
.palette .sw {
  height: 62px;
  border-radius: var(--r-xs);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--sh-xs);
  cursor: pointer;
  transition: transform 0.32s var(--ease-spring), box-shadow 0.3s;
  animation: fadeUp 0.45s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 28ms);
}
.palette .sw:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: var(--sh-md);
}
input[type="color"].color-input {
  width: 54px;
  height: 42px;
  padding: 3px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  box-shadow: var(--sh-xs);
  transition: transform 0.3s var(--ease-spring);
}
input[type="color"].color-input:hover {
  transform: scale(1.06);
}

/* 二维码 */
.qr-wrap {
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-sm);
  animation: resultIn 0.5s var(--ease-out) backwards;
}
.qr-wrap svg {
  width: min(100%, 300px);
  height: auto;
  border-radius: 8px;
}

/* 正则高亮 */
.re-hl {
  font-family: var(--mono);
  font-size: 12.8px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.re-hl mark {
  background: rgba(167, 139, 250, 0.42);
  border-radius: 4px;
  padding: 1px 2px;
  color: inherit;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35);
  animation: markPop 0.35s var(--ease-spring) backwards;
}
@keyframes markPop {
  from {
    background: rgba(139, 92, 246, 0.9);
  }
}
.re-group {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #6d28d9;
  margin: 2px 4px 2px 0;
}

/* 排序/列表 */
.kv {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 12.8px;
  animation: fadeUp 0.4s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.kv-row:hover {
  transform: translateX(3px);
  box-shadow: var(--sh-xs);
}
.kv-key {
  font-weight: 700;
  color: var(--ink-700);
  flex-shrink: 0;
  min-width: 84px;
}
.kv-val {
  font-family: var(--mono);
  color: var(--ink-500);
  word-break: break-all;
  flex: 1;
}

/* 密码强度条 */
.strength {
  height: 7px;
  border-radius: 999px;
  background: rgba(131, 122, 153, 0.2);
  overflow: hidden;
  margin-top: 10px;
}
.strength i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s var(--ease-out), background 0.4s;
}

/* 密码展示 */
.pwd-out {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 18px;
  text-align: center;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed var(--hairline);
  color: var(--ink-800);
  word-break: break-all;
  transition: background 0.3s;
  min-height: 62px;
  display: grid;
  place-items: center;
}
.pwd-out:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- 8. Toast ---------- */
.toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--sh-lg);
  pointer-events: auto;
  max-width: 340px;
}
.toast-ico {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.toast.ok .toast-ico {
  background: linear-gradient(130deg, #4ad08a, #22a864);
}
.toast.err .toast-ico {
  background: linear-gradient(130deg, #c084fc, #a855f7);
}
.toast.info .toast-ico {
  background: linear-gradient(130deg, #b39dff, #8b5cf6);
}

.toast-enter-active {
  transition: all 0.45s var(--ease-spring);
}
.toast-leave-active {
  transition: all 0.3s var(--ease-out);
  position: absolute;
  right: 0;
}
.toast-enter-from {
  opacity: 0;
  transform: translateX(60px) scale(0.9);
}
.toast-leave-to {
  opacity: 0;
  transform: translateX(40px) scale(0.94);
}
.toast-move {
  transition: transform 0.35s var(--ease-out);
}

/* 复制按钮成功态 */
.copied {
  color: #1f8f57 !important;
  animation: pop 0.45s var(--ease-spring);
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

/* 舞台切换过渡 */
.fade-enter-active {
  transition: all 0.45s var(--ease-out);
}
.fade-leave-active {
  transition: all 0.24s var(--ease-out);
}
.fade-enter-from {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
}
.fade-leave-to {
  opacity: 0;
  transform: translateY(-10px) scale(0.995);
}

/* 页脚 */
.foot {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 26px 34px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-300);
}
.foot .spacer {
  margin-left: auto;
}
.foot kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--sh-xs);
  color: var(--ink-400);
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 18px;
  }
  .sidebar {
    position: static;
    padding: 12px;
  }
  .side-title {
    display: none;
  }
  .cat-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .cat-list::-webkit-scrollbar {
    display: none;
  }
  .cat-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .side-foot {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .brand-sub {
    display: none;
  }
  .status-pill .txt {
    display: none;
  }
  .status-pill {
    padding: 0 11px;
  }
  .shell {
    padding: 14px;
  }
  .annbar {
    gap: 10px;
    padding: 11px 12px 11px 15px;
    margin-bottom: 16px;
  }
  .ann-text {
    white-space: normal;
  }
  .ann-dots {
    display: none;
  }
  .panel {
    padding: 20px 17px 24px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .tile {
    padding: 16px;
    min-height: 140px;
  }
  .toasts {
    right: 14px;
    left: 14px;
    bottom: 14px;
    align-items: stretch;
  }
  .toast {
    max-width: none;
  }
}

/* ---------- 10. 无障碍: 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob {
    animation: none !important;
  }
}

/* ---------- 10. 广告位 ---------- */
.ad-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: var(--r-lg);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}
.ad-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.ad-banner.ad-bottom {
  margin-top: 18px;
  margin-bottom: 0;
}
.ad-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ad-content b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-800);
}
.ad-content span {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.55;
}
.ad-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  margin-top: 3px;
}
.ad-image {
  width: 86px;
  height: 60px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.ad-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet);
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.ad-card {
  text-align: left;
}
.ad-card .tile-ico {
  background: linear-gradient(135deg, #bda1ff, #c084fc) !important;
}
.ad-card .chip:first-child {
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet);
  border-color: rgba(139, 92, 246, 0.24);
}

/* ---------- 11. 外部工具 iframe ---------- */
.panel-external {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  height: calc(100vh - 260px);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel-external iframe {
  width: 100%;
  flex: 1;
  border: none;
  background: #fff;
  border-radius: var(--r-md);
}
.external-frame {
  display: grid;
  place-items: center;
  min-height: 280px;
}
.external-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-400);
  font-size: 13px;
}
