:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --sidebar: #ffffff;
  --sidebar-border: #e8edf3;
  --sidebar-hover: #f5f8fc;
  --sidebar-active: #eef4ff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: #eff6ff;
  --ok: #15803d;
  --danger: #b91c1c;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --radius: 12px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
    min-height: 100vh;
  font-size: 14px;
  line-height: 1.55;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ===== 未登录 ===== */
.public-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.public-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.public-nav .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text) !important;
  font-size: 1.1rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  background: #fff;
  border: 1px solid #e8eef5;
  object-fit: contain;
  box-shadow: none;
}
.public-nav .nav-link { color: var(--muted) !important; font-weight: 500; }
.public-nav .nav-link:hover { color: var(--primary) !important; }
.public-nav-cta {
  margin-left: 0.35rem;
  border-radius: 999px !important;
  padding-left: 0.95rem !important;
  padding-right: 0.95rem !important;
}
.public-main { flex: 1; padding: 0; width: 100%; }
.public-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  background: #fff;
  font-size: 0.85rem;
}

.login-wrap { max-width: 420px; margin: 2rem auto; padding: 0 1rem; }
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.login-card-header {
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}
.login-brand-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.login-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8eef5;
  object-fit: contain;
  box-shadow: none;
}
.login-card-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.login-card-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.login-card-body { padding: 1.5rem; }
.login-meta {
  background: var(--primary-soft);
  border: 1px solid #c9d7ea;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* ===== 浅色侧栏 ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.admin-sidebar {
  width: 260px;
  background: var(--sidebar);
  border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  color: var(--text);
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.15rem 1.1rem;
  border-bottom: 1px solid var(--sidebar-border);
  color: var(--text);
  text-decoration: none;
}
.admin-brand:hover { color: var(--text); }
.admin-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8eef5;
  object-fit: contain;
  box-shadow: none;
}
.admin-brand-text {
  min-width: 0;
  line-height: 1.25;
}
.admin-brand-text strong {
  display: block;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.admin-brand-text span,
.admin-brand span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.22rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-menu-wrap {
  flex: 1;
  overflow: auto;
  padding: 0.45rem 0;
}
.admin-menu {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0.75rem 0.85rem;
}
.admin-menu .menu-label {
  padding: 0.85rem 0.85rem 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 650;
}
.admin-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.66rem 0.9rem;
  border-radius: 8px;
  color: #475569;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-menu a .menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.admin-menu a .menu-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.72;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.admin-menu a .ico-dash {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 5h7v7H4V5zm9 0h7v5h-7V5zM4 14h7v5H4v-5zm9-2h7v7h-7v-7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 5h7v7H4V5zm9 0h7v5h-7V5zM4 14h7v5H4v-5zm9-2h7v7h-7v-7z'/%3E%3C/svg%3E");
}
.admin-menu a .ico-apps {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
}
.admin-menu a .ico-devices {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 2h10a1 1 0 011 1v18a1 1 0 01-1 1H7a1 1 0 01-1-1V3a1 1 0 011-1zm5 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 2h10a1 1 0 011 1v18a1 1 0 01-1 1H7a1 1 0 01-1-1V3a1 1 0 011-1zm5 17h.01'/%3E%3C/svg%3E");
}
.admin-menu a .ico-push {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9'/%3E%3C/svg%3E");
}
.admin-menu a .ico-lang {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7M5 19l2-5 2 5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7M5 19l2-5 2 5'/%3E%3C/svg%3E");
}
.admin-menu a .ico-search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
}
.admin-menu a .ico-anim {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14.752 11.168l-6.518-3.76A1 1 0 007 8.26v7.48a1 1 0 001.234.97l6.518-1.76A1 1 0 0016 13.97v-1.94a1 1 0 01-1.248-.862z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14.752 11.168l-6.518-3.76A1 1 0 007 8.26v7.48a1 1 0 001.234.97l6.518-1.76A1 1 0 0016 13.97v-1.94a1 1 0 01-1.248-.862z'/%3E%3C/svg%3E");
}
.admin-menu a .ico-channel {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 7h.01M7 3h5a1.99 1.99 0 011.41.59l7 7a2 2 0 010 2.82l-5.18 5.18a2 2 0 01-2.82 0l-7-7A2 2 0 013 10V5a2 2 0 012-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 7h.01M7 3h5a1.99 1.99 0 011.41.59l7 7a2 2 0 010 2.82l-5.18 5.18a2 2 0 01-2.82 0l-7-7A2 2 0 013 10V5a2 2 0 012-2z'/%3E%3C/svg%3E");
}
.admin-menu a .ico-open {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1'/%3E%3C/svg%3E");
}
.admin-menu a .ico-docs {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6M7 4h7l3 3v13a2 2 0 01-2 2H7a2 2 0 01-2-2V6a2 2 0 012-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6M7 4h7l3 3v13a2 2 0 01-2 2H7a2 2 0 01-2-2V6a2 2 0 012-2z'/%3E%3C/svg%3E");
}
.admin-menu a .ico-logs {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4'/%3E%3C/svg%3E");
}
.admin-menu a .ico-users {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2m18 0v-2a4 4 0 00-3-3.87M12 11a4 4 0 100-8 4 4 0 000 8zm6-4a3 3 0 11-4.35-2.68'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2m18 0v-2a4 4 0 00-3-3.87M12 11a4 4 0 100-8 4 4 0 000 8zm6-4a3 3 0 11-4.35-2.68'/%3E%3C/svg%3E");
}
.admin-menu a .ico-settings {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15.5A3.5 3.5 0 1012 8.5a3.5 3.5 0 000 7zM19.4 15a1.7 1.7 0 00.3 1.8l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.8-.3 1.7 1.7 0 00-1 1.5V21a2 2 0 11-4 0v-.1a1.7 1.7 0 00-1-1.5 1.7 1.7 0 00-1.8.3l-.1.1a2 2 0 11-2.8-2.8l.1-.1a1.7 1.7 0 00.3-1.8 1.7 1.7 0 00-1.5-1H3a2 2 0 110-4h.1a1.7 1.7 0 001.5-1 1.7 1.7 0 00-.3-1.8l-.1-.1a2 2 0 112.8-2.8l.1.1a1.7 1.7 0 001.8.3H9a1.7 1.7 0 001-1.5V3a2 2 0 114 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.8-.3l.1-.1a2 2 0 112.8 2.8l-.1.1a1.7 1.7 0 00-.3 1.8V9c.2.6.7 1 1.5 1H21a2 2 0 110 4h-.1a1.7 1.7 0 00-1.5 1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15.5A3.5 3.5 0 1012 8.5a3.5 3.5 0 000 7zM19.4 15a1.7 1.7 0 00.3 1.8l.1.1a2 2 0 11-2.8 2.8l-.1-.1a1.7 1.7 0 00-1.8-.3 1.7 1.7 0 00-1 1.5V21a2 2 0 11-4 0v-.1a1.7 1.7 0 00-1-1.5 1.7 1.7 0 00-1.8.3l-.1.1a2 2 0 11-2.8-2.8l.1-.1a1.7 1.7 0 00.3-1.8 1.7 1.7 0 00-1.5-1H3a2 2 0 110-4h.1a1.7 1.7 0 001.5-1 1.7 1.7 0 00-.3-1.8l-.1-.1a2 2 0 112.8-2.8l.1.1a1.7 1.7 0 001.8.3H9a1.7 1.7 0 001-1.5V3a2 2 0 114 0v.1a1.7 1.7 0 001 1.5 1.7 1.7 0 001.8-.3l.1-.1a2 2 0 112.8 2.8l-.1.1a1.7 1.7 0 00-.3 1.8V9c.2.6.7 1 1.5 1H21a2 2 0 110 4h-.1a1.7 1.7 0 00-1.5 1z'/%3E%3C/svg%3E");
}
.admin-menu a .ico-feedback {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 10h8M8 14h5M21 12c0 4.418-4.03 8-9 8a9.86 9.86 0 01-4.23-.93L3 20l1.1-3.3A7.7 7.7 0 013 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 10h8M8 14h5M21 12c0 4.418-4.03 8-9 8a9.86 9.86 0 01-4.23-.93L3 20l1.1-3.3A7.7 7.7 0 013 12c0-4.418 4.03-8 9-8s9 3.582 9 8z'/%3E%3C/svg%3E");
}
.admin-menu a:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}
.admin-menu a:hover .menu-dot { background: #94a3b8; }
.admin-menu a:hover .menu-ico { opacity: 0.95; }
.admin-menu a.active {
  background: var(--sidebar-active);
  color: var(--primary-hover);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}
.admin-menu a.active .menu-dot { background: var(--primary); }
.admin-menu a.active .menu-ico { opacity: 1; }
.admin-user {
  border-top: 1px solid var(--sidebar-border);
  padding: 1rem 1.05rem 1.15rem;
  background: #fafbfc;
}
.admin-user-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.admin-user-name {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
}
.admin-user-role {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.12rem;
}
.btn-sidebar-logout {
  color: #64748b !important;
  border-color: #e2e8f0 !important;
  background: #fff !important;
}
.btn-sidebar-logout:hover {
  color: var(--text) !important;
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-topbar h1 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.admin-topbar .topbar-sub {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.topbar-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 650;
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  letter-spacing: 0.04em;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.topbar-home-btn {
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.28rem 0.85rem !important;
}
.admin-content {
  padding: 1.5rem 1.75rem 2.2rem;
    flex: 1;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 0.15rem 0.1rem;
}
.page-desc { color: var(--muted); font-size: 0.88rem; max-width: 52rem; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-body { padding: 1.25rem 1.35rem; }
.panel-header {
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  font-size: 0.92rem;
  background: #f8fafc;
  color: #1e293b;
}

.hero-light {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.8rem;
  box-shadow: var(--shadow);
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eef5;
  object-fit: contain;
  box-shadow: none;
  flex-shrink: 0;
}
.hero-brand h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.hero-sub {
  margin: 0.25rem 0 0 !important;
  font-size: 0.92rem;
}
.hero-light h1 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 650;
  color: var(--text);
}
.hero-light p { color: var(--muted); margin-bottom: 0.85rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #dbeafe;
}
.stat-card .label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.stat-card .value {
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 0.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-card .value-sm {
  font-size: 1.15rem;
  margin-top: 0.55rem;
}
.stat-card .stat-hint {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.stat-card .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.stat-card .stat-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  position: relative;
  flex-shrink: 0;
}
.stat-card .stat-ico::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--primary);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.stat-link:hover {
  color: inherit;
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}
.stat-link:hover::before { background: var(--primary); }

.panel-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.panel-header-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.panel-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.panel-link:hover { color: var(--primary-hover); text-decoration: underline; }

.dash-welcome {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef5ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}
.dash-welcome-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dash-welcome-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}
.dash-welcome-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e8eef5;
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
}
.dash-welcome-brand h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.dash-welcome-brand p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.dash-welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  border: 1px solid transparent;
}
.status-chip .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-chip.ok {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}
.status-chip.bad {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
.status-chip.muted {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.quick-card:hover {
  color: inherit;
  background: #fff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.07);
}
.quick-card strong {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}
.quick-card > span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.quick-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-soft);
  margin-bottom: 0.25rem;
  position: relative;
}
.quick-ico::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--primary);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.dash-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
@media (max-width: 1100px) {
  .dash-split { grid-template-columns: 1fr; }
}

.mono-clip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code-pill {
    display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  font-size: 0.78rem;
  color: #334155;
}

.settings-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.settings-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text);
}
.settings-checklist li .text-muted {
  font-weight: 450;
  font-size: 0.8rem;
}
.settings-checklist .check {
  width: 16px;
  height: 16px;
    border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  position: relative;
}
.settings-checklist .check.on {
  border-color: #22c55e;
  background: #22c55e;
}
.settings-checklist .check.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.settings-note {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* 统计/快捷图标 mask（复用侧栏风格） */
.stat-ico.users::after,
.quick-ico.users::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2m12-10a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2m12-10a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
}
.stat-ico.devices::after,
.quick-ico.devices::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 2h10a1 1 0 011 1v18a1 1 0 01-1 1H7a1 1 0 01-1-1V3a1 1 0 011-1zm5 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 2h10a1 1 0 011 1v18a1 1 0 01-1 1H7a1 1 0 01-1-1V3a1 1 0 011-1zm5 17h.01'/%3E%3C/svg%3E");
}
.stat-ico.apps::after,
.quick-ico.apps::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
}
.stat-ico.langs::after,
.quick-ico.langs::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7'/%3E%3C/svg%3E");
}
.stat-ico.search::after,
.quick-ico.search::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
}
.stat-ico.bookmarks::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-4-7 4V5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-4-7 4V5z'/%3E%3C/svg%3E");
}
.quick-ico.push::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5'/%3E%3C/svg%3E");
}
.quick-ico.anim::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 3l14 9-14 9V3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 3l14 9-14 9V3z'/%3E%3C/svg%3E");
}
.quick-ico.settings::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15a3 3 0 100-6 3 3 0 000 6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15a3 3 0 100-6 3 3 0 000 6z'/%3E%3C/svg%3E");
}

.badge-warn { background: #fff7ed; color: #c2410c; }

/* ===== 按钮 ===== */
.btn {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
}
.btn-action {
  min-width: 96px;
  padding: 0.5rem 1.1rem;
}
.btn-table {
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 5px;
  margin-left: 4px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: #9bb4d4;
}
.btn-outline-primary:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-danger {
  color: var(--danger);
  border-color: #e8b4b0;
}
.btn-outline-danger:hover {
  background: #fdf2f1;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-outline-secondary {
  color: var(--muted);
  border-color: var(--border);
}
.btn-outline-secondary:hover {
  background: #f5f7fb;
  color: var(--text);
  border-color: #c5cedb;
}

/* ===== 表格 ===== */
.table-admin {
  --bs-table-bg: transparent;
  margin-bottom: 0;
  width: 100%;
}
.table-admin thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc;
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
}
.table-admin tbody td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle;
  color: #1e293b;
  font-size: 0.9rem;
}
.table-admin tbody tr:last-child td { border-bottom: none !important; }
.table-admin tbody tr {
  transition: background 0.12s ease;
}
.table-admin tbody tr:hover { background: #f8fafc; }
.table-admin tbody tr:nth-child(even) { background: #fcfdff; }
.table-admin tbody tr:nth-child(even):hover { background: #f8fafc; }

.table { --bs-table-bg: transparent; }
.table thead th {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 650;
  border-bottom-width: 1px;
  background: #f8fafc;
}
.table tbody tr:hover { background: #f8fafc; }

.table-responsive {
  border-radius: 0 0 var(--radius) var(--radius);
}

.badge-status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.28em 0.7em;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.badge-ok { background: #ecfdf3; color: #166534; }
.badge-muted { background: #f1f5f9; color: #64748b; }
.badge-off { background: #f4f4f5; color: #71717a; }
.badge-soft {
  background: var(--primary-soft);
  color: #1d4ed8;
  border-radius: 999px;
  font-weight: 650;
  padding: 0.28em 0.65em;
  font-size: 0.74rem;
}

.xapp-icon-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  vertical-align: middle;
}
.icon-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-anim-preview {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  min-height: 120px;
}
.home-anim-preview svg,
.home-anim-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}
.home-anim-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}
.home-anim-history {
  padding: 0.75rem 1rem 0.5rem;
}
.home-anim-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.home-anim-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.home-anim-history-item:hover {
  border-color: #cbd5e1;
}
.home-anim-history-item.is-active {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.home-anim-history-main {
  min-width: 0;
  flex: 1;
}
.home-anim-history-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.home-anim-history-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.92rem;
}
.home-anim-history-url {
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.4;
}
.home-anim-history-url a {
  color: #334155;
  text-decoration: none;
}
.home-anim-history-url a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.home-anim-history-meta {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.home-anim-history-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}
.home-anim-history-pager {
  margin-top: 0.75rem;
  padding-top: 0.25rem;
}
@media (max-width: 576px) {
  .home-anim-history-item {
    flex-direction: column;
  }
  .home-anim-history-actions {
    flex-direction: row;
    width: 100%;
  }
}
.xapp-icon-fallback {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.locale-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}
.locale-check-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
}
.locale-check-item:hover { background: #fff; }
.locale-check-item input { margin: 0; }
.locale-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.locale-tags .badge-soft {
  font-size: 0.72rem;
  padding: 0.18em 0.45em;
}

.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* ===== 推送控制台 ===== */
.push-page { display: flex; flex-direction: column; gap: 1rem; }
.push-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.push-stats {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.push-stat {
  min-width: 78px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.push-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.push-stat-value.ok { color: var(--ok); }
.push-stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}
.push-stat.firebase.ready .push-stat-value { color: var(--ok); font-size: 0.95rem; }
.push-stat.firebase.down .push-stat-value { color: var(--danger); font-size: 0.95rem; }

.push-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.push-mode-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.8rem;
  background: #fafbfc;
  cursor: pointer;
  margin: 0;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.push-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.push-mode-card:hover { border-color: #9bb4d4; background: #fff; }
.push-mode-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px rgba(30, 77, 140, 0.12);
}
.push-mode-title {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--text);
}
.push-mode-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.push-selected {
  border: 1px dashed #c5cedb;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  font-size: 0.9rem;
  min-height: 46px;
  display: flex;
  align-items: center;
}

.push-devices-panel { overflow: hidden; }
.push-device-toolbar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.push-filter-tabs {
  display: flex;
  gap: 0.35rem;
}
.push-filter-tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  cursor: pointer;
}
.push-filter-tab:hover { color: var(--text); border-color: #c5cedb; }
.push-filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.push-device-list {
  max-height: min(62vh, 560px);
  overflow: auto;
}
.push-device-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.push-device-card:hover { background: #f8fafc; }
.push-device-card.is-selected {
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
}
.push-device-card.is-inactive {
  opacity: 0.72;
  cursor: default;
}
.push-device-card.is-inactive .push-device-pick { display: none; }
.push-device-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.push-device-avatar[data-tone="0"] { background: #1e4d8c; }
.push-device-avatar[data-tone="1"] { background: #2f6b4f; }
.push-device-avatar[data-tone="2"] { background: #8a5a2b; }
.push-device-avatar[data-tone="3"] { background: #5b4b8a; }
.push-device-main { flex: 1; min-width: 0; }
.push-device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.push-device-name {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.push-device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.push-device-seen {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: #8a96a8;
}
.push-device-pick {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid #9bb4d4;
  border-radius: 5px;
  padding: 0.22rem 0.55rem;
  background: #fff;
}
.push-device-card:hover .push-device-pick,
.push-device-card.is-selected .push-device-pick {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 900px) {
  .push-mode-grid { grid-template-columns: 1fr; }
  .push-device-list { max-height: 420px; }
}

.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--border);
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}
.form-label {
  font-weight: 600;
  color: #334155;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}
.form-text {
  color: #94a3b8;
  font-size: 0.78rem;
}
.form-admin .row.g-3 {
  --bs-gutter-y: 1rem;
}
.form-actions {
  display: flex;
  gap: 0.65rem;
  padding-top: 1rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.pagination-bar-single {
  justify-content: flex-start;
}
.pagination-meta {
  color: var(--muted);
  font-size: 0.82rem;
}
.admin-pagination .page-link {
  border-radius: 8px !important;
  margin: 0 2px;
  border-color: #e2e8f0;
  color: #475569;
  font-size: 0.84rem;
  padding: 0.35rem 0.7rem;
  min-width: 36px;
  text-align: center;
}
.admin-pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}
.admin-pagination .page-item.disabled .page-link {
  color: #94a3b8;
  background: #f8fafc;
}
.lang-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  min-height: min(72vh, 820px);
  height: min(72vh, 820px);
  resize: vertical;
  white-space: pre;
  tab-size: 2;
}

.card {
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-header {
  background: #fafbfc;
  border-bottom-color: var(--border);
  font-weight: 600;
}

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .admin-menu .menu-label { display: none; }
  .admin-menu a {
    display: inline-block;
    margin-bottom: 0;
    border-left: none;
  }
  .admin-menu a.active { border-left: none; }
  .toolbar-row { flex-direction: column; align-items: flex-start; }
}

/* ===== 渠道管理 ===== */
.channel-page { width: 100%; max-width: none; }
.channel-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.channel-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.channel-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.channel-lead {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.channel-lead code {
  font-size: 0.84em;
  color: #334155;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.channel-hero-meta {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.channel-meta-item {
  min-width: 88px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  text-align: right;
}
.channel-meta-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.channel-meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.channel-meta-value.is-ok { color: var(--ok); }
.channel-meta-value.is-warn { color: var(--warn); }

.channel-step {
  display: flex;
  gap: 0.9rem;
  height: 100%;
}
.channel-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-step-title {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
}
.channel-step-desc {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.channel-base-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #f8fafc;
}
.channel-base-name {
  font-weight: 650;
  font-size: 0.92rem;
  word-break: break-all;
}
.channel-base-meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.channel-empty-tip {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0.75rem 0;
}
.channel-example {
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.82rem;
}
.channel-example code {
  color: #334155;
  background: #eef2f7;
  padding: 0.05em 0.3em;
  border-radius: 3px;
}
.channel-history {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.channel-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-weight: 650;
}
.channel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 500;
}
.channel-chip:hover {
  border-color: #cbd5e1;
  color: var(--text);
}
.channel-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.channel-chip-count {
  font-size: 0.72rem;
  opacity: 0.75;
}
.channel-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 650;
  background: #f8fafc;
}
.channel-table tbody tr:hover {
  background: #fafbfc;
}

@media (max-width: 768px) {
  .channel-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .channel-hero-meta { width: 100%; }
  .channel-meta-item { flex: 1; text-align: left; }
}

/* ===== 开放能力 · 开放接口 ===== */
.open-page { width: 100%; }
.open-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.open-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.open-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.open-lead {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.open-lead code {
  font-size: 0.84em;
  background: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.open-stats {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}
.open-stat {
  min-width: 76px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  text-align: right;
}
.open-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.open-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
}

.open-secret {
  margin-bottom: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.open-secret-title {
  font-weight: 650;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: #92400e;
}
.open-secret-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.open-secret-full { grid-column: 1 / -1; }
.open-secret-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.open-secret-value { font-size: 0.92rem; font-weight: 600; }
.open-secret-code {
  display: block;
  font-size: 0.84rem;
  word-break: break-all;
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
}

.open-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}
.open-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}
.open-card:last-child { margin-bottom: 0; }
.open-card-head {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.open-card-title {
  font-weight: 700;
  font-size: 0.98rem;
}
.open-card-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.open-form { padding: 1.05rem 1.15rem 1.2rem; }
.open-field { margin-bottom: 0.95rem; }
.open-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
}
.open-bind-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.28rem;
  background: #f1f5f9;
  border-radius: 12px;
}
.open-bind-opt {
  margin: 0;
  cursor: pointer;
}
.open-bind-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.open-bind-opt span {
  display: block;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 650;
  color: #64748b;
  transition: 0.15s ease;
}
.open-bind-opt input:checked + span {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.open-submit { margin-top: 0.25rem; padding: 0.65rem 1rem; font-weight: 650; }
.open-empty-mini {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 0.7rem 0.8rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed var(--border);
}

.open-docs-body { padding: 0.85rem 1.05rem 1.05rem; }
.open-doc-block { margin-bottom: 0.85rem; }
.open-doc-block:last-child { margin-bottom: 0; }
.open-doc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.open-docs pre {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.open-doc-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.open-list-card { margin-bottom: 0; }
.open-app-list { padding: 0.75rem; display: grid; gap: 0.75rem; }
.open-app-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.open-app-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.open-app-item.is-off { opacity: 0.72; background: #f8fafc; }
.open-app-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}
.open-app-name { font-weight: 700; font-size: 1rem; }
.open-app-note { margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.open-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.open-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.open-pill.is-channel {
  background: #ecfeff;
  color: #0e7490;
}
.open-pill.is-xapp {
  background: #f0fdf4;
  color: #15803d;
}
.open-app-bind {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  margin-bottom: 0.75rem;
}
.open-app-bind-title {
  font-weight: 650;
  font-size: 0.9rem;
  word-break: break-all;
}
.open-app-bind-sub {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}
.open-app-creds {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.open-app-creds code {
  display: block;
  font-size: 0.8rem;
  word-break: break-all;
}
.open-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.open-empty {
  padding: 2.4rem 1.5rem;
  text-align: center;
}
.open-empty-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.open-empty-text {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 26rem;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .open-layout { grid-template-columns: 1fr; }
  .open-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .open-stats { width: 100%; }
  .open-stat { flex: 1; text-align: left; }
  .open-secret-grid { grid-template-columns: 1fr; }
  .open-app-creds { grid-template-columns: 1fr; }
}

/* ===== 开放能力 · 接口文档 ===== */
.docs-page { width: 100%; max-width: 920px; }
.docs-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.docs-base {
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  max-width: 100%;
}
.docs-base code {
  display: block;
  font-size: 0.8rem;
  word-break: break-all;
  margin-top: 0.2rem;
}
.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}
.docs-toc a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.docs-toc a:hover {
  border-color: #99f6e4;
  color: #0f766e;
  background: #f0fdfa;
}
.docs-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.docs-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 700;
}
.docs-section h3 {
  margin: 1rem 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #475569;
}
.docs-section p {
  margin: 0 0 0.65rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
}
.docs-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.docs-method {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.docs-section pre {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.docs-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
}
.docs-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
}
.docs-card pre { margin: 0; }
.docs-note {
  font-size: 0.84rem !important;
  color: var(--muted) !important;
}
.docs-flow ol {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .docs-hero { flex-direction: column; align-items: flex-start; }
  .docs-grid { grid-template-columns: 1fr; }
}

/* ===== 推送记录 ===== */
.plog-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.plog-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.plog-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.plog-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--text);
  letter-spacing: 0.01em;
}
.plog-lead {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.plog-hero-actions {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
  padding-top: 0.2rem;
}
.plog-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.plog-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.plog-stat-value {
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.15;
  color: var(--text);
}
.plog-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.plog-stat.is-ok .plog-stat-value { color: #059669; }
.plog-stat.is-warn .plog-stat-value { color: #d97706; }
.plog-stat.is-bad .plog-stat-value { color: #dc2626; }

.plog-filter .panel-body,
.plog-filter {
  padding: 0;
}
.plog-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(120px, 0.7fr)) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
  padding: 1rem 1.2rem;
}
.plog-filter-search,
.plog-filter-field {
  min-width: 0;
}
.plog-filter-actions {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1px;
}
.plog-filter .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.plog-list-panel .plog-list {
  display: flex;
  flex-direction: column;
}
.plog-item {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  transition: background 0.12s ease;
}
.plog-item:last-child { border-bottom: none; }
.plog-item:hover { background: #fafbfc; }
.plog-item-rail {
  background: #cbd5e1;
  min-height: 100%;
}
.plog-item.status-success .plog-item-rail { background: #34d399; }
.plog-item.status-partial .plog-item-rail { background: #fbbf24; }
.plog-item.status-failed .plog-item-rail { background: #f87171; }
.plog-item-body {
  padding: 0.55rem 0.95rem 0.5rem;
  min-width: 0;
}
.plog-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}
.plog-item-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}
.plog-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12em 0.5em;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.25;
}
.plog-badge-ok { background: #ecfdf3; color: #166534; }
.plog-badge-warn { background: #fffbeb; color: #92400e; }
.plog-badge-bad { background: #fef2f2; color: #991b1b; }
.plog-badge-soft { background: #eff6ff; color: #1d4ed8; }
.plog-badge-mute { background: #f1f5f9; color: #475569; }
.plog-metric-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
  margin-left: 0.15rem;
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
}
.plog-metric-inline em {
  font-style: normal;
  font-weight: 700;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.plog-metric-inline em.ok { color: #059669; }
.plog-metric-inline em.bad { color: #dc2626; }
.plog-item-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plog-item-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}
.plog-item-title {
  margin: 0;
  flex-shrink: 0;
  max-width: 42%;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plog-item-body-text {
  margin: 0;
  min-width: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plog-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.3rem;
}
.plog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 220px;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  font-size: 0.68rem;
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.plog-chip i {
  font-style: normal;
  font-family: inherit;
  font-weight: 650;
  color: #94a3b8;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.plog-chip-link {
  color: #2563eb;
  text-decoration: none;
  max-width: 260px;
}
.plog-chip-link:hover { text-decoration: underline; }
.plog-chip-msgid { max-width: 320px; }
.plog-chip-error {
  max-width: 360px;
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.plog-empty {
  padding: 2.2rem 1.5rem;
  text-align: center;
}
.plog-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
}
.plog-empty-desc {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .plog-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plog-filter-form {
    grid-template-columns: 1fr 1fr;
  }
  .plog-filter-search { grid-column: 1 / -1; }
  .plog-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .plog-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .plog-hero-actions { width: 100%; }
  .plog-hero-actions .btn { flex: 1; }
  .plog-stats { grid-template-columns: 1fr 1fr; }
  .plog-filter-form { grid-template-columns: 1fr; }
  .plog-item-top { align-items: flex-start; }
  .plog-item-main { flex-direction: column; gap: 0.15rem; }
  .plog-item-title { max-width: 100%; }
}

/* ===== 控制台 ===== */
.console-page {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}
.console-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.45rem 1.55rem 1.25rem;
}
.console-hero-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 140%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59, 130, 246, 0.16), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.1), transparent 55%);
  pointer-events: none;
}
.console-hero-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.console-hero-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
.console-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  flex-shrink: 0;
}
.console-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.2rem;
}
.console-brand {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}
.console-lead {
  margin: 0.4rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  max-width: 28rem;
}
.console-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.console-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}
.console-health {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
}
.console-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 650;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.console-pill.is-ok {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}
.console-pill.is-bad {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.console-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.console-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.console-kpi:hover {
  color: inherit;
  border-color: #bfdbfe;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}
.console-kpi-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}
.console-kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}
.console-kpi-value.is-accent { color: #2563eb; }
.console-kpi-hint {
  font-size: 0.72rem;
  color: #94a3b8;
}

.console-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem 1.15rem;
}
.console-block-head,
.console-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.console-block-head h3,
.console-panel-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.console-block-head span {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}
.console-panel-head a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.console-panel-head a:hover { text-decoration: underline; }

.console-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}
.console-shortcuts a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e8eef5;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.console-shortcuts a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: inherit;
}
.console-shortcuts strong {
  font-size: 0.86rem;
  font-weight: 650;
  color: #0f172a;
}
.console-shortcuts span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.console-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}
.console-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem 0.35rem;
  min-width: 0;
}
.console-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.console-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 0.1rem;
  border-top: 1px solid #f1f5f9;
}
.console-list li:first-child { border-top: 0; }
.console-list-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.console-list-main strong {
  font-size: 0.88rem;
  font-weight: 650;
  color: #0f172a;
}
.console-list-main span,
.console-list-side time {
  font-size: 0.74rem;
  color: #94a3b8;
}
.console-feedback-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}
.console-list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.console-empty {
  padding: 1.6rem 0.5rem 1.8rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.88rem;
}

.console-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding-bottom: 0.85rem;
}
.console-lang {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #e8eef5;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.console-lang:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: inherit;
}
.console-lang code {
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 700;
}
.console-lang strong {
  font-size: 0.88rem;
  color: #0f172a;
}
.console-lang span {
  font-size: 0.72rem;
  color: #94a3b8;
}

@media (max-width: 1200px) {
  .console-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .console-split { grid-template-columns: 1fr; }
  .console-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console-langs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .console-hero-logo { width: 56px; height: 56px; border-radius: 16px; }
  .console-brand { font-size: 1.5rem; }
  .console-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-hero-actions { width: 100%; }
  .console-hero-actions .btn { flex: 1; }
}

/* ===== 公开首页落地页 ===== */
.home-landing {
  width: 100%;
  overflow: hidden;
}
.home-hero {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3.5rem;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f4f6fa 55%, #eef3f9 100%);
}
.home-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 70%, rgba(14, 165, 233, 0.1), transparent 65%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}
.home-hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  margin-bottom: 1.35rem;
}
.home-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.home-brand {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
  line-height: 1.05;
}
.home-lead {
  margin: 0.75rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
}
.home-desc {
  margin: 0.65rem auto 0;
  max-width: 32rem;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.65;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.75rem;
}
.home-btn-primary,
.home-btn-ghost {
  border-radius: 999px !important;
  padding-left: 1.45rem !important;
  padding-right: 1.45rem !important;
  font-weight: 650;
}
.home-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}
.home-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 650;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
}
.home-pill.is-ok {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.home-capabilities {
  padding: 3rem 1.5rem 2.5rem;
  background: #fff;
  border-top: 1px solid #eef2f7;
}
.home-cap-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
.home-cap h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.home-cap p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}
.home-cap-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  margin-bottom: 0.85rem;
  position: relative;
}
.home-cap-ico::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #3b82f6;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.home-cap-ico.push::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 10-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9'/%3E%3C/svg%3E");
}
.home-cap-ico.apps::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
}
.home-cap-ico.lang::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7M5 19l2-5 2 5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7M5 19l2-5 2 5'/%3E%3C/svg%3E");
}

.home-footer-cta {
  padding: 2.5rem 1.5rem 3rem;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border-top: 1px solid #e8eef5;
}
.home-footer-cta-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.home-footer-cta-inner h2 {
  margin: 0 0 0.3rem;
        font-size: 1.2rem;
  font-weight: 750;
  color: #0f172a;
}
.home-footer-cta-inner p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}
.home-footer-cta-inner .btn {
  border-radius: 999px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  font-weight: 650;
}

@media (max-width: 900px) {
  .home-cap-grid { grid-template-columns: 1fr; max-width: 480px; }
  .home-hero { min-height: auto; padding-top: 3rem; }
}
@media (max-width: 640px) {
  .home-hero-logo { width: 72px; height: 72px; border-radius: 20px; }
  .home-cta { flex-direction: column; }
  .home-cta .btn { width: 100%; }
  .home-footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .home-footer-cta-inner .btn { width: 100%; }
}

/* ===== WA4 Browser 公开落地页 ===== */
.wb-landing {
  font-family: "Outfit", "Noto Sans SC", "PingFang SC", "Segoe UI", sans-serif;
  color: #0f172a;
}
.wb-hero {
  position: relative;
  padding: 3.5rem 1.25rem 3rem;
  overflow: hidden;
  background:
    linear-gradient(165deg, #f8fafc 0%, #eef5fb 48%, #e8f1f8 100%);
}
.wb-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 10% 15%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(ellipse 42% 45% at 92% 78%, rgba(14, 165, 233, 0.1), transparent 65%);
  pointer-events: none;
}
.wb-hero-grid {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.75rem;
  align-items: center;
}
.wb-brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.wb-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  object-fit: contain;
  flex-shrink: 0;
}
.wb-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
.wb-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0b1220;
}
.wb-tagline {
  margin: 0.35rem 0 0;
  font-size: 1.18rem;
  font-weight: 600;
  color: #1e293b;
  max-width: 28rem;
}
.wb-desc {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.7;
}
.wb-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.65rem;
}
.wb-btn {
  border-radius: 14px !important;
  font-weight: 700 !important;
  padding: 0.72rem 1.35rem !important;
}
.wb-btn-download {
  min-width: 168px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}
.wb-btn-chat {
  min-width: 148px;
}
.wb-download-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.wb-link {
  font-weight: 650 !important;
  color: #475569 !important;
  text-decoration: none !important;
  padding: 0.4rem 0.5rem !important;
}
.wb-link:hover { color: #2563eb !important; }
.wb-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.wb-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 650;
  color: #475569;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
}
.wb-pill.is-ok {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.wb-shots {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}
@keyframes wb-rise {
  from { opacity: 0; translate: 0 18px; scale: 0.985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
.wb-phone {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  border: 3px solid #e2e8f0;
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  animation: wb-rise 0.75s ease both;
}
.wb-phone img {
  display: block;
  width: 210px;
  height: auto;
  vertical-align: top;
}
.wb-phone-back {
  position: absolute;
  left: 6%;
  bottom: 18px;
  rotate: -8deg;
  z-index: 1;
  animation-delay: 0.05s;
}
.wb-phone-back img { opacity: 0.92; }
.wb-phone-mid {
  position: absolute;
  right: 4%;
  bottom: 28px;
  rotate: 7deg;
  z-index: 2;
  animation-delay: 0.12s;
}
.wb-phone-mid img { opacity: 0.95; }
.wb-phone-front {
  position: relative;
  z-index: 3;
  margin-bottom: 6px;
  animation-delay: 0.18s;
  border-color: #cbd5e1;
  box-shadow:
    0 32px 70px rgba(37, 99, 235, 0.22),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}
.wb-phone-front img {
  width: 236px;
}

@media (max-width: 960px) {
  .wb-shots { min-height: 420px; margin-top: 0.5rem; }
  .wb-phone img { width: 170px; }
  .wb-phone-front img { width: 200px; }
}
@media (max-width: 640px) {
  .wb-shots { min-height: 360px; }
  .wb-phone-back { left: 0; }
  .wb-phone-mid { right: 0; }
  .wb-phone img { width: 140px; }
  .wb-phone-front img { width: 168px; }
}

.wb-features {
  padding: 2.75rem 1.25rem 2.25rem;
  background: #fff;
  border-top: 1px solid #eef2f7;
}
.wb-feature-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.wb-feature {
  padding: 1.2rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #e8eef5;
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wb-feature:hover {
  border-color: #cfe0f5;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.wb-feature h2 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.wb-feature p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
}
.wb-feature-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff6ff;
  margin-bottom: 0.75rem;
  position: relative;
}
.wb-feature-ico::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #2563eb;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.wb-feature-ico.browse::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
}
.wb-feature-ico.apps::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
}
.wb-feature-ico.lang::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7M5 19l2-5 2 5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m4 13l4-10 4 10M10.5 16h7M5 19l2-5 2 5'/%3E%3C/svg%3E");
}
.wb-feature-ico.cloud::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999A5.002 5.002 0 0010 7a5 5 0 00-4.9 4.001A4 4 0 003 15z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999A5.002 5.002 0 0010 7a5 5 0 00-4.9 4.001A4 4 0 003 15z'/%3E%3C/svg%3E");
}

.wb-download-band {
  padding: 0 1.25rem 3.25rem;
  background: #fff;
}
.wb-download-band-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.45rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
  border: 1px solid #dbeafe;
}
.wb-download-band-inner h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 750;
}
.wb-download-band-inner p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.wb-lang-btn {
  border-radius: 999px !important;
  font-weight: 600;
}

/* ===== 公开站 404（与首页同系） ===== */
.wb-error {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
.wb-error-inner {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
  animation: wb-rise 0.7s ease both;
}
.wb-error-brand {
  margin-bottom: 1.1rem;
}
.wb-error-code {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  background: linear-gradient(120deg, #2563eb 0%, #0ea5e9 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wb-error .wb-title {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  margin-top: 0.15rem;
}
.wb-error .wb-tagline {
  max-width: none;
}
.wb-error .wb-desc {
  max-width: 34rem;
}
@media (max-width: 640px) {
  .wb-error {
    min-height: auto;
    text-align: center;
  }
  .wb-error-inner { text-align: center; }
  .wb-error-brand { justify-content: center; }
  .wb-error .wb-cta { justify-content: center; }
  .wb-error .wb-status { justify-content: center; }
}

@media (max-width: 960px) {
  .wb-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .wb-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wb-feature-grid { grid-template-columns: 1fr; }
  .wb-cta { flex-direction: column; align-items: stretch; }
  .wb-cta .btn { width: 100%; }
  .wb-download-band-inner { flex-direction: column; align-items: stretch; }
  .wb-download-band-actions { width: 100%; }
  .wb-download-band-actions .btn { flex: 1 1 auto; min-width: 0; }
}
