/* 用户中心页面样式 */

/* 面包屑导航 */
.breadcrumb-section {
  /* background-color: #ffffff; */
  padding: 4px 0;
  border-bottom: 1px solid #e8e8e8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.breadcrumb i {
  color: #5eb3f6;
  font-size: 13px;
}

.breadcrumb a {
  color: #5eb3f6;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #0088ff;
  text-decoration: underline;
}

.breadcrumb .separator {
  color: #999;
  margin: 0 4px;
}

.breadcrumb .current {
  color: #333;
}

/* 用户中心主体区域 */
.user-center-section {
  background-color: #f5f5f5;
  padding: 20px 0 40px;
  min-height: calc(100vh - 400px);
}

.user-center-layout {
  display: flex;
  gap: 0;
  border: 1px solid #e0e0e0;
  background: white;
}

/* 左侧边栏 */
.sidebar {
  width: 245px;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid #e8e8e8;
}

/* 用户信息卡片 */
.user-info-card {
  background: white;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #e8e8e8;
}

.user-avatar {
  margin-bottom: 12px;
}

.user-avatar i {
  font-size: 56px;
  color: #a8d4f7;
}

.user-id {
  font-size: 16px;
  color: #333;
  font-weight: 400;
}

/* 侧边栏导航 */
.sidebar-nav {
  background: transparent;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
  position: relative;
  background: white;
}

.sidebar-nav .nav-item:last-child {
  border-bottom: none;
}

.sidebar-nav .nav-item i:first-child {
  font-size: 16px;
  margin-right: 10px;
  color: #999;
  width: 18px;
  text-align: center;
}

.sidebar-nav .nav-item span {
  flex: 1;
  font-size: 18px;
}

.sidebar-nav .nav-item .arrow {
  font-size: 11px;
  color: #ccc;
  margin-left: auto;
}

.sidebar-nav .nav-item:hover {
  background-color: #f5f5f5;
}

.sidebar-nav .nav-item.active {
  background-color: #e6f7ff;
  color: #1890ff;
  border-left: 3px solid #1890ff;
  padding-left: 17px;
}

.sidebar-nav .nav-item.active i {
  color: #1890ff;
}

/* 右侧主内容区域 */
.user-main-content {
  flex: 1;
  background: white;
  padding: 25px 30px;
}

/* 搜索栏 */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}

.search-input {
  flex: 1;
  max-width: 420px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  font-size: 13px;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.search-input::placeholder {
  color: #bfbfbf;
}

.search-btn {
  height: 38px;
  padding: 0 24px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-btn:hover {
  background: #40a9ff;
}

.search-btn i {
  font-size: 13px;
}

/* 项目列表 */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 项目卡片 */
.project-item {
  border-bottom: 1px solid #e8e8e8;
  padding: 25px 0;
  transition: all 0.2s;
}

.project-item:first-child {
  padding-top: 0;
}

.project-item:last-child {
  border-bottom: none;
}

/* 项目头部 */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-title {
  font-size: 16px;
  color: #262626;
  font-weight: 600;
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 20px;
}

/* 按钮样式 */
.btn-outline {
  padding: 6px 20px;
  border: 1px solid #1890ff;
  background: white;
  color: #1890ff;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  height: 32px;
  line-height: 18px;
}

.btn-outline:hover {
  background: #1890ff;
  color: white;
}

.btn-primary {
  padding: 6px 20px;
  border: 1px solid #1890ff;
  background: white;
  color: #1890ff;
  border-radius: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  height: 32px;
  line-height: 18px;
}

.btn-primary:hover {
  background: #1890ff;
  color: white;
}

/* 项目信息 */
.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  line-height: 2;
}

.info-row .label {
  color: #595959;
  margin-right: 6px;
}

.info-row .value {
  color: #262626;
  margin-right: 20px;
}

.info-row .value.link {
  color: #1890ff;
  cursor: pointer;
  transition: color 0.3s;
  margin-right: 6px;
}

.info-row .value.link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.info-row .divider-dot {
  color: #d9d9d9;
  margin: 0 6px;
}

/* 状态标签 */
.status-pending {
  color: #ff4d4f !important;
}

.status-success {
  color: #262626 !important;
}

.status-processing {
  color: #1890ff !important;
}

.status-error {
  color: #ff4d4f !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .user-center-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-nav .nav-item {
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
  }

  .sidebar-nav .nav-item:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .user-main-content {
    padding: 20px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-input {
    max-width: 100%;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .project-actions {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-row .label,
  .info-row .value {
    margin-right: 8px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-nav .nav-item:nth-child(3n) {
    border-right: 1px solid #f0f0f0;
  }

  .sidebar-nav .nav-item:nth-child(2n) {
    border-right: none;
  }
}
