/* ══════════════════════════════════════════════════════════
   JOBMM 工作效能管理平台 · Ant Design 5 风格
   纯 CSS 实现 antd Token 设计体系（零依赖），深色/浅色双主题
   ══════════════════════════════════════════════════════════ */

/* ─────────── AntD Design Tokens ─────────── */
:root,
html[data-theme='light'] {
  color-scheme: light;
  /* 品牌 / 功能色 */
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --success: #52c41a;
  --warning: #faad14;
  --error: #ff4d4f;
  --error-hover: #ff7875;

  /* 文本（antd colorText 系列） */
  --text: rgba(0, 0, 0, .88);
  --text-2: rgba(0, 0, 0, .65);
  --text-3: rgba(0, 0, 0, .45);
  --text-4: rgba(0, 0, 0, .25);

  /* 背景 */
  --bg-layout: #f5f5f5;          /* 页面底 */
  --bg-container: #ffffff;       /* 容器/卡片 */
  --bg-spotless: #fafafa;        /* 次级容器（气泡/轨道） */

  /* 边框 / 填充 */
  --border: #d9d9d9;             /* 控件边框 colorBorder */
  --split: #f0f0f0;              /* 分割线 colorSplit */
  --fill: rgba(0, 0, 0, .04);    /* 悬浮填充 */
  --fill-2: rgba(0, 0, 0, .06);

  /* Tag 色板（浅底深字） */
  --tag-blue-bg: #e6f4ff;   --tag-blue-fg: #1677ff;
  --tag-gold-bg: #fffbe6;   --tag-gold-fg: #d48806;
  --tag-green-bg: #f6ffed;  --tag-green-fg: #389e0d;
  --tag-cyan-bg: #e6fffb;   --tag-cyan-fg: #08979c;
  --tag-purple-bg: #f9f0ff; --tag-purple-fg: #722ed1;
  --tag-red-bg: #fff1f0;    --tag-red-fg: #ff4d4f;

  /* 气泡 */
  --bubble-other: #f0f2f5;
  --bubble-own: #e6f4ff;
  --bubble-own-fg: rgba(0, 0, 0, .88);

  /* 阴影 */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .03), 0 1px 6px -1px rgba(0, 0, 0, .02), 0 2px 4px rgba(0, 0, 0, .02);
  --shadow-pop: 0 6px 16px 0 rgba(0, 0, 0, .08), 0 3px 6px -4px rgba(0, 0, 0, .12), 0 9px 28px 8px rgba(0, 0, 0, .05);
  --focus-ring: 0 0 0 2px rgba(5, 145, 255, .1);

  /* 几何 */
  --radius: 8px;
  --radius-sm: 6px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "JetBrains Mono", Menlo, monospace;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --primary: #1668dc;
  --primary-hover: #3c89e8;
  --primary-active: #0958d9;
  --success: #49aa19;
  --warning: #d89614;
  --error: #dc4444;
  --error-hover: #e96e6e;

  --text: rgba(255, 255, 255, .85);
  --text-2: rgba(255, 255, 255, .65);
  --text-3: rgba(255, 255, 255, .45);
  --text-4: rgba(255, 255, 255, .25);

  --bg-layout: #000000;
  --bg-container: #141414;
  --bg-spotless: #1f1f1f;

  --border: #424242;
  --split: #262626;
  --fill: rgba(255, 255, 255, .06);
  --fill-2: rgba(255, 255, 255, .10);

  --tag-blue-bg: #111a2c;   --tag-blue-fg: #1668dc;
  --tag-gold-bg: #2b2111;   --tag-gold-fg: #d89614;
  --tag-green-bg: #162312;  --tag-green-fg: #49aa19;
  --tag-cyan-bg: #112123;   --tag-cyan-fg: #13c2c2;
  --tag-purple-bg: #1d132a; --tag-purple-fg: #b37feb;
  --tag-red-bg: #2a1215;    --tag-red-fg: #e88c8c;

  --bubble-other: #1f1f1f;
  --bubble-own: #111a2c;
  --bubble-own-fg: rgba(255, 255, 255, .85);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .12);
  --shadow-pop: 0 6px 16px 0 rgba(0, 0, 0, .32), 0 3px 6px -4px rgba(0, 0, 0, .36), 0 9px 28px 8px rgba(0, 0, 0, .2);
  --focus-ring: 0 0 0 2px rgba(5, 145, 255, .16);
}

/* ─────────── 基础 ─────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* hidden 属性必须始终生效（防止 display:flex 类样式覆盖） */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5714;
  background: var(--bg-layout);
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

::selection { background: rgba(22, 119, 255, .18); }

/* ─────────── 顶栏（antd Layout.Header 风格） ─────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--split);
  background: var(--bg-container);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  font-size: 16px;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 16px; font-weight: 600; white-space: nowrap; color: var(--text); }
.brand-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.online-badge, .me-badge {
  font-size: 12px; color: var(--text-2);
  background: var(--fill);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: none;
}
.me-badge { cursor: pointer; transition: background .2s; }
.me-badge:hover { background: var(--fill-2); }
.online-badge b, .me-badge b { color: var(--text); font-weight: 600; }
.me-badge b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; vertical-align: bottom; }

/* ─────────── 按钮（antd Button 风格） ─────────── */
.btn,
.ant-btn {
  border: 1px solid var(--border);
  background: var(--bg-container);
  color: var(--text);
  height: 32px;
  padding: 4px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
}
.btn:hover,
.ant-btn:hover { border-color: var(--primary-hover); color: var(--primary-hover); }
.btn:active,
.ant-btn:active { transform: none; border-color: var(--primary-active); color: var(--primary-active); }

.btn-primary,
.ant-btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  font-weight: 400;
  box-shadow: 0 2px 0 rgba(5, 145, 255, .1);
}
.btn-primary:hover,
.ant-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-primary:active,
.ant-btn-primary:active { background: var(--primary-active); border-color: var(--primary-active); color: #fff; }

.btn-danger,
.ant-btn-dangerous {
  border: 1px solid var(--error);
  color: var(--error);
  box-shadow: 0 2px 0 rgba(255, 77, 79, .06);
}
.btn-danger:hover,
.ant-btn-dangerous:hover { background: var(--tag-red-bg); border-color: var(--error-hover); color: var(--error-hover); }

.btn-disguise { font-weight: 500; }

/* 图标按钮（antdIconButton） */
.icon-btn {
  border: 1px solid var(--border);
  background: var(--bg-container);
  color: var(--text-2);
  font-size: 15px;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
}
.icon-btn:hover { border-color: var(--primary-hover); color: var(--primary-hover); }

/* 管理页右上角悬浮主题按钮 */
.btn-theme-float { position: fixed; top: 14px; right: 14px; z-index: 90; }

/* ─────────── 布局与卡片（antd Card） ─────────── */
.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 24px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) minmax(420px, 7fr);
  gap: 16px;
  align-items: start;
}
.left-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-container);
  border: 1px solid var(--split);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

/* ─────────── 意见反馈（右下角悬浮 / 收起吸边） ─────────── */
.feedback-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 80;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
  background: var(--bg-container);
  border: 1px solid var(--split);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 12px 14px;
}
.feedback-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--split);
}
.feedback-panel-head h2 { font-size: 14px; font-weight: 600; color: var(--text); }
.feedback-head-ops { display: flex; align-items: center; gap: 6px; }
.feedback-more-link {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12px;
  padding: 2px 4px;
  cursor: pointer;
  font-family: inherit;
}
.feedback-more-link:hover { color: var(--primary-hover); text-decoration: underline; }
.feedback-min-btn {
  border: none;
  background: var(--fill);
  color: var(--text-2);
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.feedback-min-btn:hover { background: var(--fill-2); color: var(--primary); }

.feedback-input {
  width: 100%;
  min-height: 64px;
  margin-top: 10px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-container);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  padding: 7px 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.feedback-input:hover { border-color: var(--primary-hover); }
.feedback-input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.feedback-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.feedback-hint { font-size: 11.5px; color: var(--text-4); }
.feedback-submit { height: 28px; padding: 0 12px; font-size: 12.5px; flex-shrink: 0; }

.feedback-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 6px;
  font-size: 11.5px;
  color: var(--text-4);
}
.feedback-recent {
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedback-recent-item {
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-spotless);
  border: 1px solid var(--split);
}
.feedback-recent-top { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.feedback-recent-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feedback-recent-time { font-size: 10.5px; color: var(--text-4); white-space: nowrap; flex-shrink: 0; }
.feedback-recent-result {
  font-size: 11.5px;
  color: var(--tag-green-fg);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feedback-empty { text-align: center; color: var(--text-4); font-size: 12px; padding: 6px 0; }
.feedback-status { font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px; flex-shrink: 0; }
.feedback-status.pending { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }
.feedback-status.done { background: var(--tag-green-bg); color: var(--tag-green-fg); }

/* 收起后的右下角吸边标签 */
.feedback-edge {
  position: fixed;
  right: 0;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--split);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: var(--bg-container);
  box-shadow: var(--shadow-pop);
  color: var(--primary);
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, padding-left .2s;
}
.feedback-edge:hover { background: var(--fill); padding-left: 14px; }
.feedback-edge-icon { font-size: 16px; line-height: 1; }
.feedback-edge-text { font-size: 12px; color: var(--text-2); }
.feedback-edge .tab-badge { background: var(--tag-blue-bg); color: var(--primary); }

/* 全部反馈弹窗 */
.ant-modal-feedback { width: 620px; }
.feedback-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-container);
  color: var(--text-3);
  transition: border-color .2s, box-shadow .2s;
}
.feedback-search:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); color: var(--primary); }
.feedback-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  height: 100%;
}
.feedback-more-list {
  max-height: 62vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feedback-detail-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-spotless);
  border: 1px solid var(--split);
}
.feedback-detail-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.feedback-detail-time { font-size: 11px; color: var(--text-4); margin-left: auto; white-space: nowrap; }
.feedback-detail-content { font-size: 13px; color: var(--text); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.feedback-detail-result {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--split);
  font-size: 12.5px;
  color: var(--tag-green-fg);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.feedback-detail-done-time { font-size: 11px; color: var(--text-4); margin-top: 2px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--split);
  padding-bottom: 12px;
}
.card-head h2 { font-size: 16px; font-weight: 600; color: var(--text); }

/* ─────────── Tabs（antd Tabs 下划线风格） ─────────── */
.tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--split);
}
.ant-tabs-nav { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; position: relative; }
.ant-tabs-nav::-webkit-scrollbar { display: none; }
/* antd 活动指示条（滑块） */
.ant-tabs-ink-bar {
  position: absolute;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  pointer-events: none;
  transition: left .3s cubic-bezier(.645, .045, .355, 1), width .3s cubic-bezier(.645, .045, .355, 1);
}
.ant-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 2px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color .2s;
}
.ant-tab:hover { color: var(--primary-hover); }
.ant-tab.active { color: var(--primary); }
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 11px; font-style: normal; font-weight: 500;
  line-height: 1;
}
.ant-tab.active .tab-badge { background: var(--tag-blue-bg); color: var(--primary); }
.tab-badge.tab-warn,
.ant-tab.active .tab-badge.tab-warn { background: var(--tag-red-bg); color: var(--error); font-weight: 700; }

.tab-pane { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 折叠按钮（手风琴） */
.collapse-chevron {
  border: none;
  background: var(--fill);
  color: var(--text-2);
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
  transition: transform .24s ease, background .2s, color .2s;
}
.collapse-chevron:hover { background: var(--fill-2); color: var(--primary); }
.collapse-card.collapsed .collapse-chevron { transform: rotate(180deg); }
.collapse-card.collapsed .tab-head { margin-bottom: 0; border-bottom-color: transparent; }
.collapse-card.collapsed .card-head { margin-bottom: 0; border-bottom-color: transparent; padding-bottom: 0; }

/* 折叠体：grid-template-rows 0fr↔1fr 实现高度自适应动画 */
.collapse-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .28s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
  opacity: 1;
}
.collapse-card.collapsed .collapse-body { grid-template-rows: 0fr; opacity: 0; }
.collapse-inner { overflow: hidden; min-height: 0; }

/* ─────────── 日历 ─────────── */
.cal-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-title { flex: 1; text-align: center; font-size: 15px; font-weight: 600; color: var(--text); }
.cal-nav { width: 28px; height: 28px; font-size: 16px; color: var(--text-2); }
.cal-today-btn { height: 28px; padding: 0 10px; font-size: 12px; }

/* ─────────── antd Calendar 网格 ─────────── */
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--split);
}
.cal-week span { font-weight: 500; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--split);
  border-bottom: 1px solid var(--split);
}
.cal-cell {
  min-height: 64px;
  border-right: 1px solid var(--split);
  border-top: 1px solid var(--split);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  padding: 6px 2px 4px;
  cursor: pointer;
  transition: background .16s;
  position: relative;
}
.cal-cell.is-empty { background: var(--bg-spotless); cursor: default; }
.cal-cell:not(.is-empty):hover { background: var(--fill); }

.cal-day {
  font-size: 13px;
  line-height: 1.2;
  height: 22px;
  min-width: 22px;
  padding: 0 2px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background .16s, color .16s;
}
.cal-sub {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--text-3);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

/* 周末日号：淡红 */
.cal-cell.is-weekend:not(.is-holiday) .cal-day { color: var(--error); }
/* 节气：绿色 */
.cal-cell.is-term .cal-sub { color: var(--tag-green-fg); }
/* 法定节假日：红色强调 */
.cal-cell.is-holiday .cal-sub { color: var(--tag-red-fg); font-weight: 500; }
.cal-cell.is-holiday .cal-day { color: var(--tag-red-fg); font-weight: 500; }
/* 调休补班：橙色强调 */
.cal-cell.is-inlieu { background: var(--tag-gold-bg); }
.cal-cell.is-inlieu .cal-day { color: var(--tag-gold-fg); font-weight: 600; }
.cal-cell.is-inlieu .cal-sub { color: var(--tag-gold-fg); }
/* 今天：antd 选中态（浅蓝底 + 主色文字） */
.cal-cell.is-today .cal-day {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.cal-cell.is-today .cal-sub { color: var(--primary); font-weight: 500; }
/* 有个人记录：右上角小圆点 */
.cal-cell.has-record::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* 可点击 + 记录标记 */
.cal-cell:not(.is-empty) { cursor: pointer; }
.cal-cell.is-work .cal-sub { color: var(--text-3); }

.cal-tags { display: flex; gap: 2px; height: 13px; align-items: center; }
.cal-tag {
  font-style: normal;
  font-size: 9.5px;
  line-height: 13px;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}
.cal-tag.t-rest { background: var(--fill-2); color: var(--text-3); }
.cal-tag.t-payday { background: var(--tag-gold-bg); color: var(--tag-gold-fg); font-weight: 500; }
.cal-tag.t-holiday { background: var(--tag-red-bg); color: var(--tag-red-fg); }
.cal-tag.t-leave { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.cal-tag.t-overtime { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.cal-tag.t-comp { background: var(--tag-cyan-bg); color: var(--tag-cyan-fg); }
.cal-tag.t-comp-done { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.cal-tag.t-comp-part { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }
.cal-tag.t-comp-expired { background: var(--fill-2); color: var(--text-3); }

/* 请假标签（假别）配色 */
.cal-tag.t-sub-personal { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.cal-tag.t-sub-sick { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }
.cal-tag.t-sub-annual { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.cal-tag.t-sub-marriage { background: var(--tag-red-bg); color: var(--tag-red-fg); }
.cal-tag.t-sub-bereavement { background: var(--fill-2); color: var(--text-2); }
.cal-tag.t-sub-maternity { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.cal-tag.t-sub-paternity { background: var(--tag-cyan-bg); color: var(--tag-cyan-fg); }
.cal-tag.t-sub-parental { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }
.cal-tag.t-sub-injury { background: var(--tag-red-bg); color: var(--tag-red-fg); }
.cal-tag.t-sub-other { background: var(--fill-2); color: var(--text-3); }

/* ─────────── 日历记录弹窗 ─────────── */
.day-record-list { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow-y: auto; margin-bottom: 16px; }
.day-record-item {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 8px 10px;
  background: var(--bg-spotless);
  border-radius: var(--radius-sm);
}
.day-record-item .cal-tag { font-size: 11px; line-height: 18px; padding: 0 6px; }
.day-record-note { flex: 1; font-size: 13px; color: var(--text-2); word-break: break-word; min-width: 0; }
.day-record-alloc { flex-basis: 100%; font-size: 11.5px; color: var(--text-3); line-height: 1.5; word-break: break-word; }
.day-record-alloc.is-done { color: var(--tag-green-fg); }
.day-record-alloc.is-part { color: var(--tag-gold-fg); }
.day-record-del {
  border: none; background: none;
  color: var(--text-4); font-size: 12px;
  cursor: pointer; padding: 2px 4px; flex-shrink: 0;
}
.day-record-del:hover { color: var(--error); }

/* ─────────── 假勤管理（统计 + 列表 + 搜索） ─────────── */
.att-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg-spotless);
  border-radius: var(--radius-sm);
}
.seg-item {
  border: none;
  background: none;
  padding: 4px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-2);
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.seg-item:hover { color: var(--primary-hover); }
.seg-item.active {
  background: var(--bg-container);
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-card);
}
.att-scope-label { font-size: 12px; color: var(--text-3); }

.att-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 12px; }
.att-stat {
  background: var(--bg-spotless);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}
.att-stat b {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
}
.att-stat b small { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 1px; }
.att-stat b.neg { color: var(--error); }
.att-stat span { font-size: 11.5px; color: var(--text-3); }
.att-stat.t-leave b { color: var(--tag-blue-fg); }
.att-stat.t-overtime b { color: var(--tag-purple-fg); }
.att-stat.t-comp b { color: var(--tag-cyan-fg); }
.att-stat.t-comp.warn b { color: var(--error); }
.att-stat.t-annual b { color: var(--tag-green-fg); }

/* 待调休超限警告 */
.comp-warning {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--tag-red-bg);
  color: var(--error);
  font-size: 12.5px;
  line-height: 1.55;
}
.comp-warning b { font-family: var(--font-mono); font-weight: 600; }

.att-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.att-search {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  height: 32px;
  color: var(--text-3);
  transition: border-color .2s, box-shadow .2s;
}
.att-search:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); color: var(--primary); }
.att-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  height: 100%;
}
.att-select {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-container);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 0 8px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.att-select:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.att-select:disabled { opacity: .5; cursor: not-allowed; }

.att-list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  border-top: 1px solid var(--split);
}
.att-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--split);
}
.att-item:hover { background: var(--fill); }
.att-date {
  font-size: 12.5px;
  color: var(--text-2);
  width: 88px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.att-item .cal-tag { flex-shrink: 0; font-size: 11px; line-height: 18px; padding: 0 6px; }
.att-note {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.att-del {
  border: none;
  background: none;
  color: var(--text-4);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
}
.att-del:hover { color: var(--error); }

/* ─────────── 新手引导 ─────────── */
.ob-progress { height: 3px; background: var(--split); }
.ob-progress i { display: block; height: 100%; width: 25%; background: var(--primary); transition: width .3s cubic-bezier(.4, 0, .2, 1); }

.ob-step { padding: 24px 24px 8px; animation: fadeIn .22s ease; }
.ob-icon {
  font-size: 34px;
  line-height: 1;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--tag-blue-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.ob-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.ob-step p { font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin: 0 0 12px; }
.ob-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ob-list li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  padding: 9px 12px;
  background: var(--bg-spotless);
  border-radius: var(--radius-sm);
}
.ob-list li b { color: var(--text); font-weight: 600; }
.ob-step kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-container);
  color: var(--text);
}

.ob-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px 20px;
  flex-wrap: wrap;
}
.ob-dots { display: flex; gap: 6px; }
.ob-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fill-2);
  transition: all .2s;
}
.ob-dot.active { width: 18px; border-radius: 3px; background: var(--primary); }
.ob-actions { display: flex; gap: 8px; margin-left: auto; }

/* ─────────── 我的设置弹窗 ─────────── */
.me-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.me-actions-left,
.me-actions-right { display: flex; gap: 8px; flex-wrap: wrap; }
.me-actions-right { margin-left: auto; }

/* 单选项（antd Radio 风格） */
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); cursor: pointer; }
.radio-item input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

/* 表单内的 单选/复选 标签不受 .field label / .field input 的块级与拉伸样式影响 */
.field .radio-item,
.field .wd-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}
.field .radio-item input[type="radio"],
.field .wd-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-width: 15px;
  padding: 0;
  margin: 0;
  box-shadow: none;
  border: none;
  background: none;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* ─────────── 管理端：排班 ─────────── */
.sch-edit-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--tag-blue-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sch-target { font-size: 14px; color: var(--text-2); }
.sch-target b { color: var(--tag-blue-fg); font-size: 15px; }
.sch-target-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }

.sch-form { margin-bottom: 22px; }
.sch-form .field { margin-bottom: 16px; }
.weekday-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.wd-item:hover { border-color: var(--primary-hover); }
.wd-item input { accent-color: var(--primary); margin: 0; }
.wd-item:has(input:checked) { border-color: var(--primary); background: var(--tag-blue-bg); color: var(--tag-blue-fg); }

.rotate-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.rotate-row input {
  width: 72px;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  height: 32px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: var(--font-mono);
}
.rotate-row input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
#rotateStart {
  width: 180px;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 11px;
  height: 32px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  margin-top: 8px;
  display: block;
}
#rotateStart:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }

.sub-title { font-size: 15px; font-weight: 600; margin: 4px 0 12px; }
.sched-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--split);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg-container);
}
.sched-row.editing { border-color: var(--primary); background: var(--tag-blue-bg); }
.sched-row .avatar { width: 32px; height: 32px; font-size: 13px; flex-shrink: 0; border: none; }
.sched-info { flex: 1; min-width: 0; }
.sched-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-src {
  font-size: 11px; font-weight: 400;
  padding: 0 6px; line-height: 18px;
  border-radius: 3px;
  background: var(--fill-2); color: var(--text-3);
}
.sched-src.custom { background: var(--tag-green-bg); color: var(--tag-green-fg); }
.sched-summary { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sched-ops { display: flex; gap: 8px; flex-shrink: 0; }
.sched-ops .btn:disabled { opacity: .55; cursor: default; border-color: var(--border); color: var(--text-3); }

/* 节假日倒计时横幅 */
.holiday-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--tag-blue-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeIn .2s ease;
}
.hd-left { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.hd-label { font-size: 12px; color: var(--text-2); }
.hd-left b { font-size: 14px; color: var(--tag-blue-fg); font-weight: 600; }
.hd-date { font-size: 12px; color: var(--text-2); }
.hd-days {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.hd-metric { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.hd-metric b {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.hd-metric small { font-size: 10px; font-weight: 400; color: var(--text-3); }

/* 倒计时面板下的节假日提示 */
.holiday-mini {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  text-align: center;
  background: var(--tag-blue-bg);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  white-space: normal;
}

/* 倒计时面板下的发薪日提示 */
.payday-line {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
  text-align: center;
  background: var(--tag-gold-bg);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  white-space: normal;
}
.payday-line .payday-icon { margin-right: 3px; }
.payday-line .payday-days {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tag-gold-fg);
  margin: 0 2px;
}
.payday-line .payday-date { color: var(--text-4); }

/* ─────────── 倒计时 ─────────── */
/* 状态 Tag（antd Tag） */
.phase-chip {
  font-size: 12px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--tag-blue-bg);
  color: var(--tag-blue-fg);
  font-weight: 400;
  white-space: nowrap;
}
.phase-chip.lunch { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }
.phase-chip.off { background: var(--tag-green-bg); color: var(--tag-green-fg); }

.ring-wrap { position: relative; z-index: 1; width: 240px; height: 240px; margin: 8px auto 16px; }
.ring { transform: rotate(-90deg); width: 100%; height: 100%; display: block; }
.ring-bg { fill: none; stroke: var(--bg-spotless); stroke-width: 12; }
.ring-fg {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 653.45;   /* 2πr, r=104 */
  stroke-dashoffset: 653.45;
  transition: stroke-dashoffset .6s ease;
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.ring-label { font-size: 13px; color: var(--text-3); letter-spacing: 1px; }
.ring-time {
  font-family: var(--font-mono);
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.ring-percent { font-size: 12px; color: var(--text-3); }

/* 最后一分钟：只显示秒数，开心节日氛围 */
#paneCountdown.last-minute .ring-wrap {
  border-radius: 50%;
  animation: happyGlow 1s ease-in-out infinite;
}
#paneCountdown.last-minute .ring-bg { stroke: rgba(255, 193, 7, .16); }
#paneCountdown.last-minute .ring-fg {
  stroke: url(#ringGradParty);
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, .55));
}
#paneCountdown.last-minute .ring-label {
  color: #ffb84d;
  font-weight: 600;
  letter-spacing: 2px;
}
#paneCountdown.last-minute .ring-time {
  font-size: clamp(56px, 5vw, 84px);
  color: #ffd666;
  text-shadow: 0 0 26px rgba(255, 193, 7, .55), 0 0 40px rgba(255, 133, 192, .25);
  animation: happyBounce 1s ease-in-out infinite;
}
#paneCountdown.last-minute .ring-time::after {
  content: '秒';
  margin-left: 4px;
  font-size: .32em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: .35em;
}
#paneCountdown.last-minute .ring-percent { color: #ffb84d; }
#paneCountdown.urgent .ring-wrap { animation-duration: .5s; }
#paneCountdown.urgent .ring-time {
  font-size: clamp(62px, 5.6vw, 92px);
  color: #ff9c6e;
  animation-duration: .5s;
}
@keyframes happyBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-4px) scale(1.06); }
  60% { transform: translateY(0) scale(1.02); }
}
@keyframes happyGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, .18); }
  50% { box-shadow: 0 0 48px 10px rgba(255, 133, 192, .22), 0 0 24px 4px rgba(255, 193, 7, .2); }
}

/* 信息行（antd List item 风格） */
.count-rows { display: flex; flex-direction: column; margin-bottom: 16px; }
.count-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-2);
  padding: 9px 4px;
  border-bottom: 1px solid var(--split);
}
.count-row:last-child { border-bottom: none; }
.count-row b { color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }

/* 进度条（antd Progress line） */
.progress-line { margin-bottom: 12px; }
.progress-bar {
  height: 8px; border-radius: 100px;
  background: var(--bg-spotless);
  overflow: hidden;
}
.progress-bar i {
  display: block; height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 100px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.progress-text { font-size: 12px; color: var(--text-3); margin-top: 6px; text-align: right; }

.schedule-line {
  font-size: 12px; color: var(--text-3);
  text-align: center;
  background: var(--fill);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-variant-numeric: tabular-nums;
}
.notify-toggle {
  display: block;
  margin: 7px auto 0;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: 12px;
  line-height: 20px;
  padding: 2px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.notify-toggle:hover { color: var(--primary); background: var(--fill); }
.notify-toggle.on { color: var(--tag-green-fg); }
.notify-toggle:disabled { color: var(--text-4); cursor: not-allowed; background: none; }

/* ─────────── 全屏翻页倒计时 ─────────── */
#paneCountdown { position: relative; }
.cfs-open {
  position: absolute; top: 2px; right: 2px; z-index: 2;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-container);
  color: var(--text-2);
  font-size: 15px; line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.cfs-open:hover { color: var(--primary); border-color: var(--primary); background: var(--fill); }
body.fs-open { overflow: hidden; }

.countdown-fs {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(16px, 3vh, 38px);
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(20px, 4vh, 44px))
    calc(env(safe-area-inset-right, 0px) + clamp(18px, 4vw, 56px))
    calc(env(safe-area-inset-bottom, 0px) + clamp(20px, 4vh, 44px))
    calc(env(safe-area-inset-left, 0px) + clamp(18px, 4vw, 56px));
  background:
    radial-gradient(circle at 50% 36%, rgba(22, 119, 255, .16), transparent 58%),
    var(--bg-layout);
  color: var(--text);
  overflow: hidden;
}
.countdown-fs:fullscreen { width: 100vw; height: 100vh; }

.cfs-head {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + clamp(18px, 4vh, 40px));
  left: calc(env(safe-area-inset-left, 0px) + clamp(18px, 4vw, 56px));
  right: calc(env(safe-area-inset-right, 0px) + clamp(18px, 4vw, 56px));
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.cfs-label {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.3;
}
.cfs-date {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 16px);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.cfs-close {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-container);
  color: var(--text-2);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.cfs-close:hover { color: var(--primary); border-color: var(--primary); }
.cfs-close kbd {
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--fill);
  font-family: var(--font-mono);
  font-size: 11px;
}

.cfs-main { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1vw, 16px); }
.cfs-plus {
  font-family: var(--font-mono);
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.cfs-clock {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(6px, .9vw, 16px);
  perspective: 1400px;
}
.cfs-digit {
  position: relative;
  width: clamp(64px, 12vw, 220px);
  height: clamp(94px, 18vw, 330px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: clamp(8px, 1.1vw, 22px);
  background: linear-gradient(180deg, var(--bg-container), var(--fill));
  box-shadow: var(--shadow-pop);
  transform-style: preserve-3d;
  will-change: transform;
}
.cfs-digit::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--split);
  opacity: .9;
  pointer-events: none;
}
.cfs-num {
  font-family: var(--font-mono);
  font-size: clamp(58px, 14vw, 250px);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  backface-visibility: hidden;
}
.cfs-digit.flipping .cfs-num { animation: cfsFlip .28s ease; transform-origin: center center; }
@keyframes cfsFlip {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(-90deg); }
  100% { transform: rotateX(0deg); }
}
.cfs-colon {
  font-family: var(--font-mono);
  font-size: clamp(40px, 8vw, 150px);
  font-weight: 600;
  color: var(--text-3);
  line-height: 1;
  animation: cfsBlink 2s ease-in-out infinite;
}
@keyframes cfsBlink {
  0%, 45%, 55%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.cfs-meta {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 30px);
  font-size: clamp(13px, 1.2vw, 18px);
  color: var(--text-2);
}
.cfs-meta .phase-chip {
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.8;
  padding: 0 12px;
}
.cfs-progress { font-size: clamp(12px, 1vw, 16px); color: var(--text-3); text-align: center; }
.cfs-foot {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(14px, 3vh, 32px));
  left: calc(env(safe-area-inset-left, 0px) + clamp(18px, 4vw, 56px));
  right: calc(env(safe-area-inset-right, 0px) + clamp(18px, 4vw, 56px));
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(11px, .95vw, 14px);
  color: var(--text-3);
}

/* 最后一分钟：全屏只显示秒数，开心节日氛围 */
.countdown-fs.last-minute {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 193, 7, .22), transparent 60%),
    radial-gradient(circle at 72% 20%, rgba(255, 133, 192, .14), transparent 50%),
    var(--bg-layout);
}
.countdown-fs.last-minute .cfs-label {
  color: #ffd666;
  text-shadow: 0 0 20px rgba(255, 193, 7, .5), 0 0 40px rgba(255, 133, 192, .25);
}
.countdown-fs.last-minute .cfs-date { color: rgba(255, 214, 102, .7); }
.countdown-fs.last-minute .cfs-digit {
  width: clamp(110px, 22vw, 360px);
  height: clamp(150px, 32vw, 500px);
  border-color: rgba(255, 193, 7, .5);
  box-shadow: 0 0 48px rgba(255, 193, 7, .25), 0 0 80px rgba(255, 133, 192, .16), var(--shadow-pop);
  animation: cfsLastPulse 1s ease-in-out infinite;
}
.countdown-fs.last-minute .cfs-num {
  font-size: clamp(100px, 26vw, 440px);
  color: #ffd666;
  text-shadow: 0 0 30px rgba(255, 193, 7, .55), 0 0 60px rgba(255, 133, 192, .3);
}
.countdown-fs.last-minute .cfs-unit {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 90px);
  font-weight: 700;
  line-height: 1;
  color: #ffd666;
  text-shadow: 0 0 20px rgba(255, 193, 7, .5);
  animation: happyBounce 1s ease-in-out infinite;
}
.countdown-fs.last-minute .cfs-progress { color: rgba(255, 214, 102, .82); }
.countdown-fs.urgent .cfs-digit,
.countdown-fs.urgent .cfs-unit { animation-duration: .5s; }
.countdown-fs.urgent .cfs-num { color: #ff9c6e; }
@keyframes cfsLastPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* 最后一分钟彩纸 */
.lm-sparkles,
.cfs-sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.lm-sparkles span,
.cfs-sparkles span {
  position: absolute;
  line-height: 1;
  opacity: 0;
  animation: sparkFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 193, 7, .35));
}
.cfs-main,
.cfs-meta,
.cfs-progress { position: relative; z-index: 1; }
@keyframes sparkFloat {
  0% { opacity: 0; transform: translateY(16px) scale(.6) rotate(0deg); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-38px) scale(1.1) rotate(18deg); }
}

/* 下班烟花 */
.fireworks-layer {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  overflow: hidden;
}
.fireworks-layer.fw-in-fs { position: absolute; z-index: 10; }
.fireworks-layer canvas { display: block; width: 100%; height: 100%; }
.fw-text {
  position: absolute;
  left: 50%;
  top: 36%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  color: #ffd666;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 24px rgba(255, 193, 7, .65), 0 4px 20px rgba(0, 0, 0, .35);
  animation: fwText 4.2s ease-out forwards;
}
.fw-text small {
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  opacity: .9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
@keyframes fwText {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  30% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -65%) scale(1); }
}

@media (max-width: 640px) {
  .countdown-fs { gap: 14px; padding-left: 12px; padding-right: 12px; }
  .cfs-digit { width: 12vw; height: 18vw; border-radius: 7px; }
  .cfs-num { font-size: 11.5vw; }
  .cfs-colon { font-size: 9vw; }
  .cfs-clock { gap: 1vw; }
  .cfs-head {
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 14px; right: 14px;
  }
  .cfs-label { font-size: 18px; letter-spacing: 1px; }
  .cfs-date { font-size: 11px; }
  .cfs-close { padding: 6px 10px; font-size: 12px; }
  .cfs-close kbd { display: none; }
  .cfs-meta { gap: 10px; font-size: 12px; }
  .cfs-progress { font-size: 11px; }
  .cfs-foot {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    left: 12px; right: 12px;
    font-size: 10px;
  }
}

@media (max-height: 520px) {
  .countdown-fs { gap: 10px; }
  .cfs-digit { width: 22vh; height: 30vh; }
  .cfs-num { font-size: 23vh; }
  .cfs-colon { font-size: 16vh; }
  .cfs-head .cfs-date { display: none; }
  .cfs-meta { font-size: 12px; }
}

@media (max-width: 640px) {
  .countdown-fs.last-minute .cfs-digit { width: 30vw; height: 42vw; }
  .countdown-fs.last-minute .cfs-num { font-size: 34vw; }
  .countdown-fs.last-minute .cfs-unit { font-size: 10vw; }
}

@media (max-height: 520px) {
  .countdown-fs.last-minute .cfs-digit { width: 32vh; height: 42vh; }
  .countdown-fs.last-minute .cfs-num { font-size: 34vh; }
  .countdown-fs.last-minute .cfs-unit { font-size: 12vh; }
}

/* ─────────── 待办事项 ─────────── */
.todo-add { display: flex; gap: 8px; margin-bottom: 12px; }
.todo-add input {
  flex: 1;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 11px;
  height: 32px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
}
.todo-add input:hover { border-color: var(--primary-hover); }
.todo-add input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }

.todo-list { display: flex; flex-direction: column; max-height: 250px; overflow-y: auto; }
.todo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--split);
}
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: var(--fill); }

/* 复选框（antd Checkbox 风格） */
.todo-check {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-container);
  color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all .2s;
}
.todo-check:hover { border-color: var(--primary); }
.todo-item.done .todo-check { background: var(--primary); color: #fff; border-color: var(--primary); }
.todo-content { flex: 1; font-size: 14px; line-height: 1.57; word-break: break-word; }
.todo-item.done .todo-content { text-decoration: line-through; color: var(--text-4); }
.todo-del {
  border: none; background: none;
  color: var(--text-4); font-size: 12px;
  cursor: pointer; opacity: 0; flex-shrink: 0;
  padding: 4px;
  transition: color .2s;
}
.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { color: var(--error); }
.todo-count { font-size: 12px; color: var(--text-3); }
.todo-empty { text-align: center; color: var(--text-4); font-size: 13px; padding: 12px 0; }

/* ─────────── 公告（手风琴 Collapse 风格） ─────────── */
.notice-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.notice-item {
  border-radius: var(--radius-sm);
  background: var(--bg-spotless);
  border: 1px solid var(--split);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.notice-item:hover { border-color: var(--border); }
.notice-item.open { background: var(--tag-blue-bg); border-color: transparent; }

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.notice-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notice-title b {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-chevron {
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform .24s ease;
}
.notice-item.open .notice-chevron { transform: rotate(180deg); color: var(--primary); }
.notice-time { font-size: 12px; color: var(--text-4); white-space: nowrap; flex-shrink: 0; }

/* 展开/收起动画 */
.notice-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .26s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
  opacity: 0;
}
.notice-item.open .notice-body { grid-template-rows: 1fr; opacity: 1; }
.notice-content {
  overflow: hidden;
  min-height: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  word-break: break-word;
  white-space: pre-wrap;
  padding: 0 12px;
  transition: padding .26s ease;
}
.notice-item.open .notice-content { padding: 0 12px 10px; }

/* ─────────── 聊天 ─────────── */
.chat-card {
  display: flex; flex-direction: column;
  height: calc(100vh - 136px);
  height: calc(100dvh - 136px);
  min-height: 480px;
  position: sticky;
  top: 72px;
}
@media (max-width: 980px) {
  .chat-card {
    position: static;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    min-height: 440px;
  }
}

/* 头像（antd Avatar 彩色系） */
.online-avatars { display: flex; }
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 500;
  border: 2px solid var(--bg-container);
  margin-left: -6px;
  cursor: default;
  user-select: none;
}
.avatar:first-child { margin-left: 0; }

/* 聊天背景：四愿（暴富发财 / 事业有成 / 爱情美满 / 人生小满）
   整张聊天卡片统一铺底，消息区不再单独做圆角卡片，避免上下分层 */
.chat-card {
  background:
    radial-gradient(58% 46% at 0% 0%, rgba(255, 197, 61, .16), transparent 72%),
    radial-gradient(58% 46% at 100% 0%, rgba(64, 150, 255, .13), transparent 72%),
    radial-gradient(58% 46% at 0% 100%, rgba(255, 122, 162, .12), transparent 72%),
    radial-gradient(58% 46% at 100% 100%, rgba(82, 196, 26, .11), transparent 72%),
    radial-gradient(rgba(24, 65, 120, .05) .8px, transparent .8px) 0 0 / 15px 15px,
    linear-gradient(180deg, #fcfdff 0%, #f9fbff 100%);
}
html[data-theme='dark'] .chat-card {
  background:
    radial-gradient(58% 46% at 0% 0%, rgba(255, 197, 61, .10), transparent 72%),
    radial-gradient(58% 46% at 100% 0%, rgba(64, 150, 255, .09), transparent 72%),
    radial-gradient(58% 46% at 0% 100%, rgba(255, 122, 162, .085), transparent 72%),
    radial-gradient(58% 46% at 100% 100%, rgba(82, 196, 26, .085), transparent 72%),
    radial-gradient(rgba(255, 255, 255, .04) .8px, transparent .8px) 0 0 / 15px 15px,
    linear-gradient(180deg, #171a1e 0%, #14171a 100%);
}
.chat-card .card-head {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.chat-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.chat-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.chat-wish {
  --wish-c: #9a6d12;
  --wish-bg: rgba(255, 197, 61, .16);
  --wish-line: rgba(194, 145, 18, .26);
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .14em;
  white-space: nowrap;
  color: var(--wish-c);
  opacity: .68;
  user-select: none;
}
.chat-wish--wealth { top: 10px; left: 10px; }
.chat-wish--career {
  --wish-c: #1f5fa8;
  --wish-bg: rgba(64, 150, 255, .13);
  --wish-line: rgba(22, 119, 255, .24);
  top: 10px; right: 10px;
  flex-direction: row-reverse;
}
.chat-wish--love {
  --wish-c: #b34767;
  --wish-bg: rgba(255, 105, 145, .12);
  --wish-line: rgba(214, 88, 124, .24);
  bottom: 10px; left: 10px;
}
.chat-wish--life {
  --wish-c: #327c53;
  --wish-bg: rgba(82, 196, 26, .12);
  --wish-line: rgba(56, 158, 13, .22);
  bottom: 10px; right: 10px;
  flex-direction: row-reverse;
}
html[data-theme='dark'] .chat-wish { opacity: .66; }
html[data-theme='dark'] .chat-wish--wealth { --wish-c: #dcb254; --wish-bg: rgba(255, 197, 61, .13); --wish-line: rgba(255, 197, 61, .26); }
html[data-theme='dark'] .chat-wish--career { --wish-c: #7fb7f5; --wish-bg: rgba(64, 150, 255, .14); --wish-line: rgba(64, 150, 255, .28); }
html[data-theme='dark'] .chat-wish--love { --wish-c: #f08fae; --wish-bg: rgba(255, 105, 145, .13); --wish-line: rgba(255, 105, 145, .26); }
html[data-theme='dark'] .chat-wish--life { --wish-c: #84d3a4; --wish-bg: rgba(82, 196, 26, .12); --wish-line: rgba(82, 196, 26, .24); }

.chat-wish-icon {
  width: 25px; height: 25px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--wish-bg);
  border: 1px solid var(--wish-line);
}
.chat-wish-icon svg { width: 14px; height: 14px; display: block; }

.messages {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 44px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg-empty {
  text-align: center;
  color: var(--text-4);
  font-size: 13px;
  letter-spacing: .04em;
  margin: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
html[data-theme='dark'] .msg-empty { background: rgba(20, 20, 20, .45); }

.msg { display: flex; gap: 8px; max-width: 100%; }
.msg .avatar { width: 34px; height: 34px; font-size: 13px; flex-shrink: 0; margin: 0; border: none; }
.msg.own { flex-direction: row-reverse; }

.msg-body { display: flex; flex-direction: column; gap: 4px; max-width: 72%; }
.msg.own .msg-body { align-items: flex-end; }

.msg-meta { font-size: 12px; color: var(--text-4); padding: 0 4px; display: flex; align-items: center; gap: 6px; }
.msg-quote-btn {
  border: none;
  background: none;
  padding: 0 2px;
  color: var(--text-4);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: .5;
  transition: opacity .15s, color .15s;
}
.msg-quote-btn:hover,
.msg-quote-btn:focus-visible { opacity: 1; color: var(--primary); }

/* 消息内引用块 */
.msg-quote {
  display: flex;
  align-items: baseline;
  gap: 6px;
  max-width: min(100%, 340px);
  padding: 5px 9px;
  border: none;
  border-left: 2px solid var(--primary);
  border-radius: 4px;
  background: var(--fill);
  color: var(--text-3);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background .15s;
}
.msg-quote:hover { background: var(--fill-2); }
.msg-quote-name { flex-shrink: 0; color: var(--primary); font-weight: 500; }
.msg-quote-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.is-flash .msg-bubble,
.msg.is-flash .msg-img-wrap img,
.msg.is-flash .msg-rich { box-shadow: 0 0 0 3px rgba(22, 119, 255, .28); }

/* 气泡（企业 IM 风格 + antd Token 配色） */
.msg-bubble {
  background: var(--bubble-other);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.57;
  word-break: break-word;
  white-space: pre-wrap;
}
.msg.own .msg-bubble { background: var(--bubble-own); color: var(--bubble-own-fg); }
.msg-bubble .emoji-big { font-size: 40px; line-height: 1.25; }

/* 图文消息：多图 + 文字合并为一条 */
.msg-rich {
  max-width: min(280px, 100%);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bubble-other);
}
.msg.own .msg-rich { background: var(--bubble-own); color: var(--bubble-own-fg); }
.msg-rich-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.msg-rich-grid.single { display: block; }
.msg-rich-cell { position: relative; overflow: hidden; background: var(--bg-spotless); }
.msg-rich-cell img { display: block; width: 100%; height: 110px; object-fit: cover; cursor: zoom-in; }
.msg-rich-grid.single .msg-rich-cell img { height: auto; max-height: 240px; object-fit: contain; }
.msg-rich-cell:hover .fav-btn { opacity: 1; }
.msg-rich-text {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.57;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-img-wrap { position: relative; display: inline-block; max-width: min(260px, 100%); }
.msg-img-wrap img {
  display: block; max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid var(--split);
  cursor: zoom-in;
  background: var(--bg-spotless);
}
.fav-btn {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, .45);
  color: #fff; font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.msg-img-wrap:hover .fav-btn { opacity: 1; }
.fav-btn:hover { background: rgba(0, 0, 0, .7); }

.sys-msg { text-align: center; font-size: 12px; color: var(--text-4); padding: 2px 0; }

.new-msg-pill {
  position: absolute;
  bottom: calc(96px + var(--composer-extra, 0px));
  left: 50%; transform: translateX(-50%);
  background: var(--bg-container);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 500;
  padding: 4px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  z-index: 5;
}
.new-msg-pill:hover { border-color: var(--primary-hover); }

/* ─────────── 表情面板（antd Popover 风格） ─────────── */
.emoji-panel {
  border: none;
  background: var(--bg-container);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  animation: pop .16s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* 分类 tab（antd Tabs 下划线风格） */
.emoji-tabs { display: flex; border-bottom: 1px solid var(--split); overflow-x: auto; padding: 0 4px; }
.emoji-hint { padding: 6px 12px 0; font-size: 11.5px; line-height: 1.5; color: var(--text-4); }
.emoji-tab {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
  transition: color .2s;
}
.emoji-tab:hover { color: var(--primary-hover); }
.emoji-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 2px;
  max-height: 210px;
  overflow-y: auto;
  padding: 8px;
}
.emoji-item {
  font-size: 22px;
  background: none; border: none;
  padding: 5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .16s;
  font-family: inherit;
}
.emoji-item:hover { background: var(--fill-2); }

.fav-cell { position: relative; }
.fav-cell img { width: 100%; height: 38px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.fav-cell .fav-del {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--error); color: #fff;
  font-size: 10px; line-height: 15px;
  border: none; cursor: pointer;
  opacity: 0;
  padding: 0;
}
.fav-cell:hover .fav-del { opacity: 1; }
.emoji-add {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
  grid-column: span 2;
  background: none;
  transition: all .2s;
  font-family: inherit;
}
.emoji-add:hover { border-color: var(--primary); color: var(--primary); }
.emoji-empty { grid-column: 1 / -1; text-align: center; color: var(--text-4); font-size: 12px; padding: 18px 0; }

/* 引用条（输入框上方） */
.quote-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 6px 8px 6px 10px;
  border-left: 3px solid var(--primary);
  border-radius: 5px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.45;
}
.quote-bar-icon { flex-shrink: 0; color: var(--primary); font-size: 13px; }
.quote-bar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-bar-close {
  flex-shrink: 0;
  border: none;
  background: none;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--text-4);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.quote-bar-close:hover { color: var(--text); background: var(--fill-2); }

/* 待发送图片（粘贴 / 选择后先预览，可继续输入文字再发送） */
.attach-bar { display: flex; margin-bottom: 8px; }
.attach-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.attach-item {
  position: relative;
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--split);
  background: var(--bg-spotless);
  box-shadow: var(--shadow-card);
}
.attach-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.attach-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.attach-del:hover { background: var(--error); }

/* ─────────── 输入区（antd Input） ─────────── */
.composer { display: flex; gap: 8px; align-items: flex-end; }
#msgInput {
  flex: 1;
  resize: none;
  background: var(--bg-container);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.57;
  max-height: 110px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#msgInput:hover { border-color: var(--primary-hover); }
#msgInput:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.btn-send { border-radius: var(--radius-sm); }
.upload-tip { font-size: 12px; color: var(--primary); padding: 6px 2px 0; }

/* ══════════════════════════════════════════
   未登录访客态：只显示登录/注册弹窗，隐藏主界面
   ══════════════════════════════════════════ */
/* 粒子画布：位于光晕/网格之上、登录弹窗（z-index:200）之下 */
.guest-fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
body.is-guest .guest-fx { display: block; }

/* 简笔画涂鸦：呼应平台功能，散布四角轻轻漂浮，避开中央登录卡片 */
.guest-doodles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}
body.is-guest .guest-doodles { display: block; }
.gd {
  position: absolute;
  display: block;
  opacity: .5;
  animation: gdFloat 9s ease-in-out infinite;
}
.gd svg { display: block; width: 100%; height: auto; }
html[data-theme='light'] .gd { opacity: .4; }
@keyframes gdFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-9px) rotate(calc(var(--rot, 0deg) + 2.5deg)); }
}
@media (prefers-reduced-motion: reduce) { .gd { animation: none; } }
/* 位置与配色：品牌三色 + 一点暖黄点缀 */
.gd-clock  { left: 7%;    top: 15%;    width: 92px;  --rot: -10deg; color: #4e96ff; animation-delay: 0s;    animation-duration: 9s; }
.gd-cal    { left: 12%;   bottom: 17%; width: 84px;  --rot: 7deg;   color: #9a6cf0; animation-delay: -2.4s; animation-duration: 10.5s; }
.gd-coffee { right: 9%;   top: 13%;    width: 80px;  --rot: 8deg;   color: #40dcd5; animation-delay: -1.2s; animation-duration: 8s; }
.gd-plane  { right: 7%;   bottom: 21%; width: 104px; --rot: -13deg; color: #4e96ff; animation-delay: -3.6s; animation-duration: 11s; }
.gd-bulb   { left: 27%;   top: 5%;     width: 62px;  --rot: 6deg;   color: #40dcd5; animation-delay: -5s;   animation-duration: 9.5s; }
.gd-spark  { right: 27%;  top: 6%;     width: 46px;  --rot: 12deg;  color: #faad14; animation-delay: -6.4s; animation-duration: 7.5s; }
.gd-bubble { left: 24%;   bottom: 6%;  width: 72px;  --rot: -5deg;  color: #9a6cf0; animation-delay: -4.2s; animation-duration: 10s; }
.gd-rocket { right: 24%;  bottom: 5%;  width: 70px;  --rot: 10deg;  color: #40dcd5; animation-delay: -7.6s; animation-duration: 8.8s; }
.gd-warm { color: #faad14; }
html[data-theme='light'] .gd-warm { color: #d4a017; }
@media (max-width: 760px) { body.is-guest .guest-doodles { display: none; } }   /* 小屏太挤，留粒子即可 */

body.is-guest .topbar,
body.is-guest main.page,
body.is-guest .feedback-widget { display: none; }
/* 空白背景上登录框垂直居中更好看 */
body.is-guest .ant-modal-wrap { align-items: center; padding-top: 24px; }

/* 访客登录页背景：品牌色光晕 + 点阵网格，深浅色自适应 */
body.is-guest {
  /* 卡片正后方一团中心辉光 + 顶部青光，避免中部空洞 */
  background:
    radial-gradient(80% 55% at 50% 110%, rgba(22, 104, 220, .24), transparent 60%),
    radial-gradient(70% 55% at 50% -12%, rgba(19, 194, 194, .12), transparent 65%),
    var(--bg-layout);
}
body.is-guest::before {
  /* 三团缓慢漂移的品牌色光晕（蓝 / 紫 / 青） */
  content: '';
  position: fixed;
  inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(640px 480px at 16% 26%, rgba(22, 104, 220, .32), transparent 70%),
    radial-gradient(600px 460px at 84% 74%, rgba(114, 46, 201, .24), transparent 70%),
    radial-gradient(520px 400px at 68% 8%, rgba(19, 194, 194, .18), transparent 70%);
  animation: guestOrbDrift 28s ease-in-out infinite alternate;
}
body.is-guest::after {
  /* 点阵网格，中心渐隐不干扰登录框 */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 46%, transparent 22%, #000 85%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 46%, transparent 22%, #000 85%);
}
html[data-theme='light'] body.is-guest {
  background:
    radial-gradient(80% 55% at 50% 110%, rgba(22, 119, 255, .16), transparent 60%),
    radial-gradient(70% 55% at 50% -12%, rgba(19, 194, 194, .10), transparent 65%),
    var(--bg-layout);
}
html[data-theme='light'] body.is-guest::before {
  background:
    radial-gradient(640px 480px at 16% 26%, rgba(22, 119, 255, .20), transparent 70%),
    radial-gradient(600px 460px at 84% 74%, rgba(114, 46, 201, .14), transparent 70%),
    radial-gradient(520px 400px at 68% 8%, rgba(19, 194, 194, .14), transparent 70%);
}
html[data-theme='light'] body.is-guest::after {
  background-image: radial-gradient(rgba(0, 0, 0, .10) 1px, transparent 1.2px);
}
@keyframes guestOrbDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  body.is-guest::before { animation: none; }
}

/* 访客态去掉弹窗黑色遮罩（背景就是干净的），改用悬浮投影 + 高光描边
   注意挂在 .ant-modal-content 上：.ant-modal 是透明外盒（自带 24px 底 padding），
   投影描边挂外盒会在卡片下方多出一条实心色块 */
body.is-guest .ant-modal-mask { background: transparent; animation: none; }
body.is-guest .ant-modal-content {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 4px 16px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08);
}
html[data-theme='light'] body.is-guest .ant-modal-content {
  box-shadow: 0 24px 64px rgba(22, 60, 130, .18), 0 4px 16px rgba(0, 0, 0, .08);
  border: 1px solid rgba(255, 255, 255, .85);
}
/* 毛玻璃卡片：微微透出背后的光晕与粒子 */
@supports (backdrop-filter: blur(1px)) {
  body.is-guest .ant-modal-content {
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
  }
  html[data-theme='dark'] body.is-guest .ant-modal-content { background: rgba(20, 20, 22, .66); }
  html[data-theme='light'] body.is-guest .ant-modal-content { background: rgba(255, 255, 255, .70); }
}

/* ══════════════════════════════════════════
   antd Modal（遮罩 / 内容 / 头部 / 关闭 / 页脚）
   ══════════════════════════════════════════ */
.ant-modal-root { position: fixed; inset: 0; z-index: 200; }
.ant-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .45);
  animation: maskIn .2s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.ant-modal-wrap {
  position: fixed; inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 80px 16px 40px;
  -webkit-overflow-scrolling: touch;
}
@media (max-height: 700px) { .ant-modal-wrap { padding-top: 24px; } }

.ant-modal {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5714;
  pointer-events: none;
  width: 520px;
  max-width: calc(100vw - 32px);
  animation: antZoomIn .25s cubic-bezier(.08, .82, .17, 1);
}
@keyframes antZoomIn {
  from { opacity: 0; transform: scale(.2); }
  to { opacity: 1; transform: scale(1); }
}

.ant-modal-content {
  position: relative;
  background: var(--bg-container);
  background-clip: padding-box;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  padding: 0;
}

.ant-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 10;
  padding: 0;
  color: var(--text-3);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  width: 22px; height: 22px;
  border: 0;
  outline: 0;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.ant-modal-close:hover { color: var(--text); background: var(--fill); }
.ant-modal-close-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 14px;
}

.ant-modal-header {
  padding: 16px 24px;
  color: var(--text);
  background: var(--bg-container);
  border-bottom: 1px solid var(--split);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 0;
}
.ant-modal-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
  padding-right: 24px;
}
.ant-modal-body { padding: 24px; font-size: 14px; line-height: 1.5714; word-wrap: break-word; }
.ant-modal-footer {
  padding: 10px 16px;
  text-align: right;
  background: transparent;
  border-top: 1px solid var(--split);
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.modal-desc { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

/* ─────────── antd Modal.confirm ─────────── */
.ant-modal-confirm-wrap { align-items: center; padding: 24px 16px; }
.ant-modal-confirm {
  width: 416px;
  max-width: calc(100vw - 32px);
  padding-bottom: 0;
}
.ant-modal-confirm .ant-modal-body { padding: 24px 24px 20px; }
.ant-modal-confirm-body { display: flex; align-items: flex-start; gap: 12px; }
.ant-modal-confirm-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font);
}
.ant-modal-confirm-icon.is-confirm { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.ant-modal-confirm-icon.is-warning { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }
.ant-modal-confirm-icon.is-error { background: var(--tag-red-bg); color: var(--error); }
.ant-modal-confirm-icon.is-info { background: var(--tag-cyan-bg); color: var(--tag-cyan-fg); }

.ant-modal-confirm-text { flex: 1; min-width: 0; }
.ant-modal-confirm-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.ant-modal-confirm-content {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.ant-modal-confirm-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.ant-modal-confirm-btns .ant-btn { min-width: 62px; }
/* 危险操作的确认按钮：antd danger 主色 */
.ant-modal-confirm .ant-btn-primary.ant-btn-dangerous {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
  box-shadow: 0 2px 0 rgba(255, 77, 79, .1);
}
.ant-modal-confirm .ant-btn-primary.ant-btn-dangerous:hover {
  background: var(--error-hover);
  border-color: var(--error-hover);
  color: #fff;
}

/* 关闭动画 */
.ant-modal-confirm-root.is-closing .ant-modal {
  animation: antZoomOut .16s cubic-bezier(.645, .045, .355, 1) forwards;
}
.ant-modal-confirm-root.is-closing .ant-modal-mask { animation: maskOut .16s ease forwards; }
@keyframes antZoomOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.8); }
}
@keyframes maskOut { from { opacity: 1; } to { opacity: 0; } }

/* 引导弹窗（无 header，顶部进度条） */
.ant-modal-onboard { width: 480px; }
.ant-modal-onboard .ant-modal-content { overflow: hidden; }
.ant-modal-onboard .ant-modal-body { padding: 24px 24px 8px; }
.ant-modal-onboard .ant-modal-footer { justify-content: space-between; padding: 14px 24px; }
.ob-footer .ob-actions { margin-left: auto; display: flex; gap: 8px; }

/* 日期记录弹窗 */
.ant-modal-day { width: 480px; }

/* antd Input */
.ant-input {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  padding: 4px 11px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5714;
  background-color: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .2s;
  font-family: inherit;
  outline: none;
}
.ant-input:hover { border-color: var(--primary-hover); }
.ant-input:focus,
.ant-input:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
.ant-input::placeholder { color: var(--text-4); }

/* antd Form.Item */
.ant-form-item { margin-bottom: 16px; }
.ant-form-item-label {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.nick-row { display: flex; gap: 8px; margin-bottom: 20px; }
.nick-row .ant-input,
.nick-row input { flex: 1; min-width: 0; }
.me-extra { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

/* 我的设置 · 年假初始值 */
.me-annual {
  margin: 4px 0 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--split);
}
.me-annual .me-annual-title { margin-bottom: 8px; }
.me-annual .nick-row { margin-bottom: 0; }
.me-annual .settings-tip { margin-top: 8px; }

/* 登录 / 注册 / 重置密码 */
.ant-modal-auth { width: 460px; }
.auth-tabs { display: flex; gap: 8px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.auth-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  margin-bottom: -1px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
}
.auth-tab:hover { color: var(--primary); }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.auth-error { color: var(--error); font-size: 12px; margin: -4px 0 12px; }
.auth-links { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.link-btn:hover { color: var(--primary-hover); }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.auth-check input { accent-color: var(--primary); }
.auth-check code {
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-layout);
  color: var(--text);
}
.auth-tip { margin: 6px 0 0; }

/* 管理后台：账号与邀请 */
.user-account {
  font-size: 11px;
  line-height: 18px;
  padding: 0 7px;
  border-radius: 9px;
  white-space: nowrap;
}
.user-account.bound { color: var(--primary); background: rgba(22, 119, 255, .1); }
.user-account.unbound { color: #d46b08; background: rgba(250, 173, 20, .14); }
.user-note {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 管理后台：账号绑定 / 备注弹窗 */
.ant-modal-account { width: 520px; }
.ant-modal-account .ant-modal-body { max-height: 66vh; overflow-y: auto; }
.ant-modal-account .sub-title { margin: 20px 0 8px; }
.acct-note { height: auto; min-height: 58px; padding: 8px 11px; resize: vertical; }
.acct-row { display: flex; align-items: center; gap: 8px; }
.acct-row > .field-select,
.acct-row > .ant-input { flex: 1; min-width: 0; }
#acctPassBox { margin-top: 12px; }
#acctUnbound .auth-check { margin: 8px 0 12px; }
.invite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.invite-row:last-child { border-bottom: 0; }
.invite-code { font-family: var(--font-mono); font-size: 13px; letter-spacing: .5px; }
.invite-status { font-size: 11px; line-height: 18px; padding: 0 8px; border-radius: 9px; }
.invite-status.unused { color: var(--success); background: rgba(82, 196, 26, .12); }
.invite-status.used { color: var(--text-3); background: var(--bg-layout); }
.invite-status.expired { color: var(--error); background: rgba(255, 77, 79, .1); }
.invite-ops { margin-left: auto; display: flex; gap: 6px; }
.code-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}
.code-result-title { width: 100%; font-size: 12px; color: var(--text-2); }
.code-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-container);
  color: var(--text);
  cursor: pointer;
}
.code-chip:hover { border-color: var(--primary); color: var(--primary); }
.code-input { font-family: var(--font-mono); letter-spacing: 1px; }
.field-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }

/* 时长录入（小时 + 快捷按钮） */
.unit-hint { font-size: 12px; color: var(--text-3); margin-left: 6px; font-weight: 400; }
.day-subtype-select { width: 100%; height: 32px; }
.hours-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hours-input { width: 110px; flex-shrink: 0; font-family: var(--font-mono); }
.hours-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.hour-chip {
  border: 1px solid var(--border);
  background: var(--bg-container);
  color: var(--text-2);
  font-size: 12px;
  line-height: 22px;
  height: 24px;
  padding: 0 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.hour-chip:hover { border-color: var(--primary-hover); color: var(--primary-hover); }
.hour-chip.active { border-color: var(--primary); color: var(--primary); background: var(--tag-blue-bg); }

/* ─────────── 灯箱（预览 / 缩放 / 旋转 / 拖拽） ─────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .82);
  z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: 18px;
}
.lightbox-stage {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.lightbox-stage.dragging { cursor: grabbing; }
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
}
.lightbox-toolbar {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .4);
}
.lb-group { display: flex; align-items: center; gap: 6px; }
.lb-ctrl {
  width: 32px; height: 32px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 17px; line-height: 1;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.lb-ctrl:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.lb-ctrl:active { transform: scale(.96); }
.lb-zoom {
  min-width: 52px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #fff;
  opacity: .92;
}
.lightbox-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lightbox-bar .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.lightbox-bar .btn:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .2); }
.lightbox-hint { font-size: 11.5px; color: rgba(255, 255, 255, .5); letter-spacing: .3px; }

/* ─────────── Toast（antd Message 风格） ─────────── */
.toast-box {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  z-index: 500;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--bg-container);
  color: var(--text);
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 8px;
  animation: msgIn .2s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.toast.err::before { background: var(--error); }
.toast.ok::before { background: var(--success); }

/* ══════════════════════════════════════════
   速查层（搜索引擎风格 · 恒定浅色，不受主题影响）
   ══════════════════════════════════════════ */
.disguise {
  position: fixed; inset: 0;
  background: #fff;
  color: #444;
  z-index: 9999;
  display: flex; flex-direction: column;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.dg-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 36px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.dg-nav { display: flex; gap: 26px; }
.dg-nav-item { font-size: 14px; color: #666; cursor: default; padding: 4px 2px; }
.dg-nav-item.active { color: #0067b8; font-weight: 600; border-bottom: 2px solid #0067b8; }
.dg-user {
  width: 30px; height: 30px; border-radius: 50%;
  background: #eef3f8; display: flex; align-items: center; justify-content: center;
}
.dg-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 9vh; overflow-y: auto; }
.dg-logo {
  font-size: 46px; font-weight: 800; letter-spacing: -1px;
  font-family: "Segoe UI", Arial, sans-serif;
  margin-bottom: 26px;
  color: #0067b8;
}
.dg-logo::first-letter { color: #008373; }
.dg-search {
  display: flex; align-items: center; gap: 10px;
  width: min(600px, 88vw);
  border: 1px solid #d0d7de;
  border-radius: 24px;
  padding: 11px 18px;
  transition: box-shadow .15s, border-color .15s;
  background: #fff;
}
.dg-search:focus-within { border-color: #0067b8; box-shadow: 0 0 0 3px rgba(0, 103, 184, .12); }
.dg-search input {
  flex: 1; border: none; outline: none;
  font-size: 15px; color: #333; background: none;
  font-family: inherit;
}
.dg-search-btn {
  border: none; background: none; color: #0067b8;
  font-size: 14px; cursor: pointer; font-weight: 600;
  font-family: inherit;
}
.dg-hots { width: min(600px, 88vw); margin-top: 38px; }
.dg-hots-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 12px; }
.dg-hots ul { list-style: none; }
.dg-hots li {
  font-size: 13.5px; color: #555;
  padding: 9px 4px;
  border-bottom: 1px solid #f2f2f2;
  display: flex; justify-content: space-between;
  cursor: default;
}
.dg-hots li .rank { color: #0067b8; font-weight: 700; margin-right: 12px; }
.dg-hots li .hot-val { color: #bbb; font-size: 12px; }
.dg-foot { padding: 14px 36px; font-size: 12px; color: #999; border-top: 1px solid #eee; }

/* ══════════════════════════════════════════
   管理后台
   ══════════════════════════════════════════ */
.admin-wrap { max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; }
.admin-head h1 { font-size: 20px; font-weight: 600; }
.admin-head .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.admin-login { max-width: 380px; margin: 10vh auto 0; }
.admin-login h1 { font-size: 20px; margin-bottom: 6px; font-weight: 600; }
.admin-login .hint { font-size: 12px; color: var(--text-3); margin-bottom: 18px; }
.admin-login input {
  width: 100%;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  height: 32px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.admin-login input:hover { border-color: var(--primary-hover); }
.admin-login input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }

/* Tabs（antd Tabs） */
.admin-tabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--split); overflow-x: auto; }
.admin-tab {
  padding: 10px 2px; font-size: 14px; color: var(--text-2);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; user-select: none;
  white-space: nowrap;
  transition: color .2s;
}
.admin-tab:hover { color: var(--primary-hover); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.field { min-width: 0; }
.field label { display: block; font-size: 14px; color: var(--text); margin-bottom: 8px; }
.field input {
  width: 100%;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 11px;
  height: 32px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: var(--font-mono);
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: var(--primary-hover); }
.field input:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.field textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 11px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  line-height: 1.57;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea:hover { border-color: var(--primary-hover); }
.field textarea:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.field select.field-select {
  width: 100%;
  height: 32px;
  padding: 0 28px 0 11px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 13px, calc(100% - 10px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select.field-select:hover { border-color: var(--primary-hover); }
.field select.field-select:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.settings-tip { font-size: 12px; color: var(--text-3); margin-top: 12px; }

.notice-form .field { margin-bottom: 12px; }
.notice-form .btn + .btn { margin-left: 8px; }
.notice-edit-hint { margin-left: 10px; font-size: 12px; color: var(--text-3); }

/* 公告管理列表 */
.notice-admin-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 12px;
  background: var(--fill);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.notice-admin-item .n-main { min-width: 0; flex: 1; }
.notice-admin-item b { font-size: 14px; font-weight: 600; }
.notice-admin-item .n-content { font-size: 13px; color: var(--text-2); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.notice-admin-item .n-time { font-size: 12px; color: var(--text-4); margin-top: 4px; }
.notice-admin-item .n-ops { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }
.notice-admin-item .n-ops .btn { height: 26px; padding: 0 10px; font-size: 12px; }

/* 后台：意见反馈（待办） */
.feedback-admin-item {
  padding: 12px;
  background: var(--fill);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--tag-gold-fg);
  margin-bottom: 8px;
}
.feedback-admin-item.done { border-left-color: var(--tag-green-fg); }
.fb-admin-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-admin-head b { font-size: 13.5px; color: var(--text); }
.fb-admin-meta { font-size: 11.5px; color: var(--text-4); }
.fb-admin-content { font-size: 13px; color: var(--text-2); margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.fb-admin-result { font-size: 12.5px; color: var(--tag-green-fg); margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.fb-admin-done-time { font-size: 11.5px; color: var(--text-4); margin-top: 4px; }
.fb-admin-form { margin-top: 10px; }
.fb-admin-input { width: 100%; min-height: 56px; resize: vertical; margin-bottom: 8px; font-size: 13px; }
.fb-admin-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* 统计卡（antd Statistic） */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-box { background: var(--bg-container); border: 1px solid var(--split); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow-card); }
.stat-box b { display: block; font-size: 24px; font-family: var(--font-mono); color: var(--text); font-weight: 600; }
.stat-box span { font-size: 13px; color: var(--text-3); }

.records-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.records-bar .spacer { flex: 1; }

/* ─────────── 聊天记录 · 对话式展示 ─────────── */
.dlg-wrap {
  max-height: 62vh;
  overflow-y: auto;
  padding: 14px 10px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--split);
  border-radius: var(--radius);
  background: var(--bg-spotless);
}
.dlg-group { display: flex; gap: 9px; }
.dlg-group .avatar { width: 34px; height: 34px; font-size: 13px; flex-shrink: 0; border: none; }
.dlg-main { display: flex; flex-direction: column; gap: 6px; max-width: 72%; min-width: 0; }
.dlg-meta { display: flex; gap: 8px; align-items: baseline; padding: 0 4px; }
.dlg-meta span:first-child { font-size: 13px; font-weight: 500; color: var(--text-2); }
.dlg-meta span:last-child { font-size: 12px; color: var(--text-4); }
.dlg-msg { position: relative; display: flex; align-items: center; gap: 8px; }
.dlg-bubble {
  background: var(--bg-container);
  border: 1px solid var(--split);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.57;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: var(--shadow-card);
}
.dlg-quote {
  display: flex;
  align-items: baseline;
  gap: 5px;
  max-width: 260px;
  margin-bottom: 6px;
  padding: 3px 7px;
  border-left: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--fill);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}
.dlg-quote-name { flex-shrink: 0; color: var(--primary); }
.dlg-quote-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-bubble img { display: block; height: 64px; border-radius: var(--radius-sm); cursor: zoom-in; border: 1px solid var(--split); }
.dlg-album { max-width: 280px; }
.dlg-album-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.dlg-album-grid img { width: 76px; height: 64px; object-fit: cover; }
.dlg-album-text { margin-top: 6px; font-size: 14px; line-height: 1.57; white-space: pre-wrap; word-break: break-word; }
.dlg-emoji { font-size: 26px; line-height: 1.25; }
.dlg-msg-time { font-size: 11px; color: var(--text-4); flex-shrink: 0; }
.dlg-del {
  position: absolute; right: -6px; top: -8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-container);
  color: var(--error);
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  transition: all .2s;
  padding: 0;
  line-height: 1;
  box-shadow: var(--shadow-card);
}
.dlg-msg:hover .dlg-del { opacity: 1; }
.dlg-del:hover { background: var(--error); color: #fff; border-color: var(--error); }
@media (hover: none) { .dlg-del { opacity: 1; } }

/* ─────────── 用户管理 ─────────── */
.user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-container);
  border: 1px solid var(--split);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}
.user-row .avatar { width: 36px; height: 36px; font-size: 14px; flex-shrink: 0; border: none; }
.user-info { flex: 1; min-width: 0; }
.user-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.user-name b { font-size: 14px; font-weight: 600; }
.user-uid { font-size: 11px; color: var(--text-4); font-family: var(--font-mono); }
.user-stat { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.user-ops { display: flex; gap: 8px; flex-shrink: 0; }
.online-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-4); flex-shrink: 0;
}
.online-dot.on { background: var(--success); box-shadow: 0 0 4px rgba(82, 196, 26, .8); }
.user-detail-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.user-detail-info { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.user-detail-info b { font-size: 15px; font-weight: 600; }

/* 旧表格样式（保留 token 化，兼容） */
.table-wrap { overflow-x: auto; border: 1px solid var(--split); border-radius: var(--radius-sm); }
table.records { width: 100%; border-collapse: collapse; font-size: 14px; }
.records th {
  text-align: left; padding: 10px 12px;
  color: var(--text-2); font-weight: 500; font-size: 13px;
  background: var(--bg-spotless);
  border-bottom: 1px solid var(--split);
  white-space: nowrap;
}
.records td { padding: 10px 12px; border-bottom: 1px solid var(--split); vertical-align: middle; }
.records tr:last-child td { border-bottom: none; }
.records .c-id { color: var(--text-4); font-family: var(--font-mono); }
.records .c-time { color: var(--text-3); white-space: nowrap; font-family: var(--font-mono); font-size: 12px; }
.records .c-type span {
  font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 4px;
  background: var(--tag-blue-bg); color: var(--tag-blue-fg);
}
.records .c-type span.t-emoji { background: var(--tag-gold-bg); color: var(--tag-gold-fg); }
.records .c-type span.t-image { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.records .c-content { max-width: 420px; word-break: break-all; }
.records .c-content img { height: 44px; width: 44px; object-fit: cover; border-radius: var(--radius-sm); cursor: zoom-in; vertical-align: middle; border: 1px solid var(--split); }
.records .c-content .emoji-cell { font-size: 22px; }
.records .del-btn, .notice-admin-item .del-btn, .user-ops .del-btn, .feedback-admin-item .del-btn {
  border: 1px solid var(--error);
  background: var(--bg-container);
  color: var(--error);
  font-size: 12px; padding: 0 10px; height: 28px; border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  font-family: inherit;
}
.records .del-btn:hover, .notice-admin-item .del-btn:hover, .user-ops .del-btn:hover, .feedback-admin-item .del-btn:hover { background: var(--tag-red-bg); border-color: var(--error-hover); color: var(--error-hover); }
.user-ops .del-btn { height: 32px; font-size: 13px; }
.load-more { text-align: center; margin-top: 14px; }

/* ─────────── 滚动条 ─────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(128, 138, 157, .4); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 138, 157, .65); }
::-webkit-scrollbar-track { background: transparent; }

/* ══════════════════════════════════════════
   手机端适配
   ══════════════════════════════════════════ */
button { touch-action: manipulation; } /* 消除快速点按表情时的双击缩放 */

/* 触屏设备没有 hover：悬浮才出现的按钮常显 */
@media (hover: none) {
  .msg-img-wrap .fav-btn,
  .fav-cell .fav-del,
  .todo-del { opacity: 1; }
}

@media (max-width: 640px) {
  /* 防止 iOS 聚焦输入框时页面自动放大 */
  input, textarea, select { font-size: 16px !important; }

  /* 顶栏：去掉次要信息，防止溢出 */
  .topbar { padding: 0 12px; }
  .brand { flex: 1; min-width: 0; }
  .brand-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub, .online-badge { display: none; }
  .brand-logo { width: 28px; height: 28px; font-size: 14px; }
  .topbar-right { gap: 6px; }
  .me-badge { padding: 3px 8px; max-width: 110px; overflow: hidden; }
  .btn-disguise { padding: 4px 10px; font-size: 13px; }

  /* 布局与卡片 */
  .page { padding: 12px 12px 24px; }
  .layout { gap: 12px; }
  .left-col { gap: 12px; }
  .card { padding: 16px; }
  .card-head { padding-bottom: 10px; margin-bottom: 12px; }
  .card-head h2 { font-size: 15px; }

  /* 倒计时紧凑化 */
  .ring-wrap { width: 200px; height: 200px; margin: 4px auto 12px; }
  .ring-time { font-size: 34px; }
  .count-row { padding: 7px 4px; font-size: 13px; }
  .schedule-line { font-size: 11px; padding: 7px; }
  .progress-text { font-size: 11px; }
  .holiday-mini { font-size: 11px; }
  .payday-line { font-size: 11px; }

  /* Tabs */
  .tab-head { margin-bottom: 12px; }
  .ant-tabs-nav { gap: 18px; }
  .ant-tab { padding: 9px 2px; font-size: 13px; }

  /* 日历 */
  .cal-bar { gap: 6px; margin-bottom: 10px; }
  .cal-title { font-size: 14px; }
  .cal-nav { width: 26px; height: 26px; }
  .cal-today-btn { height: 26px; padding: 0 8px; }
  .cal-cell { min-height: 44px; padding: 3px 1px; }
  .cal-day { font-size: 13px; width: 22px; height: 22px; }
  .cal-sub { font-size: 9.5px; }
  .holiday-banner { padding: 9px 10px; }
  .hd-days { gap: 10px; }
  .hd-metric b { font-size: 16px; }
  .hd-metric small { font-size: 9px; }

  /* 公告手风琴 */
  .notice-list { max-height: 220px; }

  /* 假勤管理 */
  .att-stats { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .att-stat { padding: 8px 3px; }
  .att-stat b { font-size: 17px; }
  .att-stat span { font-size: 10.5px; }
  .comp-warning { font-size: 11.5px; }
  .att-item { gap: 6px; }
  .att-date { width: 74px; font-size: 11.5px; }
  .att-note { font-size: 12.5px; }
  .seg-item { padding: 4px 10px; font-size: 12.5px; }

  /* 待办 / 公告 */
  .todo-list, .notice-list { max-height: 180px; }

  /* 聊天 */
  .msg-body { max-width: 82%; }
  .composer { gap: 6px; }
  .icon-btn { width: 36px; height: 36px; font-size: 17px; }
  .btn-send { padding: 0 14px; }
  .emoji-grid { max-height: 180px; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
  .new-msg-pill { bottom: calc(86px + var(--composer-extra, 0px)); }
  .msg-empty { font-size: 12px; }
  .msg-quote-btn { opacity: .65; }
  .quote-bar { font-size: 11.5px; }
  .chat-wish { font-size: 10px; letter-spacing: .08em; gap: 4px; opacity: .58; }
  .chat-wish-icon { width: 21px; height: 21px; }
  .chat-wish-icon svg { width: 12px; height: 12px; }
  .messages { padding-top: 40px; }

  /* 弹窗与灯箱 */
  .lightbox { padding: 8px; gap: 8px; }
  .lightbox-toolbar { gap: 8px; padding: 6px 8px; }
  .lb-ctrl { width: 30px; height: 30px; font-size: 15px; }
  .lb-zoom { min-width: 44px; font-size: 11.5px; }
  .lightbox-bar .btn { padding: 3px 10px; font-size: 12px; }
  .lightbox-hint { display: none; }

  /* 意见反馈悬浮面板 */
  .feedback-panel { right: 10px; bottom: 78px; width: calc(100vw - 20px); max-height: 52vh; padding: 10px 12px; }
  .feedback-edge { bottom: 16px; }
  .feedback-input { min-height: 56px; }
  .feedback-more-list { max-height: 56vh; }
  .ant-modal-feedback { width: 100%; }

  /* antd Modal 移动端：贴顶、全宽、页脚按钮均分 */
  .ant-modal-wrap { padding: 16px 8px 24px; align-items: flex-start; }
  .ant-modal { width: 100%; max-width: 100%; padding-bottom: 0; }
  /* 确认框保持垂直居中 */
  .ant-modal-confirm-wrap { align-items: center; padding: 16px; }
  .ant-modal-confirm { width: 100%; }
  .ant-modal-confirm .ant-modal-body { padding: 20px 20px 16px; }
  .ant-modal-confirm-btns { margin-top: 20px; }
  .ant-modal-confirm-btns .ant-btn { flex: 1; }
  .ant-modal-header { padding: 14px 16px; }
  .ant-modal-body { padding: 16px; }
  .ant-modal-footer { padding: 10px 12px; }
  .ant-modal-close { top: 12px; right: 10px; }
  .ant-modal-footer .ant-btn { flex: 1; }

  /* 新手引导 / 我的设置 */
  .ob-step { padding: 20px 0 6px; }
  .ob-icon { width: 52px; height: 52px; font-size: 28px; margin-bottom: 12px; }
  .ob-step h3 { font-size: 16px; }
  .ant-modal-onboard .ant-modal-body { padding: 16px 16px 4px; }
  .ant-modal-onboard .ant-modal-footer { padding: 10px 16px 14px; }
  .ob-actions { margin-left: 0; width: 100%; }
  .ob-actions .ant-btn { flex: 1; }
  .me-extra .ant-btn { flex: 1; }

  /* 速查页（搜索引擎） */
  .dg-top { padding: 10px 16px; }
  .dg-nav { gap: 14px; }
  .dg-nav-item { font-size: 13px; }
  .dg-main { padding-top: 10vh; }
  .dg-logo { font-size: 38px; margin-bottom: 20px; }
  .dg-hots { margin-top: 26px; }
  .dg-hots li { font-size: 12.5px; }
  .dg-foot { padding: 12px 16px; }

  /* 管理后台 */
  .admin-wrap { padding: 16px 12px 40px; }
  .admin-head { flex-wrap: wrap; }
  .admin-head h1 { font-size: 17px; }
  .admin-tabs { gap: 16px; }
  .admin-tab { padding: 8px 2px; font-size: 13px; }
  .admin-login { margin: 8vh 12px 0; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .stat-box { padding: 10px; }
  .stat-box b { font-size: 18px; }
  .records th:nth-child(1), .records td.c-id { display: none; } /* 小屏隐藏 ID 列 */
  .records th, .records td { padding: 8px; }
  .records .c-content { max-width: 48vw; }
  .records .c-time { font-size: 11px; }
  .user-row { flex-wrap: wrap; }
  .user-ops { width: 100%; justify-content: flex-end; }
  .dlg-main { max-width: 78%; }
}
