/* ==========================================================================
   学生端首页 · 按设计稿 1:1
   ========================================================================== */

/* 骨架屏 */
.sk { padding: 0; height: calc(100vh - 100px); }
.sk__box {
  height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, #f0f4fa 25%, #f8fafd 50%, #f0f4fa 75%);
  background-size: 200% 100%;
  animation: skAnim 1.4s ease-in-out infinite;
}
@keyframes skAnim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==========================================================================
   容器
   ========================================================================== */
.sh {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 24px);
  min-height: 520px;
}

.sh-grow { flex: 1 1 auto; min-width: 4px; }

/* ==========================================================================
   ① 顶部
   ========================================================================== */
.sh-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
  height: 52px;
}

.sh-brand {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; flex: 0 0 auto;
  padding-right: 14px;
  border-right: 1px solid #e6eefa;
}

.sh-brand__ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px -4px rgba(22,119,255,.55);
  flex: 0 0 34px;
}
.sh-brand__ico svg { width: 18px; height: 18px; }

.sh-brand__name {
  font-size: 15px; font-weight: 850; letter-spacing: -.02em;
  white-space: nowrap; color: #1d2129;
}

/* 用户 */
.sh-user {
  display: flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 14px 0 5px;
  border-radius: 99px; background: #f2f7ff;
  border: 1px solid #e6eefa; cursor: pointer;
  transition: all .16s; flex: 0 0 auto;
}
.sh-user:hover { background: #e8f3ff; border-color: rgba(22,119,255,.32); }

.sh-user__ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #dcebff, #c4ddff);
  display: grid; place-items: center; font-size: 18px;
  flex: 0 0 34px;
}

.sh-user__name {
  font-size: 13px; font-weight: 800; line-height: 1.2;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}

.sh-vip {
  font-size: 9px; font-weight: 900; padding: 1px 5px;
  border-radius: 3px; background: linear-gradient(135deg, #ffd666, #ffa940);
  color: #7a4100; line-height: 1.6;
}

.sh-user__meta {
  font-size: 10.5px; color: #86909c;
  display: flex; align-items: center; gap: 5px;
  margin-top: 1px; white-space: nowrap;
}
.sh-user__role { color: #1677ff; font-weight: 750; }
.sh-user__cls {
  padding: 0 6px; border-radius: 3px;
  background: #fff; color: #1677ff;
  font-weight: 700; font-size: 10px;
}

/* 钱包 */
.sh-wallets { display: flex; gap: 8px; flex: 0 0 auto; }

.sh-w {
  display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 12px;
  border-radius: 11px; background: #fff;
  border: 1px solid #e6eefa; cursor: pointer;
  transition: all .16s; font-family: inherit;
}
.sh-w:hover {
  border-color: rgba(22,119,255,.36);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -5px rgba(22,119,255,.2);
}

.sh-w__ico {
  width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; flex: 0 0 24px;
}
.sh-w__ico svg { width: 15px; height: 15px; }
.sh-w__ico--blue { background: #e8f3ff; color: #1677ff; }
.sh-w__ico--gold { background: #fff7e6; color: #d48806; }
.sh-w__ico--silver { background: #f0f4f9; color: #7a8fa6; }

.sh-w__txt { display: flex; flex-direction: column; line-height: 1.15; }
.sh-w__txt b { font-size: 9.5px; color: #86909c; font-weight: 650; }
.sh-w__txt i {
  font-size: 14px; font-weight: 850; font-style: normal;
  color: #1d2129; font-variant-numeric: tabular-nums;
}

.sh-w__plus {
  width: 19px; height: 19px; border-radius: 50%;
  background: #1677ff; color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; line-height: 1;
  flex: 0 0 19px;
}

/* 图标按钮 */
.sh-ibtn {
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid #e6eefa; border-radius: 11px;
  background: #fff; color: #4e5969;
  display: grid; place-items: center;
  cursor: pointer; transition: all .16s;
  flex: 0 0 42px;
}
.sh-ibtn:hover { background: #f2f7ff; color: #1677ff; border-color: rgba(22,119,255,.3); }
.sh-ibtn svg { width: 19px; height: 19px; }

.sh-ibtn__dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #f53f3f; border: 1.5px solid #fff;
}

/* ==========================================================================
   ② 中部 3 列
   ========================================================================== */
.sh-main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: hidden;
}

.sh-col {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0; min-width: 0;
}

.sh-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1 1 0;
  min-height: 0;
}

/* ---------- 卡片基础 ---------- */
.sh-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid #e9f0fb;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .22s, transform .16s, border-color .22s;
  text-align: left;
  font-family: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
  min-height: 0;
  min-width: 0;
  box-shadow: 0 2px 12px -5px rgba(22,119,255,.12);
}

.sh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px -14px rgba(22,119,255,.4);
  border-color: rgba(22,119,255,.3);
}
.sh-card:active { transform: translateY(-1px) scale(.99); }

/* 高度分配 */
.sh-col > .sh-card--l1 { flex: 1.75 1 0; }
.sh-col > .sh-card--l2 { flex: 0.95 1 0; }
.sh-col > .sh-row2       { flex: 0.78 1 0; }

/* 大卡 */
.sh-card--l1 { padding: 20px; }
.sh-card--l1 .sh-card__title { font-size: 18px; }

.sh-card__title--lg { font-size: 23px !important; }

/* 主色大卡 */
.sh-card--blue {
  background: linear-gradient(125deg, #0958d9, #1677ff 48%, #4096ff);
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 40px -14px rgba(22,119,255,.6);
}
.sh-card--purple {
  background: linear-gradient(125deg, #531dab, #722ed1 48%, #9254de);
  border-color: transparent; color: #fff;
  box-shadow: 0 12px 40px -14px rgba(114,46,209,.6);
}
.sh-card--blue::after, .sh-card--purple::after {
  content: ""; position: absolute;
  right: -70px; top: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%);
  pointer-events: none;
}
.sh-card--blue .sh-card__title, .sh-card--purple .sh-card__title { color: #fff; }
.sh-card--blue .sh-card__desc, .sh-card--purple .sh-card__desc { color: rgba(255,255,255,.88); }

/* 卡片内元素 */
.sh-card__ico {
  width: 36px; height: 36px; border-radius: 11px;
  background: #f2f7ff; color: #1677ff;
  display: grid; place-items: center;
  flex: 0 0 auto; margin-bottom: 9px;
  transition: transform .22s;
}
.sh-card__ico svg { width: 18px; height: 18px; }
.sh-card:hover .sh-card__ico { transform: scale(1.08) rotate(-3deg); }

.sh-card__ico--lg {
  width: 52px; height: 52px; border-radius: 15px;
  background: rgba(255,255,255,.2); color: #fff;
  margin-bottom: 0;
}
.sh-card__ico--lg svg { width: 26px; height: 26px; }

.sh-card__body {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  justify-content: flex-end; min-height: 0;
}

.sh-card__title {
  font-size: 14px; font-weight: 850; color: #1d2129;
  line-height: 1.25; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sh-card__desc {
  font-size: 11px; color: #86909c;
  margin-top: 3px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sh-card__watermark {
  position: absolute; right: 16px; bottom: 10px;
  font-weight: 900; line-height: 1;
  color: #1677ff; opacity: .1;
  letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.sh-card--l1 .sh-card__watermark { font-size: 56px; }
.sh-card--l2 .sh-card__watermark { font-size: 38px; right: 12px; bottom: 6px; }
.sh-card--blue .sh-card__watermark,
.sh-card--purple .sh-card__watermark { color: #fff; opacity: .22; }

.sh-card__tag {
  position: absolute; top: 11px; right: 11px;
  font-size: 10px; font-weight: 850;
  padding: 2px 9px; border-radius: 99px;
  background: rgba(250,140,22,.14); color: #d46b08;
  z-index: 2; line-height: 1.5; white-space: nowrap;
}
.sh-card--blue .sh-card__tag,
.sh-card--purple .sh-card__tag { background: rgba(255,255,255,.24); color: #fff; }
.sh-card__tag--new { background: linear-gradient(135deg, #f53f3f, #ff7a45); color: #fff; }

/* 小卡配色 */
.sh-c-cy .sh-card__ico { background: #e8fafa; color: #13c2c2; }
.sh-c-or .sh-card__ico { background: #fff5e8; color: #fa8c16; }
.sh-c-pu .sh-card__ico { background: #f5edff; color: #722ed1; }
.sh-c-gr .sh-card__ico { background: #eafbee; color: #00b42a; }
.sh-c-pk .sh-card__ico { background: #fff0f8; color: #eb2f96; }
.sh-c-blue .sh-card__ico { background: #f2f7ff; color: #1677ff; }

/* 中卡配色（浅色背景） */
.sh-card--l2.sh-c-cy { background: linear-gradient(160deg,#edfcfc,#dcf7f7); border-color: #b5f0f0; }
.sh-card--l2.sh-c-pu { background: linear-gradient(160deg,#f8f2ff,#efe3ff); border-color: #dcc7f7; }
.sh-card--l2.sh-c-gr { background: linear-gradient(160deg,#f0fdf4,#e0f8e8); border-color: #b7ebc6; }
.sh-card--l2 .sh-card__ico { background: #fff; box-shadow: 0 3px 10px -4px rgba(22,119,255,.24); }
.sh-card--l2 .sh-card__title { font-size: 15px; }
.sh-card--l2 .sh-card__desc { font-size: 11px; }

/* 小卡 */
.sh-card--l3 { padding: 12px; justify-content: center; }
.sh-card--l3 .sh-card__ico { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 6px; }
.sh-card--l3 .sh-card__ico svg { width: 15px; height: 15px; }
.sh-card--l3 .sh-card__title { font-size: 12.5px; }
.sh-card--l3 .sh-card__desc { font-size: 10px; margin-top: 2px; }

/* ---------- 宠物卡 ---------- */
.sh-card--pet {
  background: linear-gradient(165deg,#eaf2ff,#d8e8ff 52%,#c9dfff);
  border-color: #c5dbff;
  align-items: center; justify-content: center;
  text-align: center; padding: 18px 16px;
}
.sh-card--pet:hover { box-shadow: 0 18px 46px -16px rgba(22,119,255,.5); }

.sh-pet__ava {
  width: 82px; height: 82px; border-radius: 25px;
  background: #fff; display: grid; place-items: center;
  margin-bottom: 13px; color: #1677ff;
  box-shadow: 0 12px 32px -12px rgba(22,119,255,.45);
  animation: petIdle 3.4s ease-in-out infinite;
  flex: 0 0 auto;
}
.sh-pet__ava svg { width: 42px; height: 42px; }

@keyframes petIdle {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

.sh-pet__name { font-size: 16px; font-weight: 850; color: #1d2129; margin-bottom: 7px; }

.sh-pet__lv {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 850; color: #1677ff;
  background: #fff; padding: 4px 12px; border-radius: 99px;
  box-shadow: 0 3px 10px -4px rgba(22,119,255,.26);
  margin-bottom: 12px;
}
.sh-pet__lv svg { width: 12px; height: 12px; }

.sh-pet__exp { width: 100%; max-width: 190px; }
.sh-pet__bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.92); overflow: hidden; }
.sh-pet__bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#1677ff,#69b1ff); }
.sh-pet__xp { font-size: 10.5px; color: #5c7ca8; margin-top: 6px; font-weight: 750; font-variant-numeric: tabular-nums; }

/* ---------- 段位卡 ---------- */
.sh-card--rank {
  background: linear-gradient(150deg,#fff9e6,#fff1c4 55%,#ffe7a8);
  border-color: #ffe0a3;
  justify-content: center; padding: 14px 16px;
}
.sh-card--rank:hover { box-shadow: 0 18px 46px -16px rgba(255,176,32,.46); }

.sh-rank__ico {
  width: 38px; height: 38px; border-radius: 12px;
  background: #fff; display: grid; place-items: center;
  color: #ffb020; margin-bottom: 8px;
  box-shadow: 0 6px 16px -7px rgba(255,176,32,.55);
  flex: 0 0 auto;
}
.sh-rank__ico svg { width: 20px; height: 20px; }

.sh-rank__name { font-size: 15px; font-weight: 900; color: #874d00; line-height: 1.2; }

.sh-rank__bar {
  height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.92); overflow: hidden;
  margin-top: 7px;
}
.sh-rank__bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,#ffb020,#ff9a2e); }
.sh-rank__tip { font-size: 10.5px; color: #a86800; margin-top: 5px; font-weight: 750; }

/* ==========================================================================
   ③ 底部
   ========================================================================== */
.sh-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 16px;
  margin-top: auto;
  background: rgba(255,255,255,.94);
  border: 1px solid #e6eefa;
  box-shadow: 0 2px 14px -6px rgba(22,93,255,.14);
  overflow-x: auto;
  scrollbar-width: none;
}
.sh-foot::-webkit-scrollbar { display: none; }

.sh-fbtn {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 13px;
  border: 1px solid #e6eefa; border-radius: 10px;
  background: #fff; color: #4e5969;
  font-size: 12px; font-weight: 750; font-family: inherit;
  cursor: pointer; transition: all .16s;
  white-space: nowrap; position: relative;
}
.sh-fbtn:hover { background: #f2f7ff; color: #1677ff; border-color: rgba(22,119,255,.34); }
.sh-fbtn:active { transform: scale(.97); }
.sh-fbtn svg { width: 15px; height: 15px; flex: 0 0 15px; }

.sh-fbtn__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #f53f3f; flex: 0 0 6px;
}

.sh-shop {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 20px;
  border: 0; border-radius: 11px;
  background: linear-gradient(135deg,#1677ff,#4096ff);
  color: #fff; font-size: 13px; font-weight: 850;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(22,119,255,.7);
  transition: all .18s; white-space: nowrap;
}
.sh-shop:hover { filter: brightness(1.06); transform: translateY(-1px); }
.sh-shop:active { transform: translateY(0) scale(.97); }
.sh-shop svg { width: 17px; height: 17px; }

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

/* 中等屏：收窄 */
@media (max-width: 1500px) {
  .sh-card__title--lg { font-size: 21px !important; }
  .sh-card--l1 { padding: 17px; }
  .sh-pet__ava { width: 72px; height: 72px; }
  .sh-pet__ava svg { width: 36px; height: 36px; }
}

@media (max-width: 1280px) {
  .sh-brand__name { display: none; }
  .sh-brand { padding-right: 10px; }
  .sh-wallets { gap: 6px; }
  .sh-w { padding: 0 9px; gap: 5px; }
  .sh-card__title--lg { font-size: 19px !important; }
  .sh-card--l2 .sh-card__title { font-size: 14px; }
  .sh-fbtn span { display: none; }
  .sh-fbtn { padding: 0 11px; }
}

/* 窄屏 */
@media (max-width: 1000px) {
  .sh-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-col:nth-child(3) { display: none; }
  .sh-w__txt b { display: none; }
}

/* 竖屏 / 小屏：单列 */
@media (max-width: 780px), (orientation: portrait) {
  .sh { height: auto; min-height: 0; }
  .sh-top { flex-wrap: wrap; height: auto; gap: 8px; }
  .sh-brand__name { display: block; }
  .sh-grow { display: none; }
  .sh-main {
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .sh-col:nth-child(3) { display: flex; }
  .sh-col > .sh-card--l1 { flex: 0 0 auto; min-height: 140px; }
  .sh-col > .sh-card--l2 { flex: 0 0 auto; min-height: 100px; }
  .sh-row2 { flex: 0 0 auto; }
  .sh-card--l3 { min-height: 84px; }
  .sh-fbtn span { display: inline; }
}

/* 横屏矮屏 */
@media (orientation: landscape) and (max-height: 620px) {
  .sh { height: calc(100vh - 76px); gap: 8px; }
  .sh-top { height: 44px; gap: 7px; }
  .sh-brand__ico { width: 28px; height: 28px; flex: 0 0 28px; }
  .sh-brand__ico svg { width: 15px; height: 15px; }
  .sh-user { height: 38px; }
  .sh-user__ava { width: 28px; height: 28px; flex: 0 0 28px; font-size: 15px; }
  .sh-w { height: 36px; }
  .sh-ibtn { width: 36px; height: 36px; flex: 0 0 36px; }
  .sh-ibtn svg { width: 16px; height: 16px; }
  .sh-main { gap: 8px; }
  .sh-col { gap: 8px; }
  .sh-row2 { gap: 8px; }
  .sh-card { padding: 12px; border-radius: 14px; }
  .sh-card--l1 { padding: 14px; }
  .sh-card__title--lg { font-size: 17px !important; }
  .sh-card__ico { width: 30px; height: 30px; margin-bottom: 6px; }
  .sh-card__ico svg { width: 15px; height: 15px; }
  .sh-card__ico--lg { width: 42px; height: 42px; }
  .sh-card__ico--lg svg { width: 21px; height: 21px; }
  .sh-card__title { font-size: 12.5px; }
  .sh-card__desc { font-size: 10px; }
  .sh-card--l2 .sh-card__title { font-size: 13px; }
  .sh-card--l3 .sh-card__title { font-size: 11.5px; }
  .sh-pet__ava { width: 54px; height: 54px; border-radius: 17px; margin-bottom: 8px; }
  .sh-pet__ava svg { width: 27px; height: 27px; }
  .sh-pet__name { font-size: 13px; margin-bottom: 4px; }
  .sh-pet__lv { font-size: 10.5px; padding: 3px 9px; margin-bottom: 8px; }
  .sh-pet__xp { font-size: 9.5px; }
  .sh-rank__ico { width: 30px; height: 30px; margin-bottom: 5px; }
  .sh-rank__ico svg { width: 16px; height: 16px; }
  .sh-rank__name { font-size: 13px; }
  .sh-rank__tip { font-size: 9.5px; }
  .sh-foot { padding: 6px 8px; gap: 5px; }
  .sh-fbtn { height: 31px; padding: 0 10px; font-size: 11px; }
  .sh-shop { height: 33px; padding: 0 15px; font-size: 12px; }
}


/* ==========================================================================
   通行证 Battle Pass
   ========================================================================== */
.pass-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10, 18, 32, .58);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: none; align-items: center; justify-content: center;
  padding: 22px;
}
.pass-overlay.is-open { display: flex; }

.pass {
  width: 1120px; max-width: 100%; max-height: 90vh;
  background: linear-gradient(170deg, #f8fbff, #eef6ff 42%, #f4f9ff);
  border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .62);
  animation: passIn .3s cubic-bezier(.22, 1.2, .4, 1);
}
@keyframes passIn { from { opacity: 0; transform: scale(.95) translateY(14px); } }

/* 头部 */
.pass__head {
  flex: 0 0 auto; padding: 20px 24px 18px;
  background: linear-gradient(125deg, #0958d9, #1677ff 48%, #4096ff);
  color: #fff; position: relative; overflow: hidden;
}
.pass__head::after {
  content: ""; position: absolute; right: -70px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%);
  pointer-events: none;
}

.pass__top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; position: relative;
}

.pass__lv { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }

.pass__lv-badge {
  width: 54px; height: 54px; border-radius: 17px;
  background: rgba(255,255,255,.22);
  display: grid; place-items: center;
  font-size: 21px; font-weight: 900;
  border: 2px solid rgba(255,255,255,.42);
  font-variant-numeric: tabular-nums;
  flex: 0 0 54px;
}

.pass__lv-label { font-size: 11.5px; opacity: .84; font-weight: 650; }
.pass__lv-title { font-size: 17px; font-weight: 900; line-height: 1.2; }

.pass__tier {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(255,255,255,.2);
  font-size: 12.5px; font-weight: 850;
  border: 1px solid rgba(255,255,255,.32);
}
.pass__tier svg { width: 15px; height: 15px; }

.pass__spacer { flex: 1; }

.pass__close {
  width: 34px; height: 34px; flex: 0 0 34px;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.18); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .16s;
}
.pass__close:hover { background: rgba(255,255,255,.32); }
.pass__close svg { width: 18px; height: 18px; }

/* 经验条 */
.pass__exp-label {
  display: flex; justify-content: space-between;
  font-size: 11.5px; font-weight: 750; opacity: .92; margin-bottom: 7px;
}
.pass__exp-bar {
  height: 12px; border-radius: 99px;
  background: rgba(255,255,255,.24); overflow: hidden;
}
.pass__exp-bar > div {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ffd666, #ffb020, #ff9a2e);
  transition: width .8s cubic-bezier(.22,.9,.3,1);
  box-shadow: 0 0 14px rgba(255,176,32,.6);
}

/* 主体 */
.pass__body {
  flex: 1 1 auto; overflow-x: auto; overflow-y: hidden;
  padding: 20px 24px 24px;
}
.pass__body::-webkit-scrollbar { height: 7px; }
.pass__body::-webkit-scrollbar-thumb { background: #cfdff2; border-radius: 4px; }

.pass__tracks { display: flex; min-width: max-content; }

/* 左侧轨道标签 */
.track-label {
  flex: 0 0 auto; width: 92px;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 40px;
  position: sticky; left: 0; z-index: 3;
  background: linear-gradient(90deg, #f2f8ff 72%, rgba(242,248,255,0) 100%);
}
.track-label__row {
  height: 92px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border-radius: 12px;
  font-size: 11.5px; font-weight: 800;
}
.track-label__row svg { width: 16px; height: 16px; }
.track-label__row--free { background: #eef2f8; color: #4e5969; }
.track-label__row--vip { background: #fff7e6; color: #d48806; }
.track-label__row--pro { background: #f5edff; color: #722ed1; }

/* 等级列 */
.pass__cols { display: flex; gap: 10px; }

.pcol {
  flex: 0 0 auto; width: 116px;
  display: flex; flex-direction: column; gap: 10px;
}

.pcol__lv {
  height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 850;
  background: #eef2f8; color: #86909c;
  font-variant-numeric: tabular-nums;
}
.pcol.is-current .pcol__lv {
  background: linear-gradient(135deg, #1677ff, #4096ff);
  color: #fff;
  box-shadow: 0 4px 14px -5px rgba(22,119,255,.6);
}
.pcol.is-past .pcol__lv { background: #e8f3ff; color: #1677ff; }
.pcol.is-locked .pcol__lv { opacity: .6; }

/* 奖励格 */
.preward {
  height: 92px; border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; position: relative;
  border: 1.5px solid transparent; padding: 6px;
  transition: all .2s cubic-bezier(.22,.9,.3,1);
  text-align: center;
}
.preward:hover { transform: translateY(-3px); }

.preward--free {
  background: #fff; border-color: #e6eefa;
  box-shadow: 0 2px 10px -4px rgba(22,119,255,.1);
}
.preward--vip {
  background: linear-gradient(160deg, #fffdf6, #fff7e6);
  border-color: #ffe4b8;
}
.preward--pro {
  background: linear-gradient(160deg, #fbf5ff, #f3e9ff);
  border-color: #dcc7f7;
}

.preward.is-ready { border-color: #ffb020; box-shadow: 0 0 0 2px rgba(255,176,32,.2); }
.preward.is-claimed { opacity: .46; pointer-events: none; }
.preward.is-locked { opacity: .4; filter: grayscale(.6); pointer-events: none; }

.preward__ico { width: 30px; height: 30px; display: grid; place-items: center; }
.preward__ico svg { width: 26px; height: 26px; }
.preward__amt { font-size: 13px; font-weight: 900; line-height: 1; color: #1d2129; font-variant-numeric: tabular-nums; }
.preward__type { font-size: 10px; font-weight: 700; color: #86909c; line-height: 1; }

@media (max-width: 900px) {
  .pass { max-height: 94vh; }
  .pass__head { padding: 16px 16px 14px; }
  .pass__body { padding: 14px 16px 16px; }
  .track-label { width: 76px; }
  .pcol { width: 96px; }
  .preward, .track-label__row { height: 80px; }
}


/* ==========================================================================
   工单
   ========================================================================== */
.tk-wrap { display: flex; flex-direction: column; gap: 14px; }

.tk-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.tk-tab {
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid #e5eaf2; background: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .16s; color: #4e5969;
}
.tk-tab:hover { border-color: rgba(22,119,255,.35); color: #1677ff; }
.tk-tab.is-on {
  background: linear-gradient(135deg,#1677ff,#4096ff);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px -5px rgba(22,119,255,.6);
}

.tk-panel { display: flex; flex-direction: column; gap: 12px; }
.tk-panel[hidden] { display: none !important; }

.tk-types { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-type {
  padding: 8px 16px; border-radius: 99px;
  border: 1.5px solid #e5eaf2; background: #fff;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .16s; color: #86909c;
}
.tk-type:hover { border-color: var(--tc, #1677ff); color: var(--tc, #1677ff); }
.tk-type.is-on {
  border-color: var(--tc, #1677ff);
  background: var(--tc, #1677ff); color: #fff;
}

.tk-item {
  background: #fff; border: 1px solid #e5eaf2; border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 2px 12px -5px rgba(22,119,255,.1);
}
.tk-item__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-badge { font-size: 10.5px; font-weight: 850; padding: 2px 9px; border-radius: 99px; }
.tk-item__type { font-size: 11px; color: #86909c; }
.tk-item__user { font-size: 11px; color: #1677ff; font-weight: 700; }
.tk-item__time { margin-left: auto; font-size: 11px; color: #86909c; }
.tk-item__title { font-size: 14px; font-weight: 750; color: #1d2129; }
.tk-item__reply {
  font-size: 12.5px; line-height: 1.7; padding: 10px 12px;
  border-radius: 10px; background: #f2f8ff; color: #4e5969;
}
.tk-item__reply b { display: block; font-size: 11px; color: #1677ff; margin-bottom: 4px; }
.tk-item__wait { font-size: 12px; color: #86909c; }

.tk-reply-box { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tk-reply-actions { display: flex; gap: 8px; align-items: center; }

.tk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tk-stat {
  background: #fff; border: 1px solid #e5eaf2; border-radius: 12px;
  padding: 12px; text-align: center;
  box-shadow: 0 2px 10px -5px rgba(22,119,255,.1);
}
.tk-stat b { display: block; font-size: 20px; color: #1677ff; font-weight: 900; }
.tk-stat span { font-size: 11px; color: #86909c; }

.tk-empty {
  text-align: center; padding: 48px 20px; color: #86909c;
  font-size: 13px; line-height: 1.8;
}

/* ==========================================================================
   好友
   ========================================================================== */
.fr-wrap { display: flex; flex-direction: column; gap: 14px; }

.fr-search { display: flex; gap: 8px; }
.fr-search .input { flex: 1 1 auto; }

.fr-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff;
  border: 1px solid #e5eaf2; border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 10px -5px rgba(22,119,255,.1);
}
.fr-user--req { border-color: #ffd591; background: #fffbf5; }
.fr-user__ava {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#eef2ff,#fce7f3);
  font-size: 20px; flex: 0 0 40px;
}
.fr-user__info { flex: 1 1 auto; min-width: 0; }
.fr-user__name { font-size: 13.5px; font-weight: 750; color: #1d2129; }
.fr-user__id { font-size: 11px; color: #86909c; margin-top: 2px; }
.fr-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 99px;
  background: #f2f4f7; color: #86909c; white-space: nowrap;
}
.fr-tag--ok { background: #eafbee; color: #00a832; }

.fr-section { display: flex; flex-direction: column; gap: 10px; }
.fr-section[hidden] { display: none !important; }
.fr-section__title { font-size: 12px; font-weight: 850; color: #86909c; }
.fr-results { display: flex; flex-direction: column; gap: 8px; }
.fr-results:empty { display: none; }
.fr-empty {
  text-align: center; padding: 40px 20px; color: #86909c;
  font-size: 13px; line-height: 1.8;
}

/* ==========================================================================
   PK
   ========================================================================== */
.pk-wrap { display: flex; flex-direction: column; gap: 14px; }

.pk-hero {
  background: linear-gradient(125deg,#0958d9,#1677ff 50%,#4096ff);
  border-radius: 18px; padding: 26px 22px;
  text-align: center; color: #fff;
  box-shadow: 0 14px 40px -16px rgba(22,119,255,.55);
  position: relative; overflow: hidden;
}
.pk-hero::after {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%);
}
.pk-hero__ico {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center; margin: 0 auto 12px;
  position: relative;
}
.pk-hero__ico svg { width: 26px; height: 26px; }
.pk-hero__title { font-size: 20px; font-weight: 850; margin-bottom: 6px; position: relative; }
.pk-hero__desc { font-size: 12.5px; opacity: .88; line-height: 1.7; margin-bottom: 16px; position: relative; }
.pk-hero .btn {
  background: #fff !important; color: #1677ff !important;
  border: 0 !important; font-weight: 850; position: relative;
}

.pk-card {
  background: #fff; border: 1px solid #e5eaf2; border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px -5px rgba(22,119,255,.12);
}
.pk-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pk-card__vs { font-size: 13px; font-weight: 750; flex: 1 1 auto; color: #1d2129; }
.pk-card__vs b { color: #1677ff; margin: 0 4px; }
.pk-card__res { font-size: 11px; font-weight: 850; padding: 3px 11px; border-radius: 99px; }
.pk-card__res.is-win { background: #eafbee; color: #00a832; }
.pk-card__res.is-lose { background: #fff1f0; color: #f53f3f; }
.pk-card__res.is-draw { background: #f2f4f7; color: #86909c; }
.pk-card__res.is-pending { background: #fff8e6; color: #d48806; }

.pk-card__body { display: flex; align-items: center; gap: 12px; }
.pk-side { flex: 1 1 0; text-align: center; }
.pk-side__label { font-size: 11px; color: #86909c; margin-bottom: 4px; }
.pk-side__rate { font-size: 22px; font-weight: 900; color: #1677ff; }
.pk-side__time { font-size: 11px; color: #86909c; margin-top: 2px; }
.pk-vs { font-size: 18px; font-weight: 900; color: #c9d2dd; flex: 0 0 auto; }

.pk-card__foot {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid #e5eaf2;
  font-size: 11px; color: #86909c;
}
.pk-go {
  background: none; border: 0; color: #1677ff;
  font-weight: 750; cursor: pointer; font-family: inherit;
}

.pk-play { display: flex; flex-direction: column; gap: 14px; }
.pk-play__bar { height: 6px; border-radius: 99px; background: #eef2f8; overflow: hidden; }
.pk-play__bar > div {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg,#1677ff,#69b1ff);
  transition: width .3s;
}
.pk-play__meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: #86909c; font-weight: 700;
}
.pk-play__score { color: #00a832; }

.pk-q {
  background: #fff; border: 1px solid #e5eaf2; border-radius: 16px;
  padding: 20px; font-size: 14px; line-height: 1.9; min-height: 120px;
  box-shadow: 0 2px 12px -5px rgba(22,119,255,.12);
}
.pk-q__img { width: 100%; border-radius: 12px; margin-top: 10px; cursor: zoom-in; }

.pk-actions { display: flex; gap: 12px; }
.pk-btn { flex: 1 1 0; justify-content: center; padding: 16px; font-size: 15px; font-weight: 850; }

.pk-result { text-align: center; padding: 40px 20px; }
.pk-result__ico {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px;
  background: #fff8e6; color: #d48806; display: grid; place-items: center;
}
.pk-result__ico svg { width: 32px; height: 32px; }
.pk-result__title { font-size: 18px; font-weight: 850; color: #1d2129; margin-bottom: 8px; }
.pk-result__rate { font-size: 44px; font-weight: 900; color: #1677ff; line-height: 1; }
.pk-result__meta { font-size: 13px; color: #86909c; margin-top: 8px; }
.pk-result__tip { font-size: 12px; color: #86909c; margin-top: 12px; }

.pk-empty {
  text-align: center; padding: 50px 20px;
  color: #86909c; font-size: 13px; line-height: 1.8;
}
.pk-loading { text-align: center; padding: 60px 20px; color: #86909c; }

/* ==========================================================================
   排行榜
   ========================================================================== */
.rk-wrap { display: flex; flex-direction: column; gap: 8px; }

.rk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff;
  border: 1px solid #e5eaf2; border-radius: 12px;
  box-shadow: 0 2px 10px -5px rgba(22,119,255,.1);
}
.rk-item.is-me { border-color: #1677ff; background: #f2f8ff; }
.rk-item__no {
  width: 28px; font-size: 15px; font-weight: 900;
  text-align: center; color: #86909c; flex: 0 0 28px;
}
.rk-item__ava {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg,#eef2ff,#fce7f3);
  font-size: 18px; flex: 0 0 36px;
}
.rk-item__name { flex: 1 1 auto; font-size: 13.5px; font-weight: 750; color: #1d2129; }
.rk-item__score { font-size: 16px; font-weight: 900; color: #1677ff; }
.rk-item__score span { font-size: 11px; color: #86909c; margin-left: 2px; }
.rk-empty { text-align: center; padding: 60px 20px; color: #86909c; }

/* ==========================================================================
   生成同类题弹窗
   ========================================================================== */
.gen-mask {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,18,32,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.gen-modal {
  width: 680px; max-width: 100%; max-height: 88vh;
  background: #fff; border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  animation: genIn .26s cubic-bezier(.22,1.2,.4,1);
}
@keyframes genIn { from { opacity: 0; transform: scale(.94) translateY(12px); } }

.gen-modal__head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid #e5eaf2;
}
.gen-modal__ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: #f5edff; color: #722ed1;
  display: grid; place-items: center; flex: 0 0 40px;
}
.gen-modal__ico svg { width: 20px; height: 20px; }
.gen-modal__title { font-size: 15px; font-weight: 850; color: #1d2129; }
.gen-modal__sub { font-size: 11.5px; color: #86909c; margin-top: 2px; }
.gen-modal__close {
  margin-left: auto; width: 32px; height: 32px;
  border: 0; border-radius: 9px; background: transparent;
  color: #86909c; cursor: pointer; display: grid; place-items: center;
  flex: 0 0 32px;
}
.gen-modal__close:hover { background: #fff1f0; color: #f53f3f; }
.gen-modal__close svg { width: 17px; height: 17px; }

.gen-modal__body { flex: 1 1 auto; overflow-y: auto; padding: 18px; }

.gen-cost {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: #f2f8ff;
  border-radius: 12px; margin-bottom: 14px;
}
.gen-cost__badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px;
  background: #1677ff; color: #fff;
  font-size: 12.5px; font-weight: 850;
}
.gen-cost__badge svg { width: 14px; height: 14px; }
.gen-cost__note { font-size: 11.5px; color: #86909c; }

.gen-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gen-tier {
  background: #fafbfd; border: 1px solid #e5eaf2;
  border-radius: 12px; padding: 14px; text-align: center;
}
.gen-tier b { display: block; font-size: 22px; color: #1677ff; font-weight: 900; }
.gen-tier span { font-size: 11px; color: #86909c; }

.gen-loading { text-align: center; padding: 40px 20px; }
.gen-spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border-radius: 50%; border: 3px solid #eef2f8; border-top-color: #1677ff;
  animation: genSpin .8s linear infinite;
}
@keyframes genSpin { to { transform: rotate(360deg); } }
.gen-loading__txt { font-size: 14px; font-weight: 750; color: #1d2129; }
.gen-loading__sub { font-size: 11.5px; color: #86909c; margin-top: 6px; }

.gen-ok, .gen-err { text-align: center; padding: 24px 20px; }
.gen-ok__ico, .gen-err__ico {
  width: 48px; height: 48px; border-radius: 14px;
  margin: 0 auto 12px; display: grid; place-items: center;
}
.gen-ok__ico { background: #eafbee; color: #00a832; }
.gen-err__ico { background: #fff1f0; color: #f53f3f; }
.gen-ok__ico svg, .gen-err__ico svg { width: 24px; height: 24px; }
.gen-ok__title, .gen-err__title { font-size: 15px; font-weight: 850; color: #1d2129; }
.gen-ok__sub, .gen-err__sub { font-size: 12px; color: #86909c; margin-top: 4px; }

.gen-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gen-item {
  display: flex; gap: 10px; padding: 12px 14px;
  background: #fafbfd; border: 1px solid #e5eaf2; border-radius: 11px;
}
.gen-item__no {
  width: 22px; height: 22px; border-radius: 7px;
  background: #1677ff; color: #fff;
  font-size: 11px; font-weight: 850;
  display: grid; place-items: center; flex: 0 0 22px;
}
.gen-item__body { flex: 1 1 auto; min-width: 0; }
.gen-item__q { font-size: 13px; line-height: 1.7; color: #1d2129; }
.gen-item__a { font-size: 12px; color: #00a832; margin-top: 6px; font-weight: 650; }
.gen-item__an { font-size: 11.5px; color: #86909c; margin-top: 4px; line-height: 1.6; }

.gen-modal__foot {
  flex: 0 0 auto; display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 18px; border-top: 1px solid #e5eaf2;
}

/* ==========================================================================
   支付方式选项
   ========================================================================== */
.pay-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 16px; margin-bottom: 10px;
  border: 1.5px solid #e5eaf2; border-radius: 14px;
  background: #fff; cursor: pointer;
  transition: all .16s; font-family: inherit; text-align: left;
}
.pay-opt:hover { border-color: rgba(22,119,255,.4); background: #fafcff; transform: translateY(-1px); }

.pay-opt__ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; flex: 0 0 40px;
}
.pay-opt__ico svg { width: 22px; height: 22px; }
.pay-opt__body { flex: 1 1 auto; min-width: 0; }
.pay-opt__name { font-size: 14px; font-weight: 800; color: #1d2129; }
.pay-opt__desc { font-size: 11.5px; color: #86909c; margin-top: 2px; }
.pay-opt__arrow { color: #c9d2dd; flex: 0 0 auto; }
.pay-opt__arrow svg { width: 18px; height: 18px; }

/* 让所有基础按钮在弹窗/页面内统一 */
.btn { border: 1px solid #e5eaf2; font-family: inherit; }
.btn--primary { background: linear-gradient(135deg,#1677ff,#4096ff); color: #fff; border: 0; }

/* 输入框统一 */
.input, .textarea, .select {
  font-family: inherit; border-radius: 10px;
  border: 1px solid #e5eaf2; background: #fbfdff;
  padding: 10px 12px; font-size: 13.5px; color: #1d2129;
  outline: none; transition: all .16s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: #1677ff; background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.12);
}

.field { margin-bottom: 10px; }
.field__label {
  display: block; font-size: 12px; font-weight: 750;
  color: #4e5969; margin-bottom: 5px;
}
.field__hint { font-size: 11px; color: #86909c; font-weight: 400; }

/* 所有卡片统一圆角 */
.card { border-radius: 16px; }

/* 底部标签栏恢复（移动端） */

/* ==========================================================================
   底部标签栏（全局）
   ========================================================================== */











/* 给主内容留出底部空间 */
.main { padding-bottom: 78px !important; }

/* 学生端首页自带底栏 -> 隐藏全局 tabbar */
body.sh-home 
body.sh-home .main { padding-bottom: 0 !important; }


/* ==========================================================================
   学生端首页：贴边全屏
   ========================================================================== */
body.sh-home .main {
  padding: 10px 14px 10px !important;
  height: 100vh !important;
  overflow: hidden !important;
}

body.sh-home .app { height: 100vh; overflow: hidden; }

body.sh-home .sh {
  height: calc(100vh - 20px) !important;
  display: flex;
  flex-direction: column;
}

body.sh-home .sh-main {
  flex: 1 1 auto;
  min-height: 0;
}

body.sh-home .sh-foot {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
