/* ============================================================
   H5 管理后台 · Pluto 风格界面层
   只负责视觉/布局，不改变任何表单字段和业务行为
   ============================================================ */
:root {
  --ui-navy: #0f1b2d;
  --ui-navy-2: #14243b;
  --ui-navy-3: #1c304b;
  --ui-ink: #172033;
  --ui-muted: #6f7c90;
  --ui-line: #e5ebf3;
  --ui-soft: #f4f7fb;
  --ui-blue: #2f6fed;
  --ui-blue-2: #1d56d8;
  --ui-teal: #18a999;
  --ui-orange: #ef8b3d;
  --ui-red: #d95656;
  --ui-shadow: 0 10px 28px rgba(20, 42, 76, 0.08);
  --ui-radius: 16px;
  --sidebar-width: 252px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--ui-soft);
}

/* ---------- 登录/公共页 ---------- */
.public-bar {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--ui-line);
}

.public-main {
  width: 100%;
  max-width: 1280px;
  margin: 20px auto 40px;
  padding: 0 18px;
}

body.sidebar-lock {
  overflow: hidden;
}

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #0c1524;
}

.login-page .public-bar {
  display: none;
}

.login-page .public-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.login-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 32px 20px;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: -12px;
  background-image: url("/static/login-bg.jpg");
  background-position: center;
  background-size: cover;
  filter: blur(2.5px) brightness(0.48) saturate(1.05);
  transform: scale(1.04);
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 19, 36, 0.9), rgba(8, 19, 36, 0.35) 56%, rgba(8, 19, 36, 0.72)),
    radial-gradient(circle at 20% 18%, rgba(24, 169, 153, 0.18), transparent 42%);
}

.login-card {
  position: relative;
  z-index: 2;
  width: calc(100vw - 40px);
  max-width: 426px;
  min-width: 0;
  box-sizing: border-box;
  padding: 30px 32px 26px;
  background: rgba(255, 255, 255, 0.965);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.login-brand img {
  width: auto;
  max-width: 118px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
}

.login-brand-copy strong {
  display: block;
  color: var(--ui-ink);
  font-size: 19px;
  letter-spacing: 0.03em;
}

.login-brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--ui-muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.login-title {
  margin: 0 0 4px;
  color: var(--ui-ink);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.login-subtitle {
  margin: 0 0 22px;
  color: var(--ui-muted);
  font-size: 13px;
}

.login-card .form-row {
  margin-bottom: 15px;
}

.login-card .form-row label {
  margin-bottom: 7px;
  color: #44536b;
  font-size: 12px;
  font-weight: 600;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #f9fbfe;
  color: var(--ui-ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-card input:focus {
  border-color: rgba(47, 111, 237, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0 16px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5a687d;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--ui-blue);
}

.login-forgot .btn-link {
  padding: 0;
  color: var(--ui-blue);
  font-size: 12px;
  text-decoration: none;
}

.login-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ui-blue), var(--ui-blue-2));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 9px 20px rgba(47, 111, 237, 0.26);
  cursor: pointer;
}

.login-submit:hover {
  filter: brightness(1.04);
}

.login-footnote {
  margin: 16px 0 0;
  color: #96a1b2;
  font-size: 11px;
  text-align: center;
}

.login-page .flash-list {
  position: fixed;
  z-index: 4;
  top: 18px;
  left: 50%;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
}

/* ---------- 主框架 ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  background:
    radial-gradient(circle at 20% 4%, rgba(47, 111, 237, 0.22), transparent 34%),
    linear-gradient(160deg, #0d192b 0%, #13243b 52%, #0f1b2d 100%);
  color: #dce6f4;
  box-shadow: 12px 0 32px rgba(10, 23, 42, 0.12);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 20px 19px 16px;
  background: #ffffff;
  color: #1f2937;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  text-decoration: none;
}

.sidebar-brand:hover {
  text-decoration: none;
}

.sidebar-logo {
  display: block;
  width: auto;
  max-width: 78px;
  height: 38px;
  margin: 0 auto;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
}

.sidebar-brand-sub {
  display: block;
  width: 100%;
  color: #b08d57;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
}

.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 15px 12px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.nav-home,
.nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #c4d2e5;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-home {
  margin-bottom: 10px;
  font-weight: 600;
}

.nav-home:hover,
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  text-decoration: none;
}

.nav-home.active,
.nav-links a.active {
  background: linear-gradient(90deg, rgba(47, 111, 237, 0.95), rgba(47, 111, 237, 0.55));
  color: #fff;
  box-shadow: 0 6px 16px rgba(24, 73, 172, 0.24);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  color: #b8cbe2;
  font-size: 11px;
  font-weight: 700;
}

.nav-home.active .nav-icon,
.nav-links a.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav-group {
  margin: 7px 0;
}

.nav-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  padding: 3px 10px;
  border-radius: 7px;
  color: #8199b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group > summary:hover {
  color: #c6d7ea;
}

.nav-group-label {
  white-space: nowrap;
}

.nav-chevron {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.16s ease;
}

.nav-group:not([open]) .nav-chevron {
  transform: rotate(-90deg);
}

.nav-links {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.sidebar-footer {
  flex: 0 0 auto;
  padding: 14px 15px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 13, 25, 0.26);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7ee0d2, #3c8df1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 12px;
}

.sidebar-profile-copy {
  min-width: 0;
}

.sidebar-profile-copy strong {
  display: block;
  overflow: hidden;
  color: #eef5fc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-copy small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #89a0bb;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout {
  margin-top: 10px;
}

.sidebar-logout button {
  width: 100%;
  min-height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: transparent;
  color: #9fb2c9;
  font-size: 11px;
  cursor: pointer;
}

.sidebar-logout button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.sidebar-backdrop {
  display: none;
}

.app-main {
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  max-width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  overflow-x: clip;
}

.workspace-bar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px 30px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--ui-line);
  backdrop-filter: blur(14px);
}

.workspace-left,
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #33445e;
}

.workspace-heading {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.workspace-kicker {
  color: #8a98ab;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.workspace-heading strong {
  color: var(--ui-ink);
  font-size: 14px;
  font-weight: 600;
}

.topbar-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: #fff;
  color: #516079;
  text-decoration: none;
}

.topbar-bell:hover {
  background: #f8faff;
  text-decoration: none;
}

.bell-glyph {
  font-size: 16px;
  line-height: 1;
}

.topbar-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 9px;
  background: var(--ui-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.workspace-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 3px;
}

.workspace-user-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.workspace-user-copy strong {
  color: #27364c;
  font-size: 11px;
}

.workspace-user-copy small {
  color: #91a0b3;
  font-size: 10px;
}

.app-content {
  width: 100%;
  max-width: 1480px;
  min-width: 0;
  margin: 0 auto;
  padding: 26px 30px 48px;
}

.app-content > .flash-list {
  margin-bottom: 16px;
}

.app-content .card {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: 0 5px 18px rgba(20, 42, 76, 0.045);
}

.app-content .page-head {
  margin-bottom: 18px;
}

.app-content .page-head h1 {
  color: var(--ui-ink);
  font-size: 22px;
  letter-spacing: 0.02em;
}

/* ---------- 首页看板 ---------- */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 12%, rgba(126, 224, 210, 0.2), transparent 30%),
    linear-gradient(120deg, #10213a 0%, #17365c 56%, #163c59 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 36, 64, 0.16);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -60px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 58px rgba(255, 255, 255, 0.025);
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
}

.dashboard-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: #9fc2df;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.dashboard-hero h1 {
  margin: 0 0 5px;
  font-size: 27px;
  letter-spacing: 0.03em;
}

.dashboard-hero p {
  margin: 0;
  color: #bed4e8;
  font-size: 12px;
}

.dashboard-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ecf6ff;
  font-size: 11px;
  text-decoration: none;
}

.hero-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  min-width: 0;
  gap: 15px;
  margin-top: 18px;
}

.kpi-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 18px 16px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ui-shadow);
}

.kpi-label {
  color: #7c8a9e;
  font-size: 11px;
}

.kpi-value {
  display: block;
  margin: 7px 0 3px;
  color: #1b2a41;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kpi-note {
  color: #96a3b4;
  font-size: 10px;
}

.kpi-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
}

.tone-blue { background: #eaf1ff; color: #3269df; }
.tone-teal { background: #e5f8f5; color: #129b8c; }
.tone-orange { background: #fff2e5; color: #d8792e; }
.tone-rose { background: #fdecef; color: #cb5666; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
  min-width: 0;
  gap: 16px;
  margin-top: 17px;
}

.dash-card {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: #fff;
  box-shadow: var(--ui-shadow);
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}

.dash-card-head h2 {
  margin: 0;
  color: #243348;
  font-size: 15px;
  font-weight: 600;
}

.dash-card-head p {
  margin: 2px 0 0;
  color: #96a3b4;
  font-size: 10px;
}

.dash-more {
  color: var(--ui-blue);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.dash-more:hover {
  text-decoration: underline;
}

.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 196px;
  padding: 12px 22px 18px;
  border-top: 1px solid #f0f4f9;
}

.trend-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  height: 165px;
}

.trend-value {
  color: #68778c;
  font-size: 10px;
}

.trend-bar-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 38px;
  height: 120px;
  border-radius: 7px;
  background: #f1f5fa;
}

.trend-bar {
  width: 100%;
  min-height: 5px;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, #4c8df7, #2d68da);
}

.trend-label {
  overflow: hidden;
  max-width: 100%;
  color: #9aa7b8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-list {
  display: grid;
  gap: 2px;
  padding: 4px 12px 14px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 8px;
  border-bottom: 1px solid #f2f5f9;
  text-decoration: none;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row:hover {
  background: #f8fbff;
  border-radius: 9px;
  text-decoration: none;
}

.task-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d4e2;
}

.task-dot.warn { background: #eaa04f; }
.task-dot.danger { background: #d95656; }
.task-dot.ok { background: #18a999; }

.task-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.task-copy strong {
  display: block;
  overflow: hidden;
  color: #33445c;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-copy small {
  display: block;
  margin-top: 2px;
  color: #9aa8ba;
  font-size: 9px;
}

.task-count {
  color: #23344c;
  font-size: 15px;
  font-weight: 700;
}

.dash-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr);
  min-width: 0;
  gap: 16px;
  margin-top: 17px;
}

.dash-card {
  min-width: 0;
  overflow: hidden;
}

.recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.recent-table th {
  padding: 8px 10px;
  color: #8a98aa;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.recent-table td {
  padding: 10px;
  border-top: 1px solid #f0f4f9;
  color: #526176;
  vertical-align: middle;
}

.recent-table td strong {
  color: #26374d;
  font-weight: 600;
}

.recent-order-id {
  color: #9aa8ba;
  font-size: 10px;
}

.status-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.5;
  white-space: nowrap;
}

.status-pending { background: #fff3e4; color: #b66b1c; }
.status-partial { background: #eaf1ff; color: #2f62c8; }
.status-picked { background: #e8f8f2; color: #18876f; }
.status-cancelled { background: #f1f3f6; color: #7a8798; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 16px 16px;
}

.dashboard-quick {
  margin-top: 17px;
}

.dashboard-quick .quick-links {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 4px 20px 20px;
}

.quick-empty {
  grid-column: 1 / -1;
  padding: 10px 2px;
  color: #8a98aa;
  font-size: 12px;
}

.quick-manage {
  border-top: 1px solid #f0f4f9;
  padding: 0 20px 16px;
}

.quick-manage summary {
  padding: 12px 0 10px;
  color: #5b6b80;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.quick-manage summary::-webkit-details-marker {
  display: none;
}

.quick-manage summary::after {
  content: "＋";
  float: right;
  color: #8b99aa;
  font-weight: 400;
}

.quick-manage[open] summary::after {
  content: "－";
}

.quick-picker {
  padding: 2px 0 0;
}

.quick-picker-hint {
  margin: 0 0 10px;
  color: #96a3b4;
  font-size: 11px;
}

.quick-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.quick-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #eef3f9;
  border-radius: 9px;
  color: #4d5f76;
  font-size: 12px;
  cursor: pointer;
}

.quick-pick input {
  flex: 0 0 auto;
  accent-color: var(--ui-blue);
}

.quick-pick-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #eef4ff;
  color: #3269df;
  font-size: 11px;
  font-weight: 700;
}

.quick-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 9px 10px;
  border: 1px solid #eef3f9;
  border-radius: 10px;
  color: #4d5f76;
  font-size: 11px;
  text-decoration: none;
}

.quick-link:hover {
  border-color: #d7e4f7;
  background: #f7faff;
  color: #2f62c8;
  text-decoration: none;
}

.quick-link span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #f0f5fc;
  color: #4774c8;
  font-size: 10px;
  font-weight: 700;
}

.empty-dash {
  padding: 20px;
  color: #95a2b3;
  font-size: 11px;
  text-align: center;
}

/* 列表页统一视觉 */
.app-content .search-bar {
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}

.app-content .table-responsive {
  border-radius: var(--ui-radius);
}

.app-content h1 {
  letter-spacing: 0.01em;
}

/* 列表页：在保留全部字段的前提下压缩表格，让右侧操作尽量一屏可见 */
.app-content .orders-table {
  font-size: 12px;
}

.app-content .orders-table th,
.app-content .orders-table td {
  padding: 8px 7px;
}

.app-content .orders-table .btn-small {
  padding: 3px 7px;
  font-size: 11px;
}

.app-content .orders-table .col-actions {
  min-width: 158px;
}

.app-content .orders-table .col-actions > .action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid,
  .dash-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-quick .quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .app-shell.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    z-index: 40;
    inset: 0;
    background: rgba(6, 15, 28, 0.54);
    backdrop-filter: blur(2px);
  }
  .app-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    overflow-x: hidden;
  }
  .menu-toggle {
    display: block;
  }
  .workspace-bar {
    padding: 9px 16px;
  }
  .app-content {
    padding: 18px 16px 38px;
  }
}

@media (max-width: 640px) {
  .workspace-heading {
    display: flex;
  }
  .workspace-kicker {
    display: none;
  }
  .workspace-heading strong {
    font-size: 12px;
  }
  .workspace-actions {
    gap: 7px;
  }
  .workspace-user-copy {
    display: none;
  }
  .dashboard-hero {
    display: block;
    padding: 21px 18px;
  }
  .dashboard-hero h1 {
    font-size: 23px;
  }
  .dashboard-hero-actions {
    justify-content: flex-start;
    margin-top: 15px;
  }
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .kpi-card {
    padding: 14px 13px;
  }
  .kpi-value {
    font-size: 23px;
  }
  .kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .dash-card-head {
    padding: 15px 15px 10px;
  }
  .trend-chart {
    gap: 7px;
    min-height: 175px;
    padding: 10px 12px 14px;
  }
  .trend-col {
    height: 145px;
  }
  .trend-bar-track {
    height: 102px;
  }
  .recent-table {
    min-width: 520px;
  }
  .dash-bottom .dash-card {
    overflow: hidden;
  }
  .dash-bottom .table-responsive {
    overflow-x: auto;
  }
  .quick-links {
    padding: 4px 12px 13px;
  }
  .login-screen {
    padding: 18px 13px;
  }
  .login-card {
    padding: 23px 20px 20px;
    border-radius: 16px;
  }
  .login-title {
    font-size: 24px;
  }
  .login-brand img {
    width: 44px;
    height: 44px;
  }
  .public-main {
    padding: 0 13px;
  }
}

@media (max-width: 700px) {
  .dashboard-quick .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }
  .quick-links {
    grid-template-columns: 1fr;
  }
}

/* 评论、点赞与送餐分类 */
.content-feedback {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line, #dbe3ee);
}
.feedback-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.like-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e4c5c0;
  background: #fff8f6;
  color: #b54a3e;
  border-radius: 999px;
  padding: 5px 13px;
  font-weight: 700;
  cursor: pointer;
}
.like-button.active {
  background: #b23a2a;
  border-color: #b23a2a;
  color: #fff;
}
.like-button span { font-size: 15px; line-height: 1; }
.feedback-count { color: #6f7f94; font-size: 13px; }
.comment-list { margin-top: 10px; }
.comment-item {
  padding: 9px 0;
  border-top: 1px solid #eef2f7;
}
.comment-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.comment-head strong { color: #20324d; font-size: 13px; }
.comment-delete { margin-left: auto; }
.comment-body {
  margin-top: 3px;
  color: #33445c;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-form {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 11px;
}
.comment-form textarea {
  flex: 1;
  min-width: 0;
  resize: vertical;
  border: 1px solid #d6e0ec;
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  color: #25364c;
}
.link-button {
  border: 0;
  background: transparent;
  color: #8b98aa;
  cursor: pointer;
  font: inherit;
  padding: 2px 4px;
}
.link-button:hover { color: #b23a2a; }
.link-button.danger { color: #b23a2a; }
.delivery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.delivery-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #dbe4ef;
  background: #fff;
  color: #40536b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.delivery-tab.active {
  background: #1f5eff;
  border-color: #1f5eff;
  color: #fff;
}
.delivery-quick-nav {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: -4px 0 16px;
  padding: 11px 13px;
  border: 1px solid #e4ebf5;
  border-radius: 13px;
  background: #f8faff;
}
.delivery-quick-label {
  flex: 0 0 auto;
  padding-top: 7px;
  color: #7a879a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.delivery-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.delivery-quick-link {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid #cfe0f8;
  border-radius: 999px;
  background: #fff;
  color: #285ca8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.delivery-quick-link:hover {
  background: #1f5eff;
  border-color: #1f5eff;
  color: #fff;
}
.delivery-card { scroll-margin-top: 86px; }
.delivery-card:target {
  border-color: #9dbcf0;
  box-shadow: 0 0 0 3px rgba(31,94,255,.1), 0 10px 30px rgba(39,64,111,.08);
}
.delivery-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.delivery-category {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #315a9e;
  font-size: 12px;
  font-weight: 600;
}
.category-manage-card { padding-top: 14px; padding-bottom: 14px; }
.category-manage summary {
  cursor: pointer;
  color: #41536a;
  font-weight: 600;
  font-size: 14px;
}
.category-create-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.category-create-form input {
  flex: 1;
  min-width: 180px;
  max-width: 340px;
  border: 1px solid #d6e0ec;
  border-radius: 9px;
  padding: 8px 11px;
  font: inherit;
}
.category-manage-list { margin-top: 11px; }
.category-manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #eef2f7;
  font-size: 13px;
}
.category-manage-row > span:first-child { font-weight: 600; color: #33455e; }
.category-manage-row .link-button { margin-left: auto; }
@media (max-width: 700px) {
  .comment-form { flex-direction: column; align-items: stretch; }
  .comment-form .btn { width: 100%; }
  .delivery-tabs { gap: 6px; }
  .delivery-tab { padding: 6px 11px; }
  .delivery-quick-nav { flex-direction: column; gap: 7px; padding: 10px 11px; }
  .delivery-quick-label { padding-top: 0; }
  .delivery-quick-list {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }
  .delivery-quick-link { flex: 0 0 auto; max-width: 210px; }
}

/* 侧栏安卓 App 下载入口 */
.sidebar-download {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 12px 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e7eef7;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sidebar-download:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}
.sidebar-download-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #2f6fed;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.sidebar-download > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sidebar-download strong {
  font-size: 12px;
  font-weight: 700;
}
.sidebar-download small {
  color: #9fb0c7;
  font-size: 10px;
}
@media (max-width: 900px) {
  .sidebar-download { margin: 0 12px 9px; }
}

/* 密码找回 / 强制改密 */
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
}
.password-request-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-left: 4px solid #f59e0b;
}
.password-request-banner strong { font-size: 16px; }
.password-change-card {
  max-width: 560px;
}
.password-reset-wrap {
  display: grid;
  place-items: center;
  min-height: 56vh;
  padding: 28px 16px;
}
.password-reset-card {
  width: min(460px, 100%);
  box-sizing: border-box;
  padding: 28px;
}
.password-reset-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 800;
  margin-bottom: 12px;
}
.password-reset-card h1 { margin: 0 0 6px; font-size: 24px; }
.password-reset-card .form-actions { margin-top: 20px; }
@media (max-width: 640px) {
  .password-request-banner { align-items: flex-start; flex-direction: column; }
  .password-reset-card { padding: 20px; }
}

/* 原料拖拽排序 */
.sort-hint { margin: 0 0 10px; }
.materials-sort-table .sort-col { width: 52px; }
.materials-sort-table .sort-cell { width: 52px; text-align: center; }
.drag-handle {
  width: 34px;
  height: 30px;
  border: 1px solid var(--line, #e3ded4);
  border-radius: 8px;
  background: #fff;
  color: #9a9285;
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.drag-handle:hover { color: var(--primary, #2f5fd0); border-color: var(--primary, #2f5fd0); }
.drag-handle:active { cursor: grabbing; }
.materials-sort-table tr.dragging { opacity: .55; background: #eef3ff; }
.materials-sort-table tr.dragging .drag-handle { cursor: grabbing; }
.sort-status { min-height: 22px; padding-top: 8px; font-size: 12px; color: var(--muted, #8b8378); }
.sort-status.pending { color: #9a6b16; }
.sort-status.saving { color: #2f5fd0; }
.sort-status.ok { color: #198754; }
.sort-status.error { color: #b02a37; }
.site-legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px 26px;
  color: #8a8378;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.site-legal-footer a {
  color: #756d62;
  text-decoration: none;
}
.site-legal-footer a:hover {
  color: #2f5fd0;
  text-decoration: underline;
}
.site-legal-sep { color: #b8afa2; }
@media (max-width: 700px) {
  .materials-sort-table .sort-col, .materials-sort-table .sort-cell { width: 44px; }
  .drag-handle { width: 30px; height: 28px; }
  .sort-hint { font-size: 12px; }
  .site-legal-footer { padding: 16px 12px 20px; font-size: 11px; }
}

/* 岗位与 FAQ 可见范围 */
.position-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 4px 0;
}
.position-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #e2d8c9;
  border-radius: 9px;
  background: #fffdf8;
  font-size: 13px;
  color: #3f3a33;
  cursor: pointer;
}
.position-choice:hover { border-color: #c9a86a; background: #fff9ec; }
.position-choice input { width: 15px; height: 15px; }
.position-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.position-rename-form { display: flex; align-items: center; gap: 8px; }
.position-rename-form input { min-width: 150px; max-width: 220px; }
.faq-audience-box {
  padding: 12px 14px;
  border: 1px dashed #d8cbb7;
  border-radius: 10px;
  background: #fffcf6;
}
.faq-audience-box .form-note { margin: 7px 0 0; }
.faq-audience-all {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-weight: 600;
}
.faq-audience-all input { width: 15px; height: 15px; }
.faq-article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
}
.faq-article-actions .inline-form { margin: 0; }

.position-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 6px 0 10px;
}
.position-checks .checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.position-checks .checkbox input { width: 16px; height: 16px; }
.position-all {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
  font-weight: 600;
}
.position-all input { width: 16px; height: 16px; }
.faq-article-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.faq-article-head h2 { margin: 0; }
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.article-actions .inline-form { margin: 0; }
.faq-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.audience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #d8dfe7;
  border-radius: 999px;
  background: #f7f9fc;
  color: #536170;
  font-size: 11px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .position-rename-form { flex-wrap: wrap; }
  .position-rename-form input { width: 100%; max-width: none; }
  .faq-article-head { flex-direction: column; gap: 7px; }
  .article-actions .btn { min-height: 30px; }
}

/* 原料标签 */
.tag-filter-bar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 14px}
.tag-filter{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #dbe3ef;border-radius:999px;background:#fff;color:#3b4a61;text-decoration:none;font-size:13px;line-height:1.2}
.tag-filter span{color:#7b8798;font-size:12px}
.tag-filter:hover{border-color:#9db4d5;color:#1d4ed8;text-decoration:none}
.tag-filter.active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.tag-filter.active span{color:rgba(255,255,255,.8)}
.report-tag-filter{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 12px}
.tag-filter-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid #dbe3ef;border-radius:999px;background:#fff;color:#3b4a61;font-size:12px;line-height:1.2;cursor:pointer}
.tag-filter-chip:hover{border-color:#9db4d5;color:#1d4ed8}
.tag-filter-chip.is-active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.tag-filter-count{font-size:11px;opacity:.72}
.material-tags{margin-top:4px;display:flex;flex-wrap:wrap;gap:2px}
.report-tag-empty{padding:16px;text-align:center;color:#7b8798;font-size:13px}
.tag-badge{display:inline-block;padding:3px 8px;margin:2px 3px 2px 0;border-radius:999px;background:#eef4ff;color:#1d4ed8;text-decoration:none;font-size:12px;line-height:1.4;border:1px solid #dbe7ff}
.tag-badge:hover{background:#dbe7ff;color:#1e40af;text-decoration:none}
.tag-check-grid{display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px 12px;border:1px solid #e4e9f2;border-radius:10px;background:#fbfcff}
.tag-check{white-space:nowrap}
.tag-manage{margin-top:16px}
.tag-manage summary{cursor:pointer;font-weight:700;color:#1e293b;font-size:15px}
.tag-manage[open] summary{margin-bottom:10px}
.tag-create-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 12px}
.tag-create-form input{border:1px solid #dbe3ef;border-radius:8px;padding:8px 10px;min-width:220px;max-width:360px}
.tag-manage-list{display:flex;flex-direction:column;gap:8px}
.tag-manage-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #edf1f7}
.tag-manage-row:first-child{border-top:0}
.tag-rename-form{display:flex;align-items:center;gap:6px}
.tag-rename-form input{border:1px solid #dbe3ef;border-radius:8px;padding:6px 8px;width:180px}
@media (max-width:640px){
  .tag-filter-bar{gap:6px}
  .tag-filter{padding:6px 10px;font-size:12px}
  .report-tag-filter{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
  .tag-filter-chip{flex:0 0 auto;padding:6px 10px;font-size:12px}
  .tag-create-form input{min-width:0;flex:1}
  .tag-manage-row{align-items:flex-start}
  .tag-rename-form{flex:1 1 100%}
  .tag-rename-form input{flex:1;width:auto}
}

/* SMS status */
.sms-counts{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.sms-count{background:#fff;border:1px solid #eadfce;border-radius:10px;padding:8px 12px;color:#5c5146;font-size:13px;box-shadow:0 4px 14px rgba(60,40,18,.04)}
.sms-count strong{color:#1f2b3d;margin-left:4px}
.sms-count.danger{background:#fff4f2;border-color:#f1c6bf;color:#b23a2a}
.sms-count.warning{background:#fff9eb;border-color:#eddcb3;color:#9a6a18}
.sms-filter-card{margin-bottom:18px}
.sms-filter-card .search-bar{margin:0}
.sms-status-table{font-size:12px;min-width:1120px}
.sms-status-table th{white-space:nowrap}
.sms-status-table td{vertical-align:top;padding:10px 8px}
.sms-message-id{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;word-break:break-all;max-width:210px;color:#7a6a58}
.sms-error-text{color:#b23a2a;font-size:11px;margin-top:5px;max-width:230px;word-break:break-word}
.cell-muted{color:#8b8072;font-size:11px;line-height:1.45;margin-top:3px}
.sms-filter-card .search-bar .grow{flex:1;min-width:180px}
.inline-form{display:inline-flex;margin:0}
@media (max-width:700px){
  .sms-counts{gap:6px}
  .sms-count{font-size:12px;padding:6px 9px}
  .sms-status-table{min-width:980px}
  .sms-filter-card .search-bar{flex-direction:column;align-items:stretch}
}
.status-badge{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px;line-height:1.4;white-space:nowrap;background:#f1f3f6;color:#5f6b7a}
.status-badge.st-ok{background:#e8f8f2;color:#18876f}
.status-badge.st-danger{background:#fff0ed;color:#b23a2a}
.status-badge.st-warn{background:#fff6e6;color:#a66a18}
