/* ============================================================
   乐考帮 H5 · 移动端样式
   口径：雾青主色 / 直角矩形 / 线性图标 / 无投影无渐变
   ============================================================ */

body {
  background: #e7edf0;
}

.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

@media (max-width: 520px) {
  .app {
    border-left: 0;
    border-right: 0;
  }
}

.page {
  min-height: 100vh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.page--tab {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.page__body {
  padding: 16px;
}

.page__body--flush {
  padding: 0 0 16px;
}

.page__inner {
  padding: 0 16px;
}

/* 个人中心通栏：用户块与艺分卡不留左右内缩 */
.profile-body {
  padding: 0 0 24px;
}

.profile-body .home-note {
  padding: 0 16px;
}

/* ---------------- 导航栏 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 44px 1fr 68px;
  align-items: center;
  height: 50px;
  padding: 0 4px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav__back {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0 0 3px;
}

.nav__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
}

.nav__action {
  justify-self: end;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}

.nav--plain {
  border-bottom: 0;
}

/* ---------------- 底部 TabBar ---------------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  width: 100%;
  max-width: 480px;
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--ink-3);
}

.tabbar__item.is-active {
  color: var(--teal);
  font-weight: 600;
}

.tabbar__icon {
  width: 22px;
  height: 22px;
  opacity: 0.55;
}

.tabbar__item.is-active .tabbar__icon {
  opacity: 1;
}

/* ---------------- 首页头部 ---------------- */
.home-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.home-head__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.home-head__logo {
  width: 30px;
  height: 30px;
}

.home-head__text {
  min-width: 0;
}

.home-head__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.home-head__school {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-head__consult {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--teal);
  font-size: 12px;
}

.home-head__consult img {
  width: 14px;
  height: 14px;
}

.home-body {
  padding: 0 0 150px;
}

/* ---------------- 轮播 ---------------- */
.banner {
  position: relative;
  margin: 14px 14px 0;
}

.banner__viewport {
  overflow: hidden;
}

.banner__track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.banner__frame {
  flex: 0 0 100%;
  min-height: 172px;
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  cursor: pointer;
}

.banner__frame--teal {
  background: var(--teal);
}

.banner__frame--ink {
  background: var(--ink);
}

.banner__frame--gold {
  background: var(--gold);
  color: var(--ink);
}

.banner__tag {
  align-self: flex-start;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.banner__frame--gold .banner__tag {
  border-color: rgba(30, 42, 48, 0.35);
}

.banner__title {
  margin: 12px 0 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.banner__sub {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.65;
  opacity: 0.88;
}

.banner__bar {
  margin-top: auto;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  opacity: 0.9;
}

.banner__frame--gold .banner__bar {
  border-top-color: rgba(30, 42, 48, 0.22);
}

.banner__dots {
  display: flex;
  gap: 6px;
  padding: 9px 2px 0;
}

.banner__dot {
  width: 6px;
  height: 4px;
  padding: 0;
  border: 0;
  background: var(--line);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.banner__dot.is-active {
  width: 18px;
  background: var(--teal);
}

.banner--empty .empty {
  padding: 28px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ---------------- 功能宫格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 6px 14px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  cursor: pointer;
}

.grid__item:nth-child(3n) {
  border-right: 0;
}

.grid__item:nth-child(n + 4) {
  border-bottom: 0;
}

.grid__icon {
  width: 26px;
  height: 26px;
}

.grid__icon--text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
}

.grid__name {
  font-size: 12px;
  color: var(--ink);
}

.grid__state {
  font-size: 10px;
  color: var(--ink-3);
}

.grid__item.is-gray {
  cursor: not-allowed;
}

.grid__item.is-gray .grid__icon,
.grid__item.is-gray .grid__name {
  opacity: 0.35;
}

.grid__item.is-gray .grid__state {
  color: var(--ink-3);
}

/* ---------------- 艺分条 ---------------- */
.points-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.points-bar__main {
  flex: 1;
  min-width: 0;
}

.points-bar__label {
  margin: 0;
  font-size: 11px;
  color: var(--ink-2);
}

.points-bar__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 3px 0 0;
  font-family: var(--font-num);
}

.points-bar__value b {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.points-bar__value span {
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------------- 分区 ---------------- */
.block {
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 14px 9px;
}

.section-head__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.section-head__extra {
  font-size: 11px;
  color: var(--ink-3);
}

.section-head__link {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-2);
}

/* ---------------- 任务 ---------------- */
.task-list {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.task {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.task:last-child {
  border-bottom: 0;
}

.task.is-done {
  background: var(--surface-alt);
}

.task__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
}

.task.is-done .task__badge {
  background: var(--line-soft);
  color: var(--ink-3);
}

.task__body {
  flex: 1;
  min-width: 0;
}

.task__name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.task__desc {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}

.task__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.task__reward {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.task__reward--mute {
  color: var(--ink-3);
  font-weight: 400;
}

.task__btn {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: 11px;
  cursor: pointer;
}

.task__btn.is-done {
  border-color: var(--line);
  color: var(--ink-3);
  background: var(--surface-alt);
}

/* ---------------- 文章 ---------------- */
.article-list {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article {
  display: flex;
  align-items: stretch;
  gap: 11px;
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.article:last-child {
  border-bottom: 0;
}

.article__stripe {
  width: 3px;
  flex: 0 0 3px;
  background: var(--cover, var(--teal));
  opacity: 0.85;
}

.article__main {
  flex: 1;
  min-width: 0;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article__date {
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-num);
}

.article__title {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.article__summary {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article__arrow {
  align-self: center;
  color: var(--ink-3);
  font-size: 18px;
}

.home-note {
  margin: 18px 14px 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------------- 常驻免责声明 ---------------- */
.disclaimer {
  position: fixed;
  left: 50%;
  bottom: calc(56px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 39;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  padding: 7px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.disclaimer__text {
  flex: 1;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--ink-3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.disclaimer__more {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
}

/* ---------------- 筛选 ---------------- */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--ink-2);
}

.filter.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.list-count {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------------- 提示块 ---------------- */
.notice {
  padding: 13px 14px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
}

.notice__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.notice__text {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-2);
}

.tip-line {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------------- 文章详情 ---------------- */
.detail__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail__date {
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-num);
}

.detail__title {
  margin: 10px 0 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
}

.detail__summary {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--surface);
  border-left: 2px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}

.detail .divider {
  margin: 16px 0;
}

.prose__p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink);
  text-align: justify;
}

.prose__p:last-child {
  margin-bottom: 0;
}

.detail__note {
  margin: 20px 0 16px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------------- 账户卡 ---------------- */
.account {
  padding: 20px 16px 16px;
  background: var(--teal);
  color: #fff;
}

.account__label {
  margin: 0;
  font-size: 11px;
  opacity: 0.82;
}

.account__value {
  margin: 6px 0 0;
  font-family: var(--font-num);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.account__meta {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.85;
}

.account__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.account__actions .btn {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.account__actions .btn--gold {
  background: var(--gold);
  border-color: var(--gold);
}

/* ---------------- 选项卡 ---------------- */
.tabs {
  display: flex;
  margin-top: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tabs__item {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
}

.tabs__item.is-active {
  color: var(--teal);
  font-weight: 600;
  border-bottom-color: var(--teal);
}

/* ---------------- 流水 ---------------- */
.record-list,
.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.record:last-child {
  border-bottom: 0;
}

.record__main {
  flex: 1;
  min-width: 0;
}

.record__source {
  margin: 0;
  font-size: 13px;
}

.record__time {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-num);
}

.record__points {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 600;
}

.record__points.is-plus {
  color: var(--gold);
}

.record__points.is-minus {
  color: var(--ink-2);
}

/* ---------------- 商城 ---------------- */
.mall-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mall-head__label {
  margin: 0;
  font-size: 11px;
  color: var(--ink-2);
}

.mall-head__value {
  margin: 3px 0 0;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.mall-head .btn {
  margin-left: auto;
}

.goods-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.goods {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
}

.goods__cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 2px;
}

.goods__tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 2px 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 9px;
  font-style: normal;
}

.goods__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px;
}

.goods__name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.goods__desc {
  margin: 4px 0 8px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--ink-2);
  height: 32px;
  overflow: hidden;
}

.goods__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-bottom: 8px;
}

.goods__cost {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.goods__cost i {
  margin-left: 2px;
  font-size: 9px;
  font-style: normal;
  color: var(--ink-3);
  font-weight: 400;
}

.goods__stock {
  font-size: 9px;
  color: var(--ink-3);
}

.order {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.order:last-child {
  border-bottom: 0;
}

.order__main {
  flex: 1;
  min-width: 0;
}

.order__name {
  margin: 0;
  font-size: 13px;
}

.order__time {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-num);
}

.order__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.order__cost {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------------- 任务页 ---------------- */
.task-panel {
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.task-panel__head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.task-panel__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 16px;
  font-weight: 600;
}

.task-panel__text {
  flex: 1;
  min-width: 0;
}

.task-panel__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.task-panel__desc {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--ink-2);
}

.task-panel__reward {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.task-panel__note {
  margin: 12px 0 0;
  padding: 8px 10px;
  background: var(--surface-alt);
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-3);
}

.panel {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.panel__hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.panel__done {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
}

.panel .btn--block {
  margin-top: 14px;
}

/* 签到 */
.week {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}

.week__day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 6px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.week__label {
  font-size: 9px;
  color: var(--ink-3);
}

.week__num {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.week__mark {
  font-style: normal;
  font-size: 10px;
  color: var(--line);
}

.week__day.is-done {
  border-color: rgba(47, 107, 122, 0.35);
  background: var(--teal-soft);
}

.week__day.is-done .week__mark {
  color: var(--teal);
}

.week__day.is-today {
  border-color: var(--teal);
}

/* 刷题 */
.quiz {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.quiz:last-of-type {
  border-bottom: 0;
}

.quiz__title {
  display: flex;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.quiz__title span {
  flex: 0 0 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-num);
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}

.option__key {
  flex: 0 0 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink-2);
  font-family: var(--font-num);
}

.option__text {
  flex: 1;
  line-height: 1.5;
}

.option.is-selected {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.option.is-selected .option__key {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.option:disabled {
  cursor: default;
}

.quiz-result {
  margin-top: 14px;
  padding: 13px;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 162, 94, 0.4);
}

.quiz-result__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.quiz-result__desc {
  margin: 5px 0 12px;
  font-size: 11px;
  color: var(--ink-2);
}

/* 视频 */
.video__screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background: var(--ink);
}

.video__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-size: 15px;
  padding-left: 3px;
}

.video__meta {
  padding: 12px 0 0;
}

.video__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.video__desc {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-2);
}

.progress {
  height: 3px;
  margin: 14px 0 6px;
  background: var(--line);
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 0.9s linear;
}

.progress__text {
  margin: 0;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-num);
}

.share-box {
  padding: 13px;
  background: var(--surface-alt);
  border: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------------- 自测 ---------------- */
.test__lead {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

.test__progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--ink-3);
  font-family: var(--font-num);
}

.test__question {
  margin: 18px 0 14px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
}

.test__options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.test__options .option {
  padding: 13px 12px;
  font-size: 13px;
}

.test__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.test__actions .btn {
  flex: 1;
}

.result {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.result__label {
  margin: 0;
  font-size: 11px;
  color: var(--ink-2);
}

.result__level {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
}

.result__score {
  margin: 6px 0 0;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--gold);
}

.result__summary {
  margin: 14px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink);
}

.result__list {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
}

.result__note {
  margin: 16px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-3);
}

.result__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.result__actions .btn {
  flex: 1;
}

/* ---------------- 个人中心 ---------------- */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: var(--teal);
  color: #fff;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 19px;
  font-weight: 600;
}

.profile-hero__text {
  flex: 1;
  min-width: 0;
}

.profile-hero__name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.profile-hero__sub {
  margin: 4px 0 0;
  font-size: 11px;
  opacity: 0.82;
}

.profile-hero .btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.profile-hero .btn--gold {
  background: var(--gold);
  border-color: var(--gold);
}

.profile-hero--guest {
  background: var(--ink-2);
}

.profile-points {
  padding: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.profile-points__main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.profile-points__label {
  margin: 0;
  font-size: 11px;
  color: var(--ink-2);
}

.profile-points__value {
  margin: 0;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.profile-points__meta {
  display: flex;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.profile-points__meta div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-points__meta span {
  font-size: 10px;
  color: var(--ink-3);
}

.profile-points__meta b {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
}

.menu {
  margin-top: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.menu__item:last-child {
  border-bottom: 0;
}

.menu__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.menu__label {
  font-size: 14px;
  color: var(--ink);
}

.menu__desc {
  font-size: 10px;
  color: var(--ink-3);
}

.menu__arrow {
  color: var(--ink-3);
  font-size: 17px;
}

.menu__item--danger .menu__label {
  color: var(--danger);
}

/* ---------------- 登录 ---------------- */
.login {
  padding-top: 24px;
  text-align: center;
}

.login__logo {
  width: 52px;
  height: 52px;
  margin: 0 auto;
}

.login__title {
  margin: 16px 0 0;
  font-size: 21px;
  font-weight: 700;
}

.login__sub {
  margin: 7px 0 26px;
  font-size: 12px;
  color: var(--ink-2);
}

.login__form {
  text-align: left;
}

.login__note {
  margin: 18px 0 0;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.8;
  color: var(--ink-3);
  text-align: left;
}

.login__agree {
  margin: 14px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------------- 表单 ---------------- */
.form .field:last-of-type {
  margin-bottom: 20px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip--select {
  height: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}

.chip--select.is-active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.success {
  padding: 32px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 20px;
}

.success__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.success__text {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

.success__meta {
  margin: 8px 0 20px;
  font-size: 10px;
  color: var(--ink-3);
  font-family: var(--font-num);
}

/* ---------------- 占位 ---------------- */
.placeholder {
  padding: 34px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.placeholder__badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink-3);
}

.placeholder__title {
  margin: 14px 0 0;
  font-size: 19px;
  font-weight: 600;
}

.placeholder__text {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-2);
  text-align: left;
}

.placeholder__list {
  margin: 14px 0 22px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
  text-align: left;
}

/* ---------------- 弹层 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(30, 42, 48, 0.46);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.modal__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.modal__body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  max-height: 46vh;
  overflow-y: auto;
}

.modal__body p {
  margin: 0 0 8px;
}

.modal__hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-3);
}

.modal__actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.modal__actions .btn {
  flex: 1;
}

/* ---------------- 加载 ---------------- */
.page--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.skeleton__brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal);
}

.skeleton__text {
  font-size: 12px;
  color: var(--ink-3);
}

.skeleton .btn {
  margin-top: 6px;
}
