/* ============================================================
   成都二区 CRC 活动岗位职责会前签署与数字化督导系统 · 样式表 (style.css)
   设计风格：高端商务督导 · 翡翠绿与深黛蓝配色 · 玻璃拟态与微信移动端手势优化
============================================================ */

:root {
  /* 主色板：成都二区绿色通行与稳健督导色彩系统 */
  --bg-primary: #0a0f1d;
  --bg-secondary: #131b2e;
  --bg-card: rgba(22, 32, 54, 0.82);
  --bg-card-hover: rgba(30, 43, 72, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-card: rgba(19, 27, 46, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(16, 185, 129, 0.35);
  --border-active: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-invert: #04130d;

  /* 核心状态强调色 */
  --primary-emerald: #10b981;
  --primary-emerald-dark: #059669;
  --primary-emerald-glow: rgba(16, 185, 129, 0.28);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gold-accent: #f59e0b;
  --redline-danger: #ef4444;
  --redline-danger-bg: rgba(239, 68, 68, 0.12);
  --redline-border: rgba(239, 68, 68, 0.35);
  --blue-tech: #3b82f6;
  --purple-accent: #8b5cf6;

  /* 字体系统 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;

  /* 圆角与阴影 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.22);
  --shadow-danger: 0 0 20px rgba(239, 68, 68, 0.2);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   全局重置与基础布局
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
              linear-gradient(180deg, #0a0f1d 0%, #0d1527 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.app-root {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* 顶部全局提示条 */
.global-status-banner {
  padding: 8px 16px;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  backdrop-filter: blur(8px);
}

/* ============================================================
   参会人扫码端 (Attendee View)
============================================================ */
.view-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 顶部英雄卡片 */
.session-hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.session-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #10b981);
}

.session-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--primary-emerald);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-emerald);
  box-shadow: 0 0 10px var(--primary-emerald);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.session-date-tag {
  font-size: 0.85rem;
  font-family: var(--font-heading);
  color: var(--text-muted);
  font-weight: 600;
}

.session-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.session-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

/* 核心红线警示条 */
.redline-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--redline-danger-bg);
  border: 1px solid var(--redline-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-danger);
  animation: subtle-shake 6s infinite ease-in-out;
}

@keyframes subtle-shake {
  0%, 94%, 100% { transform: translateX(0); }
  96% { transform: translateX(-2px); }
  98% { transform: translateX(2px); }
}

.redline-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.redline-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.redline-text {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fee2e2;
}

/* 本机已签提示条 */
.local-signed-banner {
  margin-top: 14px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.signed-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #a7f3d0;
  font-weight: 600;
}

.btn-signed-jump {
  background: var(--primary-emerald);
  color: var(--text-invert);
  border: none;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast);
}

.btn-signed-jump:active {
  transform: scale(0.95);
}

/* ============================================================
   Step 1: 角色选择区域
============================================================ */
.step-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 70px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.heading-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step-num-badge {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.section-heading h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
}

.hint-multiselect {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-emerald);
}

.selected-counter {
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 600;
}

.section-intro {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -6px;
}

/* 角色卡片网格 */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .role-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.role-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-smooth);
  user-select: none;
}

.role-card:active {
  transform: scale(0.97);
}

.role-card.selected {
  border-color: var(--border-active);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

.role-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.role-icon-box {
  font-size: 1.7rem;
  line-height: 1;
}

.role-check-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: transparent;
  transition: all var(--transition-fast);
}

.role-card.selected .role-check-indicator {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
  color: var(--text-invert);
  font-weight: 800;
}

.role-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.role-card-quota {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.role-card.selected .role-card-quota {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
}

/* 底部悬浮操作栏 */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 50;
  display: flex;
  justify-content: center;
}

.btn-primary-action {
  width: 100%;
  max-width: 600px;
  background: var(--emerald-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary-action:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary-action:not(:disabled):active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.btn-subtext {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ============================================================
   Step 2: 职责深度阅读、防呆逐条打钩
============================================================ */
.reading-header-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 12px;
}

.btn-icon-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.progress-highlight {
  font-weight: 700;
  color: var(--primary-emerald);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--emerald-gradient);
  border-radius: var(--radius-pill);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 职责卡片 */
.duty-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.duty-role-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  box-shadow: var(--shadow-subtle);
}

.duty-role-card.public-std {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(19, 32, 60, 0.85);
}

.duty-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.header-role-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-role-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.header-role-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
}

.header-role-badge {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.duty-role-card.public-std .header-role-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

/* 职责条款列表 */
.duties-clause-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clause-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clause-item:active {
  background: rgba(255, 255, 255, 0.07);
}

.clause-item.checked {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.4);
}

.clause-check-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 0.8rem;
  color: transparent;
  transition: all var(--transition-fast);
  background: rgba(0, 0, 0, 0.2);
}

.clause-item.checked .clause-check-box {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
  color: var(--text-invert);
  font-weight: 800;
}

.clause-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #cbd5e1;
  flex: 1;
}

.clause-text strong {
  color: #fde047;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clause-item.checked .clause-text {
  color: #f1f5f9;
}

/* 现场实拍标准图微画廊 */
.role-gallery-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

.gallery-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.thumb-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: #000;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.thumb-item:active img {
  transform: scale(1.06);
}

.thumb-item .thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3px 6px;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ============================================================
   Step 3: 打字签字立军令状提交区
============================================================ */
.pledge-sign-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  box-shadow: var(--shadow-elevated);
  margin-top: 8px;
  overflow: hidden;
}

.sign-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sign-seal-icon {
  font-size: 2rem;
  line-height: 1;
}

.sign-card-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.sign-card-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sign-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pledge-agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #e2e8f0;
  cursor: pointer;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
}

.required-star {
  color: var(--redline-danger);
  font-weight: 500;
  font-size: 0.76rem;
}

.input-control {
  width: 100%;
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.96rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.input-control:focus {
  outline: none;
  border-color: var(--primary-emerald);
  box-shadow: 0 0 14px var(--primary-emerald-glow);
  background: rgba(10, 15, 29, 0.95);
}

.input-control.text-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.merge-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--primary-emerald);
  border-color: var(--primary-emerald);
}

input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-invert);
}

.btn-submit-pledge {
  background: var(--emerald-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-fast);
  margin-top: 6px;
}

.btn-submit-pledge:active {
  transform: scale(0.98);
}

/* 防呆未完成遮罩 */
.sign-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.lock-box {
  background: rgba(19, 27, 46, 0.95);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  max-width: 360px;
  box-shadow: var(--shadow-danger);
}

.lock-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.lock-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 6px;
}

.lock-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ============================================================
   Step 4: 签署成功 · 履职通行绿卡
============================================================ */
.pass-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0 30px;
}

.green-pass-card {
  background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 90% 90%, rgba(5, 150, 105, 0.18) 0%, transparent 60%),
              linear-gradient(145deg, #0d261e 0%, #061812 100%);
  border: 2px solid #10b981;
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.3), var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.green-pass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.pass-org {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a7f3d0;
}

.pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-emerald);
  color: var(--text-invert);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.pass-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #04130d;
}

.pass-seal-graphic {
  text-align: center;
  margin: 18px 0 12px;
}

.seal-circle {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid #34d399;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.seal-check {
  font-size: 2.2rem;
  color: #34d399;
  font-weight: 900;
}

.seal-caption {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #6ee7b7;
}

.pass-person {
  text-align: center;
  margin-bottom: 16px;
}

.person-label {
  font-size: 0.78rem;
  color: #a7f3d0;
  margin-bottom: 2px;
}

.person-name {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pass-roles-container {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.pass-roles-title {
  font-size: 0.78rem;
  color: #6ee7b7;
  font-weight: 700;
  margin-bottom: 8px;
}

.pass-roles-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pass-role-pill {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10b981;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pass-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  border-top: 1px dashed rgba(16, 185, 129, 0.25);
  padding-top: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
}

.detail-label {
  color: #94a3b8;
}

.detail-val {
  color: #f1f5f9;
  font-weight: 600;
}

.detail-val.highlight-time {
  color: #34d399;
  font-family: var(--font-heading);
}

.pass-footer-watermark {
  margin-top: 16px;
  text-align: center;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  padding-top: 12px;
}

.security-barcode-lines {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #10b981 0px,
    #10b981 3px,
    transparent 3px,
    transparent 7px,
    #34d399 7px,
    #34d399 11px,
    transparent 11px,
    transparent 14px
  );
  border-radius: 3px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.watermark-text {
  font-size: 0.75rem;
  color: #a7f3d0;
  font-weight: 500;
}

/* 绿卡底部操作按钮 */
.pass-action-buttons {
  display: flex;
  gap: 12px;
}

.btn-pass-action {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-pass-action.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.btn-pass-action.outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-pass-action:active {
  transform: scale(0.98);
}

/* 参会端底部 */
.attendee-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-admin-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-admin-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   视图 2：管理员督导后台端 (Admin View)
============================================================ */
.admin-layout {
  max-width: 1140px;
  padding: 16px 20px 60px;
}

.admin-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 14px 20px;
  box-shadow: var(--shadow-elevated);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  font-size: 1.8rem;
  line-height: 1;
}

.brand-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-session-dropdown {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-session-dropdown:focus {
  outline: none;
  border-color: var(--primary-emerald);
}

.btn-exit-admin {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-exit-admin:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

/* 后台 4 大 Tab 导航 */
.admin-tab-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.admin-tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--primary-emerald);
  color: var(--text-invert);
  border-color: var(--primary-emerald);
  font-weight: 800;
  box-shadow: 0 4px 14px var(--primary-emerald-glow);
}

.tab-icon {
  font-size: 1.1rem;
}

/* 后台面板公用卡片 */
.admin-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.admin-panel.active {
  display: flex;
}

.admin-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-elevated);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.card-title .icon {
  font-size: 1.3rem;
}

.card-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

/* KPI 统计指标卡片网格 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-subtle);
}

.kpi-icon {
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.kpi-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.kpi-card.total { border-color: rgba(16, 185, 129, 0.35); }
.kpi-card.total .kpi-num { color: #34d399; }
.kpi-card.func { border-color: rgba(59, 130, 246, 0.35); }
.kpi-card.func .kpi-num { color: #60a5fa; }
.kpi-card.agent { border-color: rgba(245, 158, 11, 0.35); }
.kpi-card.agent .kpi-num { color: #fbbf24; }
.kpi-card.redline { border-color: rgba(139, 92, 246, 0.35); }
.kpi-card.redline .kpi-num { color: #c084fc; font-size: 1.25rem; }

/* 看板快捷操作栏 */
.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.toolbar-left h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.toolbar-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-tool {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-tool.accent {
  background: var(--primary-emerald);
  color: var(--text-invert);
  box-shadow: 0 2px 10px var(--primary-emerald-glow);
}

.btn-tool.success {
  background: #0284c7;
  color: #ffffff;
}

.btn-tool.warning {
  background: #d97706;
  color: #ffffff;
}

.btn-tool.danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-tool.outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.btn-tool:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-tool:active {
  transform: scale(0.97);
}

/* 按岗位分组卡片流 */
.role-sign-groups-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .role-sign-groups-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.role-group-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.group-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-role-icon {
  font-size: 1.4rem;
}

.group-role-name {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.group-quota-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.group-signed-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

.group-names-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
}

.signer-pill {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signer-time {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 400;
}

.btn-del-sign {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.85rem;
  line-height: 1;
}

.btn-del-sign:hover {
  color: #ef4444;
}

.empty-sign-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 8px 0;
}

/* 成都二区落地播报生成卡片 */
.report-broadcast-section {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.report-card-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-icon {
  font-size: 1.8rem;
}

.report-card-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.report-card-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-save-report {
  background: var(--emerald-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--primary-emerald-glow);
}

.report-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .report-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-form-grid .full {
    grid-column: span 2;
  }
}

.report-form-grid label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.report-preview-box {
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.preview-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-copy-sm {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.preview-content-text {
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 模块 2：场次管理表格与表单 */
.create-event-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

@media (min-width: 640px) {
  .form-row-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.status-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.closed {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.btn-table-action {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.btn-table-action.primary {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.btn-table-action.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* 模块 3：职责与标准母版卡片 */
.roles-master-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.roles-master-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.roles-master-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.roles-master-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-master-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.master-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.master-role-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.master-role-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.master-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.master-duties-preview {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(10, 15, 29, 0.5);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.master-duties-preview ol {
  padding-left: 18px;
}

/* 模块 4：系统设置表单 */
.settings-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.settings-form, .password-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ============================================================
   全局弹窗系统 (Modals & Lightbox)
============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  overflow-y: auto;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-wrap h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 专属二维码海报弹窗 */
.poster-tip {
  font-size: 0.84rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.poster-image-wrap {
  width: 100%;
  min-height: 380px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.synthesized-poster-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: auto;
  -webkit-touch-callout: default;
}

.poster-spinner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.85rem;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-emerald);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.poster-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* 全屏 Lightbox 标准图预览 */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-container {
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.btn-close-lightbox {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.lightbox-img-wrap {
  max-width: 100%;
  max-height: 75vh;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #000;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  object-fit: contain;
}

.lightbox-hint {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* 职责编辑弹窗内部 */
.role-dialog {
  max-width: 680px;
}

.role-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-row-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  cursor: pointer;
}

.section-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--primary-emerald);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.duties-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.duty-edit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(10, 15, 29, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.duty-textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  resize: vertical;
  min-height: 54px;
}

.duty-textarea:focus {
  outline: none;
}

.duty-action-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-mini {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.72rem;
  cursor: pointer;
}

.btn-mini:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-mini.danger:hover {
  background: #dc2626;
}

/* 图片上传与压缩维护 */
.btn-upload-file {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.hint-compression {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.role-images-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.role-img-edit-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.role-img-edit-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.role-img-edit-card input {
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  color: #ffffff;
  font-size: 0.72rem;
  padding: 4px;
  text-align: center;
}

.btn-remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.85);
  border: none;
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
}

.modal-footer-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* 管理员口令验证弹窗 */
.auth-dialog {
  max-width: 380px;
}

.auth-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-hint {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.auth-input {
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-align: center;
}

.auth-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================================
   Toast 消息提示系统
============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast {
  pointer-events: auto;
  background: rgba(19, 27, 46, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  animation: toast-slide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-slide {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(6, 78, 59, 0.95);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(127, 29, 29, 0.95);
}

.toast.info {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(30, 58, 138, 0.95);
}

.toast-icon {
  font-size: 1.1rem;
}
