/* 云学院课程库（2026-10 版式）：类别/标签筛选 + 排序分页 + 五列封面网格 */
.dashboard-body.dashboard-page-tutorial {
  background: #ffffff;
}

.dashboard-page-tutorial .dashboard-main {
  padding-bottom: 0;
}

.dashboard-page-tutorial .dashboard-top-nav-link.is-active {
  color: #2f9e1a;
}

.dashboard-page-tutorial .dashboard-top-nav-link.is-active::after {
  background: #2f9e1a;
}

/* 顶栏与其他页面保持一致：左右仅 28px 内边距（不再做 1440 居中收窄） */
@media (min-width: 1181px) {
  .dashboard-page-tutorial .dashboard-topbar {
    padding-left: 28px;
    padding-right: 28px;
  }
}

/* 顶部课程搜索 */
.dashboard-page-tutorial .ta-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f2f3f5;
  cursor: text;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.dashboard-page-tutorial .ta-search:focus-within {
  border-color: #d3d9e1;
  background: #ffffff;
}

.dashboard-page-tutorial .ta-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #333333;
  font-size: 14px;
}

.dashboard-page-tutorial .ta-search input::placeholder {
  color: #9aa3ad;
}

.dashboard-page-tutorial .ta-search input::-webkit-search-cancel-button {
  display: none;
}

.dashboard-page-tutorial .ta-search-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #666666;
}

.dashboard-page-tutorial .ta-search-icon svg {
  width: 18px;
  height: 18px;
}

/* 页面与筛选区 */
.dashboard-page-tutorial .ta-page {
  width: 100%;
}

.dashboard-page-tutorial .ta-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 38px 0 90px;
}

/* 轮播海报下方的云学院精选推荐（与首页同款模块，宽度与课程库对齐） */
.dashboard-page-tutorial .tutorial-featured-courses {
  padding: 26px 0 4px;
}

.dashboard-page-tutorial .tutorial-featured-courses-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.dashboard-page-tutorial .tutorial-featured-courses .tutorial-featured-shell {
  width: 100%;
  max-width: 100%;
}

.dashboard-page-tutorial .ta-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-page-tutorial .ta-filters {
  display: grid;
}

.dashboard-page-tutorial .ta-filter-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.dashboard-page-tutorial .ta-filter-line + .ta-filter-line {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid #ececec;
}

.dashboard-page-tutorial .ta-filter-label {
  flex: 0 0 auto;
  padding-top: 4px;
  color: #333333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.dashboard-page-tutorial .ta-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

.dashboard-page-tutorial .ta-filter-button {
  padding: 4px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #333333;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.dashboard-page-tutorial .ta-filter-button:hover {
  color: #d94a45;
}

.dashboard-page-tutorial .ta-filter-button.is-active {
  background: #fdeeee;
  color: #d94a45;
}

/* 排序与分页 */
.dashboard-page-tutorial .ta-listbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 20px;
}

.dashboard-page-tutorial .ta-listbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.dashboard-page-tutorial .ta-sort {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dashboard-page-tutorial .ta-sort-button {
  padding: 7px 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #333333;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.dashboard-page-tutorial .ta-sort-button:hover {
  color: #2f9e1a;
}

.dashboard-page-tutorial .ta-sort-button.is-active {
  background: #4b4b4b;
  color: #ffffff;
}

.dashboard-page-tutorial .ta-favorites-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  background: #ffffff;
  color: #333333;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dashboard-page-tutorial .ta-favorites-toggle:hover {
  border-color: #cfe3c8;
  color: #2f9e1a;
}

.dashboard-page-tutorial .ta-favorites-toggle.is-active {
  border-color: #2f9e1a;
  background: #2f9e1a;
  color: #ffffff;
}

.dashboard-page-tutorial .ta-favorites-star {
  color: #f0b429;
  font-size: 14px;
  line-height: 1;
}

.dashboard-page-tutorial .ta-favorites-toggle.is-active .ta-favorites-star {
  color: #ffe08a;
}

.dashboard-page-tutorial .ta-favorites-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.dashboard-page-tutorial .ta-favorites-toggle.is-active .ta-favorites-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.dashboard-page-tutorial .ta-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666666;
  font-size: 14px;
  white-space: nowrap;
}

.dashboard-page-tutorial .ta-total {
  margin-right: 10px;
  color: #666666;
}

.dashboard-page-tutorial .ta-page-info {
  color: #999999;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.dashboard-page-tutorial .ta-page-info strong {
  color: #222222;
  font-size: 15px;
  font-weight: 600;
}

.dashboard-page-tutorial .ta-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0 0 2px;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  background: #ffffff;
  color: #9a9a9a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.dashboard-page-tutorial .ta-page-button:hover:not(:disabled) {
  border-color: #2f9e1a;
  color: #2f9e1a;
}

.dashboard-page-tutorial .ta-page-button:disabled {
  border-color: #ededed;
  color: #d3d3d3;
  cursor: default;
}

/* 课程网格 */
.dashboard-page-tutorial .ta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 46px 22px;
}

.dashboard-page-tutorial .ta-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-page-tutorial .ta-card-cover-wrap {
  position: relative;
  width: 100%;
}

.dashboard-page-tutorial .ta-card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.16 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f5;
  text-decoration: none;
}

.dashboard-page-tutorial .ta-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  transition: transform 0.35s ease;
}

.dashboard-page-tutorial .ta-card:hover .ta-card-cover img {
  transform: scale(1.035);
}

.dashboard-page-tutorial .ta-card-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.42);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.dashboard-page-tutorial .ta-card:hover .ta-card-favorite,
.dashboard-page-tutorial .ta-card-favorite:focus-visible,
.dashboard-page-tutorial .ta-card-favorite.is-active {
  opacity: 1;
}

.dashboard-page-tutorial .ta-card-favorite:hover,
.dashboard-page-tutorial .ta-card-favorite.is-active {
  background: rgba(47, 158, 26, 0.92);
}

.dashboard-page-tutorial .ta-card-title {
  margin: 10px 0 0;
  min-width: 0;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.dashboard-page-tutorial .ta-card-title a {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.dashboard-page-tutorial .ta-card-title a:hover {
  color: #2f9e1a;
}

.dashboard-page-tutorial .ta-card-collection {
  margin: 5px 0 0;
  color: #2f9e1a;
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page-tutorial .ta-empty {
  margin: 0;
  padding: 70px 0 30px;
  color: #999999;
  font-size: 15px;
  text-align: center;
}

/* 右侧悬浮快捷栏 */
.dashboard-page-tutorial .ta-float {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 35;
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(16px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dashboard-page-tutorial .ta-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dashboard-page-tutorial .ta-float-banner {
  width: 60px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #35b95f 0%, #159e43 100%);
  box-shadow: 0 10px 24px rgba(21, 158, 67, 0.24);
}

.dashboard-page-tutorial .ta-float-banner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.dashboard-page-tutorial .ta-float-banner a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.dashboard-page-tutorial .ta-float-banner a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-page-tutorial .ta-float-diamond {
  color: #ffd34d;
  font-size: 12px;
  letter-spacing: 0;
  writing-mode: horizontal-tb;
}

.dashboard-page-tutorial .ta-float-arrow {
  font-size: 9px;
  letter-spacing: 0;
  writing-mode: horizontal-tb;
}

.dashboard-page-tutorial .ta-float-card {
  display: grid;
  width: 60px;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 42, 82, 0.14);
}

.dashboard-page-tutorial .ta-float-chat,
.dashboard-page-tutorial .ta-float-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-page-tutorial .ta-float-chat {
  color: #2f9e1a;
}

.dashboard-page-tutorial .ta-float-top {
  border-top: 1px solid #eeeeee;
  color: #8a94a4;
}

.dashboard-page-tutorial .ta-float-chat:hover {
  background: #f3fbf1;
}

.dashboard-page-tutorial .ta-float-top:hover {
  color: #2f9e1a;
}

.dashboard-page-tutorial .ta-float-chat svg,
.dashboard-page-tutorial .ta-float-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1560px) {
  .dashboard-page-tutorial .ta-float {
    display: none;
  }
}

@media (max-width: 1400px) {
  .dashboard-page-tutorial .ta-search {
    width: 220px;
  }
}

@media (max-width: 1400px) and (min-width: 1181px) {
  .dashboard-page-tutorial .dashboard-top-actions > [target="_blank"],
  .dashboard-page-tutorial .dashboard-top-actions > #navInvoiceCenterLink {
    display: none;
  }
}

@media (max-width: 1280px) {
  .dashboard-page-tutorial .ta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-page-tutorial .dashboard-topbar {
    position: relative;
    padding: 10px 16px 14px;
  }

  .dashboard-page-tutorial .dashboard-main {
    padding-top: 0;
  }

  .dashboard-page-tutorial .dashboard-topbar-primary {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .dashboard-page-tutorial .dashboard-topbar-brand {
    flex: 0 0 auto;
  }

  .dashboard-page-tutorial .dashboard-top-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 4px 16px;
  }

  .dashboard-page-tutorial .dashboard-top-nav-link {
    flex: 0 0 auto;
    padding: 6px 0;
    font-size: 14px;
  }

  .dashboard-page-tutorial .dashboard-top-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 0;
  }

  .dashboard-page-tutorial .dashboard-top-actions::before {
    display: none;
  }

  .dashboard-page-tutorial .ta-search {
    display: flex;
    order: -1;
    width: 100%;
  }

  .dashboard-page-tutorial .dashboard-top-actions .button {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 1080px) {
  .dashboard-page-tutorial .ta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-page-tutorial .ta-listbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .dashboard-page-tutorial .ta-shell {
    width: calc(100% - 32px);
    padding-top: 24px;
  }

  .dashboard-page-tutorial .tutorial-featured-courses {
    padding-top: 18px;
  }

  .dashboard-page-tutorial .tutorial-featured-courses-shell {
    width: calc(100% - 32px);
  }

  .dashboard-page-tutorial .dashboard-hero-carousel-window {
    height: 170px;
  }

  .dashboard-page-tutorial .dashboard-hero-slide img {
    object-position: 72% center;
  }

  .dashboard-page-tutorial .dashboard-hero-carousel-overlay {
    left: 10px;
    right: auto;
    bottom: 10px;
    gap: 8px;
    padding: 6px 8px;
    transform: none;
  }

  .dashboard-page-tutorial .dashboard-hero-carousel-controls {
    gap: 8px;
  }

  .dashboard-page-tutorial .dashboard-hero-carousel-button {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .dashboard-page-tutorial .dashboard-hero-carousel-dot {
    width: 7px;
    height: 7px;
  }

  .dashboard-page-tutorial .dashboard-hero-carousel-dot.is-active {
    width: 18px;
  }

  .dashboard-page-tutorial .ta-filter-line {
    flex-direction: column;
    gap: 6px;
  }

  .dashboard-page-tutorial .ta-filter-label {
    padding-top: 0;
  }

  .dashboard-page-tutorial .ta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .dashboard-page-tutorial .ta-card-title {
    font-size: 13px;
  }
}
