/* ============================================
   用户中心（个人/会员中心）样式
   唯一依赖：variables.css 设计令牌（颜色/圆角/阴影/字体只用 var(--*)）
   布局：左侧栏（头像 + 导航） + 右侧内容，移动端自动堆叠
   ============================================ */

/* ---------- 侧栏外壳 ---------- */
.uc-sidebar {
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: sticky;
  top: 88px;            /* 避开顶部导航 */
}

/* ---------- 头像 / 资料头部 ---------- */
.uc-profile {
  padding: 1.6rem 1rem 1.3rem;
  text-align: center;
  color: #fff;
  background: var(--gradient-brand);   /* Logo 主蓝同色系渐变 */
}
.uc-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  display: block;
}
.uc-avatar-fallback {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 32px;
  font-weight: 600;
}
.uc-name {
  font-weight: 600;
  font-size: 1.02rem;
  margin: .65rem 0 .15rem;
}
.uc-level {
  font-size: .8rem;
  opacity: .92;
}
.uc-since {
  font-size: .72rem;
  opacity: .8;
  margin-top: .3rem;
}

/* ---------- 导航 ---------- */
.uc-nav {
  padding: .6rem;
}
.uc-section {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  padding: .85rem .75rem .35rem;
}
.uc-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .62rem .8rem;
  margin-bottom: .15rem;
  border-radius: var(--radius-nav);
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.uc-link i {
  font-size: 1.1rem;
  flex-shrink: 0;
  /* 定宽居中：即使某个图标缺失，所有菜单项文字也能对齐 */
  width: 1.4rem;
  text-align: center;
}
.uc-link:hover {
  background: var(--brand-bg);
  color: var(--brand-dark);
  text-decoration: none;
}
.uc-link.active {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.uc-link .badge {
  margin-left: auto;
}
.uc-divider {
  height: 1px;
  background: var(--border);
  margin: .55rem .75rem;
}

/* ---------- 统计卡片（会员中心仪表盘）---------- */
.uc-stat {
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--brand);
  background: #fff;
}
.uc-stat .uc-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.uc-stat .uc-stat-label {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: .15rem;
}
.uc-stat .uc-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.uc-stat .uc-stat-foot {
  font-size: .76rem;
  color: var(--text-muted);
  margin-top: .35rem;
}
.uc-stat a {
  text-decoration: none;
  font-weight: 500;
}

/* 配色变体（全部取自 Logo 色板） */
.uc-stat.brand {
  border-left-color: var(--brand);
}
.uc-stat.brand .uc-stat-icon {
  background: var(--brand-bg);
  color: var(--brand);
}
.uc-stat.brand a { color: var(--brand); }

.uc-stat.success {
  border-left-color: var(--success);
}
.uc-stat.success .uc-stat-icon {
  background: var(--success-bg);
  color: var(--success);
}
.uc-stat.success a { color: var(--success); }

.uc-stat.orange {
  border-left-color: var(--logo-orange);
}
.uc-stat.orange .uc-stat-icon {
  background: var(--accent-50);
  color: var(--logo-orange);
}
.uc-stat.orange a { color: var(--logo-orange); }

.uc-stat.teal {
  border-left-color: var(--logo-teal);
}
.uc-stat.teal .uc-stat-icon {
  background: #e6f7f4;
  color: var(--logo-teal);
}
.uc-stat.teal a { color: var(--logo-teal); }

/* 最近动态图标圆 */
.uc-activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---------- 移动端：侧栏不再吸顶，宽度撑满 ---------- */
@media (max-width: 767.98px) {
  .uc-sidebar {
    position: static;
  }
}
