/* ==========================================================================
   v103.css — 公告 / 排行榜 / 通行证任务 / 设置 补充样式
   ========================================================================== */

/* ============================ 登录页公告条 ============================ */
.auth__notice {
  margin: 0 0 14px;
}
.auth-notice-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 13px;
  border: 1px solid #d6e6ff;
  background: linear-gradient(135deg, #f2f8ff, #eaf3ff);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all .2s;
}
.auth-notice-btn:hover {
  border-color: #a8caff;
  box-shadow: 0 10px 26px -14px rgba(22, 119, 255, .6);
  transform: translateY(-1px);
}
.auth-notice-btn__ico {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: #1677ff;
  color: #fff;
}
.auth-notice-btn__ico svg { width: 16px; height: 16px; }
.auth-notice-btn__txt { flex: 1; min-width: 0; display: block; }
.auth-notice-btn__title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1d2129;
  line-height: 1.5;
}
.auth-notice-btn__sub {
  display: block;
  font-size: 11.5px;
  color: #86909c;
  line-height: 1.5;
}
.auth-notice-btn__badge {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: #f53f3f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* ============================ 公告弹窗列表 ============================ */
.nt-modal {
  max-height: 58vh;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 2px;
}
.nt-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.nt-nav__pos {
  font-size: 12px;
  color: #86909c;
  font-variant-numeric: tabular-nums;
  min-width: 46px;
  text-align: center;
}

/* ============================ 公告弹窗 ============================ */
.nt-popup { text-align: center; padding: 4px 2px 6px; }
.nt-popup__kind {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0958d9, #1677ff);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(22, 119, 255, .85);
}
.nt-popup__kind svg { width: 26px; height: 26px; }
.nt-popup__title {
  font-size: 17px;
  font-weight: 800;
  color: #1d2129;
  line-height: 1.45;
  margin-bottom: 5px;
}
.nt-popup__date { font-size: 11.5px; color: #86909c; margin-bottom: 16px; }
.nt-popup__body {
  text-align: left;
  font-size: 13.5px;
  line-height: 1.9;
  color: #1d2129;
  background: #f7fbff;
  border: 1px solid #e5f0ff;
  border-radius: 13px;
  padding: 16px 17px;
  max-height: 46vh;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.nt-popup__more {
  margin-top: 12px;
  font-size: 12px;
  color: #86909c;
}

/* ============================ 公告列表页 ============================ */
.nt-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.nt-item {
  background: #fff;
  border: 1px solid #e9f0fb;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 22px -14px rgba(0, 0, 0, .3);
}
.nt-item.is-pinned { border-color: #ffe0a3; background: linear-gradient(180deg, #fffdf7, #fff); }
.nt-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.nt-tag {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  line-height: 1.6;
}
.nt-item__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1d2129;
  line-height: 1.5;
}
.nt-item__date { flex: 0 0 auto; font-size: 11.5px; color: #86909c; }
.nt-item__body {
  font-size: 13.5px;
  line-height: 1.9;
  color: #2b3441;
  white-space: pre-wrap;
  word-break: break-word;
}
.nt-item__acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e9f0fb;
}
.nt-item__acts .btn svg { width: 14px; height: 14px; }

.nt-empty {
  text-align: center;
  padding: 60px 20px;
  color: #4e5969;
  font-size: 13.5px;
}
.nt-empty__ico {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #eef5ff; color: #1677ff;
}
.nt-empty__ico svg { width: 26px; height: 26px; }

/* 设置页里的公告小条 */
.nt-mini {
  padding: 9px 12px;
  border-radius: 10px;
  background: #f7fbff;
  border: 1px solid #e9f0fb;
  margin-bottom: 7px;
}
.nt-mini__title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1d2129;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-mini__meta { font-size: 11px; color: #86909c; margin-top: 2px; }

/* 设置页复选框行 */
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #4e5969;
  cursor: pointer;
}
.check-inline input { width: 16px; height: 16px; accent-color: #1677ff; cursor: pointer; }

/* 科目图标选择 */
.subj-pick {
  width: 34px; height: 34px;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
}
.color-pick {
  width: 30px; height: 30px;
  padding: 0 !important;
  border-radius: 50% !important;
}

/* ============================ 排行榜 ============================ */
.rk-wrap { max-width: 880px; margin: 0 auto; }

.rk-me {
  background: linear-gradient(125deg, #0958d9, #1677ff 55%, #4096ff);
  border-radius: 18px;
  padding: 16px 18px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 18px 40px -20px rgba(22, 119, 255, .85);
}
.rk-me__inner { display: flex; align-items: center; gap: 13px; }
.rk-me__rank {
  flex: 0 0 auto;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .2);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.rk-me__ava {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .2);
  display: grid; place-items: center;
  font-size: 20px;
}
.rk-me__ava svg { width: 20px; height: 20px; }
.rk-me__main { flex: 1; min-width: 0; }
.rk-me__name { font-size: 14px; font-weight: 800; }
.rk-me__sub { font-size: 11.5px; opacity: .86; margin-top: 2px; }
.rk-me__score {
  flex: 0 0 auto;
  text-align: right;
  font-size: 21px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.rk-me__score span { display: block; font-size: 10.5px; font-weight: 600; opacity: .8; }

.rk-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.rk-tabs::-webkit-scrollbar { display: none; }
.rk-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid #e3ecf9;
  background: #fff;
  color: #4e5969;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.rk-tab svg { width: 14px; height: 14px; }
.rk-tab:hover { border-color: #b9d6ff; }
.rk-tab.is-on {
  background: linear-gradient(135deg, #0958d9, #1677ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(22, 119, 255, .9);
}

/* 前三名 */
.rk-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.rk-pod {
  position: relative;
  background: #fff;
  border: 1px solid #e9f0fb;
  border-radius: 18px;
  padding: 18px 12px 16px;
  text-align: center;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5);
}
.rk-pod--1 {
  background: linear-gradient(170deg, #fff9e8, #ffffff 62%);
  border-color: #ffe0a3;
  transform: translateY(-6px);
}
.rk-pod--2 { background: linear-gradient(170deg, #f7fafd, #fff 62%); }
.rk-pod--3 { background: linear-gradient(170deg, #fdf7f2, #fff 62%); }
.rk-pod.is-me { outline: 2px solid #1677ff; outline-offset: -1px; }
.rk-pod__medal {
  width: 32px; height: 32px;
  margin: 0 auto 8px;
  display: grid; place-items: center;
  border-radius: 10px;
}
.rk-pod--1 .rk-pod__medal { background: rgba(212, 136, 6, .13); color: #d48806; }
.rk-pod--2 .rk-pod__medal { background: rgba(122, 143, 166, .14); color: #7a8fa6; }
.rk-pod--3 .rk-pod__medal { background: rgba(200, 124, 60, .13); color: #c87c3c; }
.rk-pod__medal svg { width: 19px; height: 19px; }
.rk-pod__ava {
  width: 46px; height: 46px;
  margin: 0 auto 9px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 23px;
  background: #f2f7ff;
  border: 1px solid #e3ecf9;
}
.rk-pod__name {
  font-size: 13.5px;
  font-weight: 800;
  color: #1d2129;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-pod__lv { font-size: 10.5px; color: #86909c; margin-top: 2px; }
.rk-pod__score {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 900;
  color: #1677ff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.rk-pod__score span { display: block; font-size: 10px; font-weight: 600; color: #86909c; }

/* 4名以后 */
.rk-rows { display: grid; gap: 8px; }
.rk-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid #e9f0fb;
  border-radius: 14px;
  padding: 11px 14px;
  transition: all .18s;
}
.rk-row:hover { border-color: #b9d6ff; transform: translateX(2px); }
.rk-row.is-me { border-color: #1677ff; background: #f5faff; }
.rk-row__no {
  flex: 0 0 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #86909c;
  font-variant-numeric: tabular-nums;
}
.rk-row__ava {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 17px;
  background: #f2f7ff;
}
.rk-row__main { flex: 1; min-width: 0; }
.rk-row__name {
  font-size: 13px;
  font-weight: 750;
  color: #1d2129;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-row__me {
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  background: #1677ff;
  border-radius: 99px;
  padding: 1px 6px;
  line-height: 1.5;
}
.rk-row__sub { font-size: 11px; color: #86909c; margin-top: 1px; }
.rk-row__score {
  flex: 0 0 auto;
  text-align: right;
  font-size: 15px;
  font-weight: 900;
  color: #1677ff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.rk-row__score span { display: block; font-size: 10px; font-weight: 600; color: #86909c; }

.rk-empty {
  text-align: center;
  padding: 56px 20px;
  color: #4e5969;
  font-size: 13.5px;
}
.rk-empty__ico {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: #fff7e6; color: #d48806;
}
.rk-empty__ico svg { width: 26px; height: 26px; }

/* ============================ 通行证 Tab / 每日任务 ============================ */
.pass__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  flex-wrap: wrap;
}
.pass__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.pass__tab svg { width: 14px; height: 14px; }
.pass__tab:hover { background: rgba(255, 255, 255, .24); }
.pass__tab.is-on {
  background: #fff;
  border-color: #fff;
  color: #1677ff;
}
.pass__tab.has-dot::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f53f3f;
  border: 1.5px solid #fff;
}
.pass__reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, .8);
  margin-left: auto;
}
.pass__reset svg { width: 13px; height: 13px; }

.pass__tasks {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 4px 26px;
  overflow-y: auto;
}
.pass__tasks-head { margin-bottom: 12px; }
.pass__tasks-title { font-size: 15px; font-weight: 800; color: #1d2129; }
.pass__tasks-sub { font-size: 12px; color: #86909c; margin-top: 3px; }

.task-list { display: grid; gap: 9px; }
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e9f0fb;
  border-radius: 14px;
  padding: 12px 14px;
}
.task.is-ready { border-color: #ffd08a; background: linear-gradient(120deg, #fffaf0, #fff); }
.task.is-claimed { opacity: .58; }
.task__ico {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: #eef5ff;
  color: #1677ff;
}
.task__ico svg { width: 17px; height: 17px; }
.task.is-ready .task__ico { background: rgba(212, 136, 6, .12); color: #d48806; }
.task__main { flex: 1; min-width: 0; }
.task__name {
  font-size: 13px;
  font-weight: 750;
  color: #1d2129;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task__bar {
  height: 5px;
  border-radius: 99px;
  background: #eef2f8;
  overflow: hidden;
  margin: 6px 0 5px;
}
.task__bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4096ff, #1677ff);
  transition: width .3s;
}
.task.is-ready .task__bar > i { background: linear-gradient(90deg, #ffc53d, #fa8c16); }
.task__meta { font-size: 11px; color: #86909c; }
.task__btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(135deg, #0958d9, #1677ff);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.task__btn:disabled {
  background: #f2f5fa;
  color: #a9b3c1;
  cursor: not-allowed;
}
.task.is-ready .task__btn {
  background: linear-gradient(135deg, #fa8c16, #ffb020);
  box-shadow: 0 8px 18px -9px rgba(250, 140, 22, .95);
}

.pass__body { display: flex; flex-direction: column; }

.preward.is-loading { opacity: .5; }

/* ============================ 设置弹窗 ============================ */
.settings-modal {
  max-height: 66vh;
  overflow-y: auto;
  padding: 2px;
  margin: -6px -4px;
}

/* ---------- 新版设置：卡片列表 ---------- */
.stx { display: grid; gap: 12px; }

.stx-card {
  background: #fff;
  border: 1px solid #e9f0fb;
  border-radius: 16px;
  padding: 16px 18px;
}
.stx-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1d2129;
  margin-bottom: 14px;
}
.stx-card__head svg { width: 17px; height: 17px; color: #1677ff; }

/* 头像行 */
.stx-ava-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px dashed #eef2f8;
}
.stx-ava {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0958d9, #1677ff);
  color: #fff;
}
.stx-ava svg { width: 22px; height: 22px; }
.stx-ava-info { flex: 1; min-width: 0; }
.stx-ava-name {
  font-size: 15px;
  font-weight: 800;
  color: #1d2129;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.stx-ava-sub { font-size: 12px; color: #86909c; margin-top: 2px; }

.stx-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
  line-height: 1.6;
}
.stx-badge--vip   { background: rgba(0,180,42,.1);  color: #00b42a; }
.stx-badge--pro   { background: rgba(250,140,22,.12); color: #d4690a; }
.stx-badge--admin { background: rgba(114,46,209,.1); color: #722ed1; }

/* 行 */
.stx-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  width: 100%;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
}
.stx-row--link {
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 10px;
  margin: 0 -10px;
  transition: background .16s;
}
.stx-row--link:hover { background: #f5faff; }
.stx-row__main { flex: 1; min-width: 0; }
.stx-row__title {
  font-size: 13.5px;
  font-weight: 750;
  color: #1d2129;
  line-height: 1.5;
}
.stx-row__desc {
  font-size: 12px;
  color: #86909c;
  line-height: 1.65;
  margin-top: 2px;
}
.stx-row__arrow { flex: 0 0 auto; color: #c3cedd; display: flex; }
.stx-row__arrow svg { width: 16px; height: 16px; }

/* 输入行 */
.stx-inline { display: flex; gap: 8px; }
.stx-col { display: grid; gap: 8px; }
.stx-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 13px;
  border: 1px solid #dbe8fa;
  border-radius: 10px;
  background: #f7fbff;
  font-size: 13.5px;
  font-family: inherit;
  color: #1d2129;
  outline: none;
  transition: all .18s;
}
.stx-input:focus {
  border-color: #1677ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}

.stx-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #dbe8fa;
  background: #fff;
  color: #4e5969;
  font-size: 13px;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .18s;
}
.stx-btn svg { width: 15px; height: 15px; }
.stx-btn:hover { border-color: #b9d6ff; }
.stx-btn--primary {
  background: linear-gradient(135deg, #0958d9, #1677ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(22,119,255,.9);
}
.stx-btn--block { width: 100%; }
.stx-btn--danger {
  color: #f53f3f;
  border-color: rgba(245,63,63,.28);
  background: rgba(245,63,63,.04);
}
.stx-btn--danger:hover { background: rgba(245,63,63,.08); }
.stx-btn:disabled { opacity: .55; cursor: not-allowed; }

/* 动画等级 */
.stx-anim {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.stx-anim__opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border: 1.5px solid #e3ecf9;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.stx-anim__opt:hover { border-color: #b9d6ff; transform: translateY(-1px); }
.stx-anim__opt.is-on {
  border-color: #1677ff;
  background: #f5faff;
  box-shadow: 0 8px 22px -14px rgba(22,119,255,.9);
}
.stx-anim__ico { color: #86909c; display: flex; }
.stx-anim__ico svg { width: 20px; height: 20px; }
.stx-anim__opt.is-on .stx-anim__ico { color: #1677ff; }
.stx-anim__name { font-size: 12.5px; font-weight: 800; color: #1d2129; }
.stx-anim__desc {
  font-size: 10.5px;
  color: #86909c;
  text-align: center;
  line-height: 1.4;
}
.stx-anim__check {
  position: absolute;
  top: 5px; right: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  display: grid; place-items: center;
}
.stx-anim__check svg { width: 10px; height: 10px; }

/* 品牌 */
.stx-card--brand { background: linear-gradient(160deg, #f7fbff, #fff 60%); }
.stx-brand { display: flex; align-items: center; gap: 13px; }
.stx-brand__logo {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0958d9, #4096ff);
  color: #fff;
}
.stx-brand__logo svg { width: 22px; height: 22px; }
.stx-brand__txt { flex: 1; min-width: 0; }
.stx-brand__name { font-size: 15px; font-weight: 800; color: #1d2129; }
.stx-brand__sub { font-size: 12px; color: #4e5969; margin-top: 2px; }
.stx-brand__by { font-size: 11px; color: #86909c; margin-top: 3px; }
.stx-brand__lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 11.5px;
  color: #86909c;
  background: #f2f7ff;
  border-radius: 8px;
  padding: 5px 10px;
}
.stx-brand__lock svg { width: 12px; height: 12px; }
.stx-ver {
  margin-top: 10px;
  font-size: 11px;
  color: #a9b3c1;
  font-family: ui-monospace, Consolas, monospace;
}

/* 客服弹窗 */
.cs-box { text-align: center; padding: 8px 4px 4px; }
.cs-ico {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 17px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0958d9, #1677ff);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(22,119,255,.85);
}
.cs-ico svg { width: 26px; height: 26px; }
.cs-title { font-size: 16px; font-weight: 800; color: #1d2129; }
.cs-sub { font-size: 12px; color: #86909c; margin-top: 4px; }
.cs-qq {
  margin: 16px auto 6px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #1677ff;
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.cs-tip { font-size: 11.5px; color: #a9b3c1; }

/* ---------- 动画等级：全局生效 ---------- */
html[data-anim="0"] *,
html[data-anim="0"] *::before,
html[data-anim="0"] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-anim="1"] .shx-card:hover,
html[data-anim="1"] .rk-pod:hover,
html[data-anim="1"] .stx-btn:hover,
html[data-anim="1"] .stx-anim__opt:hover {
  transform: none !important;
}
html[data-anim="1"] .shx-card:hover .shx-ico { transform: none !important; }

html.lite-mode #bgLayer { animation: none !important; }
html.lite-mode .shx-pet-ava svg { animation: none !important; }

@media (max-width: 620px) {
  .stx-anim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stx-inline { flex-direction: column; }
  .stx-btn { width: 100%; }
}

/* ============================ 旧版首页 / 内页 宽屏留白 ============================ */
/* 大屏时内容不要贴着屏幕边缘（截图里卡片几乎顶到两边） */
body:not(.sh-home) .main {
  padding-left: max(20px, calc((100vw - 1180px) / 2)) !important;
  padding-right: max(20px, calc((100vw - 1180px) / 2)) !important;
}

/* 旧版首页顶部栏（已改名 pg-head / appbar，这里保证文案不被截断） */
.pg-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 0 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(22, 119, 255, .1);
}
.pg-head__grow { flex: 1 1 auto; min-width: 0; }
.pg-desc {
  color: #4e5969;
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pg-desc svg { width: 13px; height: 13px; opacity: .7; }

/* ============================ 响应式 ============================ */
@media (max-width: 720px) {
  .rk-podium { grid-template-columns: 1fr; }
  .rk-pod--1 { transform: none; }
  .rk-wrap { padding: 0 2px; }
  .nt-wrap { padding: 0 2px; }
  .pass__tasks { padding: 12px 2px 22px; }
  .task { padding: 10px 11px; gap: 9px; }
  .task__ico { flex: 0 0 30px; width: 30px; height: 30px; }
}

/* ============================ 深色模式补充 ============================ */
html[data-theme="dark"] body:not(.sh-home) {
  background: #0D1117;
  color: #E6EDF3;
}
html[data-theme="dark"] .main { background: transparent; }
html[data-theme="dark"] .stx-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .nt-item,
html[data-theme="dark"] .rk-row,
html[data-theme="dark"] .rk-pod,
html[data-theme="dark"] .task {
  background: #161B22 !important;
  border-color: #2A3140 !important;
  color: #E6EDF3;
}
html[data-theme="dark"] .stx-row__title,
html[data-theme="dark"] .nt-item__title,
html[data-theme="dark"] .rk-row__name,
html[data-theme="dark"] .rk-pod__name,
html[data-theme="dark"] .task__name,
html[data-theme="dark"] .card__title {
  color: #E6EDF3 !important;
}
html[data-theme="dark"] .stx-row__desc,
html[data-theme="dark"] .nt-item__date,
html[data-theme="dark"] .rk-row__sub,
html[data-theme="dark"] .rk-pod__lv,
html[data-theme="dark"] .task__meta {
  color: #8B949E !important;
}
html[data-theme="dark"] .stx-input,
html[data-theme="dark"] .input,
html[data-theme="dark"] .textarea {
  background: #0D1117 !important;
  border-color: #2A3140 !important;
  color: #E6EDF3 !important;
}
html[data-theme="dark"] .stx-anim__opt,
html[data-theme="dark"] .rk-tab,
html[data-theme="dark"] .setting-row {
  background: #161B22 !important;
  border-color: #2A3140 !important;
}
html[data-theme="dark"] .nt-popup__body,
html[data-theme="dark"] .modal__body {
  background: #0D1117;
  color: #E6EDF3;
}
html[data-theme="dark"] body.sh-home .shx-card { background: #161B22; border-color: #2A3140; }
html[data-theme="dark"] body.sh-home .shx-title { color: #E6EDF3; }

/* ==========================================================================
   TOUCH —— 触屏适配
   ========================================================================== */

/* 去掉移动端点击高亮与双击缩放延迟 */
* {
  -webkit-tap-highlight-color: transparent;
}
button, a, [data-go], .shx-card, .shx-fbtn, .shx-w, .shx-ibtn {
  touch-action: manipulation;
}

/* 触屏设备：所有可点元素最小 44px 触控区 */
@media (pointer: coarse) {
  .btn, .pill, .nav__item, .tabbar__item,
  .shx-fbtn, .shx-ibtn, .shx-w, .shx-shop {
    min-height: 44px;
  }
  .btn--sm { min-height: 38px; }
  .stx-btn, .rk-tab, .task__btn, .auth-notice-btn__close {
    min-height: 40px;
  }
  /* 输入框字号 >= 16px，避免 iOS/鸿蒙自动放大 */
  .input, .textarea, .stx-input, .select, input[type="text"],
  input[type="password"], input[type="search"], textarea {
    font-size: 16px !important;
  }
  /* 悬停效果在触屏上没意义，改成按下反馈 */
  .shx-card:hover,
  .rk-pod:hover,
  .stx-btn:hover,
  .stx-anim__opt:hover,
  .rk-row:hover {
    transform: none !important;
  }
  .shx-card:active { transform: scale(.975) !important; }
  .shx-fbtn:active,
  .stx-btn:active,
  .rk-tab:active { transform: scale(.96) !important; }
  .rk-row:active { background: #f0f7ff !important; }
}

/* 横向滚动区域：阻止页面跟着上下弹 */
.shx-board, .chips, .rk-tabs, .pass__body,
[data-subs], [data-grades], .stx-anim {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* 弹窗 / 模态：移动端占满宽度，内容可滚 */
@media (max-width: 640px) {
  .modal {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    max-height: 86vh;
  }
  .modal__body {
    max-height: 62vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .settings-modal { max-height: 70vh; }
  .nt-modal { max-height: 66vh; }

  /* 底部操作区避开手机底部手势条 */
  .modal__foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* 首页底部栏在手机上补安全区 */
  .shx-foot {
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 卡片内边距压缩，给内容更多宽度 */
  .stx-card { padding: 14px !important; }
  .rk-podium { grid-template-columns: 1fr !important; }
  .rk-pod--1 { transform: none !important; }
}

/* 极窄屏（小手机）进一步收紧 */
@media (max-width: 380px) {
  .shx-title--lg { font-size: 24px !important; }
  .pg-title { font-size: 18px !important; }
  .stx-anim { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* 横屏手机：压缩纵向留白 */
@media (orientation: landscape) and (max-height: 500px) {
  .shx-top { padding-top: 6px !important; padding-bottom: 6px !important; }
  .shx-foot { height: 46px !important; }
  .shx-board { padding-top: 6px !important; padding-bottom: 6px !important; }
  .dash-hero { padding: 14px !important; }
}

/* 拖拽滚动时不要选中文字 */
.shx-board.is-dragging,
.shx-board.is-dragging * {
  user-select: none !important;
}
