/* ============================================
   政务一事通 - 全局样式系统 v2.0
   设计风格：现代政务平台 - 专业 · 清晰 · 精致
   主色调：现代蓝 #2563EB + 琥珀暖色 #F59E0B
   响应式：PC ≥ 769px | 手机 ≤ 768px
   ============================================ */

/* ========== CSS 自定义属性（设计令牌）========== */
:root {
  /* === 主色系 - 现代蓝 === */
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --primary-300: #93C5FD;
  --primary-400: #60A5FA;
  --primary-500: #3B82F6;    /* 主蓝 */
  --primary-600: #2563EB;    /* 深主蓝 */
  --primary-700: #1D4ED8;
  --primary-800: #1E40AF;
  --primary-900: #1E3A8A;

  /* === 点缀色 - 琥珀/暖色 === */
  --accent-50: #FFFBEB;
  --accent-100: #FEF3C7;
  --accent-200: #FDE68A;
  --accent-300: #FCD34D;
  --accent-400: #FBBF24;
  --accent-500: #F59E0B;     /* 琥珀 */
  --accent-600: #D97706;

  /* === 中性灰阶 === */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* === 语义色彩 === */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --info: #3B82F6;
  --info-bg: #EFF6FF;
  --info-border: #BFDBFE;

  /* === 背景色 === */
  --bg-base: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-mesh: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 50%, #FFF9ED 100%);

  /* === 文字颜色 === */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --text-inverse: #FFFFFF;
  --text-link: #2563EB;

  /* === 边框 === */
  --border-light: #E5E7EB;
  --border-default: #D1D5DB;
  --border-strong: #9CA3AF;

  /* === 间距系统 (基于 4px 倍数) === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* === 圆角系统 === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* === 阴影系统（分层） === */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);

  /* 彩色阴影 */
  --shadow-primary: 0 4px 14px rgba(37, 99, 235, 0.15);
  --shadow-primary-lg: 0 10px 30px rgba(37, 99, 235, 0.18);
  --shadow-accent: 0 4px 14px rgba(245, 158, 11, 0.15);

  /* === 字体系统 === */
  --font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.875rem; /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3rem;      /* 48px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* === 过渡动画 === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --transition-fast: var(--duration-fast) var(--ease-out);
  --transition-normal: var(--duration-normal) var(--ease-out);
  --transition-slow: var(--duration-slow) var(--ease-out);

  /* === 层级 === */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;

  /* === 兼容旧版变量名 === */
  --gov-primary: var(--primary-700);
  --gov-primary-light: var(--primary-500);
  --gov-primary-dark: var(--primary-900);
  --gov-gold: var(--accent-500);
  --gov-gold-light: var(--accent-100);
  --gov-gold-dark: var(--accent-600);
  --gov-sky: var(--primary-50);
  --gov-bg: var(--bg-base);
  --gov-white: var(--bg-surface);
  --border-light: var(--border-light);
  --border-medium: var(--border-default);
  --border-dark: var(--border-strong);
}


/* ========== 基础样式重置 ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Non-call customer pages keep horizontal clipping on the document root
 * so the body remains in the browser's natural vertical scroll flow.
 */
html.customer-scroll-root {
  overflow-x: clip;
  overflow-y: visible;
}

html.customer-scroll-root > body.home-page,
html.customer-scroll-root > body.customer-entry-page {
  overflow-x: visible;
  overflow-y: visible;
}

html.customer-modal-open,
body.customer-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.customer-modal-open {
  width: 100%;
  touch-action: none;
  animation: none !important;
  transform: none !important;
}

/* 表单元素统一 */
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }


/* ========== 按钮组件系统 v2 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: 0 var(--space-5);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.btn:hover:not(:disabled)::after { opacity: 1; }

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* 主要按钮 - 纯色蓝 */
.btn-primary {
  background: var(--primary-600);
  color: var(--text-inverse);
  border-color: var(--primary-600);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-700);
  border-color: var(--primary-700);
  box-shadow: var(--shadow-primary);
}

/* 次要按钮 - 白底 + 蓝边 */
.btn-secondary {
  background: var(--bg-surface);
  color: var(--primary-700);
  border-color: var(--border-default);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary-400);
  background: var(--primary-50);
  color: var(--primary-700);
}

/* 幽灵按钮 - 用于深色背景上 */
.btn-outline {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

/* 成功按钮 */
.btn-success {
  background: var(--success);
  color: var(--text-inverse);
  border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* 危险按钮 */
.btn-danger {
  background: var(--danger);
  color: var(--text-inverse);
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: #DC2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

/* 按钮尺寸 */
.btn-sm {
  min-height: 34px;
  padding: 0 var(--space-3);
  font-size: var(--font-size-xs);
}
.btn-lg {
  min-height: 50px;
  padding: 0 var(--space-6);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-lg);
}
.btn-block { width: 100%; }


/* ========== 表单组件 v2 ========== */
.form-select,
.form-input {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-4);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-input {
  background-image: none;
  padding-right: var(--space-4);
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background-color: var(--bg-surface);
}

.form-select-lg {
  min-height: 52px;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-lg);
}


/* ========== 卡片/面板组件 v2 ========== */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition:
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.panel:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-default);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--info-bg);
  color: var(--primary-600);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}

.panel-header h2 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.info-list {
  display: grid;
  gap: 0;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
}

.info-list div:last-child {
  border-bottom: none;
}

.info-list dt {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  flex-shrink: 0;
  font-size: var(--font-size-sm);
}

.info-list dd {
  margin: 0;
  font-weight: var(--font-weight-bold);
  color: var(--primary-700);
  text-align: right;
  font-size: var(--font-size-sm);
}


/* ========== 材料提示框 ========== */
.material-tips {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-500);
}

.material-tips strong {
  display: block;
  color: var(--primary-800);
  margin-bottom: var(--space-1);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.material-tips p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}


/* ========== 进度步骤 ========== */
.progress-steps {
  list-style: none;
  display: grid;
  gap: var(--space-2);
  counter-reset: step-counter;
}

.progress-steps li {
  counter-increment: step-counter;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border-left: 3px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.progress-steps li.active {
  background: var(--info-bg);
  border-left-color: var(--primary-500);
  color: var(--primary-700);
  font-weight: var(--font-weight-bold);
}


/* ========== 视频通话区域 v2 ========== */
.media-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.media-section:hover {
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.section-header h2 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: -0.01em;
}

.media-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--accent-600);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.dot-inactive {
  background: var(--gray-300);
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.video-container {
  position: relative;
  background: linear-gradient(145deg, #0F172A, #1E293B);
  min-height: 460px;
  display: block;
  border-radius: var(--radius-md);
  margin: var(--space-4);
  overflow: hidden;
}

.video-box {
  position: relative;
  background: #0F172A;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-label {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 5;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
}

.video-box video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0F172A;
}

.remote-video-box {
  width: 100%;
  min-height: 400px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
}

.pip-video {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 10;
  width: 190px;
  height: 142px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.pip-video video {
  object-fit: cover;
}

.video-placeholder-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #64748B;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  z-index: 1;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.video-placeholder.cam-off::before,
.local-video-box.has-video .video-placeholder-text {
  display: none;
}

.remote-video-box.has-video .video-placeholder-text {
  display: none;
}

#remoteAudio {
  display: none;
}

.panel,
.media-section,
.section-header,
.panel-header,
.info-list div {
  min-width: 0;
}

.panel-header h2,
.section-header h2,
.media-status,
.meta-item,
.status-content,
.info-list dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 视频控制栏 */
.video-controls,
.screen-controls {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 38px;
}

.ctrl-btn:hover:not(:disabled) {
  border-color: var(--primary-400);
  background: var(--primary-50);
  color: var(--primary-700);
  box-shadow: var(--shadow-xs);
}

.ctrl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ctrl-btn-primary {
  background: var(--primary-600);
  color: var(--text-inverse);
  border-color: var(--primary-600);
}
.ctrl-btn-primary:hover:not(:disabled) {
  background: var(--primary-700);
  border-color: var(--primary-700);
  box-shadow: var(--shadow-primary);
}

.ctrl-icon {
  font-size: var(--font-size-md);
}


/* ========== 屏幕共享区域 v2 ========== */
.screen-section {
  margin-top: var(--space-5);
}

.screen-section.active {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 1px var(--accent-100), var(--shadow-accent);
}

.screen-container {
  position: relative;
  background: linear-gradient(145deg, #0F172A, #1E293B);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin: var(--space-4);
}

.screen-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: #64748B;
}

.placeholder-icon {
  font-size: 40px;
  opacity: 0.35;
}

/* 屏幕共享激活时成为主区域 */
.main-stage.screen-sharing .primary-video,
.customer-workspace.screen-sharing .video-section {
  position: absolute !important;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 20;
  width: 270px !important;
  max-width: 22vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.main-stage.screen-sharing .screen-section,
.customer-workspace.screen-sharing .screen-section {
  min-height: 520px;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 1px var(--accent-100), var(--shadow-accent);
}

#screenVideoWrapper {
  display: none;
}
#screenVideoWrapper.active {
  display: block;
}


/* ========== 文件传输区域 v2 ========== */
.file-panel {
  margin-top: var(--space-5);
}

.file-input {
  display: none;
}

.material-upload-dropzone {
  display: flex;
  width: 100%;
  min-height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  border: 2px dashed var(--primary-400);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--primary-50), var(--bg-surface));
  color: var(--primary-700);
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.material-upload-dropzone:hover:not(:disabled) {
  border-color: var(--primary-600);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.material-upload-dropzone:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.material-upload-icon {
  font-size: 30px;
  line-height: 1;
}

.material-upload-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--primary-700);
}

.material-upload-desc,
.material-upload-note {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-normal);
}

.material-upload-desc {
  color: var(--text-secondary);
}

.material-upload-note {
  color: var(--success);
  font-weight: var(--font-weight-semibold);
}

.file-upload button {
  margin-bottom: var(--space-3);
}

.file-progress-group {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.file-progress-row {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.file-progress-row label {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
}

progress {
  width: 100%;
  height: 8px;
  border: none;
  border-radius: var(--radius-full);
  appearance: none;
  -webkit-appearance: none;
  background: var(--gray-200);
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: var(--gray-200);
  border-radius: var(--radius-full);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-full);
  transition: width 0.35s var(--ease-out);
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-full);
}

.progress-percent {
  font-weight: var(--font-weight-bold);
  color: var(--primary-600);
  text-align: right;
  font-size: var(--font-size-xs);
}

.file-status {
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
  min-height: 44px;
  border: 1px dashed var(--border-default);
}

.received-files {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.download-file {
  color: var(--primary-600);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.wechat-download-guide {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  color: #0f3f8c;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.45;
}

.wechat-download-arrow {
  position: fixed;
  top: 8px;
  right: 14px;
  z-index: 10001;
  color: #dc2626;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.received-file-preview {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}


/* ========== 座席列表 ========== */
.agent-list-panel {
  margin-bottom: var(--space-5);
}

.agent-list {
  display: grid;
  gap: var(--space-3);
}

.empty-list {
  padding: var(--space-8);
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1.5px dashed var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.agent-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  background: var(--primary-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.agent-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-xs);
}

.status-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.status-idle {
  background: var(--success-bg);
  color: var(--success);
}

.status-busy,
.status-paused {
  background: var(--warning-bg);
  color: var(--accent-600);
}


/* ========== 来电提示和操作按钮 v2 ========== */
.incoming-row,
.incall-row {
  display: none;
}

.call-notice {
  padding: var(--space-5);
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: var(--radius-lg);
}

.notice-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-weight: var(--font-weight-bold);
  color: var(--primary-800);
  font-size: var(--font-size-md);
}

.notice-icon {
  font-size: var(--font-size-xl);
}

.notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.call-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-mini {
  min-height: 28px;
  padding: 4px var(--space-3);
  font-size: var(--font-size-xs);
}


/* ========== 弹窗/模态框 v2 - 多变体支持 ========== */

/* 基础遮罩层 */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    max(var(--space-4), env(safe-area-inset-top))
    max(var(--space-4), env(safe-area-inset-right))
    max(var(--space-4), env(safe-area-inset-bottom))
    max(var(--space-4), env(safe-area-inset-left));
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-overlay.active {
  display: flex;
  animation: modal-backdrop 0.3s ease;
}

@keyframes modal-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 基础卡片 */
.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-width: calc(100vw - var(--space-8));
  max-height: calc(100vh - var(--space-10));
  max-height: calc(100dvh - var(--space-10));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  animation: modal-in var(--duration-slow) var(--ease-spring);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 呼叫等待脉冲动画 */
@keyframes calling-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 图标环形脉冲 */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ====== 弹窗变体：信息型（蓝色）====== */
.modal-card.modal-info {
  border-top: 4px solid var(--primary-500);
}
.modal-card.modal-info .modal-badge {
  background: var(--primary-50);
  color: var(--primary-600);
}
.modal-card.modal-info .modal-icon-circle {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

/* ====== 弹窗变体：成功型（绿色）====== */
.modal-card.modal-success {
  border-top: 4px solid var(--success-500);
}
.modal-card.modal-success .modal-badge {
  background: var(--success-bg);
  color: var(--success-600);
}
.modal-card.modal-success .modal-icon-circle {
  background: linear-gradient(135deg, #10B981, #059669);
}

/* ====== 弹窗变体：警告型（琥珀色）====== */
.modal-card.modal-warning {
  border-top: 4px solid var(--accent-400);
}
.modal-card.modal-warning .modal-badge {
  background: var(--warning-bg);
  color: var(--accent-600);
}
.modal-card.modal-warning .modal-icon-circle {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
}

/* ====== 弹窗变体：危险/确认型（红色）====== */
.modal-card.modal-danger {
  border-top: 4px solid var(--danger-500);
}
.modal-card.modal-danger .modal-badge {
  background: var(--danger-bg);
  color: var(--danger-600);
}
.modal-card.modal-danger .modal-icon-circle {
  background: linear-gradient(135deg, var(--danger-500), #B91C1C);
}

/* 图标圆形区域 */
.modal-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.modal-icon-circle {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* 头部 */
.modal-header {
  margin-bottom: var(--space-5);
  text-align: center;
}

.modal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
}

.modal-card h2,
.modal-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

/* 描述文字 */
.modal-desc {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
}

/* 信息列表 */
.modal-info-list {
  margin-bottom: var(--space-5);
}

.modal-info-list dl {
  display: grid;
  gap: var(--space-2);
}

.modal-info-list dt {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-semibold);
}

.modal-info-list dd {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
}

/* 操作按钮区 */
.modal-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
}

/* 关闭按钮 */
.modal-close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-lg);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .modal-card {
    width: min(100%, 420px);
    max-width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }

  .modal-close-btn {
    position: sticky;
    top: 0;
    z-index: calc(var(--z-modal) + 1);
    margin-left: auto;
  }
}

/* ====== 小型弹窗（Toast/通知）====== */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: calc(var(--z-modal) + 100);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary-500);
  pointer-events: auto;
  animation: toast-in 0.35s var(--ease-spring) forwards;
  max-width: 380px;
  transition: all 0.25s ease;
}

.toast-item.removing {
  animation: toast-out 0.25s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

.toast-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.toast-desc {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 1px;
}

.toast-close {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}


/* ========== 服务结束页面 v2 ========== */
.end-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-mesh);
}

.end-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--space-10);
}

.end-card {
  width: min(680px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fade-up 0.6s var(--ease-out);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.end-icon {
  margin-bottom: var(--space-6);
}

.success-checkmark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  font-size: 36px;
  font-weight: 900;
  animation: check-pop 0.5s var(--ease-spring) 0.2s both;
}

@keyframes check-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.end-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-5);
  background: var(--info-bg);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-5);
}

.end-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

.end-summary {
  max-width: 480px;
  margin: 0 auto var(--space-8);
  text-align: left;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
}

.summary-item dt {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.summary-item dd {
  margin: 0;
  font-weight: var(--font-weight-bold);
  color: var(--primary-700);
  font-size: var(--font-size-sm);
}

.end-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}


/* ========== 重定向页 ========== */
.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg-mesh);
}

.redirect-card {
  text-align: center;
  padding: var(--space-10);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  animation: fade-up 0.5s var(--ease-out);
}

.redirect-card h1 {
  font-size: var(--font-size-xl);
  color: var(--primary-800);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-bold);
}

.redirect-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-size: var(--font-size-sm);
}


/* ============================================
   首页样式 v3.0
   现代政务美学 · 大胆排版 · 温暖专业
   ============================================ */
.home-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-mesh);
  position: relative;
  overflow-x: hidden;
}

/* 多层背景装饰系统 */
.home-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-blob 20s ease-in-out infinite;
}

.home-page::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 480px;
  height: 480px;
  background:
    radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.07) 0%, transparent 55%),
    radial-gradient(circle at 60% 60%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-blob 25s ease-in-out infinite reverse;
}

/* 几何装饰网格 */
.home-page .geo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.gov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-10);
  position: relative;
  z-index: var(--z-sticky);
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.gov-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: transform var(--transition-normal);
}

.gov-brand:hover {
  transform: scale(1.02);
}

.gov-emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-400) 0%, var(--accent-600) 50%, #D97706 100%);
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 16px rgba(245, 158, 11, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: emblem-shine 3s ease-in-out infinite;
}

@keyframes emblem-shine {
  0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.1); }
}

.gov-emblem::before {
  content: '★';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gov-emblem::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
  border-radius: calc(var(--radius-md) - 3px);
}

.gov-title-group {
  display: flex;
  flex-direction: column;
}
.gov-title-group strong {
  font-size: var(--font-size-lg);
  color: var(--primary-800);
  letter-spacing: 0.03em;
  font-weight: var(--font-weight-extrabold);
}
.gov-title-group span {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
}

.gov-nav {
  display: flex;
  gap: var(--space-3);
}

.nav-link {
  padding: var(--space-2) var(--space-5);
  color: var(--primary-700);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}
.nav-link:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-800);
  box-shadow: var(--shadow-xs);
}

.staff-assist-entry {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
}

.staff-assist-entry a {
  color: var(--primary-700);
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-decoration-color: var(--primary-200);
  text-underline-offset: 4px;
}

.staff-assist-entry a:hover,
.staff-assist-entry a:focus-visible {
  color: var(--primary-900);
  text-decoration-color: currentColor;
}

.home-main {
  flex: 1;
  padding: var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Hero 区域 v3.0 - 大胆排版 + 视觉层次 */
.hero-section {
  color: var(--text-primary);
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, var(--accent-50) 0%, rgba(254, 243, 199, 0.8) 100%);
  border: 1.5px solid var(--accent-200);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--accent-700);
  margin-bottom: var(--space-8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow:
    0 2px 8px rgba(245, 158, 11, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
  50% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
  position: relative;
}

.hero-title::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-500), var(--accent-400));
  border-radius: 2px;
}

.hero-sub {
  font-size: 0.55em;
  color: var(--primary-600);
  font-weight: 700;
  display: block;
  margin-top: var(--space-3);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  max-width: 660px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  position: relative;
  padding-left: var(--space-6);
  border-left: 2px solid var(--primary-200);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.metric-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.metric-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(59, 130, 246, 0.08);
  color: var(--primary-800);
}

.metric-item:hover::before {
  opacity: 1;
}

.metric-icon {
  font-size: var(--font-size-md);
  opacity: 0.7;
}

/* 身份选择区 v3.0 - 沉浸式卡片设计 */
.identity-section {
  color: var(--text-primary);
}

.section-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-8);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-500), var(--accent-400));
  border-radius: 2px;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.identity-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-6);
  padding: var(--space-10) var(--space-8);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* 顶部渐变装饰条 */
.identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-400));
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 悬停时的背景渐变 */
.identity-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.identity-card:hover {
  transform: translateY(-8px);
  box-shadow:
    var(--shadow-xl),
    0 20px 40px -10px rgba(37, 99, 235, 0.12),
    0 0 0 1px var(--primary-100) inset;
  border-color: var(--primary-200);
}

.identity-card:hover::before {
  opacity: 1;
}

.identity-card:hover::after {
  opacity: 1;
}

.identity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.identity-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  font-size: 28px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.identity-card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.icon-customer {
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
  color: var(--primary-600);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.icon-agent {
  background: linear-gradient(135deg, var(--accent-100) 0%, var(--accent-50) 100%);
  color: var(--accent-600);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.card-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.03em;
}

.badge-customer {
  background: var(--info-bg);
  color: var(--primary-600);
}

.badge-agent {
  background: var(--accent-100);
  color: var(--accent-600);
}

.card-body {
  position: relative;
  z-index: 1;
}

.card-body h3 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--primary-900);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.identity-card:hover .card-body h3 {
  color: var(--primary-700);
}

.card-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-sm);
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1.5px solid var(--border-light);
  font-weight: 700;
  color: var(--primary-600);
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.identity-card:hover .card-action {
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.action-arrow {
  font-size: var(--font-size-xl);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 300;
}

.identity-card:hover .action-arrow {
  transform: translateX(6px);
}

/* 办理流程 v3.0 - 现代步骤指示器 */
.process-section {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.process-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--primary-500) 0%,
    var(--accent-400) 50%,
    var(--success) 100%
  );
}

.process-section .section-heading {
  margin-bottom: var(--space-6);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
  counter-reset: step-counter;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.step-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.step-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-300);
  box-shadow:
    var(--shadow-md),
    0 0 20px rgba(59, 130, 246, 0.08);
}

.step-item:hover::before {
  opacity: 1;
}

.step-num {
  font-size: var(--font-size-md);
  font-weight: 900;
  color: var(--accent-500);
  line-height: 1;
  transition: color 0.3s ease;
}

.step-item:hover .step-num {
  color: var(--accent-600);
}

.step-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.step-item:hover .step-text {
  color: var(--text-primary);
}

/* 页脚 v3.0 - 增强视觉 */
.gov-footer {
  text-align: center;
  padding: var(--space-8) var(--space-10);
  color: var(--text-tertiary);
  font-size: var(--font-size-xs);
  border-top: 1.5px solid var(--border-light);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.8));
}

.gov-footer p {
  position: relative;
  display: inline-block;
}

.gov-footer p::before,
.gov-footer p::after {
  content: '—';
  margin: 0 var(--space-3);
  opacity: 0.4;
}


/* ============================================
   全局微交互系统 v3.0
   动画 · 过渡 · 反馈
   ============================================ */

/* 页面加载动画 */
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-page,
.region-page,
.customer-hall,
.agent-desk {
  animation: page-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 卡片入场动画 - 交错显示 */
@keyframes card-stagger-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.identity-card:nth-child(1) { animation: card-stagger-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
.identity-card:nth-child(2) { animation: card-stagger-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

.panel { animation: card-stagger-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* 按钮点击波纹效果增强 */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover:not(:disabled)::after { opacity: 1; }

.btn:active:not(:disabled)::after {
  opacity: 0;
  transition: opacity 0s;
}

/* 焦点状态 - 无障碍增强 */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* 链接悬停效果 */
a:not(.btn):not(.identity-card):hover {
  color: var(--primary-600);
  transition: color 0.25s ease;
}

/* 表单元素焦点增强 */
.form-select:focus,
.form-input:focus,
.note-textarea:focus {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background-color 0.25s ease;
}

/* 进度条动画增强 */
progress {
  position: relative;
  overflow: hidden;
}

progress::-webkit-progress-value {
  background: linear-gradient(
    90deg,
    var(--primary-400),
    var(--primary-600)
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2s ease-in-out infinite;
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes progress-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* 状态指示器脉冲增强 */
.status-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 currentColor;
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px currentColor;
  }
}

/* 模态框背景增强 */
.modal-overlay.active {
  backdrop-filter: blur(8px);
  animation: modal-backdrop 0.3s ease;
}

@keyframes modal-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 滚动条美化 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}


/* ============================================
   地区选择页面 v2
   ============================================ */
.region-page {
  min-height: 100vh;
  min-height: 100dvh);
  background: var(--bg-mesh);
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--primary-800);
  padding: var(--space-5) var(--space-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent-400);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.back-btn {
  padding: var(--space-2) var(--space-4);
  color: var(--text-inverse);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.header-title-group {
  display: flex;
  flex-direction: column;
}

.header-label {
  font-size: var(--font-size-xs);
  color: var(--accent-300);
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-header h1,
.header-title-group h1 {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--text-inverse);
  font-weight: var(--font-weight-extrabold);
}

.region-main {
  flex: 1;
  width: min(1160px, calc(100% - var(--space-10) * 2));
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.region-intro {
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--accent-400);
  box-shadow: var(--shadow-sm);
}

.intro-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--info-bg);
  color: var(--primary-600);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-2);
}

.region-intro h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--primary-800);
  margin-bottom: var(--space-2);
}

.region-intro p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-sm);
}

.province-section {
  display: grid;
  gap: var(--space-5);
}

.region-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-normal);
}

.region-group:hover {
  box-shadow: var(--shadow-sm);
}

.group-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-extrabold);
  color: var(--primary-800);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--accent-100);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
}

.region-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-3);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-700);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.region-item:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
  color: var(--primary-800);
}


/* ============================================
   响应式设计 - 移动端沉浸式体验 (≤ 768px) v3.0
   完全独立的移动端布局 · 触摸优化
   ============================================ */
@media (max-width: 768px) {

  :root {
    --space-10: 20px;
    --space-12: 32px;
  }

  body {
    font-size: 14px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  /* 首页移动端 - 沉浸式优化 */
  .gov-header {
    padding: var(--space-4);
    flex-direction: column;
    gap: var(--space-3);
    backdrop-filter: blur(16px);
    background: rgba(248, 250, 252, 0.92);
  }

  .gov-nav { display: none; }

  .staff-assist-entry {
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-main {
    padding: var(--space-8) var(--space-4);
    gap: var(--space-10);
    position: relative;
    z-index: 1;
  }

  /* Hero区域移动端适配 */
  .hero-title {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.02em;
  }

  .hero-title::before {
    left: -12px;
    width: 3px;
  }

  .hero-desc {
    font-size: var(--font-size-base);
    padding-left: var(--space-4);
  }

  .hero-metrics {
    gap: var(--space-3);
  }

  .metric-item {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-xs);
    border-radius: var(--radius-lg);
  }

  /* 身份卡片移动端 - 触摸友好 */
  .identity-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .identity-card {
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-xl);
  }

  .identity-card:hover,
  .identity-card:active {
    transform: scale(0.98);
  }

  .card-icon {
    width: 56px;
    height: 56px;
  }

  /* 流程步骤移动端 */
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }

  .step-item {
    padding: var(--space-3) var(--space-1);
    border-radius: var(--radius-md);
  }

  .step-text {
    font-size: 9px;
  }

  /* 地区页移动端 - 增强触摸区域 */
  .page-header {
    padding: var(--space-4);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .header-left {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }

  .region-main {
    width: calc(100% - var(--space-4) * 2);
    padding: var(--space-8) 0;
  }

  .region-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .region-item {
    padding: var(--space-4) var(--space-3);
    font-size: var(--font-size-sm);
    min-height: 56px;
    justify-content: flex-start;
    padding-left: var(--space-5);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
  }

  .region-item:active {
    transform: scale(0.96);
    background: var(--primary-50);
  }

  /* 隐藏PC端布局，显示手机端布局 */
  .pc-layout { display: none !important; }
  .mobile-layout { display: block !important; }

  /* 手机端客户办事大厅布局 */
  .hall-header {
    padding: var(--space-3) var(--space-4);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
  }

  .header-status {
    display: flex;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
  }

  .customer-workspace {
    padding-bottom: 72px;
  }

  .mobile-layout {
    padding: var(--space-4);
  }

  /* 移动端状态卡 */
  .mobile-status-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
  }

  .status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  .status-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
  }

  .status-item strong,
  .status-item span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--primary-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  /* 移动端事项选择 */
  .mobile-service-card { margin-bottom: var(--space-4); }

  /* 移动端标签页 */
  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-1);
    background: var(--bg-subtle);
    padding: var(--space-1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    position: sticky;
    top: 56px;
    z-index: var(--z-sticky);
  }

  .tab-btn {
    padding: var(--space-3);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .tab-btn.active {
    background: var(--bg-surface);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
    font-weight: var(--font-weight-extrabold);
  }

  .tab-content { display: none; }
  .tab-content.active { display: block; }

  /* 移动端视频区域 */
  .mobile-media-section {
    background: linear-gradient(145deg, #0F172A, #1E293B);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
  }

  .mobile-video-main {
    flex: 1;
    min-height: 280px;
    position: relative;
    background: #0F172A;
  }

  .mobile-video-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #64748B;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
  }

  .mobile-video-pip {
    position: absolute;
    right: var(--space-3);
    bottom: var(--space-3);
    width: 96px;
    height: 72px;
    background: #0F172A;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 10;
  }

  .mobile-video-pip video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .pip-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #64748B;
    font-size: 9px;
    text-align: center;
  }

  /* 移动端屏幕共享 */
  .mobile-screen-main {
    min-height: 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-screen-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-screen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: #64748B;
  }

  .mobile-screen-placeholder span:first-child {
    font-size: 32px;
  }

  /* 移动端文件传输 */
  .mobile-file-section {
    padding: var(--space-4);
  }

  .mobile-file-upload { margin-bottom: var(--space-4); }

  /* 移动端来电弹窗 */
  .mobile-incoming-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(var(--space-4), env(safe-area-inset-top))
      max(var(--space-4), env(safe-area-inset-right))
      max(var(--space-4), env(safe-area-inset-bottom))
      max(var(--space-4), env(safe-area-inset-left));
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(6px);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .mobile-incoming-modal .modal-content {
    width: min(330px, 100%);
    max-height: calc(100vh - var(--space-10));
    max-height: calc(100dvh - var(--space-10) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modal-in var(--duration-slow) var(--ease-spring);
  }

  .modal-header {
    margin-bottom: var(--space-4);
  }

  .modal-icon {
    font-size: 42px;
    margin-bottom: var(--space-2);
  }

  .modal-header h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-800);
  }

  .modal-body {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  /* 底部固定操作栏 */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    padding: var(--space-1) var(--space-1) env(safe-area-inset-bottom);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  }

  .bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-2) 2px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 54px;
    -webkit-tap-highlight-color: transparent;
  }

  .bar-btn:active { transform: scale(0.94); }

  .bar-primary {
    color: var(--primary-600);
    background: var(--primary-50);
    border-radius: var(--radius-md);
  }

  .bar-danger {
    color: var(--danger);
  }

  .bar-icon {
    font-size: 19px;
    opacity: 0.85;
  }

  /* 服务结束页移动端 */
  .end-main { padding: var(--space-6); }
  .end-card { padding: var(--space-6); }
  .end-title { font-size: var(--font-size-2xl); }
  .end-actions { flex-direction: column; }
}


/* ============================================
   响应式设计 - PC端 (≥ 769px)
   三栏专业布局
   ============================================ */
@media (min-width: 769px) {

  .pc-layout { display: grid !important; }
  .mobile-layout { display: none !important; }
  .mobile-bottom-bar { display: none !important; }
}

.region-selector-card {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-3);
  background: #fff;
  border: 1px solid var(--color-border, #d9e2ec);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 4px 18px rgba(15, 45, 80, 0.08));
}

.form-hint {
  min-height: 1.5em;
  margin: 0;
  color: #b45309;
}
 .customer-brand-mark .platform-brand-logo-image,
 .customer-service-navigation-logo .platform-brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
 }
