:root {
  --bg: #fafafa;
  --card: #ffffff;
  --card2: #f5f5f5;
  --border: #e8e8e8;
  --line: #f2f2f2;
  --text: #191919;
  --muted: #8b8b8b;
  --accent: #4b5cf6;
  --ok: #1a8a5a;
  --ok-soft: #f2faf6;
  --ok-line: #d5ecdf;
  --warn: #b45309;
  --warn-soft: #fdf7ee;
  --warn-line: #f0e2c8;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .05);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .08);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
body.page-white { background: #ffffff; }

/* ---- 顶栏 ---- */
header.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 13px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
header.topbar .logo { font-size: 18px; font-weight: 800; letter-spacing: .08em; }
header.topbar .logo span { font-weight: 300; color: var(--muted); }
header.topbar nav { display: flex; gap: 0; margin-left: 14px; }
header.topbar nav a {
  color: var(--muted); text-decoration: none;
  padding: 7px 16px 7px 0; margin-right: 16px;
  border-bottom: 2px solid transparent;
  font-size: 13px; letter-spacing: .12em;
  transition: color .15s, border-color .15s;
}
header.topbar nav a.active { color: var(--text); border-bottom-color: var(--text); }
header.topbar nav a:hover { color: var(--text); }

main { max-width: 1080px; margin: 0 auto; padding: 34px 20px 64px; }

h2.section { font-size: 17px; margin: 26px 0 14px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---- 首页大标题 ---- */
.headline { text-align: center; margin: 26px 0 4px; }
.headline > span:first-child {
  display: block;
  font-size: 46px; font-weight: 800; letter-spacing: .06em;
  line-height: 1.1;
}
.headline .sub {
  display: block; margin-top: 12px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  letter-spacing: .4em; text-indent: .4em;
}

/* ---- 结果页大标题（参考 lightpro headline_main） ---- */
.result-main { max-width: 980px; }
.headline_main {
  margin: 26px 0 4px;
  font-size: 40px; font-weight: 800; letter-spacing: .06em; line-height: 1.1;
}
.headline_main .sub {
  display: block; margin-top: 12px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  letter-spacing: .3em;
}

/* ---- 上传区 ---- */
.upload-card {
  max-width: 560px; margin: 46px auto 0; padding: 66px 30px;
  text-align: center; border: 1px solid var(--border); background: var(--card);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.upload-card:hover, .upload-card.drag { border-color: var(--text); box-shadow: var(--shadow-md); }
.upload-card.busy { cursor: default; }
.upload-card.busy:hover { border-color: var(--border); box-shadow: none; }
.uc-icon {
  width: 76px; height: 76px; margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text);
  transition: color .2s, border-color .2s;
}
.upload-card:hover .uc-icon { border-color: var(--text); }
.upload-card.busy:hover .uc-icon { border-color: var(--border); }
.uc-icon svg { width: 34px; height: 34px; }
.uc-icon .spinner { width: 30px; height: 30px; border-width: 3px; }
.uc-title { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.uc-hint { margin-top: 12px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }

.url-row {
  margin-top: 22px; width: 100%; max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.url-row .url-or {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--muted); letter-spacing: .28em;
  margin-bottom: 10px;
}
.url-row .url-or::before, .url-row .url-or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.url-row input[type=url] {
  width: 100%;
  background: var(--card2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 14px; font-size: 13px;
  text-align: center;
}
.url-row input[type=url]:focus { border-color: var(--text); outline: none; }

.spinner {
  width: 28px; height: 28px;
  border: 2px solid #e3e3e3; border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ---- 结果页：档案模块（左图右文） ---- */
.face-tabs { display: flex; gap: 8px; margin: 24px 0 0; }
.face-tab {
  padding: 6px 18px; font-size: 12px; letter-spacing: .1em;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.face-tab:hover { border-color: var(--text); color: var(--text); }
.face-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.detail-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 44px;
  align-items: start; margin-top: 28px;
}
.tphoto { border: 1px solid var(--border); background: var(--card); }
.tphoto img { width: 100%; display: block; }
.tprofile { min-width: 0; }

.name_main { font-size: 32px; font-weight: 800; letter-spacing: .02em; line-height: 1.25; }
.name_main .badge { margin-left: 12px; vertical-align: 8px; }
.name_sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

.sim-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.sim-row .num { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.sim-row .track { flex: 1; max-width: 220px; height: 3px; background: #f0f0f0; overflow: hidden; }
.sim-row .track i { display: block; height: 100%; transition: width 1s cubic-bezier(.22, 1, .36, 1); }
.sim-row .lbl { font-size: 10px; color: var(--muted); letter-spacing: .25em; }

/* lightpro 风格精简卡片（搜索结果） */
.lp-card {
  display: grid; grid-template-columns: 380px 1fr; gap: 40px;
  align-items: start; margin-top: 28px;
}
.lp-photo { border: 1px solid var(--border); background: var(--card); }
.lp-photo img { width: 100%; display: block; }
.lp-info { min-width: 0; }
.lp-sim { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.lp-sim .num { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.lp-sim .lbl { font-size: 10px; color: var(--muted); letter-spacing: .25em; }

.profile-list { margin-top: 20px; border-top: 1px solid var(--border); }
.profile-list .row {
  display: flex; gap: 20px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; line-height: 1.6;
}
.profile-list dt { width: 78px; flex: none; color: var(--muted); letter-spacing: .12em; }
.profile-list dd { color: var(--text); }

.mov-sec { margin-top: 28px; }
.photos-sec { margin-top: 28px; }
.profile-sec { margin-top: 28px; }
.profile-sec .profile-list { margin-top: 0; border-top: 0; }
.bio-text {
  font-size: 13px; line-height: 1.9; color: var(--text);
  white-space: normal; max-width: 720px;
}
.divider-title {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; color: var(--muted); letter-spacing: .28em;
  margin-bottom: 16px;
}
.divider-title::before, .divider-title::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.photos-sec .photos-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  gap: 16px; margin-bottom: 0;
}
.photos-sec .photos-row img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  display: block; cursor: zoom-in;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: transform .15s ease;
}
.photos-sec .photos-row img:hover { transform: scale(1.02); }
.img-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0, 0, 0, .88);
  display: flex; align-items: center; justify-content: center;
}
.img-overlay[hidden] { display: none; }
.img-overlay .img-container { max-width: 94vw; max-height: 94vh; }
.img-overlay img {
  display: block; max-width: 94vw; max-height: 94vh;
  border-radius: 4px;
}
.img-overlay .nav-btn, .img-overlay .close-btn {
  position: absolute; z-index: 1101; color: #fff; cursor: pointer;
  user-select: none; background: rgba(0, 0, 0, .4);
  border-radius: 4px; line-height: 1; padding: 10px 14px;
  transition: background .15s;
}
.img-overlay .close-btn { top: 16px; right: 20px; }
.img-overlay .nav-btn.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.img-overlay .nav-btn.next { right: 14px; top: 50%; transform: translateY(-50%); }
.img-overlay .nav-btn:hover, .img-overlay .close-btn:hover { background: rgba(255, 255, 255, .25); }
.sec-title {
  font-size: 11px; color: var(--muted);
  letter-spacing: .28em; text-indent: .28em; margin-bottom: 12px;
}
.movies { display: flex; flex-wrap: wrap; }
.movies .mv {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 12px; margin: 0 8px 8px 0; font-size: 13px;
  background: var(--card);
}
.mv .role { font-size: 10px; color: var(--accent); letter-spacing: .1em; }
.mv .yr { color: var(--muted); font-size: 12px; }

.movie-table-wrap { overflow-x: auto; }
.mv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mv-table th {
  text-align: left; font-size: 11px; color: var(--muted);
  letter-spacing: .15em; padding: 8px 12px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mv-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
.mv-table tbody tr:hover { background: var(--card); }
.mv-table .c-code { white-space: nowrap; }
.mv-table .m-code { font-family: Consolas, "Courier New", monospace; letter-spacing: .04em; }
.mv-table .m-empty { color: var(--muted); }
.mv-table .c-act { text-align: right; white-space: nowrap; }
.mv-table .c-rel, .mv-table .c-dur, .mv-table .c-stu { white-space: nowrap; }

.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 14px 0 4px;
}
.p-btn {
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 12px; padding: 6px 14px; cursor: pointer; border-radius: 6px;
  transition: background .15s, border-color .15s;
}
.p-btn:hover:not(:disabled) { border-color: var(--text); }
.p-btn:disabled { opacity: .4; cursor: default; }
.pager .p-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .p-btn:not(.active):not(:disabled) { cursor: pointer; }
.p-info { font-size: 12px; color: var(--muted); letter-spacing: .08em; }

.mm-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--warn); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 24px;
  border: 1px solid var(--text); color: var(--text);
  font-size: 13px; letter-spacing: .15em; text-indent: .05em;
  text-decoration: none; background: var(--card);
  transition: background .15s, color .15s;
}
.link-btn:hover { background: var(--text); color: #fff; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 26px;
  border: 1px solid var(--text); border-radius: 999px;
  color: var(--text); background: transparent;
  font-size: 13px; letter-spacing: .15em; text-indent: .05em;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pill-btn:hover { background: var(--text); color: #fff; }

.pill-wrap { display: flex; justify-content: center; margin: -30px 0 0; }

.circle-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); text-decoration: none;
  transition: border-color .15s, background .15s;
}
.circle-btn:hover { border-color: var(--text); background: var(--card2); }
.circle-btn svg { width: 18px; height: 18px; }

.cand-sec { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.cand-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cand {
  display: flex; flex-direction: column; gap: 6px;
  width: 160px; padding: 8px;
  border: 1px solid var(--border); background: var(--card);
  text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.cand:hover { border-color: var(--text); }
.cand img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 8px; background: var(--card2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.cand-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 2px; min-width: 0; }
.cand-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-sim { font-size: 12px; color: var(--muted); }

.badge {
  display: inline-block; padding: 3px 10px;
  border: 1px solid; border-radius: 999px;
  font-size: 11px; letter-spacing: .05em; white-space: nowrap;
}
.badge.matched { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.badge.uncertain { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }

/* ---- 空状态 ---- */
.empty-card { padding: 56px 20px; text-align: center; }
.ec-icon {
  width: 64px; height: 64px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  color: var(--muted);
}
.ec-icon svg { width: 28px; height: 28px; }
.empty-title { margin-top: 18px; font-size: 16px; font-weight: 700; }
.empty-desc { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.empty-card .link-btn { margin-top: 24px; }
.empty-cta {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 30px; flex-wrap: wrap;
}

/* ---- 按钮（图库通用） ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--text); }
.btn:active { opacity: .75; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #3d4ede; }
.btn.danger { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
button.pill-btn { cursor: pointer; font: inherit; }

input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(75, 92, 246, .12);
}

/* ---- 图库 ---- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar input[type=text], .toolbar input[type=search] {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 14px; font-size: 14px; min-width: 220px; flex: 1;
}
.field input, .field select, .field textarea {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 14px;
}

.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tabs .tab {
  padding: 9px 26px; cursor: pointer; font-size: 14px;
  font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.tabs .tab.active { color: var(--text); border-bottom-color: var(--accent); }

.page-columns { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; margin-top: 18px; }
.col-main { min-width: 0; }
.col-side { position: sticky; top: 70px; }
.side-search {
  border: 1px solid var(--border); background: var(--card);
  padding: 18px; border-radius: var(--radius);
}
.side-search form { position: relative; }
.side-search input[type=search] {
  width: 100%; height: 36px;
  padding: 6px 36px 6px 12px; margin: 0;
  font-size: 14px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--card2); color: var(--text);
  box-sizing: border-box;
}
.search-submit {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  border: none; border-radius: 4px;
  background: var(--accent); color: #fff; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 16px;
}
.search-submit:hover { background-color: #3d4ede; }
.side-search .muted { display: block; margin-top: 10px; text-align: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.acard {
  background: var(--card); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.acard:hover { transform: translateY(-2px); border-color: var(--text); box-shadow: var(--shadow-sm); }
a.acard { text-decoration: none; color: inherit; }
.acard.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(75, 92, 246, .25); }
.acard .thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--card2); display: block; }
.acard .meta { padding: 10px 12px; }
.acard .meta .n { font-weight: 700; font-size: 14px; }
.acard .meta .s { color: var(--muted); font-size: 12px; margin-top: 3px; }

.detail-panel {
  margin-top: 24px; background: var(--card);
  border: 1px solid var(--border); padding: 24px;
}
.detail-panel h3 { font-size: 18px; margin-bottom: 16px; }
.photos-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.upload-progress { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.upload-progress-track {
  flex: 1; height: 6px; border-radius: 3px; overflow: hidden;
  background: var(--card2);
}
.upload-progress-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: var(--accent); transition: width .25s ease;
}
.upload-progress-text { font-size: 12px; color: var(--muted); white-space: nowrap; }

.photo-item { position: relative; cursor: pointer; }
.photo-item img {
  width: 86px; height: 86px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card2);
  display: block;
  transition: transform .15s ease, border-color .15s ease;
}
.photo-item:hover img { transform: scale(1.05); border-color: var(--text); }
.photo-item.is-cover img { border-color: #f0b429; box-shadow: 0 0 0 2px rgba(240, 180, 41, .5); }
.photo-item .del {
  position: absolute; top: -7px; right: -7px; width: 21px; height: 21px;
  background: var(--danger); color: #fff; border: none; border-radius: 50%;
  font-size: 12px; line-height: 1; cursor: pointer;
}

/* 照片预览 Modal */
.modal-mask {
  position: fixed; inset: 0; z-index: 1050; display: flex;
  align-items: center; justify-content: center;
  background: rgba(15, 20, 35, .6);
}
.modal-box {
  width: fit-content; max-width: 92vw; max-height: 88vh; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.modal-title { font-weight: 700; font-size: 15px; }
.modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 14px; overflow: auto; display: flex; align-items: center; justify-content: center; }
.modal-body img { max-width: 100%; max-height: calc(88vh - 130px); border-radius: 6px; display: block; }
.modal-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--border);
}
.modal-footer .spacer { flex: 1; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field textarea { resize: vertical; min-height: 64px; }
.field.full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.match { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.match:last-child { border-bottom: none; }
.match .info { flex: 1; min-width: 0; }
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.name { font-weight: 700; }
.aliases { color: var(--muted); font-size: 13px; }

.result-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 16px; margin-top: 14px;
}
.result-card h3 { font-size: 15px; margin-bottom: 10px; color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; font-size: 14px; }

/* ---- toast ---- */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; border-radius: 8px;
  padding: 11px 22px; font-size: 13px;
  z-index: 200; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
#toast.err { background: var(--danger); }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 34px 0 22px; }

.hidden { display: none !important; }

/* ---- 管理鉴权 ---- */
.admin-btn {
  margin-left: auto; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--muted); cursor: pointer;
  font-size: 12px; transition: all .15s;
}
.admin-btn:hover { border-color: var(--text); color: var(--text); }
body.admin-locked #btn-new-actress,
body.admin-locked #actress-form,
body.admin-locked #btn-add-photos,
body.admin-locked .overlay-actions { display: none !important; }

/* ---- 动画 ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.anim { animation: fadeUp .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 图库管理：影人编辑抽屉 ---- */
.detail-mask {
  position: fixed; inset: 0; z-index: 150;
  display: flex; justify-content: flex-end;
  background: rgba(15, 20, 35, .55);
}
.detail-mask.hidden { display: none; }
.drawer {
  width: min(680px, 94vw); height: 100%;
  background: var(--card); border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column;
  animation: slideInLeft .28s cubic-bezier(.22, 1, .36, 1);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-title { font-weight: 700; font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-body { flex: 1; overflow-y: auto; }
.drawer-body .detail-panel { margin-top: 0; border: none; }
.drawer-body .photos-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 140px));
  gap: 12px; margin-bottom: 0;
}
.drawer-body .photos-row img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  display: block; cursor: zoom-in;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: transform .15s ease;
}
.drawer-body .photos-row img:hover { transform: scale(1.02); }
.img-overlay .overlay-actions {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; z-index: 1101;
  background: rgba(0, 0, 0, .45); padding: 10px 16px; border-radius: 10px;
}
@keyframes slideInLeft {
  from { transform: translateX(100%); }
  to { transform: none; }
}

/* ---- 响应式 ---- */
@media (max-width: 820px) {
  .page-columns { grid-template-columns: 1fr; }
  .col-side { order: -1; position: static; margin-bottom: 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .lp-card { grid-template-columns: 1fr; gap: 22px; }
  .headline_main { font-size: 30px; }
  .headline > span:first-child { font-size: 34px; }
}