.empower-profile-page {
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  color: #333;
  background: #fff;
  font-family: 'PingFang SC', Arial, 'Microsoft YaHei', sans-serif;
}

.empower-profile-page *,
.empower-profile-page *::before,
.empower-profile-page *::after {
  box-sizing: border-box;
}

.empower-profile-hero {
  display: flex;
  height: 180px;
  padding-top: 36px;
  align-items: center;
  flex-direction: column;
  background: #d9ebff url('/static/images/empower/profile_bg.png') no-repeat center /
    cover;
}

.empower-profile-avatar {
  width: 80px;
  height: 80px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #eaf3ff;
  object-fit: cover;
}

.empower-profile-hero strong {
  margin-top: 9px;
  color: #333;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.empower-profile-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.empower-profile-tabs {
  display: flex;
  height: 65px;
  align-items: stretch;
  justify-content: center;
  border-bottom: 1px solid #edf0f5;
  gap: 34px;
}

.empower-profile-tab {
  position: relative;
  min-width: 80px;
  padding: 0 8px;
  border: 0;
  color: #666;
  background: transparent;
  font-size: 16px;
  line-height: 64px;
  cursor: pointer;
}

.empower-profile-tab::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  background: transparent;
  content: '';
}

.empower-profile-tab.is-active {
  color: #333;
  font-weight: 600;
}

.empower-profile-tab.is-active::after {
  background: #3478ff;
}

.empower-profile-panel {
  padding: 20px 0 70px;
}

.empower-profile-panel[hidden] {
  display: none;
}

.empower-profile-course-grid,
.empower-profile-camp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
}

.empower-profile-state {
  display: flex;
  min-height: 220px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.empower-profile-course-card,
.empower-profile-camp-card {
  display: block;
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.empower-profile-course-card:hover,
.empower-profile-camp-card:hover {
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(32, 75, 142, 0.07);
}

.empower-profile-course-cover {
  position: relative;
  height: 165px;
  overflow: hidden;
  background: #edf2fa;
}

.empower-profile-course-cover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.65));
  content: '';
}

.empower-profile-course-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empower-profile-course-meta {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 12px;
  line-height: 14px;
}

.empower-profile-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.empower-profile-course-meta img {
  width: 14px;
  height: 14px;
}

.empower-profile-course-body {
  min-height: 112px;
  padding: 15px 15px 16px;
}

.empower-profile-course-body h2,
.empower-profile-camp-body h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.empower-profile-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 5px;
  border-radius: 3px;
  color: #4185ff;
  background: #f0f6ff;
  font-size: 12px;
  line-height: 18px;
}

.empower-profile-camp-cover {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.empower-profile-camp-body {
  min-height: 160px;
  padding: 14px 15px 16px;
}

.empower-profile-camp-body h2 {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empower-profile-camp-body p {
  margin: 10px 0 0;
  color: #858b95;
  font-size: 14px;
  line-height: 18px;
}

.empower-profile-camp-body p + p {
  margin-top: 8px;
}

.empower-profile-camp-body > span {
  display: block;
  width: 140px;
  height: 36px;
  margin: 14px auto 0;
  border: 1px solid #cfd3da;
  border-radius: 18px;
  color: #999;
  font-size: 15px;
  line-height: 34px;
  text-align: center;
}

.empower-profile-history {
  position: relative;
  padding: 9px 0 30px 34px;
}

.empower-profile-history::before {
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 12px;
  border-left: 1px dashed #bfd8ff;
  content: '';
}

.empower-profile-history.is-empty {
  padding-left: 0;
}

.empower-profile-history.is-empty::before {
  display: none;
}

.empower-history-item {
  position: relative;
  min-height: 106px;
}

.empower-history-play {
  position: absolute;
  top: -3px;
  left: -39px;
  width: 34px;
  height: 31px;
  object-fit: contain;
}

.empower-history-item > a {
  display: inline-block;
  color: #333;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}

.empower-history-item > a:hover {
  color: #2774ff;
}

.empower-history-item time {
  display: block;
  margin-top: 8px;
  color: #aaa;
  font-size: 13px;
  line-height: 18px;
}

.empower-history-progress {
  display: flex;
  margin-top: 8px;
  align-items: center;
  color: #999;
  font-size: 13px;
  line-height: 18px;
}

.empower-history-progress > div {
  width: 158px;
  height: 6px;
  margin: 0 10px;
  overflow: hidden;
  border-radius: 3px;
  background: #e6eef8;
}

.empower-history-progress i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #427bff;
}

.empower-history-progress em {
  color: #999;
  font-style: normal;
}

.empower-profile-orders {
  overflow-x: auto;
}

.empower-profile-orders table {
  width: 100%;
  border: 1px solid #e7e9ed;
  border-collapse: collapse;
  color: #555;
  background: #fff;
  font-size: 14px;
}

.empower-profile-orders th,
.empower-profile-orders td {
  height: 49px;
  padding: 0 29px;
  border-bottom: 1px solid #e7e9ed;
  text-align: left;
  white-space: nowrap;
}

.empower-profile-orders th {
  color: #444;
  background: #f5f6f8;
  font-weight: 600;
}

.empower-profile-orders tr:last-child td {
  border-bottom: 0;
}

.empower-profile-orders td.empower-profile-orders__empty {
  height: 220px;
  color: #999;
  text-align: center;
}

.empower-profile-pagination {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empower-profile-pagination[hidden] {
  display: none;
}

.empower-profile-pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dfe5ef;
  border-radius: 4px;
  color: #555f70;
  background: #fff;
  font-size: 14px;
  line-height: 34px;
  cursor: pointer;
}

.empower-profile-pagination button:hover:not(:disabled):not(.is-active) {
  color: #3174f5;
  border-color: #3174f5;
}

.empower-profile-pagination button:focus,
.empower-profile-pagination button:focus-visible {
  outline: none;
  box-shadow: none;
}

.empower-profile-pagination button.is-active {
  color: #fff;
  border-color: #3174f5;
  background: #3174f5;
  cursor: default;
}

.empower-profile-pagination button:disabled {
  color: #bcc3cf;
  background: #f7f9fc;
  cursor: not-allowed;
}

.empower-profile-pagination__ellipsis {
  min-width: 24px;
  color: #8a93a3;
  text-align: center;
}

@media (max-width: 1024px) {
  .empower-profile-course-grid,
  .empower-profile-camp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .empower-profile-page {
    margin-top: 0;
  }

  .empower-profile-hero {
    height: 170px;
    padding-top: 30px;
  }

  .empower-profile-container {
    width: min(100% - 28px, 600px);
  }

  .empower-profile-tabs {
    height: 58px;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 16px;
  }

  .empower-profile-tab {
    min-width: 76px;
    line-height: 57px;
  }

  .empower-profile-panel {
    padding-top: 16px;
  }

  .empower-profile-course-grid,
  .empower-profile-camp-grid {
    gap: 14px;
  }

  .empower-profile-orders table {
    min-width: 900px;
  }
}

@media (max-width: 520px) {
  .empower-profile-course-grid,
  .empower-profile-camp-grid {
    grid-template-columns: 1fr;
  }

  .empower-profile-course-cover,
  .empower-profile-camp-cover {
    height: auto;
    aspect-ratio: 600 / 350;
  }
}
