/* ===== 个人中心 user-center ===== */

/* ---------- 桌面端下拉入口 ---------- */
/* 导航项垂直居中：修复个人入口撑高 ul 后链接顶置、头像偏下的错位 */
.header .desktop-nav ul {
  align-items: center;
}
.header .desktop-nav ul > li {
  display: flex;
  align-items: center;
}
.uc-menu-item {
  position: relative;
  display: flex;
  align-items: center;
}
.uc-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: .92rem;
  padding: 2px 4px;
  font-family: inherit;
}
.uc-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a2e, #f5c842);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 600;
  flex: 0 0 auto;
}
.uc-name {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uc-caret {
  font-size: .7rem;
  opacity: .7;
  transition: transform .15s;
}
.uc-menu-item.uc-open .uc-caret {
  transform: rotate(180deg);
}
.uc-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 168px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  padding: 6px;
  display: none;
  z-index: 1000;
}
.uc-menu-item.uc-open .uc-dropdown {
  display: block;
}
.uc-dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: .9rem;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.uc-dropdown a:hover {
  background: #fff5e0;
  color: #e8860a;
}
.uc-dropdown a.uc-danger {
  color: #d4380d;
}
.uc-dropdown a.uc-danger:hover {
  background: #fff1f0;
  color: #d4380d;
}

/* ---------- 移动端滑出菜单内的个人中心块 ---------- */
.uc-mobile {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.uc-mobile-name {
  padding: 6px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.uc-mobile a {
  display: block;
  padding: 12px 14px;
  font-size: .95rem;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.uc-mobile a:hover {
  color: #e8860a;
}
.uc-mobile a.uc-danger {
  color: #d4380d;
}

/* ---------- 通用模态 ---------- */
.uc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .45);
}
.uc-modal-overlay.uc-show {
  display: flex;
}
.uc-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  padding: 22px 22px 24px;
}
.uc-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.uc-modal-close:hover {
  color: #333;
}
.uc-modal-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: #333;
}

/* 个人信息展示 */
.uc-info {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}
.uc-info-row {
  display: flex;
  padding: 11px 14px;
  font-size: .9rem;
  border-bottom: 1px solid #f5f5f5;
}
.uc-info-row:last-child {
  border-bottom: none;
}
.uc-info-label {
  flex: 0 0 84px;
  color: #999;
}
.uc-info-value {
  flex: 1;
  color: #333;
  word-break: break-all;
}
.uc-resume {
  margin-top: 14px;
  text-align: center;
}
.uc-resume a {
  color: #e8860a;
  font-weight: 600;
  text-decoration: none;
}
.uc-resume a:hover {
  text-decoration: underline;
}

/* 编辑表单 */
.uc-field {
  margin-bottom: 13px;
}
.uc-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  color: #666;
}
.uc-field input,
.uc-field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: .92rem;
  color: #333;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  background: #fff;
  font-family: inherit;
}
.uc-field input:focus,
.uc-field select:focus {
  border-color: #f5a623;
}
.uc-error {
  min-height: 18px;
  margin-bottom: 8px;
  font-size: .82rem;
  color: #d4380d;
}
.uc-file-hint {
  margin: -8px 0 12px;
  font-size: .78rem;
  color: #999;
}

/* 投递记录 */
.uc-records {
  list-style: none;
  margin: 0;
  padding: 0;
}
.uc-record-item {
  padding: 12px 4px;
  border-bottom: 1px solid #f0f0f0;
}
.uc-record-item:last-child {
  border-bottom: none;
}
.uc-record-main {
  font-size: .92rem;
  color: #333;
}
.uc-record-time {
  margin-top: 4px;
  font-size: .8rem;
  color: #999;
}

/* 空态 / 加载 */
.uc-empty,
.uc-loading {
  padding: 26px 8px;
  text-align: center;
  font-size: .92rem;
  color: #999;
}

/* 操作按钮 */
.uc-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.uc-btn {
  flex: 1;
  height: 44px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: .95rem;
  cursor: pointer;
  font-family: inherit;
}
.uc-btn:hover {
  border-color: #ccc;
}
.uc-btn-primary {
  border: none;
  background: linear-gradient(135deg, #ff9a2e, #f5c842);
  color: #fff;
  font-weight: 600;
}
.uc-btn-primary:hover {
  opacity: .92;
}
.uc-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Toast */
.uc-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, .82);
  color: #fff;
  padding: 11px 20px;
  border-radius: 22px;
  font-size: .9rem;
  z-index: 100000;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.uc-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.uc-toast-ok {
  background: rgba(56, 158, 13, .92);
}

@media (max-width: 480px) {
  .uc-modal {
    padding: 18px 16px 20px;
  }
}

/* ---------- banner 右上角个人中心入口（无导航条页面） ---------- */
.uc-corner {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 20;
}
.uc-corner .uc-menu-item {
  display: block;
}
.uc-corner .uc-trigger {
  /* banner 是彩色大图，用半透明白胶囊保证任何底色下都可读 */
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.uc-corner .uc-trigger:hover {
  background: #fff;
}
@media (max-width: 767px) {
  .uc-corner {
    top: 10px;
    right: 10px;
  }
  .uc-corner .uc-name {
    max-width: 72px;
  }
}
