/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #333;
  line-height: 1.6;
}

/* ========== 农民工端移动端样式 ========== */
.mobile-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f6fa;
  padding-bottom: 30px;
}

.mobile-page .container {
  padding: 0 12px;
}

.page-header {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  padding: 20px 16px;
  text-align: center;
  margin: 0 -12px 12px;
}

.page-header .header-badge {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-top: -2px;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.page-header h1 {
  font-size: 20px;
  font-weight: 600;
}

.page-header .header-sub {
  font-size: 12.5px;
  opacity: 0.92;
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* 红色提醒横幅 */
.warning-banner {
  background: #fff3f3;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.warning-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.warning-item:last-child {
  margin-bottom: 0;
}

.warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #ff4d4f;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  margin-right: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-item p {
  color: #cf1322;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* 卡片 */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  border-left: 4px solid #1a73e8;
  border-radius: 2px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #1a73e8;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  margin-right: 8px;
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: #1a73e8;
}

/* 按钮 */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
}

.btn-primary:hover {
  background: #1557b0;
}

.btn-primary:disabled {
  background: #91caff;
  cursor: not-allowed;
}

.btn-large {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}

.btn-link {
  background: none;
  color: #1a73e8;
  padding: 4px 8px;
  font-size: 13px;
}

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

.btn-danger {
  background: #ff4d4f;
  color: #fff;
}

.btn-default {
  background: #fff;
  color: #333;
  border: 1px solid #d9d9d9;
}

.btn-success {
  background: #52c41a;
  color: #fff;
}

/* 搜索结果 */
.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-tip {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 12px 0;
}

.project-list {
  border-top: 1px solid #f0f0f0;
}

.project-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
}

.project-item:hover {
  background: #f5f8ff;
}

.project-item:active {
  background: #e6f0ff;
}

.project-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.project-meta {
  font-size: 12px;
  color: #888;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 项目信息展示 */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  font-size: 13px;
  line-height: 1.5;
}

.info-label {
  color: #666;
  font-weight: 500;
}

.info-value {
  color: #1a1a1a;
}

/* 表单 */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}

.required {
  color: #ff4d4f;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus {
  border-color: #1a73e8;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row .form-group {
  flex: 1;
}

/* 摘要预览 */
.summary-box {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px;
  min-height: 80px;
}

.summary-placeholder {
  color: #bbb;
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}

.summary-text {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

/* 提交区域 */
.submit-area {
  padding: 12px 0;
}

/* 成功弹窗 */
.success-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: 20px;
}

.success-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #52c41a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.success-content h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.success-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ========== 管理后台PC端样式 ========== */
.admin-page {
  background: #f0f2f5;
  min-height: 100vh;
}

/* 登录页 */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 380px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-box h1 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.login-box .subtitle {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-bottom: 28px;
}

.login-box .form-group {
  margin-bottom: 18px;
}

.login-box .btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* 后台布局 */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  background: #001529;
  color: #fff;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  padding: 20px 16px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid #1f3a5c;
  text-align: center;
}

.admin-sidebar nav {
  padding: 12px 0;
}

.admin-sidebar .nav-item {
  display: block;
  padding: 12px 20px;
  color: #b8c7d9;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.admin-sidebar .nav-item:hover {
  color: #fff;
  background: #112a45;
}

.admin-sidebar .nav-item.active {
  color: #fff;
  background: #1a73e8;
  border-left-color: #fff;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  background: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
}

.admin-header .page-title {
  font-size: 18px;
  font-weight: 600;
}

.admin-header .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.admin-content {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-card .stat-label {
  color: #888;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
}

.stat-card .stat-value.red { color: #ff4d4f; }
.stat-card .stat-value.blue { color: #1a73e8; }
.stat-card .stat-value.green { color: #52c41a; }
.stat-card .stat-value.orange { color: #fa8c16; }

/* 工具栏 */
.toolbar {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar .form-group {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar .form-group label {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 13px;
}

.toolbar .form-group input,
.toolbar .form-group select {
  width: auto;
  min-width: 160px;
  padding: 7px 10px;
  font-size: 13px;
}

.toolbar .spacer {
  flex: 1;
}

/* 表格 */
.table-wrapper {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.data-table th {
  background: #fafafa;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.data-table tr:hover {
  background: #f9f9f9;
}

.data-table .action-btn {
  color: #1a73e8;
  cursor: pointer;
  margin-right: 10px;
  font-size: 13px;
  background: none;
  border: none;
  padding: 0;
}

.data-table .action-btn.danger {
  color: #ff4d4f;
}

/* 账号管理：当前账号标记与禁用态文案 */
.badge-self {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  color: #1a73e8;
  background: #e8f0fe;
  border-radius: 10px;
  vertical-align: middle;
}

/* 角色徽标：超管/普通管理员 */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  border-radius: 10px;
}

.role-badge.role-super {
  color: #d4380d;
  background: #fff1e6;
  font-weight: 600;
}

/* 投诉列表：证据数量标记 */
.ev-count {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  color: #1a73e8;
  background: #e8f0fe;
  border-radius: 10px;
  white-space: nowrap;
}

.muted {
  color: #999;
  font-size: 13px;
}

/* 投诉处理状态徽章（点击可修改） */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

/* 正在办理：蓝 */
.status-badge.status-processing {
  color: #1a73e8;
  background: #e8f0fe;
}

/* 关注办理：橙 */
.status-badge.status-attention {
  color: #d46b08;
  background: #fff1e6;
}

/* 已办结：绿 */
.status-badge.status-done {
  color: #237804;
  background: #f0f9eb;
}

.status-badge:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* 详情弹窗：处理状态行 */
.status-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* 详情弹窗：状态变更历史 */
.status-log-list {
  margin-top: 8px;
  border-top: 1px dashed #e8e8e8;
  padding-top: 8px;
}

.status-log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 12px;
}

.status-log-arrow {
  color: #555;
}

.status-log-meta {
  color: #999;
  white-space: nowrap;
}

/* 修改状态弹窗 */
.modal-small {
  max-width: 400px;
}

.status-modal-tip {
  margin: 4px 0 0;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.active {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

.pagination .page-info {
  font-size: 13px;
  color: #666;
}

/* 弹窗 */
.modal-overlay {
  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;
}

.modal {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

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

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

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 详情内容 */
.detail-section {
  margin-bottom: 16px;
}

.detail-section h4 {
  font-size: 14px;
  color: #1a73e8;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
}

.detail-row {
  display: flex;
  padding: 6px 0;
  font-size: 13px;
}

.detail-row .label {
  width: 120px;
  color: #888;
  flex-shrink: 0;
}

.detail-row .value {
  color: #333;
  flex: 1;
  word-break: break-all;
}

/* 二维码区域 */
.qrcode-area {
  text-align: center;
  padding: 30px;
}

.qrcode-area img {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.qrcode-area .qrcode-url {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  word-break: break-all;
}

.qrcode-area .qrcode-tip {
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

/* 表单弹窗 */
.modal .form-row {
  display: flex;
  gap: 12px;
}

.modal .form-row .form-group {
  flex: 1;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 60px;
  }
  .admin-sidebar .logo,
  .admin-sidebar .nav-item span {
    display: none;
  }
  .admin-sidebar .nav-item {
    text-align: center;
    padding: 12px 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar .form-group {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar .form-group input,
  .toolbar .form-group select {
    width: 100%;
  }
}

/* ========== 证据上传模块 ========== */
.evidence-tip {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
  background: #f7f8fa;
  border-left: 3px solid #1890ff;
  padding: 8px 10px;
  border-radius: 4px;
}
.evidence-dropzone {
  border: 2px dashed #bbb;
  border-radius: 8px;
  padding: 24px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 12px;
}
.evidence-dropzone.dragover {
  border-color: #1890ff;
  background: #e6f1fb;
}
.evidence-dropzone-inner {
  font-size: 14px;
  color: #666;
}
.evidence-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}
.evidence-list {
  margin-bottom: 8px;
}
.evidence-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fafafa;
}
.evidence-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #888;
  overflow: hidden;
}
.evidence-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.evidence-info {
  flex: 1;
  min-width: 0;
}
.evidence-name {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evidence-size {
  font-size: 12px;
  color: #999;
}
.evidence-status {
  font-size: 12px;
  color: #1890ff;
  flex-shrink: 0;
}
.evidence-status.error {
  color: #ff4d4f;
}
.evidence-status.done {
  color: #52c41a;
}
.evidence-del {
  border: none;
  background: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
}
.evidence-del:hover {
  color: #ff4d4f;
}
.evidence-hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.evidence-progress {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.evidence-progress-bar {
  height: 100%;
  background: #1890ff;
  width: 0;
  transition: width .3s;
}
.evidence-empty {
  font-size: 13px;
  color: #999;
  text-align: center;
  padding: 8px;
}
/* 管理端证据列表 */
.admin-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-evidence-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
}
.admin-evidence-item .evidence-name {
  flex: 1;
}
.admin-evidence-item .btn-small {
  flex-shrink: 0;
}

/* ========== 网站底部备案信息 ========== */
.site-footer {
  text-align: center;
  padding: 20px 12px 32px;
}

.site-footer a {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #888;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid #e2e5ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}

.site-footer a:hover {
  color: #1a73e8;
  border-color: #1a73e8;
  text-decoration: none;
}
