/* ═════════════════════════════════════════════════════════════
   万竞鸿达律师事务所 · 法律知识库独立站
   设计体系：iOS 26 液态玻璃（Liquid Glass）· 浅色模式
   原则：重磨砂玻璃 / 缓慢漂移柔光斑 / 弹性微交互 / 大留白
   颜色极克制：藏蓝只用于主按钮与选中态
   ═════════════════════════════════════════════════════════════ */

:root {
  /* 文字层级 */
  --ink: #1b2532;          /* 一级文字 */
  --ink-2: #50616f;        /* 二级文字 */
  --ink-3: #8b9aa9;        /* 弱化提示 */

  /* 品牌藏蓝：仅主按钮 / 选中态 / 编号点缀 */
  --navy: #1e4e8c;
  --navy-strong: #16396b;
  --navy-glow: rgba(30, 78, 140, .28);
  --navy-soft: rgba(30, 78, 140, .07);

  --danger: #bf3f2c;
  --ok: #2f7d4f;
  --warn: #b0791f;

  /* 圆角 */
  --r-xl: 24px;
  --r-l: 20px;
  --r-m: 16px;
  --r-s: 12px;

  /* 动效曲线：弹性回弹 + 平滑减速 */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* 玻璃材质 */
  --glass-bg: linear-gradient(165deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .46));
  --glass-bg-strong: linear-gradient(165deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .62));
  --glass-blur: blur(30px) saturate(175%);
  --glass-blur-lite: blur(16px) saturate(150%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .24);
  --glass-shadow: 0 16px 44px rgba(23, 48, 86, .10), 0 2px 8px rgba(23, 48, 86, .04);
  --glass-shadow-sm: 0 8px 24px rgba(23, 48, 86, .08), 0 1px 3px rgba(23, 48, 86, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f2f5f9 0%, #edf1f7 45%, #e9eef6 100%);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--navy); text-decoration: none; }

/* ── 背景柔光斑：藏蓝 + 浅蓝，缓慢漂移，玻璃层可透见 ───── */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.orb-a {
  width: 64vmax; height: 64vmax;
  left: -18vmax; top: -24vmax;
  background: radial-gradient(circle, rgba(30, 78, 140, .17) 0%, rgba(30, 78, 140, .06) 42%, rgba(30, 78, 140, 0) 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 58vmax; height: 58vmax;
  right: -20vmax; bottom: -22vmax;
  background: radial-gradient(circle, rgba(108, 165, 235, .22) 0%, rgba(108, 165, 235, .08) 45%, rgba(108, 165, 235, 0) 70%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.orb-c {
  width: 30vmax; height: 30vmax;
  left: 52%; top: 34%;
  background: radial-gradient(circle, rgba(30, 78, 140, .07) 0%, rgba(30, 78, 140, 0) 70%);
  animation: drift-c 41s ease-in-out infinite alternate;
}
@keyframes drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(9vmax, 7vmax, 0) scale(1.08); }
  100% { transform: translate3d(3vmax, 12vmax, 0) scale(.96); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-8vmax, -6vmax, 0) scale(1.1); }
  100% { transform: translate3d(-13vmax, -2vmax, 0) scale(.94); }
}
@keyframes drift-c {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-10vmax, 6vmax, 0); }
}

/* ── 玻璃基元 ─────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: var(--r-l);
  box-shadow: var(--glass-edge), var(--glass-shadow);
}
.glass-strong {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--r-l);
  box-shadow: var(--glass-edge), var(--glass-shadow);
}
.glass-lite {
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: var(--glass-blur-lite);
  backdrop-filter: var(--glass-blur-lite);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--r-m);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), var(--glass-shadow-sm);
}

/* ── 入场动效：卡片浮现滑入（弹性） ────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: rise .55s var(--ease-out) both; }
.rise-1 { animation-delay: .04s; }
.rise-2 { animation-delay: .10s; }
.rise-3 { animation-delay: .16s; }
.rise-4 { animation-delay: .22s; }
.rise-5 { animation-delay: .28s; }

/* ── 布局骨架 ─────────────────────────────────────────── */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding: 22px 0 48px; }

/* ── 顶栏：悬浮玻璃条 ─────────────────────────────────── */
.topbar {
  position: sticky; top: 12px; z-index: 30;
  margin: 12px auto 0;
  width: calc(100% - 24px);
  max-width: 1080px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-radius: 18px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .brand img { height: 26px; width: auto; display: block; }
.topbar .brand .sub {
  font-size: 13px; color: var(--ink-2); letter-spacing: .5px;
  padding-left: 10px; border-left: 1px solid rgba(28, 45, 70, .12);
  white-space: nowrap;
}
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.topbar .links { display: flex; align-items: center; gap: 4px; }
.top-link {
  font-size: 13px; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px;
  transition: background .25s, color .2s, transform .3s var(--spring);
}
.top-link:hover { background: rgba(255, 255, 255, .6); color: var(--navy); }
.top-link:active { transform: scale(.94); }
.top-link.admin { color: var(--navy); font-weight: 600; }

/* ── 页脚 ────────────────────────────────────────────── */
.foot {
  text-align: center; color: var(--ink-3);
  font-size: 12px; padding: 20px 16px calc(34px + env(safe-area-inset-bottom));
  letter-spacing: .4px;
}
.foot .law { margin-top: 4px; font-size: 11px; color: #a5b2bf; }

/* ── 按钮 ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer; user-select: none;
  padding: 11px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .3px;
  transition: transform .35s var(--spring), box-shadow .3s, background .25s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.94) translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2c60a8 0%, var(--navy) 100%);
  box-shadow: 0 10px 24px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:active { transform: scale(.95) translateY(1px); box-shadow: 0 4px 12px var(--navy-glow); }
.btn-glass {
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: var(--glass-blur-lite);
  backdrop-filter: var(--glass-blur-lite);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 14px rgba(23, 48, 86, .07);
}
.btn-glass:hover { background: rgba(255, 255, 255, .8); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 9px 14px; }
.btn-ghost:hover { color: var(--navy); background: rgba(255, 255, 255, .5); }
.btn-danger-ghost { background: transparent; color: var(--danger); padding: 8px 12px; font-size: 13px; }
.btn-danger-ghost:hover { background: rgba(191, 63, 44, .07); }
.btn-mini { padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn-sm-ok { background: rgba(47, 125, 79, .1); color: var(--ok); padding: 8px 12px; font-size: 13px; }

/* ── 输入控件 ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field input[type="password"],
.field input[type="number"], .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(28, 45, 70, .1);
  background: rgba(255, 255, 255, .58);
  outline: none;
  transition: border-color .2s, box-shadow .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(30, 78, 140, .42);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 4px rgba(30, 78, 140, .1), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.field input::placeholder, .field textarea::placeholder { color: #a8b4c0; }
.hint { font-size: 12px; color: var(--ink-3); }
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }

/* ── 分面 chips（选中态 = 藏蓝） ──────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(28, 45, 70, .09);
  background: rgba(255, 255, 255, .52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
  transition: all .3s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: rgba(255, 255, 255, .85); transform: translateY(-1px); }
.chip:active { transform: scale(.93); }
.chip .n { font-size: 11px; color: var(--ink-3); }
.chip.on {
  background: linear-gradient(180deg, #2c60a8, var(--navy));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.chip.on .n { color: rgba(255, 255, 255, .72); }
.facet-group { margin-bottom: 14px; }
.facet-group .t {
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  letter-spacing: 1.5px; margin-bottom: 8px;
}

/* ── 徽标 / 状态 ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  letter-spacing: .3px; white-space: nowrap;
}
.badge-navy { background: var(--navy-soft); color: var(--navy); }
.badge-gray { background: rgba(28, 45, 70, .06); color: var(--ink-3); }
.badge-ok { background: rgba(47, 125, 79, .1); color: var(--ok); }
.badge-warn { background: rgba(176, 121, 31, .12); color: var(--warn); }
.badge-danger { background: rgba(191, 63, 44, .08); color: var(--danger); }
.stars-readonly { color: var(--navy); font-size: 13px; letter-spacing: 2px; }
.stars-readonly .off { color: rgba(28, 45, 70, .15); }

/* ── 弹层 / 抽屉 ─────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18, 28, 44, .32);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  backdrop-filter: blur(7px) saturate(120%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .28s ease-out both;
}
@keyframes fade { from { opacity: 0; } }
.overlay.sheet-mode { align-items: flex-end; padding: 0; }
.sheet {
  width: 100%; max-width: 460px;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  animation: pop .5s var(--spring) both;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}
.overlay.sheet-mode .sheet {
  max-width: 560px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  animation: slide-up .5s var(--spring) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(16px); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(60px); } }
.sheet h3 { margin: 0 0 6px; font-size: 18px; }
.sheet .sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-2); }
.sheet-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(28, 45, 70, .06);
  color: var(--ink-2); cursor: pointer; font-size: 15px;
  transition: all .3s var(--spring);
}
.sheet-close:hover { background: rgba(28, 45, 70, .12); transform: rotate(90deg); }

/* ── 轻提示 toast ────────────────────────────────────── */
.toast {
  position: fixed; top: 18px; left: 50%; z-index: 90;
  transform: translateX(-50%);
  background: rgba(27, 37, 50, .82);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  color: #fff; font-size: 13.5px;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(23, 48, 86, .25), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: toast-in .45s var(--spring) both;
  max-width: 84vw; text-align: center;
}
.toast.out { animation: toast-out .3s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -16px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -12px) scale(.94); } }

/* ── 空状态 / 加载 ───────────────────────────────────── */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-2); }
.empty .ico { font-size: 34px; margin-bottom: 10px; }
.empty .t1 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.empty .t2 { font-size: 13px; color: var(--ink-3); }
.loading { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 34px; color: var(--ink-3); font-size: 13px; }
.loading i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy); opacity: .35;
  animation: pulse 1.1s ease-in-out infinite;
}
.loading i:nth-child(2) { animation-delay: .18s; }
.loading i:nth-child(3) { animation-delay: .36s; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* ═══════════ 登录页 ═══════════ */
.page-login { display: flex; flex-direction: column; min-height: 100vh; position: relative; z-index: 1; }
.login-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 36px 20px 20px;
}
.login-logo { height: 38px; width: auto; margin-bottom: 20px; animation: rise .7s var(--ease-out) both; }
.login-title {
  font-size: 24px; font-weight: 700; letter-spacing: 6px; margin: 0 0 6px;
  animation: rise .7s var(--ease-out) .08s both;
}
.login-sub {
  font-size: 13px; color: var(--ink-3); letter-spacing: 1px; margin: 0 0 30px;
  animation: rise .7s var(--ease-out) .14s both;
}
.login-card {
  width: 100%; max-width: 390px;
  padding: 30px 26px 26px;
  display: flex; flex-direction: column; gap: 16px;
  animation: rise .7s var(--ease-out) .2s both;
}
.login-card .btn { margin-top: 6px; padding: 13px; font-size: 15px; letter-spacing: 8px; text-indent: 8px; }
.login-tip { margin: 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.login-foot { text-align: center; color: var(--ink-3); font-size: 12px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }

/* ── 登录页双标签（密码 / 短信验证码），样式沿用 .tab 胶囊口径 ── */
.login-tabs { display: flex; gap: 8px; margin: -4px 0 2px; }
.login-tab {
  flex: 1; padding: 9px 0; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .4);
  transition: all .3s var(--spring);
}
.login-tab:hover { background: rgba(255, 255, 255, .75); }
.login-tab.on {
  color: #fff; background: linear-gradient(180deg, #2c60a8, var(--navy));
  box-shadow: 0 8px 20px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
  border-color: transparent;
}
.login-pane { display: flex; flex-direction: column; gap: 16px; animation: rise .4s var(--ease-out) both; }
/* 验证码行：输入框 + 获取验证码按钮 */
.sms-row { display: flex; gap: 8px; align-items: stretch; }
.sms-row input { flex: 1; min-width: 0; }
.login-card .sms-row .btn {
  flex: none; margin-top: 0; padding: 12px 16px;
  font-size: 13.5px; letter-spacing: 0; text-indent: 0; white-space: nowrap;
}

/* ═══════════ 检索页 ═══════════ */
/* 库切换卡片 */
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.lib-card {
  padding: 18px 18px 16px;
  cursor: default;
  position: relative;
  transition: transform .4s var(--spring), box-shadow .3s;
}
.lib-card.on { cursor: pointer; }
.lib-card.on:hover { transform: translateY(-3px); }
.lib-card .no {
  font-size: 13px; font-weight: 700; color: var(--navy);
  letter-spacing: 2px; margin-bottom: 8px;
}
.lib-card.off .no { color: var(--ink-3); }
.lib-card .nm { font-size: 16.5px; font-weight: 700; margin-bottom: 3px; }
.lib-card .ds { font-size: 12.5px; color: var(--ink-2); }
.lib-card.off { opacity: .75; }
.lib-card.off .nm { color: var(--ink-2); }
.lib-card .st { position: absolute; top: 16px; right: 16px; }

/* 检索主卡 */
.search-panel { padding: 20px; margin-bottom: 18px; }
.searchbar { display: flex; gap: 10px; }
.searchbar .field { flex: 1; }
.searchbar .btn { flex: none; align-self: stretch; padding: 0 26px; }
.adv { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(28, 45, 70, .1); }
.adv-head {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; padding: 2px 0;
}
.adv-head .t { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.adv-head .arr { font-size: 12px; color: var(--ink-3); transition: transform .35s var(--spring); }
.adv.open .adv-head .arr { transform: rotate(180deg); }
.adv-body { display: none; padding-top: 14px; }
.adv.open .adv-body { display: block; animation: rise .4s var(--ease-out) both; }
.year-row { display: flex; align-items: center; gap: 8px; }
.year-row input {
  width: 96px; text-align: center;
  padding: 9px 8px; border-radius: 12px;
  border: 1px solid rgba(28, 45, 70, .1);
  background: rgba(255, 255, 255, .58);
  outline: none;
  transition: border-color .2s, box-shadow .3s, background .3s;
}
.year-row input:focus { border-color: rgba(30, 78, 140, .42); background: rgba(255, 255, 255, .88); box-shadow: 0 0 0 4px rgba(30, 78, 140, .1); }
.year-row .sep { color: var(--ink-3); font-size: 13px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(28, 45, 70, .05); gap: 2px; }
.seg button {
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--ink-2);
  padding: 6px 16px; border-radius: 999px;
  transition: all .3s var(--spring);
}
.seg button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 2px 8px rgba(23, 48, 86, .1); }

/* 结果区 */
.result-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 2px 12px; flex-wrap: wrap; }
.result-head .num { font-size: 15px; color: var(--ink-2); }
.result-head .num b { color: var(--navy); font-size: 18px; font-weight: 700; }
.result-head .kw-tip { font-size: 12.5px; color: var(--ink-3); }
.doc-card {
  padding: 16px 18px; margin-bottom: 12px;
  cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .3s, background .3s;
}
.doc-card:hover { transform: translateY(-2px); background: var(--glass-bg-strong); }
.doc-card:active { transform: scale(.99); }
.doc-card .case-no {
  font-size: 15.5px; font-weight: 700; color: var(--navy);
  margin-bottom: 5px; word-break: break-all;
}
.doc-card .court { font-size: 13.5px; color: var(--ink); margin-bottom: 8px; }
.doc-card .court .date { color: var(--ink-3); margin-left: 10px; font-size: 12.5px; }
.doc-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-card .tag {
  font-size: 11.5px; color: var(--ink-2);
  background: rgba(28, 45, 70, .05);
  padding: 3px 9px; border-radius: 8px;
}
.doc-card .tag.hl { background: var(--navy-soft); color: var(--navy); }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 0 6px; }
.pager .info { font-size: 13px; color: var(--ink-3); }
.pager .info b { color: var(--navy); }

/* 全文视图 */
.doc-view {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column;
  background: rgba(240, 243, 248, .82);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  animation: fade .25s ease-out both;
}
.doc-view-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top));
}
.doc-view-bar .t { flex: 1; font-size: 14.5px; font-weight: 700; color: var(--navy); word-break: break-all; }
.doc-view-body { flex: 1; overflow-y: auto; padding: 0 16px 30px; }
.doc-view-inner { max-width: 860px; margin: 0 auto; padding: 22px 22px 30px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.doc-text {
  font-size: 14.5px; line-height: 1.95; color: var(--ink);
  white-space: pre-wrap; word-break: break-all;
  font-family: inherit;
  margin: 0;
}
/* 【P1-1】原始为 HTML 的文书：服务端已剥离标签转纯文本，
   前端按段落渲染（逐行 <p>，全部先转义），段落式排版贴近原版式 */
.doc-text-para { white-space: normal; }
.doc-text-para p {
  margin: 0 0 .85em;
  text-indent: 0;
}
.doc-text-para p:last-child { margin-bottom: 0; }
.doc-trunc { margin-top: 16px; font-size: 12.5px; color: var(--warn); }

/* ═══════════ 管理控制台 ═══════════ */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  padding: 9px 20px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .4);
  transition: all .3s var(--spring);
}
.tab:hover { background: rgba(255, 255, 255, .75); }
.tab.on {
  color: #fff; background: linear-gradient(180deg, #2c60a8, var(--navy));
  box-shadow: 0 8px 20px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
  border-color: transparent;
}
.panel { padding: 20px; margin-bottom: 18px; }
.panel-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.panel-sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; }

.acc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  transition: transform .3s var(--spring), background .3s;
}
.acc-card:hover { background: var(--glass-bg-strong); }
.acc-card .main-info { flex: 1; min-width: 0; }
.acc-card .nm { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-card .meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.acc-card .ops { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.fb-card { padding: 16px 18px; margin-bottom: 12px; }
.fb-card .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fb-card .who { font-weight: 600; font-size: 14px; }
.fb-card .time { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.fb-card .msg { font-size: 14px; color: var(--ink); margin: 6px 0; white-space: pre-wrap; word-break: break-all; }
.fb-card .ctx { font-size: 12px; color: var(--ink-3); background: rgba(28, 45, 70, .04); border-radius: 10px; padding: 8px 12px; margin-top: 8px; word-break: break-all; }

/* ═══════════ 反馈悬浮钮 + 面板 ═══════════ */
.fab {
  position: fixed; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(165deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 12px 32px rgba(23, 48, 86, .16), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .4s var(--spring), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 40px rgba(23, 48, 86, .2), inset 0 1px 0 rgba(255, 255, 255, .7); }
.fab:active { transform: scale(.86); }
.fab svg { width: 25px; height: 25px; display: block; }

.fb-panel { width: 100%; max-width: 430px; }
.fb-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.fb-steps i {
  flex: 1; height: 4px; border-radius: 4px;
  background: rgba(28, 45, 70, .1);
  transition: background .3s;
}
.fb-steps i.on { background: linear-gradient(90deg, #2c60a8, var(--navy)); }
.fb-step { animation: rise .4s var(--ease-out) both; }
.fb-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-scene {
  padding: 14px 12px; text-align: center;
  border-radius: var(--r-m);
  border: 1px solid rgba(28, 45, 70, .08);
  background: rgba(255, 255, 255, .5);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
  transition: all .3s var(--spring);
}
.fb-scene:hover { background: rgba(255, 255, 255, .85); transform: translateY(-1px); }
.fb-scene:active { transform: scale(.95); }
.fb-scene.on {
  background: linear-gradient(180deg, #2c60a8, var(--navy));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.stars { display: flex; justify-content: center; gap: 10px; padding: 12px 0 6px; }
.stars button {
  border: none; background: none; cursor: pointer; padding: 4px;
  font-size: 34px; line-height: 1;
  color: rgba(28, 45, 70, .16);
  transition: transform .35s var(--spring), color .18s;
}
.stars button.on { color: var(--navy); text-shadow: 0 4px 14px var(--navy-glow); }
.stars button:active { transform: scale(1.3) rotate(-8deg); }
.stars-tip { text-align: center; font-size: 12.5px; color: var(--ink-3); min-height: 20px; }
.fb-foot { display: flex; gap: 10px; margin-top: 18px; }
.fb-foot .btn { flex: 1; }

/* 提交成功水波感谢动效 */
.fb-done { text-align: center; padding: 26px 0 14px; position: relative; }
.fb-done .core {
  width: 76px; height: 76px; margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #2c60a8, var(--navy));
  box-shadow: 0 12px 32px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #fff; font-size: 34px;
  animation: pop .55s var(--spring) both;
  position: relative;
}
.fb-done .ring {
  position: absolute; left: 50%; top: 38px;
  width: 76px; height: 76px; margin-left: -38px; margin-top: -38px;
  border-radius: 50%;
  border: 2px solid rgba(30, 78, 140, .35);
  animation: ripple 1.5s ease-out forwards;
  pointer-events: none;
}
.fb-done .ring.r2 { animation-delay: .4s; }
.fb-done .ring.r3 { animation-delay: .8s; }
@keyframes ripple {
  from { transform: scale(.6); opacity: .9; }
  to   { transform: scale(2.6); opacity: 0; }
}
.fb-done .t1 { font-size: 17px; font-weight: 700; animation: rise .5s var(--ease-out) .15s both; }
.fb-done .t2 { font-size: 13px; color: var(--ink-3); margin-top: 4px; animation: rise .5s var(--ease-out) .25s both; }

/* ── 桌面端微调 ───────────────────────────────────────── */
@media (min-width: 760px) {
  .topbar { padding: 12px 22px; }
  .topbar .brand img { height: 30px; }
  .main { padding-top: 28px; }
  .search-panel { padding: 24px; }
  .overlay.sheet-mode { align-items: center; padding: 20px; }
  .overlay.sheet-mode .sheet { border-radius: var(--r-xl); animation: pop .5s var(--spring) both; }
}

/* ── 小屏适配（移动端优先，此处兜底超窄屏） ─────────────── */
@media (max-width: 560px) {
  .lib-grid { grid-template-columns: 1fr; gap: 10px; }
  .lib-card { padding: 15px 16px 13px; }
  .searchbar { flex-direction: column; }
  .searchbar .btn { padding: 12px; }
  .form-row { flex-direction: column; gap: 12px; }
  .topbar .who { display: none; }
  .acc-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .acc-card .ops { justify-content: flex-start; }
  .doc-view-inner { padding: 16px 14px 26px; }
}

/* ── 弱动效偏好：降级 ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb-a, .orb-b, .orb-c { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════ 检索页增强：示例词轮播 / 引导卡片 / 快速筛选 / 怎么搜 ═══════════ */

/* 面板头 */
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head .panel-title { margin: 0 0 2px; }

/* 搜索框 + 示例词幽灵轮播 */
.kw-wrap { position: relative; }
.kw-wrap input { position: relative; z-index: 1; background: rgba(255, 255, 255, .62); }
.kw-ghost {
  position: absolute; z-index: 2;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  font-size: 14.5px; color: #9aa7b5;
  pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: calc(100% - 30px);
  opacity: 1;
  transition: opacity .45s ease, transform .45s ease;
}
.kw-ghost.swap { opacity: 0; transform: translateY(-30%); }
.kw-ghost.hide { display: none; }

/* 引导卡片 */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.guide-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 13px 14px;
  cursor: pointer;
  transition: transform .35s var(--spring), background .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.guide-card:hover { transform: translateY(-2px); background: var(--glass-bg-strong); }
.guide-card:active { transform: scale(.955); }
.guide-card.flash { box-shadow: 0 0 0 2px rgba(30, 78, 140, .35), var(--glass-shadow-sm); }
.guide-card .g-ico { color: var(--navy); margin-bottom: 4px; display: flex; }
.guide-card .g-ico svg { width: 21px; height: 21px; }
.guide-card .g-t { font-size: 13.5px; font-weight: 700; }
.guide-card .g-d { font-size: 11.5px; color: var(--ink-3); }

/* 快速筛选 */
.quick-filter { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(28, 45, 70, .1); }
.qf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.qf-head .t { font-size: 14px; font-weight: 700; }
.qf-head .spacer { flex: 1; }
.quick-filter .facet-group { margin-bottom: 12px; }

/* 年份 + 排序 工具行 */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 14px;
  border-top: 1px dashed rgba(28, 45, 70, .1);
}

/* 「怎么搜」帮助弹层：三屏图文引导 */
.help-screen { text-align: center; padding: 8px 6px 2px; animation: rise .4s var(--ease-out) both; }
.help-ico {
  width: 84px; height: 84px; margin: 6px auto 16px;
  border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, rgba(30, 78, 140, .12), rgba(108, 165, 235, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  color: var(--navy);
}
.help-ico svg { width: 42px; height: 42px; }
.help-screen .h-t { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.help-screen .h-d { font-size: 13.5px; color: var(--ink-2); margin: 0 auto; max-width: 300px; line-height: 1.7; }
.help-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.help-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(28, 45, 70, .15); transition: all .3s var(--spring); }
.help-dots i.on { background: var(--navy); width: 18px; border-radius: 4px; }
.help-nav { display: flex; gap: 10px; margin-top: 14px; }
.help-nav .btn { flex: 1; }

@media (max-width: 560px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-card:last-child { grid-column: 1 / -1; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .seg { align-self: center; }
}

/* ═══════════ 问句式搜索 / 在结果中搜索 / 数据分布 ═══════════ */

/* 问句入口面板：视觉权重最高 */
.ask-panel {
  margin-top: 16px;
  padding: 16px 16px 14px;
  border-radius: var(--r-m);
  background: linear-gradient(160deg, rgba(30, 78, 140, .075), rgba(108, 165, 235, .09) 55%, rgba(255, 255, 255, .35));
  border: 1px solid rgba(30, 78, 140, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 20px rgba(23, 48, 86, .06);
}
.ask-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ask-ico {
  flex: none; width: 38px; height: 38px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #2c60a8, var(--navy));
  box-shadow: 0 6px 16px var(--navy-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.ask-ico svg { width: 20px; height: 20px; }
.ask-title { font-size: 15px; font-weight: 700; }
.ask-sub { font-size: 12px; color: var(--ink-2); }
.ask-examples { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ask-ex {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 8px rgba(23, 48, 86, .05);
  font-size: 13.5px; color: var(--ink);
  cursor: pointer;
  transition: all .3s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.ask-ex:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .95); box-shadow: 0 6px 16px rgba(23, 48, 86, .09); }
.ask-ex:active { transform: scale(.97); }
.ask-tag {
  flex: none; font-size: 11px; color: var(--navy);
  background: var(--navy-soft);
  padding: 2px 8px; border-radius: 999px;
  font-weight: 600;
}

/* 问句回显横幅 */
.ask-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin: 0 0 14px;
  border-radius: var(--r-m);
  font-size: 13.5px; color: var(--ink-2);
  animation: rise .45s var(--ease-out) both;
}
.ask-banner b { color: var(--ink); font-weight: 600; }
.ask-banner .trans { color: var(--navy); }
.ask-banner .close-x {
  flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(28, 45, 70, .06); color: var(--ink-2);
  cursor: pointer; font-size: 13px;
  transition: all .3s var(--spring);
}
.ask-banner .close-x:hover { background: rgba(28, 45, 70, .12); transform: rotate(90deg); }

/* 在结果中搜索 */
.in-result-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin: 0 0 14px;
  border-radius: 999px;
  animation: rise .45s var(--ease-out) both;
}
.in-result-bar .ir-ico { flex: none; color: var(--navy); display: flex; margin-left: 6px; }
.in-result-bar .ir-ico svg { width: 17px; height: 17px; }
.in-result-bar input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--ink);
}
.in-result-bar input::placeholder { color: #a8b4c0; }

/* 数据分布面板 */
.dist-panel { margin: 0 0 18px; overflow: hidden; }
.dist-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; cursor: pointer; user-select: none;
}
.dist-head .t { font-size: 15px; font-weight: 700; }
.dist-head .arr { color: var(--ink-3); font-size: 12px; transition: transform .35s var(--spring); }
.dist-panel.open .dist-head .arr { transform: rotate(180deg); }
.dist-body { display: none; padding: 4px 18px 18px; }
.dist-panel.open .dist-body { display: block; animation: rise .4s var(--ease-out) both; }
.dist-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dist-block { min-width: 0; }
.dist-title {
  font-size: 12px; color: var(--ink-3); font-weight: 600;
  letter-spacing: 1.5px; margin: 10px 0 8px;
}
.dist-chart { display: block; width: 100%; height: auto; }
.dist-chart .bar { transition: opacity .2s; }
.dist-chart .bar:hover { opacity: .72; }
.dist-chart text { font-family: inherit; }

@media (min-width: 760px) {
  .ask-examples { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .dist-row { grid-template-columns: 1fr; }
  .in-result-bar { border-radius: 18px; }
}

/* ═══ 管理控制台表单 ═══ */
.input-group { display: flex; gap: 8px; align-items: center; }
.input-group input { flex: 1; }
.input-group .btn { flex: none; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; margin: 6px 0 4px; }
.check-line input { width: 16px; height: 16px; accent-color: var(--navy); }

/* ── 法规连生产 2026-09-05：法规结果卡片 ──────────────────
   关键词 <em> 高亮（引擎安全标记）+ 法规摘要两行截断 */
.wjs-card em { color: var(--navy, #1e4e8c); font-style: normal; font-weight: 600; }
.wjs-card .law-snip { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
