/* ========================================
   人工智能对企业发展用工影响及数据资源现状
   综合调研问卷 - 深度设计版
   ======================================== */

/* ===== CSS 变量 ===== */
:root {
  /* 主色调 - 政府/学术蓝 */
  --primary: #1a56a8;
  --primary-light: #2563eb;
  --primary-dark: #1e3a5f;
  --primary-bg: #eff6ff;
  --primary-border: #bfdbfe;

  /* 辅助色 */
  --accent: #c8a45c;
  --accent-light: #f0e6d3;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #ea580c;
  --warning-bg: #fff7ed;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  /* 中性色 */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* 圆角 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  /* 过渡 */
  --t-fast: 0.2s ease;
  --t-normal: 0.3s ease;
  --t-slow: 0.5s ease;
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 顶部进度条 ===== */
.progress-bar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(226, 232, 240, 0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  border-radius: 0 4px 4px 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* ===== 顶部导航栏 ===== */
.navbar {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.navbar-brand .logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-progress-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.navbar-progress-text strong {
  color: var(--primary);
  font-size: 15px;
}

/* ===== 主容器 ===== */
.main-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 84px 20px 120px;
}

/* ===== 封面区域 ===== */
.cover-section {
  text-align: center;
  padding: 40px 30px 30px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  border-radius: var(--r-xl);
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cover-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 164, 92, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cover-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cover-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}

.cover-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}

.cover-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  letter-spacing: 2px;
}

.cover-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  font-size: 13px;
  opacity: 0.9;
}

.cover-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cover-info-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* ===== 保密承诺卡片 ===== */
.privacy-card {
  background: var(--warning-bg);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--warning);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.privacy-card .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--warning);
  margin-top: 2px;
}

.privacy-card .content {
  font-size: 13px;
  color: #9a3412;
  line-height: 1.6;
}

.privacy-card .content strong {
  color: var(--warning);
}

/* ===== 填写说明卡片 ===== */
.instructions-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.instructions-card h3 {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions-card ul {
  list-style: none;
  padding: 0;
}

.instructions-card li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.instructions-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== 模块导航（侧边目录） ===== */
.module-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.module-nav::-webkit-scrollbar { display: none; }

.module-nav-item {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-nav-item:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.module-nav-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.module-nav-item.completed {
  background: var(--success-bg);
  border-color: #bbf7d0;
  color: var(--success);
}

.module-nav-item .check-icon {
  width: 14px;
  height: 14px;
}

/* ===== 模块卡片 ===== */
.module-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: box-shadow var(--t-normal);
}

.module-card:hover {
  box-shadow: var(--shadow-lg);
}

.module-header {
  padding: 20px 28px 16px;
  background: linear-gradient(135deg, var(--surface-alt) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.module-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.module-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-header .module-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.module-intro {
  padding: 12px 28px;
  background: var(--warning-bg);
  border-bottom: 1px solid #fed7aa;
  font-size: 13px;
  color: #9a3412;
  line-height: 1.6;
}

.module-body {
  padding: 24px 28px;
}

/* ===== 小节标题 ===== */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 12px 16px;
  background: var(--primary-bg);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  margin-top: 8px;
  border-left: 3px solid var(--primary);
}

/* ===== 题目卡片 ===== */
.question-block {
  margin-bottom: 28px;
  animation: fadeInUp 0.4s ease;
}

.question-block:last-child {
  margin-bottom: 0;
}

.question-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.question-title .q-number {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.question-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 22px;
}

.question-required {
  color: var(--danger);
  margin-left: 2px;
}

/* ===== 选项样式 ===== */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-list.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  background: var(--surface);
  font-size: 14px;
  position: relative;
}

.option-item:hover {
  border-color: var(--primary-border);
  background: var(--primary-bg);
}

.option-item.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 500;
}

.option-item.selected::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.option-item .option-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all var(--t-fast);
  position: relative;
}

.option-item.selected .option-radio {
  border-color: var(--primary);
}

.option-item.selected .option-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.option-item .option-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: var(--r-sm);
  margin-right: 10px;
  flex-shrink: 0;
  transition: all var(--t-fast);
  position: relative;
}

.option-item.selected .option-checkbox {
  border-color: var(--primary);
  background: var(--primary);
}

.option-item.selected .option-checkbox::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* inline 选项 */
.option-list.inline .option-item {
  padding: 8px 14px;
}

/* ===== 其他（自定义输入） ===== */
.option-other {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.option-other .other-header {
  display: flex;
  align-items: center;
}

.option-other .other-input-inline {
  margin-left: 28px;
  width: calc(100% - 28px);
}

/* 网格布局 */
.option-list.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

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

/* 网格内选项紧凑化 */
.option-list.grid-2 .option-item,
.option-list.grid-3 .option-item {
  padding: 8px 10px;
  font-size: 13px;
}

.option-list.grid-2 .option-item.selected::after,
.option-list.grid-3 .option-item.selected::after {
  width: 14px;
  height: 14px;
  right: 6px;
}

/* 网格内"其他"选项跨列 */
.option-list.grid-2 .option-other,
.option-list.grid-3 .option-other {
  grid-column: 1 / -1;
}

/* 否定选项特殊样式 */
.option-item.option-negative {
  border-color: var(--warning);
  background: var(--warning-bg);
}

.option-item.option-negative.selected {
  border-color: var(--warning);
  background: #ffedd5;
  color: #9a3412;
}

.option-item.option-negative.selected::after {
  background: var(--warning);
}

/* 下拉选择模式 */
.radio-dropdown-wrap {
  position: relative;
}

.radio-dropdown-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
  transition: border-color var(--t-fast);
}

.radio-dropdown-wrap.filled::after {
  border-top-color: var(--primary);
}

.radio-dropdown {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all var(--t-fast);
  font-family: inherit;
}

.radio-dropdown:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.radio-dropdown-wrap.filled .radio-dropdown {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 500;
}

/* 下拉模式的"其他"行内输入 */
.other-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.other-inline .other-label {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.other-inline .other-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
}

.other-inline.filled .other-input {
  border-color: var(--primary);
  background: var(--primary-bg);
}

/* ===== 输入框 ===== */
input[type="text"],
input[type="number"],
input[type="year"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: all var(--t-fast);
  font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="year"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: all var(--t-fast);
  font-family: inherit;
}

input.input-error {
  border-color: #ef4444 !important;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ===== 分组输入 ===== */
.group-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.group-input-grid.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.group-input-grid.inline .group-input-item {
  flex: 1;
  min-width: 140px;
}

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

.group-input-item label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-unit input {
  padding-right: 56px;
}

.input-with-unit .unit {
  position: absolute;
  right: 14px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
}

/* ===== 分组复选框 ===== */
.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-group:last-child {
  margin-bottom: 0;
}

.checkbox-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
  padding: 6px 12px;
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
}

/* ===== 岗位表格 ===== */
.position-table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-top: 8px;
}

.position-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 900px;
}

.position-table thead {
  background: var(--primary-dark);
}

.position-table thead th {
  color: white;
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.position-table thead th:last-child {
  border-right: none;
}

.position-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}

.position-table tbody tr:hover {
  background: var(--primary-bg);
}

.position-table tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

.position-table tbody tr:nth-child(even):hover {
  background: var(--primary-bg);
}

.position-table td {
  padding: 8px;
  text-align: center;
}

.position-table .row-number {
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
}

.position-table input[type="text"],
.position-table input[type="number"],
.position-table select {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.position-table input:focus,
.position-table select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.position-table .task-sum {
  font-weight: 600;
  color: var(--text-secondary);
}

.position-table .task-sum.valid {
  color: var(--success);
}

.position-table .task-sum.invalid {
  color: var(--danger);
}

/* ===== 岗位选择/添加/删除 ===== */
.position-table .required-mark {
  color: var(--danger);
  margin-left: 2px;
}

.position-table .pos-name-select {
  margin-bottom: 4px;
}

.position-table .pos-custom-input {
  margin-top: 4px;
}

.position-table .op-cell {
  text-align: center;
  white-space: nowrap;
}

.btn-del-row {
  padding: 4px 10px;
  font-size: 12px;
  color: var(--danger);
  background: var(--danger-bg, #fef2f2);
  border: 1px solid #fecaca;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-del-row:hover {
  background: #fee2e2;
  border-color: var(--danger);
}

.add-row-wrapper {
  margin-top: 12px;
  text-align: center;
}

.btn-add-row {
  padding: 8px 24px;
  font-size: 14px;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px dashed var(--primary);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-row:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 任务占比验证提示 ===== */
.task-validation {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-validation.valid {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.task-validation.invalid {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* ===== 矩阵表（重点群体影响） ===== */
.matrix-table-wrapper {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 500px;
}

.matrix-table thead {
  background: var(--primary-dark);
}

.matrix-table thead th {
  color: white;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.matrix-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.matrix-table tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

.matrix-table td {
  padding: 10px 12px;
  text-align: center;
}

.matrix-table .row-label {
  font-weight: 600;
  text-align: left;
  color: var(--primary-dark);
  background: var(--primary-bg);
  width: 140px;
}

.matrix-table .option-cell {
  cursor: pointer;
  transition: background var(--t-fast);
}

.matrix-table .option-cell:hover {
  background: var(--primary-bg);
}

.matrix-table .option-cell.selected {
  background: var(--primary);
  color: white;
  font-weight: 500;
}

.matrix-table .option-cell.disabled {
  color: var(--text-muted);
  background: var(--surface-alt);
  cursor: not-allowed;
}

/* ===== 评分组 ===== */
.rating-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-item label {
  font-size: 14px;
  color: var(--text);
  width: 100px;
  flex-shrink: 0;
  font-weight: 500;
}

.rating-stars {
  display: flex;
  gap: 6px;
}

.rating-star {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--t-fast);
  background: var(--surface);
}

.rating-star:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.rating-star.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== 跳转提示 ===== */
.skip-notice {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--warning-bg);
  border: 1px solid #fed7aa;
  border-radius: var(--r-md);
  font-size: 13px;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skip-notice svg {
  width: 16px;
  height: 16;
  flex-shrink: 0;
}

/* ===== 岗位勾选表 ===== */
.position-check-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.position-check-table thead {
  background: var(--surface-alt);
}

.position-check-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--border-strong);
  font-size: 13px;
}

.position-check-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}

.position-check-table tbody tr:hover {
  background: var(--primary-bg);
}

.position-check-table td {
  padding: 8px 12px;
}

.position-check-table .checkbox-cell {
  width: 50px;
  text-align: center;
}

.position-check-table .name-cell {
  font-weight: 500;
  color: var(--text);
}

.position-check-table .count-cell {
  width: 200px;
}

.position-check-table .count-cell input {
  max-width: 160px;
}

.position-check-table tr:not(.checked) .count-cell input {
  opacity: 0.4;
  pointer-events: none;
}

.position-check-table tr.checked {
  background: var(--primary-bg);
}

/* ===== 底部操作栏 ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  z-index: 999;
  display: flex;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}

.bottom-bar-inner {
  max-width: 920px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.auto-save-info {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auto-save-info .save-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

/* ===== 提交成功页面 ===== */
.success-page {
  text-align: center;
  padding: 60px 30px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--success);
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success {
  background: var(--success);
  color: white;
}

.toast.error {
  background: var(--danger);
  color: white;
}

.toast.warning {
  background: var(--warning);
  color: white;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes slideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== 条件隐藏 ===== */
.conditional-hidden {
  display: none;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .main-container {
    padding: 76px 12px 100px;
  }

  .cover-section {
    padding: 30px 20px 24px;
  }

  .cover-title {
    font-size: 20px;
  }

  .cover-subtitle {
    font-size: 18px;
  }

  .cover-info {
    gap: 16px;
    font-size: 12px;
  }

  .module-header {
    padding: 16px 20px 12px;
  }

  .module-header h2 {
    font-size: 16px;
  }

  .module-body {
    padding: 16px 20px;
  }

  .section-title {
    font-size: 14px;
    padding: 10px 12px;
  }

  .question-title {
    font-size: 14px;
  }

  .option-item {
    padding: 8px 12px;
    font-size: 13px;
  }

  .group-input-grid {
    grid-template-columns: 1fr;
  }

  .group-input-grid.inline {
    flex-direction: column;
  }

  /* 移动端网格降为2列 */
  .option-list.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar {
    padding: 0 12px;
  }

  .navbar-brand {
    font-size: 13px;
  }

  .navbar-brand .logo {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .bottom-bar {
    padding: 10px 12px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .position-table {
    font-size: 12px;
  }

  .position-table thead th {
    padding: 8px 4px;
    font-size: 11px;
  }

  .position-table input,
  .position-table select {
    padding: 4px 6px;
    font-size: 12px;
  }

  .rating-item label {
    width: 80px;
    font-size: 13px;
  }

  .rating-star {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cover-title {
    font-size: 18px;
  }

  .cover-subtitle {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .option-list.inline {
    flex-direction: column;
  }
}
