/* ============================================
   招商报备管理系统 - 科技风样式表
   ============================================ */

/* ---- 设计变量（科技深色主题） ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色：科技绿霓虹渐变 */
  --primary: #34d399;
  --primary-2: #10b981;
  --primary-3: #059669;
  --primary-glow: rgba(52, 211, 153, 0.45);
  --primary-light: rgba(52, 211, 153, 0.12);

  --success: #34d399;
  --success-light: rgba(52, 211, 153, 0.14);
  --warning: #fbbf24;
  --warning-light: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.14);
  --info: #2dd4bf;
  --info-light: rgba(45, 212, 191, 0.14);

  /* 深色表面 */
  --bg-0: #060912;
  --bg-1: #0a0f1e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #0e1424;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(52, 211, 153, 0.35);

  /* 文本 */
  --text: #e8edf7;
  --text-2: #aeb9cf;
  --text-muted: #6b7894;
  --gray-400: #6b7894;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 50px rgba(0, 0, 0, 0.5);
  --glow: 0 0 20px var(--primary-glow);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-0);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 科技感网格 + 光晕背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(800px 480px at 92% 8%, rgba(5, 150, 105, 0.16), transparent 60%),
    radial-gradient(700px 520px at 50% 110%, rgba(52, 211, 153, 0.12), transparent 60%),
    linear-gradient(180deg, #060912 0%, #080d1a 100%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 220, 160, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 220, 160, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  z-index: -1;
  animation: gridFloat 22s linear infinite;
}
@keyframes gridFloat {
  from { background-position: 0 0, 0 0; }
  to { background-position: 46px 46px, 46px 46px; }
}

/* ---- 通用按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #051018;
  box-shadow: 0 6px 18px rgba(52, 211, 153, 0.28);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #042018;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}
.btn-success:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  background: var(--primary-light);
}

.btn-danger {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  color: #2a0606;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---- 通用表单 ---- */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  backdrop-filter: blur(6px);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), 0 0 18px var(--primary-glow);
  background: rgba(52, 211, 153, 0.06);
}
.form-select option {
  background: var(--surface-solid);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
}
.form-hint.error {
  color: var(--danger);
}
.form-hint.ok {
  color: var(--success);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   登录页
   ============================================ */
#login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(52, 211, 153, 0.12);
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
/* 顶部霓虹光条 */
.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary-3), var(--primary));
  background-size: 300% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  from { background-position: 0% 0; }
  to { background-position: 300% 0; }
}

.login-header {
  padding: 40px 36px 22px;
  text-align: center;
}

.login-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 18px;
}

.login-header .icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), rgba(5, 150, 105, 0.18));
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--glow);
}

.login-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: #0b1220;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.login-header p {
  font-size: 13px;
  color: #5b6b86;
}

.login-body {
  padding: 0 36px 38px;
}

/* 登录卡为浅色卡：其内部表单控件需深色字 + 浅底，避免浅色主题文字在白底上看不清 */
.login-card .form-label {
  color: #1f2c44;
}
.login-card .form-select {
  color: #0b1220;
  background: #ffffff;
  border: 1px solid rgba(13, 20, 36, 0.18);
  font-weight: 600;
  font-size: 14px;
  /* 自定义下拉箭头，确保在浅底上可见 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230b1220' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.login-card .form-select:focus {
  border-color: var(--primary-3);
  box-shadow: 0 0 0 3px var(--primary-light);
  background: #ffffff;
}
.login-card .form-select option {
  background: #ffffff;
  color: #0b1220;
}
.login-card .login-hint {
  color: #5b6b86;
}

.role-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: rgba(13, 20, 36, 0.08);
  border: 1px solid rgba(13, 20, 36, 0.14);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.role-tab {
  flex: 1;
  padding: 12px 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #2a3a52;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.18s;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
}
.role-tab:hover {
  color: #0b1220;
  background: rgba(13, 20, 36, 0.06);
}
.role-tab.active {
  background: #065f46;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid #34d399;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.5);
}
.role-tab.active::after {
  content: " ✓";
  font-weight: 800;
}

/* ============================================
   顶部导航
   ============================================ */
.topbar {
  height: 62px;
  background: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.4));
}

.topbar-left .logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 60%, var(--primary-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-2);
  backdrop-filter: blur(8px);
}

.user-badge .role-tag {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 700;
}
.role-tag.manager { background: var(--primary-light); color: var(--primary); }
.role-tag.director { background: var(--warning-light); color: var(--warning); }
.role-tag.leader { background: var(--success-light); color: var(--success); }

/* ============================================
   主内容区
   ============================================ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 24px 48px;
}

/* ---- 统计卡片 ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, var(--primary)), transparent);
  opacity: 0.8;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  border-color: var(--border-strong);
}
.stat-card.total { --accent: var(--primary); }
.stat-card.pending { --accent: var(--warning); }
.stat-card.assigned { --accent: var(--info); }
.stat-card.signed { --accent: var(--success); }

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}
.stat-card .stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 0 22px rgba(52, 211, 153, 0.25);
}

/* ---- 面板 ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 13px;
}
.panel-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  box-shadow: var(--glow);
}

.panel-body {
  padding: 20px;
}

/* ---- 筛选栏 ---- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 14px var(--primary-glow);
}
.filter-bar select option {
  background: var(--surface-solid);
}

/* ---- 报备记录卡片 ---- */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--primary));
  box-shadow: 0 0 12px var(--accent, var(--primary));
}
.report-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.report-card.status-pending { --accent: var(--warning); }
.report-card.status-assigned { --accent: var(--info); }
.report-card.status-following { --accent: var(--primary-3); }
.report-card.status-visited { --accent: var(--primary); }
.report-card.status-signed { --accent: var(--success); }

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.report-client-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.status-badge {
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-badge.pending { background: var(--warning-light); color: #fcd34d; border-color: rgba(251, 191, 36, 0.3); }
.status-badge.assigned { background: var(--info-light); color: #5eead4; border-color: rgba(45, 212, 191, 0.3); }
.status-badge.following { background: rgba(5, 150, 105, 0.16); color: #6ee7b7; border-color: rgba(5, 150, 105, 0.35); }
.status-badge.visited { background: var(--primary-light); color: var(--primary); border-color: var(--border-strong); }
.status-badge.signed { background: var(--success-light); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }

.report-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 20px;
  margin-bottom: 10px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-item .label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.info-item .value {
  font-size: 13px;
  color: var(--text);
}

.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.report-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.assign-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.assign-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 14px var(--primary-glow);
}
.assign-select option {
  background: var(--surface-solid);
}

/* ---- 空状态 ---- */
.empty-state {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 42px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px var(--primary-glow));
}
.empty-state p {
  font-size: 14px;
}

/* ---- 模态框 ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: linear-gradient(160deg, rgba(20, 28, 48, 0.96), rgba(12, 18, 33, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(52, 211, 153, 0.1);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
  backdrop-filter: blur(16px);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s;
}
.modal-close:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Toast 通知 ---- */
#toast-container {
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: linear-gradient(160deg, rgba(20, 28, 48, 0.97), rgba(12, 18, 33, 0.97));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-width: 260px;
  color: var(--text);
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--primary);
  backdrop-filter: blur(12px);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- 用户管理列表 ---- */
.user-table {
  width: 100%;
  border-collapse: collapse;
}
.user-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.3px;
}
.user-table td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.user-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}
.user-table tr:last-child td {
  border-bottom: none;
}

/* ---- 负责人备注框 ---- */
.leader-notes-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.leader-notes-box .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.leader-notes-box .content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

/* ---- 到访照片 ---- */
.photos-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.photos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.photos-header .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-thumb {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface-2);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.photo-thumb:hover {
  transform: scale(1.04);
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.photo-del:hover {
  background: var(--danger);
}
.photo-by {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photos-empty {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- 分配信息 ---- */
.assignment-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 11px;
  background: var(--success-light);
  color: #6ee7b7;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.assignment-info.pending-info {
  background: var(--warning-light);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.3);
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .topbar-left .logo-text {
    font-size: 15px;
  }
  .logo-img {
    height: 28px;
  }
  .user-badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  .main-content {
    padding: 16px;
  }
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }
}
