@charset "utf-8";

/* ================= 页面基础 ================= */

.ai-skill-up-page {
  min-height: 100vh;
  margin: 0;
  color: #17191d;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 211, 242, .10), transparent 26%),
    radial-gradient(circle at 94% 10%, rgba(109, 40, 217, .10), transparent 26%),
    #f8f9fb;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ai-skill-up-page *,
.ai-skill-up-page *::before,
.ai-skill-up-page *::after {
  box-sizing: border-box;
}

.ai-skill-up-page a {
  color: inherit;
  text-decoration: none;
}

.ai-skill-up-page :focus-visible {
  outline: 3px solid rgba(0, 170, 199, .42);
  outline-offset: 2px;
}

.ai-skill-up-page [hidden] {
  display: none !important;
}

/* ================= 顶部工具条 ================= */

.su-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #eceef2;
  background: rgba(248, 249, 251, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.su-top__inner {
  display: flex;
  width: min(1080px, calc(100% - 48px));
  min-height: 54px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.su-top__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #e5e8ed;
  border-radius: 999px;
  background: #fff;
  color: #626b7a;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease;
}

.su-top__back:hover {
  border-color: #a9e6f2;
  color: #008ea6;
}

.su-top__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #26272a;
  font-size: 14px;
  font-weight: 800;
}

.su-top__title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(100deg, #00aac7, #00d3f2);
}

/* ================= 通用按钮 ================= */

.su-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 30px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: box-shadow .2s ease, filter .2s ease, border-color .2s ease, background-color .2s ease;
}

.su-btn--cyan {
  color: #04161e;
  background: linear-gradient(100deg, #00aac7 0%, #00d3f2 100%);
}

.su-btn--cyan:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 30px -8px rgba(0, 211, 242, .55);
}

.su-btn--dark {
  color: #fff;
  background: #262626;
  border-color: rgba(255, 255, 255, .2);
}

/* 链接形式的按钮优先级高于 `.ai-skill-up-page a`，否则深色按钮会被覆盖成深色文字。 */
a.su-btn--cyan {
  color: #04161e;
}

a.su-btn--dark,
a.su-btn--dark:hover {
  color: #fff;
}

.su-btn--dark:hover {
  background: #333;
}

.su-btn--sm {
  padding: 9px 22px;
  font-size: 13.5px;
}

/* ================= 首屏测评引导 ================= */

.su-cta {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 6px;
  text-align: center;
}

.su-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 211, 242, .35);
  border-radius: 999px;
  background: rgba(0, 211, 242, .08);
  color: #008ea6;
  font-size: 12px;
  font-weight: 800;
}

.su-cta__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d3f2;
  animation: su-pulse 1.6s ease-in-out infinite;
}

@keyframes su-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

.su-cta__title {
  margin: 16px 0 0;
  color: #17191d;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.4;
}

.su-cta__title em {
  color: #008ea6;
  font-style: normal;
}

.su-cta__lead {
  max-width: 640px;
  margin: 12px auto 0;
  color: #5b6472;
  font-size: 15px;
  line-height: 1.7;
}

.su-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

/* ================= 品牌区 ================= */

.su-brand {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 4px;
  text-align: center;
}

.su-brand__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.su-brand__title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  background: linear-gradient(105deg, #6c61cc 0%, #5147b6 46%, #3b328f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.su-brand__title span {
  color: #9aa2b1;
  -webkit-text-fill-color: #9aa2b1;
}

.su-brand__pro {
  padding: 4px 11px;
  border: 1px solid #e5e8ed;
  border-radius: 999px;
  background: #f1f3f5;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}

/* ================= 主内容大卡 ================= */

.su-card {
  position: relative;
  width: min(1080px, calc(100% - 48px));
  margin: 40px auto 0;
  padding: 38px 46px 30px;
  border: 1px solid #e9ebef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px -45px rgba(23, 25, 29, .45);
  overflow: hidden;
}

.su-card::before,
.su-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.su-card::before {
  top: -96px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 211, 242, .14), transparent 70%);
}

.su-card::after {
  bottom: -128px;
  left: -80px;
  width: 384px;
  height: 384px;
  background: radial-gradient(circle, rgba(179, 48, 228, .13), transparent 70%);
}

.su-card__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}

.su-card__head h3 {
  margin: 0;
  color: #17191d;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.su-card__head em {
  font-size: 22px;
  font-style: normal;
}

.su-card__head p {
  margin: 0;
  color: #5b6472;
  font-size: 15px;
}

.su-card__hint {
  position: relative;
  margin: 30px 0 0;
  color: #8b93a1;
  font-size: 14px;
}

.su-card__examples {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  align-items: flex-start;
}

.su-card__examples button {
  padding: 0;
  border: 0;
  background: none;
  color: #5b6472;
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}

.su-card__examples button:hover {
  color: #17191d;
}

.su-card__actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 36px;
}

.su-card__actions svg {
  width: 14px;
  height: 14px;
}

/* ================= 课程列表 ================= */

.su-feed {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 24px;
  scroll-margin-top: 70px;
}

.su-feed__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.su-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #e9ebef;
  border-radius: 999px;
  background: #f1f3f5;
}

.su-tab {
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b6472;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

.su-tab:hover {
  color: #17191d;
}

.su-tab.is-active {
  color: #17191d;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px -4px rgba(23, 25, 29, .35);
}

.su-feed__count {
  margin: 0;
  color: #8b93a1;
  font-size: 14px;
}

.su-empty {
  margin-top: 40px;
  padding: 64px 24px;
  border: 1px dashed #dfe3ea;
  border-radius: 18px;
  text-align: center;
}

.su-empty__icon {
  margin-bottom: 12px;
  font-size: 36px;
}

.su-empty__title {
  margin: 0;
  color: #5b6472;
  font-size: 16px;
  font-weight: 700;
}

.su-empty__note {
  margin: 6px 0 0;
  color: #8b93a1;
  font-size: 14px;
}

.su-featured,
.su-grid {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.su-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 四列网格卡片更窄，统计信息允许换行，避免挤成两行错位。 */
.su-grid .su-card-item__foot {
  flex-wrap: wrap;
  row-gap: 6px;
  font-size: 11.5px;
}

.su-grid .su-card-item__footGroup {
  gap: 10px;
}

.su-grid .su-card-item__footGroup svg {
  width: 12px;
  height: 12px;
}

.su-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.su-card-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #e9ebef;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.165, .84, .44, 1), box-shadow .35s ease, border-color .25s ease;
}

.su-card-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 211, 242, .55);
  box-shadow: 0 24px 50px -20px rgba(23, 25, 29, .38);
}

.su-card-item__cover {
  position: relative;
  height: 168px;
  overflow: hidden;
}

.su-card-item--featured .su-card-item__cover {
  height: 232px;
}

.su-card-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.165, .84, .44, 1);
}

.su-card-item:hover .su-card-item__cover img {
  transform: scale(1.07);
}

.su-card-item__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 34, 0) 45%, rgba(6, 13, 34, .62));
}

.su-card-item__coverBadges {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.su-badge {
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.su-badge--rating {
  background: rgba(0, 0, 0, .5);
}

.su-badge--hot {
  background: #c0183c;
}

.su-badge--new {
  background: #00aac7;
}

.su-badge--free {
  background: #10b981;
}

.su-card-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 14px;
}

.su-card-item__titleRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.su-card-item__title {
  display: block;
  margin: 0;
  color: #17191d;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  /* 标题最多两行，超出省略，避免长课名把卡片撑高 */
  max-height: 2.7em;
  overflow: hidden;
}

.su-card-item__desc {
  /* 简介最多三行，保证不同课程的卡片高度与数据行位置一致 */
  display: -webkit-box;
  margin: 6px 0 0;
  color: #5b6472;
  font-size: 13px;
  line-height: 1.65;
  max-height: 4.95em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.su-card-item__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef7fa;
  color: #008ea6;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}

.su-card-item__pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(100deg, #00aac7, #00d3f2);
  color: #04161e;
  font-size: 12px;
  font-weight: 800;
}

.su-card-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* 数据行固定贴在卡片底部，简介长短不影响对齐 */
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
  color: #8b93a1;
  font-size: 12px;
}

.su-card-item__footGroup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.su-card-item__footGroup svg {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  vertical-align: -2px;
}

.su-card-item__footLike {
  color: #5b6472;
}

.su-card-item__badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #e5e8ed;
  border-radius: 6px;
  color: #5b6472;
  font-size: 10px;
  font-weight: 600;
}

.su-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 20px;
  border: 1px dashed #dfe3ea;
  border-radius: 18px;
  background: #f1f3f5;
  color: #5b6472;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease;
}

.su-more:hover {
  border-color: rgba(0, 211, 242, .5);
  color: #17191d;
}

.su-more span {
  color: #008ea6;
}

/* ================= 页脚 ================= */

.su-foot {
  border-top: 1px solid #eceef2;
  background: #fff;
}

.su-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

.su-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17191d;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
}

.su-foot__brand i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff3b3b, #b30000);
}

.su-foot__copy {
  color: #8b93a1;
  font-size: 13px;
}

.su-foot__link {
  color: #8b93a1;
  font-size: 13px;
}

.su-foot__link:hover {
  color: #008ea6;
}

/* ================= 弹窗 ================= */

.su-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 7, 18, .68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.su-modal__card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  border: 1px solid #e9ebef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
  overflow: auto;
}

.su-modal__cover {
  position: relative;
  height: 144px;
}

.su-modal__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.su-modal__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 34, .1), rgba(6, 13, 34, .8));
}

.su-modal__badge {
  position: absolute;
  bottom: 12px;
  left: 20px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(100deg, #00aac7, #00d3f2);
  color: #04161e;
  font-size: 12px;
  font-weight: 800;
}

.su-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.su-modal__close:hover {
  background: rgba(0, 0, 0, .72);
}

.su-modal__body {
  padding: 22px 24px 24px;
}

.su-modal__title {
  margin: 0;
  color: #17191d;
  font-size: 19px;
  font-weight: 800;
}

.su-modal__note {
  margin: 6px 0 0;
  color: #5b6472;
  font-size: 14px;
  line-height: 1.65;
}

.su-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: #5b6472;
  font-size: 12px;
}

.su-modal__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.su-modal__meta svg {
  width: 13px;
  height: 13px;
}

.su-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.su-form input,
.su-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  background: #fff;
  color: #17191d;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.su-form input:focus,
.su-form textarea:focus {
  border-color: #00aac7;
}

.su-form textarea {
  resize: none;
}

.su-form__error {
  margin: 0;
  color: #d90000;
  font-size: 13px;
}

.su-form__submit {
  width: 100%;
  border-radius: 12px;
}

.su-form__hint {
  color: #8b93a1;
  font-size: 13px;
  text-align: center;
}

.su-form__hint b {
  color: #17191d;
}

.su-modal__success {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 170, 199, .3);
  border-radius: 14px;
  background: rgba(0, 211, 242, .08);
  color: #17191d;
  font-size: 14px;
  line-height: 1.7;
}

.su-modal__success p {
  margin: 0;
}

.su-modal__success .su-form__submit {
  margin-top: 14px;
}

/* ================= 响应式 ================= */

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

  .su-brand__title {
    font-size: 36px;
  }
}

@media (max-width: 760px) {
  .su-top__inner,
  .su-cta,
  .su-brand,
  .su-card,
  .su-feed,
  .su-foot__inner {
    width: calc(100% - 32px);
  }

  .su-cta {
    padding-top: 22px;
  }

  .su-cta__title {
    font-size: 23px;
  }

  .su-brand__title {
    font-size: 28px;
  }

  .su-brand__head {
    gap: 10px;
  }

  .su-card {
    margin-top: 28px;
    padding: 26px 22px 22px;
    border-radius: 20px;
  }

  .su-card__head h3 {
    font-size: 26px;
  }

  .su-card__head p {
    text-align: left;
  }

  .su-card__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .su-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .su-featured .su-card-item__cover {
    height: 200px;
  }

  .su-foot__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .su-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .su-cta__actions .su-btn {
    width: 100%;
  }

  .su-modal__body {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-skill-up-page * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .su-card-item:hover {
    transform: none;
  }
}
