/* 帮帮员端：登录页 + 工作台 */

:root {
  --helper-primary: #e8956a;
  --helper-primary-dark: #d87a4e;
  --helper-accent: #10b981;
  --helper-bg: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ---------- 登录页（复用全局 auth-wrap，仅保留帮帮员专属装饰） ---------- */
.auth-wrap--helper .auth-card--helper h1 {
  text-align: center;
}

.helper-auth-backbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.helper-auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--helper-primary), #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.helper-auth-card h1,
.auth-card--helper h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
}

.helper-auth-subtitle {
  margin: 0 0 28px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.helper-auth-card .field label,
.auth-card--helper .field label {
  color: #334155;
  font-weight: 700;
}

.helper-input-wrap {
  position: relative;
}

.helper-input-wrap input {
  padding-right: 46px;
}

.helper-toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  opacity: 0.7;
}

.helper-btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--helper-primary), #ea580c);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.helper-btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4);
}

.helper-btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.helper-auth-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.helper-auth-footer a {
  color: var(--helper-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.helper-auth-footer a:hover {
  text-decoration: underline;
}

/* ---------- 申请表弹窗 ---------- */
.portal-modal-dialog--apply {
  max-width: min(96vw, 640px);
  max-height: min(92vh, 820px);
}

.helper-apply-form .apply-hero {
  background: linear-gradient(135deg, rgba(232, 149, 106, 0.12), rgba(143, 185, 168, 0.15));
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 149, 106, 0.25);
}

.helper-apply-form .apply-hero h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--helper-primary-dark);
}

.helper-apply-form .apply-hero p {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #666);
  line-height: 1.55;
}

.helper-apply-form .apply-section {
  margin-bottom: 18px;
}

.helper-apply-form .apply-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #e8e0d8);
}

.helper-apply-form .apply-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .helper-apply-form .apply-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 统一验证码 ---------- */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.captcha-img-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 48px;
  padding: 4px 8px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.captcha-img-btn:hover {
  border-color: var(--helper-primary);
  box-shadow: 0 4px 12px rgba(232, 149, 106, 0.15);
}

.captcha-img-btn img {
  display: block;
  height: 44px;
  width: auto;
  border-radius: 6px;
  pointer-events: none;
}

.captcha-fallback {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: #334155;
  user-select: none;
}

.captcha-loading {
  font-size: 13px;
  color: var(--muted, #888);
}

/* ---------- 工作台 ---------- */
.helper-dashboard-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: url("../images/背景图片.png") center/cover no-repeat fixed;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.helper-header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 12px;
}

.helper-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.helper-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #e8956a, #ea580c);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.helper-title h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.helper-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.helper-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.helper-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(236, 253, 245, 0.9);
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.helper-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fed7aa;
  color: #9a3412;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.helper-container {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px;
  box-sizing: border-box;
}

.helper-status-bar {
  background: var(--glass-highlight);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.status-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
}

.status-location strong {
  color: #0f172a;
}

.location-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  animation: helper-pulse 2s infinite;
}

@keyframes helper-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-count {
  background: #ffedd5;
  color: #ea580c;
  font-size: 12.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.empty-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 56px 24px;
  text-align: center;
  border: 2px dashed rgba(203, 213, 225, 0.8);
  color: #64748b;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.empty-card .empty-icon {
  font-size: 52px;
  margin-bottom: 14px;
}

.empty-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #1e293b;
  font-weight: 800;
}

.order-card {
  background: var(--glass-highlight);
  backdrop-filter: blur(16px);
  border-radius: 22px;
  border: 1.5px solid var(--glass-border);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: var(--glass-shadow);
  transition: all 0.25s ease;
}

.order-card:hover {
  border-color: #e8956a;
  box-shadow: 0 20px 48px rgba(232, 149, 106, 0.15);
  transform: translateY(-2px);
}

.order-card.applied {
  border-color: #f59e0b;
}

.order-card.approved {
  border-color: #10b981;
}

.order-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.elder-info-col {
  flex: 1;
  min-width: 260px;
}

.elder-name-masked {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tag-urgent {
  background: #fee2e2;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

.elder-distance-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: #475569;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.dist-highlight {
  color: #d87a4e;
  font-weight: 800;
  background: #fff7ed;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #ffedd5;
}

.elder-address {
  font-size: 13px;
  color: #64748b;
}

.btn-onetap-help {
  background: linear-gradient(135deg, #e8956a 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
  transition: all 0.2s;
}

.btn-onetap-help:hover {
  transform: translateY(-2px) scale(1.02);
}

.waiting-panel {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 16px;
  color: #92400e;
  font-size: 13px;
  line-height: 1.6;
}

.waiting-panel .warning-tag {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 6px;
}

.unlocked-details-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #a7f3d0;
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 16px;
}

.unlocked-title {
  font-size: 15px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 12px;
  border-bottom: 1px solid #d1fae5;
  padding-bottom: 8px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.health-item {
  background: #f0fdf4;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #166534;
}

.notes-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 10px 14px;
  border-radius: 8px;
  color: #78350f;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.actions-unlocked-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-phone-call {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-finish-help {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}
