.login-hint { text-align: center; color: #c0392b; font-size: 13px; margin: -8px 0 16px; padding: 8px 12px; background: #fdecea; border-radius: 8px; }

/* ========== 管理后台设计系统 ========== */
.hidden { display: none !important; }
.admin-body-root {
  background: #eef1f6;
  min-height: 100vh;
}

.admin-main {
  background: linear-gradient(180deg, #eef1f6 0%, #f4f6f9 120px);
}

.admin-page {
  width: 100%;
  max-width: none;
  margin: 0;
  animation: adminPageIn 0.28s ease;
}

@keyframes adminPageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ========== 大气科技型登录页 ========== */

/* --- 背景浮动光晕粒子 --- */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(1400px 800px at 10% 5%, rgba(56, 189, 248, 0.20), transparent 60%),
    radial-gradient(1200px 700px at 85% 20%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(1000px 600px at 50% 95%, rgba(37, 99, 235, 0.22), transparent 50%),
    linear-gradient(145deg, #060e1e 0%, #0b1f3a 35%, #112e52 65%, #0a1628 100%);
}

/* 粒子容器 */
.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background-image:
    /* 大圆粒子 */
    radial-gradient(2px 2px at 5% 20%, rgba(56, 189, 248, 0.7), transparent),
    radial-gradient(3px 3px at 15% 60%, rgba(99, 102, 241, 0.6), transparent),
    radial-gradient(2px 2px at 25% 85%, rgba(56, 189, 248, 0.5), transparent),
    radial-gradient(4px 4px at 40% 10%, rgba(56, 189, 248, 0.8), transparent),
    radial-gradient(2px 2px at 55% 45%, rgba(99, 102, 241, 0.5), transparent),
    radial-gradient(3px 3px at 70% 30%, rgba(56, 189, 248, 0.6), transparent),
    radial-gradient(2px 2px at 85% 65%, rgba(99, 102, 241, 0.7), transparent),
    radial-gradient(2px 2px at 90% 15%, rgba(56, 189, 248, 0.4), transparent),
    radial-gradient(3px 3px at 45% 75%, rgba(56, 189, 248, 0.6), transparent),
    radial-gradient(2px 2px at 65% 90%, rgba(99, 102, 241, 0.5), transparent),
    radial-gradient(2px 2px at 10% 40%, rgba(56, 189, 248, 0.5), transparent),
    radial-gradient(3px 3px at 80% 50%, rgba(99, 102, 241, 0.6), transparent),
    radial-gradient(2px 2px at 30% 45%, rgba(56, 189, 248, 0.4), transparent),
    radial-gradient(2px 2px at 95% 80%, rgba(99, 102, 241, 0.5), transparent),
    radial-gradient(4px 4px at 20% 30%, rgba(56, 189, 248, 0.7), transparent);
  animation: loginParticles 8s ease-in-out infinite alternate;
  z-index: 0;
}

/* 科技网格 overlay */
.login-page::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
}

/* 浮动光晕装饰 */
.login-page .login-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
  animation: loginOrbFloat 12s ease-in-out infinite alternate;
}
.login-page .login-bg-orb:nth-child(1) {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  top: -10%; left: -8%;
  animation-duration: 14s;
  animation-delay: -2s;
}
.login-page .login-bg-orb:nth-child(2) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.10), transparent 70%);
  bottom: -8%; right: -5%;
  animation-duration: 16s;
  animation-delay: -4s;
}
.login-page .login-bg-orb:nth-child(3) {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s;
  animation-delay: -6s;
}

.login-wrap-admin {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: center;
  width: min(920px, 100%);
  animation: loginFadeIn 0.8s ease-out;
}

/* --- 左侧品牌区 --- */
.login-brand-admin {
  color: #fff;
  animation: loginSlideInLeft 1s ease-out;
}

.login-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.20));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15);
  position: relative;
  overflow: hidden;
}
.login-logo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  animation: loginShimmer 3s ease-in-out infinite;
}

.login-brand-admin h1 {
  font-size: max(30px, min(5.5vw, 40px));
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 30%, #38bdf8 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loginGradientShift 6s ease-in-out infinite alternate;
}

.login-brand-admin p {
  font-size: 15px;
  opacity: 0.75;
  margin: 0;
  letter-spacing: 3px;
  font-weight: 300;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  border-right: 2px solid rgba(56, 189, 248, 0.6);
  animation: loginTypeExpand 2s ease-out 0.5s forwards, loginBlink 1s step-end 0.5s infinite;
}

/* 品牌区装饰线 */
.login-brand-deco {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
}
.login-brand-deco-line {
  flex: 1;
  height: 1px;
  max-width: 120px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
}
.login-brand-deco-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  animation: loginPulse 2s ease-in-out infinite;
}

/* --- 登录卡片 --- */
.login-box {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: max(28px, min(4vw, 40px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: loginSlideInRight 1s ease-out;
  position: relative;
  overflow: hidden;
}
/* 卡片顶部光效 */
.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 300%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.3) 25%, rgba(99, 102, 241, 0.4) 50%, rgba(56, 189, 248, 0.3) 75%, transparent 100%);
  animation: loginBorderGlow 4s ease-in-out infinite;
}

.login-box h2 {
  margin: 0 0 28px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 2px;
  text-align: center;
}
.login-box h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 2px;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.login-field:focus-within label {
  color: rgba(56, 189, 248, 0.9);
}

.login-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  box-sizing: border-box;
}
.login-field input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.login-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.login-field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08), 0 0 20px rgba(56, 189, 248, 0.05);
  background: rgba(255, 255, 255, 0.07);
}
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  -webkit-box-shadow: 0 0 0px 1000px rgba(15, 30, 60, 0.9) inset;
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

/* 验证码 */
.login-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.login-captcha-row input {
  flex: 1;
  min-width: 0;
  width: auto;
  background: rgba(255, 255, 255, 0.04);
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}
.login-captcha-row input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.login-captcha-row input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.login-captcha-row input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.login-captcha-tip {
  font-size: 12px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.35);
}

.login-captcha-img-wrap {
  flex-shrink: 0;
  width: 130px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.login-captcha-img-wrap:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.06);
}
.login-captcha-img-wrap.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.login-captcha-img-wrap img {
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.login-captcha-img-wrap:not(.has-image) img { display: none; }

.login-captcha-placeholder {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: none;
}
.login-captcha-img-wrap.has-image .login-captcha-placeholder { display: none; }

/* --- 登录按钮 --- */
.login-submit {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8, #2563eb);
  background-size: 200% 200%;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}
.login-submit::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  transform: scale(0.8);
}
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.50);
  animation: loginBtnGradient 3s ease infinite;
}
.login-submit:hover::after {
  opacity: 1;
  transform: scale(1);
}
.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.30);
}

.login-foot-tip {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}

/* --- 提示消息 --- */
.login-hint {
  text-align: center;
  color: #fca5a5;
  font-size: 13px;
  margin: -4px 0 20px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.admin-user-tag {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.admin-user-menu {
  position: relative;
}

.admin-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  max-width: min(220px, 42vw);
}

.admin-user-trigger:hover,
.admin-user-menu.open .admin-user-trigger {
  background: rgba(255, 255, 255, 0.18);
}

.admin-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-user-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-caret {
  font-size: 11px;
  opacity: 0.75;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.admin-user-menu.open .admin-user-caret {
  transform: rotate(180deg);
}

.admin-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #eef1f6;
  overflow: hidden;
  z-index: 300;
}

.admin-user-dropdown-head {
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f6;
  background: #fafbfc;
}

.admin-user-dropdown-head strong {
  display: block;
  font-size: 14px;
  color: #1a2332;
  margin-bottom: 2px;
}

.admin-user-dropdown-head span {
  display: block;
  font-size: 12px;
  color: #8e96a3;
}

.admin-user-dropdown-item {
  display: block;
  width: 100%;
  border: none;
  background: #fff;
  color: #1a2332;
  text-align: left;
  padding: 11px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-user-dropdown-item:hover {
  background: #f0f7ff;
  color: #1B3A5C;
}

.admin-user-dropdown-logout {
  border-top: 1px solid #eef1f6;
  color: #c62828;
}

.admin-user-dropdown-logout:hover {
  background: #fff5f5;
  color: #c62828;
}

.admin-pwd-modal-box {
  width: min(420px, 100%);
}

.admin-logout {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}

.admin-logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-footer {
  margin-top: auto;
  padding: 20px 0 10px;
  border-top: 1px solid #dde2ea;
  font-size: 12px;
  color: #8e96a3;
}

.admin-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.admin-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.6;
}

.admin-footer-brand {
  font-weight: 600;
  color: #5a6474;
}

.admin-footer-version {
  color: #1B3A5C;
  font-weight: 500;
}

.admin-footer-links a {
  color: #4A90D9;
  -webkit-text-decoration: none;
  text-decoration: none;
}

.admin-footer-links a:hover {
  -webkit-text-decoration: underline;
  text-decoration: underline;
}

.admin-footer-sep { opacity: 0.45; }

.admin-footer-login {
  width: min(920px, 100%);
  margin-top: 0;
  padding: 16px 0 8px;
  border-top: none;
}

.admin-footer-login .admin-footer-inner {
  color: rgba(255, 255, 255, 0.72);
}

.admin-footer-login .admin-footer-brand,
.admin-footer-login .admin-footer-version {
  color: rgba(255, 255, 255, 0.88);
}

.admin-footer-login .admin-footer-links a {
  color: rgba(255, 255, 255, 0.92);
}

/* 页头 */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dde2ea;
}

.page-head-main { min-width: 0; flex: 1; }

.page-title {
  font-size: max(20px, min(3vw, 24px));
  font-weight: 700;
  margin: 0;
  color: #1a2332;
  line-height: 1.3;
}

.page-subtitle {
  font-size: 13px;
  color: #8e96a3;
  margin: 6px 0 0;
  line-height: 1.5;
}

.page-desc { font-size: 13px; color: #8e96a3; margin: 6px 0 0; }

.page-head-actions,
.page-toolbar,
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 卡片与表格（admin 作用域覆盖） */
.admin-main .card {
  background: #fff;
  border-radius: 14px;
  padding: max(18px, min(2.5vw, 24px));
  margin-bottom: 16px;
  border: 1px solid #eef1f6;
  box-shadow: 0 3px 16px rgba(15, 40, 71, 0.05);
}

.admin-main .card > h4,
.admin-main .card-head-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #1a2332;
  padding-left: 10px;
  border-left: 3px solid #1B3A5C;
}

.admin-main .card:last-child { margin-bottom: 0; }

.tpl-form-card {
  margin-bottom: 16px !important;
  border-color: #d6e8ff;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 48px);
}

.tpl-form-card > .form-row:last-of-type,
.tpl-form-card > .form-group:last-of-type {
  margin-bottom: 0;
}

.admin-main .table-scroll {
  margin: 0 -4px;
  padding: 0 4px;
}

.admin-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-main table thead th {
  text-align: left;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6474;
  background: #f8f9fb;
  border-bottom: 1px solid #eef1f6;
  white-space: nowrap;
}

.admin-main table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f0f2f6;
  color: #333;
  vertical-align: middle;
}

.admin-main table tbody tr:hover td {
  background: #fafbfc;
}

.admin-main table tbody tr:last-child td {
  border-bottom: none;
}

.admin-main table .empty,
.admin-main table td.empty {
  text-align: center;
  color: #8e96a3;
  padding: 32px 16px;
}

.admin-main .text-muted {
  color: #8e96a3;
  font-size: 12px;
}

.admin-main .money {
  color: #e85d4c;
  font-weight: 600;
  white-space: nowrap;
}

/* 按钮 */
.admin-main .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #dde2ea;
  background: #fff;
  color: #1a2332;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  -webkit-text-decoration: none;
  text-decoration: none;
  line-height: 1.4;
}

.admin-main .btn-sm:hover {
  border-color: #4A90D9;
  color: #1B3A5C;
  background: #f0f7ff;
}

.admin-main .btn-sm.primary {
  background: linear-gradient(135deg, #1B3A5C, #2E5A8C);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 58, 92, 0.2);
}

.admin-main .btn-sm.primary:hover {
  opacity: 0.92;
  color: #fff;
  background: linear-gradient(135deg, #1B3A5C, #2E5A8C);
}

.admin-main .btn-sm.danger {
  border-color: #ffcdd2;
  color: #c62828;
  background: #fff5f5;
}

.admin-main .btn-sm.danger:hover {
  background: #ffebee;
  border-color: #ef9a9a;
}

/* 表单 */
.admin-main .form-group {
  margin-bottom: 16px;
}

.admin-main .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5a6474;
  margin-bottom: 6px;
}

.admin-main .form-group input,
.admin-main .form-group select,
.admin-main .form-group textarea,
.admin-main .tpl-search,
.admin-main .svc-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  font-size: 14px;
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-main .page-toolbar .tpl-search,
.admin-main .page-head-actions .tpl-search,
.admin-main .svc-toolbar .svc-select {
  width: auto;
  min-width: 160px;
}

.admin-main .form-group input:focus,
.admin-main .form-group select:focus,
.admin-main .form-group textarea:focus,
.admin-main .tpl-search:focus {
  outline: none;
  border-color: #4A90D9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
  background: #fff;
}

.admin-main .form-tip {
  font-size: 12px;
  color: #8e96a3;
  line-height: 1.6;
  margin-top: 8px;
}

.admin-main .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.settings-panel { margin-bottom: 16px; }

.settings-panel .card h4 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid #1B3A5C;
}

.oss-migrate-card { margin-top: 16px; }

.oss-migrate-progress {
  margin-bottom: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0f6fc 0%, #f8fafc 100%);
  border: 1px solid #d4e4f7;
  border-radius: 10px;
}

.oss-migrate-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.oss-migrate-phase {
  color: #1B3A5C;
  font-weight: 600;
}

.oss-migrate-pct {
  color: #2E5A8C;
  font-weight: 700;
  font-size: 15px;
}

.oss-migrate-bar {
  height: 10px;
  background: #e8edf3;
  border-radius: 999px;
  overflow: hidden;
}

.oss-migrate-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1B3A5C, #2E5A8C);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.oss-migrate-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 12px;
  color: #5a6474;
}

.oss-migrate-stats strong {
  color: #1B3A5C;
}

.oss-migrate-current {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
  line-height: 1.5;
}

.oss-migrate-errors {
  margin-top: 10px;
  font-size: 12px;
  color: #c62828;
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
}

.log-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.log-filter-input {
  min-width: 180px;
  flex: 1 1 180px;
}

.log-filter-select,
.log-filter-date {
  min-width: 130px;
}

.log-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.log-msg-cell {
  max-width: 320px;
}

.log-file-cell {
  max-width: 220px;
  word-break: break-all;
  font-size: 12px;
}

.log-detail-box {
  width: min(760px, 100%);
}

.log-detail-body {
  max-height: 65vh;
  overflow: auto;
}

.log-detail-pre {
  margin: 8px 0 0;
  padding: 12px;
  background: #f5f7fa;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.log-trace-pre {
  max-height: 240px;
  overflow: auto;
}

.upgrade-card { margin-top: 16px; }

.upgrade-status {
  padding: 14px 16px;
  background: #f8f9fb;
  border-radius: 8px;
  font-size: 13px;
  color: #5a6474;
  line-height: 1.7;
}

.upgrade-ver-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 8px;
}

.upgrade-ver-row strong { color: #1B3A5C; }

.upgrade-pending {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #5a6474;
  line-height: 1.7;
}

.upgrade-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.upgrade-history-table { margin-top: 16px; }

.upgrade-history-table.hidden { display: none; }

.upgrade-key-box {
  margin: 14px 0 16px;
  padding: 14px 16px;
  background: #f8f9fb;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
}

.upgrade-key-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.upgrade-key-head strong { color: #1B3A5C; font-size: 14px; }

.upgrade-key-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.upgrade-key-badge.ok { background: #e8f5e9; color: #2e7d32; }
.upgrade-key-badge.warn { background: #fff3e0; color: #e65100; }
.upgrade-key-badge.err { background: #ffebee; color: #c62828; }

.upgrade-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.upgrade-key-input {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 13px;
  font-family: Consolas, Monaco, monospace;
}

.upgrade-key-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: #5a6474;
}

.btn-link-sm {
  background: none;
  border: none;
  color: #c62828;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  -webkit-text-decoration: underline;
  text-decoration: underline;
}

.upgrade-key-url {
  margin-top: 8px;
  font-size: 12px;
  color: #5a6474;
  word-break: break-all;
}

.upgrade-key-url code {
  background: #eef1f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.sys-meta-card { margin-top: 0; }

.sys-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.sys-meta-item {
  padding: 12px 14px;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px solid #eef1f6;
}

.sys-meta-label {
  display: block;
  font-size: 12px;
  color: #8e96a3;
  margin-bottom: 4px;
}

.sys-meta-val {
  font-size: 13px;
  color: #1a2332;
  word-break: break-all;
}

.sys-meta-val a { color: #4A90D9; }

.sys-runtime-meta {
  padding: 12px 14px;
  background: #f0f7ff;
  border-radius: 8px;
  font-size: 12px;
  color: #5a6474;
  line-height: 1.7;
}

.settings-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #eef1f6;
  border-radius: 12px;
  box-shadow: 0 -4px 20px rgba(15, 40, 71, 0.06);
  backdrop-filter: blur(8px);
}

.settings-save-tip {
  font-size: 12px;
  color: #8e96a3;
}

.form-tip-top { margin-top: 0; margin-bottom: 12px; }

.form-actions-inline {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1a2332;
  cursor: pointer;
}

.switch-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

@media (max-width: 768px) {
  .sys-meta-grid { grid-template-columns: 1fr; }
  .settings-save-bar { flex-direction: column; align-items: stretch; }
  .settings-save-bar .btn-sm { width: 100%; }
}

.tpl-empty {
  text-align: center;
  padding: 40px 24px;
  color: #8e96a3;
}

.tpl-empty p { margin: 0; font-size: 14px; }

.badge-tip {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #fff3e0;
  color: #e65100;
  font-weight: 500;
}

@media (max-width: 768px) {
  .login-wrap-admin {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .login-brand-admin { text-align: center; }
  .login-logo { margin-left: auto; margin-right: auto; }
  .admin-user-name { display: none; }
  .admin-user-trigger { padding-right: 10px; }
}

.admin-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(135deg, #1B3A5C 0%, #2E5A8C 100%);
  color: #fff;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(27, 58, 92, 0.15);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: #1b3a5c;
}

.admin-notify-btn:hover {
  background: #f5f8fc;
}

.admin-notify-btn.admin-sound-off {
  opacity: 0.55;
  background: #f0f2f5;
}

.admin-toast {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 10050;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #1b3a5c;
  color: #fff;
  box-shadow: 0 8px 28px rgba(27, 58, 92, 0.28);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.admin-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.admin-toast strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.admin-toast span {
  display: block;
  font-size: 13px;
  opacity: 0.88;
  line-height: 1.45;
}

.admin-notify-icon {
  font-size: 18px;
  line-height: 1;
}

.admin-notify-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e85d4c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 6px;
  margin-left: auto;
  border-radius: 9px;
  background: #e85d4c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.admin-sidebar .nav-item.nav-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-group-title .nav-badge {
  margin-left: auto;
  flex-shrink: 0;
}

.admin-header-right a {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}

.admin-header-right a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-body {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.admin-sidebar {
  width: 272px;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 0.28s ease;
}

.admin-sidebar::-webkit-scrollbar { width: 5px; }
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  padding: 11px 18px;
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 14px;
  border-left: none;
  transition: all 0.2s;
}

.admin-sidebar .nav-sub {
  padding-left: 42px;
  font-size: 13px;
}

.admin-sidebar .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar .nav-item.active {
  background: rgba(74, 144, 217, 0.15);
  color: #fff;
  border-left: none;
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
  flex-shrink: 0;
}

.nav-group {
  margin: 4px 0;
}

.nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 11px 18px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.nav-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.nav-group-title:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.nav-group.has-active > .nav-group-title {
  color: rgba(255, 255, 255, 0.92);
}

.nav-group.has-active > .nav-group-title .nav-icon {
  color: #4A90D9;
  opacity: 1;
}

.nav-arrow {
  font-size: 12px;
  transition: transform 0.25s ease;
  opacity: 0.45;
  flex-shrink: 0;
}

.nav-group.open .nav-arrow {
  transform: rotate(90deg);
  opacity: 0.75;
}

.nav-group-items {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
}

.nav-group.open .nav-group-items {
  max-height: 480px;
  opacity: 1;
  padding: 2px 0 6px;
}

.nav-sidebar-foot {
  padding: 12px 18px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}

.nav-sidebar-foot button {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-sidebar-foot button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  top: 56px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 150;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: max(16px, min(3vw, 28px));
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}

.dashboard-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ===== Dashboard Banner ===== */
.dash-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 28px 32px;
  min-height: 110px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 32px rgba(8, 49, 203, 0.18);
}

.dash-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(120deg, #0831cb 0%, #1B3A5C 42%, #2558a8 72%, #1a6ea8 100%);
  z-index: 0;
}

/* 装饰光晕 */
.dash-banner-bg::before {
  content: '';
  position: absolute;
  top: -40px;
  right: 80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dash-banner-bg::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 260px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(74,190,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.dash-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.dash-banner-left {}

.dash-banner-greeting {
  font-size: max(22px, min(4vw, 30px));
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.dash-banner-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

.dash-banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.dash-refresh-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

.dash-refresh-icon {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.4s;
}

.dash-refresh-btn:active .dash-refresh-icon {
  transform: rotate(360deg);
}

/* Banner 中的 badge */
.dash-banner .dash-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
}

.dash-page-head {
  margin-bottom: 20px;
}

.dash-page-head .page-subtitle {
  margin-top: 6px;
}

.dash-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.dash-alert {
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: opacity .15s;
}

.dash-alert:hover { opacity: 0.88; }

.dash-alert-warn {
  background: #fff3e0;
  color: #e65100;
}

.dash-alert-info {
  background: #e8f0fa;
  color: #1B3A5C;
}

.dash-alert-danger {
  background: #fdecea;
  color: #c62828;
}

.dash-todo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dash-todo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid #eef1f6;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(15, 40, 71, 0.06);
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
  overflow: hidden;
}

.dash-todo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: #eef1f6;
  transition: opacity 0.2s;
}

.dash-todo-orange::before { background: linear-gradient(90deg, #e65100, #ff8f00); }
.dash-todo-blue::before   { background: linear-gradient(90deg, #0831cb, #4A90D9); }
.dash-todo-purple::before { background: linear-gradient(90deg, #722ed1, #b37feb); }
.dash-todo-red::before    { background: linear-gradient(90deg, #c62828, #e85d4c); }

.dash-todo-card:hover {
  border-color: #c5d4e8;
  box-shadow: 0 8px 28px rgba(15, 40, 71, 0.12);
  transform: translateY(-2px);
}

.dash-todo-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.dash-todo-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2332;
}

.dash-todo-desc {
  font-size: 12px;
  color: #8e96a3;
  margin-top: 4px;
}

.dash-todo-orange .dash-todo-value { color: #e65100; }
.dash-todo-blue .dash-todo-value { color: #0831cb; }
.dash-todo-purple .dash-todo-value { color: #722ed1; }
.dash-todo-red .dash-todo-value { color: #c62828; }

.dash-side-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.dash-link {
  font-size: 13px;
  color: #1B3A5C;
  -webkit-text-decoration: none;
  text-decoration: none;
}

.dash-link:hover { -webkit-text-decoration: underline; text-decoration: underline; }

.dash-tip-list {
  margin: 0;
  padding-left: 18px;
  color: #5a6474;
  font-size: 13px;
  line-height: 1.8;
}

.dash-tip-list a {
  color: #1B3A5C;
}

.quick-link {
  position: relative;
}

.ql-text { flex: 1; }

.ql-badge {
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e85d4c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1100px) {
  .dash-todo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dash-todo-grid {
    grid-template-columns: 1fr;
  }
}

.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: max(16px, min(3vw, 24px));
}

.dash-greet {
  font-size: max(20px, min(4vw, 26px));
  font-weight: 700;
  color: #1a2332;
  margin: 0;
}

.dash-date {
  font-size: 13px;
  color: #8e96a3;
  margin-top: 6px;
}

.dash-welcome-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.dash-badge-ok {
  background: #e8f5ef;
  color: #0d6b4e;
}

.dash-badge-warn {
  background: #fff3e0;
  color: #e65100;
}

.dash-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dash-info-card .dash-panel-head { margin-bottom: 12px; }

.dash-info-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eef1f6;
  color: #8e96a3;
}

.dash-info-tag-dev {
  background: #f3eeff;
  color: #722ed1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  overflow: hidden;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f6;
  border-right: 1px solid #eef1f6;
  min-width: 0;
  background: #fafbfc;
}

.info-item:nth-child(even) { background: #fff; }
.info-item:nth-last-child(-n+2) { border-bottom: none; }
.info-item:nth-child(2n) { border-right: none; }

.info-label {
  font-size: 11px;
  color: #8e96a3;
  font-weight: 500;
}

.info-value {
  font-size: 13px;
  color: #1a2332;
  word-break: break-all;
  line-height: 1.45;
}

.info-value.info-highlight {
  color: #1B3A5C;
  font-weight: 600;
}

.info-value.info-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.dash-stats-primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: max(12px, min(2vw, 20px));
  margin-bottom: 20px;
}

.dash-stats-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: max(10px, min(2vw, 16px));
  margin-bottom: 24px;
}

.stat-card-v2 {
  background: #fff;
  border-radius: 16px;
  padding: max(16px, min(2.5vw, 24px));
  display: flex;
  align-items: center;
  gap: max(12px, min(2vw, 20px));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 1px solid #eef1f6;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}

.stat-card-v2:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.11);
  transform: translateY(-2px);
}

/* 卡片顶部彩色线 */
.stat-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.stat-blue::before  { background: linear-gradient(90deg, #0831cb, #4A90D9); }
.stat-gold::before  { background: linear-gradient(90deg, #c9a962, #f5c842); }
.stat-orange::before { background: linear-gradient(90deg, #e65100, #ff8f00); }
.stat-green::before { background: linear-gradient(90deg, #0d6b4e, #2da36e); }

.stat-icon {
  width: max(46px, min(8vw, 56px));
  height: max(46px, min(8vw, 56px));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: max(20px, min(3vw, 24px));
  font-weight: 700;
  flex-shrink: 0;
}

.stat-blue .stat-icon  { background: linear-gradient(135deg, #e8f0fa, #c8dcf7); color: #0831cb; }
.stat-gold .stat-icon  { background: linear-gradient(135deg, #fff8e6, #ffeaa0); color: #b8860b; }
.stat-orange .stat-icon { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #e65100; }
.stat-green .stat-icon { background: linear-gradient(135deg, #e8f5ef, #b6e8cf); color: #0d6b4e; }

.stat-body { min-width: 0; flex: 1; }
.stat-label { font-size: 12px; color: #8e96a3; margin: 0; }
.stat-num {
  font-size: max(24px, min(4vw, 30px));
  font-weight: 800;
  color: #1a2332;
  margin: 4px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.stat-sub { font-size: 11px; color: #b0b8c4; }

.stat-mini {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #eef1f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stat-mini-label { font-size: 12px; color: #8e96a3; }
.stat-mini strong { font-size: max(18px, min(3vw, 22px)); color: #1B3A5C; }

.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: start;
}

.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dash-panel-head h4,
.dash-panel > h4 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1a2332;
}

.dash-panel-head h4 { margin-bottom: 0; }
.dash-panel-head a { font-size: 13px; color: #4A90D9; -webkit-text-decoration: none; text-decoration: none; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 640px;
  width: 100%;
}

.dash-table { font-size: 13px; min-width: 560px; }
.dash-table th { font-size: 12px; color: #8e96a3; font-weight: 500; background: #fafbfc; white-space: nowrap; }
.dash-table .money { font-weight: 600; color: #e85d4c; white-space: nowrap; }
.dash-table .order-no { font-size: 12px; background: #f4f6f9; padding: 2px 6px; border-radius: 4px; }

.order-cards-mobile { display: none; gap: 12px; }
.order-card-mobile {
  background: #f8f9fb;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  padding: 14px 16px;
}
.ocm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.ocm-service { font-weight: 600; font-size: 14px; color: #1a2332; }
.ocm-meta { font-size: 12px; color: #8e96a3; margin-top: 4px; }
.ocm-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef1f6; }

.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid #eef1f6;
  color: #333;
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 13px;
  min-width: 0;
  transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
}

.quick-link:hover {
  background: #eef6ff;
  border-color: #c5d8f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(8,49,203,0.08);
  color: #1a2332;
}

.ql-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.ql-blue { background: #e8f0fa; color: #1B3A5C; }
.ql-green { background: #e8f5ef; color: #0d6b4e; }
.ql-gold { background: #fff8e6; color: #c9a962; }
.ql-purple { background: #f3eeff; color: #722ed1; }
.ql-orange { background: #fff3e0; color: #e65100; }
.ql-red { background: #fdecea; color: #c62828; }

.dash-tip ul { margin: 0; padding-left: 18px; font-size: 13px; color: #666; line-height: 1.8; }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-paid, .status-assigned { background: #e3f2fd; color: #1565c0; }
.status-accepted, .status-in_service { background: #e8f5e9; color: #2e7d32; }
.status-completed { background: #f3e5f5; color: #7b1fa2; }
.status-cancelled, .status-refunded { background: #f5f5f5; color: #999; }

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 220px;
}

.order-assign-select {
  max-width: 110px;
  font-size: 12px;
  padding: 4px 6px;
}

.order-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-modal.hidden { display: none; }

.order-modal-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.45);
}

.order-modal-box {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f6;
}

.order-modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.order-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #8e96a3;
}

.order-modal-body {
  padding: 20px;
  overflow: auto;
}

.order-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #eef1f6;
  background: #fafbfc;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.od-item { display: flex; flex-direction: column; gap: 4px; }
.od-item.od-full { grid-column: 1 / -1; }
.od-label { font-size: 12px; color: #8e96a3; }
.od-val { font-size: 14px; color: #1a2332; word-break: break-all; }

.order-preview-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.order-preview-images img {
  width: 72px;
  height: 72px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eef1f6;
}

.order-price-current {
  font-size: 24px;
  font-weight: 700;
  color: #e85d4c;
}

@media (max-width: 768px) {
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-actions { min-width: 0; }
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #1B3A5C, #2E5A8C);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  -webkit-text-decoration: none;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(27, 58, 92, 0.25);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-add:hover { opacity: 0.92; transform: translateY(-1px); }

/* ========== 服务管理列表 ========== */
.services-page .svc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: max(10px, min(2vw, 16px));
  margin-bottom: 16px;
}

.svc-stat-item {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.svc-stat-num {
  font-size: max(22px, min(4vw, 28px));
  font-weight: 700;
  color: #1a2332;
  line-height: 1.2;
}

.svc-stat-label { font-size: 12px; color: #8e96a3; }
.svc-stat-green .svc-stat-num { color: #0d6b4e; }
.svc-stat-gray .svc-stat-num { color: #8e96a3; }
.svc-stat-blue .svc-stat-num { color: #1B3A5C; }

.svc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.svc-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.svc-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-toolbar {
  margin-bottom: 16px;
  padding: 12px 18px;
}

.cat-toolbar .svc-toolbar-left {
  align-items: center;
}

.svc-batch-info {
  font-size: 13px;
  color: #5b6577;
}

.svc-check-col {
  width: 42px;
  text-align: center;
}

.svc-check-col input[type="checkbox"],
.svc-card-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.svc-card-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8e96a3;
  margin-right: 8px;
}

.svc-search { flex: 1; min-width: 160px; max-width: 280px; }

.svc-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  font-size: 14px;
  background: #fafbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238e96a3' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.006a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E") no-repeat 10px center;
}

.svc-search input:focus {
  outline: none;
  border-color: #4A90D9;
  background-color: #fff;
}

.svc-select {
  padding: 8px 12px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  min-width: 120px;
}

.orders-filter-date {
  padding: 8px 10px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  min-width: 130px;
}

.orders-date-sep {
  font-size: 13px;
  color: #8e96a3;
  flex-shrink: 0;
}

.orders-toolbar .svc-search {
  max-width: 320px;
}

/* ========== 订单管理 TAB ========== */
/* ========== 订单管理 TAB ========== */
.orders-section-nav {
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.orders-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-section-tab {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: #f0f4f8;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.orders-section-tab:hover {
  background: #e8f1fb;
  color: #1B3A5C;
}

.orders-section-tab.active {
  background: linear-gradient(135deg, #1B3A5C 0%, #2d5a8c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 58, 92, 0.22);
}

.orders-section-panel.hidden {
  display: none !important;
}

.review-stars {
  color: #f5a623;
  letter-spacing: 1px;
  font-size: 13px;
}

.orders-page .orders-tabs-wrap {
  padding: 12px 16px 0;
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.orders-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f5;
}

.orders-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #4a5568;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}

.orders-tab:hover {
  border-color: #4A90D9;
  color: #1B3A5C;
  background: #f0f7ff;
}

.orders-tab.active {
  border-color: #4A90D9;
  background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.25);
}

.orders-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.orders-tab.active .orders-tab-count {
  background: rgba(255, 255, 255, 0.22);
}

.orders-tab-count.hidden {
  display: none;
}

.orders-page .orders-toolbar {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.orders-page .orders-list-card {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

@media (max-width: 768px) {
  .orders-tabs { gap: 6px; }
  .orders-tab { padding: 7px 11px; font-size: 12px; }
}

/* ========== 订单管理列表（满屏表格） ========== */
.orders-page .orders-list-card {
  padding: 0;
  overflow: hidden;
  width: 100%;
}

.orders-page .orders-list-card .table-scroll {
  width: 100%;
}

.orders-page .orders-data-table {
  width: 100%;
  min-width: 960px;
  font-size: 14px;
}

.orders-check-col {
  width: 42px;
  text-align: center;
}

.orders-check-col input[type="checkbox"],
.orders-row-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.member-preview-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1f6;
}

.member-preview-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
}

.member-preview-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4ff, #dbeafe);
  color: #1b3a5c;
  font-size: 22px;
  font-weight: 700;
}

.member-preview-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a2332;
  line-height: 1.3;
}

.member-preview-id {
  margin-top: 4px;
  font-size: 12px;
  color: #8e96a3;
}

.member-group-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  color: var(--mg-color, #64748b);
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: color-mix(in srgb, #64748b 12%, white);
  border: 1px solid color-mix(in srgb, #64748b 28%, white);
}

@supports (color: color-mix(in lch, red, blue)) {
.member-group-badge {
  background: color-mix(in srgb, var(--mg-color, #64748b) 12%, white);
  border: 1px solid color-mix(in srgb, var(--mg-color, #64748b) 28%, white);
}
}

.orders-page .orders-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.orders-page .orders-toolbar .form-tip {
  margin-left: auto;
}

@media (max-width: 768px) {
  .orders-page .orders-toolbar .form-tip {
    margin-left: 0;
    width: 100%;
  }
}

.orders-page .orders-data-table th {
  font-size: 12px;
  color: #8e96a3;
  font-weight: 500;
  background: #fafbfc;
  white-space: nowrap;
}

.orders-page .orders-data-table .order-no {
  font-size: 12px;
  background: #f4f6f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.orders-page .orders-toolbar .svc-search {
  max-width: none;
  flex: 2;
  min-width: 220px;
}

.orders-page .orders-toolbar .svc-toolbar-left {
  flex: 1;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .orders-page .orders-toolbar .svc-search {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.svc-list-card { padding: 0; overflow: hidden; width: 100%; }

.svc-list-head {
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f6;
  font-size: 13px;
  color: #8e96a3;
  background: #fafbfc;
}

.svc-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.svc-table { font-size: 14px; width: 100%; min-width: 800px; }
.svc-table th {
  font-size: 12px;
  color: #8e96a3;
  font-weight: 500;
  background: #fafbfc;
  white-space: nowrap;
  padding: 12px 16px;
}
.svc-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f2f5;
}
.svc-table tbody tr:hover { background: #f8fafc; }

.svc-name-cell { min-width: 140px; }
.svc-name { display: block; font-weight: 600; color: #1a2332; font-size: 14px; }
.svc-id { font-size: 11px; color: #b0b8c4; }
.svc-desc-tip { display: block; font-size: 12px; color: #8e96a3; margin-top: 4px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: #e8f0fa;
  color: #1B3A5C;
  white-space: nowrap;
}

.svc-price { font-weight: 600; color: #e85d4c; white-space: nowrap; }
.svc-duration { font-size: 13px; color: #5a6474; white-space: nowrap; }

.status-on { background: #e8f5ef; color: #0d6b4e; }
.status-off { background: #f5f5f5; color: #999; }

.btn-link-edit {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13px;
  color: #4A90D9;
  border: 1px solid #4A90D9;
  border-radius: 6px;
  -webkit-text-decoration: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.btn-link-edit:hover { background: #4A90D9; color: #fff; }

.svc-cards-mobile { display: none; gap: 12px; padding: 12px; }

.svc-card {
  background: #f8f9fb;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.svc-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
  background: #f0f2f5;
}

.svc-card-body { flex: 1; min-width: 0; }

.svc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.svc-card-name { font-weight: 600; font-size: 15px; color: #1a2332; }
.svc-card-meta { font-size: 12px; color: #8e96a3; margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.svc-card-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
  flex-wrap: wrap;
}

.svc-empty {
  text-align: center;
  padding: 48px 24px;
  color: #8e96a3;
}

.svc-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.6; }
.svc-empty p { margin-bottom: 16px; font-size: 14px; }

@media (max-width: 992px) {
  .svc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-search { max-width: none; }
}

@media (max-width: 768px) {
  .svc-table-wrap { display: none; }
  .svc-cards-mobile { display: grid; }
  .svc-toolbar { flex-direction: column; align-items: stretch; }
  .svc-toolbar-left { flex-direction: column; }
  .svc-search { max-width: none; }
  .btn-add { justify-content: center; }
}

@media (max-width: 480px) {
  .svc-stats { grid-template-columns: 1fr 1fr; }
}

/* 服务分类图标选择 */
.icon-field .icon-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-preview {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0fa, #d4e4f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid #dde2ea;
  overflow: hidden;
  cursor: pointer;
}

.icon-preview.icon-preview-80 {
  width: 80px;
  height: 80px;
  font-size: 36px;
  border-radius: 14px;
}

.icon-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.icon-upload-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.icon-upload-actions .icon-tip {
  margin: 0;
  max-width: 280px;
}

.icon-field .icon-tip {
  margin: 8px 0 12px;
}

.icon-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-preset-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fafbfc;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.icon-preset-btn:hover {
  border-color: #4a90d9;
  background: #f0f7ff;
}

.icon-preset-btn.active {
  border-color: #1b3a5c;
  background: #e8f0fa;
  box-shadow: 0 0 0 2px rgba(27, 58, 92, 0.12);
}

@media (max-width: 1200px) {
  .dash-banner { padding: 22px 24px; }
  .dash-stats-primary,
  .dash-stats-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: 1fr; }
  .dash-info-row { grid-template-columns: 1fr; }
  .dash-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dash-side .card { margin-bottom: 0; }
}

@media (max-width: 992px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .dash-banner { padding: 20px 20px; border-radius: 14px; }
  .dash-banner-greeting { font-size: 20px; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    z-index: 160;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .quick-links { grid-template-columns: 1fr; }
  .dash-side { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dash-table-wrap { display: none; }
  .order-cards-mobile { display: grid; }
  .dash-welcome { align-items: stretch; }
  .dash-welcome-actions { width: 100%; justify-content: space-between; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item { border-right: none !important; }
  .info-item:last-child { border-bottom: none; }
  .page-head { flex-direction: column; align-items: stretch; }
  .pay-tabs { flex-wrap: wrap; }
  .pay-tab { flex: 1; min-width: 120px; text-align: center; }
  .dash-banner { padding: 18px 16px; border-radius: 12px; min-height: auto; }
  .dash-banner-greeting { font-size: 18px; margin-bottom: 4px; }
  .dash-banner-right { width: 100%; justify-content: space-between; }
  .dash-refresh-btn { font-size: 13px; padding: 7px 14px; }
}

@media (max-width: 480px) {
  .dash-stats-primary,
  .dash-stats-secondary { grid-template-columns: 1fr; }
  .admin-brand { font-size: 13px; max-width: 160px; }
}

@media (min-width: 993px) {
  .admin-sidebar { transform: none !important; }
}

/* ========== 服务编辑页 ========== */
.service-edit-page .back-link {
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-decoration: none;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.service-edit-page .back-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.service-edit-page .admin-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-edit-page .admin-header-right .back-link {
  margin-right: 4px;
}

.service-form-main {
  max-width: none;
  width: 100%;
  margin: 0;
}

.service-form-card {
  padding: max(16px, min(3vw, 28px));
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.service-form-card .form-row-pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.service-form-card .form-row-pricing .form-group > input#sf-price {
  width: 100%;
}

.service-form-card .form-row-pricing .duration-field-row,
.service-form-card .form-row-pricing .unit-field-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
}

.service-form-card .form-row-pricing .duration-field-row > :not(.hidden),
.service-form-card .form-row-pricing .unit-field-row > :not(.hidden) {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  padding: 9px 8px;
  font-size: 14px;
}

.service-form-card .form-row-pricing select {
  text-align: center;
  -moz-text-align-last: center;
       text-align-last: center;
  padding-left: 4px;
  padding-right: 4px;
}

.service-form-card .form-row-tip {
  margin: -6px 0 10px;
  font-size: 12px;
}

.service-form-card .form-group textarea#sf-notices {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.service-form-card .form-row-status {
  grid-template-columns: minmax(120px, 200px);
  margin-top: -4px;
}

.service-form-card .form-row-status.hidden {
  display: none;
}

@media (max-width: 768px) {
  .service-form-card .form-row-pricing {
    grid-template-columns: 1fr;
  }
}

.form-group .req {
  color: #e85d4c;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #eef1f6;
}

.service-form-card .edui-default {
  max-width: 100%;
}

.unit-field-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.unit-field-row select {
  min-width: 120px;
}

.unit-field-row input {
  flex: 1;
  min-width: 120px;
}

.duration-field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.duration-field-row input[type="number"] {
  width: 88px;
  min-width: 88px;
  flex: 0 0 auto;
}

.duration-field-row select {
  min-width: 72px;
}

.duration-field-row input[type="text"] {
  flex: 1;
  min-width: 100px;
}

.sku-duration-row input[type="number"] {
  width: 72px;
  min-width: 72px;
}

.sku-editor-table .sku-duration-row select {
  min-width: 64px;
}

.sku-editor-wrap {
  margin-top: 8px;
}

.sku-editor-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.sku-editor-table th,
.sku-editor-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: middle;
}

.sku-editor-table th {
  font-size: 12px;
  color: #8e96a3;
  font-weight: 600;
  background: #f8fafc;
}

.sku-editor-table input[type="text"],
.sku-editor-table input[type="number"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.sku-editor-table .empty {
  text-align: center;
  color: #94a3b8;
  padding: 18px 10px;
}

/* 缩略图上传 */
.thumb-upload {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.thumb-preview {
  width: 140px;
  height: 140px;
  border: 2px dashed #dde2ea;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #fafbfc;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.thumb-preview:hover { border-color: #4A90D9; }

.thumb-placeholder {
  text-align: center;
  font-size: 13px;
  color: #8e96a3;
  line-height: 1.5;
  padding: 8px;
}

.thumb-placeholder small { font-size: 11px; color: #b0b8c4; }

.ad-thumb-preview {
  width: 280px;
  height: 120px;
}

.ad-thumb-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.site-logo-upload {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.site-logo-preview {
  width: 88px;
  height: 88px;
  border: 2px dashed #d0d7de;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #fafbfc;
}

.site-logo-preview:hover {
  border-color: #4A90D9;
}

.site-logo-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.site-logo-placeholder {
  font-size: 12px;
  color: #888;
  text-align: center;
  padding: 8px;
  line-height: 1.4;
}

.site-logo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.thumb-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.thumb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

/* 本地富文本编辑器 */
.rich-editor {
  border: 1px solid #dde2ea;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.re-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  background: #fafbfc;
  border-bottom: 1px solid #eef1f6;
}

.re-toolbar button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-toolbar button:hover {
  background: #e8f0fa;
  border-color: #dde2ea;
}

.re-sep {
  width: 1px;
  height: 20px;
  background: #dde2ea;
  margin: 6px 4px;
  align-self: center;
}

.re-body {
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
  overflow-y: auto;
}

.re-body:empty:before {
  content: '请输入服务描述，支持加粗、列表、插入图片等…';
  color: #b0b8c4;
}

.re-body img { max-width: 100%; height: auto; border-radius: 4px; }

.svc-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  background: #f0f2f5;
  vertical-align: middle;
}

.svc-thumb-empty {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #f0f2f5;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ccc;
}

@media (max-width: 640px) {
  .service-edit-page .admin-brand {
    display: none;
  }
}

/* ========== 子标签 / 工具栏 / 统计卡片 ========== */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 40, 71, 0.03);
}

.sub-tab {
  padding: 9px 18px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #5a6474;
  cursor: pointer;
  transition: all 0.15s;
}

.sub-tab:hover {
  background: #f0f7ff;
  color: #1B3A5C;
}

.sub-tab.active {
  background: linear-gradient(135deg, #1B3A5C, #2E5A8C);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 58, 92, 0.2);
}

.page-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tpl-search {
  padding: 8px 12px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  font-size: 14px;
  min-width: 180px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stats-cards .stat-mini {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid #eef1f6;
  box-shadow: 0 2px 8px rgba(15, 40, 71, 0.03);
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.stats-cards .stat-mini strong {
  font-size: max(20px, min(3vw, 24px));
  color: #1B3A5C;
}

.stats-staff-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.stats-staff-selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 14px;
  color: #5a6474;
}

.stats-staff-selected-meta span {
  white-space: nowrap;
}

#stats-staff-rank-table tr.stats-row-active td {
  background: #eef6ff;
}

#stats-staff-rank-table tr.stats-row-active td:first-child {
  box-shadow: inset 3px 0 0 #2f80ed;
}

.cache-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}


@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sub-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

/* ========== 微信公众平台设置 ========== */
.wx-platform-tip {
  padding: 14px 18px;
  margin-bottom: 16px;
  background: #f0f7ff;
  border: 1px solid #d6e8ff;
}

.wx-platform-tip p {
  margin: 0;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.7;
}

.wx-platform-tip a {
  color: #4A90D9;
}

.pay-platform-tip ol.pay-config-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.75;
}

.pay-platform-tip .pay-config-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #718096;
}

.storage-cloud-fields {
  margin-top: 8px;
}

.storage-help-panel {
  margin-top: 16px;
}

.storage-impl-note {
  padding: 10px 12px;
  background: #fff8e6;
  border: 1px solid #ffe4a8;
  border-radius: 8px;
  color: #b45309;
}

.storage-config-card .form-group .form-tip {
  margin-top: 6px;
  font-size: 12px;
  color: #8e96a3;
  line-height: 1.5;
}

.pay-appid-mismatch {
  color: #c53030;
}

.pay-appid-ok {
  color: #276749;
}

.pay-cert-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pay-cert-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.pay-cert-name {
  min-width: 160px;
  font-family: Consolas, monospace;
  font-size: 13px;
  color: #1a2332;
}

.pay-cert-status {
  flex: 1;
  font-size: 13px;
  color: #718096;
}

.pay-cert-status.ready {
  color: #276749;
  font-weight: 600;
}

.pay-cert-picked {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
}

.wx-inner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef1f6;
}

.wx-inner-tab {
  padding: 7px 14px;
  border: none;
  background: #f4f6f9;
  border-radius: 6px;
  font-size: 13px;
  color: #5a6474;
  cursor: pointer;
  transition: all 0.15s;
}

.wx-inner-tab:hover {
  background: #e8f0fa;
  color: #1B3A5C;
}

.wx-inner-tab.active {
  background: #1B3A5C;
  color: #fff;
}

.label-hint {
  font-size: 12px;
  font-weight: normal;
  color: #8e96a3;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
}

.contacts-chat-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  min-height: 560px;
}

@media (max-width: 960px) {
  .contacts-layout,
  .contacts-chat-wrap {
    grid-template-columns: 1fr;
  }
}

.contacts-sidebar,
.contacts-main {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

.contacts-sidebar-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #eef1f6;
}

.contacts-sidebar-head .tpl-search {
  flex: 1 1 100%;
}

.contacts-sidebar-head .svc-select {
  flex: 1;
  min-width: 100px;
}

.contact-thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.contact-thread-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.contact-thread-item:hover {
  border-color: #c5d4e8;
  background: #f8fbff;
}

.contact-thread-item.active {
  border-color: #1B3A5C;
  background: #eef4fb;
  box-shadow: 0 0 0 1px rgba(27, 58, 92, 0.08);
}

.contact-thread-item.unread {
  background: #fffbf0;
}

.contact-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1B3A5C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-thread-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}

.contact-thread-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a2332;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-thread-time {
  font-size: 11px;
  color: #8e96a3;
  white-space: nowrap;
}

.contact-thread-service {
  font-size: 12px;
  color: #5a6474;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-thread-preview {
  font-size: 12px;
  color: #8e96a3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-thread-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.contact-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e65100;
}

.contact-sidebar-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eef1f6;
  font-size: 12px;
}

.contact-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  color: #5a6474;
}

.contact-empty-icon {
  font-size: 40px;
  line-height: 1;
  opacity: 0.6;
}

.contact-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.contact-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f6;
}

.contact-chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.contact-chat-user h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.contact-detail-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8e96a3;
}

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1B3A5C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.contact-detail-panel {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 16px;
  box-shadow: 0 2px 12px rgba(15, 40, 71, 0.04);
}

.contacts-layout > .table-scroll,
.contacts-layout > .contacts-list-wrap {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 12px rgba(15, 40, 71, 0.04);
}

.contact-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.contact-detail-head h3 {
  margin: 0;
  font-size: 16px;
}

.contact-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #5a6474;
  line-height: 1.6;
  padding: 10px 16px;
  background: #f8f9fb;
  border-bottom: 1px solid #eef1f6;
}

.contact-messages-box {
  flex: 1;
  min-height: 280px;
  max-height: none;
  overflow-y: auto;
  padding: 16px;
  background: #f4f6f9;
}

.contact-msg {
  margin-bottom: 12px;
}

.contact-msg.self {
  text-align: right;
}

.contact-msg-meta {
  font-size: 11px;
  color: #8e96a3;
  margin-bottom: 4px;
}

.contact-msg-body {
  display: inline-block;
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  word-break: break-word;
}

.contact-msg.self .contact-msg-body {
  background: #1B3A5C;
  color: #fff;
}

.contact-msg.other .contact-msg-body {
  background: #fff;
  border: 1px solid #eef1f6;
}

.contact-msg-img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 8px;
  display: block;
}

.contact-msg-caption {
  margin-top: 6px;
  font-size: 13px;
}

.contact-reply-box {
  padding: 12px 16px 16px;
  border-top: 1px solid #eef1f6;
  background: #fff;
}

.contact-reply-box textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  font-size: 13px;
  resize: vertical;
  min-height: 72px;
}

.contact-reply-box textarea:focus {
  outline: none;
  border-color: #1B3A5C;
  box-shadow: 0 0 0 2px rgba(27, 58, 92, 0.08);
}

.contact-reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.contact-reply-hint {
  font-size: 12px;
}

#contact-reply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.unread-row {
  background: #fffbf0;
}

.tag-warn {
  background: #fff3e0;
  color: #e65100;
}

.tag-ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.ellipsis-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== 财务管理 ========== */
.finance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  margin-bottom: 16px;
}

.finance-method-list { display: flex; flex-direction: column; gap: 10px; }

.finance-method-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #f8f9fb;
  border-radius: 10px;
  border: 1px solid #eef1f6;
}

.finance-method-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.finance-method-count { font-size: 12px; color: #8e96a3; }
.finance-method-amount { color: #1B3A5C; font-size: 15px; white-space: nowrap; }

.finance-pending-tip {
  font-size: 13px;
  color: #8e96a3;
  margin: 0 0 12px;
  line-height: 1.6;
}

.finance-pending-amount {
  font-size: max(24px, min(4vw, 32px));
  font-weight: 700;
  color: #e65100;
  margin-bottom: 16px;
}

.finance-filter-card { padding-top: 14px; padding-bottom: 14px; }

.finance-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.finance-filters .tpl-search { min-width: 180px; flex: 1; }
.finance-filters .svc-select { width: auto; min-width: 120px; }
.finance-date { min-width: 140px !important; }

.finance-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8e96a3;
}

.finance-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.finance-pager-info {
  font-size: 13px;
  color: #5a6474;
  padding: 0 4px;
}

.pay-method-badge,
.pay-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.pay-method-wechat { background: #e8f5ef; color: #0d6b4e; }
.pay-method-alipay { background: #e3f2fd; color: #1565c0; }

.pay-status-pending { background: #fff3e0; color: #e65100; }
.pay-status-success { background: #e8f5ef; color: #0d6b4e; }
.pay-status-failed { background: #ffebee; color: #c62828; }
.pay-status-refunded { background: #f5f5f5; color: #757575; }

.pay-badge.wechat { background: #e8f5ef; color: #0d6b4e; padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.pay-badge.alipay { background: #e3f2fd; color: #1565c0; padding: 3px 10px; border-radius: 12px; font-size: 12px; }

@media (max-width: 992px) {
  .finance-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .finance-filters .tpl-search { min-width: 100%; flex-basis: 100%; }
  .finance-filters .svc-select,
  .finance-filters .finance-date { flex: 1; min-width: calc(50% - 5px); }
}

/* ========== Toast 提示 ========== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  animation: toastIn 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}

.toast-item.toast-success { background: #0d6b4e; }
.toast-item.toast-error   { background: #c62828; }
.toast-item.toast-warn    { background: #e65100; }

.toast-item.fade-out {
  animation: toastOut 0.2s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ========== 删除确认模态框增强 ========== */
#delete-confirm-body p {
  margin: 0;
  font-size: 14px;
  color: #1a2332;
  line-height: 1.6;
}

#delete-confirm-body .delete-warn {
  margin-top: 8px;
  font-size: 12px;
  color: #c62828;
}

/* ========== 师傅预览弹窗 ========== */
.staff-preview-info {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.spi-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B3A5C, #2E5A8C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
.spi-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.spi-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.spi-label {
  font-size: 11px;
  color: #8e96a3;
  font-weight: 500;
}
.spi-val {
  font-size: 14px;
  color: #1a2332;
  word-break: break-all;
}
@media (max-width: 480px) {
  .staff-preview-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .spi-fields {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .spi-row {
    align-items: center;
  }
}

.staff-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.staff-avatar-placeholder {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B3A5C, #2E5A8C);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.spi-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* ============================================================
   Tech Design System v2 — 科技感 / 专业感 全局增强层
   覆盖所有后台界面（SPA 页面 + 独立编辑页共用 admin.css）
   ============================================================ */
:root {
  --tech-bg: #eef2f8;
  --tech-surface: #ffffff;
  --tech-ink: #0f1f3a;
  --tech-ink-2: #475569;
  --tech-muted: #8e96a3;
  --tech-line: #e6ebf2;
  --tech-blue: #2563eb;
  --tech-blue-deep: #1d4ed8;
  --tech-cyan: #38bdf8;
  --tech-brand-grad: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  --tech-brand-grad-soft: linear-gradient(135deg, #1b3a5c 0%, #2e5a8c 100%);
  --tech-sidebar-grad: linear-gradient(180deg, #0b1f3a 0%, #0a1626 100%);
  --tech-sidebar-glow: radial-gradient(120% 55% at 50% -8%, rgba(56, 189, 248, 0.20), transparent 60%);
  --tech-radius: 14px;
  --tech-radius-lg: 18px;
  --tech-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.07);
  --tech-shadow-2: 0 10px 34px rgba(15, 23, 42, 0.10);
  --tech-ring: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* ---- 内容区氛围：右上角微弱蓝光，增加层次 ---- */
.admin-body-root { background: #eef2f8; background: var(--tech-bg); }
.admin-main {
  background:
    radial-gradient(900px 380px at 88% -60px, rgba(37, 99, 235, 0.07), transparent 70%),
    linear-gradient(180deg, #eef2f8 0%, #f5f7fb 180px);
}

/* ========== 侧边栏 · 旗舰大气模板 v4 ========== */

/* 侧边栏骨架 - 深邃科技底 */
.admin-sidebar {
  display: flex;
  flex-direction: column;
  width: 288px;
  min-height: 0;
  height: 100%;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(99, 102, 241, 0.06), transparent 50%),
    linear-gradient(180deg, #081220 0%, #0b1726 38%, #0f1c2e 100%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.05),
    8px 0 32px rgba(0, 0, 0, 0.22);
  position: relative;
  padding: 0;
  overflow: hidden;
  z-index: 2;
}
.admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
}
.sidebar-nav-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.22) transparent;
  position: relative;
  z-index: 1;
}
.sidebar-nav-body::-webkit-scrollbar { width: 4px; }
.sidebar-nav-body::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.18);
  border-radius: 4px;
}
.sidebar-nav-body::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.32);
}
/* 右侧边缘科技光效 */
.admin-sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(56, 189, 248, 0.15) 15%,
    rgba(56, 189, 248, 0.20) 35%,
    rgba(99, 102, 241, 0.20) 55%,
    rgba(56, 189, 248, 0.15) 75%,
    transparent 100%
  );
  pointer-events: none;
  animation: sidebarEdgeGlow 6s ease-in-out infinite;
  z-index: 1;
}

/* 滚动条定制 */
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.15);
  border-radius: 4px;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.30);
}

/* --- 品牌区 · 旗舰增强 --- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 18px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.nav-brand-premium {
  position: relative;
  overflow: hidden;
}
.nav-brand-premium::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  pointer-events: none;
  animation: sidebarBrandGlow 8s ease-in-out infinite alternate;
}
.nav-brand-premium::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(ellipse 70% 40% at 0% 50%, rgba(56, 189, 248, 0.03), transparent);
  pointer-events: none;
}
.nav-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.10));
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #7dd3fc;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.08);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.nav-brand-logo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  animation: sidebarLogoShimmer 4s ease-in-out infinite;
}
.nav-brand:hover .nav-brand-logo {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.18);
}
.nav-brand-text { min-width: 0; }
.nav-brand-text strong {
  display: block;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-brand-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(148, 163, 184, 0.72);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}
.nav-brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.65);
  animation: sidebarBrandDot 2.4s ease-in-out infinite;
}

/* --- 分区头部 · 序章徽章 --- */
.nav-section {
  padding: 20px 18px 10px;
  margin-top: 4px;
}
.nav-section:first-of-type {
  margin-top: 0;
  padding-top: 16px;
}
.nav-section-premium { padding: 20px 18px 10px; }
.nav-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-section-no {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav-section:hover .nav-section-no {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.06);
}
.nav-section-icon {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.55);
}
.nav-section-text { min-width: 0; }
.nav-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(226, 232, 240, 0.90);
  position: relative;
}
/* 分区标签底部装饰线 */
.nav-section-label::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  margin-top: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.30), transparent);
  transition: width 0.3s;
}
.nav-section:hover .nav-section-label::after {
  width: 28px;
}
/* 分区色调 - 徽章边框与文字 */
.nav-section-tone-cyan .nav-section-no {
  border-color: rgba(56, 189, 248, 0.30);
  color: #7dd3fc;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.04);
}
.nav-section-tone-cyan .nav-section-label::after {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.35), transparent);
}
.nav-section-tone-blue .nav-section-no {
  border-color: rgba(96, 165, 250, 0.30);
  color: #93c5fd;
}
.nav-section-tone-blue .nav-section-label::after {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.35), transparent);
}
.nav-section-tone-violet .nav-section-no {
  border-color: rgba(167, 139, 250, 0.30);
  color: #c4b5fd;
}
.nav-section-tone-violet .nav-section-label::after {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.35), transparent);
}
.nav-section-tone-amber .nav-section-no {
  border-color: rgba(251, 191, 36, 0.30);
  color: #fcd34d;
}
.nav-section-tone-amber .nav-section-label::after {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.35), transparent);
}
.nav-section-tone-indigo .nav-section-no {
  border-color: rgba(129, 140, 248, 0.30);
  color: #a5b4fc;
}
.nav-section-tone-indigo .nav-section-label::after {
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.35), transparent);
}
.nav-section-tone-slate .nav-section-no {
  border-color: rgba(148, 163, 184, 0.30);
  color: #cbd5e1;
}
.nav-section-tone-slate .nav-section-label::after {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.35), transparent);
}
/* 分区英文标识 */
.nav-section-en {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.38);
  margin-top: 2px;
}

/* 导航项英文标识 */
.nav-en {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: rgba(148, 163, 184, 0.42);
  line-height: 1.2;
}
.nav-group.has-active .nav-en,
.admin-sidebar .nav-item.active .nav-en {
  color: rgba(125, 211, 252, 0.55);
}

/* 分隔线英文标识 */
.nav-divider-en {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(148, 163, 184, 0.25);
  text-transform: uppercase;
}

/* --- 分隔线 --- */
.nav-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 18px 8px;
  color: rgba(148, 163, 184, 0.40);
  font-size: 11px;
  letter-spacing: 2px;
}
.nav-divider::before,
.nav-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.16), transparent);
}
.nav-divider-label {
  flex-shrink: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- 导航项 · 统一基座 --- */
.admin-sidebar .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border-left: none;
  color: rgba(203, 213, 225, 0.80);
  font-weight: 500;
  font-size: 13px;
  -webkit-text-decoration: none;
  text-decoration: none;
  transition: background 0.24s cubic-bezier(0.4, 0, 0.2, 1), color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}
.admin-sidebar .nav-item:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: #f1f5f9;
  transform: translateX(1px);
}
.admin-sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.08));
  color: #bae6fd;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.12);
}
.admin-sidebar .nav-item .nav-label { min-width: 0; }
.admin-sidebar .nav-sub { font-size: 12px; }
.admin-sidebar .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #38bdf8, #818cf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  animation: sidebarActivePulse 2.5s ease-in-out infinite;
}

/* --- 分组标题 --- */
.nav-group-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3px 12px;
  border-radius: 12px;
  padding: 12px 16px;
  color: rgba(203, 213, 225, 0.88);
  background: none;
  border: none;
  width: calc(100% - 24px);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.24s cubic-bezier(0.4, 0, 0.2, 1), color 0.24s ease, transform 0.24s ease;
}
.nav-group-title:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #f8fafc;
}
.nav-group.has-active > .nav-group-title {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0.06));
  color: #bae6fd;
  font-weight: 700;
}
.nav-group .nav-desc { display: none; }
.admin-sidebar .nav-item.nav-tier-hero .nav-desc { display: block; }
.nav-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.nav-arrow {
  flex-shrink: 0;
  font-size: 16px;
  transition: transform 0.3s ease;
  color: rgba(148, 163, 184, 0.40);
  line-height: 1;
}
.nav-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.nav-group-left .nav-badge,
.nav-label-row .nav-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.nav-group-accent-blue.has-active > .nav-group-title .nav-icon-accent { color: #60a5fa; }
.nav-group-accent-cyan.has-active > .nav-group-title .nav-icon-accent { color: #7dd3fc; }
.nav-group-accent-amber.has-active > .nav-group-title .nav-icon-accent { color: #fbbf24; }
.nav-group-accent-emerald.has-active > .nav-group-title .nav-icon-accent { color: #34d399; }
.nav-group-accent-violet.has-active > .nav-group-title .nav-icon-accent { color: #a78bfa; }
.nav-group-accent-rose.has-active > .nav-group-title .nav-icon-accent { color: #fb7185; }
.nav-group-accent-indigo.has-active > .nav-group-title .nav-icon-accent { color: #818cf8; }
.nav-group-accent-slate.has-active > .nav-group-title .nav-icon-accent { color: #94a3b8; }
.nav-group.open > .nav-group-title .nav-arrow {
  transform: rotate(90deg);
  color: rgba(56, 189, 248, 0.6);
}

/* --- 标签系统 --- */
.nav-label-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.nav-label-wrap .nav-label { line-height: 1.3; }
.nav-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nav-label-row .nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-desc {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.45);
  letter-spacing: 0.3px;
}

/* --- 角标标签 --- */
.nav-tag {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(251, 191, 36, 0.95);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.nav-sub .nav-tag {
  font-size: 8px;
  padding: 0 5px;
}

/* --- 图标容器 --- */
.nav-icon-shell {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.24s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.24s ease, box-shadow 0.24s ease;
}
.nav-icon-shell .nav-icon {
  width: auto;
  font-size: 14px;
  line-height: 1;
  opacity: 1;
}
.nav-icon-shell-cyan    { background: rgba(56, 189, 248, 0.10); border-color: rgba(56, 189, 248, 0.18); }
.nav-icon-shell-blue    { background: rgba(96, 165, 250, 0.10); border-color: rgba(96, 165, 250, 0.18); }
.nav-icon-shell-amber   { background: rgba(251, 191, 36, 0.10); border-color: rgba(251, 191, 36, 0.18); }
.nav-icon-shell-emerald { background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.18); }
.nav-icon-shell-violet  { background: rgba(167, 139, 250, 0.10); border-color: rgba(167, 139, 250, 0.18); }
.nav-icon-shell-rose    { background: rgba(251, 113, 133, 0.10); border-color: rgba(251, 113, 133, 0.18); }
.nav-icon-shell-indigo  { background: rgba(129, 140, 248, 0.10); border-color: rgba(129, 140, 248, 0.18); }
.nav-icon-shell-slate   { background: rgba(148, 163, 184, 0.08); border-color: rgba(148, 163, 184, 0.16); }
.admin-sidebar .nav-item.active .nav-icon-shell,
.nav-group.has-active > .nav-group-title .nav-icon-shell {
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}

/* --- 图标强调色 --- */
.nav-icon { opacity: 0.95; text-align: center; transition: color 0.2s, filter 0.2s; }
.nav-icon-accent { opacity: 1; }
.nav-icon-accent-cyan    { color: #7dd3fc; }
.nav-icon-accent-blue    { color: #60a5fa; }
.nav-icon-accent-amber   { color: #fbbf24; }
.nav-icon-accent-emerald { color: #34d399; }
.nav-icon-accent-violet  { color: #a78bfa; }
.nav-icon-accent-rose    { color: #fb7185; }
.nav-icon-accent-indigo  { color: #818cf8; }
.nav-icon-accent-slate   { color: #94a3b8; }

/* 激活态图标更亮 */
.admin-sidebar .nav-item.active .nav-icon-accent {
  filter: brightness(1.2);
}

/* --- 子菜单指示点 --- */
.nav-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.30);
  flex-shrink: 0;
  margin-right: 2px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.admin-sidebar .nav-sub.active .nav-sub-dot,
.admin-sidebar .nav-sub:hover .nav-sub-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
  transform: scale(1.15);
}
.admin-sidebar .nav-sub {
  gap: 10px;
  padding: 10px 14px 10px 42px;
  margin-left: 26px;
  margin-right: 12px;
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 13px;
  border-radius: 10px;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.72);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.admin-sidebar .nav-sub:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(226, 232, 240, 0.92);
}
.admin-sidebar .nav-sub.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.04));
  color: #bae6fd;
  font-weight: 500;
}
.nav-group-items {
  position: relative;
  margin-left: 12px;
  padding-left: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.nav-group-items::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(148, 163, 184, 0.08), transparent);
  pointer-events: none;
}
.nav-group.open > .nav-group-items {
  max-height: 720px;
  opacity: 1;
}

/* --- 导航层级 --- */
.nav-tier-hero > .nav-group-title,
.admin-sidebar .nav-item.nav-tier-hero {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.04);
}
.admin-sidebar .nav-item.nav-tier-hero:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.12));
  border-color: rgba(56, 189, 248, 0.24);
}
.admin-sidebar .nav-item.nav-tier-hero.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(37, 99, 235, 0.16));
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 2px 14px rgba(56, 189, 248, 0.10);
}
.nav-tier-pro > .nav-group-title {
  border-left: 2px solid rgba(56, 189, 248, 0.18);
  padding-left: 12px;
}
.nav-group.has-active.nav-tier-pro > .nav-group-title {
  border-left-color: rgba(56, 189, 248, 0.55);
}

/* 激活态描述文字 */
.nav-group.has-active .nav-desc,
.admin-sidebar .nav-item.active .nav-desc {
  color: rgba(125, 211, 252, 0.48);
}

/* --- 底部折叠按钮 --- */
.nav-sidebar-foot {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 2;
}
.nav-sidebar-foot button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(203, 213, 225, 0.85);
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.nav-foot-icon {
  font-size: 14px;
  opacity: 0.85;
}
.nav-sidebar-foot button:hover {
  background: rgba(56, 189, 248, 0.06);
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.20);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.04);
}

/* --- 子菜单展开/收起动画（见上方 .nav-group-items 合并规则） --- */

/* --- 数字角标 --- */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
}

/* ========== 顶部栏 ========== */
.admin-header {
  background: linear-gradient(135deg, #0f2747 0%, #1b3a5c 55%, #1e4e8c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 24px rgba(11, 25, 46, 0.28);
}
.admin-notify-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-notify-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ========== 卡片 ========== */
.admin-main .card {
  background: #ffffff;
  background: var(--tech-surface);
  border: 1px solid #e6ebf2;
  border: 1px solid var(--tech-line);
  border-radius: 18px;
  border-radius: var(--tech-radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.07);
  box-shadow: var(--tech-shadow-1);
  padding: max(18px, min(2.5vw, 24px));
}
.admin-main .card > h4,
.admin-main .card-head-title,
.settings-panel .card h4 {
  border-left: none;
  padding-left: 16px;
  position: relative;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #0f1f3a;
  color: var(--tech-ink);
}
.admin-main .card > h4::before,
.admin-main .card-head-title::before,
.settings-panel .card h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}

/* ========== 页头 ========== */
.page-head {
  border-bottom: 1px solid #e6ebf2;
  border-bottom: 1px solid var(--tech-line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.page-head-main,
.page-head > div:first-child:not(.page-head-actions) {
  position: relative;
  padding-left: 16px;
  min-width: 0;
  flex: 1;
}
.page-head-main::before,
.page-head > div:first-child:not(.page-head-actions)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}
.page-title {
  color: #0f1f3a;
  color: var(--tech-ink);
  letter-spacing: -0.01em;
}
.page-subtitle { color: #8e96a3; color: var(--tech-muted); }

/* ========== 按钮 ========== */
.admin-main .btn-sm {
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-weight: 500;
}
.admin-main .btn-sm:hover {
  border-color: #2563eb;
  border-color: var(--tech-blue);
  color: #1d4ed8;
  color: var(--tech-blue-deep);
  background: #f0f7ff;
}
.admin-main .btn-sm.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.30);
}
.admin-main .btn-sm.primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42);
  transform: translateY(-1px);
}
.admin-main .btn-sm.danger {
  border-color: #ffcdd2;
  color: #c62828;
  background: #fff5f5;
}
.admin-main .btn-sm.danger:hover {
  background: #ffebee;
  border-color: #ef9a9a;
}

/* ========== 表单 ========== */
.admin-main .form-group label { color: #475569; color: var(--tech-ink-2); font-weight: 600; }
.admin-main .form-group input,
.admin-main .form-group select,
.admin-main .form-group textarea,
.admin-main .tpl-search,
.admin-main .svc-select {
  border: 1px solid #d7dee8;
  border-radius: 10px;
  background: #fbfcfe;
}
.admin-main .form-group input:focus,
.admin-main .form-group select:focus,
.admin-main .form-group textarea:focus,
.admin-main .tpl-search:focus {
  border-color: #2563eb;
  border-color: var(--tech-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  box-shadow: var(--tech-ring);
  background: #fff;
}
.contact-reply-box textarea:focus { border-color: #2563eb; border-color: var(--tech-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); box-shadow: var(--tech-ring); }

/* ========== 表格 ========== */
.admin-main .table-scroll {
  border: 1px solid #e6ebf2;
  border: 1px solid var(--tech-line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.admin-main table thead th {
  background: #f1f5fb;
  color: #475569;
  color: var(--tech-ink-2);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e3e9f1;
}
.admin-main table tbody td { border-bottom: 1px solid #eef1f6; }
.admin-main table tbody tr:hover td { background: #f7faff; }

/* ========== 状态胶囊 / 标签（带状态圆点） ========== */
.status-pill,
.tag,
.pay-status-badge,
.pay-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.status-pill::before,
.tag::before,
.pay-status-badge::before,
.pay-method-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
}

/* ========== 子标签 / 快速入口 / 统计卡 ========== */
.sub-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.30);
}
.wx-inner-tab.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); }

.stats-cards .stat-mini { border: 1px solid #e6ebf2; border: 1px solid var(--tech-line); border-radius: 14px; border-radius: var(--tech-radius); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.07); box-shadow: var(--tech-shadow-1); }
.stats-cards .stat-mini strong { color: #1d4ed8; color: var(--tech-blue-deep); }

/* ========== 模态框（玻璃化） ========== */
.order-modal-mask {
  background: rgba(11, 25, 46, 0.45);
  backdrop-filter: blur(2px);
}
.order-modal-box {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(11, 25, 46, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.order-modal-head { border-bottom: 1px solid #e6ebf2; border-bottom: 1px solid var(--tech-line); }

/* ========== 登录页已迁移至顶部 ========== */

/* ========== Toast 精致化 ========== */
.toast-item.toast-success { background: linear-gradient(135deg, #0d9488, #0d6b4e); }
.toast-item.toast-error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.toast-item.toast-warn    { background: linear-gradient(135deg, #f97316, #ea580c); }

/* ========== 页脚 ========== */
.admin-footer { border-top: 1px solid #e6ebf2; border-top: 1px solid var(--tech-line); }

/* ========== 移动端适配 ========== */
@media (max-width: 992px) {
  .nav-brand { padding: 16px 18px 14px; }
  .nav-brand-logo { width: 38px; height: 38px; font-size: 17px; }
}

/* ========== 广告 · 跳转链接构建器 ========== */
.ad-link-builder select,
.ad-link-builder input:not([type="hidden"]) {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.ad-link-preview,
#ad-link-preview {
  font-size: 12px;
  color: #0ea5e9;
  word-break: break-all;
}
.ad-link-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ad-link-tag.cat   { background: rgba(56, 189, 248, 0.12);  color: #0ea5e9; }
.ad-link-tag.svc   { background: rgba(99, 102, 241, 0.12);  color: #6366f1; }
.ad-link-tag.list  { background: rgba(16, 185, 129, 0.12);  color: #0f9d6b; }
.ad-link-tag.page  { background: rgba(148, 163, 184, 0.15); color: #64748b; }
.ad-link-tag.url   { background: rgba(245, 158, 11, 0.14);  color: #d97706; }
.ad-link-tag.num   { background: rgba(148, 163, 184, 0.15); color: #64748b; }
.ad-link-tag.muted { background: rgba(148, 163, 184, 0.10); color: #94a3b8; }

/* ========== 右侧漂浮提醒 ========== */
.admin-float-stack {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.admin-float-notify {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.admin-float-tips {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.admin-float-tips.open .admin-tips-panel {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.admin-float-tips.open .admin-tips-panel.hidden {
  display: flex;
}

.admin-float-tips.has-alert .admin-tips-trigger {
  animation: adminFloatPulse 2.4s ease-in-out infinite;
}

.admin-tips-trigger {
  background: linear-gradient(145deg, #7c3aed 0%, #8b5cf6 45%, #a78bfa 100%);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.admin-tips-trigger:hover {
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.admin-tips-panel {
  width: min(320px, calc(100vw - 48px));
}

.admin-float-tips-list {
  margin: 0;
  padding: 14px 18px 6px 34px;
  color: #475569;
  font-size: 13px;
  line-height: 1.75;
  max-height: min(320px, 50vh);
  overflow: auto;
}

.admin-float-tips-list li {
  margin-bottom: 8px;
}

.admin-float-tips-list a {
  color: #2563eb;
  -webkit-text-decoration: none;
  text-decoration: none;
}

.admin-float-tips-list a:hover {
  -webkit-text-decoration: underline;
  text-decoration: underline;
}

.admin-float-tips-empty {
  list-style: none;
  margin-left: -16px;
  color: #94a3b8;
}

.admin-float-mp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.admin-float-mp.open .admin-mp-panel {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.admin-float-mp.open .admin-mp-panel.hidden {
  display: flex;
}

.admin-mp-trigger {
  background: linear-gradient(145deg, #047857 0%, #059669 45%, #10b981 100%);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.admin-mp-trigger:hover {
  box-shadow: 0 16px 38px rgba(16, 185, 129, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.admin-mp-panel {
  width: min(300px, calc(100vw - 48px));
}

.admin-mp-qr-body {
  padding: 16px 18px 18px;
  text-align: center;
}

.admin-mp-qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-mp-qr-frame img {
  display: block;
  width: 200px;
  height: 200px;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.admin-mp-qr-tip {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0f766e;
  letter-spacing: 0.2px;
}

.mp-qrcode-preview {
  width: 132px;
  height: 132px;
}

.mp-qrcode-preview img {
  -o-object-fit: contain;
     object-fit: contain;
  background: #fff;
}

.admin-float-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 45%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.20);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-float-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.admin-float-notify.has-alert .admin-float-trigger {
  animation: adminFloatPulse 2.4s ease-in-out infinite;
}

@keyframes adminFloatPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38); }
  50% { box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38), 0 0 0 8px rgba(56, 189, 248, 0.18); }
}

.admin-float-trigger-icon {
  font-size: 22px;
  line-height: 1;
}

.admin-float-trigger-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-float-trigger-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.40);
}

.admin-float-panel {
  width: min(400px, calc(100vw - 48px));
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.80) inset;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease;
}

.admin-float-notify.open .admin-float-panel {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.admin-float-notify.open .admin-float-panel.hidden {
  display: flex;
}

.admin-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef1f6;
  background: linear-gradient(180deg, #f0f6ff 0%, #fff 100%);
}

.admin-float-head strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a2332;
  letter-spacing: 0.3px;
}

.admin-float-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #8e96a3;
  letter-spacing: 0.2px;
}

.admin-float-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-float-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.admin-float-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  overflow-x: auto;
}

.admin-float-tab {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.admin-float-tab:hover {
  border-color: #bfdbfe;
  color: #2563eb;
}

.admin-float-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
}

.admin-float-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.admin-float-stat {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-float-stat:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.admin-float-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.admin-float-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8e96a3;
  letter-spacing: 0.2px;
}

.admin-float-stat.is-hot strong { color: #dc2626; }
.admin-float-stat.is-warn strong { color: #ea580c; }
.admin-float-stat.is-info strong { color: #2563eb; }

.admin-float-list {
  flex: 1;
  min-height: 180px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 14px 14px;
}

.admin-float-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  margin-bottom: 8px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-float-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.admin-float-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.admin-float-item-icon.type-order { background: rgba(249, 115, 22, 0.12); }
.admin-float-item-icon.type-contact { background: rgba(37, 99, 235, 0.12); }
.admin-float-item-icon.type-feedback { background: rgba(220, 38, 38, 0.10); }

.admin-float-item-body { min-width: 0; flex: 1; }

.admin-float-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.admin-float-item-title code {
  font-size: 12px;
  background: #f4f6f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-float-item-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-float-item-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.admin-float-item-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  white-space: nowrap;
}

.admin-float-empty {
  padding: 36px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.admin-float-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid #eef1f6;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

@media (max-width: 768px) {
  .admin-float-stack {
    right: 14px;
    bottom: 18px;
  }
  .admin-float-trigger {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
  .admin-float-panel {
    width: calc(100vw - 28px);
  }
  .admin-float-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== Dashboard · 旗舰大气模板 ========== */
.dash-premium .dash-hero {
  position: relative;
  border-radius: 18px;
  border-radius: var(--tech-radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  padding: 32px 36px;
  min-height: 148px;
  box-shadow: 0 16px 48px rgba(15, 40, 71, 0.18);
}

.dash-premium .dash-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #0f2847 0%, #1b3a5c 52%, #2e5a8c 100%);
  z-index: 0;
}

.dash-premium .dash-hero-bg::before {
  content: '';
  position: absolute;
  top: -60px;
  right: 60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 70%);
}

.dash-premium .dash-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 35%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
}

.dash-premium .dash-hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.dash-premium .dash-hero-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.dash-premium .dash-banner-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dash-premium .dash-kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.dash-premium .dash-kpi-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.dash-premium .dash-kpi-chip strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.dash-premium .dash-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.dash-premium .dash-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 0 16px;
}

.dash-premium .dash-section-head-compact {
  margin-top: 28px;
}

.dash-premium .dash-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-premium .dash-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1b3a5c;
  background: linear-gradient(135deg, #e8f0fa, #f4f8ff);
  border: 1px solid #dbe7f5;
  flex-shrink: 0;
}

.dash-premium .dash-section-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a2332;
  letter-spacing: 0.2px;
}

.dash-premium .dash-section-title p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #8e96a3;
}

.dash-premium .stat-card-premium {
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
}

.dash-premium .stat-card-premium .stat-go {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #c5d4e8;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.dash-premium .stat-card-premium:hover .stat-go {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

.dash-premium .stat-mini-premium {
  position: relative;
  padding-left: 44px;
  min-height: 58px;
}

.dash-premium .stat-mini-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #1b3a5c;
  background: #eef4fb;
}

.dash-premium .dash-todo-premium {
  padding-bottom: 42px;
}

.dash-premium .dash-todo-go {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #8e96a3;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.dash-premium .dash-todo-premium:hover .dash-todo-go {
  opacity: 1;
  color: #1b3a5c;
}

.dash-premium .dash-panel-premium {
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.07);
  box-shadow: var(--tech-shadow-1);
  border-radius: 18px;
  border-radius: var(--tech-radius-lg);
}

.dash-premium .dash-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-premium .dash-panel-title h4,
.dash-premium .dash-side-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a2332;
}

.dash-premium .dash-panel-title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8e96a3;
}

.dash-premium .dash-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1b3a5c;
  background: linear-gradient(135deg, #eef4fb, #f8fbff);
  border: 1px solid #e2ebf6;
  flex-shrink: 0;
}

.dash-premium .dash-side-head {
  margin-bottom: 16px;
}

.dash-premium .quick-links-premium {
  grid-template-columns: 1fr;
  gap: 8px;
}

.dash-premium .quick-links-premium .quick-link {
  padding: 12px 14px;
}

.dash-premium .ql-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.dash-premium .ql-desc {
  font-size: 11px;
  color: #8e96a3;
  line-height: 1.3;
}

.dash-premium .dash-tip-list-premium li {
  position: relative;
  padding-left: 4px;
  margin-bottom: 6px;
}

.dash-premium .dash-info-tag {
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 12px;
}

.dash-premium .info-grid-premium .info-item {
  background: #fff;
}

.dash-premium .info-grid-premium .info-item:nth-child(even) {
  background: #fafbfc;
}

.dash-premium .dash-table-premium thead th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  font-weight: 600;
  color: #64748b;
}

.dash-premium .dash-alerts {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .dash-premium .dash-hero {
    padding: 24px 20px;
  }
  .dash-premium .dash-hero-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .dash-premium .dash-banner-kpi {
    gap: 8px;
  }
  .dash-premium .dash-kpi-chip {
    padding: 6px 10px;
  }
}

/* 附件管理器 */
body.attach-picker-open { overflow: hidden; }

.attach-picker-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.attach-picker-overlay.hidden { display: none; }

.attach-picker-modal {
  width: min(920px, 100%);
  max-height: min(88vh, 760px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.attach-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e8ecf1;
}

.attach-picker-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
}

.attach-picker-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
}

.attach-picker-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #eef1f5;
  flex-wrap: wrap;
}

.attach-picker-search {
  flex: 1;
  min-width: 180px;
  height: 34px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}

.attach-picker-body {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
  min-height: 280px;
}

.attach-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.attach-picker-item {
  border: 2px solid transparent;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.attach-picker-item:hover {
  border-color: #4A90D9;
  box-shadow: 0 4px 14px rgba(74, 144, 217, 0.18);
}

.attach-picker-item img {
  width: 100%;
  aspect-ratio: 1;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #e5e7eb;
}

.attach-picker-item-name {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attach-picker-item-size {
  display: block;
  font-size: 10px;
  color: #9ca3af;
}

.attach-picker-empty,
.attach-picker-loading {
  text-align: center;
  color: #6b7280;
  padding: 48px 16px;
  font-size: 14px;
}

.attach-picker-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px 16px;
  border-top: 1px solid #eef1f5;
}

.attach-picker-page-info {
  font-size: 13px;
  color: #6b7280;
  min-width: 140px;
  text-align: center;
}

.attach-picker-drop {
  margin: 0 20px;
  padding: 14px;
  border: 2px dashed #4A90D9;
  border-radius: 10px;
  background: #f0f7ff;
  text-align: center;
  color: #2563eb;
  font-size: 14px;
}

.attach-picker-upload-tip {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.attach-picker-toolbar .attach-picker-upload-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.attach-picker-drop.hidden { display: none; }

.media-manager-card { padding: 0; overflow: hidden; }
.media-manager-root { padding: 16px 20px 8px; }
.media-manager-root .attach-picker-toolbar {
  padding: 0 0 12px;
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 12px;
}
.media-manager-root .attach-picker-subdir {
  min-width: 120px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.media-manager-root .attach-picker-body {
  max-height: none;
  min-height: 360px;
}
.media-manager-root .attach-picker-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.media-manager-root .attach-picker-item-view {
  cursor: default;
}
.media-manager-tip {
  margin: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid #eef0f3;
}
.attach-picker-toolbar .attach-picker-subdir {
  min-width: 110px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

.admin-path-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-path-prefix,
.admin-path-suffix {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.admin-path-row input {
  flex: 1;
  min-width: 140px;
}

/* ========== 登录页动画关键帧 ========== */

@keyframes loginFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loginSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes loginSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes loginGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes loginParticles {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 0.6; transform: scale(1); }
}

@keyframes loginOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

@keyframes loginShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes loginBorderGlow {
  0% { transform: translateX(-100%); opacity: 0; }
  25% { opacity: 1; }
  50% { transform: translateX(100%); opacity: 1; }
  75% { opacity: 0; }
  100% { transform: translateX(150%); opacity: 0; }
}

@keyframes loginTypeExpand {
  from { max-width: 0; }
  to { max-width: 100%; }
}

@keyframes loginBlink {
  50% { border-color: transparent; }
}

@keyframes loginPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes loginBtnGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========== 侧边栏动画关键帧 ========== */

@keyframes sidebarEdgeGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes sidebarBrandGlow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes sidebarLogoShimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

@keyframes sidebarActivePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes sidebarBrandDot {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

/* ============================================================
 * 侧边栏 · 科技增强 v5
 * 毛玻璃 / 极光 / 光标聚光 / 实时搜索 / 紧凑折叠栏 / 悬浮子菜单
 * ============================================================ */

/* --- 毛玻璃面板 --- */
.admin-sidebar {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(56, 189, 248, 0.07), transparent 55%),
    radial-gradient(90% 60% at 100% 100%, rgba(99, 102, 241, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(8, 18, 31, 0.86) 0%, rgba(11, 23, 38, 0.88) 38%, rgba(15, 28, 46, 0.90) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: transform 0.28s ease, width 0.32s cubic-bezier(.4, 0, .2, 1);
}

/* --- 极光流动层（置于面板最底层） --- */
.nav-aurora {
  position: absolute;
  top: -25%;
  right: -25%;
  bottom: -25%;
  left: -25%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: screen;
  background:
    radial-gradient(38% 30% at 18% 8%, rgba(56, 189, 248, 0.45), transparent 62%),
    radial-gradient(34% 30% at 88% 78%, rgba(129, 140, 248, 0.42), transparent 62%),
    radial-gradient(30% 26% at 60% 42%, rgba(45, 212, 191, 0.28), transparent 60%);
  filter: blur(22px);
  animation: navAuroraDrift 16s ease-in-out infinite alternate;
}
@keyframes navAuroraDrift {
  0%   { transform: translate3d(-2%, 1%, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}

/* --- 光标聚光层 --- */
.nav-spotlight {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(220px circle at 50% 0%,
    rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.05) 38%, transparent 60%);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
    rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.05) 38%, transparent 60%);
}
.admin-sidebar:hover .nav-spotlight { opacity: 1; }

/* --- 搜索框 --- */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 14px 8px;
  padding: 0 12px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  z-index: 2;
}
.nav-search:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 3px rgba(56, 189, 248, 0.10);
}
.nav-search-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: rgba(148, 163, 184, 0.6);
  transition: color 0.22s ease;
}
.nav-search:focus-within .nav-search-icon { color: #7dd3fc; }
.nav-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.nav-search-input::-moz-placeholder { color: rgba(148, 163, 184, 0.5); }
.nav-search-input::placeholder { color: rgba(148, 163, 184, 0.5); }
.nav-search-clear {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-search-clear:hover { background: rgba(251, 113, 133, 0.20); color: #fecdd3; }

/* --- 品牌区折叠开关 --- */
.nav-rail-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s ease;
  padding: 0;
}
.nav-rail-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(203, 213, 225, 0.7);
  transition: transform 0.3s ease, width 0.3s ease, background 0.2s ease;
}
.nav-rail-toggle:hover {
  background: rgba(56, 189, 248, 0.10);
  border-color: rgba(56, 189, 248, 0.35);
}
.nav-rail-toggle:hover span { background: #7dd3fc; }
.admin-sidebar.is-rail .nav-rail-toggle { transform: rotate(180deg); }
.admin-sidebar.is-rail .nav-rail-toggle span:first-child { width: 9px; transform: translateY(1px) rotate(35deg); }
.admin-sidebar.is-rail .nav-rail-toggle span:last-child { width: 9px; transform: translateY(-1px) rotate(-35deg); }

/* --- 激活态增强：能量光条 + 辉光 --- */
.admin-sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.06));
  color: #bae6fd;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.10), 0 6px 20px rgba(56, 189, 248, 0.10);
}
.admin-sidebar .nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #38bdf8 0%, #22d3ee 45%, #818cf8 100%);
  background-size: 100% 220%;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
  animation: sidebarActiveFlow 2.6s linear infinite, sidebarActivePulse 2.4s ease-in-out infinite;
}
@keyframes sidebarActiveFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 220%; }
}
.nav-group.has-active > .nav-group-title {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.03));
  color: #bae6fd;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.06);
}

/* --- 隐藏类（搜索过滤 / 折叠） --- */
.nav-hidden { display: none !important; }

/* --- 紧凑折叠栏（icon rail） --- */
.admin-sidebar.is-rail {
  width: 80px;
}
.admin-sidebar.is-rail .nav-brand-text,
.admin-sidebar.is-rail .nav-label-wrap,
.admin-sidebar.is-rail .nav-section-text,
.admin-sidebar.is-rail .nav-section-en,
.admin-sidebar.is-rail .nav-arrow,
.admin-sidebar.is-rail .nav-sidebar-foot .nav-foot-text,
.admin-sidebar.is-rail .nav-brand-sub,
.admin-sidebar.is-rail .nav-divider-label,
.admin-sidebar.is-rail .nav-divider-en,
.admin-sidebar.is-rail .nav-search {
  display: none !important;
}
.admin-sidebar.is-rail .nav-brand { justify-content: center; padding: 16px 8px 14px; }
.admin-sidebar.is-rail .nav-brand-logo { margin: 0 auto; }
.admin-sidebar.is-rail .nav-section { padding: 14px 6px 6px; justify-content: center; }
.admin-sidebar.is-rail .nav-section-no { width: 32px; height: 32px; }
.admin-sidebar.is-rail .nav-item,
.admin-sidebar.is-rail .nav-group-title {
  justify-content: center;
  margin-left: 10px;
  margin-right: 10px;
  padding-left: 0;
  padding-right: 0;
}
.admin-sidebar.is-rail .nav-group-left { justify-content: center; gap: 0; }
.admin-sidebar.is-rail .nav-icon-shell { margin: 0 auto; }
.admin-sidebar.is-rail .nav-desc { display: none !important; }
.admin-sidebar.is-rail .nav-group-items { display: none !important; }
.admin-sidebar.is-rail .nav-sidebar-foot button { padding: 9px 0; }

/* 悬浮子菜单（fixed 定位避免被 overflow 裁剪） */
.nav-rail-flyout {
  position: fixed;
  width: 216px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px;
  border-radius: 14px;
  background: rgba(10, 20, 35, 0.96);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(56, 189, 248, 0.20);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 9999;
  animation: navFlyoutIn 0.18s ease;
}
@keyframes navFlyoutIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nav-rail-flyout .nav-item.nav-sub {
  margin: 2px 4px;
  padding: 8px 12px;
  gap: 10px;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.82);
}
.nav-rail-flyout .nav-item.nav-sub:hover,
.nav-rail-flyout .nav-item.nav-sub.active {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}
.nav-rail-flyout .nav-sub-dot { display: none; }
.nav-rail-flyout::-webkit-scrollbar { width: 4px; }
.nav-rail-flyout::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.30); border-radius: 4px; }

/* --- 移动端：禁用折叠与搜索条 --- */
@media (max-width: 992px) {
  .nav-rail-toggle,
  .nav-search { display: none !important; }
  .admin-sidebar.is-rail { width: 272px; }
}

/* ========== 旗舰大气模板 v5 · 全局视觉升级 ========== */

.admin-shell-premium {
  --premium-header-h: 64px;
  --premium-glow: rgba(56, 189, 248, 0.14);
}

/* --- 设计令牌增强 --- */
.admin-shell-premium {
  --tech-bg: #e8edf5;
  --tech-line: #dde4ef;
  --tech-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 28px rgba(15, 23, 42, 0.08);
  --tech-shadow-2: 0 16px 48px rgba(15, 23, 42, 0.12);
  --tech-shadow-card-hover: 0 20px 50px rgba(15, 40, 71, 0.12);
}

/* --- 内容区 · 多层光晕背景 --- */
.admin-shell-premium .admin-body-root {
  background: #eef2f8;
  background: var(--tech-bg);
}
.admin-shell-premium .admin-main {
  position: relative;
  min-height: calc(100vh - var(--premium-header-h));
  padding: max(20px, min(3.2vw, 32px)) max(20px, min(3.5vw, 36px));
  background:
    radial-gradient(1100px 420px at 92% -80px, rgba(37, 99, 235, 0.09), transparent 68%),
    radial-gradient(800px 360px at 8% 120px, rgba(56, 189, 248, 0.06), transparent 62%),
    radial-gradient(600px 280px at 50% 100%, rgba(99, 102, 241, 0.04), transparent 70%),
    linear-gradient(180deg, #e8edf5 0%, #eef2f8 120px, #f3f6fb 100%);
}
.admin-shell-premium .admin-main::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

/* --- 顶栏 · 旗舰深色玻璃 --- */
.admin-shell-premium .admin-header-premium {
  height: var(--premium-header-h);
  padding: 0 max(16px, min(2.5vw, 28px));
  background:
    radial-gradient(120% 180% at 0% -40%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(80% 120% at 100% 0%, rgba(99, 102, 241, 0.10), transparent 50%),
    linear-gradient(135deg, #071220 0%, #0f2747 42%, #1a3d6e 78%, #1e4a82 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 32px rgba(4, 12, 28, 0.38);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  overflow: hidden;
}
.admin-shell-premium .admin-header-premium::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}
.admin-shell-premium .admin-header-premium {
  position: sticky;
}

/* 品牌区 */
.admin-shell-premium .admin-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.admin-shell-premium .admin-brand-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 16px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.admin-shell-premium .admin-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-shell-premium .admin-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}
.admin-shell-premium .admin-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(186, 230, 253, 0.72);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 顶栏右侧控件 */
.admin-shell-premium .admin-header-right {
  position: relative;
  z-index: 1;
  gap: 10px;
}
.admin-shell-premium .admin-notify-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.admin-shell-premium .admin-notify-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}
.admin-shell-premium .admin-user-trigger {
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.admin-shell-premium .admin-user-trigger:hover,
.admin-shell-premium .admin-user-menu.open .admin-user-trigger {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.30);
}
.admin-shell-premium .admin-user-avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.40), rgba(37, 99, 235, 0.50));
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.admin-shell-premium .admin-user-dropdown {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

/* --- 页头 · 玻璃卡片式 --- */
.admin-shell-premium .page-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  border-radius: var(--tech-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.07);
  box-shadow: var(--tech-shadow-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}
.admin-shell-premium .page-title {
  font-size: max(21px, min(2.8vw, 26px));
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f1f3a 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-shell-premium .page-subtitle,
.admin-shell-premium .page-desc {
  font-size: 13px;
  color: #8e96a3;
  color: var(--tech-muted);
  margin-top: 6px;
}

/* --- 卡片 · 悬浮质感 --- */
.admin-shell-premium .admin-main .card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  border-radius: var(--tech-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.07);
  box-shadow: var(--tech-shadow-1);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.admin-shell-premium .admin-main .card:hover {
  box-shadow: var(--tech-shadow-card-hover);
  border-color: rgba(56, 189, 248, 0.18);
}
.admin-shell-premium .admin-main .card > h4::before,
.admin-shell-premium .admin-main .card-head-title::before {
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.40);
}

/* --- 表格 · 精致表头 --- */
.admin-shell-premium .admin-main .table-scroll {
  border: 1px solid #e6ebf2;
  border: 1px solid var(--tech-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.admin-shell-premium .admin-main table thead th {
  padding: 13px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  background: linear-gradient(180deg, #f4f7fc 0%, #eef2f8 100%);
  border-bottom: 1px solid #dde4ef;
}
.admin-shell-premium .admin-main table tbody td {
  padding: 13px 14px;
  transition: background 0.15s;
}
.admin-shell-premium .admin-main table tbody tr:hover td {
  background: linear-gradient(90deg, #f7faff 0%, #f0f7ff 100%);
}

/* --- 按钮 · 更强主色 --- */
.admin-shell-premium .admin-main .btn-sm.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.admin-shell-premium .admin-main .btn-sm.primary:hover {
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* --- 表单输入 --- */
.admin-shell-premium .admin-main .form-group input:focus,
.admin-shell-premium .admin-main .form-group select:focus,
.admin-shell-premium .admin-main .form-group textarea:focus,
.admin-shell-premium .admin-main .tpl-search:focus {
  border-color: #2563eb;
  border-color: var(--tech-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 2px 8px rgba(37, 99, 235, 0.08);
  box-shadow: var(--tech-ring), 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* --- Dashboard · 旗舰 Hero 增强 --- */
.admin-shell-premium .dash-premium .dash-hero {
  padding: 36px 40px;
  min-height: 168px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow:
    0 24px 64px rgba(4, 12, 28, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.admin-shell-premium .dash-premium .dash-hero-bg {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(80% 80% at 100% 100%, rgba(99, 102, 241, 0.10), transparent 45%),
    linear-gradient(135deg, #060e1e 0%, #0f2747 38%, #1a3d6e 72%, #1e5090 100%);
}
.admin-shell-premium .dash-premium .dash-hero-bg::before {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 40px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 68%);
}
.admin-shell-premium .dash-premium .dash-hero-bg::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 70%);
}
.admin-shell-premium .dash-premium .dash-hero-badge {
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
  color: #bae6fd;
}
.admin-shell-premium .dash-premium .stat-card-premium {
  border: 1px solid rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  border-radius: var(--tech-radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.07);
  box-shadow: var(--tech-shadow-1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.admin-shell-premium .dash-premium .stat-card-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--tech-shadow-card-hover);
}
.admin-shell-premium .dash-premium .dash-panel-premium {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.admin-shell-premium .dash-premium .dash-section-title h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* --- 右侧浮动控件 --- */
.admin-shell-premium .admin-float-trigger {
  box-shadow: 0 8px 28px rgba(15, 40, 71, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.admin-shell-premium .admin-float-notify .admin-float-trigger,
.admin-shell-premium .admin-float-tips .admin-tips-trigger,
.admin-shell-premium .admin-float-mp .admin-mp-trigger {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-shell-premium .admin-toast {
  top: calc(var(--premium-header-h) + 12px);
}

/* --- 移动端适配 --- */
@media (max-width: 992px) {
  .admin-shell-premium .admin-brand-sub { display: none; }
  .admin-shell-premium .sidebar-overlay { top: var(--premium-header-h); }
  .admin-shell-premium .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
  }
}
@media (max-width: 640px) {
  .admin-shell-premium .admin-brand-mark { width: 36px; height: 36px; font-size: 12px; }
  .admin-shell-premium .admin-brand { font-size: 14px; }
  .admin-shell-premium .page-head { padding: 16px 18px; }
  .admin-shell-premium .dash-premium .dash-hero { padding: 24px 20px; }
}

/* ========== 侧边栏 · 旗舰大气 v5 ========== */

.admin-shell-premium .admin-sidebar {
  width: 248px;
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(56, 189, 248, 0.10), transparent 52%),
    radial-gradient(100% 70% at 100% 100%, rgba(99, 102, 241, 0.08), transparent 48%),
    linear-gradient(180deg, #050d18 0%, #081220 28%, #0c1828 62%, #0f1c2e 100%);
  box-shadow:
    inset -1px 0 0 rgba(56, 189, 248, 0.08),
    12px 0 40px rgba(0, 0, 0, 0.28);
}
.admin-shell-premium .admin-sidebar::after {
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(56, 189, 248, 0.20) 12%,
    rgba(56, 189, 248, 0.35) 35%,
    rgba(99, 102, 241, 0.30) 55%,
    rgba(56, 189, 248, 0.20) 78%,
    transparent 100%
  );
}

/* 品牌区 */
.admin-shell-premium .nav-brand-v5 {
  padding: 16px 14px 14px;
  gap: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.10);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, transparent 100%);
}
.admin-shell-premium .nav-brand-v5 .nav-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 18px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 6px 24px rgba(56, 189, 248, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.admin-shell-premium .nav-brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.admin-shell-premium .nav-brand-title-row strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #f8fafc 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-shell-premium .nav-brand-badge {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c4a6e;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}
.admin-shell-premium .nav-brand-sub {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: rgba(186, 230, 253, 0.55);
  margin-top: 5px;
}
.admin-shell-premium .nav-rail-toggle {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border-color: rgba(56, 189, 248, 0.20);
  background: rgba(56, 189, 248, 0.06);
}

/* 搜索框 */
.admin-shell-premium .nav-search {
  margin: 12px 12px 8px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.admin-shell-premium .nav-search:focus-within {
  border-color: rgba(56, 189, 248, 0.50);
  background: rgba(56, 189, 248, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(56, 189, 248, 0.12),
    0 4px 16px rgba(56, 189, 248, 0.10);
}

/* 分区标题 */
.admin-shell-premium .nav-section-premium {
  padding: 16px 14px 8px;
}
.admin-shell-premium .nav-section-no {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 10px;
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.15);
}
.admin-shell-premium .nav-section-label {
  font-size: 11px;
  letter-spacing: 1.5px;
}
.admin-shell-premium .nav-section-label::after {
  width: 24px;
  height: 2px;
  margin-top: 6px;
}

/* 导航项 */
.admin-shell-premium .admin-sidebar .nav-item,
.admin-shell-premium .nav-group-title {
  margin: 2px 10px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 13px;
  gap: 10px;
}
.admin-shell-premium .admin-sidebar .nav-desc {
  display: none;
}
.admin-shell-premium .nav-icon-shell {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.admin-shell-premium .nav-icon-shell .nav-icon {
  font-size: 13px;
}
.admin-shell-premium .admin-sidebar .nav-item:hover,
.admin-shell-premium .nav-group-title:hover {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.10), rgba(255, 255, 255, 0.03));
  transform: translateX(2px);
}
.admin-shell-premium .admin-sidebar .nav-item.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.10));
  box-shadow:
    inset 0 1px 0 rgba(56, 189, 248, 0.15),
    0 8px 24px rgba(56, 189, 248, 0.12);
}
.admin-shell-premium .admin-sidebar .nav-item.nav-tier-hero {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(37, 99, 235, 0.10));
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.08);
}
.admin-shell-premium .admin-sidebar .nav-item.nav-tier-hero.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.18));
  border-color: rgba(56, 189, 248, 0.40);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.16);
}

/* 子菜单 */
.admin-shell-premium .admin-sidebar .nav-sub {
  padding: 8px 10px 8px 36px;
  margin-left: 20px;
  border-radius: 10px;
  font-size: 12px;
}
.admin-shell-premium .nav-group-items::before {
  left: 28px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(148, 163, 184, 0.10), transparent);
}

/* 底部 */
.admin-shell-premium .nav-sidebar-foot {
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(56, 189, 248, 0.10);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}
.admin-shell-premium .nav-sidebar-foot button {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  border-color: rgba(56, 189, 248, 0.15);
  background: rgba(56, 189, 248, 0.05);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.admin-shell-premium .nav-sidebar-foot button:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.30);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.10);
}

/* 折叠态 */
.admin-shell-premium .admin-sidebar.is-rail {
  width: 72px;
}

/* 移动端 */
@media (max-width: 992px) {
  .admin-shell-premium .admin-sidebar {
    width: 248px;
  }
}
