/* ==========================================================================
   pages.css · 智慧树学习网 页面层（v2 设计系统）
   首页 / 列表页 / 内容页 / 播放页 / 广告位
   由 _design/build-css.js 从预览稿生成，请勿直接手改
   ========================================================================== */

/* ==========================================================================
   智慧树学习网 · 设计预览 v2（仅预览）
   pages.css：首页 / 列表 / 内容 / 播放
   ========================================================================== */

/* ==========================================================================
   首页 · 首屏
   ========================================================================== */

.u-hero {
  position: relative;
  overflow: hidden;
  padding-block: 12px;
  background:
    radial-gradient(820px 420px at 90% -8%, #e3f1e9 0%, rgba(227, 241, 233, 0) 62%),
    linear-gradient(180deg, #fbfcf9 0%, #f5f7f2 100%);
  border-bottom: 1px solid var(--line);
}

.u-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#c6d6cb 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .32;
  -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 58%);
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 58%);
  pointer-events: none;
}

.u-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 44px;
  align-items: center;
  padding-block: 0;
}

.u-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-700);
}

.u-hero__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(27, 147, 100, .14);
}

.u-hero__title {
  margin: 18px 0 14px;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.u-hero__title em {
  font-style: normal;
  color: var(--brand-700);
  background: linear-gradient(transparent 64%, var(--brand-100) 64%);
  padding: 0 2px;
}

.u-hero__sub {
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-600);
}

.u-hero__search {
  display: flex;
  gap: 6px;
  max-width: 570px;
  margin-top: 22px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sh-m);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.u-hero__search:focus-within {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(27, 147, 100, .1), var(--sh-m);
}

.u-hero__search svg {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  align-self: center;
  color: var(--ink-400);
  flex: none;
}

.u-hero__search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  outline: none;
}

.u-hero__search input::placeholder {
  color: var(--ink-400);
}

.u-hero__hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-400);
}

.u-hero__hot a {
  color: var(--ink-600);
}

.u-hero__hot a:hover {
  color: var(--brand-700);
}

.u-hero__stats {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.u-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.u-hero__stats strong {
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
}

.u-hero__stats span {
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-hero__stats li + li {
  padding-left: 30px;
  border-left: 1px solid var(--line-2);
}

/* 首屏右侧：精选 + 快捷入口 */
.u-hero__side {
  display: grid;
  gap: 14px;
}

.u-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-m);
}

.u-feature__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-900);
}

.u-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.u-feature:hover .u-feature__media img {
  transform: scale(1.03);
}

.u-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 14, .1) 0%, rgba(10, 18, 14, .55) 100%);
}

.u-feature__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-800);
}

.u-feature__play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--brand-800);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: transform .18s ease;
}

.u-feature:hover .u-feature__play {
  transform: scale(1.06);
}

.u-feature__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.u-feature__body {
  padding: 14px 16px 16px;
}

.u-feature__title {
  margin: 8px 0 6px;
  font-size: 16.5px;
  line-height: 1.45;
}

.u-feature__title a {
  color: var(--ink-900);
}

.u-feature__title a:hover {
  color: var(--brand-700);
}

.u-feature__desc {
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-quick {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.u-quick__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--ink-700);
}

.u-quick__item + .u-quick__item {
  border-top: 1px solid var(--line);
}

.u-quick__item:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-quick__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-700);
  flex: none;
}

.u-quick__icon svg {
  width: 16px;
  height: 16px;
}

.u-quick__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.u-quick__body b {
  font-size: 13.5px;
  font-weight: 600;
}

.u-quick__body small {
  font-size: 11.5px;
  color: var(--ink-400);
}

.u-quick__arrow {
  color: var(--ink-300, #b9c4bd);
  font-size: 15px;
}

/* ==========================================================================
   首页 · 学习路径
   ========================================================================== */

.u-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.u-path__item {
  position: relative;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.u-path__item:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-m);
  transform: translateY(-2px);
}

.u-path__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--line-2);
  border-right: 1.5px solid var(--line-2);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.u-path__step {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--brand-600);
}

.u-path__name {
  margin: 6px 0 2px;
  font-size: 15.5px;
}

.u-path__desc {
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-path__count {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink-400);
}

/* ==========================================================================
   首页 · 分类
   ========================================================================== */

/* 18 个一级栏目胶囊：固定每行数量 + 自动换行，除不尽的行整体居中 */
.u-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.u-cat {
  display: flex;
  flex: 0 0 calc((100% - 40px) / 6 - 0.01px);
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 26, 21, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.u-cat:hover {
  border-color: transparent;
  background: linear-gradient(100deg, var(--brand-600), var(--brand-400));
  box-shadow: 0 6px 16px -6px rgba(15, 157, 99, .5);
  transform: translateY(-2px);
}

.u-cat:active {
  transform: translateY(0) scale(.99);
  box-shadow: 0 2px 6px -3px rgba(15, 157, 99, .45);
}

.u-cat:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.u-cat__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 5px -2px rgba(15, 26, 21, .4);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.u-cat__icon svg {
  width: 13px;
  height: 13px;
}

.u-cat__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-800);
}

.u-cat:hover .u-cat__name {
  color: #fff;
}

.u-cat:hover .u-cat__icon {
  transform: scale(1.05);
}

/* 分类图标 12 色渐变 */
.u-cat.c1 .u-cat__icon { background: linear-gradient(135deg, #16b877, #0c7a52); color: #fff; }
.u-cat.c2 .u-cat__icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.u-cat.c3 .u-cat__icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }
.u-cat.c4 .u-cat__icon { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.u-cat.c5 .u-cat__icon { background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; }
.u-cat.c6 .u-cat__icon { background: linear-gradient(135deg, #ec4899, #be185d); color: #fff; }
.u-cat.c7 .u-cat__icon { background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; }
.u-cat.c8 .u-cat__icon { background: linear-gradient(135deg, #06b6d4, #0e7490); color: #fff; }
.u-cat.c9 .u-cat__icon { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.u-cat.c10 .u-cat__icon { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }
.u-cat.c11 .u-cat__icon { background: linear-gradient(135deg, #84cc16, #4d7c0f); color: #fff; }
.u-cat.c12 .u-cat__icon { background: linear-gradient(135deg, #a855f7, #7e22ce); color: #fff; }

/* hover 时图标底板统一转半透明白；组合选择器特异性高于上面的 12 色规则 */
.u-cat.c1:hover .u-cat__icon,
.u-cat.c2:hover .u-cat__icon,
.u-cat.c3:hover .u-cat__icon,
.u-cat.c4:hover .u-cat__icon,
.u-cat.c5:hover .u-cat__icon,
.u-cat.c6:hover .u-cat__icon,
.u-cat.c7:hover .u-cat__icon,
.u-cat.c8:hover .u-cat__icon,
.u-cat.c9:hover .u-cat__icon,
.u-cat.c10:hover .u-cat__icon,
.u-cat.c11:hover .u-cat__icon,
.u-cat.c12:hover .u-cat__icon {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}

/* ==========================================================================
   首页 · 课程卡片
   ========================================================================== */

.u-course {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.u-course:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-m);
  transform: translateY(-3px);
}

.u-course__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-900);
}

.u-course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.u-course:hover .u-course__media img {
  transform: scale(1.04);
}

.u-course__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 14, 0) 52%, rgba(10, 18, 14, .62) 100%);
  opacity: .9;
}

.u-course__flags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.u-course__flag {
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-800);
}

.u-course__flag--hot {
  background: var(--amber-100);
  color: var(--amber-700);
}

.u-course__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(10, 18, 14, .68);
  font-family: var(--font-num);
  font-size: 11px;
  color: #fff;
}

.u-course__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-800);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s ease, transform .2s ease;
}

.u-course:hover .u-course__play,
.u-course:focus-within .u-course__play {
  opacity: 1;
  transform: scale(1);
}

.u-course__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.u-course__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
}

.u-course__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  min-height: 42px;
}

.u-course__title a {
  color: var(--ink-900);
}

.u-course__title a:hover {
  color: var(--brand-700);
}

.u-course__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--ink-500);
}

.u-course__meta i {
  font-style: normal;
  color: var(--ink-500);
}

.u-course__meta .u-num {
  color: var(--ink-600);
}

/* 三列 / 双栏区块 */
.u-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.u-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 20px;
  align-items: start;
}

.u-rank {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.u-rank__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.u-rank__head h2 {
  font-size: 16px;
}

.u-rank__head span {
  font-size: 11.5px;
  color: var(--ink-400);
}

.u-rank__item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.u-rank__item:first-of-type {
  border-top: 0;
}

.u-rank__num {
  width: 18px;
  flex: none;
  font-family: var(--font-num);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-400);
  line-height: 1.6;
}

.u-rank__item:nth-of-type(-n+3) .u-rank__num {
  color: var(--amber-600);
}

.u-rank__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.u-rank__title {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-800);
}

.u-rank__item:hover .u-rank__title {
  color: var(--brand-700);
}

.u-rank__meta {
  font-size: 11px;
  color: var(--ink-400);
}

/* 横向课程条 */
.u-wide {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.u-wide + .u-wide {
  margin-top: 12px;
}

.u-wide:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-m);
}

.u-wide__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 7px;
  background: var(--ink-900);
}

.u-wide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-wide__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0;
}

.u-wide__title {
  font-size: 15px;
  line-height: 1.5;
}

.u-wide__title a {
  color: var(--ink-900);
}

.u-wide__title a:hover {
  color: var(--brand-700);
}

.u-wide__desc {
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-wide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--ink-400);
}

/* ==========================================================================
   首页 · 承诺 / 信任背书
   ========================================================================== */

.u-promise {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #0a2c1f 0%, #0d3d2a 58%, #0b3323 100%);
  color: #cddbd3;
}

.u-promise::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 177, 131, .22), rgba(70, 177, 131, 0) 68%);
  pointer-events: none;
}

.u-promise__inner {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 2.1fr;
  gap: 48px;
  padding-block: 46px;
  align-items: center;
}

.u-promise h2 {
  color: #fff;
  font-size: 25px;
  line-height: 1.4;
}

.u-promise__lead {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #9fb4a9;
}

.u-promise__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.u-promise__item {
  display: flex;
  gap: 13px;
}

.u-promise__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--brand-300);
  flex: none;
}

.u-promise__icon svg {
  width: 17px;
  height: 17px;
}

.u-promise__item b {
  display: block;
  margin-bottom: 3px;
  color: #f0f6f2;
  font-size: 14px;
  font-weight: 600;
}

.u-promise__item p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #93a99e;
}

/* ==========================================================================
   列表页
   ========================================================================== */

.u-pagehead {
  position: relative;
  padding: 20px 0 66px;
  background:
    radial-gradient(620px 260px at 82% 0%, #e6f2ea 0%, rgba(230, 242, 234, 0) 70%),
    linear-gradient(180deg, #f7f9f5 0%, #f3f6f1 100%);
  border-bottom: 1px solid var(--line);
}

/* 无标题与简介的精简列表页头 */
.u-pagehead.u-pagehead--bare {
  padding-bottom: 24px;
}

.u-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-600);
}

.u-crumb a {
  color: var(--ink-600);
}

.u-crumb a:hover {
  color: var(--brand-700);
}

.u-crumb__sep {
  color: var(--line-2);
}

.u-crumb__current {
  color: var(--ink-800);
}

.u-pagehead__title {
  margin: 14px 0 6px;
  font-size: 31px;
  letter-spacing: -.025em;
}

.u-pagehead__desc {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-600);
}

.u-pagehead__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.u-filter {
  position: relative;
  z-index: 2;
  margin-top: -44px;
  padding: 4px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-m);
}

.u-filter__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
}

.u-filter__row + .u-filter__row {
  border-top: 1px dashed var(--line);
}

.u-filter__label {
  flex: none;
  width: 52px;
  padding-top: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
}

.u-filter__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.u-opt {
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  color: var(--ink-600);
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.u-opt:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-opt.is-active {
  background: var(--brand-700);
  color: #fff;
  font-weight: 500;
}

.u-filter__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 12px;
  border-top: 1px dashed var(--line);
}

.u-filter__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-400);
}

.u-sel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  font-size: 12px;
  color: var(--brand-700);
}

.u-sel button {
  border: 0;
  background: none;
  color: var(--brand-600);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.u-filter__clear {
  border: 0;
  background: none;
  font-size: 12.5px;
  color: var(--ink-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.u-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 16px;
}

.u-toolbar__count {
  font-size: 13.5px;
  color: var(--ink-500);
}

.u-toolbar__count b {
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--ink-900);
}

.u-sort {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.u-sort__btn {
  height: 29px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 12.5px;
  color: var(--ink-600);
  cursor: pointer;
}

.u-sort__btn:hover {
  color: var(--brand-700);
}

.u-sort__btn.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}

/* 加载骨架 */
.u-skeleton {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  overflow: hidden;
}

.u-skeleton__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, #eef1ed 25%, #f7f9f5 37%, #eef1ed 63%);
  background-size: 400% 100%;
  animation: u-shimmer 1.5s ease infinite;
}

.u-skeleton__body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.u-skeleton__line {
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eef1ed 25%, #f7f9f5 37%, #eef1ed 63%);
  background-size: 400% 100%;
  animation: u-shimmer 1.5s ease infinite;
}

.u-skeleton__line--short {
  width: 46%;
}

@keyframes u-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* 空 / 错误状态 */
.u-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 68px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-l);
  background: var(--surface);
  text-align: center;
}

.u-state__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-400);
}

.u-state__icon svg {
  width: 24px;
  height: 24px;
}

.u-state b {
  font-size: 15px;
  color: var(--ink-800);
}

.u-state p {
  font-size: 13px;
  color: var(--ink-500);
}

.u-state .u-btn {
  margin-top: 10px;
}

/* 分页 */
.u-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 36px 0 6px;
}

.u-pager a,
.u-pager span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-700);
}

.u-pager a:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.u-pager .is-active {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: #fff;
  font-weight: 600;
}

.u-pager .is-disabled {
  opacity: .45;
  pointer-events: none;
}

.u-pager__info {
  margin-left: 6px;
  font-size: 12.5px;
  color: var(--ink-400);
}

/* ==========================================================================
   内容页
   ========================================================================== */

.u-page-space {
  padding: 18px 0 56px;
}

.u-coursehero {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-s);
}

.u-coursehero__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--ink-900);
}

.u-coursehero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-coursehero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 14, .06) 40%, rgba(10, 18, 14, .5) 100%);
}

.u-coursehero__count {
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 2;
  font-family: var(--font-num);
  font-size: 11.5px;
  color: #fff;
}

.u-coursehero__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--brand-800);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.u-coursehero__play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.u-coursehero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.u-coursehero h1 {
  margin: 10px 0 8px;
  font-size: 27px;
  line-height: 1.36;
  letter-spacing: -.02em;
}

.u-coursehero__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-600);
}

.u-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 18px;
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-metas span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.u-metas b {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--ink-800);
}

.u-metas svg {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
}

.u-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.u-actions__note {
  font-size: 12px;
  color: var(--ink-400);
}

.u-actions__eps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  font-size: 13px;
  color: var(--brand-700);
}

.u-actions__eps svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---- 内容页分享：百度分享风格的弹出面板 ---- */
.u-share {
  position: relative;
  display: inline-flex;
}

.u-share__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 60;
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: min(360px, calc(100vw - 48px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 18px 40px -18px rgba(9, 32, 23, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(.98);
  transform-origin: 32px 0;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.u-share__panel::before {
  content: "";
  position: absolute;
  left: 26px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 2px 0 0 0;
  background: var(--surface);
  transform: rotate(45deg);
}

.u-share.is-open .u-share__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.u-share__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 58px;
  padding: 6px 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.u-share__item:hover {
  background: var(--bg);
  color: var(--ink-900);
}

.u-share__item i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-style: normal;
  transition: transform .16s ease, box-shadow .16s ease;
}

.u-share__item:hover i {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgba(9, 32, 23, .35);
}

.u-share__item svg {
  width: 18px;
  height: 18px;
}

.u-share__item--wechat i { background: #1aad19; }
.u-share__item--qq i { background: #12b7f5; }
.u-share__item--qzone i { background: #fdb514; }
.u-share__item--weibo i { background: #e6162d; }
.u-share__item--copy i { background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); }

/* 小屏：改为底部居中的分享弹层，避免溢位 */
@media (max-width: 719px) {
  .u-share__panel {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 18px;
    width: min(340px, calc(100vw - 32px));
    justify-content: space-around;
    transform: translateX(-50%) translateY(8px) scale(.98);
    transform-origin: center bottom;
    box-shadow: 0 20px 60px -20px rgba(9, 32, 23, .5);
  }

  .u-share__panel::before {
    display: none;
  }

  .u-share.is-open .u-share__panel {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.u-actions__eps b {
  font-weight: 700;
}

.u-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.u-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.u-block + .u-block {
  margin-top: 18px;
}

/* 内容页广告位（替代原「你将学到」块） */
.u-adslot {
  margin-bottom: 18px;
}

.u-block__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.u-block__head svg {
  width: 18px;
  height: 18px;
  color: var(--brand-600);
  flex: none;
}

.u-block__head h2 {
  flex: 1;
  font-size: 18px;
}

/* 课程目录标题前的播放按钮图标 */
.u-block__play {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  box-shadow: 0 3px 8px -3px rgba(22, 184, 119, .6);
  color: #fff;
  font-style: normal;
}

.u-block__head .u-block__play svg {
  width: 10px;
  height: 10px;
  color: #fff;
  margin-left: 1px;
}

.u-block__head .u-tag {
  flex: none;
}

.u-goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}

.u-goals li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-700);
}

.u-goals svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--brand-600);
  flex: none;
}

/* 目录 */
.u-chapter + .u-chapter {
  margin-top: 14px;
}

.u-chapter__title {
  margin: 0 0 4px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-500);
  background: var(--bg);
  border-radius: 6px;
}

.u-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-700);
}

.u-lesson:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-lesson__idx {
  width: 24px;
  flex: none;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink-400);
}

.u-lesson__title {
  flex: 1;
  min-width: 0;
}

.u-lesson__time {
  font-family: var(--font-num);
  font-size: 11.5px;
  color: var(--ink-400);
}

.u-lesson__free {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--brand-50);
  font-size: 11px;
  color: var(--brand-700);
}

.u-toc-more {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* 展开全部目录：绿色下箭头，展开后旋转朝上 */
.u-toc-more .u-btn svg {
  color: var(--brand-600);
  transition: transform .2s ease, color .18s ease;
}

.u-toc-more .u-btn:hover svg {
  color: var(--brand-700);
}

.u-toc-more .u-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* 正文 */
.u-prose {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-700);
}

.u-prose p + p {
  margin-top: 12px;
}

.u-prose h3 {
  margin: 18px 0 8px;
  font-size: 15px;
}

.u-prose ul {
  margin: 10px 0;
  padding-left: 2px;
}

.u-prose li {
  position: relative;
  padding-left: 16px;
}

.u-prose li + li {
  margin-top: 5px;
}

.u-prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
}

/* 讲师 */
.u-teacher {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.u-teacher__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-600), var(--brand-800));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex: none;
}

.u-teacher__body b {
  display: block;
  font-size: 15px;
  color: var(--ink-900);
}

.u-teacher__role {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-teacher__bio {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-600);
}

.u-teacher__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* 侧栏 */
.u-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 16px;
}

.u-sidecard {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.u-sidecard__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 15px;
}

.u-sidecard__title svg {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
}

.u-spec {
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.u-spec__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.u-spec__row dt {
  color: var(--ink-400);
  flex: none;
}

.u-spec__row dd {
  margin: 0;
  color: var(--ink-700);
  text-align: right;
}

.u-minirow {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 0;
}

.u-minirow + .u-minirow {
  border-top: 1px solid var(--line);
}

.u-minirow__thumb {
  width: 78px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  flex: none;
}

.u-minirow__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-minirow__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.u-minirow__title {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-800);
}

.u-minirow:hover .u-minirow__title {
  color: var(--brand-700);
}

.u-minirow__meta {
  font-size: 11px;
  color: var(--ink-400);
}

.u-tip {
  padding: 12px 13px;
  border: 1px solid #f0e2c8;
  border-radius: 9px;
  background: #fdf8ee;
  font-size: 12.5px;
  line-height: 1.8;
  color: #7a5a1e;
}

/* ==========================================================================
   播放页
   ========================================================================== */

.u-watch {
  background: #0a1310;
  color: #d5e0da;
  padding: 16px 0 12px;
}

.u-watch .u-crumb {
  color: rgba(255, 255, 255, .38);
}

.u-watch .u-crumb a {
  color: rgba(255, 255, 255, .66);
}

.u-watch .u-crumb a:hover {
  color: #fff;
}

.u-watch .u-crumb__current {
  color: rgba(255, 255, 255, .8);
}

.u-watch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 22px;
  align-items: start;
  margin-top: 14px;
}

/* 播放页右列：课程目录 + 下方广告位 */
.u-watch__side {
  display: grid;
  gap: 16px;
}

.u-watch__grid > * {
  min-width: 0;
}

.u-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-m);
  background: #000;
}

.u-player > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

.u-player__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55) 78%);
}

.u-player__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 11.5px;
  color: #fff;
  backdrop-filter: blur(4px);
}

.u-player__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.u-playbtn {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--brand-900);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .42);
  cursor: pointer;
  transition: transform .18s ease;
}

.u-playbtn:hover {
  transform: scale(1.05);
}

.u-playbtn svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

.u-player__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, .68);
}

.u-player__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
  font-size: 11.5px;
  color: rgba(255, 255, 255, .8);
}

.u-player__bar svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.u-progress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}

.u-progress i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 2px;
  background: var(--brand-400);
}

.u-watch__titlebar {
  padding: 16px 2px 0;
}

.u-watch__now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--brand-300);
  letter-spacing: .02em;
}

.u-watch__now svg {
  width: 13px;
  height: 13px;
}

.u-watch__name {
  margin: 6px 0 3px;
  color: #fff;
  font-size: 19px;
  line-height: 1.45;
}

.u-watch__part {
  font-size: 13px;
  color: rgba(255, 255, 255, .56);
}

.u-watch__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.u-wchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .72);
}

.u-wactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.u-wbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
}

.u-wbtn svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, .45);
}

.u-wbtn:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.u-wbtn:hover svg {
  color: var(--brand-300);
}

.u-wbtn--primary {
  background: rgba(27, 147, 100, .18);
  color: #d9f0e5;
}

.u-wbtn--primary svg {
  color: var(--brand-300);
}

.u-wbtn--primary:hover {
  background: rgba(27, 147, 100, .3);
}

/* 播放页：已收藏态 */
.u-wbtn.is-faved {
  background: rgba(27, 147, 100, .32);
  color: #eafff4;
}

.u-wbtn.is-faved svg {
  color: var(--brand-300);
  fill: currentColor;
}

/* 高清播放：单色琥珀按钮，克制但醒目 */
.u-wbtn--hd {
  background: #b45309;
  color: #fff;
  font-weight: 600;
}

.u-wbtn--hd svg {
  color: #fff;
}

.u-wbtn--hd:hover {
  background: #d97706;
  color: #fff;
}

.u-hd-tag {
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 3px;
  background: none;
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
  color: inherit;
}

/* 播放问题反馈：红色警示按钮 */
.u-wbtn--report {
  background: rgba(239, 68, 68, .13);
  color: #fca5a5;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .3);
}

.u-wbtn--report svg {
  color: #f87171;
}

.u-wbtn--report:hover {
  background: rgba(239, 68, 68, .24);
  color: #fee2e2;
}

.u-wbtn--report:hover svg {
  color: #fecaca;
}

.u-wactions__end {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

/* 播放目录 */
.u-playlist {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-m);
  background: #101c16;
}

.u-playlist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.u-playlist__head b {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.u-playlist__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* 播放列表标题前的播放按钮图标 */
.u-playlist__play {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  box-shadow: 0 3px 8px -3px rgba(22, 184, 119, .75);
  color: #fff;
  font-style: normal;
}

.u-playlist__play svg {
  width: 10px;
  height: 10px;
  margin-left: 1px;
}

.u-playlist__head span {
  font-family: var(--font-num);
  font-size: 11.5px;
  color: rgba(255, 255, 255, .42);
}

.u-playlist__body {
  max-height: 346px;
  overflow-y: auto;
  padding: 6px 0 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.u-playlist__body::-webkit-scrollbar {
  width: 6px;
}

.u-playlist__body::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
}

.u-pl-group {
  padding: 10px 14px 4px;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .38);
}

.u-pl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .68);
  cursor: pointer;
}

.u-pl-item:hover {
  background: rgba(255, 255, 255, .04);
  color: #fff;
}

.u-pl-item.is-current {
  border-left-color: var(--brand-500);
  background: rgba(27, 147, 100, .14);
  color: #fff;
}

.u-pl-item__idx {
  width: 20px;
  flex: none;
  font-family: var(--font-num);
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}

.u-pl-item.is-current .u-pl-item__idx {
  color: var(--brand-300);
}

.u-pl-item__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u-pl-item__time {
  font-family: var(--font-num);
  font-size: 10.5px;
  color: rgba(255, 255, 255, .46);
}

/* 播放器状态层（预览演示） */
.u-player__state {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(4, 9, 7, .9);
  text-align: center;
  padding: 24px;
}

.u-player__state.is-show {
  display: flex;
}

.u-spinner {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-top-color: var(--brand-300);
  border-radius: 50%;
  animation: u-spin .8s linear infinite;
}

@keyframes u-spin {
  to { transform: rotate(360deg); }
}

.u-player__state b {
  color: #fff;
  font-size: 14px;
}

.u-player__state p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 34em;
  color: rgba(255, 255, 255, .55);
}

.u-player__state-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.u-player__state .u-btn--ghost {
  border: 1px solid rgba(255, 255, 255, .3);
  color: #e2ece6;
  background: rgba(255, 255, 255, .06);
}

.u-player__state .u-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

/* 播放页下方内容 */
.u-watch-below {
  padding: 26px 0 10px;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1100px) {
  .u-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 28px;
  }

  .u-hero__title {
    font-size: 36px;
  }

  .u-cat {
    flex-basis: calc((100% - 24px) / 4 - 0.01px);
  }

  .u-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .u-path__item:nth-child(3)::after {
    display: none;
  }

  .u-coursehero {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 22px;
  }

  .u-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }

  .u-watch__grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 960px) {
  .u-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 0;
  }

  .u-hero__side {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }

  .u-hero__stats {
    margin-top: 22px;
  }

  .u-promise__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 38px;
  }

  .u-cat {
    flex-basis: calc((100% - 16px) / 3 - 0.01px);
  }

  .u-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .u-split {
    grid-template-columns: 1fr;
  }

  .u-coursehero {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .u-coursehero h1 {
    font-size: 22px;
  }

  .u-layout,
  .u-watch__grid {
    grid-template-columns: 1fr;
  }

  .u-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  /* 「接着看这些」为 10 条长列表，平板双列侧栏时独占整行 */
  .u-sidecard--watch {
    grid-column: 1 / -1;
  }

  .u-playlist__body {
    max-height: 250px;
  }
}

@media (max-width: 719px) {
  .u-hero__inner {
    padding-block: 0;
  }

  .u-hero__title {
    font-size: 27px;
    margin-top: 14px;
  }

  .u-hero__sub {
    font-size: 14px;
  }

  .u-hero__search {
    margin-top: 18px;
  }

  .u-hero__search input {
    height: 36px;
  }

  .u-hero__search .u-btn {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .u-hero__side {
    grid-template-columns: 1fr;
  }

  .u-hero__stats {
    gap: 18px;
  }

  .u-hero__stats strong {
    font-size: 20px;
  }

  .u-hero__stats li + li {
    padding-left: 18px;
  }

  .u-path {
    grid-template-columns: 1fr 1fr;
  }

  .u-path__item::after {
    display: none;
  }

  .u-cat {
    flex-basis: calc((100% - 16px) / 3 - 0.01px);
    padding: 5px 12px;
  }

  .u-cat__icon {
    width: 26px;
    height: 26px;
  }

  .u-cat__icon svg {
    width: 14px;
    height: 14px;
  }

  .u-promise__list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .u-promise h2 {
    font-size: 21px;
  }

  .u-pagehead {
    padding-bottom: 58px;
  }

  .u-pagehead__title {
    font-size: 24px;
  }

  .u-filter {
    padding: 2px 14px;
  }

  .u-filter__row {
    flex-direction: column;
    gap: 4px;
  }

  .u-filter__label {
    width: auto;
    padding-top: 0;
  }

  .u-filter__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .u-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .u-page-space {
    padding: 14px 0 40px;
  }

  .u-coursehero {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .u-coursehero h1 {
    font-size: 21px;
  }

  .u-metas {
    gap: 6px 14px;
  }

  .u-actions .u-btn--primary {
    flex: 1;
  }

  .u-block {
    padding: 16px;
  }

  .u-goals {
    grid-template-columns: 1fr;
  }

  .u-grid--3 {
    grid-template-columns: 1fr;
  }

  .u-wide {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .u-aside {
    grid-template-columns: 1fr;
  }

  .u-teacher {
    gap: 12px;
  }

  .u-player {
    border-radius: 8px;
  }

  .u-playbtn {
    width: 58px;
    height: 58px;
  }

  .u-playbtn svg {
    width: 20px;
    height: 20px;
  }

  .u-watch__name {
    font-size: 16px;
  }

  .u-watch__chips {
    margin-top: 8px;
  }

  .u-wactions {
    gap: 4px;
    flex-wrap: wrap;
  }

  .u-wactions__end {
    order: -1;
    flex: 1 0 100%;
    gap: 8px;
    margin-left: 0;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .u-wactions__end .u-wbtn {
    flex: 1;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
  }

  .u-wactions__end .u-wbtn--primary {
    background: rgba(27, 147, 100, .24);
    color: #d9f0e5;
  }

  .u-wactions__end .u-wbtn--hd {
    background: #b45309;
    color: #fff;
  }

  .u-wbtn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .u-watch-below {
    padding-top: 24px;
  }
}

/* ==========================================================================
   v2 · 首页饱满版：渐变首屏 / 轮播 / 快讯 / 快捷卡 / 五列网格 / 栏目头 / 广告 / 友链
   ========================================================================== */

/* 首屏：深绿→青蓝多色渐变 + 光斑 + 点阵 */
.u-hero {
  position: relative;
  overflow: hidden;
  padding-block: 12px;
  background: linear-gradient(118deg, #073826 0%, #0a5c40 34%, #0f9d63 68%, #0891b2 100%);
  color: #eaf6ef;
}

.u-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 300px at 88% -10%, rgba(245, 158, 11, .30), transparent 60%),
    radial-gradient(520px 320px at -6% 108%, rgba(37, 99, 235, .38), transparent 62%),
    radial-gradient(420px 260px at 55% 120%, rgba(63, 208, 143, .28), transparent 60%);
  pointer-events: none;
}

.u-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 72%);
  pointer-events: none;
}

.u-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 0;
}

.u-hero__badge {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #d9f3e6;
  backdrop-filter: blur(4px);
}

.u-hero__badge::before {
  background: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .25);
}

.u-hero__title {
  color: #fff;
}

.u-hero__title em {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #ffd166;
}

.u-hero__sub {
  color: #cfe6da;
}

.u-hero__search {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 16px 44px rgba(3, 26, 18, .38);
}

.u-hero__search svg {
  color: var(--ink-400);
}

.u-hero__search input {
  color: var(--ink-900);
}

.u-hero__search input::placeholder {
  color: var(--ink-400);
}

.u-hero__hot {
  color: #bcd8cb;
}

.u-hero__hot a {
  color: #eaf6ef;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.u-hero__hot a:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}

.u-hero__stats strong {
  color: #fff;
}

.u-hero__stats span {
  color: #bcd8cb;
}

.u-hero__stats li + li {
  border-color: rgba(255, 255, 255, .22);
}

.u-hero__side {
  display: block;
}

/* 首屏轮播 */
.u-carousel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-l);
  background: #0b241b;
  box-shadow: 0 26px 64px rgba(3, 26, 18, .48);
}

.u-carousel__track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.u-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}

.u-slide.is-active {
  opacity: 1;
}

.u-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 19, .04) 38%, rgba(6, 26, 19, .88) 100%);
}

.u-slide__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 84px 16px 18px;
}

.u-slide__tag {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--amber-500);
  color: #4a2b06;
  font-size: 11px;
  font-weight: 700;
}

.u-slide__title {
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
}

.u-slide__title a {
  color: #fff;
}

.u-slide__meta {
  margin-top: 4px;
  color: #cfe6da;
  font-size: 12px;
}

.u-carousel__nav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.u-carousel__btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(6, 26, 19, .5);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.u-carousel__btn:hover {
  background: rgba(6, 26, 19, .72);
}

.u-carousel__btn svg {
  width: 14px;
  height: 14px;
}

.u-carousel__dots {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.u-carousel__dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.u-carousel__dot.is-active {
  width: 20px;
  background: var(--amber-500);
}

/* 更新快讯条 */
.u-ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.u-ticker__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
}

.u-ticker__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
}

.u-ticker__label svg {
  width: 13px;
  height: 13px;
}

.u-ticker__view {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.u-ticker__track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: u-ticker 34s linear infinite;
}

.u-ticker:hover .u-ticker__track {
  animation-play-state: paused;
}

.u-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--ink-600);
}

.u-ticker__item b {
  color: var(--brand-700);
  font-weight: 600;
}

.u-ticker__item i {
  font-style: normal;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--ink-400);
}

@keyframes u-ticker {
  to { transform: translateX(-50%); }
}

/* 快捷入口卡（压住首屏下缘） */
.u-quickrow {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  margin-bottom: 22px;
}

.u-quickrow__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.u-qcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-m);
}

.u-qcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.u-qcard__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
}

.u-qcard__icon svg {
  width: 19px;
  height: 19px;
}

.u-qcard h2 {
  font-size: 15.5px;
}

.u-qcard p {
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-qcard__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.u-qcard__links a {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-700);
  font-size: 12px;
}

.u-qcard__links a:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-qcard--green .u-qcard__icon { background: var(--brand-100); color: var(--brand-700); }
.u-qcard--blue .u-qcard__icon { background: var(--blue-100); color: var(--blue-700); }
.u-qcard--amber .u-qcard__icon { background: var(--amber-100); color: var(--amber-700); }

/* 五列课程网格 */
.u-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* 栏目区块头 */
.u-catsec__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.u-catsec__bar {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--brand-600);
  flex: none;
}

.u-catsec__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 20px;
}

.u-catsec__title a {
  color: var(--ink-900);
}

.u-catsec__title a:hover {
  color: var(--brand-700);
}

.u-catsec__title span {
  padding: 3px 10px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 500;
}

.u-catsec__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}

.u-sub-pill {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-600);
  font-size: 12px;
}

.u-sub-pill:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-catsec__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-500);
  font-size: 12.5px;
}

.u-catsec__more:hover {
  color: var(--brand-700);
}

.u-catsec--blue .u-catsec__bar { background: var(--blue-600); }
.u-catsec--amber .u-catsec__bar { background: var(--amber-500); }
.u-catsec--violet .u-catsec__bar { background: var(--violet-600); }
.u-catsec--cyan .u-catsec__bar { background: var(--cyan-600); }
.u-catsec--red .u-catsec__bar { background: var(--red-500); }
.u-catsec--pink .u-catsec__bar { background: var(--pink-600); }

/* 广告 · 年级入口竖栏 */
.u-adrail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.u-adrail__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: linear-gradient(100deg, var(--brand-700), var(--brand-500));
  color: #fff;
}

.u-adrail__head svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.u-adrail__head b {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.u-adrail__tag {
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 10.5px;
}

.u-adrail__body {
  padding: 8px;
}

.u-adrail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s ease, filter .15s ease;
}

.u-adrail__item:first-child {
  margin-top: 0;
}

.u-adrail__item.is-blue { background: linear-gradient(100deg, #2563eb, #3b82f6); }
.u-adrail__item.is-red { background: linear-gradient(100deg, #dc2626, #f87171); }

.u-adrail__item:hover {
  transform: translateX(3px);
  filter: brightness(1.07);
}

.u-adrail__num {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #7c2d12;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
}

.u-adrail__item .txt {
  flex: 1;
}

.u-adrail__item svg {
  width: 14px;
  height: 14px;
  opacity: .85;
}

/* 广告 · 四列卡片 */
.u-adstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.u-adcard {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "desc desc"
    "cta cta";
  grid-template-rows: auto auto 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 6px;
  min-height: 138px;
  padding: 18px;
  border-radius: var(--r-l);
  color: #fff;
}

.u-adcard::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.u-adcard--green { background: linear-gradient(120deg, #0a5c40, #0f9d63); }
.u-adcard--blue { background: linear-gradient(120deg, #1e40af, #3b82f6); }
.u-adcard--amber { background: linear-gradient(120deg, #b45309, #f59e0b); }
.u-adcard--violet { background: linear-gradient(120deg, #5b21b6, #8b5cf6); }

.u-adcard__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
}

.u-adcard__icon svg {
  width: 17px;
  height: 17px;
}

.u-adcard > b {
  grid-area: title;
  font-size: 15.5px;
}

.u-adcard > p {
  grid-area: desc;
  font-size: 12px;
  color: rgba(255, 255, 255, .84);
}

.u-adcard__cta {
  grid-area: cta;
  align-self: end;
  justify-self: start;
  padding: 6px 15px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.u-adcard__cta:hover {
  transform: translateY(-1px);
}

/* 广告 · 通栏横幅 */
.u-adbanner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--r-l);
  color: #fff;
  background: linear-gradient(110deg, #67aaa4, #909090 55%, #db2777);
}

.u-adbanner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.u-adbanner__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
}

.u-adbanner__icon svg {
  width: 22px;
  height: 22px;
}

.u-adbanner__body {
  flex: 1;
  min-width: 0;
}

.u-adbanner__body b {
  display: block;
  font-size: 18px;
}

.u-adbanner__body p {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .86);
}

.u-adbanner__cta {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.u-adbanner__cta:hover {
  transform: translateY(-1px);
}

.u-ad__label {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  background: rgba(0, 0, 0, .26);
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  letter-spacing: .08em;
}

.u-ad-inblock {
  margin: 18px 0;
}

.u-ad-pre {
  margin: 0 0 16px;
}

.u-aside > [data-ad-slot] {
  margin: 0;
}

/* 友情链接 */
.u-friends {  background: var(--surface);
  border-top: 1px solid var(--line);
}

.u-friends__inner {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 0;
}

.u-friends__title {
  flex: none;
  padding-top: 4px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}

.u-friends__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.u-friends__list a {
  color: var(--ink-500);
  font-size: 12.5px;
}

.u-friends__list a:hover {
  color: var(--brand-700);
}

/* v2 响应式 */
@media (max-width: 1100px) {
  .u-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .u-adstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .u-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .u-quickrow__grid { grid-template-columns: 1fr; }
  .u-quickrow { margin-top: -20px; margin-bottom: 16px; }
  .u-adstrip { grid-template-columns: 1fr; }
  .u-adbanner { flex-wrap: wrap; }
}

@media (max-width: 719px) {
  .u-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .u-hero__inner { padding-block: 0; }
  .u-slide__body { padding: 12px 14px; }
  .u-slide__title { font-size: 15px; }
  .u-carousel__dots { display: none; }
  .u-catsec__more { margin-left: 0; }
  .u-adbanner { padding: 18px; }
  .u-adbanner__cta { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .u-cat {
    flex-basis: calc((100% - 8px) / 2 - 0.01px);
  }
}

/* ==========================================================================
   SEACMS 模板桥接（正式站专用）
   系统标签 [playlist:link] 只能输出裸 <ul><li><a>，播放器 iframe 也由系统注入。
   本段把这些结构映射到预览稿的 u-lesson / u-pl-item 视觉，
   并补齐列表页 chip、内容块 more、广告位与播放器容器的样式。
   ========================================================================== */

/* ---- 列表页：可点击 chip ---- */
a.u-chip {
  color: var(--ink-600);
}

a.u-chip:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.u-chip.is-active {
  border-color: var(--brand-300);
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ---- 内容块补充 ---- */
.u-block__more {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-block__more:hover {
  color: var(--brand-700);
}

.u-page-space .u-container > .u-crumb {
  margin-bottom: 14px;
}

.u-spec__row dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 内容页 / 播放页广告位 */
.u-block--ad {
  position: relative;
}

.u-block--ad .u-ad {
  margin: 0;
  min-height: 60px;
}

.u-block--ad .u-ad img {
  border-radius: var(--r-m);
}

/* ---- 内容页目录：[playlist:link] 输出裸 ul > li > a ---- */
.u-chapter > ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  counter-reset: lesson;
}

.u-chapter > ul > li {
  counter-increment: lesson;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding-left: 10px;
}

/* 序号徽标（放在 li 上，让播放图标可以排在序号之后、标题之前） */
.u-chapter > ul > li::before {
  content: counter(lesson, decimal-leading-zero);
  flex: none;
  min-width: 27px;
  margin-right: 8px;
  padding: 1px 4px;
  border-radius: 5px;
  background: var(--bg);
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-500);
  text-align: center;
}

/* 系统给出的真实分集标题 */
.u-chapter > ul > li > a {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 9px 10px 9px 4px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-700);
  overflow-wrap: anywhere;
}

/* 标题前的播放按钮图标（与标题区统一样式：绿圆 + 白三角） */
.u-chapter > ul > li > a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8.2 5.7c0-.9 1-1.4 1.7-.9l9.6 6.3c.7.4.7 1.4 0 1.8l-9.6 6.3c-.7.5-1.7 0-1.7-.9z'/%3E%3C/svg%3E") center / 7px 7px no-repeat, linear-gradient(135deg, var(--brand-400), var(--brand-700));
  vertical-align: -2px;
}

.u-chapter > ul > li::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 12px 0 6px;
  border-top: 1.5px solid var(--ink-300);
  border-right: 1.5px solid var(--ink-300);
  transform: rotate(45deg);
}

/* 课程目录斑马纹：偶数行直接使用 hover 配色（背景 + 标题），与普通行交替显示 */
.u-chapter > ul > li:nth-child(even) > a {
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-chapter > ul > li:nth-child(even)::before {
  background: #fff;
  color: var(--brand-700);
}

.u-chapter > ul > li:hover > a {
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-chapter > ul > li:hover::before {
  background: #fff;
  color: var(--brand-700);
}

.u-toc-list.is-collapsed {
  max-height: 396px;
  overflow: hidden;
}

/* ---- 播放页目录：[playlist:link] 输出裸 ul > li > a ---- */
.u-playlist__body > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pl;
}

.u-playlist__body > ul > li {
  counter-increment: pl;
  border-left: 2px solid transparent;
}

/* 序号徽标 + 系统给出的真实分集标题 */
.u-playlist__body > ul > li > a {
  display: block;
  padding: 8px 14px 8px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.u-playlist__body > ul > li > a::before {
  content: counter(pl, decimal-leading-zero);
  display: inline-block;
  min-width: 22px;
  margin-right: 8px;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, .42);
  text-align: center;
  vertical-align: 1px;
}

.u-playlist__body > ul > li:hover {
  background: rgba(255, 255, 255, .04);
}

.u-playlist__body > ul > li:hover > a {
  color: #fff;
}

.u-playlist__body > ul > li:hover > a::before {
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .8);
}

.u-playlist__body > ul > li.is-current {
  border-left-color: var(--brand-500);
  background: rgba(27, 147, 100, .14);
}

.u-playlist__body > ul > li.is-current > a {
  color: #fff;
}

.u-playlist__body > ul > li.is-current > a::before {
  background: var(--brand-500);
  color: #fff;
}

/* ---- 播放页：高清播放窗口遮罩（window.open 弹窗，关闭播放窗口前页面锁定） ---- */
.u-hd-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(4, 10, 8, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
  cursor: pointer;
}

.u-hd-overlay b {
  font-size: 17px;
  color: #fff;
}

.u-hd-overlay span {
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}

.u-hd-overlay .u-hd-hint {
  margin-top: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
}

/* ---- 播放页：播放问题反馈模态框 ---- */
.u-report-intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-500);
}

.u-report-form {
  display: grid;
  gap: 14px;
}

.u-report-field {
  display: grid;
  gap: 6px;
}

.u-report-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
}

.u-report-label em {
  margin-left: 2px;
  font-style: normal;
  color: #dc2626;
}

.u-report-control {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-900);
  outline: none;
}

.u-report-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--ring);
}

select.u-report-control {
  cursor: pointer;
}

textarea.u-report-control {
  height: auto;
  min-height: 96px;
  padding: 9px 11px;
  line-height: 1.6;
  resize: vertical;
}

.u-report-code {
  display: flex;
  align-items: center;
  gap: 8px;
}

.u-report-code .u-report-control {
  flex: 1;
}

.u-report-code img {
  width: 92px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #fff;
  object-fit: cover;
  cursor: pointer;
}

.u-report-refresh {
  flex: none;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 12px;
  color: var(--brand-600);
  cursor: pointer;
}

.u-report-refresh:hover {
  background: var(--surface-2);
}

.u-report-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: #fef2f2;
  font-size: 12.5px;
  line-height: 1.5;
  color: #b91c1c;
}

.u-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.u-report-cancel {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
}

.u-report-cancel:hover {
  background: var(--surface-2);
}

.u-report-submit {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-500);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.u-report-submit:hover {
  background: var(--brand-600);
}

.u-report-submit:disabled {
  opacity: .6;
  cursor: default;
}

.u-report-success {
  padding: 18px 0 4px;
  text-align: center;
}

.u-report-success svg {
  width: 54px;
  height: 54px;
  color: var(--brand-500);
}

.u-report-success b {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-900);
}

.u-report-success p {
  margin: 6px 0 16px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ---- 播放器：系统注入的 iframe 铺满 16:9 容器 ---- */
.u-player > iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- 播放信息 ---- */
.u-watch__part b,
.u-watch__part span {
  color: #fff;
  font-weight: 600;
}

.u-watch__part:empty {
  display: none;
}

.u-watch__chips b {
  font-family: var(--font-num);
  color: #fff;
}

/* ---- 轻提示（分享 / 复制结果） ---- */
.u-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 3000;
  transform: translate(-50%, 12px);
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(15, 26, 21, .9);
  color: #fff;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.u-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- 学习人数数据源：模板只保留一个隐藏节点，由 getVideoHit 回填镜像 ---- */
.u-hit-src {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* ---- 侧栏：卡片按内容高度排列，不被行高拉伸 ---- */
.u-layout > .u-aside {
  align-self: start;
  align-content: start;
}

/* ---- 首集/末集的上一讲、下一讲 ---- */
.u-wbtn.is-disabled {
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   搜索页（search.html）
   ========================================================================== */

/* 搜索卡：大搜索框 + 热门词 */
.u-searchcard {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.u-searchfield {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.u-searchfield__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--ink-400);
  pointer-events: none;
}

.u-searchfield input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px 0 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-900);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.u-searchfield input::placeholder {
  color: var(--ink-400);
}

.u-searchfield input:focus {
  border-color: var(--brand-300);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.u-searchfield .u-btn {
  flex: none;
  height: 44px;
  padding: 0 28px;
  border-radius: 999px;
}

.u-searchhot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.u-searchhot__label {
  font-size: 12.5px;
  color: var(--ink-400);
}

.u-searchchip {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12.5px;
  color: var(--ink-600);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.u-searchchip:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-700);
}

/* 搜索页结果四列（覆盖旧版同名类） */
.u-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .u-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .u-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ==========================================================================
   观看历史（history.html）
   ========================================================================== */

.u-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.u-hist-head__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.u-hist-head__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: inset 0 0 0 1px var(--brand-100);
}

.u-hist-head__badge svg {
  width: 23px;
  height: 23px;
}

/* 页头：与下方卡片体系统一（无大面积底色，紧凑节奏） */
.u-pagehead--hist {
  padding: 16px 0 18px;
  background: none;
  border-bottom: 0;
}

.u-pagehead--hist .u-pagehead__title {
  margin: 0 0 4px;
  font-size: 26px;
}

.u-pagehead--hist .u-pagehead__desc {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.7;
}

.u-pagehead--hist .u-hist-head {
  margin-top: 12px;
}

.u-hist-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* display 类选择器会盖掉 [hidden]，统一显式处理 */
.u-hist [hidden],
.u-hist-head__actions [hidden] {
  display: none !important;
}

/* ---- 概览统计 ---- */
.u-hist-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}

.u-hist-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-m);
  min-width: 0;
}

.u-hist-stat__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.u-hist-stat__icon svg {
  width: 19px;
  height: 19px;
}

.u-hist-stat--amber .u-hist-stat__icon {
  background: var(--amber-50);
  color: var(--amber-700);
}

.u-hist-stat--blue .u-hist-stat__icon {
  background: var(--blue-50);
  color: var(--blue-600);
}

.u-hist-stat--violet .u-hist-stat__icon {
  background: var(--violet-100);
  color: var(--violet-600);
}

.u-hist-stat__body {
  min-width: 0;
}

.u-hist-stat__num {
  display: block;
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-900);
}

.u-hist-stat__num small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}

.u-hist-stat__label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 继续观看 ---- */
.u-hist-resume {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--sh-m);
}

.u-hist-resume__media {
  position: relative;
  display: block;
  min-height: 184px;
  overflow: hidden;
  background: var(--ink-900);
}

.u-hist-resume__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.u-hist-resume__media:hover img {
  transform: scale(1.04);
}

.u-hist-resume__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 14, 0) 45%, rgba(10, 18, 14, .55) 100%);
}

.u-hist-resume__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--brand-800);
  box-shadow: 0 8px 24px -10px rgba(6, 56, 42, .8);
  transition: transform .18s ease;
}

.u-hist-resume__media:hover .u-hist-resume__play {
  transform: scale(1.06);
}

.u-hist-resume__play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.u-hist-resume__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 20px;
}

.u-hist-resume__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-700);
}

.u-hist-resume__eyebrow svg {
  width: 14px;
  height: 14px;
}

.u-hist-resume__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.u-hist-resume__title a {
  color: var(--ink-900);
}

.u-hist-resume__title a:hover {
  color: var(--brand-700);
}

.u-hist-resume__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-hist-resume__meta i {
  font-style: normal;
}

.u-hist-resume__ep {
  margin: 0;
  font-size: 13px;
  color: var(--ink-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u-hist-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.u-hist-progress__track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-100);
  overflow: hidden;
}

.u-hist-progress__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
}

.u-hist-progress__text {
  flex: none;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink-600);
}

.u-hist-resume__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

/* ---- 筛选工具条 ---- */
.u-hist-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}

.u-hist-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg);
}

.u-hist-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.u-hist-tab b {
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-400);
}

.u-hist-tab:hover {
  color: var(--brand-700);
}

.u-hist-tab.is-active {
  background: var(--surface);
  color: var(--brand-700);
  box-shadow: var(--sh-s);
}

.u-hist-tab.is-active b {
  color: var(--brand-600);
}

.u-hist-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.u-hist-search {
  position: relative;
  display: flex;
  align-items: center;
}

.u-hist-search svg {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--ink-400);
  pointer-events: none;
}

.u-hist-search input {
  width: 196px;
  height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-800);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.u-hist-search input:focus {
  border-color: var(--brand-300);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.u-hist-sort {
  height: 36px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c7c74' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  font-size: 13px;
  color: var(--ink-700);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.u-hist-sort:focus {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px var(--brand-50);
}

.u-hist-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ---- 管理态 ---- */
.u-hist-bulk {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.u-hist-manage .u-hist-tools {
  display: none;
}

.u-hist-manage .u-hist-bulk {
  display: flex;
}

.u-hist-selectall {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  user-select: none;
}

.u-hist-selectall input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand-600);
}

.u-hist-bulk__count {
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--ink-500);
}

.u-hist-danger {
  border-color: var(--red-100);
  background: var(--red-50);
  color: var(--red-600);
}

.u-hist-danger:hover:not(:disabled) {
  border-color: var(--red-100);
  background: var(--red-100);
  color: var(--red-600);
}

.u-hist-danger:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ---- 历史卡片 ---- */
.u-hist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.u-hist-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--sh-m);
  transform: translateY(-3px);
}

.u-hist-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-900);
}

.u-hist-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.u-hist-card:hover .u-hist-card__media img {
  transform: scale(1.04);
}

.u-hist-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 14, 0) 52%, rgba(10, 18, 14, .58) 100%);
}

.u-hist-card__ep {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .94);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-800);
}

.u-hist-card__time {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(10, 18, 14, .62);
  font-family: var(--font-num);
  font-size: 11px;
  color: #fff;
}

.u-hist-card__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-800);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .2s ease, transform .2s ease;
}

.u-hist-card:hover .u-hist-card__play {
  opacity: 1;
  transform: scale(1);
}

.u-hist-card__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.u-hist-check {
  position: absolute;
  z-index: 4;
  right: 10px;
  top: 10px;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 7px;
  background: rgba(10, 18, 14, .35);
  color: #fff;
}

.u-hist-manage .u-hist-check {
  display: grid;
}

.u-hist-manage .u-hist-card__time {
  display: none;
}

.u-hist-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
}

.u-hist-card.is-selected {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 2px var(--brand-200);
}

.u-hist-card.is-selected .u-hist-check {
  border-color: var(--brand-600);
  background: var(--brand-600);
}

.u-hist-card.is-selected .u-hist-check svg {
  opacity: 1;
}

.u-hist-manage .u-hist-card {
  cursor: pointer;
}

.u-hist-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 10px 6px 6px;
}

.u-hist-card__title {
  margin: 0;
  min-height: 42px;
  font-size: 14.5px;
  line-height: 1.5;
}

.u-hist-card__title a {
  color: var(--ink-900);
}

.u-hist-card__title a:hover {
  color: var(--brand-700);
}

.u-hist-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-500);
}

.u-hist-card__meta i {
  font-style: normal;
  color: var(--ink-400);
}

.u-hist-tag {
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--brand-50);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-700);
}

.u-hist-card__epname {
  margin: 0;
  font-size: 12px;
  color: var(--ink-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u-hist-card__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--brand-100);
  overflow: hidden;
}

.u-hist-card__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
}

.u-hist-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}

.u-hist-card__go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-700);
}

.u-hist-card__go svg {
  width: 13px;
  height: 13px;
}

.u-hist-card__pct {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink-500);
}

.u-hist-card__del {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--ink-400);
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.u-hist-card:hover .u-hist-card__del,
.u-hist-card__del:focus-visible {
  opacity: 1;
}

/* 收藏页：取消收藏按钮常显（移动端没有 hover） */
.u-fav .u-hist-card__del {
  opacity: 1;
}

.u-hist-card__del:hover {
  border-color: var(--red-100);
  background: var(--red-50);
  color: var(--red-600);
}

.u-hist-card__del svg {
  width: 15px;
  height: 15px;
}

.u-hist-card__pct + .u-hist-card__del {
  margin-left: 0;
}

.u-hist-manage .u-hist-card__del,
.u-hist-manage .u-hist-card__play {
  display: none;
}

/* ---- 空状态 ---- */
.u-hist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-l);
  background: var(--paper);
}

.u-hist-empty__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-500);
}

.u-hist-empty__icon svg {
  width: 32px;
  height: 32px;
}

.u-hist-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.u-hist-empty p {
  max-width: 460px;
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-500);
}

.u-hist-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---- 底部提示 ---- */
.u-hist-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 12px 14px;
  border-radius: var(--r-m);
  background: var(--paper);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-500);
}

.u-hist-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ink-400);
}

.u-hist-note b {
  color: var(--ink-700);
}

/* ---- 确认弹窗 ---- */
.u-hist-confirm p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-600);
}

.u-hist-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
  .u-hist-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .u-hist-resume {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .u-hist-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .u-hist-search input {
    width: 168px;
  }
}

@media (max-width: 719px) {
  .u-hist-stats {
    gap: 10px;
  }

  .u-hist-stat {
    padding: 11px 12px;
  }

  .u-hist-stat__icon {
    width: 34px;
    height: 34px;
  }

  .u-hist-stat__num {
    font-size: 18px;
  }

  .u-hist-resume {
    grid-template-columns: 1fr;
  }

  .u-hist-resume__media {
    min-height: 168px;
  }

  .u-hist-resume__body {
    padding: 14px 15px 16px;
  }

  .u-hist-resume__title {
    font-size: 17px;
  }

  .u-hist-toolbar {
    padding: 10px;
  }

  .u-hist-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .u-hist-tabs::-webkit-scrollbar {
    display: none;
  }

  .u-hist-tools {
    width: 100%;
    margin-left: 0;
  }

  .u-hist-search {
    flex: 1;
  }

  .u-hist-search input {
    width: 100%;
  }

  .u-hist-card__del {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .u-hist-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .u-hist-stat__label {
    font-size: 11.5px;
  }

  .u-hist-bulk {
    width: 100%;
    margin-left: 0;
  }
}
