/* ==========================================================
   学记 StudentLife · 移动端 H5 样式
   适配方案：基准宽度 375px
     - html{font-size} 由 config.js 按屏幕宽度动态计算(rem 方案, 最大宽度封顶 480px)
     - vw 兜底：JS 未执行时 html{font-size:26.6667vw} 仍能等比缩放
     - 换算：样式中 0.12rem = 375 基准下的 12px
   布局：底部导航固定，内容区可纵向滚动，安全区(safe-area)适配
   ========================================================== */
:root {
  --primary: #FF7A9C;
  --primary-deep: #F4577D;
  --primary-light: #FFE9EF;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --text: #1F2430;
  --sub: #8A91A0;
  --muted: #B4BAC6;
  --line: #EDEFF3;
  --income: #F5434B;   /* 收入：红（中国习惯） */
  --expense: #17B978;  /* 支出：绿 */
  --warn: #FF9F0A;
  --radius: 0.12rem;
  --shadow: 0 0.02rem 0.12rem rgba(31, 36, 48, 0.06);
  --tabbar-h: 0.52rem;
  --header-h: 0.44rem;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  /* vw 兜底：1rem = 屏幕宽/375*100 px 的百分之一 → 即 100vw/375 = 26.67vw */
  font-size: 26.6667vw;
  -webkit-text-size-adjust: 100%;
}
/* JS 精确方案优先（config.js 会写入行内 font-size，此处不覆盖根字号，
   避免 rem 自引用导致根字号塌陷为浏览器默认值） */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  /* 正文用 px 基准不影响布局；布局尺寸统一用 rem */
  font-size: 0.14rem;
  line-height: 1.5;
  overflow: hidden;
}

/* 宽屏(桌面/预览)下：两侧留灰底，应用列加阴影并上下留白，看起来像一台手机，避免被拉伸 */
@media (min-width: 481px) {
  body { background: #e9eaee; }
  .app-root, .auth-root {
    top: 0.18rem; bottom: 0.18rem;
    box-shadow: 0 0.12rem 0.5rem rgba(31, 36, 48, .18);
    border-radius: 0.12rem;
    overflow: hidden;
  }
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: 0.14rem; outline: none; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ============ 应用容器 ============ */
/* 宽屏(桌面/预览)下收成手机宽度的居中列：left:50%+translateX 居中，
   width:100% + max-width:480px 与 config.js 的 rem 封顶(480)保持一致，
   避免内容按全窗口宽度铺开导致尺寸/版式对不上。真机(宽≤480)仍为全宽。 */
.app-root {
  position: fixed; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column;
  background: var(--bg);
}

.app-header {
  flex: 0 0 auto;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-size: 0.17rem; font-weight: 600;
  z-index: 20;
}
.app-header-right {
  position: absolute; right: 0.12rem; top: 50%; transform: translateY(-50%);
  font-size: 0.13rem; font-weight: 400;
  display: flex; align-items: center; gap: 0.12rem;
}
.app-header-right .hlink { color: #fff; opacity: .92; }

/* 内容区：独占剩余空间，纵向滚动 */
.app-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 0.08rem);
}

/* ============ 底部导航 ============ */
.tabbar {
  flex: 0 0 auto;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  position: relative;
  z-index: 30;
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.11rem; gap: 0.02rem;
  position: relative;
}
.tabbar-item.active { color: var(--primary-deep); }
.tabbar-icon { font-size: 0.21rem; line-height: 1; }
.tabbar-badge {
  position: absolute; top: 0.02rem; left: 56%;
  min-width: 0.16rem; height: 0.16rem; padding: 0 0.04rem;
  background: #FF3B30; color: #fff; border-radius: 0.08rem;
  font-size: 0.11rem; line-height: 0.16rem; text-align: center;
}
/* 临近(橙) / 已逾期(红) 两种紧急度 */
.tabbar-badge.urgent { background: #F2994A; }
.tabbar-badge.danger { background: #FF3B30; }

/* ============ 通用卡片 / 区块 ============ */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 0.1rem 0.12rem; padding: 0.14rem;
}
.card-title {
  font-size: 0.15rem; font-weight: 600; margin-bottom: 0.1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.section { margin: 0.1rem 0.12rem; }
.muted { color: var(--muted); }
.sub { color: var(--sub); font-size: 0.13rem; }
.divider { height: 1px; background: var(--line); margin: 0.1rem 0; }

/* ============ 按钮 ============ */
.btn {
  border: none; border-radius: 0.1rem; padding: 0.11rem 0.16rem;
  font-size: 0.15rem; font-weight: 500; cursor: pointer;
  background: #F2F3F5; color: var(--text);
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; }
.btn-danger { background: #FFeded; color: #E64340; }
.btn-block { width: 100%; display: block; }
.btn:active { opacity: .82; }
.btn[disabled] { opacity: .5; }

/* ============ 表单 ============ */
.field { margin-bottom: 0.14rem; }
.field-label { font-size: 0.13rem; color: var(--sub); margin-bottom: 0.06rem; }
.input, .textarea, .select {
  width: 100%; padding: 0.11rem 0.12rem; border: 1px solid var(--line);
  border-radius: 0.1rem; background: #fff; color: var(--text);
}
.textarea { min-height: 0.9rem; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--primary); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.08rem; }
.chip {
  padding: 0.07rem 0.14rem; border-radius: 0.16rem; background: #F2F3F5;
  color: var(--sub); font-size: 0.13rem; border: 1px solid transparent;
}
.chip.active { background: var(--primary-light); color: var(--primary-deep); border-color: var(--primary); }
.switch {
  width: 0.46rem; height: 0.26rem; border-radius: 0.13rem; background: #E5E6EB;
  position: relative; transition: background .2s; flex: 0 0 auto;
}
.switch::after {
  content: ''; position: absolute; top: 0.02rem; left: 0.02rem;
  width: 0.22rem; height: 0.22rem; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 0.03rem rgba(0,0,0,.2);
}
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(0.2rem); }

/* ============ 列表项 ============ */
.list-item {
  background: #fff; padding: 0.12rem 0.14rem;
  display: flex; align-items: center; gap: 0.1rem;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 0.15rem; margin-bottom: 0.03rem; }
.list-item .li-sub { font-size: 0.12rem; color: var(--muted); }
.list-item .li-right { text-align: right; flex: 0 0 auto; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 金额 ============ */
.amount { font-size: 0.17rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.amount.income { color: var(--income); }
.amount.expense { color: var(--expense); }

/* ============ 二级 Tab ============ */
.subtabs {
  display: flex; background: #fff; padding: 0 0.12rem;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.subtab {
  flex: 1; text-align: center; padding: 0.11rem 0; font-size: 0.15rem;
  color: var(--sub); position: relative;
}
.subtab.active { color: var(--primary-deep); font-weight: 600; }
.subtab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0.28rem; height: 0.03rem; border-radius: 0.02rem; background: var(--primary);
}

/* ============ 空状态 / 引导页 ============ */
.empty {
  padding: 0.6rem 0.24rem; text-align: center; color: var(--muted);
}
.empty-emoji { font-size: 0.48rem; margin-bottom: 0.12rem; }
.guide {
  margin: 0.16rem 0.12rem; padding: 0.22rem 0.18rem; border-radius: 0.16rem;
  background: linear-gradient(160deg, #FFF1F5 0%, #FFE4EC 100%);
  text-align: center; color: var(--primary-deep);
}
.guide-emoji { font-size: 0.44rem; margin-bottom: 0.1rem; }
.guide-title { font-size: 0.17rem; font-weight: 700; margin-bottom: 0.08rem; }
.guide-desc { font-size: 0.13rem; color: #C4668A; line-height: 1.7; margin-bottom: 0.16rem; }
.guide-btns { display: flex; gap: 0.1rem; }
.guide-btns .btn { flex: 1; }

/* ============ 首页 ============ */
.home-hero {
  margin: 0.12rem; padding: 0.16rem; border-radius: 0.14rem; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #FF9BB5 100%);
  box-shadow: 0 0.06rem 0.18rem rgba(255, 122, 156, .28);
}
.home-hero .hh-label { font-size: 0.13rem; opacity: .9; }
.home-hero .hh-money { font-size: 0.28rem; font-weight: 700; margin: 0.06rem 0 0.12rem; }
.home-hero .hh-row { display: flex; gap: 0.2rem; font-size: 0.13rem; }
.home-hero .hh-row b { font-weight: 600; font-size: 0.15rem; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.12rem 0.04rem; }
.quick-item { text-align: center; }
.quick-ico {
  width: 0.46rem; height: 0.46rem; margin: 0 auto 0.06rem; border-radius: 0.14rem;
  display: flex; align-items: center; justify-content: center; font-size: 0.22rem;
}

/* 广告轮播 */
.ad-swiper {
  margin: 0.12rem; border-radius: 0.14rem; overflow: hidden; position: relative;
  background: #fff; height: 1.3rem;
}
.ad-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.ad-slide.active { opacity: 1; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; }
.ad-dots { position: absolute; bottom: 0.08rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.05rem; }
.ad-dot { width: 0.06rem; height: 0.06rem; border-radius: 0.03rem; background: rgba(255,255,255,.6); }
.ad-dot.active { background: #fff; width: 0.14rem; }

/* ============ 广场帖子 ============ */
.post-card { background: #fff; margin-bottom: 0.08rem; padding: 0.14rem; }
.post-head { display: flex; align-items: center; gap: 0.08rem; margin-bottom: 0.08rem; }
.avatar {
  width: 0.32rem; height: 0.32rem; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.15rem; color: var(--primary-deep); flex: 0 0 auto; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-title { font-size: 0.15rem; font-weight: 600; margin-bottom: 0.06rem; }
.post-content { font-size: 0.14rem; color: #4A5160; line-height: 1.6; margin-bottom: 0.08rem; }
.post-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.04rem; margin-bottom: 0.08rem; }
.post-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.06rem; }
.post-foot { display: flex; align-items: center; gap: 0.18rem; font-size: 0.12rem; color: var(--muted); }
.tag {
  display: inline-block; padding: 0.02rem 0.08rem; border-radius: 0.04rem;
  font-size: 0.11rem; background: var(--primary-light); color: var(--primary-deep);
}
.tag.gray { background: #F2F3F5; color: var(--sub); }
.filter-bar {
  display: flex; gap: 0.08rem; padding: 0.1rem 0.12rem; background: #fff;
  border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: 0; z-index: 10;
}
.filter-bar::-webkit-scrollbar { display: none; }
.fab {
  position: fixed; right: 0.16rem;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 0.16rem);
  width: 0.52rem; height: 0.52rem; border-radius: 0.26rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff; font-size: 0.26rem; line-height: 0.5rem; text-align: center;
  box-shadow: 0 0.06rem 0.16rem rgba(244, 87, 125, .4); z-index: 40;
}
.comment-item { padding: 0.1rem 0; border-bottom: 1px solid var(--line); }
.comment-item:last-child { border-bottom: none; }

/* ============ 图片上传器 ============ */
.uploader { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.08rem; }
.uploader-cell {
  aspect-ratio: 1; border-radius: 0.08rem; background: #F7F8FA; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.uploader-cell img { width: 100%; height: 100%; object-fit: cover; }
.uploader-del {
  position: absolute; top: 0; right: 0; width: 0.2rem; height: 0.2rem;
  background: rgba(0,0,0,.5); color: #fff; font-size: 0.14rem;
  line-height: 0.2rem; text-align: center; border-radius: 0 0.08rem 0 0.08rem;
}

/* ============ 进度条 ============ */
.progress { height: 0.08rem; border-radius: 0.04rem; background: #F0F1F4; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-deep)); border-radius: 0.04rem; transition: width .3s; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-panel {
  width: 100%; background: #fff; border-radius: 0.16rem 0.16rem 0 0;
  padding: 0.18rem 0.16rem calc(0.16rem + env(safe-area-inset-bottom));
  max-height: 84vh; overflow-y: auto;
  animation: slideUp .24s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.14rem; font-size: 0.16rem; font-weight: 600;
}
.modal-close { color: var(--muted); font-size: 0.22rem; line-height: 1; }

/* ============ Toast / Loading ============ */
#toast-root {
  position: fixed; top: 40%; left: 0; right: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 0.08rem; pointer-events: none;
}
.toast {
  background: rgba(0,0,0,.78); color: #fff; padding: 0.09rem 0.16rem;
  border-radius: 0.08rem; font-size: 0.14rem; max-width: 80%;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(0.06rem); } to { opacity: 1; transform: none; } }
#loading-root {
  position: fixed; inset: 0; background: rgba(255,255,255,.6); z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
}
.loading-spinner {
  width: 0.3rem; height: 0.3rem; border: 0.03rem solid var(--primary-light);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 0.13rem; color: var(--sub); }

/* ============ 登录页 ============ */
/* 与 .app-root 一致：宽屏收成手机宽度居中列，真机全宽 */
.auth-root {
  position: fixed; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; z-index: 500;
  overflow-y: auto; padding: 0 0.24rem calc(0.24rem + env(safe-area-inset-bottom));
}
.auth-logo { padding: 0.6rem 0 0.3rem; text-align: center; }
.auth-logo .lg-emoji { font-size: 0.56rem; }
.auth-logo .lg-name { font-size: 0.24rem; font-weight: 700; margin-top: 0.1rem; }
.auth-logo .lg-slogan { font-size: 0.13rem; color: var(--muted); margin-top: 0.06rem; }
.auth-tabs { display: flex; gap: 0.24rem; border-bottom: 1px solid var(--line); margin-bottom: 0.22rem; }
.auth-tab { padding: 0.1rem 0.02rem; font-size: 0.15rem; color: var(--sub); position: relative; }
.auth-tab.active { color: var(--text); font-weight: 600; }
.auth-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 0.02rem; background: var(--primary);
}
.code-row { display: flex; gap: 0.08rem; }
.code-row .input { flex: 1; }
.code-row .btn { flex: 0 0 auto; padding: 0.11rem 0.12rem; font-size: 0.13rem; }
.auth-tip { font-size: 0.12rem; color: var(--muted); text-align: center; margin-top: 0.16rem; line-height: 1.7; }

/* ============ 密码框眼睛（可见切换）============ */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 0.42rem; }
.pw-eye {
  position: absolute; right: 0.12rem; top: 50%; transform: translateY(-50%);
  font-size: 0.18rem; cursor: pointer; user-select: none; opacity: .65;
}
.pw-eye:active { opacity: 1; }

/* ============ 甜蜜瞬间（情侣账本子板块）============ */
.sm-card {
  background: #fff; border-radius: 0.14rem; padding: 0.14rem 0.14rem 0.1rem;
  margin: 0.1rem 0.12rem 0; box-shadow: 0 0.03rem 0.12rem rgba(255, 122, 156, .12);
}
.sm-head { display: flex; align-items: center; gap: 0.08rem; margin-bottom: 0.08rem; }
.sm-avatar {
  width: 0.32rem; height: 0.32rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: var(--primary-light);
}
.sm-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-deep); font-weight: 700; font-size: 0.15rem;
}
.sm-author { font-weight: 600; font-size: 0.14rem; }
.sm-time { margin-left: auto; font-size: 0.12rem; color: var(--muted); }
.sm-content { font-size: 0.14rem; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.sm-imgs { display: flex; flex-wrap: wrap; gap: 0.06rem; margin-top: 0.08rem; }
.sm-thumb {
  width: 1.0rem; height: 1.0rem; object-fit: cover; border-radius: 0.08rem; background: #f3f3f3; flex: 0 0 auto;
}
.sm-meta { font-size: 0.12rem; color: var(--sub); margin-top: 0.07rem; }
.sm-actions { text-align: right; font-size: 0.13rem; color: var(--primary-deep); margin-top: 0.06rem; }

/* 发布/编辑弹窗：图片上传器 */
.sm-uploader { display: flex; flex-wrap: wrap; gap: 0.08rem; align-items: center; }
.sm-prevs { display: flex; flex-wrap: wrap; gap: 0.08rem; }
.sm-prev { position: relative; width: 0.78rem; height: 0.78rem; border-radius: 0.08rem; overflow: hidden; background: #f3f3f3; }
.sm-prev img { width: 100%; height: 100%; object-fit: cover; }
.sm-prev-del {
  position: absolute; top: 0.02rem; right: 0.02rem; width: 0.18rem; height: 0.18rem;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 0.13rem;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.sm-add-btn {
  width: 0.78rem; height: 0.78rem; border: 1px dashed var(--primary); border-radius: 0.08rem;
  color: var(--primary-deep); display: flex; align-items: center; justify-content: center;
  font-size: 0.26rem; background: var(--primary-light);
}

/* ============ 学业·周课表 ============ */
.sc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.1rem; padding: 0.12rem 0.14rem; flex-wrap: wrap; }
.sc-toolbar-info { font-size: 0.13rem; color: var(--sub); }
.sc-toolbar-actions { display: flex; gap: 0.08rem; }
.btn-ghost { background: #fff; color: var(--primary-deep); border: 1px solid var(--line); }

.sc-empty { text-align: center; padding: 0.6rem 0.2rem; color: var(--sub); }
.sc-week { display: flex; gap: 0.05rem; padding: 0 0.08rem 0.2rem; overflow-x: auto; }
.sc-day { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.sc-day-hd { text-align: center; font-size: 0.13rem; font-weight: 600; color: var(--text);
  background: #fff; border-radius: 0.08rem 0.08rem 0 0; padding: 0.06rem 0; border-bottom: 2px solid var(--primary); }
.sc-day-empty { text-align: center; color: var(--muted); font-size: 0.18rem; margin-top: 0.1rem; }
.sc-block { color: #fff; border-radius: 0.08rem; padding: 0.06rem 0.04rem; margin-top: 0.06rem;
  box-shadow: 0 1px 3px rgba(31,36,48,.15); cursor: pointer; word-break: break-all; }
.sc-block:active { transform: scale(.97); }
.sc-b-nm { font-size: 0.115rem; font-weight: 600; line-height: 1.25; }
.sc-b-tm { font-size: 0.1rem; opacity: .92; margin-top: 0.02rem; }
.sc-b-rm { font-size: 0.095rem; opacity: .85; margin-top: 0.02rem; }

.sc-sw-row { display: flex; gap: 0.1rem; flex-wrap: wrap; }
.sc-sw { width: 0.26rem; height: 0.26rem; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.sc-sw.active { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset; }

.sc-row2 { display: flex; gap: 0.1rem; }
.sc-row2 > div { flex: 1; }

/* 识别结果预览 */
.rc-note { font-size: 0.12rem; padding: 0.08rem 0.1rem; border-radius: 0.08rem; background: #FFF7E6; color: #AD6800; margin-bottom: 0.08rem; }
.rc-note.ok { background: #EAF7EE; color: #1A7F37; }
.rc-tip { margin-bottom: 0.08rem; }
.rc-row { display: flex; gap: 0.08rem; padding: 0.08rem 0; border-bottom: 1px solid var(--line); }
.rc-ck { display: flex; align-items: flex-start; padding-top: 0.06rem; }
.rc-ck input { width: 0.18rem; height: 0.18rem; }
.rc-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.06rem; }
.rc-nm { font-weight: 600; }
.rc-sub { display: flex; gap: 0.06rem; }
.rc-sub .input { flex: 1; min-width: 0; padding: 0.07rem 0.08rem; font-size: 0.13rem; }
#rc-list { max-height: 52vh; overflow-y: auto; }

/* ============ 学业·Tab 切换 ============ */
.sc-tabs { display: flex; gap: 0.08rem; padding: 0.12rem 0.14rem 0.08rem; background: var(--bg); }
.sc-tab {
  flex: 1; text-align: center; padding: 0.09rem 0; border: none; border-radius: 0.2rem;
  background: #eef0f4; color: var(--text-sub); font-size: 0.15rem; font-weight: 600;
}
.sc-tab.active { background: var(--primary); color: #fff; }

/* ============ 学业·任务待办 ============ */
.sc-filters { display: flex; gap: 0.06rem; padding: 0.04rem 0.14rem 0.1rem; flex-wrap: wrap; }
.sc-filter {
  padding: 0.05rem 0.14rem; border: none; border-radius: 0.2rem; background: #eef0f4;
  color: var(--text-sub); font-size: 0.13rem;
}
.sc-filter.active { background: var(--primary-light); color: var(--primary-deep); font-weight: 600; }

.tk-list { padding: 0 0.14rem 0.2rem; display: flex; flex-direction: column; gap: 0.1rem; }
.tk-card {
  background: #fff; border-radius: 0.1rem; border-left: 0.05rem solid var(--primary);
  padding: 0.12rem 0.14rem; box-shadow: 0 0.02rem 0.1rem rgba(31,36,48,.06);
}
.tk-top { display: flex; align-items: center; gap: 0.08rem; margin-bottom: 0.04rem; }
.tk-type {
  color: #fff; font-size: 0.11rem; padding: 0.02rem 0.08rem; border-radius: 0.06rem; flex: none;
}
.tk-title { font-size: 0.16rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.tk-content { font-size: 0.13rem; color: var(--text-sub); margin: 0.04rem 0; line-height: 1.4; }
.tk-dl { font-size: 0.12rem; color: var(--text-sub); margin-top: 0.02rem; }
.tk-dl.overdue { color: #EB5757; font-weight: 600; }
.tk-dl.soon { color: #F2994A; font-weight: 600; }

/* ============ 任务到期提醒条 ============ */
.rm-bar {
  display: flex; align-items: center; gap: 0.06rem;
  margin: 0.1rem 0.12rem 0; padding: 0.1rem 0.12rem;
  background: #FFF7EC; border: 1px solid #FFDCA8; border-radius: 0.1rem;
  font-size: 0.12rem; color: #854F0B; cursor: pointer;
}
.rm-bar.urgent { background: #FFEFEF; border-color: #F7C1C1; color: #901F1F; }
.rm-bar.ok { background: #EFF8F0; border-color: #BFE3C6; color: #2F6B3A; cursor: default; }
.rm-bar.active { box-shadow: inset 0 0 0 1px currentColor; }
.rm-ico { flex: none; font-size: 0.15rem; line-height: 1; }
.rm-text { flex: 1; min-width: 0; line-height: 1.5; }
.rm-red { color: #EB5757; font-weight: 600; }
.rm-bar.urgent .rm-red { color: #D93A3A; }
.rm-org { color: #E08A1E; font-weight: 600; }
.rm-act {
  flex: none; padding: 0.03rem 0.08rem; border: 1px solid currentColor; border-radius: 0.2rem;
  font-size: 0.11rem; opacity: .85;
}
.tk-status { display: flex; gap: 0.06rem; margin-top: 0.1rem; }
.tk-st {
  flex: 1; padding: 0.06rem 0; border: 1px solid #e3e6ec; border-radius: 0.06rem; background: #f7f8fa;
  color: var(--text-sub); font-size: 0.12rem;
}
.tk-st.active { border-color: var(--c); background: var(--c); color: #fff; font-weight: 600; }
