/* ============================================================
   吉气崽团队工作台 · 苹果简约高级风（2026-10-27）
   —— 纯覆盖层：只改视觉（底色/毛玻璃/圆角/阴影/字体/动效），
      不改任何布局尺寸、DOM 结构、交互逻辑与数据。
   —— 设计语言：Apple HIG 近似（同个人台 v31/v32 一脉）——
        · 底色 #F5F5F7 + 三团流动光斑（青/金/蓝，呼应当前品牌）
        · 卡片 / 侧栏 / 弹窗 / 顶栏一律毛玻璃：blur + saturate + 半透明白
        · 大圆角、极细分隔线、柔和多层投影
        · 品牌青绿保留给「导航选中 / 强调」，主按钮苹果黑胶囊
        · 动效只动 transform/opacity，系统「减少动态效果」下全部关闭
   ============================================================ */

:root {
  --bg: #F5F5F7;
  --panel: rgba(255, 255, 255, .78);
  --panel-solid: #FFFFFF;
  --panel-2: rgba(62, 124, 91, .07);
  --line: rgba(0, 0, 0, .08);
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --brand: #3E8464;
  --brand-dark: #2E5E44;
  --gold: #E8A33D;
  --gold-soft: #F6E7C6;
  --red: #D64A3E;
  --blue: #4A78A8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .07);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .86);
  --blur: saturate(180%) blur(22px);
  --ease: cubic-bezier(.22, .82, .3, 1);
  --spring: cubic-bezier(.3, 1.18, .44, 1);
}

/* ---------- 全局：底色 + 三团流动光斑（青/金/蓝） ---------- */
html { background: #F5F5F7; }
body {
  background: #F5F5F7;
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: -.006em;
  position: relative;
}
body::before,
body::after,
.app::before {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  will-change: transform;
}
body::before {
  width: 52vw; height: 52vw; min-width: 420px; min-height: 420px;
  left: -12vw; top: -16vw;
  background: radial-gradient(circle at 40% 40%, #C9EDDD 0%, rgba(201, 237, 221, 0) 68%);
  animation: blob-a 26s var(--ease) infinite alternate;
}
body::after {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  right: -10vw; top: 8vh;
  background: radial-gradient(circle at 55% 45%, #F3E3C2 0%, rgba(243, 227, 194, 0) 66%);
  animation: blob-b 31s var(--ease) infinite alternate;
}
.app::before {
  width: 44vw; height: 44vw; min-width: 360px; min-height: 360px;
  left: 28vw; bottom: -20vh;
  background: radial-gradient(circle at 50% 50%, #C7DDF5 0%, rgba(199, 221, 245, 0) 66%);
  animation: blob-c 37s var(--ease) infinite alternate;
}
@keyframes blob-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes blob-b { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-5vw, 6vh, 0) scale(.95); } }
@keyframes blob-c { from { transform: translate3d(0,0,0) scale(.95); } to { transform: translate3d(-4vw, -6vh, 0) scale(1.1); } }
.app { position: relative; z-index: 1; }
.login-layer { z-index: 50; }

::selection { background: rgba(62, 132, 100, .18); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .14); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .24); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 按钮 ---------- */
.btn {
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, .1);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  transition: background .22s var(--ease), border-color .22s var(--ease),
    transform .16s var(--spring), box-shadow .22s var(--ease), opacity .16s;
}
.btn:hover { background: rgba(255, 255, 255, .95); border-color: rgba(62, 132, 100, .4); color: var(--brand-dark); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, #2C2C2E 0%, #1D1D1F 100%);
  border-color: rgba(0, 0, 0, .35);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-primary:hover { background: linear-gradient(180deg, #3A3A3C 0%, #2C2C2E 100%); color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.975); }
.btn-danger { background: rgba(214, 74, 62, .09); border-color: rgba(214, 74, 62, .22); color: #C0211B; }
.btn-danger:hover { background: rgba(214, 74, 62, .15); border-color: rgba(214, 74, 62, .35); color: #C0211B; }
.btn-gold { background: linear-gradient(180deg, #EFB25C, #E09A2C); border-color: rgba(0, 0, 0, .12); color: #fff; box-shadow: 0 4px 14px rgba(232, 163, 61, .3); }
.btn-gold:hover { background: linear-gradient(180deg, #F2BC70, #E8A33D); color: #fff; transform: translateY(-1px); }
.btn-mini { border-radius: 10px; }
.icon-btn {
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
  border-color: rgba(0, 0, 0, .08);
  transition: background .2s var(--ease), color .2s var(--ease), transform .16s var(--spring), border-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .95); color: var(--brand); border-color: rgba(62, 132, 100, .35); }
.icon-btn:active { transform: scale(.95); }

/* ---------- 登录页 ---------- */
.login-layer { background: #F5F5F7; overflow: hidden; }
.login-layer::before,
.login-layer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.login-layer::before {
  width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(180, 228, 205, .9), rgba(180, 228, 205, 0) 66%);
  animation: blob-a 30s var(--ease) infinite alternate;
}
.login-layer::after {
  width: 52vmax; height: 52vmax; right: -16vmax; bottom: -20vmax;
  background: radial-gradient(circle, rgba(243, 227, 194, .85), rgba(243, 227, 194, 0) 66%);
  animation: blob-b 36s var(--ease) infinite alternate;
}
.login-box {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .05);
  animation: loginIn .6s var(--ease) both;
}
@keyframes loginIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.login-title { color: var(--ink); font-weight: 800; letter-spacing: .04em; }
.login-sub { color: #A1A1A6; }
.login-input {
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 13px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.login-input:focus {
  outline: none;
  border-color: rgba(62, 132, 100, .55);
  box-shadow: 0 0 0 4px rgba(62, 132, 100, .12);
  background: #fff;
}
.login-btn {
  border-radius: 14px;
  background: linear-gradient(180deg, #2C2C2E, #1D1D1F);
  border-color: rgba(0, 0, 0, .3);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.login-btn:hover { background: linear-gradient(180deg, #3A3A3C, #2C2C2E); color: #fff; }

/* ---------- 侧栏 ---------- */
.sidebar {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 1px 0 0 rgba(0, 0, 0, .035), 10px 0 40px rgba(0, 0, 0, .035);
}
.brand { color: var(--ink); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.brand small { color: #A1A1A6; }
.nav-item {
  border-radius: 12px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease), transform .18s var(--spring);
}
.nav-item:hover { background: rgba(0, 0, 0, .045); color: var(--ink); }
.nav-item:active { transform: scale(.982); }
.nav-item.active {
  background: rgba(62, 132, 100, .13);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(62, 132, 100, .16);
}
.nav-item.active .nav-badge { background: var(--brand-dark); }
.nav-badge { animation: badgePop .34s var(--spring) both; }
@keyframes badgePop { 0% { transform: scale(.5); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- 顶栏 / 视图容器 ---------- */
.topbar {
  background: rgba(245, 245, 247, .6);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.topbar-title { font-weight: 700; letter-spacing: -.02em; }
.role-badge { background: rgba(255, 149, 0, .13); color: #8A4B00; font-weight: 600; border-radius: 999px; }
.default-pwd-banner {
  background: rgba(214, 74, 62, .1);
  border: 1px solid rgba(214, 74, 62, .25);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .28s var(--ease), transform .28s var(--ease), background .28s var(--ease);
}
.card:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .045), 0 18px 50px rgba(0, 0, 0, .09); }
.card-title { font-weight: 650; letter-spacing: -.015em; }
.bug-card, .meeting-card { cursor: pointer; }
.bug-card:active, .meeting-card:active { transform: scale(.988); }
.section-title { color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.section-sub { color: #A1A1A6; }
.empty { color: #A1A1A6; }

/* 统计卡 */
.stat-box {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 26px rgba(0, 0, 0, .05);
}
.stat-box b { color: var(--ink); font-weight: 750; letter-spacing: -.02em; }
.stat-box span { color: var(--ink-2); }
.stat-click { transition: transform .22s var(--spring), box-shadow .24s var(--ease), border-color .22s var(--ease); }
.stat-click:hover { transform: translateY(-2px); border-color: rgba(62, 132, 100, .35); box-shadow: 0 6px 22px rgba(62, 132, 100, .13); }
.stat-click:active { transform: translateY(0) scale(.98); }

/* ---------- 药丸：三形态体系原样保留（状态实心加重 / 严重程度虚线+点 / 端描边），仅微调贴合玻璃底 ---------- */
.pill { border-radius: 999px; font-weight: 500; }
.pill-gold { background: rgba(232, 163, 61, .16); color: #8A5B14; }
.pill-red { background: rgba(214, 74, 62, .11); color: var(--red); }
.pill-blue { background: rgba(10, 132, 255, .1); color: #0A6ADC; }
.pill-done { background: rgba(52, 199, 89, .13); color: #1D7A3A; }
.pill-gray { background: rgba(0, 0, 0, .055); color: #6E6E73; }
.pill-purple { background: rgba(107, 63, 160, .1); color: #6B3FA0; }
.pill-plat { background: rgba(74, 88, 181, .09); border-color: rgba(74, 88, 181, .28); color: #4A58B5; }
.pill-ms { background: rgba(62, 132, 100, .1); border-color: rgba(62, 132, 100, .5); color: var(--brand-dark); transition: transform .16s var(--spring), background .18s var(--ease); }
.pill-ms:hover { background: rgba(62, 132, 100, .18); }
.pill-ms:active { transform: scale(.94); }
.pill-ms-ro { background: rgba(0, 0, 0, .045); border-color: rgba(0, 0, 0, .08); }
.pill-own { background: rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .07); }
.pill-overdue, .pill-submitted, .pill-missed { border-radius: 999px; }

/* BUG 状态分组外框：玻璃化 + 头部配色保留 */
.bug-group {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 34px rgba(0, 0, 0, .05);
}
.bug-group-head { border-bottom: 1px solid rgba(0, 0, 0, .05); }
.bg-pending .bug-group-head { background: rgba(214, 74, 62, .07); }
.bg-verify .bug-group-head { background: rgba(232, 163, 61, .1); }
.bg-done .bug-group-head { background: rgba(0, 0, 0, .03); }

/* ---------- sheet 页签（pill-tabs） ---------- */
.pill-tab {
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(0, 0, 0, .08);
  color: var(--ink-2);
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .18s var(--spring), box-shadow .22s var(--ease);
}
.pill-tab:hover { border-color: rgba(62, 132, 100, .4); color: var(--brand-dark); background: rgba(255, 255, 255, .92); }
.pill-tab:active { transform: scale(.955); }
.pill-tab.active {
  background: #1D1D1F;
  border-color: #1D1D1F;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

/* ---------- 表单控件 ---------- */
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(62, 132, 100, .55);
  box-shadow: 0 0 0 4px rgba(62, 132, 100, .12);
  background: #fff;
}
.field label { color: var(--ink-2); font-weight: 600; }
.filterbar select, .filterbar input {
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.filterbar select:focus, .filterbar input:focus { outline: none; border-color: rgba(62, 132, 100, .5); box-shadow: 0 0 0 4px rgba(62, 132, 100, .1); }

/* ---------- 弹窗 ---------- */
.modal-layer {
  background: rgba(20, 20, 22, .32);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.modal {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .22), 0 2px 10px rgba(0, 0, 0, .08);
}
.modal-head { border-bottom: 1px solid rgba(0, 0, 0, .06); }
.modal-foot { border-top: 1px solid rgba(0, 0, 0, .06); }
.modal-close {
  border-radius: 999px;
  background: rgba(0, 0, 0, .055);
  width: 30px; height: 30px; line-height: 1;
  transition: background .2s var(--ease), transform .16s var(--spring);
}
.modal-close:hover { background: rgba(0, 0, 0, .1); }
.modal-close:active { transform: scale(.9); }
/* 弹窗内容分区卡：玻璃化 */
.td-sec { background: rgba(62, 132, 100, .055); border: 1px solid rgba(62, 132, 100, .1); border-radius: 14px; }
.td-person { background: rgba(255, 255, 255, .8); border-color: rgba(0, 0, 0, .07); border-radius: 12px; }
.td-person-me { background: rgba(62, 132, 100, .08); }
.td-me-tag { background: var(--brand-dark); border-radius: 7px; }
.td-task-desc { background: rgba(255, 255, 255, .72); border: 1px dashed rgba(0, 0, 0, .12); border-radius: 12px; }

/* ---------- 会议纪要富文本 ---------- */
.rich-toolbar button {
  border-radius: 9px;
  background: rgba(255, 255, 255, .7);
  border-color: rgba(0, 0, 0, .09);
  transition: background .18s var(--ease), transform .16s var(--spring);
}
.rich-toolbar button:hover { background: #fff; }
.rich-toolbar button:active { transform: scale(.93); }
.rich-editor { background: rgba(255, 255, 255, .82); border-radius: 12px; }
.rich-editor:focus { border-color: rgba(62, 132, 100, .5); box-shadow: 0 0 0 4px rgba(62, 132, 100, .1); }
.rich-view blockquote, .rich-editor blockquote { border-left-color: rgba(62, 132, 100, .4); }

/* ---------- 排期周视图 ---------- */
.week-col {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.week-col.today-col { border-color: rgba(232, 163, 61, .5); background: rgba(246, 231, 198, .35); }
.week-task {
  border-radius: 9px;
  transition: transform .18s var(--spring), box-shadow .18s var(--ease);
}
.week-task:hover { transform: translateY(-1px) scale(1.01); }
.week-task:active { transform: scale(.97); }

/* ---------- 表格 ---------- */
.tbl {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tbl th { background: rgba(62, 132, 100, .07); color: var(--ink-2); }
.tbl td { border-bottom-color: rgba(0, 0, 0, .05); }

/* ---------- 日报周报汇总 / 负责人总结 ---------- */
.rp-sum-card { border-left-color: var(--brand); }
.rp-sum-body { background: rgba(62, 132, 100, .05); border: 1px dashed rgba(62, 132, 100, .25); border-radius: 12px; }
.rp-sum-card textarea { background: rgba(62, 132, 100, .05); }
.rp-group-head { border-bottom-color: rgba(0, 0, 0, .09); }

/* ---------- 版本块 ---------- */
.vblk { background: rgba(255, 255, 255, .58); border: 1px solid rgba(0, 0, 0, .06); border-radius: 12px; }
.vblk-form { background: rgba(255, 255, 255, .6); border-radius: 12px; }
.vblk-stage-pill { background: rgba(232, 163, 61, .14); border-color: rgba(232, 163, 61, .4); }
.ag-group { background: rgba(255, 255, 255, .6); border: 1px solid rgba(0, 0, 0, .07); border-radius: 12px; }

/* ---------- 版本卡片（核心内容大卡） ---------- */
.version-card--dev { border-color: rgba(62, 132, 100, .45); }

/* ---------- 未处理事项提醒条 ---------- */
.alert-bar {
  background: rgba(255, 245, 242, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 72, 15, .3);
  border-left: 5px solid #D9480F;
  border-radius: 12px;
}

/* ---------- Toast ---------- */
.toast {
  background: rgba(29, 29, 31, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  font-weight: 500;
  transition: opacity .26s var(--ease), transform .32s var(--spring);
}

/* ---------- 截图 / 灯箱 ---------- */
.shot-zone { border-color: rgba(0, 0, 0, .14); border-radius: 12px; background: rgba(62, 132, 100, .05); }
.shot-zone:hover, .shot-zone.shot-pasting { border-color: rgba(62, 132, 100, .5); background: rgba(62, 132, 100, .09); }
.shot-thumb { border-radius: 10px; transition: transform .18s var(--spring), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.shot-thumb:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

/* ---------- 任务总览 ---------- */
.ov-member { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid rgba(255, 255, 255, .72); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 26px rgba(0, 0, 0, .05); }
.ov-bar { background: rgba(0, 0, 0, .06); }
.ov-bar-fill { background: linear-gradient(90deg, #E8A33D, #F2BC70); }
.ov-bar-fill.ov-bar-done { background: linear-gradient(90deg, #3E8464, #5BA983); }

/* ============================================================
   动效系统（同个人台 v32 一脉）
   —— 只动 transform / opacity，不改布局；系统「减少动态效果」下全部关闭。
   ============================================================ */

/* ---------- 1. 视图切换：内容错峰浮入（app.js setView 触发） ---------- */
.view-enter > * { animation: riseIn .5s var(--ease) both; }
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.992); }
  to   { opacity: 1; transform: none; }
}
.view-enter > *:nth-child(2) { animation-delay: .05s; }
.view-enter > *:nth-child(3) { animation-delay: .1s; }
.view-enter > *:nth-child(4) { animation-delay: .14s; }
.view-enter > *:nth-child(5) { animation-delay: .17s; }
.view-enter > *:nth-child(6) { animation-delay: .2s; }
.view-enter > *:nth-child(n+7) { animation-delay: .22s; }

/* ---------- 2. 弹窗：遮罩淡入 + 弹性浮现（窄屏＝底部上滑） ---------- */
.modal-layer:not([hidden]) { animation: overlayIn .24s ease both; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal-layer:not([hidden]) .modal {
  animation: modalIn .42s var(--spring) both;
  transform-origin: 50% 42%;
}
@keyframes modalIn {
  from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.965); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 1023px) {
  .modal-layer:not([hidden]) .modal {
    animation: sheetIn .46s var(--spring) both;
    transform-origin: 50% 100%;
  }
  @keyframes sheetIn {
    from { opacity: .4; transform: translate3d(0, 56px, 0); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- 3. 底栏（窄屏） ---------- */
.tabbar {
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .05);
}
.tab-item { color: var(--ink-2); border-radius: 12px; transition: color .2s var(--ease), transform .18s var(--spring); }
.tab-item:active { transform: scale(.93); }
.tab-item .ico { transition: transform .26s var(--spring); }
.tab-item.active { color: var(--brand-dark); }
.tab-item.active .ico { transform: translateY(-1px) scale(1.1); }

/* ---------- 4. 下拉/药丸按压 ---------- */
select, input[type="date"] { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pill-click, .pill-tab, .week-task, .td-btn, .btn-mini { transition: transform .16s var(--spring), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
.pill-click:active { transform: scale(.94); }
.td-btn:active { transform: scale(.96); }
.field input, .field select, .field textarea { transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.field input:active, .field textarea:active { border-color: rgba(62, 132, 100, .4); }
input[type="checkbox"] { accent-color: #3E8464; transition: transform .16s var(--spring); }
input[type="checkbox"]:active { transform: scale(.88); }

/* ---------- 5. 卡片 / 表格行 hover ---------- */
.tbl tbody tr, .report-user { transition: background .18s var(--ease); }
.tbl tbody tr:hover { background: rgba(62, 132, 100, .04); }

/* ---------- 6. 尊重系统「减少动态效果」 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
