/* =========================================================
   后台管理 · Dripping honey
   与前台共用 styles.css 里的设计变量与按钮样式
   ========================================================= */

[hidden] { display: none !important; }

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 4%, rgba(245, 230, 232, 0.5), transparent 42%),
    radial-gradient(circle at 4% 92%, rgba(212, 184, 150, 0.12), transparent 40%),
    var(--ivory);
}

.admin-shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }

/* ---------- 顶部 ---------- */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 243, 0.9);
  border-bottom: 1px solid rgba(212, 184, 150, 0.26);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.admin-header-inner { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.admin-brand { flex: 0 0 auto; }
.admin-brand .brand-mark { width: 34px; height: 34px; }
.admin-brand .brand-script { font-size: 26px; }
.admin-brand .brand-sub { font-size: 7px; letter-spacing: 0.26em; }

.admin-tabs {
  display: flex;
  gap: 3px;
  margin-left: 8px;
  padding: 4px;
  border: 1px solid rgba(212, 184, 150, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 19px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.admin-tab:hover { color: var(--rose-ink); }
.admin-tab.is-active { background: var(--rose-ink); color: var(--pearl); }
.tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pearl); }
.admin-tab.is-active .tab-dot { background: var(--pearl); }
.admin-tab:not(.is-active) .tab-dot { background: var(--rose-ink); }

.admin-account { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.account-email {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(212, 184, 150, 0.5);
  background: transparent;
  color: var(--rose-ink);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.link-button:hover { border-color: var(--rose); }

/* ---------- 视图与登录 ---------- */
.admin-main { padding: 46px 0 90px; }
.admin-view { animation: adminFade 0.4s ease both; }
@keyframes adminFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.admin-auth { display: grid; place-items: center; min-height: calc(100vh - 190px); padding: 12px 24px 60px; }
.auth-card { position: relative; width: min(470px, 100%); padding: 46px 46px 56px; }
.auth-card::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(212, 184, 150, 0.25); pointer-events: none; }
.auth-card > *:not(.lace-frame) { position: relative; z-index: 1; }
.auth-card > .lace-frame { z-index: 0; }
.auth-card .script { display: block; color: var(--rose); font-family: var(--script); font-size: 42px; line-height: 1; }
.auth-card h1 { margin: 10px 0 9px; font-size: 21px; font-weight: 500; letter-spacing: 0.2em; }
.auth-card > p { margin-bottom: 26px; color: var(--muted); font-size: 12px; font-weight: 300; line-height: 1.95; }
.auth-hint { margin: 22px 0 0; padding-top: 18px; border-top: 1px dashed rgba(212, 184, 150, 0.4); color: var(--muted); font-size: 10px; line-height: 1.9; }
.auth-hint + .auth-links { margin-top: 16px; }
.auth-links { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.auth-links a, .auth-back { color: var(--rose); font-size: 11px; letter-spacing: 0.08em; }
.auth-back { display: inline-block; margin-top: 18px; }

/* ---------- 标题区 ---------- */
.app-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(212, 184, 150, 0.26);
}
.app-heading .script { display: block; margin-bottom: -6px; color: var(--rose); font-family: var(--script); font-size: 44px; line-height: 1; }
.app-heading h1 { margin: 6px 0 8px; font-size: 24px; font-weight: 500; letter-spacing: 0.16em; }
.app-heading p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 300; letter-spacing: 0.05em; }

/* ---------- 统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.stat-card {
  padding: 19px 22px;
  border: 1px solid rgba(212, 184, 150, 0.35);
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.72);
}
.stat-card span { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.15em; }
.stat-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--serif-en);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

/* ---------- 面板 ---------- */
.panel-card {
  padding: 26px 30px 30px;
  border: 1px solid rgba(212, 184, 150, 0.35);
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: var(--shadow);
}
.panel-card h2 { margin: 0 0 14px; font-size: 14px; font-weight: 500; letter-spacing: 0.16em; }
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(212, 184, 150, 0.24);
}
.panel-bar h2 { margin: 0; }
.panel-note { color: var(--muted); font-size: 10px; letter-spacing: 0.12em; }
.empty { margin: 26px 0 8px; color: var(--muted); font-size: 12px; font-weight: 300; letter-spacing: 0.08em; text-align: center; }

.chips { display: flex; gap: 6px; }
.chip {
  padding: 5px 14px;
  border: 1px solid rgba(212, 184, 150, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.22s ease;
}
.chip:hover { color: var(--rose-ink); border-color: var(--rose-ink); }
.chip.is-active { background: var(--rose-ink); border-color: var(--rose-ink); color: var(--pearl); }

/* ---------- 文章列表 ---------- */
.post-list, .message-list { margin: 0; padding: 0; list-style: none; }
.post-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 2px;
  border-bottom: 1px dashed rgba(212, 184, 150, 0.32);
}
.post-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.post-row-main { min-width: 0; }
.post-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: 0.1em; }
.row-slug { color: var(--gold); font-family: var(--serif-en); font-size: 12px; font-style: italic; letter-spacing: 0; }
.row-title { margin: 8px 0 5px; font-size: 15px; font-weight: 500; letter-spacing: 0.07em; line-height: 1.6; }
.row-excerpt {
  display: -webkit-box;
  max-width: 62ch;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.badge { padding: 3px 10px; border-radius: 999px; font-size: 9px; letter-spacing: 0.12em; }
.badge-live { border: 1px solid rgba(201, 138, 148, 0.32); background: rgba(201, 138, 148, 0.13); color: var(--rose-ink); }
.badge-draft { border: 1px solid rgba(158, 142, 138, 0.22); background: rgba(158, 142, 138, 0.09); color: var(--muted); }

.row-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 290px; }
.row-actions button,
.message-actions button {
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--rose-ink);
  font-family: var(--serif-cn);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.row-actions button:hover,
.message-actions button:hover { border-color: rgba(212, 184, 150, 0.55); background: var(--cream); }
.row-actions button.is-danger,
.message-actions button.is-danger { color: #b1707c; }
.row-actions button.is-danger:hover,
.message-actions button.is-danger:hover { border-color: rgba(177, 112, 124, 0.45); background: rgba(177, 112, 124, 0.07); }

.loading-row { padding: 28px 0; color: var(--muted); font-size: 12px; text-align: center; letter-spacing: 0.1em; }

/* ---------- 来信 ---------- */
.message-row { display: flex; gap: 20px; padding: 20px 2px; border-bottom: 1px dashed rgba(212, 184, 150, 0.32); }
.message-row:last-child { border-bottom: 0; }
.message-row.is-unread .message-name::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--rose);
  vertical-align: middle;
}
.message-main { flex: 1 1 auto; min-width: 0; }
.message-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.message-name { font-size: 13px; letter-spacing: 0.06em; }
.message-email { color: var(--gold); font-family: var(--serif-en); font-size: 12px; }
.message-date { color: var(--muted); font-size: 10px; letter-spacing: 0.1em; }
.message-body { margin: 9px 0 0; color: var(--ink); font-size: 12px; font-weight: 300; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
.message-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 5px; align-items: flex-end; justify-content: flex-end; max-width: 200px; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid .panel-card:first-child { grid-column: span 2; }
.settings-text { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 300; line-height: 1.9; }
.meta-list { display: grid; gap: 12px; margin: 4px 0 20px; }
.meta-list > div { display: flex; gap: 18px; align-items: baseline; }
.meta-list dt { flex: 0 0 90px; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; }
.meta-list dd { margin: 0; color: var(--ink); font-family: var(--serif-en); font-size: 13px; word-break: break-all; }
.settings-actions { display: flex; gap: 10px; }
.settings-actions .button { min-height: 40px; padding: 8px 20px; font-size: 11px; }

.steps { margin: 4px 0 0; padding-left: 17px; color: var(--muted); font-size: 11px; font-weight: 300; line-height: 2; }
.steps li::marker { color: var(--gold); }
.steps code { padding: 1px 5px; border-radius: 2px; background: var(--blush); color: var(--rose); font-family: var(--serif-en); font-size: 12px; }

/* ---------- 表单 ---------- */
.admin-form { margin: 0; }
.admin-field { display: block; margin-bottom: 16px; }
.admin-field > span { display: block; margin-bottom: 6px; color: var(--ink); font-size: 11px; letter-spacing: 0.12em; }
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(212, 184, 150, 0.55);
  border-radius: 3px;
  outline: 0;
  background: #fffdf9;
  color: var(--ink);
  font-family: var(--serif-cn);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(201, 138, 148, 0.12);
}
.admin-field input::placeholder,
.admin-field textarea::placeholder { color: #c0b2ad; }
.admin-field textarea { resize: vertical; min-height: 62px; }
.admin-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: 0.04em; }
.admin-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-message { min-height: 18px; margin: 2px 0 10px; color: var(--rose); font-size: 11px; line-height: 1.7; }
.form-message.is-error { color: #ac6b77; }
.form-message.is-ok { color: #7f9a80; }
.button-block { width: 100%; }

/* ---------- 编辑器 ---------- */
.editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: rgba(93, 78, 74, 0.34);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.editor-backdrop[hidden] { display: none; }
.editor {
  display: flex;
  flex-direction: column;
  width: min(800px, 100%);
  max-height: calc(100vh - 56px);
  padding: 24px 38px 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: 0 30px 80px rgba(93, 78, 74, 0.2);
  animation: editorIn 0.28s ease both;
}
@keyframes editorIn { from { opacity: 0; transform: translateY(12px) scale(0.99); } to { opacity: 1; transform: none; } }
.editor-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.editor-head .script { display: block; margin-bottom: -7px; color: var(--rose); font-family: var(--script); font-size: 36px; line-height: 1; }
.editor-head h2 { margin: 4px 0 0; font-size: 17px; font-weight: 500; letter-spacing: 0.14em; }
.editor-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 184, 150, 0.6);
  border-radius: 50%;
  background: var(--pearl);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.editor-close:hover { transform: rotate(90deg); border-color: var(--rose); }
.editor > .admin-form { flex: 1 1 auto; overflow-y: auto; padding-right: 2px; }
.editor .admin-field { margin-bottom: 12px; }
.editor .form-message { margin: 0 0 8px; }
.editor-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 -38px;
  padding: 14px 38px 18px;
  border-top: 1px solid rgba(212, 184, 150, 0.24);
  background: var(--pearl);
}
.editor-actions .button { min-height: 42px; padding: 9px 22px; font-size: 11px; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  max-width: min(90vw, 460px);
  padding: 12px 24px;
  border: 1px solid rgba(201, 138, 148, 0.4);
  border-radius: 999px;
  background: var(--pearl);
  box-shadow: 0 14px 34px rgba(93, 78, 74, 0.14);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(177, 112, 124, 0.55); color: #a45f6b; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .admin-tabs { margin-left: 0; }
  .account-email { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .panel-card:first-child { grid-column: auto; }
}

@media (max-width: 760px) {
  .admin-shell { width: calc(100% - 32px); }
  .admin-header-inner { gap: 10px; min-height: 68px; }
  .admin-brand .brand-script { font-size: 22px; }
  .admin-brand .brand-sub { display: none; }
  .admin-tabs { margin-left: auto; padding: 3px; }
  .admin-tab { padding: 7px 12px; font-size: 11px; letter-spacing: 0.06em; }
  .admin-account { margin-left: 0; }
  .admin-main { padding: 28px 0 70px; }
  .admin-auth { min-height: auto; padding: 18px 18px 46px; }
  .auth-card { padding: 48px 26px 64px; }
  .app-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .app-heading .button { width: 100%; }
  .panel-card { padding: 20px 18px 24px; }
  .post-row { flex-direction: column; gap: 12px; }
  .row-actions { justify-content: flex-start; max-width: none; }
  .message-row { flex-direction: column; gap: 10px; }
  .message-actions { flex-direction: row; justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .editor { padding: 24px 20px 0; }
  .editor-actions { margin: 0 -20px; padding: 12px 20px 16px; }
  .panel-bar { flex-wrap: wrap; }
  .settings-grid { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-view, .editor { animation: none; }
  .boot-dot { animation: none; opacity: 0.8; }
}

.settings-note {
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px dashed rgba(212, 184, 150, 0.6);
  border-radius: 4px;
  background: rgba(245, 230, 232, 0.28);
  color: #7d6c68;
  font-size: 11px;
  line-height: 1.9;
}

.settings-tip { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed rgba(212, 184, 150, 0.4); }

/* ---------- 连接中 ---------- */
.admin-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 340px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.boot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-ink);
  animation: bootPulse 1.5s ease-in-out infinite;
}
@keyframes bootPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- 搜索 ---------- */
.panel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search-box { display: block; }
.search-box input {
  width: 200px;
  padding: 7px 14px 7px 31px;
  border: 1px solid rgba(212, 184, 150, 0.45);
  border-radius: 999px;
  outline: 0;
  background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237c6c67' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.6 10.6L14 14'/%3E%3C/svg%3E") no-repeat 11px center / 12px 12px;
  color: var(--ink);
  font-family: var(--serif-cn);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(201, 138, 148, 0.12); }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- 编辑器底部提示 ---------- */
.editor-hint { margin-right: auto; color: var(--muted); font-size: 10px; letter-spacing: 0.06em; }

@media (max-width: 760px) {
  .panel-tools { width: 100%; justify-content: space-between; }
  .search-box { flex: 1 1 auto; }
  .search-box input { width: 100%; }
  .editor-hint { display: none; }
}

/* ---------- 作品集 ---------- */
.panel-hint { margin: 14px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.row-actions button:disabled { opacity: 0.3; cursor: default; border-color: transparent; background: transparent; }

.editor-divider {
  margin: 8px 0 12px;
  padding-top: 11px;
  border-top: 1px dashed rgba(212, 184, 150, 0.42);
  color: var(--rose-ink);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.cover-row { display: flex; gap: 10px; align-items: stretch; }
.cover-row > input { flex: 1 1 auto; }
.cover-upload {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0 16px;
  border: 1px solid rgba(212, 184, 150, 0.6);
  border-radius: 3px;
  color: var(--rose-ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cover-upload:hover { border-color: var(--rose); background: var(--cream); }
.cover-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cover-preview img {
  width: 122px;
  height: 78px;
  object-fit: cover;
  border: 1px solid rgba(212, 184, 150, 0.5);
  border-radius: 3px;
  background: var(--cream);
}

@media (max-width: 760px) {
  .cover-upload { min-width: 64px; padding: 0 12px; }
}

.row-actions button[data-act="up"],
.row-actions button[data-act="down"] {
  min-width: 28px;
  padding: 4px 6px;
  font-size: 14px;
  line-height: 1.2;
}

/* ---------- 封面裁剪 ---------- */
.crop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(58, 44, 41, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.crop-backdrop[hidden] { display: none; }
.crop-panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 26px 30px 22px;
  border-radius: 8px;
  background: var(--pearl);
  box-shadow: 0 30px 80px rgba(58, 44, 41, 0.28);
  animation: editorIn 0.25s ease both;
}
.crop-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.crop-head .script { display: block; margin-bottom: 0; color: var(--rose); font-family: var(--script); font-size: 32px; line-height: 1.1; }
.crop-head h2 { margin: 8px 0 0; font-size: 16px; font-weight: 500; letter-spacing: 0.14em; }
.crop-note { margin: 12px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.85; }
.crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #efe5e0;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop-frame.is-dragging { cursor: grabbing; }
.crop-frame img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transform-origin: 0 0;
}

.crop-ring { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 11px; letter-spacing: 0.1em; }
.crop-zoom input {
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.crop-zoom input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(212, 184, 150, 0.55);
}
.crop-zoom input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -6px;
  border: 2px solid var(--pearl);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 1px 4px rgba(93, 78, 74, 0.24);
}
.crop-zoom input::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(212, 184, 150, 0.55); }
.crop-zoom input::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--pearl); border-radius: 50%; background: var(--rose); }
.crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.crop-actions .button { min-height: 42px; padding: 9px 22px; font-size: 11px; }

@media (max-width: 760px) {
  .crop-backdrop { padding: 14px; }
  .crop-panel { padding: 22px 18px 18px; }
}

@media (max-width: 760px) {
  /* 五个标签在手机上挤成一行会压到「退出」，改成两行：品牌 + 退出 / 标签整行 */
  .admin-header-inner {
    flex-wrap: wrap;
    gap: 8px 10px;
    min-height: 0;
    padding: 10px 0 9px;
  }
  .admin-brand { order: 1; }
  .admin-account { order: 2; margin-left: auto; }
  .admin-tabs {
    order: 3;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { flex: 1 0 auto; justify-content: center; padding: 7px 10px; }
}

/* ---------- 页面内容 ---------- */
.content-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 6px; }
.content-fields .admin-field { margin-bottom: 12px; }
.content-fields .admin-field.is-wide { grid-column: 1 / -1; }
.content-fields .editor-divider { grid-column: 1 / -1; margin: 14px 0 10px; }
.content-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 184, 150, 0.24);
}
.content-actions .button { min-height: 42px; padding: 9px 22px; font-size: 11px; }

@media (max-width: 760px) {
  .content-fields { grid-template-columns: 1fr; }
  .content-actions { flex-direction: column-reverse; }
  .content-actions .button { width: 100%; }
}
