/* ============================================================
   SesameCloud — 后台管理样式
   与前端同一设计语言，更偏工具化、信息密度更高
   ============================================================ */

:root {
  --bg-base:    #070a10;
  --bg-elev:    #0d1119;
  --bg-card:    rgba(19, 24, 35, 0.72);
  --bg-hover:   rgba(255,255,255,.045);
  --border:     rgba(255,255,255,.075);
  --border-hi:  rgba(255,255,255,.15);

  --text:       #e6eaf2;
  --text-dim:   #98a2b6;
  --text-faint: #5e6879;

  --accent:     #c8a24a;
  --accent-hi:  #e2c274;
  --accent-soft:rgba(200,162,74,.13);

  --ok:   #4ade80;
  --warn: #fbbf24;
  --err:  #f87171;
  --info: #60a5fa;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow:    0 8px 28px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.58);

  --ease: cubic-bezier(.22,.61,.36,1);
  --side-w: 248px;
}

* , *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.10);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); background-clip: content-box; }

::selection { background: var(--accent-soft); color: var(--accent-hi); }

.ad-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(200,162,74,.075), transparent 62%),
    radial-gradient(800px 460px at 92% 4%, rgba(78,120,220,.075), transparent 62%);
}

/* ---------------- 侧边栏 ---------------- */
.ad-side {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  transition: transform .3s var(--ease);
}

.ad-side__head {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
}

.ad-brand { display: flex; align-items: center; gap: 10px; }

.ad-brand__mark {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), #8a6b22);
  color: #0b0e15;
  box-shadow: 0 4px 12px rgba(200,162,74,.3);
}
.ad-brand__mark svg { width: 18px; height: 18px; }

.ad-brand__logo { height: 30px; width: auto; }

.ad-brand__text {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .3px;
  background: linear-gradient(100deg, #fff, #cbd3e2 55%, var(--accent-hi));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ad-menu {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
}

.ad-menu__group {
  padding: 14px 10px 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ad-menu__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 14px;
  transition: all .22s var(--ease);
  position: relative;
}
.ad-menu__item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.ad-menu__item:hover { background: var(--bg-hover); color: var(--text); }

.ad-menu__item.is-active {
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-weight: 500;
}
.ad-menu__item.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.ad-side__foot {
  padding: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
}

.ad-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  min-width: 0;
  transition: background .22s var(--ease);
}
.ad-user:hover { background: var(--bg-hover); }

.ad-user__avatar {
  width: 32px; height: 32px;
  flex: 0 0 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #2b3547, #1a2130);
  border: 1px solid var(--border-hi);
  color: var(--accent-hi);
  font-weight: 600;
  font-size: 13.5px;
}

.ad-user__info { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ad-user__info b {
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ad-user__info small { font-size: 11.5px; color: var(--text-faint); }

.ad-logout button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  transition: all .22s var(--ease);
}
.ad-logout button:hover {
  background: rgba(248,113,113,.13);
  border-color: rgba(248,113,113,.35);
  color: var(--err);
}
.ad-logout svg { width: 16px; height: 16px; }

/* ---------------- 主区 ---------------- */
.ad-main {
  position: relative;
  z-index: 1;
  margin-left: var(--side-w);
  padding: 28px 30px 60px;
  min-height: 100vh;
}

/* ---------------- 顶部栏（移动端） ---------------- */
.ad-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 55;
  height: 56px;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  background: rgba(7,10,16,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.ad-burger {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
}
.ad-burger svg { width: 18px; height: 18px; }
.ad-topbar__title { font-size: 15px; font-weight: 600; }

.ad-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 55;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

/* ---------------- 页头 ---------------- */
.ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ad-head__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .3px;
}
.ad-head__sub { margin: 5px 0 0; font-size: 13.5px; color: var(--text-dim); }

/* ---------------- 卡片 ---------------- */
.ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 22px;
  margin-bottom: 22px;
}
.ad-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ad-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ad-card__title svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------------- 统计卡 ---------------- */
.ad-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.ad-stat {
  position: relative;
  overflow: hidden;
  padding: 21px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .3s var(--ease);
}
.ad-stat:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow);
}

.ad-stat__icon {
  position: absolute;
  top: 17px; right: 17px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-hi);
}
.ad-stat__icon svg { width: 19px; height: 19px; }

.ad-stat__label {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 9px;
  letter-spacing: .3px;
}
.ad-stat__value {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.4px;
}
.ad-stat__value small { font-size: 14px; font-weight: 500; color: var(--text-dim); margin-left: 4px; }
.ad-stat__hint { margin-top: 7px; font-size: 12px; color: var(--text-faint); }

/* 环形进度 */
.ad-ring {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.ad-ring__chart { position: relative; width: 152px; height: 152px; flex: 0 0 152px; }
.ad-ring__chart svg { transform: rotate(-90deg); }
.ad-ring__chart circle { fill: none; stroke-linecap: round; }
.ad-ring__track { stroke: rgba(255,255,255,.07); }
.ad-ring__fill { stroke: url(#scGrad); transition: stroke-dashoffset 1s var(--ease); }
.ad-ring__center {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
}
.ad-ring__pct { font-size: 29px; font-weight: 700; letter-spacing: -.6px; }
.ad-ring__pct span { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.ad-ring__cap { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

.ad-ring__legend { flex: 1; min-width: 200px; }
.ad-ring__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.ad-ring__row:last-child { border-bottom: none; }
.ad-ring__row span { color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; }
.ad-ring__row b { font-weight: 600; }
.ad-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ad-dot--used { background: var(--accent); }
.ad-dot--free { background: rgba(255,255,255,.2); }

/* ---------------- 按钮 ---------------- */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 9px;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .22s var(--ease);
}
.ad-btn:hover { background: rgba(255,255,255,.11); transform: translateY(-1px); }
.ad-btn svg { width: 15px; height: 15px; }
.ad-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.ad-btn--primary {
  background: linear-gradient(135deg, var(--accent), #a8842f);
  border-color: transparent;
  color: #0b0e15;
  font-weight: 600;
  box-shadow: 0 5px 16px rgba(200,162,74,.26);
}
.ad-btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  box-shadow: 0 8px 22px rgba(200,162,74,.36);
}

.ad-btn--danger { border-color: rgba(248,113,113,.35); color: #ff9c9c; }
.ad-btn--danger:hover { background: rgba(248,113,113,.15); }

.ad-btn--sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.ad-btn--icon { padding: 8px; width: 34px; height: 34px; }

/* 卡片操作按钮组 */
.ad-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 表单 ---------------- */
.ad-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.ad-field { margin-bottom: 19px; }
.ad-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.ad-field__label .req { color: var(--err); margin-left: 3px; }
.ad-field__hint { margin-top: 6px; font-size: 12px; color: var(--text-faint); }

.ad-input, .ad-select, .ad-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-hi);
  background: rgba(0,0,0,.26);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all .22s var(--ease);
}
.ad-input:focus, .ad-select:focus, .ad-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ad-input::placeholder, .ad-textarea::placeholder { color: var(--text-faint); }
.ad-textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.ad-select { cursor: pointer; }
.ad-select option { background: #131824; color: var(--text); }

/* 开关 */
.ad-switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}
.ad-switch input { display: none; }
.ad-switch__track {
  width: 42px; height: 24px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: rgba(255,255,255,.13);
  border: 1px solid var(--border-hi);
  position: relative;
  transition: all .26s var(--ease);
}
.ad-switch__track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .26s var(--ease);
}
.ad-switch input:checked + .ad-switch__track {
  background: var(--accent);
  border-color: var(--accent);
}
.ad-switch input:checked + .ad-switch__track::after { transform: translateX(18px); }
.ad-switch__text { font-size: 13.5px; color: var(--text-dim); }

/* 单选卡片（访问权限：公开 / 加密） */
.ad-radio {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.ad-radio:hover { border-color: var(--border-hi); }
.ad-radio input { display: none; }
.ad-radio__mark {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,.05);
  position: relative;
  transition: all .2s var(--ease);
}
.ad-radio__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.ad-radio input:checked ~ .ad-radio__mark {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ad-radio input:checked ~ .ad-radio__mark::after { opacity: 1; }
.ad-radio:has(input:checked) {
  border-color: rgba(200,162,74,.5);
  background: rgba(200,162,74,.06);
}
.ad-radio__text { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.ad-radio__text b { font-weight: 600; }
.ad-radio__text span { font-size: 12.5px; color: var(--text-dim); }

/* ---------------- 表格 ---------------- */
.ad-table-wrap { overflow-x: auto; border-radius: var(--radius); }

.ad-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ad-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: .4px;
  border-bottom: 1px solid var(--border-hi);
  white-space: nowrap;
  background: rgba(255,255,255,.022);
}
.ad-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ad-table tbody tr { transition: background .18s var(--ease); }
.ad-table tbody tr:hover { background: var(--bg-hover); }
.ad-table tbody tr:last-child td { border-bottom: none; }

/* ---------------- 标签 ---------------- */
.ad-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ad-tag--ok    { background: rgba(74,222,128,.13); color: #7ee2a2; border-color: rgba(74,222,128,.26); }
.ad-tag--warn  { background: rgba(251,191,36,.13); color: #fcd34d; border-color: rgba(251,191,36,.26); }
.ad-tag--err   { background: rgba(248,113,113,.13); color: #fca5a5; border-color: rgba(248,113,113,.26); }
.ad-tag--info  { background: rgba(96,165,250,.13); color: #93c5fd; border-color: rgba(96,165,250,.26); }
.ad-tag--muted { background: rgba(255,255,255,.06); color: var(--text-dim); border-color: var(--border); }

/* ---------------- 相册卡片列表 ---------------- */
.ad-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 18px;
}

.ad-album {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.ad-album:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow);
}

.ad-album__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #131a26, #1b2334);
  overflow: hidden;
}
.ad-album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ad-album:hover .ad-album__cover img { transform: scale(1.05); }

.ad-album__cover--empty {
  display: grid; place-items: center;
  height: 100%;
  color: var(--text-faint);
  font-size: 12.5px;
}

.ad-album__cover-tags {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.ad-album__body { padding: 15px 17px 16px; flex: 1; display: flex; flex-direction: column; }

.ad-album__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ad-album__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.ad-album__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ad-album__meta svg { width: 13px; height: 13px; opacity: .8; }

.ad-album__acts {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.ad-album__acts .ad-btn { padding: 7px 6px; font-size: 12px; gap: 5px; }
.ad-album__acts .ad-btn svg { width: 14px; height: 14px; }

/* ---------------- 照片缩略网格 ---------------- */
.ad-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}

.ad-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #131a26, #1b2334);
  border: 1px solid var(--border);
  transition: all .28s var(--ease);
}
.ad-photo:hover { border-color: var(--border-hi); box-shadow: var(--shadow); }
.ad-photo img { width: 100%; height: 100%; object-fit: cover; }

.ad-photo__mask {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,6,10,.9), transparent 55%);
  opacity: 0;
  transition: opacity .26s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9px;
  gap: 6px;
}
.ad-photo:hover .ad-photo__mask { opacity: 1; }

.ad-photo__name {
  font-size: 11.5px;
  color: #dde3ee;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ad-photo__acts { display: flex; gap: 5px; }
.ad-photo__acts button, .ad-photo__acts a {
  flex: 1;
  height: 28px;
  display: grid; place-items: center;
  border: none;
  border-radius: 7px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: all .2s var(--ease);
}
.ad-photo__acts button:hover, .ad-photo__acts a:hover { background: var(--accent); color: #0b0e15; }
.ad-photo__acts svg { width: 14px; height: 14px; }

.ad-photo__check {
  position: absolute;
  top: 8px; left: 8px;
  width: 21px; height: 21px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: all .22s var(--ease);
}
.ad-photo:hover .ad-photo__check,
.ad-photo.is-checked .ad-photo__check { opacity: 1; }
.ad-photo.is-checked .ad-photo__check {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0e15;
}
.ad-photo.is-checked { border-color: var(--accent); }
.ad-photo.is-checked::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  pointer-events: none;
}
.ad-photo__check svg { width: 13px; height: 13px; }

/* ---------------- 上传区 ---------------- */
.ad-drop {
  border: 2px dashed var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: all .28s var(--ease);
  cursor: pointer;
  background: rgba(255,255,255,.014);
}
.ad-drop:hover, .ad-drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ad-drop__icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(200,162,74,.26);
  color: var(--accent-hi);
}
.ad-drop__icon svg { width: 25px; height: 25px; }
.ad-drop__title { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.ad-drop__sub { font-size: 12.5px; color: var(--text-faint); }

.ad-upload-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ad-upload-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--border);
  font-size: 13px;
}
.ad-upload-item__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-upload-item__bar {
  width: 110px; height: 5px;
  flex: 0 0 110px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.ad-upload-item__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  border-radius: 3px;
  transition: width .3s var(--ease);
}
.ad-upload-item__state { flex: 0 0 62px; text-align: right; font-size: 12px; color: var(--text-dim); }

/* ---------------- 提示条 ---------------- */
.ad-alert {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 13.5px;
  border: 1px solid;
}
.ad-alert svg { width: 17px; height: 17px; flex: 0 0 17px; }
.ad-alert--ok  { background: rgba(74,222,128,.09); border-color: rgba(74,222,128,.26); color: #9be8b5; }
.ad-alert--err { background: rgba(248,113,113,.09); border-color: rgba(248,113,113,.28); color: #fca5a5; }

/* ---------------- 空状态 ---------------- */
.ad-empty {
  padding: 64px 22px;
  text-align: center;
  color: var(--text-faint);
}
.ad-empty__icon {
  width: 66px; height: 66px;
  margin: 0 auto 17px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}
.ad-empty__icon svg { width: 28px; height: 28px; opacity: .5; }
.ad-empty h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 500; color: var(--text-dim); }
.ad-empty p { margin: 0 0 20px; font-size: 13px; }

/* ---------------- 分页 ---------------- */
.ad-pager {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.ad-pager a, .ad-pager span {
  min-width: 36px; height: 36px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 13.5px;
  transition: all .22s var(--ease);
}
.ad-pager a:hover { border-color: var(--accent); color: var(--accent-hi); }
.ad-pager .is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0e15;
  font-weight: 600;
}
.ad-pager .is-disabled { opacity: .4; pointer-events: none; }

/* ---------------- 弹窗 ---------------- */
.ad-modal {
  position: fixed; inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4,6,10,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ad-modal.is-open { display: flex; }

.ad-modal__box {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: #11161f;
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: adPop .26s var(--ease);
}
@keyframes adPop {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ad-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ad-modal__title { margin: 0; font-size: 17px; font-weight: 600; }
.ad-modal__close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  transition: all .22s var(--ease);
}
.ad-modal__close:hover { background: rgba(248,113,113,.14); color: var(--err); }
.ad-modal__close svg { width: 15px; height: 15px; }

.ad-modal__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

/* 复制框 */
.ad-copybox {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ad-copybox input {
  flex: 1;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-hi);
  background: rgba(0,0,0,.32);
  color: var(--accent-hi);
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* ---------------- 日志 ---------------- */
.ad-log-list { display: flex; flex-direction: column; gap: 2px; }
.ad-log-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  transition: background .18s var(--ease);
}
.ad-log-item:hover { background: var(--bg-hover); }
.ad-log-item__time { flex: 0 0 130px; color: var(--text-faint); font-size: 12.5px; }
.ad-log-item__user { flex: 0 0 88px; color: var(--accent-hi); }
.ad-log-item__act  { flex: 0 0 130px; color: var(--text-dim); font-size: 12.5px; }
.ad-log-item__detail { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-faint); font-size: 12.5px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .ad-topbar { display: flex; }
  .ad-side { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .ad-side.is-open { transform: translateX(0); }
  .ad-overlay.is-open { display: block; }
  .ad-main { margin-left: 0; padding: 20px 16px 50px; }
  .ad-head__title { font-size: 19px; }
  .ad-stat__value { font-size: 23px; }
  .ad-ring { gap: 20px; }
  .ad-ring__chart { width: 132px; height: 132px; flex-basis: 132px; }
  .ad-album__acts { grid-template-columns: repeat(2, 1fr); }
  .ad-photo-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9px; }
  .ad-log-item__time { flex-basis: 96px; }
  .ad-log-item__user { flex-basis: 70px; }
}

@media (max-width: 560px) {
  .ad-card { padding: 17px; border-radius: var(--radius); }
  .ad-stats { gap: 12px; }
  .ad-stat { padding: 17px; }
  .ad-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .ad-upload-item__bar { display: none; }
  .ad-form-row { gap: 0; }
}

/* ============================================================
   登录页
   ============================================================ */
.lg-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px 18px;
  position: relative;
}
.lg-card {
  width: 100%;
  max-width: 408px;
  padding: 40px 34px 34px;
  border-radius: 24px;
  background: rgba(17, 22, 31, .78);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.lg-logo {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--accent), #8a6b22);
  color: #0b0e15;
  box-shadow: 0 10px 30px rgba(200,162,74,.3);
}
.lg-logo svg { width: 30px; height: 30px; }
.lg-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.lg-title { margin: 0 0 7px; text-align: center; font-size: 21px; font-weight: 600; letter-spacing: .3px; }
.lg-sub { margin: 0 0 28px; text-align: center; font-size: 13.5px; color: var(--text-dim); }

.lg-field { margin-bottom: 17px; position: relative; }
.lg-field__icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}
.lg-field__icon svg { width: 17px; height: 17px; }
.lg-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 11px;
  border: 1px solid var(--border-hi);
  background: rgba(0,0,0,.3);
  color: var(--text);
  font-size: 14.5px;
  transition: all .22s var(--ease);
}
.lg-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lg-input::placeholder { color: var(--text-faint); }

.lg-btn {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #a8842f);
  color: #0b0e15;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .4px;
  transition: all .26s var(--ease);
}
.lg-btn:hover {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  box-shadow: 0 10px 28px rgba(200,162,74,.4);
}
.lg-btn:active { transform: scale(.99); }

.lg-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}
.lg-foot a { color: var(--text-dim); }
.lg-foot a:hover { color: var(--accent-hi); }
