/* 个人中心 — 贴近政务/企业服务平台线上 UI */
:root {
  --uc-max: 1200px;
  --uc-border: #e8e8e8;
  --uc-primary: #1890ff;
  --uc-primary-hover: #40a9ff;
  --uc-primary-active: #096dd9;
  --uc-text: #262626;
  --uc-text-secondary: #595959;
  --uc-text-muted: #8c8c8c;
  --uc-bg: #f0f2f5;
  --uc-card: #fff;
  --uc-radius: 4px;
  --uc-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.uc-shell {
  max-width: var(--uc-max);
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.uc-layout {
  display: flex;
  min-height: calc(100vh - 72px - 56px);
  background: var(--uc-card);
  border-radius: var(--uc-radius);
  border: 1px solid var(--uc-border);
  box-shadow: var(--uc-shadow);
  overflow: hidden;
}

/* ── 侧边栏 ── */
.uc-sidebar {
  width: 208px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid var(--uc-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.uc-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
  overflow-y: auto;
  flex: 1;
}

.uc-menu > li > a,
.uc-menu > li > button.uc-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  height: 40px;
  font-size: 14px;
  color: var(--uc-text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-right: 3px solid transparent;
}

.uc-menu > li > a:hover,
.uc-menu > li > button.uc-menu-toggle:hover {
  color: var(--uc-primary);
  background: rgba(24, 144, 255, 0.04);
}

.uc-menu > li > a.on {
  color: var(--uc-primary);
  font-weight: 500;
  background: #e6f4ff;
  border-right-color: var(--uc-primary);
}

.uc-menu > li > button.uc-menu-toggle i {
  font-size: 10px;
  color: var(--uc-text-muted);
  transition: transform 0.2s;
}

.uc-menu > li.open > button.uc-menu-toggle {
  color: var(--uc-primary);
  font-weight: 500;
}

.uc-menu > li.open > button.uc-menu-toggle i {
  transform: rotate(180deg);
  color: var(--uc-primary);
}

.uc-submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: none;
  background: rgba(0, 0, 0, 0.02);
}

.uc-menu > li.open > .uc-submenu {
  display: block;
}

.uc-submenu a {
  display: block;
  padding: 0 16px 0 32px;
  height: 36px;
  line-height: 36px;
  font-size: 13px;
  color: var(--uc-text-muted);
  text-decoration: none;
  border-right: 3px solid transparent;
  transition: color 0.15s, background 0.15s;
}

.uc-submenu a:hover {
  color: var(--uc-primary);
  background: rgba(24, 144, 255, 0.04);
}

.uc-submenu a.on {
  color: var(--uc-primary);
  font-weight: 500;
  background: #e6f4ff;
  border-right-color: var(--uc-primary);
}

/* ── 主内容区 ── */
.uc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.uc-content-hd {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.uc-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--uc-text-muted);
}

.uc-breadcrumb i {
  font-size: 9px;
  color: #d9d9d9;
}

.uc-breadcrumb .current {
  color: var(--uc-text-secondary);
}

.uc-content-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--uc-text);
  line-height: 1.4;
}

.uc-panel {
  flex: 1;
  min-height: 400px;
}

.uc-panel-body {
  padding: 24px;
}

/* ── 表格 ── */
.uc-table-wrap {
  overflow-x: auto;
}

.uc-table-wrap.sticky-ops {
  position: relative;
}

.rp-wrap .uc-table-wrap {
  border: 1px solid #f0f0f0;
  border-radius: var(--uc-radius);
}

.uc-table.has-sticky-ops {
  width: max-content;
  min-width: 100%;
}

.uc-table.has-sticky-ops th.col-ops,
.uc-table.has-sticky-ops td.col-ops {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  white-space: nowrap;
  vertical-align: middle;
  text-align: left;
  width: 1%;
  min-width: 72px;
  padding-right: 16px;
  box-shadow: -4px 0 6px -2px rgba(0, 0, 0, 0.06);
}

.uc-table.has-sticky-ops th.col-ops {
  background: #fafafa;
  z-index: 3;
}

.uc-table.has-sticky-ops tbody tr:hover td.col-ops {
  background: #fafafa;
}

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

.uc-table th,
.uc-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  color: var(--uc-text);
  white-space: nowrap;
  transition: background 0.12s;
}

.uc-table th {
  background: #fafafa;
  font-weight: 500;
  font-size: 13px;
  color: var(--uc-text-secondary);
  white-space: nowrap;
}

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

.uc-table tbody tr:hover td {
  background: #fafafa;
}

.uc-table .col-idx {
  width: 56px;
  color: var(--uc-text-muted);
  text-align: center;
  font-size: 13px;
}

.uc-table .col-name {
  white-space: normal;
  min-width: 180px;
  max-width: 280px;
  color: var(--uc-text);
  font-weight: 500;
}

.uc-link {
  color: var(--uc-primary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s;
}

.uc-link:hover {
  color: var(--uc-primary-hover);
}

/* ── 空状态 ── */
.uc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 72px 24px;
  text-align: center;
}

.uc-empty i {
  font-size: 48px;
  color: #d9d9d9;
  margin-bottom: 8px;
}

.uc-empty p {
  margin: 0;
  font-size: 15px;
  color: var(--uc-text-secondary);
}

.uc-empty span {
  font-size: 13px;
  color: var(--uc-text-muted);
}

/* ── 状态标签 ── */
.status-tag {
  display: inline-block;
  padding: 0 8px;
  height: 22px;
  line-height: 20px;
  border-radius: 2px;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-tag.progress,
.status-tag.review {
  background: #e6f4ff;
  color: var(--uc-primary);
  border-color: #91caff;
}

.status-tag.done {
  background: #f6ffed;
  color: #52c41a;
  border-color: #b7eb8f;
}

.status-tag.pending {
  background: #fff7e6;
  color: #fa8c16;
  border-color: #ffd591;
}

.status-tag.returned {
  background: #fff2f0;
  color: #ff4d4f;
  border-color: #ffccc7;
}

.status-tag.default {
  background: #fafafa;
  color: var(--uc-text-muted);
  border-color: #d9d9d9;
}

/* ── 列表面板通用 ── */
.rp-wrap {
  padding: 20px 24px 24px;
}

.rp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f0f0f0;
  margin: -20px -24px 20px;
  padding: 0 24px;
  background: #fff;
}

.rp-tab {
  padding: 12px 4px;
  margin-right: 32px;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--uc-text-secondary);
  cursor: pointer;
  font-family: inherit;
  position: relative;
  margin-bottom: -1px;
  transition: color 0.15s;
}

.rp-tab:hover {
  color: var(--uc-primary);
}

.rp-tab.on {
  color: var(--uc-primary);
  font-weight: 500;
}

.rp-tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--uc-primary);
  border-radius: 2px 2px 0 0;
}

/* 筛选区卡片 */
.rp-wrap .md-filters,
.rp-wrap .rp-filters {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: var(--uc-radius);
  padding: 16px 16px 4px;
  margin-bottom: 16px;
}

.rp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  font-size: 14px;
}

.rp-filters label {
  color: var(--uc-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.rp-filters input {
  padding: 0 11px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: var(--uc-radius);
  font-size: 13px;
  font-family: inherit;
  width: 168px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rp-filters input:hover,
.md-filters input:hover,
.md-filters select:hover {
  border-color: var(--uc-primary-hover);
}

.rp-filters input:focus,
.md-filters input:focus,
.md-filters select:focus {
  border-color: var(--uc-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.rp-filters .date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rp-filters .date-range input {
  width: 132px;
}

/* 按钮 */
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--uc-radius);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: var(--uc-text);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

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

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

.rp-btn.primary:hover {
  background: var(--uc-primary-hover);
  border-color: var(--uc-primary-hover);
  color: #fff;
}

.rp-toolbar {
  margin-bottom: 16px;
}

.rp-ops {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.rp-ops .uc-link {
  margin: 0;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
}

.rp-ops > span {
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
  color: var(--uc-text-muted);
  font-size: 13px;
}

.rp-ops .uc-link.danger {
  color: #ff4d4f;
}

.rp-ops .uc-link.danger:hover {
  color: #ff7875;
}

.rp-ops .uc-link.match {
  color: var(--uc-primary);
  font-weight: 500;
}

/* 分页 */
.rp-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--uc-text-secondary);
  flex-wrap: wrap;
}

.rp-pager select {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: var(--uc-radius);
  font-size: 13px;
  background: #fff;
  color: var(--uc-text-secondary);
}

.rp-pager .pager-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rp-pager .pager-btns button {
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: var(--uc-radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--uc-text-secondary);
  transition: color 0.12s, border-color 0.12s;
}

.rp-pager .pager-btns button:hover:not(.on) {
  color: var(--uc-primary);
  border-color: var(--uc-primary);
}

.rp-pager .pager-btns button.on {
  border-color: var(--uc-primary);
  color: var(--uc-primary);
  font-weight: 500;
}

.rp-pager .goto {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rp-pager .goto input {
  width: 44px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #d9d9d9;
  border-radius: var(--uc-radius);
  text-align: center;
  font-size: 13px;
}

.rp-pager .goto input:focus {
  border-color: var(--uc-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 对接筛选 */
.md-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 20px;
  font-size: 14px;
}

.md-filters .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.md-filters .field label {
  font-size: 13px;
  color: var(--uc-text-secondary);
}

.md-filters input,
.md-filters select {
  padding: 0 11px;
  height: 32px;
  border: 1px solid #d9d9d9;
  border-radius: var(--uc-radius);
  font-size: 13px;
  font-family: inherit;
  min-width: 168px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.md-filters .date-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.md-filters .date-range input {
  width: 132px;
  min-width: 0;
}

.md-filter-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 0;
}

/* ── 匹配动画 ── */
.match-anim-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.match-anim-mask.open {
  display: flex;
}

.match-anim-box {
  background: #fff;
  border-radius: 8px;
  padding: 40px 48px 36px;
  text-align: center;
  min-width: 320px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.match-anim-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.match-anim-ring {
  position: absolute;
  inset: 0;
  border: 3px solid #e6f4ff;
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: matchSpin 1s linear infinite;
}

.match-anim-ring:nth-child(2) {
  inset: 14px;
  border-top-color: #36cfc9;
  animation-duration: 1.4s;
  animation-direction: reverse;
}

.match-anim-core {
  position: absolute;
  inset: 32px;
  background: linear-gradient(135deg, #1890ff, #36cfc9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  animation: matchPulse 1.2s ease-in-out infinite;
}

.match-anim-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.match-anim-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1890ff;
  animation: matchDot 1.2s ease-in-out infinite;
}

.match-anim-dots span:nth-child(2) { animation-delay: 0.2s; }
.match-anim-dots span:nth-child(3) { animation-delay: 0.4s; }

.match-anim-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--uc-text);
  margin-bottom: 8px;
}

.match-anim-box p {
  font-size: 13px;
  color: var(--uc-text-muted);
}

.match-anim-progress {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}

.match-anim-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1890ff, #36cfc9);
  border-radius: 2px;
  animation: matchProgress 2s ease-out forwards;
}

@keyframes matchSpin { to { transform: rotate(360deg); } }
@keyframes matchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes matchDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
@keyframes matchProgress { to { width: 100%; } }

/* ── 弹窗 ── */
.uc-modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 310;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.uc-modal-mask.open {
  display: flex;
}

.uc-modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.uc-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.uc-modal-hd h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--uc-text);
  margin: 0;
}

.uc-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 20px;
  color: var(--uc-text-muted);
  cursor: pointer;
  line-height: 1;
  border-radius: var(--uc-radius);
  transition: color 0.12s, background 0.12s;
}

.uc-modal-close:hover {
  color: var(--uc-text);
  background: #f5f5f5;
}

.uc-modal-bd {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.uc-modal-summary {
  font-size: 14px;
  color: var(--uc-text-secondary);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: var(--uc-radius);
  border: 1px solid #f0f0f0;
}

.uc-modal-summary em {
  font-style: normal;
  color: #ff4d4f;
  font-weight: 600;
}

.uc-modal-ft {
  padding: 12px 24px 16px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.uc-modal-ft .rp-btn {
  min-width: 88px;
}

/* ── 评价弹窗 ── */
.rate-stars {
  display: flex;
  gap: 6px;
  font-size: 26px;
  color: #d9d9d9;
  cursor: pointer;
  margin-bottom: 4px;
}

.rate-stars i.on {
  color: #faad14;
}

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

.rate-form-group label {
  display: block;
  font-size: 13px;
  color: var(--uc-text-secondary);
  margin-bottom: 8px;
}

.rate-form-group textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: var(--uc-radius);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rate-form-group textarea:focus {
  border-color: var(--uc-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.rate-target-info {
  font-size: 13px;
  color: var(--uc-text-secondary);
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fafafa;
  border-radius: var(--uc-radius);
  border: 1px solid #f0f0f0;
  line-height: 1.7;
}

.rate-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.rate-dim {
  text-align: center;
  padding: 12px 8px;
  border: 1px solid #f0f0f0;
  border-radius: var(--uc-radius);
  background: #fafafa;
}

.rate-dim span {
  display: block;
  font-size: 12px;
  color: var(--uc-text-muted);
  margin-bottom: 8px;
}

.rate-dim .mini-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  color: #d9d9d9;
  cursor: pointer;
}

.rate-dim .mini-stars i.on {
  color: #faad14;
}

.rate-stars-readonly {
  cursor: default;
  pointer-events: none;
}

.rate-stars-readonly i {
  cursor: default;
}

.rate-view-content {
  font-size: 14px;
  color: var(--uc-text);
  line-height: 1.7;
  padding: 12px 14px;
  background: #fafafa;
  border-radius: var(--uc-radius);
  border: 1px solid #f0f0f0;
  min-height: 60px;
}

@media (max-width: 900px) {
  .uc-shell {
    padding: 12px 12px 32px;
  }

  .uc-layout {
    flex-direction: column;
    min-height: auto;
  }

  .uc-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--uc-border);
    max-height: 280px;
  }

  .uc-content-hd {
    padding: 14px 16px 12px;
  }

  .rp-wrap {
    padding: 16px;
  }

  .rp-tabs {
    margin: -16px -16px 16px;
    padding: 0 16px;
    overflow-x: auto;
  }
}
