/* ======================================================================
   参考版式：5 栏浮动胶囊导航 · 蓝底今日 · 服务中心 · 讯息 · 头条 · 我的
   在 styles.css 之后加载，相同选择器在这里覆盖。
   ====================================================================== */
:root { --bg: #f5f6f9; --line: #eef0f4; --radius: 18px; }
body { background: #eceff4; }
#app { background: var(--bg); }
.page { padding-bottom: calc(96px + var(--safe-bottom)); }
.today-page { background: #f5f5f5; }
.service-page, .messages-page, .campus-page, .profile-page {
  background: linear-gradient(180deg, #eef2fb 0%, #f6f7fa 22%, #f7f7f8 100%);
  background-attachment: fixed;
}

/* ---------- 浮动胶囊 Tab ---------- */
.tabbar {
  bottom: calc(14px + var(--safe-bottom));
  width: calc(100% - 20px);
  max-width: 616px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: #fff;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}
.tab {
  height: 56px;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 11px;
  justify-content: center;
}
.tab span, .tab svg { visibility: hidden; }
.tab-ic { width: 38px; height: 24px; display: grid; place-items: center; border-radius: 12px; }
.tab.active,
.tab.active .tab-ic { background: transparent; color: transparent; }

/* ---------- 今日 ---------- */
.today-hero {
  position: relative;
  overflow: hidden;
  padding: calc(1px + var(--safe-top)) 16px 26px;
  background: #3250e6;
  color: #fff;
}
.today-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 32px; }
.today-school {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-top-actions { display: flex; align-items: center; gap: 17px; flex: none; margin-right: -4px; }
.today-icon {
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
}
.today-icon img { display: block; }
.today-search {
  width: 100%;
  height: 36px;
  margin-top: 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #8c8c91;
  font-size: 16px;
  text-align: left;
}
.today-search svg { flex: none; color: #b3b3b8; width: 20px; height: 20px; }
.today-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 26px -16px 0; }
.today-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; color: #fff; }
.today-tile-icon {
  width: 49px;
  height: 49px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: none;
  color: #172033;
  overflow: hidden;
}
.today-tile-icon img { width: 38px; height: 38px; display: block; }
.today-tile-name {
  font-size: 11.5px;
  line-height: 1.25;
  color: #fff;
  max-width: 62px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-body { padding: 0 16px; }
.today-body .block { margin: 18px 0 0; }
.today-body .section-head { margin-bottom: 9px; }
.today-body .section-head h2 { font-size: 16px; }
.today-body .todo-card { padding: 2px 14px; }
.today-body .notice-preview { padding: 2px 14px; }
.today-body .app-grid { gap: 8px; }
.today-body .app-cell { padding: 13px 3px 11px; border-radius: 14px; }
.today-body .app-cell-icon { display: grid; place-items: center; height: 32px; }
.today-body .app-name { font-size: 11px; }
.today-body .notice-title { display: block; }
.today-body .notice-sub { display: block; }
.line-icon .accent { stroke: var(--ic, #3d7eff); }

/* ---------- 服务中心 ---------- */
.service-page {
  background: #fff linear-gradient(180deg, #dfe5fd 0, #e9ecff 40px, #eff1fd 60px, #f7fbfe 80px, #fcffff 90px, #ffffff 100px) no-repeat;
  background-attachment: scroll;
}
.svc-head {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: calc(4px + var(--safe-top)) 16px 6px;
  text-align: center;
  background: transparent;
  transition: background 0.18s ease;
}
.svc-head.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.svc-head h1 { font-size: 17px; line-height: 24px; font-weight: 500; color: #000; }
.svc-chipbar {
  position: sticky;
  top: calc(34px + var(--safe-top));
  z-index: 7;
  display: flex;
  align-items: center;
  padding: 10px 40px 7px 20px;
  background: transparent;
  border-bottom: 1px solid #eef1f5;
  transition: background 0.18s ease;
}
.svc-head.is-stuck + .svc-chipbar {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.svc-chips {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 0 0 20px;
  margin-left: -20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 21px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 21px), transparent 100%);
}
.svc-chips::-webkit-scrollbar { display: none; }
.svc-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0.6px 15px 0;
  border-radius: 999px;
  background: #f3f3f3;
  border: 1px solid transparent;
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
}
.svc-chip.active {
  background: #e7eefe;
  border-color: #4950a2;
  color: #3a4494;
  padding: 0.6px 16px 0;
  box-shadow: none;
  font-weight: 500;
}
.svc-filter-btn {
  position: absolute;
  right: 15px;
  top: 12px;
  width: 30px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
}
.svc-filter-img { display: block; width: 24px; height: 24px; }
.svc-search { display: flex; align-items: center; gap: 8px; height: 34px; margin: 14px 16px 0; padding: 0 12px; border-radius: 8px; background: #f1f3f7; color: #9aa1ad; }
.svc-search svg { flex: 0 0 18px; width: 18px; height: 18px; }
.svc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 14px; color: #333; }
.svc-search input::placeholder { color: #a6adb8; }
.svc-official { display: flex; align-items: center; gap: 6px; height: 36px; margin: 13px 0 0; padding: 0 10px 0 12px; background: #e7eefe; color: #4a54bb; font-size: 14px; line-height: 1; }
.svc-official svg { flex: 0 0 14px; width: 14px; height: 14px; }
.svc-official-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .2px; }
.svc-official-x { flex: 0 0 26px; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: #9fb6dd; font-family: inherit; font-size: 17px; line-height: 1; }
.svc-switch { display: flex; align-items: center; gap: 5px; height: 20px; margin: 10px 0 0 20px; padding: 0; border: 0; background: transparent; color: #2f6bdc; font-family: inherit; font-size: 13.5px; letter-spacing: .2px; }
.svc-switch svg { width: 15px; height: 15px; }
.svc-switch + .app-group { margin-top: 19px; }
.svc-empty-mine { margin: 36px 0 72px; }
.svc-section { margin: 21px 16px 24px; }
.svc-section:last-child { margin-bottom: 22px; }
.svc-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.svc-section-head h2 { position: relative; top: 0.9px; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: 0.8px; color: #000; margin: 0 0 0 4px; }
.svc-edit { border: none; background: transparent; color: #8c95a4; font-size: 13px; padding: 2px 0; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 22px; row-gap: 12.7px; }
.svc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6.4px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.svc-tile:focus-visible { outline: 2px solid #7ca6f7; outline-offset: 2px; border-radius: 12px; }
.svc-tile-icon {
  width: 50px;
  height: 50px;
  border-radius: 0;
  background: transparent;
  display: block;
  color: #1f2937;
  flex: none;
}
.svc-tile-img { display: block; width: 50px; height: 50px; }
.svc-tile-icon.svc-logo {
  background: linear-gradient(135deg, #4b8bff, #2f6bf0);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(61, 126, 255, 0.22);
}
.svc-tile-icon.svc-logo .line-icon { stroke-width: 2.1; }
.svc-tile-name {
  width: 100%;
  min-height: 32.6px;
  font-size: 13px;
  line-height: 16.3px;
  letter-spacing: 0.5px;
  color: #000;
  text-align: center;
  text-wrap: pretty;
  word-break: break-all;
}
.svc-empty { text-align: center; color: #c3c8d0; font-size: 12.5px; margin: 42px 0 65px; }
.svc-section .svc-empty-mine { margin: 52px 0 55px; }
.svc-no-result { margin-top: 30px; }

/* ---------- 右侧抽屉 ---------- */
.sheet-root.drawer-open .sheet-panel {
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  transform: translateX(100%);
  width: 78.7%;
  max-width: 486px;
  height: 100%;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}
.sheet-root.drawer-open.open .sheet-panel { transform: translateX(0); }
.sheet-root.drawer-open .sheet-panel::before { display: none; }
.sheet-root.drawer-open .sheet-body {
  height: 100%;
  max-height: none;
  padding: calc(13.4px + var(--safe-top)) 20px calc(24px + var(--safe-bottom)) 20.7px;
}
.sheet-root.drawer-open .sheet-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.drawer-title { font-size: 17px; line-height: 24px; font-weight: 600; color: #000; margin: 0 0 17.9px; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14.6px; }
.drawer-pill {
  height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f3f3f3;
  color: #0d0d0d;
  font-size: 13.5px;
}
.drawer-pill.active { background: #e5efff; border-color: #4156bd; color: #3e4fac; }

/* ---------- 讯息 ---------- */
.messages-page {
  background: #fff linear-gradient(180deg, #d8e3ff 0, #dde8ff 30px, #e6efff 55px, #f2f7ff 75px, #fbfdff 88px, #ffffff 100px) no-repeat;
}
.msg-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(4px + var(--safe-top)) 15px 0;
}
.msg-top h1 { position: relative; left: -1px; top: -1.3px; transform: scaleY(0.94); font-size: 17.5px; font-weight: 500; text-align: center; color: #000; }
.msg-icon-btn svg { width: 24px; height: 24px; }
.msg-top-right .msg-icon-btn svg { width: 24px; height: 24px; }
.msg-top-left { position: relative; display: flex; gap: 0; width: 60px; height: 26px; }
.msg-icon-btn.msg-icon-list, .msg-icon-btn.msg-icon-contacts {
  position: absolute;
  padding: 0;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: transparent;
}
.msg-icon-btn.msg-icon-list { left: 2px; top: 2.5px; width: 22px; height: 21.33px; background-image: url(assets/msg-icon-list.png); }
.msg-icon-btn.msg-icon-contacts { left: 37.67px; top: 0.83px; width: 22.67px; height: 23.33px; background-image: url(assets/msg-icon-contacts.png); }
.msg-top-right { display: flex; justify-content: flex-end; }
.msg-icon-btn {
  position: relative;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  padding: 0;
  color: #1f2937;
  display: grid;
  place-items: center;
}
.msg-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #f1f3fb;
}
.msg-search {
  margin: 18px 16px 0;
  height: 36px;
  background: #f3f3f3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #64646a;
}
.msg-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1f2937;
}
.msg-search input::placeholder { color: #64646a; }
.msg-empty { padding: 211px 0 0; display: flex; flex-direction: column; align-items: center; }
.msg-art { width: 92.33px; height: 100.67px; display: block; transform: translateX(3.6px); }
.msg-empty p { margin-top: 20.2px; font-size: 12.5px; color: #a3a3a3; }
.msg-row-btn { width: 100%; border: none; background: transparent; text-align: left; color: inherit; }
.sheet-msg-list { padding: 0 4px; }

/* ---------- 校园头条 ---------- */
.campus-page {
  background: #fff linear-gradient(180deg, #d8e3ff 0, #dde8ff 30px, #e6efff 55px, #f2f7ff 75px, #fbfdff 88px, #ffffff 100px) no-repeat;
}
.campus-head { padding: calc(4px + var(--safe-top)) 16px 0; text-align: center; }
.campus-head h1 { font-size: 17px; line-height: 24px; font-weight: 500; color: #000; }
.campus-empty {
  padding-top: 251px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #9a9a9a;
}
.campus-art { display: block; width: 54px; height: 44px; }
.campus-empty p { margin-top: 17.5px; font-size: 11.5px; color: #68686c; }

/* ---------- 我的 ---------- */
.me-page {
  background: linear-gradient(180deg, #d3defe 0%, #dee9fb 6%, #eaf0fc 13%, #f4f5fa 19%, #f6f7fb 100%);
  background-attachment: fixed;
  padding-bottom: calc(76.7px + var(--safe-bottom));
}
.me-head { display: flex; align-items: flex-start; gap: 14px; padding: calc(28.5px + var(--safe-top)) 19px 0 17px; }
.me-avatar-wrap { position: relative; width: 47px; height: 47px; flex: none; }
.me-avatar {
  position: absolute;
  left: -4px;
  top: -2.5px;
  width: 55px;
  height: 55px;
  background: url(assets/me-avatar.png) center / 100% 100% no-repeat;
  display: grid;
  place-items: center;
  font-size: 0;
  pointer-events: none;
}
.me-badge {
  position: absolute;
  left: 8px;
  bottom: -11px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 17.5px;
  padding: 0 6px 0.8px 4.5px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  color: #111;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(31, 42, 64, 0.12);
  white-space: nowrap;
}
.me-badge::after {
  content: "";
  position: absolute;
  right: 6px;
  top: -1px;
  width: 7px;
  height: 7px;
  border-radius: 1px 1px 0 0;
  background: #fff;
  transform: rotate(45deg);
}
.me-info { flex: 1; min-width: 0; }
.me-name-row { display: flex; align-items: baseline; gap: 9px; }
.me-name { font-size: 19px; font-weight: 500; color: #000; letter-spacing: -0.2px; }
.me-sid {
  position: relative;
  top: -2px;
  font-size: 13px;
  color: #3c404c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-college {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: -0.15px;
  color: #5c5f66;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-actions { position: relative; width: 65px; height: 28px; margin-top: 13.5px; flex: none; }
.me-actions-art { position: absolute; left: 0; top: 0; width: 65px; height: 28px; pointer-events: none; }
.me-icon-btn {
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;
  color: transparent;
}
.me-icon-qr { left: 0; }
.me-icon-gear { right: 0; }
.me-status {
  position: relative;
  margin: 37px 16px 23px;
  padding: 11px 8px 15px;
  border-radius: 16px;
  background: linear-gradient(97deg, #cde0f9 0%, #dae9fc 40%, #e6f0fe 68%, #d7dbfe 100%);
}
.me-status h2 { font-size: 16px; line-height: 22px; font-weight: 500; color: #050505; position: relative; z-index: 1; }
.me-status-art { position: absolute; right: 0; top: -36px; width: 156px; height: 87px; pointer-events: none; }
.me-status-pill {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  width: 100%;
  height: 34px;
  border-radius: 12px;
  border: none;
  background: url(assets/me-status-pill.png) center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  gap: 2.4px;
  padding: 0 6px 0 13.6px;
  color: transparent;
  font-size: 13.5px;
  text-align: left;
  overflow: hidden;
}
.me-status-pill span { visibility: hidden; }
.me-status-pill.filled {
  background: rgba(255, 255, 255, 0.63);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #3a4252;
}
.me-status-pill.filled span { visibility: visible; }
.me-status-plus { font-size: 19px; line-height: 1; color: #3a4252; }
.me-status-text { font-weight: 400; color: #3a4252; }
.me-section { margin: 14px 12px 0; }
.me-section h2 { font-size: 16px; line-height: 22px; font-weight: 500; color: #000; margin: 0 4px 13px; }
.me-card {
  background: #fff;
  border-radius: 14px;
  padding: 0 16px;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.03);
  overflow: hidden;
}
.me-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15.5px 0;
  border: none;
  border-bottom: 1px solid #f4f5f7;
  background: transparent;
  color: #000;
  letter-spacing: 0.5px;
  font-size: 16px;
  line-height: 22px;
  text-align: left;
}
.me-row:last-child { border-bottom: none; }
.me-row .chev { color: #c4c9d2; font-size: 19px; }
.me-foot { text-align: center; color: #b0b7c2; font-size: 10.5px; padding: 24px 0 10px; }

.share-card {
  margin: 6px 0 14px;
  padding: 22px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eaf1ff, #f5f8ff);
  text-align: center;
}
.share-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(61, 126, 255, 0.16);
}
.share-title { font-size: 17px; font-weight: 700; color: #1b2433; }
.share-sub { margin-top: 5px; font-size: 12px; color: #8e97a5; }
.cache-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f6f8;
  font-size: 14px;
  color: #4b5563;
}
.cache-line b { color: #1f2937; font-weight: 600; }

/* ---------- 扫一扫 / 帮助 / 二维码 / 状态 / 收藏 / 联系人 ---------- */
.scan-demo { display: flex; flex-direction: column; align-items: center; padding: 18px 0 6px; }
.scan-frame {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 18px;
  background: #0f172a;
  overflow: hidden;
}
.scan-frame span {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid #65a3ff;
}
.scan-frame span:nth-child(1) { left: 14px; top: 14px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.scan-frame span:nth-child(2) { right: 14px; top: 14px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.scan-frame span:nth-child(3) { left: 14px; bottom: 14px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.scan-frame span:nth-child(4) { right: 14px; bottom: 14px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.scan-frame i {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #65a3ff, transparent);
  animation: scanLine 2.2s ease-in-out infinite;
}
@keyframes scanLine { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(170px); } }
.scan-demo p { margin-top: 16px; font-size: 13.5px; color: #475467; }
.scan-note { margin-top: 5px; font-size: 11px; color: #98a2b3; }
.help-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.help-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.help-item:last-child { border-bottom: none; }
.help-item strong { display: block; font-size: 13.5px; color: #101828; }
.help-item span { display: block; margin-top: 3px; font-size: 11.5px; color: #98a2b3; }
.qr-card { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.qr-svg { width: 210px; height: 210px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr-name { margin-top: 14px; font-size: 18px; font-weight: 700; }
.qr-sub { margin-top: 4px; font-size: 11.5px; color: #98a2b3; }
.qr-tip { margin-top: 10px; font-size: 10.5px; color: #b0b9c6; }
.status-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.status-preset { padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: #f7f9fc; color: #475467; font-size: 13px; }
.status-preset.active { background: #edf4ff; border-color: #7ca6f7; color: #2f63e6; font-weight: 600; }
.fav-group { margin-top: 14px; }
.fav-group h4 { margin: 0 0 9px; font-size: 12px; font-weight: 600; color: #98a2b3; }
.fav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #475467;
  text-align: left;
}
.fav-row.on { background: #edf4ff; border-color: #a9c4f8; color: #2456c6; }
.fav-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: none; color: #1f2937; }
.fav-name { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-mark { flex: none; font-size: 15px; color: #98a2b3; }
.fav-row.on .fav-mark { color: #2f63e6; }
.contact-list { display: flex; flex-direction: column; }
.contact-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-avatar { width: 36px; height: 36px; border-radius: 50%; background: #f1f4f9; display: grid; place-items: center; font-size: 18px; flex: none; }
.contact-name { flex: 1; font-size: 13.5px; }
.contact-tag { font-size: 10px; color: #98a2b3; background: #f2f4f7; border-radius: 999px; padding: 2px 8px; }
.new-msg-actions { display: flex; flex-direction: column; gap: 9px; }
.new-msg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #475467;
  font-size: 14px;
  text-align: left;
}

.toast { bottom: calc(94px + var(--safe-bottom)); }

@media (min-width: 641px) {
  .tabbar { border-radius: 26px; }
  .sheet-root.drawer-open .sheet-panel { border-radius: 22px 0 0 22px; }
}

/* ===== 请假模块（按新参考图） ===== */
.lv-page{background:#f3f7ff;min-height:100vh;padding-bottom:calc(74px + var(--safe-bottom))}
.lv-head{position:sticky;top:0;z-index:30;display:flex;align-items:flex-end;justify-content:center;height:calc(40px + var(--safe-top));padding:0 0 0;background:#fff}
.lv-head h1{font-size:18px;line-height:26px;font-weight:500;color:#14161a;letter-spacing:.2px;margin:0 0 12px;text-align:center}
.lv-head .lv-back,.lv-head .lv-close{position:absolute;bottom:5px;width:36px;height:36px;display:grid;place-items:center;border:0;background:transparent;color:#1c1f24;padding:0}
.lv-head .lv-back{left:2px}
.lv-head .lv-close{left:44px;display:none}
.lv-head.with-close .lv-close{display:grid}
.lv-head.detail{border-bottom:1px solid #eef1f6}
.lv-head.detail h1{font-size:21.4px;margin-bottom:13px}
.lv-body{padding:15px 22px 0}
.lv-section{margin:0 0 6px}
.lv-section h2{font-size:16.5px;line-height:24px;font-weight:600;color:#181a1f;margin:0 0 22px;letter-spacing:.2px}
.lv-section.ongoing-section h2{margin-bottom:17px}
.lv-type-card{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;height:63px;background:#fff;border:0;border-radius:12px;margin:0 0 14px;padding:0 21px;text-decoration:none;color:#181a1f;text-align:left;font-family:inherit;-webkit-appearance:none}
.lv-type-icon{flex:0 0 42.7px;width:42.7px;height:42.7px;border-radius:50%;background:#2f7bf6;display:grid;place-items:center;color:#fff}
.lv-type-icon svg{width:20px;height:20px}
.lv-type-name{font-size:14px;font-weight:500;letter-spacing:.2px;flex:1;transform:translateY(-3.5px)}
.lv-end{text-align:center;color:#9aa1ad;font-size:14px;margin:30.5px 0 0;letter-spacing:.2px}
.lv-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;background:linear-gradient(to bottom,#fff 0,#fff calc(100% - var(--safe-bottom)),#f9f9f9 calc(100% - var(--safe-bottom)));padding-bottom:var(--safe-bottom)}
.lv-tabbar button{flex:1;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 0 6.5px;color:#8b919c;font-size:12px;line-height:14px;letter-spacing:.3px}
.lv-tabbar button svg{width:24px;height:24px}
.lv-tabbar button.active{color:#2f6bdc}
.lv-tabbar button.active svg{color:#2f6bdc}
/* 进行中卡片 */
.lv-ongoing{background:#fff;border-radius:12px;margin:0 0 21px;padding:12px 22px 0}
.lv-ongoing-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:7px}
.lv-ongoing-top h3{margin:0;font-size:15px;line-height:24px;font-weight:600;color:#181a1f}
.lv-ongoing-top .lv-st{font-size:14px;color:#3ec092;padding-top:3px;flex:0 0 auto}
.lv-ongoing-meta{font-size:12.5px;line-height:21px;color:#9aa0a8}
.lv-ongoing-meta b{font-weight:400;color:#9aa0a8}
.lv-ongoing-meta.renew{color:#e29a3f}
.lv-ongoing-meta.renew b{color:#e29a3f}
.lv-ongoing-user{display:flex;align-items:center;gap:9px;padding:10px 0 8px}
.lv-ongoing-user img{width:24px;height:24px;border-radius:50%;background:#eaf1fb}
.lv-ongoing-user span{font-size:14px;color:#1f2328}
.lv-ongoing-user time{margin-left:auto;font-size:13px;color:#9aa0a8}
.lv-ongoing-actions{display:flex;align-items:center;gap:9px;padding:8px 0 11px}
.lv-ongoing-actions .lv-more{font-size:14px;color:#9aa0a8;background:transparent;border:0;margin-right:auto;padding:0}
.lv-ongoing-actions .lv-btn{height:30px;padding:0 23px;border-radius:4px;background:#fff;border:1px solid #d9dee7;color:#25282c;font-size:14px}
/* 记录页 */
.lv-toolbar{position:sticky;top:calc(40px + var(--safe-top));z-index:29;background:#fff;height:46px;display:flex;align-items:center;justify-content:flex-end;padding:0 20px}
.lv-toolbar button{border:0;background:transparent;padding:6px;display:grid;place-items:center;color:#4a4f58}
.lv-records{padding:19px 24px 0}
.lv-summary{height:28px;width:fit-content;margin:0 auto;border-radius:14px;background:#dceaff;color:#2d6ed3;font-size:12.5px;display:flex;align-items:center;justify-content:center;letter-spacing:.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 36px}
.lv-records-list{margin-top:16px;display:flex;flex-direction:column;gap:12px}
.lv-rec-card{display:block;background:#fff;border-radius:12px;padding:16px;text-decoration:none;color:#181a1f}
.lv-rec-card .t{font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:space-between}
.lv-rec-card .t em{font-style:normal;font-size:13.5px;color:#3ec092}
.lv-rec-card .m{font-size:13px;color:#8f96a2;line-height:24px;margin-top:6px}
.lv-rec-card .r{font-size:14px;color:#3d4650;margin-top:2px}
.lv-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 0 98px;min-height:calc(100vh - 86px - var(--safe-top) - 74px - var(--safe-bottom))}
.lv-empty img{width:178px;height:110px;display:block}
.lv-empty p{font-size:12.5px;color:#8f96a3;margin:4px 0 0;letter-spacing:.3px}
/* 详情页 */
.lv-detail{background:#fff;min-height:100vh;padding-bottom:calc(58px + var(--safe-bottom))}
.lv-detail .lv-rule,.lv-og-page .lv-rule{position:fixed;left:0;top:calc(52px + var(--safe-top));z-index:25;width:19px;height:76px;box-sizing:border-box;padding:1px 2px 7px;overflow:hidden;background:#e7effa;border-radius:0 5px 5px 0;color:#2f6bdc;font-size:13px;line-height:1.2;letter-spacing:2px;text-align:center;writing-mode:vertical-rl;border:0}
.lv-profile{display:flex;align-items:center;gap:11px;padding:22px 17px 22px 31px;min-height:98px;box-sizing:border-box}
.lv-profile img.lv-ava{width:54px;height:54px;border-radius:50%;flex:0 0 54px}
.lv-profile h2{margin:0;font-size:16.5px;line-height:24px;font-weight:500;color:#131518;letter-spacing:.2px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;top:-5.5px}
.lv-profile .lv-st{flex:0 0 auto;font-size:14.5px;color:#3ec092;letter-spacing:.3px;padding-right:4px;position:relative;top:-7px}
.lv-st.pending{color:#f0a23b}.lv-st.rejected{color:#e26a60}.lv-st.draft{color:#8b919c}
.lv-gap{height:12px;background:#f3f7ff}
.lv-panel{background:#fff;padding:14px 22px 13px}
.lv-panel h2{font-size:17px;line-height:24px;font-weight:600;color:#181a1f;margin:0 0 7px;letter-spacing:.2px}
.lv-rows{display:block}
.lv-row{display:flex;align-items:flex-start;font-size:13px;line-height:23px;padding:4.8px 0;min-height:32.6px;box-sizing:border-box}
.lv-row .k{flex:0 0 102px;color:#9aa0a8;letter-spacing:.2px}
.lv-row .v{flex:1;color:#3d4652;min-width:0;word-break:break-all}
.lv-row .v.blue{color:#2f62a8}
.lv-row .v.name{color:#2f62a8}
.lv-proof{width:82px;height:82px;border-radius:3px;display:block;margin:-8px 0 5px;object-fit:cover;background:#fff}
.lv-sign{height:62px;margin:4px 0 0;display:flex;align-items:center;padding-left:2px}
.lv-sign span{font-family:"STXingkai","华文行楷","KaiTi","STKaiti",serif;font-size:30px;color:#7f848c;letter-spacing:0;margin-left:-11px;transform:translateY(12px) rotate(-4deg) scale(.75,1.35);opacity:.62;white-space:nowrap}
.lv-actionbar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;display:flex;align-items:center;gap:10px;padding:8px 22px max(8px, var(--safe-bottom))}
.lv-actionbar .lv-more{flex:0 0 26px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:0;color:#24272c;font-size:11.5px;padding:0}
.lv-actionbar .lv-more svg{width:20px;height:20px}
.lv-actionbar .lv-btn{flex:1;height:36px;border-radius:6px;font-size:16px;letter-spacing:.5px;border:1px solid #d9dee7;background:#fff;color:#5a6068;display:flex;align-items:center;justify-content:center;text-decoration:none;padding:0}
.lv-actionbar .lv-btn.primary{height:41px;margin-left:3px;background:#2f6bdc;border-color:#2f6bdc;color:#fff}
.lv-actionbar .lv-btn.danger{background:#fff;border-color:#e0706a;color:#d95850}
.lv-actionbar .lv-btn.wide{flex:1}
.lv-actionbar .lv-btn.small{font-size:15px}
.lv-rule-sheet p{font-size:14.5px;line-height:24px;color:#3d4650;margin:0 0 10px}
.lv-filter h4{font-size:14px;font-weight:600;color:#5b6270;margin:16px 0 10px;letter-spacing:.2px}
.lv-filter .status-pick{margin-bottom:2px}
.lv-filter .btn-row{margin-top:20px}
.lv-rules p{font-size:14.5px;line-height:24px;color:#3d4650;margin:0 0 10px}
.sheet-menu{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:#fff}
.sheet-menu button{height:52px;border:0;border-bottom:1px solid #eef1f6;background:#fff;font-size:16px;color:#2b2f36;letter-spacing:.2px}
.sheet-menu button:last-child{border-bottom:0}
.sheet-menu button.danger{color:#d95850}

/* 进行中请假详情（参考图：学生卡片 + 请假信息） */
.lv-og-page{background:#f7f8fa;min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC",sans-serif}
.lv-og-body{padding-bottom:calc(96px + var(--safe-bottom))}
.lv-og-card{position:relative;margin:0;background:#fff;border-radius:0 0 12px 12px;overflow:hidden;padding:0 19px 20px}
.lv-og-cover{position:relative;height:46px;margin:0 -19px;background:linear-gradient(105deg,#ece7f9 0%,#e4f0f1 48%,#faf0e1 100%)}
.lv-og-cover::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#8a5cc9 0%,#4fa89e 52%,#dca052 100%);opacity:.55}
.lv-og-ava{position:absolute;left:19px;top:13px;width:46px;height:46px;border-radius:50%;overflow:hidden;background:#dbe7fb;box-shadow:0 0 0 2px #fff}
.lv-og-ava img{width:100%;height:100%;display:block}
.lv-og-pin{position:absolute;left:58px;top:42px;width:19px;height:19px;border-radius:50%;background:#ef8b93;color:#fff;display:grid;place-items:center}
.lv-og-pin svg{width:12px;height:12px}
.lv-og-no{position:absolute;right:19px;top:28px;font-size:19px;line-height:23px;font-weight:500;color:#c7cbd1;letter-spacing:0}
.lv-og-name{margin:22px 0 0;display:flex;align-items:center;gap:10px;font-size:23px;line-height:27px;font-weight:600;color:#111;letter-spacing:.3px}
.lv-og-grade{flex:0 0 auto;height:24px;line-height:24px;padding:0 9px;border-radius:3px;background:#f2f2f2;color:#555;font-size:14px;font-weight:400;letter-spacing:.2px}
.lv-og-dept{margin:14px 0 0;font-size:14px;line-height:17px;color:#9aa0a8;letter-spacing:.1px}
.lv-og-panel{margin:12px 13px 0;background:#fff;border-radius:12px;padding:13px 19px 12px}
.lv-og-panel h2{font-size:18px;line-height:25px;font-weight:600;color:#181a1f;margin:0 0 10px;letter-spacing:.3px}
.lv-og-div{height:1px;background:#ededed;margin:0 -19px 12px}
.lv-og-row{display:flex;align-items:flex-start;font-size:15.5px;line-height:40px;color:#333;letter-spacing:.1px}
.lv-og-row .k{flex:0 0 118px;color:#6b6f76}
.lv-og-row .v{flex:1;min-width:0;word-break:break-all}
.lv-og-actionbar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;gap:10px;padding:8px 16px max(8px,var(--safe-bottom));background:#fff;border-top:1px solid #eee}
.lv-og-actionbar .lv-btn{flex:1;height:43px;border-radius:5px;border:1px solid #dfdfdf;background:#fff;color:#333;font-size:16px;letter-spacing:.5px;display:flex;align-items:center;justify-content:center;text-decoration:none;padding:0}
.lv-og-actionbar .lv-btn.primary{background:#4a8be9;border-color:#4a8be9;color:#fff}

/* 机型自适应：以 402 CSS 宽为设计基准，窄屏整体按比例缩放（与参考图 360 机型一致） */
body { zoom: var(--app-zoom, 1); }

/* 请假编辑：证明材料上传与手写签名 */
.lv-upload-field { display: block; margin-bottom: 14px; }
.lv-upload-field .field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2, #5a6068); margin-bottom: 6px; }
.lv-up { display: flex; align-items: center; gap: 12px; }
.lv-up-box { width: 82px; height: 82px; border-radius: 10px; background: #f2f5fa; display: grid; place-items: center; overflow: hidden; flex: none; }
.lv-up-box img { width: 100%; height: 100%; object-fit: cover; }
.lv-up-plus { display: flex; flex-direction: column; align-items: center; font-size: 24px; line-height: 1; color: #aab2c0; font-weight: 300; }
.lv-up-plus small { font-size: 11px; margin-top: 4px; font-weight: 400; }
.lv-up-meta { display: flex; flex-direction: column; gap: 8px; }
.lv-up-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 16px; background: #eef3ff; color: #2f6bdc; font-size: 13px; border: 0; cursor: pointer; font-family: inherit; }
.lv-up-del { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; color: #98a0ac; border: 1px solid #e3e8ef; font-size: 13px; font-family: inherit; }
.lv-sign-edit { display: flex; flex-direction: column; gap: 8px; }
.lv-sign-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; font-family: inherit; }
.lv-sign-preview { height: 120px; border: 1px dashed #d6dce6; border-radius: 10px; background: #fbfcfe; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lv-sign-preview.has-img { background: #fff; }
.lv-sign-preview img { max-width: 86%; max-height: 96%; object-fit: contain; }
.lv-sign-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 26px; line-height: 1; color: #aab2c0; font-weight: 300; }
.lv-sign-hint small { font-size: 12.5px; }
.lv-sign-zoom { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 14px; background: rgba(47,107,220,.1); color: #2f6bdc; display: grid; place-items: center; font-size: 15px; }
.lv-sign-tools { display: flex; gap: 10px; }
.lv-up-btn[hidden] { display: none !important; }
.lv-sign-modal { position: fixed; inset: 0; z-index: 80; background: rgba(15,23,38,.45); display: flex; align-items: flex-end; }
.lv-sign-modal[hidden] { display: none !important; }
.lv-sign-sheet { width: 100%; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 18px calc(16px + var(--safe-bottom, 0px)); box-shadow: 0 -12px 40px rgba(17,24,39,.18); }
.lv-sign-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lv-sign-sheet-head h3 { margin: 0; font-size: 17px; font-weight: 600; color: #181a1f; }
.lv-sign-x { width: 32px; height: 32px; border: 0; border-radius: 16px; background: #f2f5fa; color: #7b828c; font-size: 15px; font-family: inherit; }
.lv-sign-board { position: relative; height: 46vh; min-height: 240px; border-radius: 12px; background: #fbfcfe; border: 1px dashed #cfd8e6; overflow: hidden; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; }
.lv-sign-board canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.lv-sign-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #b6bdc8; font-size: 14px; pointer-events: none; }
.lv-sign-empty[hidden] { display: none !important; }
.lv-sign-sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.lv-sign-btn { flex: 1; height: 44px; border-radius: 22px; border: 1px solid #e3e8ef; background: #fff; color: #3d4652; font-size: 15px; font-family: inherit; }
.lv-sign-btn.ghost { color: #98a0ac; }
.lv-sign-btn.primary { flex: 1.4; background: var(--primary, #3d7eff); border-color: transparent; color: #fff; font-weight: 600; }
body.sign-open { overflow: hidden; }
.lv-sign.has-img { height: auto; min-height: 82px; padding: 8px 0 4px; }
.lv-sign.has-img img { max-width: 118px; max-height: 58px; object-fit: contain; opacity: .9; }

/* 我的页：上传头像替代默认头像图 */
.me-avatar.has-photo{background:#e8eefc;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px #fff,0 2px 8px rgba(20,40,80,.12)}
.me-avatar-photo{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
/* 编辑个人资料：头像上传 */
.avatar-edit{display:flex;align-items:center;gap:14px}
.avatar-edit-box{width:60px;height:60px;border-radius:50%;background:#eef3ff;color:#4a7fe0;display:grid;place-items:center;font-size:26px;overflow:hidden;flex:none}
.avatar-edit-box img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-edit-tools{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
/* 请假表单：发起位置（可手动修改 / 重新定位） */
.lv-origin{display:flex;gap:8px;align-items:stretch}
.lv-origin .input{flex:1;min-width:0}
.lv-origin .textarea{min-height:52px;padding-top:10px;padding-bottom:10px;line-height:1.45}
.lv-locate{align-self:center;flex:none;height:40px;padding:0 12px;border-radius:10px;border:1px solid #d9e4fb;background:#f2f7ff;color:#2f6bdc;font-size:13px;font-family:inherit;white-space:nowrap}
