/* ============================================================
   集美寄拍 · 品牌视觉体系
   时尚女装寄拍撮合平台 — 玫瑰粉 × 奶油白 × 质感金
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --rose-500: #e83d7a;
  --rose-600: #d92e6b;
  --rose-700: #b81f57;
  --rose-100: #fce7ef;
  --rose-50: #fdf2f7;
  --cream: #fbf4f0;
  --cream-deep: #f5e9e2;
  --ink: #3a2333;
  --ink-2: #7a6470;
  --ink-3: #a8949f;
  --card: #ffffff;
  --line: #f3e3ea;
  --gold: #c9963f;
  --grad: linear-gradient(135deg, #f25a8e 0%, #ff8a5c 100%);
  --grad-soft: linear-gradient(135deg, #fde8f0 0%, #fdeee2 100%);
  --shadow-sm: 0 2px 8px rgba(184, 31, 87, 0.06);
  --shadow: 0 10px 30px rgba(184, 31, 87, 0.09);
  --shadow-lg: 0 24px 60px rgba(58, 35, 51, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* 任务状态色 */
  --st-published: #64748b;
  --st-published-bg: #f1f5f9;
  --st-accepted: #7c3aed;
  --st-accepted-bg: #f3eeff;
  --st-shipping: #d97706;
  --st-shipping-bg: #fef3c7;
  --st-pending: #db2777;
  --st-pending-bg: #fce7f3;
  --st-completed: #059669;
  --st-completed-bg: #d1fae5;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
a { color: var(--rose-600); text-decoration: none; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: all 0.22s ease; white-space: nowrap; user-select: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(232, 61, 122, 0.32); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(232, 61, 122, 0.4); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-ghost { background: var(--rose-100); color: var(--rose-600); }
.btn-ghost:hover:not(:disabled) { background: #f9d6e4; }
.btn-outline { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--rose-500); color: var(--rose-600); }
.btn-soft { background: var(--st-completed-bg); color: var(--st-completed); }
.btn-soft:hover:not(:disabled) { filter: brightness(0.97); }
.btn-danger { background: #fef2f2; color: #dc2626; }
.btn-danger:hover:not(:disabled) { background: #fee2e2; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field > label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px;
}
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--rose-500); box-shadow: 0 0 0 3px rgba(232, 61, 122, 0.12);
}
.textarea { resize: vertical; min-height: 84px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8949f' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { display: none; }
.switch .track {
  width: 46px; height: 26px; border-radius: 999px; background: #e5d7dd;
  position: relative; transition: background 0.25s; flex-shrink: 0;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s;
}
.switch input:checked + .track { background: var(--grad); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch .switch-label { font-size: 14px; color: var(--ink-2); font-weight: 500; }

/* ---------- 状态徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.st-published { color: var(--st-published); background: var(--st-published-bg); }
.badge.st-accepted { color: var(--st-accepted); background: var(--st-accepted-bg); }
.badge.st-shipping { color: var(--st-shipping); background: var(--st-shipping-bg); }
.badge.st-pending { color: var(--st-pending); background: var(--st-pending-bg); }
.badge.st-completed { color: var(--st-completed); background: var(--st-completed-bg); }
.badge.tag-gift { color: var(--rose-600); background: var(--rose-100); }
.badge.tag-photo { color: var(--gold); background: #fdf3e3; }

/* ---------- 头像 ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   登录页
   ============================================================ */
.login-page { min-height: 100vh; display: flex; }
.login-shell { display: flex; width: 100%; min-height: 100vh; }

.brand-panel {
  flex: 1.1; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #e83d7a 0%, #d92e6b 38%, #b12259 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 72px 8vw;
}
.brand-panel::before, .brand-panel::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.09); pointer-events: none;
}
.brand-panel::before { width: 420px; height: 420px; top: -140px; right: -120px; }
.brand-panel::after { width: 320px; height: 320px; bottom: -120px; left: -100px; }
.brand-ring {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.25); right: 9%; bottom: 12%;
}
.brand-logo-lg {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 34px; position: relative; z-index: 1;
}
.brand-logo-lg .mark {
  width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35); display: flex; align-items: center; justify-content: center;
  font-size: 22px; backdrop-filter: blur(4px);
}
.brand-logo-lg .word { font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.brand-title {
  font-size: 40px; font-weight: 800; line-height: 1.35; letter-spacing: 1px; position: relative; z-index: 1;
}
.brand-sub { margin-top: 16px; font-size: 16px; opacity: 0.85; position: relative; z-index: 1; }
.brand-features { margin-top: 44px; display: grid; gap: 18px; position: relative; z-index: 1; }
.brand-features li { list-style: none; display: flex; align-items: center; gap: 14px; font-size: 15px; opacity: 0.95; }
.brand-features .f-icon {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.16);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}

.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 5vw; background: var(--cream); }
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 28px; font-weight: 800; }
.login-card .sub { color: var(--ink-3); margin: 8px 0 32px; }
.login-form .btn-block { margin-top: 8px; }
.login-error {
  display: none; margin-bottom: 16px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: #fef2f2; color: #dc2626; font-size: 13px;
}
.login-error.show { display: block; animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.demo-accounts { margin-top: 30px; border-top: 1px dashed var(--line); padding-top: 20px; }
.demo-accounts .t { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.demo-accounts .demo-btn {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm); background: #fff; border: 1.5px solid var(--line);
  transition: all 0.2s; margin-bottom: 10px;
}
.demo-accounts .demo-btn:hover { border-color: var(--rose-500); box-shadow: var(--shadow-sm); }
.demo-accounts .demo-btn .role-tag {
  font-size: 11px; padding: 2px 9px; border-radius: 999px; font-weight: 600; flex-shrink: 0;
}
.demo-accounts .demo-btn .acct { color: var(--ink-2); font-size: 13px; margin-left: auto; font-family: Consolas, monospace; }
.role-tag.merchant { background: var(--st-accepted-bg); color: var(--st-accepted); }
.role-tag.model { background: var(--rose-100); color: var(--rose-600); }

/* ============================================================
   应用布局（工作台）
   ============================================================ */
.app-page { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 22px 22px 18px; }
.side-brand .mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}
.side-brand .word { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.side-nav { flex: 1; padding: 8px 14px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all 0.18s; margin-bottom: 4px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--cream); color: var(--ink); }
.nav-item.active { background: var(--rose-100); color: var(--rose-600); font-weight: 700; }
.nav-item .nav-count {
  margin-left: auto; font-size: 11px; background: var(--rose-500); color: #fff;
  min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.side-user { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.side-user .u-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.side-user .u-role { font-size: 11px; color: var(--ink-3); }
.side-user .u-desc { font-size: 11px; color: var(--ink-3); line-height: 1.45; max-width: 170px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-user .profile-edit {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 14px; flex: none; transition: all 0.18s; border: 1px solid var(--line); background: var(--card);
}
.side-user .profile-edit:hover { background: var(--rose-100); color: var(--rose-600); border-color: var(--rose-200); }
.side-user .logout {
  margin-left: auto; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: all 0.18s;
}
.side-user .logout:hover { background: #fef2f2; color: #dc2626; }
.side-user .logout svg { width: 17px; height: 17px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 26px 34px 8px;
}
.topbar h2 { font-size: 22px; font-weight: 800; }
.topbar .sub { color: var(--ink-3); font-size: 13px; }
.topbar .spacer { flex: 1; }
.content { padding: 20px 34px 48px; flex: 1; }

/* 统计卡 */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card .s-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.stat-card .s-value { font-size: 26px; font-weight: 800; margin-top: 4px; }
.stat-card .s-value.rose { color: var(--rose-600); }
.stat-card .s-value.gold { color: var(--gold); }
.stat-card .s-value.green { color: var(--st-completed); }
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: var(--grad-soft); opacity: 0.7;
}

/* 过滤器 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip {
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink-2); transition: all 0.18s;
}
.filter-chip:hover { border-color: var(--rose-500); color: var(--rose-600); }
.filter-chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(232, 61, 122, 0.28); }
.filter-chip .n { opacity: 0.75; margin-left: 4px; font-size: 12px; }

/* 任务卡片网格 */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.task-card {
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform 0.22s, box-shadow 0.22s; display: flex; flex-direction: column;
}
.task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tc-head { position: relative; height: 172px; overflow: hidden; background: var(--cream-deep); }
.tc-head img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.task-card:hover .tc-head img { transform: scale(1.05); }
.tc-head .badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.tc-head .tc-id { position: absolute; top: 12px; right: 12px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, 0.38); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(3px); }
.tc-body { padding: 15px 18px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tc-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--ink-2); }
.tc-meta .m { display: flex; align-items: center; gap: 6px; }
.tc-meta .m b { color: var(--rose-600); font-size: 14px; }
.tc-meta svg { width: 14px; height: 14px; color: var(--ink-3); flex-shrink: 0; }
.tc-note {
  font-size: 12px; color: var(--ink-3); background: var(--cream); padding: 7px 10px;
  border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tc-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.tc-foot .who { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); margin-right: auto; min-width: 0; }
.tc-foot .who .avatar { width: 24px; height: 24px; font-size: 11px; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 64px 20px; color: var(--ink-3);
}
.empty .e-icon { font-size: 44px; margin-bottom: 12px; opacity: 0.7; }
.empty .e-title { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.empty .e-sub { font-size: 13px; }
.empty .btn { margin-top: 16px; }

/* ---------- 模态 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(58, 35, 51, 0.44); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98); transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.modal-backdrop.show .modal { transform: none; }
.modal-head { display: flex; align-items: center; padding: 20px 24px 0; }
.modal-head h3 { font-size: 17px; font-weight: 800; flex: 1; }
.modal-x { width: 32px; height: 32px; border-radius: 9px; color: var(--ink-3); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.modal-x:hover { background: var(--cream); color: var(--ink); }
.modal-body { padding: 18px 24px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; padding: 14px 24px 22px; }
.modal-foot .btn { flex: 1; }

/* 抽屉（任务详情） */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(58, 35, 51, 0.4); backdrop-filter: blur(3px);
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(560px, 96vw); background: #fff; z-index: 101;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 12px; }
.drawer-head h3 { font-size: 17px; font-weight: 800; flex: 1; }
.drawer-body { padding: 12px 24px 28px; overflow-y: auto; flex: 1; }
.drawer-hero { border-radius: var(--radius); overflow: hidden; height: 240px; background: var(--cream-deep); margin-bottom: 18px; }
.drawer-hero img { width: 100%; height: 100%; object-fit: cover; }
.drawer-sec-title { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 1px; margin: 20px 0 10px; }
.drawer-sec-title:first-child { margin-top: 0; }

/* 信息列表 */
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.info-item { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 14px; }
.info-item .k { font-size: 11.5px; color: var(--ink-3); }
.info-item .v { font-size: 14px; font-weight: 600; margin-top: 1px; }
.info-item .v.money { color: var(--rose-600); font-size: 16px; }
.info-item.wide { grid-column: 1 / -1; }
.info-item.wide .v { font-weight: 500; white-space: pre-wrap; }

/* 时间线 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--st-published);
}
.tl-item.st-accepted::before { border-color: var(--st-accepted); }
.tl-item.st-shipping::before { border-color: var(--st-shipping); }
.tl-item.st-pending::before { border-color: var(--st-pending); }
.tl-item.st-completed::before { border-color: var(--st-completed); }
.tl-item .t-name { font-size: 13.5px; font-weight: 700; }
.tl-item .t-time { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tl-item .t-note { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }

/* 成片画廊 */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-cell { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--cream-deep); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; cursor: zoom-in; }
.photo-cell:hover img { transform: scale(1.06); }
.photo-cell .p-time { position: absolute; bottom: 0; left: 0; right: 0; font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); padding: 14px 8px 5px; }

/* 图片上传 */
.upload-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center;
  color: var(--ink-3); cursor: pointer; transition: all 0.2s; background: var(--cream);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--rose-500); background: var(--rose-50); color: var(--rose-600); }
.upload-zone .u-icon { font-size: 30px; margin-bottom: 6px; }
.upload-zone .u-text { font-size: 13px; }
.upload-zone .u-sub { font-size: 11.5px; margin-top: 3px; opacity: 0.8; }
.upload-preview { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.upload-preview .p-img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; border: 2px solid var(--rose-100); }
.upload-preview .p-img.selected { border-color: var(--rose-500); box-shadow: 0 0 0 3px rgba(232, 61, 122, 0.15); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 999px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.toast.err { background: #dc2626; }
.toast.ok { background: #059669; }
.toast .t-ico { font-size: 15px; }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { animation: toastOut 0.25s forwards; }
@keyframes toastOut { to { transform: translateY(-12px); opacity: 0; } }

/* 加载骨架 */
.loading-mask { text-align: center; padding: 70px 0; color: var(--ink-3); font-size: 13px; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 12px;
  border: 3px solid var(--rose-100); border-top-color: var(--rose-500); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 大图预览 */
.lightbox {
  position: fixed; inset: 0; background: rgba(20, 10, 16, 0.88); z-index: 300; display: flex;
  align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }

/* ---------- 隐藏编辑（模特 · 历史记录） ---------- */
.hx-badge { background: var(--gold); color: #fff; font-weight: 600; }
.hx-tip {
  font-size: 12px; color: var(--ink-2); background: var(--cream);
  border: 1px dashed var(--gold); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px;
}
.hx-count { color: var(--ink-3); font-weight: 400; font-size: 12px; margin-left: 4px; }
.hx-event { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.hx-ev-del {
  width: 32px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); color: var(--ink-2); font-size: 12px; line-height: 1;
}
.hx-ev-del:hover { color: #e05252; border-color: #f3c1c1; }
.hx-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.hx-photo-cell {
  position: relative; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fff;
}
.hx-photo-cell img { width: 100%; height: 92px; object-fit: cover; }
.hx-photo-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; line-height: 1;
}
.hx-photo-del:hover { background: #e05252; }
.hx-photo-cell .p-time { font-size: 10px; color: var(--ink-3); text-align: center; padding: 3px 0 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .sidebar { width: 74px; }
  .side-brand .word, .nav-item span:not(.nav-count), .side-user .u-info, .side-user .logout { display: none; }
  .side-brand { justify-content: center; padding: 18px 0; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .side-user { justify-content: center; padding: 14px 0; }
  .topbar, .content { padding-left: 20px; padding-right: 20px; }
  .task-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 760px) {
  .login-shell { flex-direction: column; }
  .brand-panel { padding: 44px 28px; }
  .brand-title { font-size: 28px; }
  .brand-features { display: none; }
  .login-main { padding: 34px 22px 60px; }
  .row2 { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 模特收款码 ---------- */
.pay-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; box-shadow: var(--shadow-sm); transition: transform 0.18s; }
.pay-thumb:hover { transform: scale(1.04); }
.pay-hint { font-size: 12px; color: var(--ink-3); }
