/* ===== CSS 变量 ===== */
:root {
  --bg: #f5f6fa;
  --card-bg: #fff;
  --text: #2d3436;
  --text-secondary: #636e72;
  --border: #dfe6e9;
  --primary: #3498db;
  --primary-hover: #2980b9;
  --danger: #e74c3c;
  --danger-hover: #c0392b;
  --success: #27ae60;
  --warning: #f39c12;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== App Container ===== */
.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
}

/* ===== Header ===== */
.header {
  padding: 20px 0 12px;
}
.header-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* ===== 统计卡片 ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.stat-card.stat-pending {
  border-left-color: var(--warning);
}
.stat-card.stat-processing {
  border-left-color: var(--primary);
}
.stat-card.stat-resolved {
  border-left-color: var(--success);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== Tab 切换 ===== */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.tab.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(52, 152, 219, 0.06);
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}
.tab:hover:not(.active) {
  background: rgba(0, 0, 0, 0.02);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.filter-bar select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text);
  appearance: auto;
  cursor: pointer;
}

/* ===== 工单卡片列表 ===== */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ticket-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 4px solid transparent;
}
.ticket-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.ticket-card:active {
  transform: scale(0.99);
}
.ticket-card.status-pending {
  border-left-color: var(--warning);
}
.ticket-card.status-processing {
  border-left-color: var(--primary);
}
.ticket-card.status-resolved {
  border-left-color: var(--success);
}

.ticket-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.ticket-id {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: "SF Mono", "Menlo", monospace;
}
.ticket-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.ticket-category-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.ticket-status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status-pending-tag {
  background: #fff3e0;
  color: #e67e22;
}
.status-processing-tag {
  background: #e3f2fd;
  color: #1976d2;
}
.status-resolved-tag {
  background: #e8f5e9;
  color: #388e3c;
}

.ticket-card-body {
  font-size: 14px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.ticket-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.ticket-card-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== 分类管理 ===== */
.category-add {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.category-add input {
  flex: 2;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.category-add input:focus {
  border-color: var(--primary);
}
.category-add select {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--card-bg);
  cursor: pointer;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.2s, transform 0.15s, opacity 0.15s;
  position: relative;
}
.category-item:active {
  cursor: grabbing;
}
/* 拖拽中状态 */
.category-item.dragging {
  opacity: 0.4;
  box-shadow: none;
  transform: scale(0.98);
}
.category-item.drag-over {
  border-top: 3px solid var(--primary);
  margin-top: -3px;
}
.category-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
/* 拖拽手柄图标 */
.drag-handle {
  color: #bdc3c7;
  font-size: 18px;
  cursor: grab;
  flex-shrink: 0;
  line-height: 1;
  touch-action: none;
}
.drag-handle:active {
  cursor: grabbing;
  color: var(--text-secondary);
}
.category-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.category-name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 触摸拖拽时的克隆元素 */
.touch-dragging {
  transform: scale(1.03) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

/* ===== 按钮 ===== */
.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 6px 14px;
  font-size: 13px;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: #219a52;
}
.btn-warning {
  background: var(--warning);
  color: #fff;
}
.btn-warning:hover {
  background: #e67e22;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--bg);
}
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--card-bg);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 17px;
  font-weight: 600;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.modal-close:hover {
  background: #e0e0e0;
}
.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-body .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  gap: 12px;
}
.modal-body .detail-row:last-child {
  border-bottom: none;
}
.modal-body .detail-row:has(.ticket-images-grid) {
  flex-wrap: wrap;
}
.ticket-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  width: 100%;
}
.ticket-img-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  flex-shrink: 0;
}
.ticket-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-full-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-body .detail-label {
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 60px;
}
.modal-body .detail-value {
  text-align: right;
  word-break: break-all;
}
.modal-body .remark-input {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  margin-top: 12px;
}
.modal-body .remark-input:focus {
  border-color: var(--primary);
  outline: none;
}
.modal-footer {
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2d3436;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  z-index: 2000;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 响应式：平板及以下 ===== */
@media (max-width: 768px) {
  .app {
    padding: 12px;
  }
  .header-title {
    font-size: 20px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat-card {
    padding: 14px 10px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-label {
    font-size: 12px;
  }
  .filter-bar {
    flex-direction: column;
    gap: 8px;
  }
  .ticket-card {
    padding: 14px;
  }
  .modal {
    border-radius: 14px 14px 0 0;
    max-width: 100%;
  }
  .category-add {
    flex-wrap: wrap;
  }
  .category-add input {
    flex: 100%;
  }
  .category-add select {
    flex: 1;
  }
}

/* ===== 响应式：小手机 ===== */
@media (max-width: 400px) {
  .header-title {
    font-size: 18px;
  }
  .ticket-card-top {
    flex-direction: column;
    gap: 4px;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn-group .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== 登录页 ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.login-logo {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text);
}
.login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}
.login-form input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.login-form input:focus {
  border-color: var(--primary);
}
.login-error {
  text-align: center;
  color: var(--danger);
  font-size: 13px;
  margin-top: 14px;
  min-height: 18px;
}
.btn-block { display: block; width: 100%; }
.btn-lg {
  padding: 13px 24px;
  font-size: 16px;
}

/* ===== Header（含退出按钮）===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 12px;
}

/* ===== 员工管理 ===== */
.section-tip {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.employee-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
  padding-left: 2px;
}
.employee-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.employee-item {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.employee-info {
  flex: 1;
  min-width: 0;
}
.employee-name {
  font-size: 14px;
  font-weight: 600;
}
.employee-dept {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.employee-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.link-btn {
  padding: 5px 12px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.link-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 投诉率排行 ===== */
.employee-rate-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.rate-item {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}
.rate-rank {
  font-size: 18px;
  font-weight: 800;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.rate-rank-1 { background: #fff3e0; color: #e67e22; }
.rate-rank-2 { background: #e8eaf6; color: #5c6bc0; }
.rate-rank-3 { background: #e8f5e9; color: #43a047; }
.rate-rank-n { background: #f5f5f5; color: #999; }

.rate-info { flex: 1; min-width: 0; }
.rate-emp-name { font-size: 14px; font-weight: 600; }
-rate-bar-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.rate-bar-bg {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.rate-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.rate-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}
/* 无数据提示 */
.rate-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--card-bg);
  border-radius: 8px;
}

/* ===== 公开投诉提交页（微信投诉风格）===== */
body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* 公共容器 */
.pub-page {
  position: fixed;
  inset: 0;
  background: #ededed;
  z-index: 500;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== 步骤1：选择投诉原因 ===== */

/* 顶部提示条 */
.pub-notice {
  padding: 12px 16px;
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

/* 白色卡片容器 */
.pub-card {
  margin: 0 0 16px;
  background: #fff;
}

/* 分类列表 */
.pub-category-list {
  /* inside white card */
}
.pub-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.pub-cat-item + .pub-cat-item {
  border-top: 0.5px solid #f0f0f0;
}
.pub-cat-item:active {
  background: #f5f5f5;
}
.pub-cat-item::after {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-top: 1.5px solid #c7c7cc;
  border-right: 1.5px solid #c7c7cc;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 8px;
}
.pub-cat-name {
  font-size: 17px;
  color: #000;
  flex: 1;
  line-height: 1.4;
}

/* 投诉须知链接 */
.pub-disclaimer {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #576b95;
  text-decoration: none;
  padding: 16px;
  -webkit-tap-highlight-color: transparent;
}

/* ===== 步骤2：表单页 ===== */
.pub-form-wrapper {
  padding: 8px 0 40px;
}
.pub-form-section {
  background: #fff;
  margin: 8px 0;
  padding: 14px 16px;
}
.pub-form-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}
.pub-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 17px;
  color: #000;
  background: transparent;
  padding: 4px 0;
  -webkit-appearance: none;
}
.pub-input::placeholder { color: #c7c7cc; }
.pub-textarea {
  width: 100%;
  border: none; outline: none;
  font-size: 17px; color: #000;
  background: transparent;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.6;
  padding: 4px 0;
}
.pub-textarea::placeholder { color: #c7c7cc; }

/* 照片上传 */
.pub-upload-area {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 80px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pub-upload-area:active { border-color: #07C160; }
.pub-upload-plus {
  width: 32px; height: 32px;
  border: 1.5px solid #c7c7cc;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #c7c7cc;
  margin-bottom: 4px;
}
.pub-upload-hint {
  font-size: 12px; color: #c7c7cc;
}
.pub-upload-preview {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.pub-preview-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 0.5px solid #e5e5e5;
  position: relative;
}
.pub-preview-img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 4px;
}
.pub-preview-del {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.5);
  color: #fff; border-radius: 50%;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none; padding: 0; line-height: 1;
}

/* 图片加载中占位 */
.pub-preview-loading {
  display: flex; align-items: center; justify-content: center;
  background: #f7f7f7;
}
.pub-spinner {
  width: 24px; height: 24px;
  border: 2.5px solid #e0e0e0;
  border-top-color: #07C160;
  border-radius: 50%;
  animation: pub-spin 0.7s linear infinite;
}
@keyframes pub-spin {
  to { transform: rotate(360deg); }
}
/* 图片大小标签 */
.pub-preview-size {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 9px; text-align: center;
  padding: 1px 0; border-radius: 0 0 4px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 提交按钮 - 加载状态 */
.pub-submit-btn:disabled,
.pub-submit-loading {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}
.pub-submit-loading::after {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  margin-left: 8px;
  vertical-align: middle;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pub-spin 0.7s linear infinite;
}

/* ===== 提交进度覆盖层 ===== */
.submit-progress-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.submit-progress-box {
  background: #fff; border-radius: 12px;
  padding: 36px 32px; text-align: center;
  width: 260px; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.submit-progress-spinner {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border: 3.5px solid #e8e8e8;
  border-top-color: #07C160;
  border-radius: 50%;
  animation: pub-spin 0.75s linear infinite;
}
.submit-progress-text {
  font-size: 16px; font-weight: 500; color: #333;
  margin-bottom: 8px;
}
.submit-progress-detail {
  font-size: 13px; color: #888; margin-bottom: 14px;
}
.submit-progress-hint {
  font-size: 12px; color: #aaa;
}

/* 提交按钮 */
.pub-submit-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 32px auto 0;
  padding: 12px;
  background: #07C160;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
}
.pub-submit-btn:active { opacity: 0.8; }

/* ===== 步骤3：成功页 ===== */
.pub-success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 36px;
  background: #fff;
}
.pub-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #07C160;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.pub-success-title {
  font-size: 17px; font-weight: 500; color: #000;
  margin-bottom: 12px;
}
.pub-success-msg {
  font-size: 14px; color: #888; line-height: 1.7;
  max-width: 260px;
  margin-bottom: 40px;
}
.pub-done-btn {
  min-width: 184px;
  padding: 12px 48px;
  background: #07C160;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
}
.pub-done-btn:active { opacity: 0.8; }

/* ===== 投诉须知弹窗 ===== */
.disclaimer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.disclaimer-overlay.show {
  display: flex;
}
.disclaimer-modal {
  background: #fff;
  border-radius: 12px;
  width: calc(100% - 60px);
  max-width: 300px;
  overflow: hidden;
}
.disclaimer-content {
  padding: 24px 20px 16px;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}
.disclaimer-content p {
  margin: 0 0 4px;
}
.disclaimer-confirm {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-top: 0.5px solid #e5e5e5;
  background: #fff;
  color: #07C160;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
}
.disclaimer-confirm:active { background: #f5f5f5; }

/* 链接弹窗 - 小号 */
.modal-sm {
  max-width: 420px !important;
}
.link-display {
  background: var(--bg);
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  word-break: break-all;
  font-size: 13px;
  font-family: "SF Mono", Menlo, monospace;
  color: var(--primary);
  margin-bottom: 12px;
}
.link-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* ===== 响应式适配新增部分 ===== */
@media (max-width: 768px) {
  .login-card {
    padding: 32px 24px;
  }
  .public-complaint-wrapper {
    padding: 28px 20px;
  }
  .employee-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .employee-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
