/* ============================================================
   益善网络 V2.0 - 管理端样式
   ============================================================ */

/* ---- 通用布局 ---- */
.v2-page {
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.v2-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.v2-page-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
}

.v2-page-actions {
  display: flex;
  gap: 8px;
}

/* ---- 筛选栏 ---- */
.v2-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.v2-filter-bar .v2-select,
.v2-filter-bar .v2-input {
  flex: 0 1 180px;
  min-width: 120px;
}

.v2-filter-bar .v2-input {
  flex: 1 1 240px;
}

/* ---- 通用输入 ---- */
.v2-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #333;
  outline: none;
  cursor: pointer;
}

.v2-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* 状态筛选按钮组（点击即筛选） */
.v2-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.v2-filter-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-right: 2px;
}
.v2-chip {
  padding: 6px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-700);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.v2-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.v2-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.v2-input {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.v2-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.v2-textarea {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
}

.v2-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ---- 按钮 ---- */
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.v2-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.v2-btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.v2-btn-primary:hover {
  background: #1d4ed8;
}

.v2-btn-primary:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.v2-btn-warning {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

.v2-btn-warning:hover {
  background: #d97706;
}

.v2-btn-gray {
  background: var(--gray-500);
  color: #fff;
  border-color: var(--gray-500);
}

.v2-btn-gray:hover {
  background: var(--gray-600);
}

.v2-btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.v2-btn-ghost:hover {
  background: var(--gray-100);
}

.v2-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- 表格 ---- */
.v2-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.v2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.v2-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

.v2-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}

.v2-table tbody tr:hover {
  background: var(--gray-50);
}

.v2-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- 卡片列表（移动端） ---- */
.v2-card-list {
  display: none;
}

/* ---- 标签 ---- */
.v2-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.v2-tag-blue {
  background: var(--brand-bg);
  color: var(--brand-dark);
}

.v2-tag-orange {
  background: #fff7ed;
  color: #c2410c;
}

.v2-tag-gray {
  background: var(--gray-100);
  color: var(--gray-600);
}

.v2-tag-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

/* ---- 类型切换（问题上报 / 居民建议） ---- */
.v2-type-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 12px;
  flex-wrap: wrap;
}

.v2-type-tab {
  padding: 8px 20px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  color: var(--gray-600, #6b7280);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s ease;
}

.v2-type-tab:hover {
  border-color: var(--brand, #2563eb);
  color: var(--brand-dark, #1e40af);
}

.v2-type-tab.active {
  background: var(--brand, #2563eb);
  border-color: var(--brand, #2563eb);
  color: #fff;
  font-weight: 600;
}

/* ---- 杂项 ---- */
.v2-muted {
  color: var(--gray-400, #9ca3af);
}

.v2-suggestion-content {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--gray-800, #1f2937);
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 12px 14px;
}

/* ---- 分页 ---- */
.v2-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}

.v2-pagination-info {
  font-size: 13px;
  color: var(--gray-500);
}

/* ---- 链接 ---- */
.v2-link {
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
}

.v2-link:hover {
  text-decoration: underline;
}

/* ---- 详情面板（右侧滑出） ---- */
.v2-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: v2-fade-in 0.2s ease;
}

@keyframes v2-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.v2-detail-panel {
  width: 480px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0,0,0,0.1);
  overflow-y: auto;
  animation: v2-slide-in 0.25s ease;
}

@keyframes v2-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.v2-detail-panel-inner {
  padding: 24px;
}

.v2-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  z-index: 1;
}

.v2-detail-close:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.v2-detail-content {
  position: relative;
}

.v2-detail-content h3 {
  font-size: 18px;
  margin: 0 0 12px;
  padding-right: 40px;
  color: var(--gray-900);
}

/* 详情弹窗副标题：主标题已改为业务主题时，用它标注记录类型（如「居民建议」） */
.v2-detail-subtitle {
  font-size: 12px;
  color: var(--gray-500, #6b7280);
  margin: -8px 0 12px 0;
}

.v2-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--gray-500);
}

.v2-detail-section {
  margin-bottom: 20px;
}

.v2-detail-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-100);
}

.v2-detail-section p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.v2-detail-actions {
  background: var(--gray-50);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

/* ---- 附件 ---- */
.v2-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-attachment-item {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--gray-200);
}

.v2-attachment-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-attachment-link {
  display: block;
  padding: 8px 12px;
  background: var(--gray-100);
  border-radius: 6px;
  font-size: 12px;
  color: var(--brand);
  word-break: break-all;
}

/* ---- 时间线 ---- */
.v2-timeline {
  position: relative;
  padding-left: 24px;
}

.v2-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gray-200);
}

.v2-timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.v2-timeline-item:last-child {
  padding-bottom: 0;
}

.v2-timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

.v2-timeline-content {
  font-size: 13px;
}

.v2-timeline-title {
  font-weight: 600;
  color: var(--gray-800);
}

.v2-timeline-meta {
  color: var(--gray-500);
  margin-top: 2px;
}

.v2-timeline-note {
  color: var(--gray-600);
  margin-top: 4px;
}

.v2-timeline-time {
  color: var(--gray-400);
  font-size: 12px;
  margin-top: 2px;
}

/* ---- 上传组件 ---- */
.v2-uploader {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.v2-uploader-dropzone {
  padding: 24px;
  text-align: center;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background 0.15s ease;
}

.v2-uploader-dropzone:hover {
  background: var(--brand-bg);
}

.v2-uploader-dragover {
  background: #eff6ff !important;
  border-color: var(--brand) !important;
}

.v2-uploader-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.v2-uploader-dropzone p {
  margin: 4px 0;
  color: var(--gray-500);
  font-size: 14px;
}

.v2-uploader-link {
  color: var(--brand);
  text-decoration: underline;
}

.v2-uploader-hint {
  font-size: 12px !important;
  color: var(--gray-400) !important;
}

.v2-uploader-preview {
  padding: 8px;
}

.v2-uploader-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--gray-50);
  border-radius: 6px;
  margin-bottom: 6px;
}

.v2-uploader-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.v2-uploader-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  font-size: 20px;
}

.v2-uploader-file-info {
  flex: 1;
  min-width: 0;
}

.v2-uploader-file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-uploader-file-size {
  font-size: 11px;
  color: var(--gray-400);
}

.v2-uploader-file-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 2px;
}

.v2-uploader-file-done {
  font-size: 12px;
  color: #16a34a;
  margin-top: 2px;
}

.v2-uploader-progress {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}

.v2-uploader-progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.v2-uploader-file-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  font-size: 18px;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.v2-uploader-file-remove:hover {
  background: #fee2e2;
  color: #ef4444;
}

.v2-uploader-actions {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* ---- 模态框 ---- */
.v2-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-modal {
  background: #fff;
  border-radius: 12px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: v2-modal-in 0.2s ease;
}

@keyframes v2-modal-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.v2-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  border-radius: 12px 12px 0 0;
}

.v2-modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.v2-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.v2-modal-body {
  padding: 20px;
}

.v2-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.v2-form-group {
  margin-bottom: 16px;
}

.v2-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.task-location-picker {
  margin-top: 10px;
}

.task-location-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.task-location-search-results {
  margin-top: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(55, 37, 31, 0.1);
}

.task-location-search-result {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--gray-100);
  background: #fff;
  color: var(--gray-800);
  text-align: left;
  line-height: 1.5;
  cursor: pointer;
}

.task-location-search-result:hover,
.task-location-search-result:focus-visible {
  background: #fff8f5;
  outline: none;
}

.task-location-search-status,
.task-location-search-attribution {
  padding: 9px 12px;
  color: var(--gray-500);
  font-size: 12px;
}

.task-location-search-error { color: #b42318; }
.task-location-search-attribution { background: var(--gray-50); }

.task-location-map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7f6;
}

.task-location-picker-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .task-location-search-row { grid-template-columns: 1fr; }
  .task-location-map { height: 220px; }
  .task-location-picker-actions > button { flex: 1; padding-left: 8px; padding-right: 8px; }
}

.v2-required {
  color: #ef4444;
}

/* ---- 图片预览 ---- */
.v2-image-preview-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.v2-image-preview-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.v2-image-preview-container img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.v2-image-preview-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
}

/* ---- Toast ---- */
.v2-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.v2-toast-show {
  opacity: 1;
}

/* ---- 状态提示 ---- */
.v2-loading {
  text-align: center;
  padding: 40px;
  color: var(--gray-400);
  font-size: 14px;
}

.v2-error {
  text-align: center;
  padding: 40px;
  color: #ef4444;
  font-size: 14px;
}

.v2-empty {
  text-align: center;
  padding: 60px;
  color: var(--gray-400);
  font-size: 14px;
}

/* ============================================================
   工作台样式
   ============================================================ */

/* 工作台数据范围标识（个人 / 社区） */
.wb-scope-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 12px;
  vertical-align: middle;
}
.wb-scope-self {
  background: #e8f4ff;
  color: #1d6fc4;
  border: 1px solid #bcdcff;
}
.wb-scope-community {
  background: #eaf7ee;
  color: #1f8b48;
  border: 1px solid #b8e6c8;
}

/* 统计卡片网格 */
.wb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.wb-stat-card {
  padding: 20px 16px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
}

.wb-stat-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.wb-stat-label {
  font-size: 13px;
  margin-top: 6px;
  opacity: 0.85;
}

.wb-stat-teal  { background: linear-gradient(135deg, var(--brand-light), var(--brand)); }
.wb-stat-gold  { background: linear-gradient(135deg, var(--gold), var(--warning)); }
.wb-stat-navy  { background: linear-gradient(135deg, var(--brand-dark), var(--brand-darkest)); }
.wb-stat-teal2 { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }

/* 工作台卡片可点击展开明细 */
.wb-stat-card {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
}
.wb-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.wb-stat-card.wb-stat-active {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), 0 6px 18px rgba(0, 0, 0, 0.18);
}
.wb-stat-card .wb-stat-hint {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.8;
}

/* 工作台明细面板 */
.wb-detail-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}
.wb-detail-title {
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wb-detail-close-x {
  cursor: pointer;
  color: var(--gray-500);
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
}
.wb-detail-close-x:hover { color: var(--gray-800); }
.wb-detail-empty {
  padding: 18px 20px;
  color: var(--gray-500);
  font-size: 14px;
}

/* 工作台明细行 → 点击跳转到对应管理页 */
.wb-detail-row-clickable { cursor: pointer; transition: background 0.15s; }
.wb-detail-row-clickable:hover { background: var(--gray-50); }

/* 目标页高亮闪现提醒 */
@keyframes wbFlash {
  0%   { background: rgba(255, 179, 0, 0); }
  15%  { background: rgba(255, 179, 0, 0.55); }
  35%  { background: rgba(255, 179, 0, 0); }
  55%  { background: rgba(255, 179, 0, 0.55); }
  75%  { background: rgba(255, 179, 0, 0.30); }
  100% { background: rgba(255, 179, 0, 0); }
}
.wb-flash { animation: wbFlash 2.4s ease-in-out; }

/* 待办列表 */
.wb-todo-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.wb-todo-heading {
  margin: 0;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.wb-todo-list {
  padding: 8px 0;
}

.wb-todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.12s ease;
}

.wb-todo-item:last-child {
  border-bottom: none;
}

.wb-todo-item:hover {
  background: var(--gray-50);
}

.wb-todo-title {
  flex: 1;
  font-size: 14px;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-todo-time {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 待办标签 */
.wb-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.wb-tag-new {
  background: var(--brand-bg);
  color: var(--brand-dark);
}

.wb-tag-review {
  background: var(--gold-bg);
  color: #92400e;
}

/* ============================================================
   响应式 - 移动端 (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .v2-page {
    padding: 12px;
  }

  .v2-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .v2-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .v2-filter-bar .v2-select,
  .v2-filter-bar .v2-input {
    flex: none;
    width: 100%;
    min-width: unset;
  }

  /* 表格转卡片 */
  .v2-table-wrap {
    display: none;
  }

  .v2-card-list {
    display: block;
  }

  .v2-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: box-shadow 0.15s ease;
  }

  .v2-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .v2-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
  }

  /* 卡片副文本：主题下方的内容摘要（居民建议等） */
  .v2-card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-600);
    margin-bottom: 8px;
  }

  .v2-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-500);
  }

  /* 详情面板全屏 */
  .v2-detail-panel {
    width: 100%;
    max-width: 100%;
  }

  .v2-modal {
    width: 95vw;
    max-height: 90vh;
  }

  .v2-pagination {
    flex-wrap: wrap;
  }

  /* 工作台响应式 */
  .wb-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   响应式 - 手机端 (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .wb-stats {
    grid-template-columns: 1fr;
  }

  .wb-todo-item {
    flex-wrap: wrap;
  }
}

/* V2 页面嵌入 main-content 时去掉自身 padding */
.main-content .v2-page {
  padding: 0;
  max-width: none;
}

/* ============================================================
   系统管理页面样式（Task 10）
   色系：navy(var(--gray-800)) / teal(#0d9488) / gold(#d4a853)
   ============================================================ */

/* 标签页导航 */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 16px;
}
.admin-tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 14px;
  color: var(--gray-500);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab-btn:hover { color: var(--gray-800); }
.admin-tab-btn.active {
  color: var(--gray-800);
  border-bottom-color: #0d9488;
  font-weight: 600;
}

/* 表格 */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  background: var(--gray-800);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: var(--gray-50); }
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-empty-cell {
  text-align: center;
  color: var(--gray-400);
  padding: 40px 12px !important;
}

/* 工具栏 */
.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-search-input {
  width: 240px;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
}

/* 状态标签 */
.admin-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}
.admin-status-active { background: #d1fae5; color: #065f46; }
.admin-status-inactive { background: var(--gray-100); color: var(--gray-500); }

/* 标签 */
.admin-tag {
  display: inline-block;
  padding: 1px 8px;
  background: #e0f2f1;
  color: #0d9488;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
}

/* 模态弹窗 */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.admin-modal {
  background: #fff;
  border-radius: 12px;
  width: 520px;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.admin-modal-header h3 { margin: 0; font-size: 16px; color: var(--gray-800); }
.admin-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
}
.admin-modal-close:hover { color: var(--gray-800); }
.admin-modal-body { padding: 20px 24px; }
.admin-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.admin-modal-content { /* 兼容别名 */ }

/* 表单 */
.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-form-group { display: flex; flex-direction: column; gap: 6px; }
.admin-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}
.admin-form-input {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}
.admin-form-input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13,148,136,0.15);
}
.admin-form-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
}
.admin-checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-700);
  cursor: pointer;
}

/* 角色卡片 */
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.role-card {
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid;
}
.role-card-teal { border-color: #0d9488; background: #f0fdfa; }
.role-card-gold { border-color: #d4a853; background: #fefce8; }
.role-card-navy { border-color: var(--gray-800); background: var(--gray-50); }
.role-card-icon { font-size: 28px; margin-bottom: 8px; }
.role-card-title { font-size: 16px; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.role-card-code { font-size: 12px; color: var(--gray-500); font-family: monospace; margin-bottom: 10px; }
.role-card-desc { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* 分页 */
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
.pagination-info {
  font-size: 13px;
  color: var(--gray-500);
}

/* 系统参数值列 */
.admin-param-value {
  max-width: 300px;
  word-break: break-all;
  font-size: 12px;
  font-family: monospace;
  color: var(--gray-600);
}

/* V2 通用输入框复用手写区 */
.admin-form .v2-textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 13px;
  font-family: monospace;
  resize: vertical;
  box-sizing: border-box;
}
.admin-form .v2-textarea:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13,148,136,0.15);
}

/* 响应式 */
@media (max-width: 768px) {
  .admin-modal {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .admin-table-wrap {
    overflow-x: auto;
  }
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-search-input { width: 100%; }
  .role-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== 任务详情：居民承接与提交成果 ===== */
.v2-claim-item {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--gray-50);
}

.v2-claim-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.v2-claim-time {
  font-size: 12px;
  color: var(--gray-500);
}

.v2-claim-contact {
  font-size: 13px;
  color: var(--gray-700);
  white-space: nowrap;
}

.v2-claim-empty {
  font-size: 13px;
  color: var(--gray-400);
  padding: 4px 0;
}

.v2-submission {
  border-top: 1px dashed var(--gray-200);
  padding-top: 10px;
  margin-top: 8px;
}

.v2-submission-desc {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 问题中心 / 任务中心 状态与处置方式标签（V2.1） ===== */
/* 状态：新四态 */
.v2-tag-brand { background:#f6ece4; color:#9c2b2b; border:1px solid #e0c4b4; }
.v2-tag-blue  { background:#e8f0fb; color:#2f5fb0; border:1px solid #c7d6f0; }
.v2-tag-green { background:#e8f3ec; color:#2e7d4f; border:1px solid #bfe0cd; }
.v2-tag-gold  { background:#fbf3e2; color:#9a6b1f; border:1px solid #ecd9b0; }
/* 处置方式 */
.v2-tag-work     { background:#eef2fb; color:#2f5fb0; border:1px solid #c7d6f0; }
.v2-tag-resident { background:#f6ece4; color:#9c2b2b; border:1px solid #e0c4b4; }
.v2-tag-business { background:#ecfdf5; color:#047857; border:1px solid #a7d9c8; }
.v2-tag-other   { background:#eef0f2; color:#6b7280; border:1px solid #d9dde1; }
.v2-btn-gold { background:#f0c66b; color:#5a3d0c; border:1px solid #d8a845; }
.v2-btn-gold:hover { background:#e8ba52; }
/* 问题编号微标 */
.v2-issue-no { display:inline-block; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px; color:#6b4a36; background:#faf3ea; border:1px solid #ecdcc9; border-radius:4px; padding:1px 6px; }
/* 处置方式/状态 行 */
.v2-detail-meta .v2-tag { margin-right:6px; }
/* 关联任务 / 业务办理 / 评价 区块 */
.v2-sub-list { display:flex; flex-direction:column; gap:10px; }
.v2-sub-item { border:1px solid #ecdcc9; border-radius:8px; padding:10px 12px; background:#fffdfb; }
.v2-sub-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.v2-sub-title { font-weight:600; color:#3a2a1e; }
.v2-sub-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:4px 0; }
.v2-sub-line { font-size:13px; color:#5b4a3a; margin:2px 0; }
.v2-sub-line b { color:#8a6d54; font-weight:600; }
.v2-eval-row { display:flex; align-items:center; gap:10px; }
.v2-eval-meta { font-size:12px; color:#9a8a78; }
.v2-eval-comment { font-size:13px; color:#5b4a3a; margin:6px 0 0; padding-left:2px; }
/* 五星 */
.v2-stars { display:inline-flex; gap:2px; font-size:16px; line-height:1; }
.v2-star { color:#d9cdbd; }
.v2-star.on { color:#e0a73c; }
/* 处置方式筛选 chips */
.v2-filter-label { margin-right:4px; }

/* ============================================================
   平台管理端 · 商家管理（MallAdminPage）
   色系沿用管理端：teal(#0d9488) / navy / gold
   ============================================================ */
.mall-admin-sub {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  margin-left: 4px;
}

/* 概览统计条 */
.mall-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.mall-stat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}
.mall-stat-v {
  font-size: 30px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}
.mall-stat-l {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

/* 对账恒等式展示 */
.mall-admin-eq {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.mall-admin-eq.balanced { border-color: #0d9488; background: #f0fdfa; }
.mall-admin-eq.unbalanced { border-color: #ef4444; background: #fef2f2; }
.mall-eq-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 16px;
  color: var(--gray-800);
}
.mall-eq-num { font-weight: 700; font-size: 20px; }
.mall-eq-op { color: var(--gray-500); }
.mall-eq-lbl { font-size: 12px; color: var(--gray-500); margin-right: 6px; }
.mall-eq-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.mall-eq-badge.ok { background: #0d9488; color: #fff; }
.mall-eq-badge.bad { background: #ef4444; color: #fff; }

/* 抽检随机高亮行 */
.mall-spot-row.mall-spot-on {
  background: #fff7ed !important;
  box-shadow: inset 3px 0 0 #f59e0b;
}
.mall-spot-row.mall-spot-on td { font-weight: 600; }

/* 贡献榜排名 */
.mall-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 700;
  font-size: 13px;
}
tr:first-child .mall-rank { background: #0d9488; color: #fff; }
tr:nth-child(2) .mall-rank { background: #d4a853; color: #fff; }
tr:nth-child(3) .mall-rank { background: #94a3b8; color: #fff; }

@media (max-width: 768px) {
  .mall-admin-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 首页 Banner 广告位管理 ===== */
.banner-admin-wrap .banner-admin-sub { margin-left: 12px; font-size: 13px; color: var(--gray-500); }
.banner-thumb {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-100);
  display: block;
}
.banner-thumb-lg {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gray-100);
  margin-top: 8px;
}
.banner-current-img { font-size: 13px; color: var(--gray-500); }
/* ===== V5 平台超级管理员四板块 ===== */
.platform-page{padding:24px;max-width:1440px;margin:0 auto;color:#2f2927}.platform-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.platform-page-heading h2{font-size:28px;margin:0 0 7px}.platform-page-heading p{margin:0;color:#877b75}.platform-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.platform-kpi{background:#fff;border:1px solid #eadfd9;border-radius:14px;padding:18px;box-shadow:0 5px 18px rgba(72,38,30,.05)}.platform-kpi span{display:block;color:#806f68;font-size:14px}.platform-kpi strong{display:block;font-size:30px;line-height:1.25;margin:7px 0;color:#8d3437}.platform-kpi small{color:#a3958e}.platform-note{font-size:13px;color:#8f7f76;margin:-7px 0 16px}.platform-card,.network-map-card{background:#fff;border:1px solid #eadfd9;border-radius:16px;padding:20px;margin-bottom:18px;box-shadow:0 5px 18px rgba(72,38,30,.05)}.platform-card-title,.network-map-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.platform-card-title h3,.network-map-title strong{margin:0;font-size:18px}.platform-card-title span,.network-map-title span{font-size:13px;color:#94857e}.platform-legend{display:flex;gap:15px}.platform-legend span{display:flex;align-items:center;gap:6px;color:#74665f;font-size:13px}.platform-legend i{width:10px;height:10px;border-radius:50%}.legend-active{background:#298f69}.legend-launching{background:#d7a23f}.network-map{position:relative;height:430px;overflow:hidden;border-radius:14px;background:linear-gradient(150deg,#f7fbfa,#f4eee9)}.network-map-shape{position:absolute;left:12%;top:10%;width:76%;height:78%;background:linear-gradient(145deg,#dcece6,#c7ded4);border-radius:44% 56% 54% 46%/38% 43% 57% 62%;transform:rotate(-4deg);box-shadow:inset 0 0 0 2px rgba(79,124,107,.12)}.network-map-shape:after{content:"";position:absolute;right:-3%;bottom:7%;width:24%;height:24%;background:#dcece6;border-radius:60% 40% 55% 45%;transform:rotate(28deg)}.network-grid-lines{position:absolute;inset:0;background-image:linear-gradient(rgba(96,112,104,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(96,112,104,.05) 1px,transparent 1px);background-size:38px 38px}.network-pin{position:absolute;z-index:2;border:0;background:transparent;transform:translate(-50%,-50%);cursor:pointer;text-align:left}.network-pin>span{display:block;width:17px;height:17px;border:4px solid #fff;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.25)}.network-pin>b{position:absolute;left:20px;top:-2px;white-space:nowrap;background:rgba(255,255,255,.94);padding:4px 7px;border-radius:6px;color:#443a36;font-size:12px;box-shadow:0 2px 8px rgba(0,0,0,.09)}.network-pin-active>span{background:#298f69}.network-pin-launching>span{background:#d7a23f}.platform-status{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700}.platform-status-active{color:#147353;background:#e3f4ed}.platform-status-launching{color:#986916;background:#fff2d8}.platform-status-stopped{color:#786e69;background:#eeeae8}.platform-link{border:0;background:none;padding:0;color:#92383b;font-weight:700;cursor:pointer}.community-hero{display:flex;justify-content:space-between;align-items:center;margin:15px 0 18px;padding:24px;border-radius:18px;background:linear-gradient(135deg,#7e292d,#a34b4c);color:#fff}.community-hero h2{font-size:30px;margin:4px 0}.community-hero p{margin:0;color:#f6dddd}.community-eyebrow{font-size:13px;opacity:.85}.community-intro-readonly{line-height:1.9;white-space:pre-wrap}.community-org-previews,.archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.org-preview-count{display:flex;align-items:baseline;gap:8px;margin:25px 0}.org-preview-count strong{font-size:38px;color:#8d3437}.org-preview-count span{color:#897b74}.platform-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.platform-form-grid label{font-size:13px;color:#6f625c}.platform-form-grid .v2-input{display:block;width:100%;margin-top:6px}.platform-form-actions,.platform-actions{display:flex;gap:8px;flex-wrap:wrap}.platform-form-actions{margin-top:18px}.platform-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.platform-module-grid button{background:#fff;border:1px solid #e7dad3;border-radius:15px;padding:22px;text-align:left;cursor:pointer;transition:.18s}.platform-module-grid button:hover{border-color:#9b4144;transform:translateY(-2px);box-shadow:0 8px 20px rgba(80,35,31,.08)}.platform-module-grid b,.platform-module-grid span{display:block}.platform-module-grid b{font-size:18px;color:#713035;margin-bottom:8px}.platform-module-grid span{color:#8c7e77}.readonly-badge{background:#eee9e6;color:#6d625d;padding:7px 12px;border-radius:999px}.archive-list>div{display:grid;grid-template-columns:1.4fr 1fr .8fr;gap:8px;padding:10px 0;border-bottom:1px solid #eee6e1}.archive-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform-org-overlay{position:fixed;inset:0;background:rgba(30,20,18,.54);z-index:1000;display:flex;align-items:center;justify-content:center;padding:30px}.platform-org-dialog{position:relative;background:#fff;width:min(900px,95vw);max-height:85vh;overflow:auto;border-radius:16px;padding:26px}.platform-org-dialog pre{white-space:pre-wrap;background:#f8f5f3;padding:16px;border-radius:10px;line-height:1.7}.platform-org-close{position:absolute;right:16px;top:12px;border:0;background:none;font-size:28px;cursor:pointer}
@media(max-width:900px){.platform-kpis,.platform-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-org-previews,.archive-grid{grid-template-columns:1fr}.platform-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.network-map{height:340px}}

.community-profile-table{margin-top:18px}.community-basic-kpis{margin:18px 0 0}.platform-breadcrumb{display:flex;gap:8px;align-items:center;color:#8b817b;margin-bottom:18px;flex-wrap:wrap}.platform-breadcrumb a{color:#913c3d;text-decoration:none}.org-tree-page{padding:20px}.archive-tree-children{display:grid;gap:8px;margin-left:14px;border-left:1px solid #eaded4;padding-left:14px}.archive-tree-node{border:1px solid #eee3db;border-radius:10px;background:#fff;padding:8px 12px}.archive-tree-node>summary{cursor:pointer;font-weight:650;color:#4a3a33}.archive-tree-node>summary small{margin-left:10px;color:#a2948b;font-weight:400}.archive-tree-node>.archive-tree-children{margin-top:10px}.archive-tree-leaf{display:grid;grid-template-columns:minmax(90px,160px) 1fr;gap:12px;padding:7px 10px;border-radius:8px;background:#faf7f4}.archive-tree-leaf b{color:#786a62}.archive-tree-leaf span{word-break:break-word}.community-hero small{display:block;margin-top:9px;color:#efdada}
.platform-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,240px) minmax(150px,210px);gap:10px;margin-bottom:16px}.platform-filters .v2-input{width:100%}@media(max-width:720px){.platform-filters{grid-template-columns:1fr}}
.platform-form-dialog{width:min(560px,95vw)}.platform-dialog-fields{display:grid;gap:14px;margin-top:18px}.platform-dialog-fields label{display:grid;gap:7px;color:#655953;font-size:14px}.platform-dialog-fields .v2-input{width:100%}.platform-dialog-note{padding:11px 13px;border-radius:9px;background:#faf2e9;color:#725e4f;line-height:1.6}.platform-dialog-error{min-height:22px;margin-top:10px;color:#b2292e;font-size:13px}
@media(max-width:560px){.platform-page{padding:14px}.platform-kpis,.platform-module-grid,.platform-form-grid{grid-template-columns:1fr}.network-map{height:300px}.platform-page-heading{display:block}.platform-page-heading .v2-btn{margin-top:12px}}

/* 平台超级管理员：统一品牌与运行档案工具区 */
.community-hero h2{color:#fff}
.platform-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.archive-tools{margin-bottom:18px}
.archive-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.archive-toolbar .v2-input{flex:1 1 280px;min-width:220px}
@media(max-width:560px){.platform-module-grid{grid-template-columns:1fr}.archive-toolbar .v2-input{min-width:100%}}

/* 社区超级管理员：总览卡片与社区业务子导航 */
.community-overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.community-overview-stat{border:0;border-radius:14px;padding:20px 16px;background:linear-gradient(135deg,#8d3437,#6f2529);color:#fff;text-align:left;cursor:pointer;box-shadow:0 5px 18px rgba(72,38,30,.08);transition:transform .16s ease,box-shadow .16s ease}
.community-overview-stat:nth-child(2){background:linear-gradient(135deg,#c39a36,#9f7620)}
.community-overview-stat:nth-child(3){background:linear-gradient(135deg,#5c2327,#351316)}
.community-overview-stat:nth-child(4){background:linear-gradient(135deg,#c5a264,#a78345)}
.community-overview-stat:hover,.community-overview-stat[aria-expanded="true"]{transform:translateY(-2px);box-shadow:0 8px 22px rgba(72,38,30,.16)}
.community-overview-stat strong,.community-overview-stat span,.community-overview-stat small{display:block}
.community-overview-stat strong{font-size:32px;line-height:1.2}
.community-overview-stat span{font-size:15px;margin-top:7px}
.community-overview-stat small{font-size:12px;margin-top:10px;opacity:.82}
.community-overview-detail{background:#fff;border:1px solid #eadfd9;border-radius:14px;padding:16px 18px;margin:0 0 18px;box-shadow:0 5px 18px rgba(72,38,30,.05)}
.community-overview-detail-inner{display:flex;justify-content:space-between;align-items:center;gap:16px}
.community-overview-detail h3{margin:0 0 5px;color:#4a302d;font-size:17px}
.community-overview-detail p{margin:0;color:#806f68;font-size:13px}
.community-business-subnav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.community-business-nav-item{display:block;background:#fff;border:1px solid #eadfd9;border-radius:15px;padding:22px;text-decoration:none;box-shadow:0 5px 18px rgba(72,38,30,.05);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.community-business-nav-item:hover{transform:translateY(-2px);border-color:#9b4144;box-shadow:0 8px 20px rgba(80,35,31,.1)}
.community-business-nav-item strong,.community-business-nav-item span{display:block}
.community-business-nav-item strong{font-size:18px;color:#713035;margin-bottom:8px}
.community-business-nav-item span{font-size:13px;color:#8c7e77;line-height:1.6}
@media(max-width:900px){.community-overview-stats,.community-business-subnav{grid-template-columns:repeat(2,minmax(0,1fr))}.community-overview-detail-inner{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.community-overview-stats,.community-business-subnav{grid-template-columns:1fr}}

/* 社区只读组织档案：沿用旧版卡片/组织树，适配 V5 容器。 */
.community-intro-readonly p{margin:0 0 1em;white-space:normal}
.community-intro-readonly p:last-child{margin-bottom:0}
.community-legacy-archive{overflow-x:auto}
.community-legacy-archive .party-org-page{padding:8px}
.community-legacy-archive .party-quick-chip{font-family:inherit}
.community-legacy-archive .party-card{cursor:pointer}
.community-legacy-archive .party-card:focus-visible{outline:3px solid #9b4144;outline-offset:3px}
.community-legacy-archive .party-member-item[data-person-id],.community-legacy-archive [data-person-id]{cursor:pointer}
.community-legacy-archive .people-org-page{max-width:none;padding:0}
.community-legacy-archive .po-branch-header{width:100%;border:0;text-align:left;font-family:inherit}
.community-legacy-archive .po-branch-item-main{display:flex;align-items:center;gap:4px;width:100%;padding:0;border:0;background:transparent;text-align:left;font-family:inherit;cursor:pointer}
.community-legacy-archive .po-branch-item-main .po-branch-item-name{display:inline}
.community-legacy-archive .po-branch-item-leader{display:block}
.community-legacy-archive .po-rep-item{gap:4px}
.community-legacy-archive .po-rep-phone a,.community-legacy-archive .po-phone a{color:inherit;text-decoration:none}
.community-governance-archive{background:transparent;border:0;box-shadow:none;padding:0;overflow:visible}
.community-governance-archive .org-category-card{font:inherit;width:100%;min-width:0}
.community-governance-archive .org-category-card:focus-visible,.community-governance-archive .org-back-btn:focus-visible{outline:3px solid #9b4144;outline-offset:3px}
.community-governance-archive .org-category-page .page-header{margin-bottom:22px}
.community-governance-archive .org-category-page .page-header p{font-size:14px}
.community-governance-archive .detail-page>.org-back-btn{margin-bottom:18px}
.community-governance-archive .governance-area-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.community-governance-archive .governance-area-card{min-width:0}
.community-governance-archive .governance-assignees,.community-governance-archive .governance-contacts{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;color:#655852}
.community-governance-archive .governance-assignee{padding:3px 8px;border-radius:6px;background:#f7f1ee}
.community-governance-archive .governance-profile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;font-size:13px}
.community-governance-archive .governance-profile>div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #f0e9e4;padding:5px 0}
.community-governance-archive .governance-profile span{color:#897a71}
.community-governance-archive .governance-profile strong{text-align:right;overflow-wrap:anywhere}
.community-governance-archive .governance-contacts{border-top:1px solid #eee5df;padding-top:9px}
.community-governance-archive .governance-contacts strong{width:100%}
.community-governance-archive .governance-area-grids{border-top:1px solid #eee5df;padding-top:9px;font-size:13px}
.community-governance-archive .governance-grid-detail{margin-top:7px;padding:7px 9px;border-radius:7px;background:#faf7f5}
.community-governance-archive .governance-grid-detail summary{cursor:pointer;font-weight:600}
.community-governance-archive .governance-micro-grid{margin:7px 0 0 12px;padding:5px 0;border-top:1px solid #eee5df}
.community-governance-archive .governance-person-link{display:inline;border:0;background:none;padding:0;font:inherit;color:#8d3b3d;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.community-governance-archive .governance-person-link:hover{text-decoration-color:currentColor}
.community-governance-archive .governance-person-link:focus-visible{outline:2px solid #9b4144;outline-offset:3px;border-radius:2px}
.community-governance-archive .governance-person-profile{max-width:860px;margin:0 auto;padding:10px 20px 36px;background:#fff;border:1px solid #eaded5;border-radius:14px}
.community-governance-archive .governance-person-profile>h2{margin-bottom:4px}
.community-governance-archive .governance-scope-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.community-governance-archive .governance-scope-item{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #eee5df;border-radius:8px;background:#fcfaf8;overflow-wrap:anywhere}
.community-governance-archive .governance-scope-item span{font-size:13px;color:#897a71}
@media(max-width:900px){.community-governance-archive .governance-area-list{grid-template-columns:1fr}}
@media(max-width:720px){.community-legacy-archive{padding:12px}.community-legacy-archive .party-group-cards{grid-template-columns:1fr}.community-legacy-archive .party-committee-leaders{grid-template-columns:1fr}}
@media(max-width:720px){.community-governance-archive{padding:0}.community-governance-archive .governance-profile,.community-governance-archive .governance-scope-list{grid-template-columns:1fr}.community-governance-archive .governance-person-profile{padding:10px 14px 26px}}
.archive-users-list>div{display:grid;grid-template-columns:1.4fr 1fr .8fr auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #eee6e1}.archive-record{border-bottom:1px solid #eee6e1;padding:8px 0}.archive-record>div{display:grid;grid-template-columns:minmax(150px,.6fr) 2fr;gap:12px;padding:6px 0}.archive-record b{color:#806f68;font-size:13px}.archive-record span{overflow-wrap:anywhere;white-space:pre-wrap}.archive-tools .archive-toolbar{display:flex;gap:8px;flex-wrap:wrap}.archive-tools .archive-toolbar input{flex:1;min-width:220px}
.v2-points-summary{margin:0 0 24px;padding:20px;background:#fff;border:1px solid #eaded5;border-radius:14px;box-shadow:0 2px 10px rgba(76,45,32,.04)}
.v2-points-summary-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.v2-points-summary-head h3{margin:0 0 4px;font-size:19px}.v2-points-summary-head p,.v2-points-equation{margin:0;color:#88776d;font-size:13px}
.v2-points-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.v2-points-metric{display:flex;flex-direction:column;gap:9px;min-width:0;padding:16px;border:1px solid #f0e8e2;border-radius:10px;background:#fcfaf8}.v2-points-metric span{font-size:13px;color:#796a62}.v2-points-metric strong{font-size:25px;color:#8d3b3d;font-variant-numeric:tabular-nums}.v2-points-equation{margin-top:14px;padding-top:12px;border-top:1px solid #f0e8e2}.v2-points-summary #points-community-breakdown{margin-top:18px}.v2-points-summary #points-community-breakdown h4{margin:0 0 8px}
.v2-tag-success{background:#e7f5ee;color:#26734e}.v2-tag-danger{background:#fff0ee;color:#b33d32}
@media(max-width:900px){.v2-points-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.v2-points-summary{padding:14px}.v2-points-summary-cards{gap:8px}.v2-points-metric{padding:12px}.v2-points-metric strong{font-size:21px}}
