@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* =========================================================
   授权中心 · 设计系统「Ink & Amber / 墨黑 + 琥珀金」
   深墨色传递安全与权威，琥珀金作为唯一品牌点缀。
   ========================================================= */

:root {
  /* —— 墨色阶（结构主色） —— */
  --ink-900: oklch(19% 0.02 262);
  --ink-800: oklch(25% 0.025 262);
  --ink-700: oklch(31% 0.03 264);
  --ink-600: oklch(40% 0.03 264);

  /* —— 中性面（浅色主题） —— */
  --bg: oklch(98% 0.004 255);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(97% 0.005 255);
  --border: oklch(92% 0.006 255);
  --border-strong: oklch(86% 0.008 255);

  /* —— 文字 —— */
  --text: oklch(30% 0.02 262);
  --text-strong: oklch(21% 0.025 262);
  --muted: oklch(55% 0.02 262);

  /* —— 品牌点缀：琥珀金（仅 ~10% 用量） —— */
  --accent: oklch(66% 0.14 64);
  --accent-strong: oklch(58% 0.15 60);
  --accent-soft: oklch(96% 0.045 78);

  /* —— 语义色 —— */
  --success: oklch(56% 0.13 150);
  --success-soft: oklch(96% 0.045 150);
  --danger: oklch(57% 0.17 25);
  --danger-soft: oklch(96% 0.04 25);
  --warning: oklch(68% 0.13 75);
  --warning-soft: oklch(97% 0.05 82);
  --info: oklch(56% 0.11 240);
  --info-soft: oklch(96% 0.04 240);

  /* —— 圆角 —— */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* —— 阴影（墨色低饱和，非泛用灰） —— */
  --shadow-sm: 0 1px 2px oklch(20% 0.03 262 / 0.05), 0 1px 3px oklch(20% 0.03 262 / 0.04);
  --shadow-md: 0 4px 14px oklch(20% 0.03 262 / 0.08), 0 2px 6px oklch(20% 0.03 262 / 0.04);
  --shadow-lg: 0 28px 60px oklch(18% 0.04 262 / 0.30);

  /* —— 缓动（自然减速，拒绝回弹） —— */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.25, 1, 0.5, 1);

  /* —— 字体 —— */
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  /* 品牌盾形图标（mask 着色用） */
  --shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.6 8 8 11 4.4-3 8-6 8-11V5z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.2; letter-spacing: -0.01em; }

a { color: var(--ink-700); text-decoration: none; }
a:hover { color: var(--accent-strong); }

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-600); color: var(--text-strong); box-shadow: var(--shadow-sm); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.btn-primary { background: var(--ink-800); border-color: var(--ink-800); color: #fff; }
.btn-primary:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; box-shadow: var(--shadow-md); }
.btn-danger { color: var(--danger); border-color: oklch(80% 0.1 25); background: var(--surface); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: var(--shadow-sm); }
.btn-sm { padding: 6px 11px; font-size: 0.82rem; border-radius: var(--r-sm); }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* =========================================================
   表单
   ========================================================= */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; color: var(--text-strong); font-size: 0.86rem; }
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.form-control::placeholder { color: oklch(68% 0.02 262); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-control:hover { border-color: var(--ink-600); }
select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  color-scheme: dark;
  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='%23a9a6b8' 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;
  background-size: 14px;
}
select.form-control option { background: var(--surface-1); color: var(--text); padding: 8px 10px; }
/* 后台表单控件统一走深色方案：日期选择器 / 数字步进器 / 下拉面板均为深色 */
.admin-main .form-control { color-scheme: dark; }

/* 自定义下拉组件（替代原生 select，完全主题化，避免系统原生选项面板） */
.select { position: relative; width: 100%; }
.select-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-strong);
  text-align: left; cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.select-trigger:hover { border-color: var(--ink-600); }
.select-trigger.open,
.select-trigger:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-value.placeholder { color: var(--muted); }
.select-trigger svg { flex: none; color: var(--muted); transition: transform 0.18s var(--ease); }
.select-trigger.open svg { transform: rotate(180deg); }
.select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none; z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: 0 18px 40px -16px oklch(20% 0.03 262 / 0.28);
  max-height: 260px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.select-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.select-option {
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.92rem; color: var(--text);
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.select-option:hover { background: var(--surface-2); }
.select-option.selected { color: var(--accent-strong); font-weight: 600; }
.select-option.selected::after { content: "\2713"; float: right; font-weight: 700; }
textarea.form-control { resize: vertical; line-height: 1.6; }
.form-lg { padding: 15px 18px; font-size: 1.02rem; border-radius: var(--r); }

/* =========================================================
   状态徽章（带圆点，颜色非唯一指示）
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge-active   { background: var(--success-soft); color: var(--success); }
.badge-expired  { background: var(--danger-soft); color: var(--danger); }
.badge-disabled { background: oklch(95% 0.005 262); color: var(--muted); }
.badge-trial       { background: var(--warning-soft); color: var(--warning); }
.badge-permanent   { background: var(--accent-soft); color: var(--accent-strong); }
.badge-subscription{ background: var(--info-soft); color: var(--info); }

/* =========================================================
   前台（public）：授权查询
   ========================================================= */
.public-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  background: oklch(100% 0 0 / 0.8);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.brand-inline { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text-strong); letter-spacing: -0.01em; }
.brand-glyph {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: var(--shield) center / contain no-repeat;
  mask: var(--shield) center / contain no-repeat;
}
.public-top-link { font-weight: 600; font-size: 0.88rem; color: var(--ink-600); }
.public-top-link:hover { color: var(--accent-strong); }

.public-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) 20px 80px;
}
.public-hero { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 5px 13px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.public-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.public-hero p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; max-width: 46ch; margin-left: auto; margin-right: auto; }

.search-row-lg {
  display: flex;
  gap: 10px;
  margin: 30px auto 0;
  max-width: 560px;
}
.search-row-lg .form-control { flex: 1; box-shadow: var(--shadow-sm); }
.public-hint { margin-top: 14px; font-size: 0.84rem; color: var(--muted); }
.public-hint code { font-family: var(--font-display); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; color: var(--ink-700); }

.result-area { margin-top: 36px; }
.result-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: fade-up 0.45s var(--ease) both;
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.result-card h3 { font-size: 1.05rem; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-card h3 > span:first-child { font-family: var(--font-display); letter-spacing: 0.01em; }
.result-card .kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.result-card .kv:last-child { border-bottom: none; }
.result-card .kv .k { color: var(--muted); font-size: 0.88rem; flex-shrink: 0; }
.result-card .kv .v { font-weight: 600; color: var(--text-strong); text-align: right; font-variant-numeric: tabular-nums; }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
  animation: fade-up 0.45s var(--ease) both;
}
.empty-state .ico {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-600);
  font-size: 1.5rem;
}
.empty-state h3 { font-size: 1.05rem; color: var(--text-strong); margin-bottom: 6px; }
.empty-state p { font-size: 0.9rem; }

/* =========================================================
   后台（admin）：侧边栏布局
   ========================================================= */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  background: var(--ink-900);
  color: oklch(82% 0.01 262);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  border-bottom: 1px solid oklch(100% 0 0 / 0.07);
}
.sidebar .brand::before {
  content: "";
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: var(--shield) center / contain no-repeat;
  mask: var(--shield) center / contain no-repeat;
}
.sidebar nav { padding: 14px 12px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  color: oklch(76% 0.01 262);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  border-left: 3px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.sidebar nav a:hover { background: oklch(100% 0 0 / 0.06); color: #fff; }
.sidebar nav a.active {
  background: oklch(100% 0 0 / 0.08);
  border-left-color: var(--accent);
  color: #fff;
}
.sidebar .foot { padding: 16px 20px; border-top: 1px solid oklch(100% 0 0 / 0.07); font-size: 0.86rem; }
.sidebar .foot a { color: oklch(64% 0.01 262); display: inline-flex; align-items: center; gap: 7px; }
.sidebar .foot a:hover { color: var(--accent); }

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 62px;
  background: oklch(100% 0 0 / 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 32px);
  position: sticky; top: 0; z-index: 15;
}
.topbar .page-title { font-size: 1.05rem; font-weight: 700; font-family: var(--font-display); }
.topbar .user { color: var(--muted); font-size: 0.86rem; display: inline-flex; align-items: center; gap: 8px; }
.topbar .user::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); }
.content { padding: clamp(20px, 3vw, 32px); flex: 1; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fade-up 0.5s var(--ease) both;
}
.stat-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--ink-700);
}
.stat-card.accent-active::after { background: var(--success); }
.stat-card.accent-expired::after { background: var(--danger); }
.stat-card.accent-disabled::after { background: var(--muted); }
.stat-card .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-card .label { color: var(--muted); margin-top: 6px; font-size: 0.88rem; }
.stat-card:nth-child(1) { animation-delay: 0.04s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.16s; }
.stat-card:nth-child(4) { animation-delay: 0.22s; }

/* 面板 */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fade-up 0.5s var(--ease) 0.12s both;
}
.panel-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 { font-size: 1rem; font-weight: 700; }
.panel-body { padding: 20px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.table th { background: var(--surface-2); font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.table tbody tr { transition: background 0.15s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table td { color: var(--text); }
.table .mono { font-family: var(--font-display); color: var(--text-strong); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.table .domain-cell { max-width: 240px; font-family: var(--font-display); color: var(--text-strong); font-variant-numeric: tabular-nums; line-height: 1.5; word-break: break-all; }
.table .actions { display: flex; gap: 8px; }
/* 宽表格横向滚动，避免挤压列 */
.table-scroll { width: 100%; overflow-x: auto; }

/* 工具栏 */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .form-control { width: auto; min-width: 240px; }
.spacer { flex: 1; }

/* =========================================================
   登录页（墨黑签名场景）
   ========================================================= */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 12% -10%, oklch(32% 0.05 262 / 0.7), transparent 60%),
    radial-gradient(820px 520px at 112% 118%, oklch(66% 0.14 64 / 0.12), transparent 55%),
    var(--ink-900);
}
.login-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(100% 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 42%, #000, transparent 72%);
  opacity: 0.6;
  pointer-events: none;
}
.login-card {
  position: relative;
  width: min(410px, 92vw);
  background: oklch(23% 0.025 262);
  border: 1px solid oklch(100% 0 0 / 0.09);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  color: oklch(95% 0.01 262);
  animation: fade-up 0.6s var(--ease) both;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-brand .mark {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: var(--shield) center / contain no-repeat;
  mask: var(--shield) center / contain no-repeat;
}
.login-brand .txt { display: flex; flex-direction: column; }
.login-brand .txt b { font-family: var(--font-display); font-size: 1.12rem; color: #fff; letter-spacing: -0.01em; }
.login-brand .txt span { font-size: 0.78rem; color: oklch(68% 0.01 262); letter-spacing: 0.02em; }
.login-card h1 { font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.login-card .sub { color: oklch(72% 0.01 262); margin-bottom: 26px; font-size: 0.92rem; }
.login-card .form-group label { color: oklch(82% 0.01 262); }
.login-card .form-control {
  background: oklch(17% 0.02 262);
  border: 1px solid oklch(100% 0 0 / 0.14);
  color: oklch(96% 0.01 262);
}
.login-card .form-control::placeholder { color: oklch(55% 0.01 262); }
.login-card .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(66% 0.14 64 / 0.28); }
.login-card .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-900);
  font-weight: 700;
}
.login-card .btn-primary:hover { background: oklch(72% 0.14 66); border-color: oklch(72% 0.14 66); color: var(--ink-900); }
.login-tip {
  margin-top: 18px; text-align: center; font-size: 0.8rem;
  color: oklch(62% 0.01 262);
  padding: 9px; border-radius: var(--r-sm);
  background: oklch(100% 0 0 / 0.05);
  border: 1px dashed oklch(100% 0 0 / 0.12);
}
.login-tip b { color: var(--accent); font-family: var(--font-display); }

/* =========================================================
   Toast 提示
   ========================================================= */
#toast-root {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  min-width: 230px; max-width: 360px;
  padding: 13px 16px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-strong);
  animation: toast-in 0.3s var(--ease);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* =========================================================
   动效 & 通用工具
   ========================================================= */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.muted { color: var(--muted); }
.text-right { text-align: right; }
.mt-16 { margin-top: 16px; }
.flex { display: flex; gap: 12px; align-items: center; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    z-index: 50;
  }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 240px; height: 100%; position: sticky; }
  .search-row-lg { flex-direction: column; }
  .search-row-lg .btn { width: 100%; }
  .toolbar .form-control { min-width: 0; width: 100%; }
  .toolbar { gap: 8px; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
