/* ==========================================================================
   辰云电竞陪玩系统 · 后台（PC）样式
   与 base.css 共用设计令牌；类名前缀 ad-
   玻璃拟态主题层在文件末尾（第「玻璃拟态主题层」段）
   ========================================================================== */

body.ad {
  background: transparent;
  min-height: 100vh;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   布局
   -------------------------------------------------------------------------- */

.ad-layout {
  display: flex;
  min-height: 100vh;
}

.ad-side {
  width: 216px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
}

.ad-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.ad-brand__logo {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.ad-brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.ad-brand__name { font-size: 14.5px; font-weight: 600; letter-spacing: -.2px; line-height: 1.25; }
.ad-brand__sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.ad-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.ad-nav__group { font-size: 11px; color: var(--text-3); padding: 14px 10px 6px; font-weight: 500; letter-spacing: .3px; }
.ad-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--text-1);
  font-size: 13.5px;
  cursor: pointer;
  transition: background .14s, color .14s;
  margin-bottom: 2px;
  user-select: none;
}
.ad-nav__item i { font-style: normal; font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }
.ad-nav__item:hover { background: #F6F7FB; }
.ad-nav__item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.ad-nav__item .badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  line-height: 18px;
  text-align: center;
  font-weight: 600;
}

.ad-side__foot { padding: 12px; border-top: 1px solid var(--line); }
.ad-side__user { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; cursor: pointer; }
.ad-side__user:hover { background: #F6F7FB; }
.ad-side__user .info { flex: 1; min-width: 0; }
.ad-side__user .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-side__user .role { font-size: 11px; color: var(--text-3); }

.ad-main {
  flex: 1;
  margin-left: 216px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ad-top {
  height: 60px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}
.ad-top__title { font-size: 17px; font-weight: 600; letter-spacing: -.2px; }
.ad-top__desc { font-size: 12px; color: var(--text-3); }
.ad-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.ad-body { padding: 20px 24px 40px; flex: 1; }

.ad-page { display: none; }
.ad-page.active { display: block; animation: adFade .22s ease; }
@keyframes adFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   卡片
   -------------------------------------------------------------------------- */

.ad-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  overflow: hidden;
}
.ad-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.ad-card__head h3 { font-size: 14.5px; font-weight: 600; }
.ad-card__head .sub { font-size: 12px; color: var(--text-3); }
.ad-card__head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ad-card__body { padding: 18px; }
.ad-card__body--flush { padding: 0; }

/* --------------------------------------------------------------------------
   统计卡
   -------------------------------------------------------------------------- */

.ad-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ad-stat {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.ad-stat__label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.ad-stat__num { font-size: 25px; font-weight: 600; letter-spacing: -.7px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ad-stat__num small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.ad-stat__foot { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.ad-stat--brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.ad-stat--brand .ad-stat__label, .ad-stat--brand .ad-stat__foot { color: rgba(255,255,255,.82); }
.ad-stat--brand .ad-stat__num { color: #fff; }
.ad-stat--brand .ad-stat__num small { color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--text-1);
  transition: all .14s;
  white-space: nowrap;
  user-select: none;
}
.ad-btn:hover { border-color: #C9CEDC; background: #FAFBFD; }
.ad-btn:active { transform: scale(.98); }
.ad-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.ad-btn--primary:hover { background: #4338CA; border-color: #4338CA; }
.ad-btn--danger { background: #fff; border-color: #F5B5B0; color: var(--red); }
.ad-btn--danger:hover { background: var(--red-soft); }
.ad-btn--ghost { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.ad-btn--ghost:hover { background: #E4E7FF; }
.ad-btn--sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.ad-btn--lg { height: 42px; padding: 0 20px; font-size: 14px; border-radius: 11px; }
.ad-btn--block { display: flex; width: 100%; }
.ad-btn[disabled], .ad-btn.is-disabled { opacity: .5; pointer-events: none; }

.ad-btn-link { color: var(--brand); font-size: 13px; cursor: pointer; }
.ad-btn-link:hover { text-decoration: underline; }
.ad-btn-link.danger { color: var(--red); }

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */

.ad-field { margin-bottom: 16px; }
.ad-field__label { display: block; font-size: 13px; color: var(--text-1); font-weight: 500; margin-bottom: 7px; }
.ad-field__label .req { color: var(--red); }
.ad-field__hint { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }

.ad-input, .ad-textarea, .ad-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13.5px;
  transition: border-color .14s, box-shadow .14s;
}
.ad-textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.ad-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 12 8'%3E%3Cpath fill='%239BA1B4' d='M1.4 1.4 6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.ad-input:focus, .ad-textarea:focus, .ad-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.10);
  outline: none;
}
.ad-input::placeholder, .ad-textarea::placeholder { color: var(--text-3); }

.ad-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.ad-form-grid .full { grid-column: 1 / -1; }

.ad-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-1); cursor: pointer; user-select: none; }
.ad-check input { width: 15px; height: 15px; accent-color: var(--brand); }

.ad-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-radio {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
  transition: all .14s;
}
.ad-radio.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 500; }

/* --------------------------------------------------------------------------
   工具条
   -------------------------------------------------------------------------- */

.ad-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ad-toolbar .grow { flex: 1; }
.ad-search {
  position: relative;
  width: 240px;
}
.ad-search input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px;
}
.ad-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.10); outline: none; }
.ad-search::before {
  content: '🔍';
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .55;
}

.ad-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ad-tab {
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .14s;
  white-space: nowrap;
}
.ad-tab:hover { color: var(--text); }
.ad-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* --------------------------------------------------------------------------
   表格
   -------------------------------------------------------------------------- */

.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th {
  text-align: left;
  padding: 11px 14px;
  font-weight: 500;
  color: var(--text-3);
  font-size: 12px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ad-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ad-table tbody tr:hover { background: #FAFBFD; }
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table .num { font-variant-numeric: tabular-nums; }
.ad-table .nowrap { white-space: nowrap; }
.ad-table .actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.ad-table .mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; color: var(--text-2); }

.ad-thumb {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #F2F4F9;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-thumb--lg { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }

.ad-user-cell { display: flex; align-items: center; gap: 9px; }
.ad-user-cell .name { font-weight: 500; }
.ad-user-cell .sub { font-size: 11.5px; color: var(--text-3); }

/* --------------------------------------------------------------------------
   标签 / 状态
   -------------------------------------------------------------------------- */

.ad-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  background: #F2F4F9;
  color: var(--text-2);
  white-space: nowrap;
}
.ad-tag--green { background: var(--green-soft); color: var(--green); }
.ad-tag--orange { background: var(--orange-soft); color: #B77400; }
.ad-tag--red { background: var(--red-soft); color: var(--red); }
.ad-tag--blue { background: var(--blue-soft); color: var(--blue); }
.ad-tag--brand { background: var(--brand-soft); color: var(--brand); }

.ad-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); margin-right: 5px; }
.ad-dot.on { background: var(--green); }

/* --------------------------------------------------------------------------
   分页
   -------------------------------------------------------------------------- */

.ad-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ad-pager .info { margin-right: auto; color: var(--text-3); font-size: 12.5px; }
.ad-pager button {
  min-width: 30px; height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 12.5px;
  color: var(--text-1);
}
.ad-pager button:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.ad-pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.ad-pager button[disabled] { opacity: .45; pointer-events: none; }

/* --------------------------------------------------------------------------
   空态 / 加载
   -------------------------------------------------------------------------- */

.ad-empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
.ad-empty__icon { font-size: 40px; margin-bottom: 10px; opacity: .75; }
.ad-empty__text { font-size: 13px; }

.ad-loading { padding: 50px; text-align: center; color: var(--text-3); font-size: 13px; }
.ad-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--line-2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: adSpin .7s linear infinite;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}
@keyframes adSpin { to { transform: rotate(360deg); } }

.ad-skeleton {
  background: linear-gradient(90deg, #F0F1F6 25%, #F7F8FB 37%, #F0F1F6 63%);
  background-size: 400% 100%;
  animation: adSkeleton 1.3s ease infinite;
  border-radius: 6px;
  height: 14px;
}
@keyframes adSkeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* --------------------------------------------------------------------------
   弹窗 / 抽屉
   -------------------------------------------------------------------------- */

.ad-mask {
  position: fixed;
  inset: 0;
  background: rgba(20,22,31,.42);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.ad-mask.show { opacity: 1; pointer-events: auto; }

.ad-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -48%) scale(.97);
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: 88vh;
  background: #fff;
  border-radius: 16px;
  z-index: 901;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 24px 70px rgba(20,22,31,.24);
}
.ad-modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.ad-modal--wide { width: 760px; }
.ad-modal--sm { width: 400px; }

.ad-modal__head {
  display: flex;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ad-modal__head h3 { font-size: 15.5px; font-weight: 600; }
.ad-modal__head .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ad-modal__close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 16px;
}
.ad-modal__close:hover { background: #F2F4F9; color: var(--text); }
.ad-modal__body { padding: 20px; overflow-y: auto; flex: 1; }
.ad-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: #FCFCFE;
  border-radius: 0 0 16px 16px;
}

.ad-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 560px;
  max-width: 92vw;
  background: #fff;
  z-index: 901;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.3,.72,.3,1);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 50px rgba(20,22,31,.14);
}
.ad-drawer.show { transform: none; }

/* --------------------------------------------------------------------------
   提示
   -------------------------------------------------------------------------- */

.ad-toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translate(-50%, -16px);
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 10px;
  background: #14161F;
  color: #fff;
  font-size: 13.5px;
  opacity: 0;
  transition: all .22s;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(20,22,31,.24);
  max-width: 70vw;
}
.ad-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ad-toast--success { background: #0E9F5E; }
.ad-toast--error { background: #E13B30; }

.ad-alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: #3730A3;
  font-size: 12.5px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.ad-alert--warn { background: var(--orange-soft); color: #92400E; }
.ad-alert--info { background: var(--blue-soft); color: #1E40AF; }
.ad-alert strong { font-weight: 600; }

/* --------------------------------------------------------------------------
   工具类
   -------------------------------------------------------------------------- */

.ad-flex { display: flex; align-items: center; }
.ad-flex-b { display: flex; align-items: center; justify-content: space-between; }
.ad-gap-6 { gap: 6px; } .ad-gap-10 { gap: 10px; } .ad-gap-14 { gap: 14px; }
.ad-mt-10 { margin-top: 10px; } .ad-mt-16 { margin-top: 16px; } .ad-mt-20 { margin-top: 20px; }
.ad-mb-10 { margin-bottom: 10px; } .ad-mb-16 { margin-bottom: 16px; }
.ad-muted { color: var(--text-3); }
.ad-muted-2 { color: var(--text-2); }
.ad-strong { font-weight: 600; }
.ad-fz-12 { font-size: 12px; } .ad-fz-13 { font-size: 13px; }
.ad-fz-16 { font-size: 16px; } .ad-fz-20 { font-size: 20px; } .ad-fz-24 { font-size: 24px; }
.ad-red { color: var(--red); }
.ad-green { color: var(--green); }
.ad-brand { color: var(--brand); }
.ad-tc { text-align: center; } .ad-tr { text-align: right; }
.ad-hidden { display: none !important; }
.ad-nowrap { white-space: nowrap; }
.ad-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.ad-copy { cursor: pointer; border-bottom: 1px dashed var(--line-2); }
.ad-copy:hover { color: var(--brand); border-bottom-color: var(--brand); }

.ad-split { height: 1px; background: var(--line); margin: 16px 0; }

/* 简易柱状图 */
.ad-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 10px 0; }
.ad-chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.ad-chart__bar {
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  min-height: 3px;
  transition: height .4s;
}
.ad-chart__label { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.ad-chart__val { font-size: 10.5px; color: var(--text-2); font-weight: 500; }

/* 登录页 */
.ad-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #EEF0FF 0%, #F6F7FB 55%, #F0F9FF 100%);
  padding: 24px;
}
.ad-login__box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 30px;
  box-shadow: 0 1px 2px rgba(20,22,31,.04), 0 20px 50px rgba(20,22,31,.10);
}
.ad-login__logo {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  overflow: hidden;
}
.ad-login__logo img { width: 100%; height: 100%; object-fit: cover; }
.ad-login__title { font-size: 21px; font-weight: 600; letter-spacing: -.3px; }
.ad-login__sub { font-size: 13px; color: var(--text-3); margin-top: 5px; margin-bottom: 26px; }
.ad-login__tip { margin-top: 18px; font-size: 11.5px; color: var(--text-3); line-height: 1.7; text-align: center; }

@media (max-width: 900px) {
  .ad-side { width: 62px; }
  .ad-side .ad-nav__item span, .ad-side .ad-brand__name, .ad-side .ad-brand__sub,
  .ad-side .ad-nav__group, .ad-side .ad-side__user .info { display: none; }
  .ad-side .ad-nav__item { justify-content: center; padding: 0; }
  .ad-main { margin-left: 62px; }
}

/* ==========================================================================
   玻璃拟态主题层
   —— 侧边栏 / 卡片 / 按钮 / 表单 / 弹层统一改成半透明磨砂
   —— 靠层叠顺序覆盖上面的基础样式；想换回实心风格，删掉这一整段即可
   ========================================================================== */

/* ---------------- 1. 侧边栏 & 顶栏 ---------------- */

.ad-side {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid rgba(255, 255, 255, .62);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .5), 10px 0 34px rgba(31, 38, 95, .05);
}

.ad-brand { border-bottom: 1px solid rgba(118, 130, 168, .14); }

.ad-nav__item:hover { background: rgba(255, 255, 255, .5); }
.ad-nav__item.active {
  background: rgba(79, 70, 229, .15);
  border: 1px solid rgba(79, 70, 229, .16);
  color: var(--brand);
}
.ad-side__user:hover { background: rgba(255, 255, 255, .5); }
.ad-side__foot { border-top: 1px solid rgba(118, 130, 168, .14); }

.ad-top {
  background: rgba(255, 255, 255, .58);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(118, 130, 168, .16);
  box-shadow: 0 6px 24px rgba(31, 38, 95, .05);
}

/* ---------------- 2. 卡片 & 统计 ---------------- */

.ad-card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 30px rgba(31, 38, 95, .08);
}
.ad-card__head { border-bottom: 1px solid rgba(118, 130, 168, .16); }
.ad-card__body { background: transparent; }

.ad-stat {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 30px rgba(31, 38, 95, .08);
}
.ad-stat--brand {
  background: linear-gradient(135deg, rgba(79, 70, 229, .92), rgba(124, 58, 237, .88));
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 14px 34px rgba(79, 70, 229, .26), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* ---------------- 3. 按钮：半透明磨砂 ---------------- */

.ad-btn {
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  backdrop-filter: var(--glass-blur-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 3px 10px rgba(31, 38, 95, .06);
  transition: background .16s, border-color .16s, box-shadow .16s, transform .12s;
}
.ad-btn:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 18px rgba(31, 38, 95, .1);
}

.ad-btn--primary {
  background: linear-gradient(135deg, rgba(79, 70, 229, .92), rgba(124, 58, 237, .88));
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px rgba(79, 70, 229, .26);
}
.ad-btn--primary:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(124, 58, 237, .98));
  border-color: rgba(255, 255, 255, .38);
}

.ad-btn--ghost {
  background: rgba(79, 70, 229, .13);
  border-color: rgba(79, 70, 229, .18);
  color: var(--brand);
}
.ad-btn--ghost:hover { background: rgba(79, 70, 229, .2); border-color: rgba(79, 70, 229, .26); }

.ad-btn--danger {
  background: rgba(240, 68, 56, .11);
  border-color: rgba(240, 68, 56, .2);
  color: var(--red);
}
.ad-btn--danger:hover { background: rgba(240, 68, 56, .17); border-color: rgba(240, 68, 56, .28); }

/* ---------------- 4. 表单 ---------------- */

.ad-input, .ad-textarea, .ad-select {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
.ad-input:focus, .ad-textarea:focus, .ad-select:focus {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(79, 70, 229, .5);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .13);
}
.ad-select option { background: #fff; color: var(--text); }

.ad-search input {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ad-search input:focus { background: rgba(255, 255, 255, .82); border-color: rgba(79, 70, 229, .5); }

.ad-radio {
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ad-radio.active {
  background: rgba(79, 70, 229, .16);
  border-color: rgba(79, 70, 229, .45);
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .14);
}

.ad-tabs { border-bottom: 1px solid rgba(118, 130, 168, .16); }

/* ---------------- 5. 表格 ---------------- */

.ad-table th {
  background: rgba(255, 255, 255, .42);
  border-bottom: 1px solid rgba(118, 130, 168, .2);
}
.ad-table td { border-bottom: 1px solid rgba(118, 130, 168, .14); }
.ad-table tbody tr:hover { background: rgba(255, 255, 255, .45); }

.ad-user-cell .name { color: var(--text); }
.ad-thumb { background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .75); }

.ad-pager { border-top: 1px solid rgba(118, 130, 168, .16); }
.ad-pager button {
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ad-pager button:hover:not([disabled]) { background: rgba(255, 255, 255, .8); border-color: rgba(79,70,229,.4); }
.ad-pager button.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, .92), rgba(124, 58, 237, .88));
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

/* ---------------- 6. 标签 ---------------- */

.ad-tag {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .72);
  color: var(--text-2);
}
.ad-tag--green { background: rgba(18, 183, 106, .16); border-color: rgba(18, 183, 106, .22); color: #06794A; }
.ad-tag--orange { background: rgba(247, 144, 9, .18); border-color: rgba(247, 144, 9, .24); color: #9A5B00; }
.ad-tag--red { background: rgba(240, 68, 56, .14); border-color: rgba(240, 68, 56, .2); color: #B4271D; }
.ad-tag--blue { background: rgba(46, 144, 250, .16); border-color: rgba(46, 144, 250, .22); color: #1A6FC4; }
.ad-tag--brand { background: rgba(79, 70, 229, .15); border-color: rgba(79, 70, 229, .2); color: var(--brand); }

/* ---------------- 7. 弹层 ---------------- */

.ad-mask {
  background: rgba(24, 28, 60, .32);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
}

.ad-modal {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 30px 80px rgba(31, 38, 95, .26), inset 0 1px 0 rgba(255, 255, 255, .92);
}
.ad-modal__head { border-bottom: 1px solid rgba(118, 130, 168, .16); }
.ad-modal__foot { background: rgba(255, 255, 255, .45); border-top: 1px solid rgba(118, 130, 168, .16); }
.ad-modal__close:hover { background: rgba(255, 255, 255, .7); }

.ad-drawer {
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-left: 1px solid rgba(255, 255, 255, .8);
  box-shadow: -20px 0 60px rgba(31, 38, 95, .18);
}

.ad-toast {
  background: rgba(28, 32, 56, .86);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .16);
}

/* ---------------- 8. 提示与其它 ---------------- */

.ad-alert {
  background: rgba(79, 70, 229, .12);
  border: 1px solid rgba(79, 70, 229, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #3730A3;
}
.ad-alert--warn { background: rgba(247, 144, 9, .14); border-color: rgba(247, 144, 9, .2); color: #8A5200; }
.ad-alert--info { background: rgba(46, 144, 250, .13); border-color: rgba(46, 144, 250, .18); color: #17589E; }

.ad-empty, .ad-loading { color: var(--text-3); }

.ad-chart__bar { box-shadow: 0 6px 14px rgba(79, 70, 229, .22); }

.ad-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.5) 25%, rgba(255,255,255,.78) 37%, rgba(255,255,255,.5) 63%);
  background-size: 400% 100%;
}

.ad-login__box {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: 0 30px 80px rgba(31, 38, 95, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.ad-login { background: transparent; }

.ad-split { background: rgba(118, 130, 168, .16); }

/* ---------------- 9. 不支持毛玻璃时的兜底 ---------------- */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ad-side, .ad-top, .ad-card, .ad-stat, .ad-modal, .ad-drawer, .ad-login__box {
    background: rgba(255, 255, 255, .94);
  }
  .ad-btn { background: rgba(255, 255, 255, .92); }
  .ad-btn--primary { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
  .ad-input, .ad-textarea, .ad-select, .ad-search input { background: #fff; }
  body::before { opacity: .6; }
}
