/**
 * 个人中心 / 公开主页 / 职业认证 — 腾讯云开发者社区风格
 */
body.page-user-home,
body.page-profile,
body.page-career {
  background: #f2f3f5 !important;
}

.uc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ===== 公开主页 Hero ===== */
.uc-hero {
  position: relative;
  margin: 0 -16px 0;
  padding: 36px 16px 0;
  background:
    radial-gradient(ellipse 40% 70% at 85% 20%, rgba(0, 120, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 30% 50% at 12% 80%, rgba(80, 160, 255, 0.12), transparent 50%),
    linear-gradient(160deg, #1a1f2e 0%, #2a3348 48%, #1e2536 100%);
  overflow: hidden;
}
.uc-hero::before,
.uc-hero::after {
  content: '';
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.uc-hero::before {
  width: 72px;
  height: 56px;
  right: 18%;
  top: 28px;
  transform: rotate(-12deg);
}
.uc-hero::after {
  width: 48px;
  height: 48px;
  right: 10%;
  top: 70px;
  border-radius: 50%;
}
.uc-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}
.uc-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  background: #fff;
  margin-bottom: -32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
}
.uc-hero-meta {
  flex: 1;
  min-width: 0;
  padding-bottom: 28px;
  color: #fff;
}
.uc-hero-meta h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.uc-lv-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  background: #ff8a3d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}
.uc-hero-uid {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.uc-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}
.uc-hero-actions .uc-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 32px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.uc-hero-actions .uc-btn.primary {
  background: #0052d9;
  border-color: #0052d9;
}
.uc-hero-actions .uc-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.uc-hero-actions .uc-btn.primary:hover {
  background: #0046c0;
}

.uc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  margin-top: 48px;
}

/* Tabs */
.uc-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  min-height: 360px;
}
.uc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
  padding: 0 8px;
  border-bottom: 1px solid #e7e7e7;
  overflow-x: auto;
}
.uc-tabs a {
  position: relative;
  padding: 14px 14px 12px;
  font-size: 14px;
  color: #1f2329;
  text-decoration: none;
  white-space: nowrap;
}
.uc-tabs a:hover { color: #0052d9; }
.uc-tabs a.active {
  color: #0052d9;
  font-weight: 650;
}
.uc-tabs a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: #0052d9;
  border-radius: 1px;
}
.uc-panel-body { padding: 20px 18px 28px; }

.uc-empty {
  text-align: center;
  padding: 56px 16px 40px;
  color: #8a919f;
}
.uc-empty-illu {
  width: 120px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #e8f3ff, #d6e8ff);
  position: relative;
}
.uc-empty-illu::after {
  content: '✈';
  position: absolute;
  right: 18px;
  top: 22px;
  font-size: 28px;
  opacity: 0.85;
}
.uc-empty p { margin: 0 0 10px; font-size: 14px; }
.uc-empty a {
  color: #0052d9;
  text-decoration: none;
  font-size: 13px;
}
.uc-empty a:hover { text-decoration: underline; }

.uc-feed-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
}
.uc-feed-item:last-child { border-bottom: 0; }
.uc-feed-item a.title {
  color: #1f2329;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.uc-feed-item a.title:hover { color: #0052d9; }
.uc-feed-item .excerpt {
  margin-top: 6px;
  font-size: 13px;
  color: #646a73;
  line-height: 1.6;
}
.uc-feed-item .meta {
  margin-top: 8px;
  font-size: 12px;
  color: #8a919f;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.uc-feed-item .tag {
  background: #f2f3f5;
  padding: 1px 6px;
  border-radius: 3px;
}

/* Sidebar cards */
.uc-side { display: flex; flex-direction: column; gap: 12px; }
.uc-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 16px 18px;
}
.uc-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.uc-card-hd h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2329;
}
.uc-card-hd a {
  font-size: 12px;
  color: #8a919f;
  text-decoration: none;
}
.uc-card-hd a:hover { color: #0052d9; }
.uc-level-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.uc-level-row .lv {
  font-size: 22px;
  font-weight: 800;
  color: #0052d9;
}
.uc-level-row .pts {
  font-size: 13px;
  color: #646a73;
}
.uc-progress {
  height: 6px;
  border-radius: 3px;
  background: #eef2f7;
  overflow: hidden;
}
.uc-progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #69b1ff, #0052d9);
  border-radius: 3px;
}
.uc-level-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8a919f;
  line-height: 1.5;
}
.uc-task-list { list-style: none; margin: 0; padding: 0; }
.uc-task-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f6f7;
  text-decoration: none;
  color: #1f2329;
  font-size: 13px;
}
.uc-task-list li:last-child a { border-bottom: 0; }
.uc-task-list li a:hover { color: #0052d9; }
.uc-task-list .reward {
  color: #8a919f;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 8px;
}
.uc-intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.uc-intro-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 13px;
  color: #646a73;
  line-height: 1.5;
}
.uc-intro-list .ico {
  width: 18px;
  text-align: center;
  flex: 0 0 auto;
  opacity: 0.7;
}
.uc-intro-list .empty { color: #c0c4cc; }

.uc-pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-top: 16px;
  flex-wrap: wrap;
}
.uc-pager a,
.uc-pager span {
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  color: #646a73;
  background: #f2f3f5;
  padding: 0 8px;
}
.uc-pager .current {
  background: #0052d9;
  color: #fff;
}

/* ===== 个人中心（资料页）侧栏 ===== */
.uc-profile-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding-top: 20px;
}
.uc-side-nav {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 12px 10px 16px;
  height: fit-content;
}
.uc-side-nav .uc-side-head {
  text-align: center;
  padding: 12px 8px 16px;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 8px;
}
.uc-side-nav .uc-side-head img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8f1ff;
}
.uc-side-nav .uc-side-head h3 {
  margin: 10px 0 4px;
  font-size: 16px;
}
.uc-side-nav .uc-side-head p {
  margin: 0;
  font-size: 12px;
  color: #8a919f;
}
.uc-menu {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}
.uc-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin: 2px 0;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2329;
  font-size: 14px;
}
.uc-menu a:hover,
.uc-menu a.active {
  background: #eef2f6;
}
.uc-menu .pix {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex: 0 0 auto;
  filter: saturate(1.1);
}
.uc-main-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 22px 24px 28px;
}
.uc-main-card > h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 750;
  color: #1f2329;
}

/* ===== 职业认证表单 ===== */
.uc-career-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.uc-career-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 14px;
}
.uc-career-tabs a {
  color: #646a73;
  text-decoration: none;
}
.uc-career-tabs a.active {
  color: #0052d9;
  font-weight: 650;
}
.uc-career-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 28px 32px 32px;
}
.uc-career-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}
.uc-career-card .sub {
  margin: 0 0 24px;
  color: #8a919f;
  font-size: 14px;
}
.uc-form-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}
.uc-form-row > label {
  padding-top: 9px;
  font-size: 14px;
  color: #1f2329;
  text-align: right;
}
.uc-form-row > label .req {
  color: #e34d59;
  margin-right: 2px;
}
.uc-form-row .field input,
.uc-form-row .field select {
  width: 100%;
  max-width: 420px;
  height: 36px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
}
.uc-form-row .field input:focus,
.uc-form-row .field select:focus {
  outline: none;
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.12);
}
.uc-form-row .hint {
  margin-top: 6px;
  font-size: 12px;
  color: #8a919f;
}
.uc-form-row .hint.req-color { color: #e34d59; }
.uc-email-row {
  display: flex;
  gap: 10px;
  max-width: 420px;
  align-items: center;
}
.uc-email-row input { flex: 1; max-width: none !important; }
.uc-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #0052d9;
  color: #fff !important;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.uc-btn-blue:hover { background: #0046c0; }
.uc-btn-blue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.uc-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid #0052d9;
  background: #fff;
  color: #0052d9 !important;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none !important;
}
.uc-proof-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.uc-proof-preview {
  width: 140px;
  height: 140px;
  background: #f2f3f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a919f;
  font-size: 13px;
  overflow: hidden;
  border: 1px dashed #d0d5dd;
}
.uc-proof-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uc-proof-actions {
  flex: 1;
  min-width: 200px;
}
.uc-about {
  margin-top: 8px;
  background: #ebf2ff;
  border-radius: 8px;
  padding: 16px 18px;
  color: #3b4453;
  font-size: 13px;
  line-height: 1.7;
}
.uc-about h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1f2329;
}
.uc-about ol {
  margin: 0;
  padding-left: 18px;
}
.uc-about ul {
  margin: 6px 0 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 24px;
}
.uc-career-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.uc-career-actions .uc-btn-blue,
.uc-career-actions .uc-btn-ghost {
  min-width: 96px;
  height: 40px;
}
.uc-status-banner {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
}
.uc-status-banner.pending { background: #fff7e8; color: #b25e09; }
.uc-status-banner.approved { background: #f6ffed; color: #389e0d; }
.uc-status-banner.rejected { background: #fff2f0; color: #cf1322; }

@media (max-width: 960px) {
  .uc-body,
  .uc-profile-layout {
    grid-template-columns: 1fr;
  }
  .uc-hero-inner { flex-wrap: wrap; }
  .uc-hero-avatar { margin-bottom: 0; }
  .uc-body { margin-top: 20px; }
  .uc-form-row {
    grid-template-columns: 1fr;
  }
  .uc-form-row > label { text-align: left; padding-top: 0; }
  .uc-about ul { columns: 1; }
}
