/* ========== 全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #3b82f6; --primary-hover: #2563eb;
  --success: #10b981; --danger: #ef4444; --info: #06b6d4;
  --warning: #f59e0b; --secondary: #6b7280;
  --text: #1f2937; --text-light: #6b7280;
  --border: #e5e7eb; --bg: #f9fafb; --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* ========== 导航栏 ========== */
.navbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; }
.navbar-brand { font-size: 1.25rem; font-weight: 600; color: var(--primary); }
.navbar-menu { display: flex; gap: 1rem; }
.nav-link { color: var(--text); text-decoration: none; padding: 0.5rem 1rem; border-radius: 0.375rem; transition: all 0.2s; font-size: 0.875rem; }
.nav-link:hover { background: var(--bg); }
.nav-link.active { background: var(--primary); color: var(--white); }

/* ========== 容器 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* ========== 页面头部 ========== */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; gap: 1rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; }
.subtitle { color: var(--text-light); font-size: 0.875rem; margin-top: 0.25rem; }

/* ========== 按钮 ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border: none; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s; text-align: center; white-space: nowrap; }
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-info { background: var(--info); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-accent { background: #8b5cf6; color: var(--white); }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ========== 卡片 ========== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s; }
.card:hover { box-shadow: var(--shadow); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.card-header h3 { font-size: 1.125rem; font-weight: 600; }
.card-description { color: var(--text-light); font-size: 0.875rem; margin-bottom: 1rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.75rem; color: var(--text-light); margin-bottom: 1rem; }
.card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.latest-round-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-light); margin-bottom: 1rem; padding: 0.5rem 0.75rem; background: var(--bg); border-radius: 0.375rem; }

/* ========== 徽章 ========== */
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 500; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-secondary { background: #e5e7eb; color: #4b5563; }
.badge-warning { background: #fef3c7; color: #92400e; }
.round-badge { display: inline-block; padding: 0.15rem 0.5rem; background: #ede9fe; color: #5b21b6; border-radius: 0.25rem; font-size: 0.75rem; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.875rem; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border); border-radius: 0.375rem; font-size: 0.875rem; transition: border-color 0.2s; background: var(--white); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group textarea { resize: vertical; font-family: inherit; }
.required-mark { color: var(--danger); }
.hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

/* ========== 登录页 ========== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-container { width: 100%; max-width: 400px; padding: 2rem; }
.login-box { background: var(--white); padding: 2.5rem; border-radius: 0.75rem; box-shadow: var(--shadow-lg); }
.login-box h1 { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; }
.login-box h2 { font-size: 1rem; color: var(--text-light); text-align: center; margin-bottom: 2rem; font-weight: 400; }
.alert { padding: 0.75rem 1rem; border-radius: 0.375rem; margin-bottom: 1.5rem; font-size: 0.875rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ========== 编辑器 ========== */
.editor-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.editor-section { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; }
.editor-section h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.editor-actions { display: flex; gap: 1rem; }
.fields-list { display: flex; flex-direction: column; gap: 0.5rem; }
.field-item { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0.5rem; transition: all 0.2s; }
.field-item.dragging { opacity: 0.5; background: #e0e7ff; border-color: var(--primary); }
.field-item.drag-over-top { border-top: 3px solid var(--primary); margin-top: -2px; }
.field-item.drag-over-bottom { border-bottom: 3px solid var(--primary); margin-bottom: -2px; }
.drag-handle { cursor: grab; color: var(--text-light); font-size: 1.2rem; padding: 0 0.5rem; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.field-item-header { display: flex; align-items: center; gap: 0.75rem; flex: 1; flex-wrap: wrap; }
.field-index { display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; background: var(--primary); color: var(--white); border-radius: 50%; font-weight: 600; font-size: 0.8rem; flex-shrink: 0; }
.field-label { font-weight: 500; font-size: 0.9rem; }
.field-type-badge { padding: 0.15rem 0.5rem; background: #dbeafe; color: #1e40af; border-radius: 0.25rem; font-size: 0.7rem; }
.required-badge { padding: 0.15rem 0.5rem; background: #fee2e2; color: #991b1b; border-radius: 0.25rem; font-size: 0.7rem; }
.condition-badge { padding: 0.15rem 0.5rem; background: #fef3c7; color: #92400e; border-radius: 0.25rem; font-size: 0.7rem; }
.field-item-actions { display: flex; gap: 0.375rem; }
.village-count { font-size: 0.875rem; color: var(--text-light); margin-top: 0.5rem; }

/* ========== 模态框 ========== */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal-content { background: var(--white); border-radius: 0.75rem; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.125rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-light); line-height: 1; }
.modal-body { padding: 1.5rem; }
.modal-body h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }
.modal-body hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ========== 轮次管理 ========== */
.inline-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .form-group { margin-bottom: 0; }
.rounds-list { display: flex; flex-direction: column; gap: 1rem; }
.round-card { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; }
.round-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; flex-wrap: wrap; gap: 1rem; }
.round-info { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.round-info h3 { font-size: 1rem; font-weight: 600; }
.round-deadline { font-size: 0.75rem; color: var(--text-light); }
.round-progress-info { display: flex; align-items: center; gap: 1rem; }
.progress-text { font-size: 0.875rem; color: var(--text-light); white-space: nowrap; }
.progress-bar { width: 150px; height: 0.5rem; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--success); border-radius: 9999px; transition: width 0.3s; }
.round-details { display: none; padding: 0 1.5rem 1rem; }
.round-actions { display: flex; gap: 0.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg); flex-wrap: wrap; }

/* 村状态网格 */
.village-status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.village-status-item { display: flex; flex-direction: column; padding: 0.75rem; border-radius: 0.375rem; border: 1px solid var(--border); font-size: 0.8rem; }
.village-done { background: #ecfdf5; border-color: #a7f3d0; }
.village-pending { background: #fef2f2; border-color: #fecaca; }
.village-status-item .village-name { font-weight: 600; font-size: 0.875rem; }
.village-status { margin-top: 0.25rem; }
.village-time { font-size: 0.7rem; color: var(--text-light); margin-top: 0.125rem; }

/* ========== 筛选栏 ========== */
.filter-bar { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.filter-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.75rem; font-weight: 500; color: var(--text-light); }
.filter-group input,
.filter-group select { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.375rem; font-size: 0.8rem; min-width: 140px; }

/* ========== 统计栏 ========== */
.stats-bar { display: flex; gap: 2rem; padding: 1rem 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.stat-item { font-size: 0.875rem; color: var(--text-light); }
.stat-item strong { color: var(--text); font-size: 1.125rem; margin-left: 0.25rem; }

/* 总览卡片 */
.stats-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; text-align: center; }
.stat-number { font-size: 2.25rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-light); font-size: 0.8rem; margin-top: 0.25rem; }

.stats-section { margin-bottom: 2rem; }
.stats-section h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.field-stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.field-stat-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.75rem; }

.stat-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.stat-bar-item { display: flex; align-items: center; gap: 0.75rem; }
.stat-bar-label { width: 120px; font-size: 0.8rem; color: var(--text); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-bar { flex: 1; height: 1.25rem; background: var(--bg); border-radius: 0.25rem; overflow: hidden; min-width: 80px; }
.stat-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #818cf8); border-radius: 0.25rem; transition: width 0.3s; }
.stat-bar-count { width: 40px; text-align: right; font-size: 0.8rem; font-weight: 600; flex-shrink: 0; }

.number-summary { }
.number-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.number-stats span { font-size: 0.8rem; color: var(--text-light); }
.number-stats strong { color: var(--text); font-size: 1rem; margin-left: 0.2rem; }
.text-values { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.text-value-tag { padding: 0.2rem 0.6rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0.25rem; font-size: 0.8rem; }
.no-data { color: var(--text-light); font-size: 0.875rem; font-style: italic; }

/* ========== 数据表格 ========== */
.table-wrapper { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.625rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.data-table th { background: var(--bg); font-weight: 600; color: var(--text-light); font-size: 0.75rem; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #f8fafc; }
.data-table .village-name { font-weight: 500; white-space: nowrap; }

/* ========== 空状态 ========== */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); }

/* ========== 用户端 ========== */
.mobile-body { background: var(--white); }
.user-container { max-width: 600px; margin: 0 auto; padding: 2rem 1rem; }
.user-header { text-align: center; margin-bottom: 2rem; }
.user-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.user-header p { color: var(--text-light); font-size: 0.875rem; }
.user-forms-list { display: flex; flex-direction: column; gap: 1rem; }
.user-form-card { display: block; padding: 1.25rem 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; text-decoration: none; color: var(--text); transition: all 0.2s; }
.user-form-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.user-form-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.375rem; }
.user-form-card p { color: var(--text-light); font-size: 0.875rem; margin-bottom: 0.5rem; }
.form-field-count { display: inline-block; padding: 0.2rem 0.6rem; background: #dbeafe; color: #1e40af; border-radius: 9999px; font-size: 0.7rem; font-weight: 500; }

/* ========== 移动端表单 ========== */
.mobile-container { max-width: 600px; margin: 0 auto; padding: 1rem; }
.mobile-header { padding: 1rem 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary); }
.mobile-header h1 { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.375rem; }
.form-desc { color: var(--text-light); font-size: 0.875rem; }
.mobile-form { display: flex; flex-direction: column; gap: 0; }
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.radio-label, .checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 400; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.375rem; transition: all 0.2s; }
.radio-label:hover, .checkbox-label:hover { border-color: var(--primary); background: #eff6ff; }
.radio-label input, .checkbox-label input { width: auto; cursor: pointer; accent-color: var(--primary); }
.form-actions { margin-top: 1.5rem; }
.dynamic-field { }
.field-hidden { display: none !important; }

/* 村名校验提示 */
.village-hint { font-size: 0.8rem; margin-top: 0.375rem; min-height: 1.2em; }
.village-ok { color: var(--success); }
.village-error { color: var(--danger); font-weight: 500; }

/* ========== 成功提示 ========== */
.success-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.success-content { text-align: center; padding: 2rem; }
.success-icon { width: 4rem; height: 4rem; background: var(--success); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; }
.success-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-content p { color: var(--text-light); margin-bottom: 1.5rem; }

/* ========== 错误页 ========== */
.error-page { text-align: center; padding: 3rem 1rem; }
.error-icon { font-size: 3rem; margin-bottom: 1rem; }
.error-page h2 { font-size: 1.125rem; margin-bottom: 1.5rem; line-height: 1.6; }

/* ========== 加载 ========== */
.loading { text-align: center; padding: 1rem; color: var(--text-light); font-size: 0.875rem; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .navbar { padding: 0.75rem 1rem; }
  .navbar-brand { font-size: 1rem; }
  .navbar-menu { gap: 0.5rem; }
  .nav-link { padding: 0.375rem 0.625rem; font-size: 0.8rem; }
  .container { padding: 1rem; }
  .page-header { flex-direction: column; gap: 1rem; }
  .page-header h1 { font-size: 1.375rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { width: 100%; }
  .stats-bar { flex-direction: column; gap: 0.5rem; }
  .stats-overview { grid-template-columns: 1fr 1fr; }
  .inline-form { flex-direction: column; }
  .filter-form { flex-direction: column; }
  .filter-group { width: 100%; }
  .filter-group input, .filter-group select { width: 100%; }
  .number-stats { flex-direction: column; gap: 0.5rem; }
  .round-header { flex-direction: column; align-items: flex-start; }
  .progress-bar { width: 100%; }
  .round-progress-info { width: 100%; }
  .village-status-grid { grid-template-columns: 1fr 1fr; }
  .editor-section { padding: 1rem; }
  .stat-bar-label { width: 80px; }
}

.nav-user {
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.action-cell {
  white-space: nowrap;
  text-align: right;
}

.action-cell .btn {
  margin-left: 0.5rem;
}

.export-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.attachments-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.attachment-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.attachment-link:hover {
  text-decoration: underline;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  background: var(--bg-light);
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.upload-quota {
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--bg-light);
  border-radius: 0.375rem;
}

.file-list {
  margin-top: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--bg-light);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0.5rem;
}

.btn-remove:hover {
  color: var(--danger-dark, #c0392b);
}

.hint {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.875rem;
}

/* 村（社区）勾选列表 */
.village-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.village-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-color, #f8f9fa);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.village-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.village-checkbox:hover {
  background: var(--primary-light, #e3f2fd);
  border-color: var(--primary, #2196f3);
}

.village-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary, #2196f3);
}

.village-checkbox input[type="checkbox"]:checked + span {
  color: var(--primary, #2196f3);
  font-weight: 500;
}

.village-count {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.village-count strong {
  color: var(--primary, #2196f3);
  font-size: 1.1rem;
}

/* 字段选项勾选列表 */
.options-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg-color, #f8f9fa);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
  max-height: 300px;
  overflow-y: auto;
}

.option-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.option-checkbox:hover {
  background: var(--primary-light, #e3f2fd);
  border-color: var(--primary, #2196f3);
}

.option-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary, #2196f3);
}

.option-checkbox input[type="checkbox"]:checked + span {
  color: var(--primary, #2196f3);
  font-weight: 500;
}

.options-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
}

.options-count strong {
  color: var(--primary, #2196f3);
  font-size: 1rem;
}

/* ========== 填报页轮次统计时间显示（H-05：内联样式迁入外部 CSS） ========== */
.round-period-display {
  background: #eff6ff;
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.25rem;
}
.period-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.5rem;
}
.period-value {
  color: var(--primary);
  font-weight: 500;
}
