/* ============================================================
   小无API · style.v16 —— 黑灰渐变 · 暗色现代皮肤
   桌面：左侧常驻菜单栏（含「友情链接」按钮项）
   移动：三条杠抽屉菜单
   按钮：悬浮、圆角、阴影、微动效
   ============================================================ */
:root {
  --font: "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 黑灰渐变暗色基调 */
  --bg-0: #0b0d12;            /* 最深 */
  --bg-1: #12151d;            /* 中 */
  --bg-2: #171b25;            /* 面板 / 卡片底 */
  --bg-3: #1d2230;            /* 输入 / 浮层 */
  --bg-4: #252b3d;            /* hover */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);

  --ink-900: #f2f4f9;
  --ink-700: #c7cede;
  --ink-500: #8b94a8;
  --ink-400: #67718a;
  --ink-300: #454e63;

  /* 主强调（白→黑灰渐变，无彩） */
  --accent: #ffffff;
  --accent-deep: #cdd3dd;
  --accent-grad: linear-gradient(180deg, #ffffff 0%, #c8cdd6 100%);
  --accent-soft: rgba(255, 255, 255, 0.12);
  --accent-glow: 0 8px 24px rgba(0, 0, 0, 0.45);

  --blue: #d7dce4;
  --blue-soft: rgba(255, 255, 255, 0.10);
  --green: #d7dce4;
  --green-soft: rgba(255, 255, 255, 0.10);
  --orange: #d7dce4;
  --orange-soft: rgba(255, 255, 255, 0.10);
  --red: #ffb3b3;
  --red-soft: rgba(255, 120, 120, 0.18);
  --purple: #d7dce4;
  --purple-soft: rgba(255, 255, 255, 0.10);
  --cyan: #d7dce4;
  --cyan-soft: rgba(255, 255, 255, 0.10);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.30), 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-float: 0 6px 12px rgba(0, 0, 0, 0.35), 0 22px 52px rgba(0, 0, 0, 0.42);
  --shadow-pop: 0 14px 32px rgba(0, 0, 0, 0.45), 0 40px 90px rgba(0, 0, 0, 0.55);
  --topbar-h: 64px;
  --sidebar-w: 264px;
  --ease-ios: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-900);
  background:
    radial-gradient(1200px 560px at 50% -6%, rgba(255, 255, 255, 0.16), transparent 62%),
    radial-gradient(760px 480px at 100% 40%, rgba(255, 255, 255, 0.04), transparent 58%),
    linear-gradient(180deg, #9aa1ad 0%, #4a505c 16%, #171a20 40%, #0a0c10 70%, #030407 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #9db4ff; }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(255, 255, 255, 0.25); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c3346; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #3d4660; border: 2px solid transparent; background-clip: content-box; }

/* ---------- 装饰光斑 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-orbs i:nth-child(1) { width: 560px; height: 560px; top: -190px; right: -120px; background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 62%); }
.bg-orbs i:nth-child(2) { width: 520px; height: 520px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 62%); }

/* ---------- 玻璃容器 ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar-h);
  padding: 0 16px;
  background: rgba(13, 15, 21, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.topbar.glass { border-radius: 0; box-shadow: none; background: rgba(13, 15, 21, 0.78); }

/* 三条杠（移动端 / 抽屉开关） */
.nav-toggle {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04); cursor: pointer;
  color: var(--ink-700);
  transition: all .2s var(--ease-ios);
}
.nav-toggle:hover { background: rgba(255,255,255,0.09); border-color: var(--line-strong); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.nav-toggle:active { transform: scale(0.92); }
.hamburger { display: block; width: 17px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: background .2s; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s var(--ease-ios), top .22s var(--ease-ios); }
.hamburger::before { top: -5.5px; }
.hamburger::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* 品牌 */
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.04);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.brand-name .accent-dot { color: var(--accent); }

/* 搜索 */
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-input {
  width: 100%; height: 42px; padding: 0 18px 0 42px;
  font: inherit; font-size: 14px; color: var(--ink-900);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  outline: none;
  transition: all .22s var(--ease-ios);
}
.search-wrap::before { content: "🔎"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .55; pointer-events: none; filter: grayscale(.3); }
.search-input::placeholder { color: var(--ink-400); }
.search-input:focus { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 4px 18px rgba(0,0,0,.35); }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 90;
  max-height: min(60vh, 440px); overflow-y: auto; padding: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
}
.sr-empty { padding: 18px 14px; text-align: center; color: var(--ink-400); font-size: 13.5px; }
.sr-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink-700);
  font: inherit; text-align: left; cursor: pointer;
  transition: background .16s var(--ease-ios);
}
.sr-item:hover { background: rgba(255,255,255,0.06); }
.sr-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-url { font-family: var(--mono); font-size: 11.5px; color: var(--ink-400); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 布局 ---------- */
.layout { display: flex; gap: 22px; max-width: 1280px; margin: 0 auto; padding: 22px 16px calc(56px + env(safe-area-inset-bottom)); }
.content { flex: 1; min-width: 0; }

/* ============ 侧栏菜单 ============
   桌面：常驻左侧
   移动：三条杠抽屉 */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 80;
  width: min(84vw, 300px);
  padding: 18px 14px; padding-top: calc(18px + env(safe-area-inset-top));
  background: linear-gradient(180deg, #141824 0%, #10131c 100%);
  border-right: 1px solid var(--line);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  transform: translateX(-105%);
  transition: transform .4s var(--ease-ios);
  overflow-y: auto;
  box-shadow: var(--shadow-float);
}
.sidebar.is-open { transform: translateX(0); }
.nav-scrim {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(4, 6, 10, 0.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-ios);
}
.nav-scrim.is-show { opacity: 1; pointer-events: auto; }
.sidebar-title { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ink-400); text-transform: uppercase; padding: 4px 10px 12px; }

.menu-list { display: flex; flex-direction: column; gap: 6px; }
.menu-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 12px 13px;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  cursor: pointer; text-align: left;
  transition: all .2s var(--ease-ios);
  overflow: hidden;
}
.menu-item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 55%; border-radius: 0 3px 3px 0;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(255,255,255,.6);
  transition: transform .22s var(--ease-ios);
}
.menu-item:hover { background: rgba(255,255,255,0.06); color: var(--ink-900); transform: translateX(2px); }
.menu-item:hover::before { transform: translateY(-50%) scaleY(1); }
.menu-item:active { transform: scale(0.98) translateX(0); }
.menu-ico { width: 22px; text-align: center; font-size: 15.5px; flex: 0 0 auto; }
.menu-arrow { margin-left: auto; color: var(--ink-300); font-size: 16px; transition: transform .2s var(--ease-ios); }
.menu-item:hover .menu-arrow { transform: translateX(3px); color: var(--accent); }

/* 友情链接 = 高亮按钮式菜单项 */
.menu-friends {
  margin: 4px 0;
  color: #0e1116;
  background: linear-gradient(180deg, #f4f6f9 0%, #c3c9d3 100%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.7);
}
.menu-friends:hover {
  background: linear-gradient(180deg, #ffffff 0%, #d2d7df 100%);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 8px 22px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.8);
  transform: translateY(-1px);
}
.menu-friends .menu-tag {
  margin-left: auto;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: rgba(0,0,0,.25);
  animation: tag-pulse 2.4s infinite;
}
@keyframes tag-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- 主内容 ---------- */
.content { flex: 1; min-width: 0; }
.empty-state { padding: 90px 20px; text-align: center; color: var(--ink-400); }
.empty-icon { font-size: 40px; margin-bottom: 10px; opacity: .5; }

/* ---------- 分区页签 ---------- */
.tier-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; margin-bottom: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.tier-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 20px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-500); cursor: pointer;
  transition: all .22s var(--ease-ios);
}
.tier-tab:hover { color: var(--ink-900); }
.tier-tab.is-active {
  color: #11141a;
  background: var(--accent-grad);
  box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.55);
}
.tab-ico { width: 15px; height: 15px; }
.tab-count {
  min-width: 21px; padding: 0 7px; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.10); color: var(--ink-500);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .22s var(--ease-ios);
}
.tier-tab.is-active .tab-count { background: rgba(0,0,0,.18); color: #11141a; }

/* ============ 按钮（现代悬浮 · 圆角 · 阴影 · 微动效） ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer; user-select: none;
  white-space: nowrap;
  transition: all .22s var(--ease-ios);
  overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  transition: left .5s var(--ease-ios);
  pointer-events: none;
}
.btn:hover::after { left: 120%; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:hover::after { animation: shine .9s var(--ease-ios); }
@keyframes shine { 0% { left: -60%; } 100% { left: 130%; } }

.btn-primary {
  background: var(--accent-grad);
  color: #11141a;
  box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.4), 0 16px 38px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7);
  filter: brightness(1.02);
}
.btn-ghost {
  background: rgba(255,255,255,0.045);
  color: var(--ink-700);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.btn-danger { background: var(--red-soft); color: #ff8d8d; }
.btn-danger:hover { background: var(--red); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255,107,107,.35); }
.btn-sm { height: 33px; padding: 0 14px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; height: 48px; font-size: 15px; border-radius: var(--r-md); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255,255,255,0.045); color: var(--ink-500);
  font-size: 15px; cursor: pointer;
  transition: all .2s var(--ease-ios);
}
.icon-btn:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: var(--line-strong); box-shadow: 0 6px 16px rgba(0,0,0,.3); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.9); }

/* ---------- 徽标 ---------- */
.method-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 25px; padding: 0 9px; flex: 0 0 auto;
  border-radius: 7px; font-family: var(--mono); font-size: 11px; font-weight: 800;
  letter-spacing: .04em; border: 1px solid transparent;
}
.method-badge.sm { min-width: 42px; height: 22px; font-size: 10px; }
.m-get { background: rgba(255,255,255,.10); color: #f4f6f9; border-color: rgba(255,255,255,.16); }
.m-post { background: rgba(255,255,255,.18); color: #ffffff; border-color: rgba(255,255,255,.26); }
.m-put { background: rgba(0,0,0,.30); color: #e4e7ec; border-color: rgba(255,255,255,.12); }
.m-patch { background: rgba(255,255,255,.06); color: #c6ccd6; border-color: rgba(255,255,255,.10); }
.m-delete { background: rgba(255,120,120,.16); color: #ffb3b3; border-color: rgba(255,160,160,.22); }

.tier-badge {
  display: inline-flex; align-items: center; gap: 3px;
  height: 23px; padding: 0 10px; margin-left: 8px;
  border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700;
  border: 1px solid transparent;
}
.tier-badge.free { background: rgba(255,255,255,.10); color: #f2f4f8; border-color: rgba(255,255,255,.16); }
.tier-badge.paid { background: rgba(255,255,255,.22); color: #ffffff; border-color: rgba(255,255,255,.30); }

/* ---------- API 卡片 ---------- */
.api-card {
  border-radius: var(--r-lg);
  margin-bottom: 15px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: all .28s var(--ease-ios);
  animation: rise-in .5s var(--ease-ios) both;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.api-card:hover { border-color: rgba(255,255,255,.28); box-shadow: var(--shadow-float), 0 0 0 1px rgba(255,255,255,.06); transform: translateY(-1px); }
.api-card.is-flash { border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 3px rgba(255,255,255,.15), var(--shadow-float); }

.api-card-head {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 17px 18px;
  background: none; border: 0; text-align: left;
  cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.api-card-head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); border-radius: var(--r-lg); }
.api-card-titles { flex: 1; min-width: 0; }
.api-card-titles h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: .01em; color: var(--ink-900); display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.api-url { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { width: 8px; height: 8px; flex: 0 0 auto; border-right: 1.8px solid var(--ink-400); border-bottom: 1.8px solid var(--ink-400); transform: rotate(45deg); transition: transform .3s var(--ease-ios); }
.api-card.is-open .chevron { transform: rotate(225deg) translate(-2px, -2px); }

.api-card-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-ios); }
.api-card.is-open .api-card-body { max-height: 3400px; border-top: 1px solid var(--line); }
.api-card-body > * { margin: 16px 18px; }
.api-desc { color: var(--ink-700); font-size: 14px; }

.doc-section h4 {
  margin: 0 0 10px; font-size: 13px; font-weight: 700;
  color: var(--ink-700); letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.doc-section h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(0,0,0,.12); }
.param-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 540px; }
.param-table th { text-align: left; padding: 10px 14px; background: rgba(255,255,255,0.035); color: var(--ink-500); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.param-table td { padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--ink-700); vertical-align: top; }
.param-table tr:last-child td { border-bottom: 0; }
.param-table code { font-family: var(--mono); font-size: 12px; color: #dbe1ec; background: rgba(255,255,255,.10); padding: 1px 7px; border-radius: 6px; }
.param-table .req, .param-table .opt { display: inline-block; padding: 1px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.param-table .req { background: var(--red-soft); color: var(--red); }
.param-table .opt { background: rgba(255,255,255,.08); color: var(--ink-400); }

.code-block {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  padding: 15px 17px; margin: 0;
  background: #0a0d14; color: #cdd7f5;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md); overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
.code-block .j-key { color: #7db1ff; }
.code-block .j-str { color: #8ee6b0; }
.code-block .j-num { color: #ffc078; }
.code-block .j-kw { color: #ff8fa3; }
.code-hint { color: #5c6a8c; }
.code-block .j-err { color: #ff8f8f; }
.resp-text { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; background: #0a0d14; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--r-md); padding: 15px 17px; margin: 0; color: var(--ink-700); }
.j-err { color: var(--red); }
.resp-more { margin-top: 10px; padding: 10px 14px; font-size: 12.5px; background: var(--accent-soft); color: var(--ink-700); border-radius: var(--r-md); cursor: pointer; text-align: center; transition: all .2s var(--ease-ios); }
.resp-more:hover { background: rgba(255,255,255,.16); color: #fff; }
.resp-more-btn { color: var(--accent); }

.doc-image-example { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; background: rgba(0,0,0,.15); }
.doc-image-example img { border-radius: var(--r-sm); display: block; max-height: 260px; margin: 0 auto; }
.api-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 70%);
}
.api-actions-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-500);
}
.api-actions-hint svg { color: var(--ink-400); }

/* 「在线调试」—— 现代悬浮渐变按钮 */
.btn-try {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px 0 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #e6eaf1 100%);
  color: #0f1218;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 2px 4px rgba(0,0,0,0.25),
    0 10px 24px rgba(0,0,0,0.30);
  transition: transform .22s var(--ease-ios), box-shadow .22s var(--ease-ios), filter .22s var(--ease-ios);
  overflow: hidden;
  white-space: nowrap;
}
.btn-try::after {
  content: "";
  position: absolute;
  top: 0; left: -55%;
  width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.85), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-try:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.3),
    0 16px 36px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,255,255,0.35);
}
.btn-try:hover::after { animation: try-shine 0.9s var(--ease-ios); }
@keyframes try-shine { 0% { left: -55%; } 100% { left: 130%; } }
.btn-try:active { transform: translateY(1px) scale(0.97); box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.btn-try:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }

.btn-try-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d0f14 0%, #2a2f3a 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform .24s var(--ease-ios);
}
.btn-try:hover .btn-try-ico { transform: scale(1.08); }
.btn-try-label { transition: letter-spacing .2s var(--ease-ios); }
.btn-try:hover .btn-try-label { letter-spacing: .04em; }
.btn-try-arrow {
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
  color: #0f1218;
  opacity: .45;
  transform: translateX(0);
  transition: opacity .22s var(--ease-ios), transform .22s var(--ease-ios);
}
.btn-try:hover .btn-try-arrow { opacity: 1; transform: translateX(4px); }
.api-empty { text-align: center; padding: 70px 20px; }
.api-empty-icon { font-size: 44px; margin-bottom: 12px; }
.api-empty-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--ink-900); }
.api-empty-sub { color: var(--ink-400); font-size: 13.5px; }

/* ---------- 图片响应 ---------- */
.image-response { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.image-response-stage { background: rgba(0,0,0,.18); padding: 14px; display: flex; justify-content: center; }
.image-response-preview { max-width: 100%; max-height: 60vh; border-radius: var(--r-sm); box-shadow: var(--shadow-soft); }
.image-response-footer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.image-response-meta { flex: 1; min-width: 0; }
.image-response-meta strong { display: block; font-size: 13px; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-response-meta span { font-size: 11.5px; color: var(--ink-400); }

/* ---------- KV 表单 ---------- */
.kv-form { display: flex; flex-direction: column; gap: 8px; }
.kv-row { display: flex; align-items: center; gap: 8px; }
.kv-check { display: inline-flex; align-items: center; flex: 0 0 auto; }
.kv-check input { position: absolute; opacity: 0; pointer-events: none; }
.kv-check i { width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 6px; background: rgba(255,255,255,0.05); cursor: pointer; font-style: normal; transition: all .18s var(--ease-ios); }
.kv-check i::after { content: "✓"; font-size: 12px; color: #11141a; font-weight: 800; opacity: 0; transform: scale(.5); transition: all .18s var(--ease-ios); }
.kv-check input:checked + i { background: #eef0f4; border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.kv-check input:checked + i::after { opacity: 1; transform: scale(1); }
.kv-check input:disabled + i { opacity: .4; cursor: not-allowed; }
.kv-key, .kv-val {
  height: 40px; padding: 0 12px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255,255,255,0.045); color: var(--ink-900); outline: none;
  transition: all .18s var(--ease-ios);
}
.kv-key { flex: 1 1 34%; min-width: 90px; font-family: var(--mono); font-size: 12.5px; }
.kv-val { flex: 1 1 60%; min-width: 130px; }
.kv-key:focus, .kv-val:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.10); background: rgba(255,255,255,.07); }
.kv-key[readonly] { background: rgba(255,255,255,0.02); color: var(--ink-400); border-style: dashed; }
.kv-val.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.kv-add { align-self: flex-start; height: 30px; padding: 0 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-pill); background: transparent; color: var(--ink-400); font: inherit; font-size: 12.5px; cursor: pointer; transition: all .18s var(--ease-ios); }
.kv-add:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Playground 弹层 ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(3, 5, 9, 0.66); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-ios); }
.modal-scrim.is-show { opacity: 1; pointer-events: auto; }

.playground {
  position: fixed; z-index: 110;
  top: auto; bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(24px);
  width: min(96vw, 1120px); max-height: 92vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #171b26 0%, #12151f 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: transform .34s var(--ease-ios), opacity .3s var(--ease-ios);
  overflow: hidden;
}
.playground.is-show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
@media (min-width: 780px) {
  .playground { top: 50%; bottom: auto; transform: translate(-50%, calc(-50% + 16px)); border-radius: var(--r-xl); }
  .playground.is-show { transform: translate(-50%, -50%); }
}
.pg-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.pg-title-group { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pg-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-url-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px 0; }
.pg-url { flex: 1; min-width: 0; height: 42px; padding: 0 14px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-700); background: rgba(255,255,255,0.045); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; min-height: 0; overflow: auto; }
@media (min-width: 960px) {
  .pg-body { flex-direction: row; align-items: stretch; }
  .pg-body > .pg-panel { flex: 1; min-width: 0; }
  .pg-response { max-height: 58vh; }
}
.pg-panel { display: flex; flex-direction: column; min-height: 0; }
.pg-tabs { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: var(--r-md); align-self: flex-start; }
.pg-tab { height: 31px; padding: 0 15px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-500); cursor: pointer; transition: all .18s var(--ease-ios); }
.pg-tab.is-active { background: var(--accent-grad); color: #11141a; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.pg-tabpanes { flex: 1; min-height: 0; overflow-y: auto; }
.pg-pane { display: none; }
.pg-pane.is-active { display: block; }
.pane-empty { padding: 26px 14px; text-align: center; color: var(--ink-400); font-size: 13px; background: rgba(255,255,255,0.02); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.body-json { width: 100%; min-height: 130px; padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-900); background: rgba(255,255,255,0.045); border: 1px solid var(--line); border-radius: var(--r-md); resize: vertical; outline: none; }
.body-json:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.10); background: rgba(255,255,255,.07); }

.pg-response { border: 1px solid var(--line); border-radius: var(--r-md); background: #0b0e15; overflow: auto; }
.pg-resp-meta { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); border-radius: var(--r-md) var(--r-md) 0 0; position: sticky; top: 0; z-index: 1; }
.pg-response .code-block, .pg-response .resp-text { border-radius: 0; background: #0b0e15; border: 0; }
.pg-response > * { margin: 0; }
.pg-response .image-response { margin: 0; border: 0; border-radius: 0; }
.status-chip { display: inline-flex; align-items: center; height: 25px; padding: 0 12px; border-radius: var(--r-pill); font-family: var(--mono); font-size: 12px; font-weight: 800; }
.status-chip.ok { background: rgba(255,255,255,.12); color: #eef1f6; }
.status-chip.warn { background: rgba(255,255,255,.20); color: #ffffff; }
.status-chip.err { background: var(--red-soft); color: #ffb3b3; }
.took { font-size: 12px; color: var(--ink-400); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 220;
  transform: translate(-50%, 12px);
  max-width: min(92vw, 480px);
  padding: 12px 22px;
  background: rgba(28, 33, 47, 0.96);
  border: 1px solid var(--line-strong);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease-ios), transform .26s var(--ease-ios);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: rgba(190, 44, 44, 0.92); border-color: rgba(255,107,107,.3); }

/* ============================================================
   后台
   ============================================================ */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: min(92vw, 410px);
  padding: 38px 32px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255,255,255,.06);
  animation: rise-in .5s var(--ease-ios) both;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.login-logo img { width: 70px; height: 70px; border-radius: 22px; object-fit: cover; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.login-title { margin: 0 0 4px; text-align: center; font-size: 21px; font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.login-sub { margin: 0 0 26px; text-align: center; color: var(--ink-400); font-size: 13px; }

.admin-view { max-width: 1120px; margin: 0 auto; padding: 24px 16px calc(56px + env(safe-area-inset-bottom)); }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ghost-link { font-size: 13px; font-weight: 600; color: var(--ink-500); padding: 8px 6px; border-radius: var(--r-sm); transition: color .18s; }
.ghost-link:hover { color: var(--accent); }

.admin-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; margin: 2px 0 0;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.admin-tab {
  height: 35px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: transparent; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-500); cursor: pointer;
  transition: all .22s var(--ease-ios);
}
.admin-tab:hover { color: var(--ink-900); }
.admin-tab.is-active { color: #11141a; background: var(--accent-grad); box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.55); }

.admin-main { margin-top: 20px; }
.admin-section { display: none; animation: rise-in .35s var(--ease-ios) both; }
.admin-section.is-active { display: block; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.panel-card { padding: 24px; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  transition: all .22s var(--ease-ios);
}
.admin-row:hover { border-color: rgba(255,255,255,.28); box-shadow: var(--shadow-float), 0 0 0 1px rgba(255,255,255,.06); transform: translateY(-1px); }
.admin-row .row-main { flex: 1; min-width: 0; }
.admin-row .row-main strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row .row-sub { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-400); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.admin-empty { text-align: center; padding: 48px 20px; color: var(--ink-400); background: rgba(255,255,255,0.02); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); font-size: 13.5px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 15px; min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--ink-700); }
.field label .req-star { color: var(--red); font-weight: 800; }
.field input[type="text"], .field input[type="password"], .field input[type="url"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; padding: 0 14px;
  font: inherit; font-size: 14px; color: var(--ink-900);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line); border-radius: var(--r-md);
  outline: none;
  transition: all .2s var(--ease-ios);
}
.field input[type="text"], .field input[type="password"], .field input[type="url"], .field input[type="number"], .field select { height: 43px; }
.field textarea { padding: 11px 14px; resize: vertical; min-height: 78px; line-height: 1.6; }
.field textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.10); background: rgba(255,255,255,.07); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field select option { background: var(--bg-3); color: var(--ink-900); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 130px; }
.field-row .field.grow { flex: 3; min-width: 220px; }
.mono { font-family: var(--mono); }

/* ---------- 后台 Modal ---------- */
.modal {
  position: fixed; z-index: 110; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 14px)) scale(.98);
  width: min(94vw, 580px); max-height: 90vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #181c28 0%, #12151f 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: all .28s var(--ease-ios);
}
.modal.is-show { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.modal-lg { width: min(96vw, 860px); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { flex: 1; margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink-900); }
.modal-body { padding: 18px 20px; overflow-y: auto; min-height: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* ---------- 参数编辑器(后台) ---------- */
.edit-kv { display: flex; flex-direction: column; gap: 8px; }
.ekv-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ekv-name { height: 37px; padding: 0 10px; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,0.045); flex: 1 1 120px; outline: none; color: var(--ink-900); }
.ekv-type { height: 37px; padding: 0 8px; font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-3); color: var(--ink-700); outline: none; }
.ekv-default, .ekv-desc { height: 37px; padding: 0 10px; font-size: 12.5px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,0.045); flex: 1 1 110px; min-width: 90px; outline: none; color: var(--ink-900); }
.ekv-name:focus, .ekv-type:focus, .ekv-default:focus, .ekv-desc:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 3px rgba(255,255,255,.10); }
.ekv-req { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-500); cursor: pointer; flex: 0 0 auto; user-select: none; }
.ekv-req input { accent-color: var(--accent); }
.ekv-add { align-self: flex-start; }

/* 友链图标预览 + 列表行图标 */
.admin-fav-preview {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-size: 18px; font-weight: 700; color: var(--accent);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid var(--line-strong); border-radius: 13px; overflow: hidden;
}
.admin-fav-preview img, .row-fav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.admin-fav-preview .fav-char, .row-fav .fav-char { position: relative; z-index: 0; }
.row-fav {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 auto;
  font-size: 17px; font-weight: 700; color: var(--accent);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid var(--line); border-radius: 13px; overflow: hidden;
}

/* ============================================================
   友情链接独立页 (小无友情链接网站)
   ============================================================ */
.fl-page { min-height: 100vh; display: flex; flex-direction: column; max-width: 1220px; margin: 0 auto; padding: 0 18px calc(60px + env(safe-area-inset-bottom)); }
.fl-nav { display: flex; align-items: center; gap: 8px; padding: 18px 0 6px; }
.fl-back {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.045); color: var(--ink-500);
  font-size: 12.5px; font-weight: 600;
  transition: all .22s var(--ease-ios);
}
.fl-back:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); transform: translateX(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.3); }

.fl-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 16px 40px; }
.fl-avatar {
  width: 96px; height: 96px;
  border-radius: 30px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 24px 56px rgba(0,0,0,.5);
  margin-bottom: 20px;
  background: var(--bg-2);
}
.fl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-title { margin: 0 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink-900); }
.fl-sub { margin: 0; color: var(--ink-400); font-size: 14px; }
.fl-count {
  display: inline-flex; margin-top: 15px;
  height: 27px; padding: 0 15px; align-items: center;
  color: #11141a; background: var(--accent-grad);
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.55);
}

.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; margin-top: 8px; }
.fl-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 17px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  color: var(--ink-900);
  transition: all .24s var(--ease-ios);
  animation: rise-in .5s var(--ease-ios) both;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.fl-card::after {
  content: "↗"; position: absolute; right: 13px; bottom: 7px;
  font-size: 13px; color: var(--ink-300);
  transition: all .22s var(--ease-ios);
}
.fl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.4);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(255,255,255,.08), 0 12px 32px rgba(0,0,0,.4);
}
.fl-card:hover::after { color: var(--accent); transform: translate(3px, -3px); }
.fl-card:active { transform: scale(.985); }
.fl-icon { position: relative; width: 50px; height: 50px; flex: 0 0 auto; border-radius: 15px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.fl-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.fl-icon .fl-initial { font-size: 20px; font-weight: 800; color: #eef1f6; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.fl-body { flex: 1; min-width: 0; }
.fl-name { display: block; font-size: 15px; font-weight: 700; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-desc { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--ink-400); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-empty { grid-column: 1 / -1; text-align: center; padding: 76px 20px; color: var(--ink-400); background: rgba(255,255,255,0.02); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.fl-empty .fl-empty-icon { font-size: 38px; display: block; margin-bottom: 10px; }
.fl-footer { margin-top: 48px; text-align: center; color: var(--ink-300); font-size: 12px; }

/* ============================================================
   桌面：左侧常驻侧栏；移动：三条杠抽屉
   ============================================================ */
@media (min-width: 900px) {
  body { font-size: 15px; }
  .topbar { padding: 0 24px; }
  .nav-toggle, .nav-scrim { display: none; }
  .search-wrap { max-width: 480px; margin: 0 auto; }
  .layout { padding: 26px 24px 60px; }
  .sidebar {
    position: sticky; top: calc(var(--topbar-h) + 18px);
    align-self: flex-start;
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    max-height: calc(100dvh - var(--topbar-h) - 40px);
    transform: none;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .sidebar .menu-list { margin-top: 2px; }
  .admin-view .topbar { flex-wrap: nowrap; }
  .admin-tabs { order: 0; width: auto; flex: 0 0 auto; margin: 0 auto; }
}
@media (max-width: 899px) {
  .brand-name { font-size: 15.5px; }
  .tier-tabs { width: 100%; justify-content: center; }
  .tier-tab { flex: 1; justify-content: center; padding: 0 10px; }
  .fl-hero { padding-top: 38px; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 10px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .fl-grid { grid-template-columns: 1fr; }
  .fl-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
