/* User center — 1400px 居中，顶栏 + 侧边栏 + 主内容 */

.user-center-shell {

  min-height: 100vh;

  background: #f5f6f8;

  padding: 0 0.75rem;

}



.site-shell-topbar {

  flex-shrink: 0;

}



.user-center-frame {

  width: 100%;

  max-width: 1400px;

  margin: 0 auto;

  flex: 1;

  display: flex;

  flex-direction: column;

  background: #fff;

  box-shadow: 0 0 0 1px #e5e7eb;

}



.user-center-frame > .d-flex.flex-grow-1 {

  flex: 1;

  min-height: 0;

}



.user-center-sidebar {

  width: 220px;

  flex-shrink: 0;

  background: #fff;

  border-right: 1px solid #e5e7eb;

  padding: 1rem 0;

}



.user-center-sidebar .nav-link {

  color: #303133;

  padding: 0.55rem 1.25rem;

  font-size: 14px;

  border-radius: 0;

  border-left: 3px solid transparent;

}



.user-center-sidebar .nav-link:hover {

  background: #f5f7fa;

  color: #303133;

}



.user-center-sidebar .nav-link.active {

  background: #fff5f8;

  color: #ff7da1;

  border-left-color: #ff7da1;

  font-weight: 500;

}



.user-center-main {

  flex: 1;

  padding: 1.5rem;

  min-width: 0;

  background: #fafafa;

}



.stat-tile {

  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 6px;

  padding: 1rem 1.25rem;

}



.stat-tile .label {

  font-size: 12px;

  color: #909399;

}



.stat-tile .value {

  font-size: 1.5rem;

  font-weight: 600;

  color: #303133;

}



.user-center-card {

  background: #fff;

  border: 1px solid #e5e7eb;

  border-radius: 6px;

}



.user-center-card .card-hd {

  padding: 0.875rem 1.25rem;

  border-bottom: 1px solid #e5e7eb;

  font-weight: 600;

  font-size: 14px;

}



.user-center-card .card-bd {

  padding: 1.25rem;

}



.btn-pi {

  background: #ff7da1;

  border-color: #ff7da1;

  color: #fff;

}



.btn-pi:hover {

  background: #ff6b94;

  border-color: #ff6b94;

  color: #fff;

}



.btn-pi:disabled {

  opacity: 0.6;

}



@media (max-width: 768px) {

  .user-center-sidebar {

    width: 100%;

    border-right: none;

    border-bottom: 1px solid #e5e7eb;

  }

  .user-center-sidebar .nav {

    flex-direction: row !important;

    flex-wrap: wrap;

  }

}

.sidebar-avatar-block {
  padding-top: 0.75rem;
}

.sidebar-avatar-link {
  display: inline-block;
  line-height: 0;
}

.sidebar-avatar-img,
.nav-user-avatar {
  object-fit: cover;
  border: 2px solid #e5e7eb;
  background: #f8f9fa;
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
}

.sidebar-avatar-img {
  width: 72px;
  height: 72px;
}

