:root {
  --primary: #2f6bff;
  --primary-dark: #1f4fd6;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1f2733;
  --muted: #8a93a3;
  --border: #e3e8f0;
  --ok: #1faa59;
  --err: #e23b3b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 28px 20px;
}

/* ---------- 客户表单（参考设计：双栏 + 圆角卡片 + 顶部 alert 提示） ---------- */
.container { max-width: 880px; margin: 0 auto; }

.page-header { text-align: center; margin-bottom: 32px; }
.page-title { font-size: 2rem; font-weight: 700; color: #0c4a6e; margin: 0 0 8px; }
.page-subtitle { color: #475569; font-size: 1rem; margin: 0; }

.message-container { margin-bottom: 24px; }
.alert {
  padding: 12px 18px; border-radius: 12px; font-size: 0.9rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; border-left: 5px solid; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin: 0;
}
.alert-success { border-left-color: #10b981; background: #ecfdf5; color: #065f46; }
.alert-danger  { border-left-color: #ef4444; background: #fef2f2; color: #991b1b; }
.alert-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  opacity: 0.6; line-height: 1; padding: 0 5px; color: inherit; flex-shrink: 0;
}
.alert-close:hover { opacity: 1; }

.feedback-card {
  background: #fff; border-radius: 24px; padding: 32px 36px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); border: 1px solid #e2e8f0;
}
@media (max-width: 680px) { .feedback-card { padding: 24px 20px; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; gap: 14px; } }
.form-group { margin-bottom: 0; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: #1e293b; font-size: 0.9rem; }
.required::after { content: " *"; color: #e53e3e; }

.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; font-size: 0.95rem;
  border: 1px solid #cbd5e1; border-radius: 14px;
  background: #fff; font-family: inherit;
  color: var(--text);
  transition: none;
}
select.form-input {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23475569' d='M8 11L3 6h10z'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  padding-right: 36px;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.char-counter { text-align: right; font-size: 0.75rem; color: #5b6e8c; margin-top: 6px; }
.char-counter .current { color: #2563eb; font-weight: 500; }

.file-upload-area {
  border: 1px dashed #94a3b8; border-radius: 16px; padding: 22px 16px;
  text-align: center; background: #fafcff; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.file-upload-area:hover { border-color: #3b82f6; background: #f0f7ff; }
.file-upload-area.drag  { background: #eef4ff; border-color: #3b82f6; }
.upload-icon { font-size: 2rem; color: #3b82f6; margin-bottom: 8px; line-height: 1; }
.upload-text { color: #1f3a5f; font-size: 0.9rem; margin-bottom: 5px; }
.upload-hint { color: #6c7f8f; font-size: 0.75rem; }
.file-input { display: none; }

.image-preview-container {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px; margin-top: 18px;
}
.image-preview {
  position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden;
  border: 1px solid #e2edf7; background: #f8fafc;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.remove-image {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  background: rgba(0,0,0,0.65); color: #fff; border-radius: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem; font-weight: bold; border: none;
  line-height: 1; padding: 0;
}
.remove-image:hover { background: rgba(0,0,0,0.85); }

.submit-button {
  width: 100%; padding: 14px 20px; font-size: 1rem; font-weight: 600;
  background-color: #2563eb; color: #fff; border: none; border-radius: 40px;
  cursor: pointer; margin-top: 16px; letter-spacing: 0.3px;
  font-family: inherit;
  transition: background-color 0.15s;
}
.submit-button:hover:not(:disabled) { background-color: #1d4ed8; }
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-button.loading { background-color: #3b82f6; opacity: 0.8; }

.page-footer { text-align: center; margin-top: 36px; padding: 12px; color: #5b6e8c; font-size: 0.8rem; }
.status-indicator {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e9f0f9; padding: 6px 16px; border-radius: 40px;
}
.status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; }

/* ---------- 通用按钮（admin 登录仍复用 .btn-primary） ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }

.msg { margin-top: 12px; font-size: 13px; min-height: 18px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* ---------- 登录 ---------- */
/* ============== 登录页（参考平台管理端风格） ============== */
.login-page[hidden],
.dash[hidden],
.tab-panel[hidden] { display: none !important; }   /* 显式胜过 .login-page{display:flex}，让 hidden 真正生效 */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  width: 420px;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}
.logo-area { text-align: center; margin-bottom: 32px; }
.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #2f6bff 0%, #1d4ed8 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.35);
}
.logo-mark svg { width: 32px; height: 32px; }
.logo-area h1 {
  font-size: 26px;
  margin: 0 0 8px;
  color: #1a1a2e;
  font-weight: 600;
}
.logo-area p { color: #888; font-size: 14px; margin: 0; }

.login-form { display: flex; flex-direction: column; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 14px;
  color: #1a1a2e;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  font-size: 14px;
  background: #fbfcfe;
  color: #1a1a2e;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.form-field input::placeholder { color: #b8bfcc; }
.form-field input:focus {
  outline: none;
  border-color: #2f6bff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}
.btn-login {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #2f6bff 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.25);
  transition: transform 0.05s, box-shadow 0.15s, opacity 0.15s;
  font-family: inherit;
  margin-top: 4px;
}
.btn-login:hover { box-shadow: 0 6px 16px rgba(47, 107, 255, 0.4); }
.btn-login:active { transform: translateY(1px); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.login-hint {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 16px;
  min-height: 18px;
}
.login-hint.err { color: #d83838; }
.switch-link {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
}
.switch-link a {
  color: #2f6bff;
  text-decoration: none;
  cursor: pointer;
}
.switch-link a:hover { text-decoration: underline; }

/* ---------- 后台 ---------- */
.dash { max-width: 1040px; margin: 28px auto; padding: 0 16px; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-bar h2 { margin: 0; font-size: 20px; }
.dash-bar h2 .count { color: var(--muted); font-weight: 500; font-size: 15px; margin-left: 2px; }
.dash-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.dash-actions input { width: 240px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; }
.btn-ghost { padding: 9px 16px; border: none; border-radius: 9px; background: var(--primary); color: #fff; cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background 0.15s; }
.btn-ghost:hover { background: var(--primary-dark); }

/* 反馈列表（表格形式） */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 12px rgba(30,50,90,0.05); overflow: auto; }
.fb-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.fb-table thead th { background: #f7f9fc; color: var(--muted); font-weight: 600; font-size: 12px; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: 0.2px; }
.fb-table tbody td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; }
.fb-table tbody tr:last-child td { border-bottom: none; }
.fb-table tbody tr { transition: background 0.12s; }
.fb-table tbody tr:hover { background: #fafbfe; }
.fb-table .col-product { width: 1%; white-space: nowrap; }
.fb-table .col-time { width: 1%; white-space: nowrap; }
.fb-table .col-contact { width: 1%; white-space: nowrap; }
.fb-table .col-imgs { width: 1%; white-space: nowrap; }
.fb-table .col-op { width: 1%; white-space: nowrap; text-align: center; }
.fb-table td.col-op { text-align: center; }
.fb-table td.col-op .row-btn + .row-btn { margin-left: 6px; }
.fb-table .col-content { white-space: normal; word-break: break-word; }
.fb-table tbody tr.row-handled td { background: #f6fbf7; }
.fb-table tbody tr.row-handled:hover td { background: #eef8f0; }
.handled-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 11px; line-height: 1.4; color: #1c9a52; background: #e6f7ed; border-radius: 10px; vertical-align: middle; font-weight: 500; }

/* 产品徽章（按产品名哈希自动分配 6 色调） */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.7; }
.tag.c1 { background: #eef3ff; color: #2f6bff; }
.tag.c2 { background: #e6f7ed; color: #1c9a52; }
.tag.c3 { background: #fff4e0; color: #c2700a; }
.tag.c4 { background: #fde8e8; color: #d83838; }
.tag.c5 { background: #efe8ff; color: #6d3adb; }
.tag.c6 { background: #e0f5fa; color: #0881a8; }

.fb-table time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.contact-val { color: var(--text); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* 反馈内容：默认 2 行折叠，长内容显示"展开" */
.fb-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
  max-width: 520px;
}
.fb-content.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.fb-expand { margin-top: 6px; background: none; border: none; color: var(--primary); font-size: 12px; cursor: pointer; padding: 0; }
.fb-expand:hover { text-decoration: underline; }

/* 截图缩略图 */
.thumb-sm { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: zoom-in; transition: transform 0.12s, box-shadow 0.12s; margin-right: 6px; background: #f3f5f9; }
.thumb-sm:last-child { margin-right: 0; }
.thumb-sm:hover { transform: scale(1.1); box-shadow: 0 2px 8px rgba(30,50,90,0.18); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 200; }   /* 高于 .modal-mask(z-index:100)，从 modal 内点灯箱时不被遮住 */
.lightbox[hidden] { display: none; }   /* 让 HTML hidden 属性真正生效（CSS display:flex 会覆盖 UA 的 [hidden]） */
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; }
.lb-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ============== Tab 切换 ============== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; background: #fff; border-radius: 12px 12px 0 0; padding: 0 16px; }
.tab { padding: 12px 20px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; color: var(--muted); cursor: pointer; font-weight: 500; font-family: inherit; transition: color 0.12s, border-color 0.12s; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-count { display: inline-block; background: #eef3ff; color: var(--primary); font-size: 12px; padding: 1px 8px; border-radius: 10px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.tab.active .tab-count { background: var(--primary); color: #fff; }

/* ============== 用户徽章 ============== */
.dash-actions { display: flex; align-items: center; gap: 8px; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); padding: 6px 12px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 20px; }
.role-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 500; }
.role-tag.super { background: #fff4e0; color: #c2700a; }
.role-tag.regular { background: #eef3ff; color: var(--primary); }
.me-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--primary); color: #fff; margin-left: 4px; vertical-align: middle; }

/* ============== dash-sub 容器 ============== */
.dash-sub { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
/* 反馈列表用：搜索+导出 靠右对齐（无卡片） */
.dash-sub.dash-sub-end { justify-content: flex-end; }
.dash-sub > #search { flex: 1; min-width: 200px; max-width: 360px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: var(--text); }
.dash-sub.dash-sub-end > #search { flex: 0 1 280px; }
.dash-sub > #search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,0.12); }
.dash-sub-hint { flex: 1; min-width: 200px; color: var(--muted); font-size: 13px; }
.dash-sub > #newAccBtn { margin-left: auto; }

/* ============== 操作行按钮 ============== */
.row-btn { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--text); cursor: pointer; font-family: inherit; transition: border-color 0.12s, color 0.12s; }
.row-btn:hover { border-color: var(--primary); color: var(--primary); }
.row-btn.danger:hover { border-color: #d83838; color: #d83838; }
.row-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============== 反馈详情 modal ============== */
.fb-detail-row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed #eef0f5; font-size: 14px; align-items: flex-start; }
.fb-detail-row:last-child { border-bottom: none; }
.fb-detail-label { width: 72px; color: var(--muted); flex-shrink: 0; font-size: 12px; padding-top: 2px; }
.fb-detail-content-row { flex-direction: column; align-items: stretch; }
.fb-detail-content-row .fb-detail-label { padding-top: 0; }
.fb-detail-text { background: #f7f9fc; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; color: #1f2937; line-height: 1.6; }
.fb-detail-imgs-row { flex-direction: column; align-items: stretch; }
.fb-detail-imgs-row .fb-detail-label { padding-top: 0; }
.fb-detail-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-detail-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; background: #f7f9fc; transition: transform 0.12s, border-color 0.12s; }
.fb-detail-img:hover { transform: scale(1.05); border-color: var(--primary); }

/* ============== 账号表 ============== */
.acc-table .col-acc-user { width: 22%; }
.acc-table .col-acc-role { width: 12%; }
.acc-table .col-acc-time { width: 22%; }
.acc-table .col-acc-last { width: 22%; }
.acc-table .col-acc-op { width: 22%; text-align: right; white-space: nowrap; }
.acc-table td.col-acc-op { text-align: right; }
.acc-table td.col-acc-user b { font-weight: 600; }

/* ============== Modal ============== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,0.45); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn 0.15s ease; }
.modal-mask[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 14px; width: 420px; max-width: 92vw; box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden; animation: pop 0.18s ease; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { margin: 0; font-size: 16px; color: #1a1a2e; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; color: #9ca3af; cursor: pointer; line-height: 1; padding: 0 4px; font-family: inherit; }
.modal-close:hover { color: #1a1a2e; }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 12px 22px; background: #fafbfe; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.btn-ghost-modal { padding: 8px 16px; background: #fff; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 14px; color: #4b5563; font-family: inherit; transition: background 0.12s; }
.btn-ghost-modal:hover { background: #f7f9fc; }
.btn-primary-modal { padding: 8px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; font-family: inherit; transition: background 0.12s; }
.btn-primary-modal:hover { background: #1d4ed8; }
.btn-primary-modal:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary-modal.danger { background: #d83838; }
.btn-primary-modal.danger:hover { background: #b91c1c; }

/* ============== 表单字段（modal 内） ============== */
.modal .form-field { margin-bottom: 14px; }
.modal .form-field:last-child { margin-bottom: 0; }
.modal .form-field label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; font-weight: 500; }
.modal .form-field input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; color: var(--text); }
.modal .form-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,0.12); }
.modal .form-field input:disabled { background: #f7f9fc; color: var(--muted); cursor: not-allowed; }
.form-error { color: #d83838; font-size: 12px; margin-top: 4px; min-height: 14px; line-height: 1.4; }

/* ============== 错误提示（登录） ============== */
.login-hint { color: var(--muted); font-size: 13px; min-height: 18px; margin-top: 4px; text-align: center; }
.login-hint.err { color: #d83838; }


/* ============== 手机端适配 ============== */
@media (max-width: 640px) {
  /* 登录页：去掉深色背景，白底撑满整个手机屏幕 */
  .login-page { padding: 0; align-items: stretch; justify-content: stretch; background: #fff; }
  .login-card { width: 100%; max-width: 100%; min-height: 100vh; padding: max(env(safe-area-inset-top), 24px) 22px 24px; border-radius: 0; box-shadow: none; }
  .logo-area { margin-bottom: 24px; }
  .logo-mark { width: 56px; height: 56px; border-radius: 14px; }
  .logo-mark svg { width: 28px; height: 28px; }
  .logo-area h1 { font-size: 22px; }
  .logo-area p { font-size: 13px; }
  .form-field { margin-bottom: 16px; }
  .form-field input { padding: 14px 14px; font-size: 16px; border-radius: 10px; }
  .btn-login { padding: 14px; font-size: 15px; border-radius: 12px; min-height: 48px; }
  .switch-link { margin-top: 18px; }

  /* 后台布局 */
  .dash { margin: 12px auto; padding: 0 12px; }
  .dash-bar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .dash-bar h2 { font-size: 18px; }
  .dash-actions { flex-wrap: nowrap; gap: 8px; }
  .dash-actions .user-pill { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .dash-actions .btn-ghost { flex: 0 0 auto; padding: 10px 18px; min-height: 40px; }

  /* 搜索+导出区域：竖排、全宽 */
  .dash-sub { flex-direction: column; align-items: stretch; gap: 10px; }
  .dash-sub.dash-sub-end { justify-content: stretch; }
  .dash-sub > #search { flex: 1; max-width: 100%; width: 100%; padding: 12px 14px; font-size: 15px; min-height: 44px; box-sizing: border-box; }
  .dash-sub.dash-sub-end > #search { flex: 1; }
  .dash-sub #exportBtn, .dash-sub #newAccBtn { width: 100%; padding: 12px; font-size: 15px; min-height: 44px; }
  .dash-sub-hint { text-align: center; }

  /* Tabs：横滑，避免换行 */
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding: 0 8px; gap: 0; }
  .tab-btn { white-space: nowrap; padding: 12px 16px; font-size: 14px; flex-shrink: 0; min-height: 44px; }

  /* 表格转卡片视图 */
  .table-wrap { background: transparent; border: none; box-shadow: none; border-radius: 0; }
  .fb-table { min-width: 0; }
  .fb-table thead { display: none; }
  .fb-table, .fb-table tbody, .fb-table tr, .fb-table td { display: block; width: 100%; }
  .fb-table tbody tr { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(30,50,90,0.04); }
  .fb-table tbody tr:hover { background: #fff; }
  .fb-table tbody td { padding: 0; border: none; margin-bottom: 10px; }
  .fb-table tbody td:last-child { margin-bottom: 0; }
  .fb-table .col-product { display: flex; align-items: center; gap: 8px; }
  .fb-table .col-time { font-size: 12px; color: var(--muted); }
  .fb-table .col-time::before { content: '提交时间：'; color: #9ca3af; }
  .fb-table .col-contact { font-size: 13px; }
  .fb-table .col-contact::before { content: '联系方式：'; color: #9ca3af; }
  .fb-table .col-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
  .fb-table .col-imgs::before { content: '截图：'; color: #9ca3af; font-size: 13px; align-self: center; margin-right: 4px; }
  .fb-table .col-op { text-align: center; padding-top: 8px !important; border-top: 1px dashed var(--border) !important; }
  .fb-table td.col-op .row-btn { padding: 6px 12px; font-size: 13px; min-height: 32px; }

  /* 账号表：移动端卡片化（继承 .fb-table 卡片样式，此处只补列内文本前缀） */
  .acc-table { width: 100% !important; box-sizing: border-box; }
  .acc-table td.col-acc-user,
  .acc-table td.col-acc-role,
  .acc-table td.col-acc-time,
  .acc-table td.col-acc-last,
  .acc-table td.col-acc-op { width: 100% !important; }   /* 覆盖 PC 端 22%/12% 列宽 */
  .acc-table .col-acc-user { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .acc-table .col-acc-role { font-size: 12px; }
  .acc-table .col-acc-role .role-tag { white-space: nowrap; }
  .acc-table .col-acc-time { font-size: 12px; color: var(--muted); }
  .acc-table .col-acc-time::before { content: '创建：'; color: #9ca3af; }
  .acc-table .col-acc-last { font-size: 12px; color: var(--muted); }
  .acc-table .col-acc-last::before { content: '最后登录：'; color: #9ca3af; }
  .acc-table td.col-acc-op { text-align: right; }
  .acc-table td.col-acc-op .row-btn { padding: 6px 12px; font-size: 13px; min-height: 32px; }

  /* 灯箱：图片不超出屏幕 */
  .lightbox img { max-width: 95%; max-height: 90vh; }

  /* 模态框：贴底弹起，更像 App */
  .modal { width: 100%; max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; margin-top: auto; animation: slideUp 0.22s ease; }
  .modal-body { padding: 18px 20px; max-height: 70vh; overflow-y: auto; }
  .modal-header { padding: 14px 20px; }
  .modal-footer { padding: 12px 20px; }
  .modal .form-field input { padding: 12px 14px; font-size: 16px; }
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
