Files
iboard/src/styles/globals.css
T
jif2.zhang 7b52220aad
Docker Build and Push / build-image (push) Successful in 3m52s
fix(键盘): 统一修复 Android 软键盘遮挡输入框
根因: Tauri targetSdk 37 强制 edge-to-edge, MainActivity 不处理 IME Insets,
系统不再因键盘缩小窗口, 清单 adjustResize 失效, 键盘直接盖住 WebView。

- 新增 scripts/ci/android-softinput.sh: init 后注入 windowSoftInputMode=adjustResize,
  并重写 MainActivity.kt 监听 IME Insets, 键盘可见时把高度加到内容容器底部 (API 30+),
  让 WebView 真正变矮, 所有 bottom 弹层自动上移
- CI (android-build.yml) 与本地 build-apk.sh 在 init 之后、build 之前调用该脚本 (幂等)
- 新增全局 useKeepInputVisible: 输入框聚焦后用 scroll-into-view-if-needed 滚入可视区,
  覆盖页面滚动与 Popup 内部滚动
- 弹层补 max-height + 内部滚动, 防止键盘弹出后顶部被顶出屏幕
- calibrateSafeTop 在键盘弹出时保留旧值, 避免误判导致整页跳动
2026-11-09 16:25:11 +08:00

1287 lines
64 KiB
CSS

/* ================== 移动端优先布局 (mobile-first, antd-mobile) ================== */
/* 主题变量: 与 antd-mobile 的 --adm-* 保持一致, 便于组件统一 */
:root {
--color-bg: #f5f5f5;
--color-card: #ffffff;
--color-text: #333333;
--color-muted: #666666;
--color-border: #eeeeee;
--color-primary: #1677ff;
--color-accent: #1677ff;
--color-danger: #ff3141;
/* 顶部状态栏让位高度.
Android WebView (Tauri) 下 env(safe-area-inset-top) 常常返回 0, 仅靠它会让内容
顶到状态栏底下 (V0.2 移除了 45px 的 NavBar 后暴露). 这里给一个保守兜底值,
再由 main.jsx 的 calibrateSafeTop() 用实测高度覆盖 --safe-top, 双保险. */
--safe-top: max(env(safe-area-inset-top, 0px), 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
--safe-left: env(safe-area-inset-left, 0px);
--safe-right: env(safe-area-inset-right, 0px);
--tabbar-h: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* 全局禁用非编辑类文字的选中/长按菜单 (输入框除外);
各页面原有的局部规则保留但不再必要 */
* { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"], [contenteditable=""] {
-webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}
html, body, #root {
height: 100%;
background: var(--color-bg);
color: var(--color-text);
-webkit-font-smoothing: antialiased;
-webkit-tap-highlight-color: transparent;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
font-size: 14px;
overscroll-behavior-y: contain;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
/* 应用主框架: 全屏 flex 列布局, 不再 max-width 居中 (解决"左右不贴边") */
.app-root {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
width: 100%;
max-width: 100%;
background: var(--color-bg);
position: relative;
padding-left: var(--safe-left);
padding-right: var(--safe-right);
}
/* 顶部状态栏安全区占位: 高度由 --safe-top 决定 (main.jsx 实测校准后覆盖)
默认页面底色; 有通栏彩色头部的页面 (如「我」页蓝色渐变) 由该页
给 body 加标记类来覆盖背景, 使安全区与头部无缝衔接. */
.app-safe-top {
flex: 0 0 auto;
height: var(--safe-top);
width: 100%;
background: var(--color-bg);
}
/* 离线标识 (0.2.1): 窗口左上角, 仅在离线/服务不可达时出现 */
.offline-badge {
position: fixed;
top: calc(var(--safe-top) + 4px);
left: 6px;
z-index: 120;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 6px;
border-radius: 999px;
background: rgba(255, 77, 79, 0.12);
border: 1px solid rgba(255, 77, 79, 0.35);
color: #cf1322;
font-size: 10px;
line-height: 1;
font-weight: 600;
pointer-events: none;
user-select: none;
}
.offline-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #ff4d4f;
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.18);
}
.offline-text { letter-spacing: 1px; }
.app-main {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
-webkit-overflow-scrolling: touch;
}
/* 页面容器: 高度打通 app-main → page-with-navbar 的百分比链。
没有这行 height:100%, page-with-navbar 的 height:100% 对 auto 高度的父级失效,
整页塌成内容高 —— 看板 board-wrap 随之只卡片区那么高, 横滑只在有任务的区域生效 */
.page-transition { height: 100%; }
/* 页面切换动画: pathname 变化时整页淡入 + 轻微上移 (由 MobileShell 控制 class) */
.page-transition.active {
animation: page-in 0.28s ease;
}
@keyframes page-in {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: translateY(0); }
}
/* 带有页面头部的页面 (Checkin/Monitor/Macro) */
/* height:100% 让页面占满 app-main 高度, 内部 tab-content 独立滚动,
头部与分类 tab 固定在顶部不上滚 */
.page-with-navbar { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.page-with-navbar .adm-error-block { flex: 1; }
/* 统一主 Tab 头部 (打卡 / 宏观 / 监控): 原 NavBar 45px → 23px, 标题主色小字
注意: 「我」页不使用此头部, 见 MePage (顶部直接是头像区) */
.page-header {
height: 23px;
flex: 0 0 23px;
display: flex;
align-items: center;
justify-content: center;
background: var(--color-bg);
overflow: hidden;
}
.page-header-title {
font-size: 12px;
line-height: 1;
font-weight: 600;
letter-spacing: 1px;
color: var(--color-primary);
}
/* 底部 antd-mobile TabBar 定位 */
.app-tabbar.adm-tab-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
background: #fff;
border-top: 1px solid var(--color-border);
}
.app-tabbar.adm-tab-bar .adm-tab-bar-wrap { min-height: var(--tabbar-h); }
.app-tabbar.adm-tab-bar .adm-tab-bar-item {
/* 调高 padding, 把文字在 TabBar 中向上推, 避免下半部被裁切 */
padding: 8px 8px 4px;
}
.tab-icon { display: inline-flex; }
/* 宏观页 SwipeTabs */
.swipe-tabs-wrap {
position: relative;
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
}
/* tab 条右侧溢出提示: 渐变遮罩 + 箭头, 表示右边还有未展示的 tab
遮罩宽度留足, 让被截断的 tab 文字淡出而不是被箭头压住 */
.swipe-tabs-wrap .adm-tabs-header {
position: relative;
background: var(--color-card);
}
.swipe-tabs-wrap .adm-tabs-tab-wrapper { padding: 0 10px; }
.tab-more-hint {
position: absolute;
top: 0;
right: 0;
height: 45px;
width: 58px;
z-index: 3;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 6px;
cursor: pointer;
background: linear-gradient(to right, rgba(255,255,255,0) 0%, #fff 62%, #fff 100%);
}
.tab-more-arrow {
display: inline-flex;
align-items: center;
justify-content: center;
width: 19px;
height: 19px;
border-radius: 50%;
background: #fff;
border: 1px solid #e3e6ea;
color: var(--color-primary);
font-size: 14px;
line-height: 1;
font-weight: 700;
box-shadow: 0 1px 4px rgba(0,0,0,.14);
animation: tab-more-nudge 1.5s ease-in-out infinite;
}
@keyframes tab-more-nudge {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(3px); }
}
.tab-content {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
.tab-pane[hidden] { display: none; }
/* 宏观整屏横滑 (SwipeTabs swipeable): 每个 tab 一屏, 每个 slide 自己竖向滚动。
.tab-content 仍保留给打卡/监控 (纯点击切换, 不进 Swiper)。 */
.swipe-tabs-wrap .swipe-tabs-swiper {
flex: 1 1 0%;
min-height: 0;
width: 100%;
overflow: hidden;
}
.swipe-tabs-swiper .swiper-wrapper { height: 100%; }
.swipe-tabs-swiper .swiper-slide {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior-y: contain;
touch-action: pan-y; /* 竖向滚动交给浏览器, 横向手势交给 Swiper */
}
/* ================== 通用组件辅助类 ================== */
/* 文章详情 */
.article-page { display: flex; flex-direction: column; min-height: 100%; }
.article-page .adm-nav-bar { background: #fff; border-bottom: 1px solid var(--color-border); }
.article-detail { background: #fff; padding: 18px 16px 24px; }
.article-detail h1 { font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
.article-detail .meta { font-size: 12px; color: var(--color-muted); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.article-content { font-size: 15px; line-height: 1.75; color: #333; }
.article-content h1, .article-content h2, .article-content h3 { margin: 1.2em 0 0.6em; line-height: 1.3; }
.article-content p { margin-bottom: 0.9em; }
.article-content ul, .article-content ol { margin: 0 0 1em 1.4em; }
.article-content img { max-width: 100%; border-radius: 6px; margin: 0.6em 0; }
/* 文章列表项 (用于 ArticlesView) */
.articles-list .adm-list-item-description { color: var(--color-muted); }
.list-item-meta { font-size: 12px; color: var(--color-muted); margin-bottom: 4px; }
.list-item-excerpt { font-size: 13px; color: var(--color-muted); line-height: 1.5; }
/* ================== 列表视图 (外接分类 FinanceCategoryView) ================== */
.list-page { padding: 0 0 16px; }
.list-page .page-title { padding: 14px 16px 4px; }
.list-page .adm-list { margin: 0 12px; background: transparent; }
.list-page .adm-list .adm-list-item {
background: #fff;
border-radius: 10px;
margin-bottom: 10px;
padding: 12px 14px;
box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.list-page .adm-list .adm-list-item:last-child { margin-bottom: 0; }
.list-page .adm-list-item-title { font-size: 15px; font-weight: 600; color: var(--color-text); }
.list-page .adm-list-item-description { color: var(--color-muted); margin-top: 4px; }
/* 外接分类条目右侧类型徽标 */
.finance-kind {
font-size: 11px;
color: var(--color-muted);
background: rgba(0,0,0,.05);
border-radius: 4px;
padding: 1px 6px;
}
/* 外接条目详情: iframe 铺满 (NavBar 45px + 底部 TabBar 已计入) */
.finance-item-page { display: flex; flex-direction: column; height: 100%; background: #f5f5f5; }
.finance-item-page .adm-nav-bar { flex: 0 0 auto; background: #fff; border-bottom: 1px solid var(--color-border); }
.finance-frame {
width: 100%;
border: 0;
display: block;
background: #f5f5f5;
height: calc(100dvh - var(--safe-top) - var(--tabbar-h) - var(--safe-bottom) - 45px);
}
/* 图表容器 (环境监控等仍在用) */
.chart-wrap { background: #fafafa; border-radius: 8px; padding: 8px; margin: 8px 0 16px; }
/* 页面标题 */
.page-title { font-size: 20px; font-weight: 700; padding: 14px 16px 4px; }
/* 通用状态 */
.loading, .page-loading { padding: 40px; text-align: center; color: var(--color-muted); }
.empty { padding: 40px; text-align: center; color: var(--color-muted); font-size: 13px; }
.error-banner { background: #fef2f2; color: var(--color-danger); padding: 10px 14px; font-size: 13px; border-radius: 6px; margin: 12px; }
/* ================== 登录页 (独立全屏, 未走 MobileShell) ================== */
.login-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, #1f2937 0%, #1f2937 38%, #f5f5f5 38%); }
.login-form { width: 100%; max-width: 380px; }
.login-brand { color: #fff; font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.login-subtitle { color: rgba(255,255,255,.7); text-align: center; margin-bottom: 16px; font-size: 13px; }
.login-card.adm-card { border-radius: 14px; }
.login-card.adm-card .adm-card-body { padding: 22px 18px; }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.login-field label { font-size: 12px; color: var(--color-muted); }
.login-field .adm-input { padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 8px; }
.login-field .adm-input:focus-within { border-color: var(--color-primary); }
.login-options { margin-bottom: 18px; }
.login-hint { text-align: center; font-size: 12px; color: var(--color-muted); margin-top: 14px; line-height: 1.6; }
.login-error { background: #fef2f2; color: var(--color-danger); padding: 10px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
/* ================== 我的页 ================== */
/* 「我」页不设顶部头部条: 头像区直接贴顶 (2026-10-23 界面调整)
该页头部是通栏蓝色渐变, 若安全区单独占位会出现一条白边/色块把蓝色割断.
做法: 让安全区高度归零, 改由 me-profile 用 padding-top 吸收状态栏高度,
这样蓝色渐变从屏幕最顶端开始, 是一整块连续的色域. */
body.me-safe-top .app-safe-top { height: 0; }
.me-page { display: flex; flex-direction: column; min-height: 100%; background: var(--color-bg); }
.me-page .me-profile {
background: linear-gradient(135deg, #1677ff, #4096ff);
color: #fff;
padding: calc(24px + var(--safe-top)) 16px 28px;
display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.me-avatar { background: rgba(255,255,255,.2); color: #fff; font-size: 28px; }
.me-name { font-size: 18px; font-weight: 600; }
.me-email { font-size: 13px; opacity: .85; }
.me-list { margin-top: 12px; }
.me-list .adm-list-item { padding-left: 16px; padding-right: 16px; }
.me-logout { color: var(--color-danger); }
.me-version { text-align: center; font-size: 12px; color: var(--color-muted); padding: 18px 0 8px; }
/* AI 接入 (MCP) */
.mcp-link { color: var(--color-primary, #1677ff); cursor: pointer; font-size: 13px; }
.mcp-link.danger { color: var(--color-danger); }
.mcp-token-name { font-weight: 600; }
.mcp-token-prefix {
margin-left: 8px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12px;
color: var(--color-muted);
}
.mcp-create { display: flex; align-items: center; gap: 10px; width: 100%; }
.mcp-create .adm-input { flex: 1; }
.mcp-create .adm-button { flex: none; }
.mcp-token-dialog { display: flex; flex-direction: column; gap: 10px; }
.mcp-token-hint { font-size: 12px; line-height: 1.6; color: var(--color-muted); }
.mcp-token-value {
padding: 10px 12px;
border-radius: 8px;
background: var(--color-bg);
border: 1px solid var(--color-border, #eee);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12px;
line-height: 1.6;
word-break: break-all;
user-select: all;
}
.mcp-token-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* 资讯模块: 报警 + 新闻 (V0.2 起从「首页」并入「宏观」Tab) */
.tab-label { display: inline-flex; align-items: center; gap: 4px; }
.home-section { padding: 12px 12px 16px; }
.section-list { display: flex; flex-direction: column; gap: 8px; }
.alert-card.adm-card { border-radius: 10px; margin: 0; }
.alert-card .adm-card-body { padding: 10px 12px; }
.alert-title { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.alert-name { color: var(--color-danger); }
.alert-period { color: var(--color-muted); font-weight: 400; }
.alert-diff { font-size: 12px; color: var(--color-text); margin-top: 4px; }
.alert-ratio { color: var(--color-danger); font-weight: 600; margin-left: 6px; }
.alert-time { font-size: 11px; color: var(--color-muted); margin-top: 4px; }
.news-card.adm-card { border-radius: 10px; margin: 0; }
.news-card .adm-card-body { padding: 10px 12px; }
.news-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--color-text); }
.news-summary { font-size: 12px; color: var(--color-muted); margin-top: 4px; line-height: 1.5; word-break: break-word; overflow-wrap: anywhere; }
.news-meta { display: flex; gap: 10px; font-size: 11px; color: var(--color-muted); margin-top: 6px; }
.news-rank { color: var(--color-primary); font-weight: 600; }
.news-card:active .adm-card-body { background: #f5f5f5; }
/* 新闻详情页 */
.news-detail { background: #fff; padding: 18px 16px 24px; }
.news-detail h1 { font-size: 20px; line-height: 1.35; margin-bottom: 8px; }
.news-detail .meta { font-size: 12px; color: var(--color-muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.news-origin { color: var(--color-primary); margin-left: auto; }
.news-content { font-size: 15px; line-height: 1.75; color: #333; white-space: pre-wrap; word-break: break-word; }
.news-content-empty { margin-top: 12px; font-size: 12px; color: var(--color-muted); }
/* ================== 监控页 ================== */
.monitor-content { padding: 0 0 16px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.monitor-content .adm-tabs-content { --content-padding: 0; }
.monitor-tip { font-size: 11px; color: var(--color-muted); padding: 8px 14px 2px; }
.monitor-loading { padding: 40px 0; text-align: center; color: var(--color-muted); font-size: 13px; }
.monitor-empty { padding: 48px 0; }
.retry-link { color: var(--color-primary); margin-left: 8px; }
.server-list { padding: 0 12px; }
.server-card.adm-card { border-radius: 10px; margin: 0; }
.server-card:active .adm-card-body { background: #f5f5f5; }
.server-card .adm-card-body { padding: 12px; }
.server-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.server-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--color-text); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.on { background: #00b578; box-shadow: 0 0 0 3px rgba(0, 181, 120, 0.15); }
.status-dot.off { background: #ff3141; box-shadow: 0 0 0 3px rgba(255, 49, 65, 0.15); }
.server-update { font-size: 11px; color: var(--color-muted); }
.server-metrics { display: flex; flex-direction: column; gap: 6px; }
.metric { display: grid; grid-template-columns: 34px 1fr 96px; align-items: center; gap: 8px; }
.metric-label { font-size: 12px; color: var(--color-muted); }
.metric-value { font-size: 11px; color: var(--color-text); text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 3px; background: #f0f0f0; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 3px; background: var(--color-primary); transition: width 0.4s ease; }
.meter-fill.warn { background: #ff3141; }
.server-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--color-border); font-size: 11px; color: var(--color-muted); }
/* 节点详情图表 */
.server-detail { padding: 10px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.chart-card.adm-card { border-radius: 10px; margin: 0; }
.chart-card .adm-card-body { padding: 12px 8px 8px; }
.chart-title { font-size: 13px; font-weight: 600; color: var(--color-text); padding: 0 4px 6px; }
.scroll-sentinel { text-align: center; padding: 14px 0 4px; color: var(--color-muted); font-size: 12px; }
/* ===== 环境监控 (米家温湿度) ===== */
.env-view { padding-bottom: 16px; }
.env-auth-banner {
display: flex; justify-content: space-between; align-items: center; gap: 10px;
margin: 10px 12px 0; padding: 10px 14px; border-radius: 8px;
background: #fff7e6; color: #ad6800; font-size: 13px;
}
.env-auth-btn { color: var(--color-primary); font-weight: 600; cursor: pointer; flex-shrink: 0; }
.env-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.env-homes { padding: 4px 12px 0; }
.env-homes .adm-collapse-panel-header { font-size: 14px; font-weight: 600; }
.env-home-title { display: inline-flex; align-items: center; gap: 8px; }
.env-home-count { font-size: 11px; font-weight: 400; color: var(--color-muted); }
.env-devices { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.env-device-card.adm-card { border-radius: 10px; margin: 0; }
.env-device-card .adm-card-body { padding: 12px; }
.env-device-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.env-device-title { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.env-device-name { font-weight: 600; font-size: 15px; color: var(--color-text); }
.env-device-batt { font-size: 11px; color: var(--color-muted); border: 1px solid var(--color-border); padding: 1px 6px; border-radius: 10px; }
.env-device-edit { font-size: 11px; color: var(--color-primary); cursor: pointer; }
.env-missing-badge { flex-shrink: 0; font-size: 11px; color: #fff; background: #c0392b; border-radius: 10px; padding: 2px 8px; }
.env-device-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 10px; font-size: 13px; color: var(--color-text); }
.env-device-meta em { font-style: normal; color: var(--color-muted); font-size: 11px; }
.env-muted { color: var(--color-muted); font-size: 12px; }
.env-range { margin: 0 0 6px; }
.env-chart-loading, .env-chart-empty { padding: 30px 0; text-align: center; color: var(--color-muted); font-size: 12px; }
.env-chart-err { color: var(--color-danger); font-size: 12px; padding: 10px; }
.env-qr { text-align: center; }
.env-qr-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.env-qr-img { width: 200px; height: 200px; border-radius: 8px; border: 1px solid var(--color-border); }
.env-qr-wait { height: 200px; line-height: 200px; color: var(--color-muted); font-size: 13px; }
.env-qr-err { color: var(--color-danger); font-size: 12px; margin-top: 8px; }
.env-qr-tip { font-size: 12px; color: var(--color-muted); margin: 10px 0 14px; }
.env-qr-actions { display: flex; justify-content: center; gap: 12px; }
/* ================== OTA 升级区 (MePage) ================== */
.me-ota-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}
.me-ota-actions .adm-button {
--adm-button-border-radius: 6px;
min-width: 84px;
}
.me-ota-progress {
display: flex;
flex-direction: column;
gap: 6px;
padding: 2px 0;
}
.me-ota-progress-text {
font-size: 12px;
color: var(--color-muted);
font-variant-numeric: tabular-nums;
}
.me-ota-error {
color: var(--color-danger);
font-size: 12px;
word-break: break-word;
}
/* ================== 打卡 / 日历 / 清单 (V0.2) ================== */
.checkin-content { padding: 0 0 16px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.checkin-content .adm-tabs-content { --content-padding: 0; }
/* ----- 环形进度 ----- */
.ring-wrap { position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; }
.ring-wrap.clickable { cursor: pointer; }
.ring-wrap.disabled { opacity: .5; }
.ring-svg { display: block; }
.ring-bar { transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.ring-center {
position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
font-size: 13px; font-weight: 600; color: var(--color-text); font-variant-numeric: tabular-nums;
}
.ring-num em { font-style: normal; font-size: 10px; color: var(--color-muted); font-weight: 400; }
.ring-check { animation: ring-check-in 0.32s ease; }
@keyframes ring-check-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ring-over {
position: absolute; right: -2px; bottom: -2px; font-size: 10px; font-weight: 600;
color: #fff; background: #ff8f1f; border-radius: 8px; padding: 0 4px; line-height: 14px;
}
/* ----- 完成特效 ----- */
.celebrate { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.celebrate i {
position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
border-radius: 50%; animation: burst-fly 0.7s ease-out forwards;
}
@keyframes burst-fly {
0% { transform: rotate(var(--a)) translateX(0) scale(1); opacity: 1; }
70% { opacity: 1; }
100% { transform: rotate(var(--a)) translateX(var(--d)) scale(0.3); opacity: 0; }
}
.celebrate-ring {
position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
border-radius: 50%; border: 2px solid var(--color-primary); animation: ring-pulse 0.7s ease-out forwards;
}
@keyframes ring-pulse {
0% { transform: scale(0.3); opacity: 0.9; }
100% { transform: scale(1.7); opacity: 0; }
}
/* ----- 打卡视图 ----- */
.checkin-empty { padding: 48px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.habit-link { font-size: 12px; color: var(--color-primary); cursor: pointer; }
.habit-link.danger { color: var(--color-danger); }
/* 拖动把手 (⠿): touch-action:none —— 浏览器完全不接管该触摸,
指针流不会被滚动抢占取消, 是 Android WebView 上唯一可靠的拖动入口 */
.grip {
touch-action: none; -webkit-user-select: none; user-select: none;
color: #c2c7cf; font-size: 10px; line-height: 1;
padding: 10px 1px; margin: -6px -2px; min-width: 8px; min-height: 26px;
display: inline-flex; align-items: center; justify-content: center;
cursor: grab; flex-shrink: 0; align-self: center;
}
.grip:active { color: var(--color-primary); }
.task-right .grip { margin-right: 2px; }
/* MergedView 打卡卡拖动排序 */
.mv-view { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mv-view input, .mv-view textarea { -webkit-user-select: text; user-select: text; }
.mv-card { touch-action: pan-y; }
.mv-card.dragging { opacity: .3; outline: 2px dashed var(--color-primary); outline-offset: 1px; }
.mv-card.dragover { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.mv-card.dragover.after { border-bottom: 3px solid var(--color-primary); }
.mv-card.dragover.before { border-top: 3px solid var(--color-primary); }
/* 任务类型小标签: 列表行左下 / 看板卡左下 */
.date-tag {
display: inline-flex; align-items: center;
font-size: 10px; line-height: 1; font-weight: 600;
color: #ad6800; background: #fff7e6; border-radius: 4px; padding: 3px 5px;
flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.kind-tag {
display: inline-flex; align-items: center;
font-size: 10px; line-height: 1; font-weight: 600; color: #fff;
border-radius: 4px; padding: 3px 5px; flex-shrink: 0; white-space: nowrap;
}
/* 任务编号 (0.2.1): `项目编号-序号`, 服务端分配 */
.num-tag {
display: inline-flex; align-items: center;
font-size: 10px; line-height: 1; font-weight: 600;
color: #5b6b7c; background: #eef2f6; border-radius: 4px; padding: 3px 5px;
flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* 项目管理: 任务类型编辑 chips */
.kind-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kind-chip {
display: inline-flex; align-items: center; gap: 5px;
font-size: 12.5px; color: #fff; border-radius: 999px; padding: 5px 6px 5px 11px;
}
.kind-chip .x { font-size: 13px; color: rgba(255,255,255,.75); cursor: pointer; padding: 0 4px; }
/* 拖动跟手浮层: 克隆原卡片淡化后挂在 body 顶层, 跟随指针 */
.drag-ghost {
position: fixed; left: 0; top: 0; z-index: 1000;
pointer-events: none; will-change: transform;
background: transparent; padding: 0; margin: 0; max-width: none; border-radius: 0;
-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
-webkit-tap-highlight-color: transparent;
}
.drag-ghost * { -webkit-tap-highlight-color: transparent; }
.drag-ghost > * {
margin: 0 !important; pointer-events: none;
opacity: .82; border-radius: 9px;
box-shadow: 0 12px 28px rgba(15,23,42,.28);
}
/* ----- 清单视图 ----- */
.list-view { padding: 0 12px 20px; }
.list-view-head { display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; }
.list-view-head .adm-segmented { flex: 1; }
.checklist-wrap { display: flex; flex-direction: column; gap: 10px; }
.checklist-card {
position: relative; background: #fff; border-radius: 10px; padding: 12px;
box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.checklist-card.done { background: #f7fbf8; }
.checklist-head { cursor: pointer; }
.checklist-title-row { display: flex; align-items: center; gap: 8px; }
.checklist-title { font-size: 15px; font-weight: 600; color: var(--color-text); }
.checklist-scene { font-size: 11px; color: var(--color-primary); background: #f0f5ff; border-radius: 4px; padding: 1px 6px; }
.checklist-progress-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.checklist-bar { flex: 1; height: 6px; border-radius: 3px; background: #f0f0f0; overflow: hidden; }
.checklist-bar-fill { height: 100%; border-radius: 3px; background: #00b578; transition: width 0.4s ease; }
.checklist-count { font-size: 12px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.checklist-arrow { color: var(--color-muted); transition: transform 0.2s ease; }
.checklist-arrow.open { transform: rotate(90deg); }
.checklist-body { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--color-border); }
.checklist-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.check-box {
width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d0d0d0; flex-shrink: 0;
display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
transition: background 0.2s ease, border-color 0.2s ease;
}
.check-box svg { opacity: 0; transition: opacity 0.15s ease; }
.checklist-item.done .check-box { background: #00b578; border-color: #00b578; }
.checklist-item.done .check-box svg { opacity: 1; }
.checklist-item-title { flex: 1; font-size: 14px; color: var(--color-text); cursor: pointer; }
.checklist-item-title em { display: block; font-style: normal; font-size: 11px; color: var(--color-muted); margin-top: 2px; }
.checklist-item.done .checklist-item-title { color: #a0a0a0; text-decoration: line-through; }
.checklist-item-del { color: #ccc; font-size: 18px; line-height: 1; padding: 0 4px; cursor: pointer; }
.checklist-add { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.checklist-add .adm-input { flex: 1; border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 8px; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
/* ----- 模板分类 (清单的第三个分段: 进行中 / 已归档 / 模板) ----- */
.template-wrap { display: flex; flex-direction: column; gap: 10px; }
.template-card {
background: #fff; border-radius: 10px; padding: 12px;
box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.template-head { display: flex; align-items: center; gap: 8px; }
.template-name { font-size: 15px; font-weight: 600; color: var(--color-text); word-break: break-all; }
.template-badge {
font-size: 10px; color: var(--color-muted); background: #f2f3f5;
border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}
.template-count { margin-left: auto; font-size: 11px; color: var(--color-muted); flex-shrink: 0; }
.template-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.template-item-chip {
font-size: 11px; color: var(--color-muted); background: #f7f8fa;
border-radius: 4px; padding: 2px 7px; max-width: 100%;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.template-item-chip.more { color: var(--color-primary); background: #f0f5ff; }
.template-actions {
display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px;
padding-top: 8px; border-top: 1px dashed var(--color-border);
}
/* 新建清单: 模板行 (点击后从右侧滑出选择面板) */
.template-pick-row {
display: flex; align-items: center; gap: 8px; cursor: pointer;
border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 10px;
}
.template-pick-row:active { background: #fafafa; }
.template-pick-name { flex: 1; font-size: 14px; color: var(--color-text); }
.template-pick-name.placeholder { color: #b8bcc4; }
.template-pick-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-muted); }
.template-pick-arrow { font-size: 16px; line-height: 1; color: #c8c8c8; }
/* 模板选择面板 (右侧滑出) */
.tpl-picker { display: flex; flex-direction: column; height: 100%; padding: 14px 0 0; }
.tpl-picker-head { display: flex; align-items: center; padding: 0 16px 6px; }
.tpl-picker-title { font-size: 16px; font-weight: 700; color: var(--color-text); }
.tpl-picker-close { margin-left: auto; font-size: 22px; line-height: 1; color: #c8c8c8; cursor: pointer; padding: 0 4px; }
.tpl-picker-tip { font-size: 11px; color: var(--color-muted); padding: 0 16px 8px; }
.tpl-picker-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 10px 16px; }
.tpl-picker-item {
display: flex; align-items: baseline; gap: 8px; padding: 11px 10px;
border-radius: 8px; cursor: pointer;
}
.tpl-picker-item:active { background: #f5f6f8; }
.tpl-picker-item.active { background: #f0f5ff; }
.tpl-picker-name {
flex: 1; font-size: 14px; font-weight: 600; color: var(--color-text);
display: inline-flex; align-items: center; gap: 6px; word-break: break-all;
}
.tpl-picker-item.active .tpl-picker-name { color: var(--color-primary); }
.tpl-picker-sub { font-size: 11px; color: var(--color-muted); flex-shrink: 0; }
.tpl-picker-empty { padding: 40px 0; text-align: center; font-size: 13px; color: var(--color-muted); }
/* 模板编辑弹层 */
.tpl-edit-items { display: flex; flex-direction: column; gap: 6px; }
.tpl-edit-item { display: flex; align-items: center; gap: 8px; }
.tpl-edit-index { width: 18px; text-align: right; font-size: 11px; color: var(--color-muted); flex-shrink: 0; }
.tpl-edit-item .adm-input {
flex: 1; border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 8px;
}
/* ----- 软键盘避让 (Android) -----
原生层把键盘高度从 WebView 里扣掉后, 可视高度会变小;
弹层内容超过剩余高度时改为内部滚动, 避免顶部/输入框被顶出屏幕。 */
.adm-popup-body {
max-height: 100vh;
max-height: 100dvh;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.adm-dialog-body {
max-height: calc(100vh - 48px);
max-height: calc(100dvh - 48px);
overflow-y: auto;
}
/* ----- 表单弹窗 (打卡项 / 清单) ----- */
.form-popup { padding: 16px 16px 8px; }
.form-title { font-size: 16px; font-weight: 700; color: var(--color-text); margin-bottom: 12px; }
.form-field { margin-bottom: 14px; }
.form-field > label { display: block; font-size: 12px; color: var(--color-muted); margin-bottom: 6px; }
.form-field .adm-input { border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 10px; }
.form-actions { margin-top: 18px; }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot {
width: 26px; height: 26px; border-radius: 50%; cursor: pointer; display: inline-block;
border: 2px solid transparent; transition: transform 0.15s ease;
}
.color-dot.active { border-color: rgba(0,0,0,.25); transform: scale(1.12); }
/* ================== 打卡 · 日历与打卡合并视图 (V0.2.1, 设计文档 §11.5) ================== */
/* 上: 月历; 下: 当日打卡项, 按 每天/每周/每月 分组. 卡片紧凑化. */
.mv-view { display: flex; flex-direction: column; min-height: 0; }
/* ---- 日期标记环 (共享, 见 components/checkin/DayRing.jsx) ----
弧长 = 当天完成比例; 颜色按状态由各视图 CSS 分别上色 (调色板不同) */
.day-ring { position: absolute; inset: 0; pointer-events: none; }
.day-ring-bg { stroke: #e6e9ee; }
.day-ring-bar { stroke-linecap: round; }
/* ---- 月历 ---- */
.mv-cal { background: #fff; border-radius: 10px; margin: 8px 12px 0; padding: 6px 6px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mv-month { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; }
.mv-month b { font-size: 14px; }
.mv-month .arrow { font-size: 17px; color: var(--color-muted); line-height: 1; padding: 0 3px; cursor: pointer; }
.mv-month .today { margin-left: auto; font-size: 11px; color: var(--color-primary); cursor: pointer; }
.mv-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mv-wd span { text-align: center; font-size: 10px; color: var(--color-muted); padding: 1px 0 3px; display: block; }
.mv-day {
height: 31px; margin: 1px 0; display: flex; flex-direction: column;
align-items: center; justify-content: center; border-radius: 6px;
font-size: 12px; line-height: 1.15; color: var(--color-text); cursor: pointer;
}
.mv-day.out { color: #c8c8c8; }
.mv-day.future { color: #b0b0b0; }
.mv-day.today { color: var(--color-primary); font-weight: 700; }
.mv-day.sel { background: var(--color-primary); color: #fff; font-weight: 600; }
/* 日期标记: 环形进度 (弧长=完成比例) */
.mv-day-inner {
position: relative; width: 26px; height: 26px;
display: flex; align-items: center; justify-content: center;
}
/* 环颜色 4 档: 小半(红) / 大半(橘) / 完成(蓝) / 超额(绿) */
.mv-day .day-ring-bar.low { stroke: #ff3141; }
.mv-day .day-ring-bar.high { stroke: #ff8f1f; }
.mv-day .day-ring-bar.full { stroke: #1677ff; }
.mv-day .day-ring-bar.over { stroke: #00b578; }
/* 选中日: 蓝底之上改用白色环, 弧长仍表达完成度 */
.mv-day.sel .day-ring-bg { stroke: rgba(255, 255, 255, .38); }
.mv-day.sel .day-ring-bar { stroke: #fff; }
.mv-rate { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--color-muted); padding: 7px 6px 0; }
.mv-rate b { color: var(--color-primary); }
/* 图例: 环颜色 -> 状态 */
.mv-legend { display: inline-flex; align-items: center; gap: 4px; color: #b0b6bf; }
.mv-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 5px; }
.mv-legend i:first-child { margin-left: 0; }
.mv-legend i.low { background: #ff3141; }
.mv-legend i.high { background: #ff8f1f; }
.mv-legend i.full { background: #1677ff; }
.mv-legend i.over { background: #00b578; }
/* ---- 当日栏 ---- */
.mv-daybar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 2px; font-size: 13px; font-weight: 600; }
.mv-daybar .badge { font-weight: 400; color: var(--color-muted); font-size: 11px; }
/* 「+ 新建」按钮右对齐 (原「点环即打卡」文字位置) */
.mv-daybar .mv-new-btn { margin-left: auto; flex-shrink: 0; font-size: 11px; }
/* ---- 分组 ---- */
.mv-groups { padding-bottom: 4px; }
.mv-ghead { display: flex; align-items: center; gap: 6px; padding: 9px 14px 5px; font-size: 11px; font-weight: 600; color: var(--color-muted); }
.mv-ghead::before { content: ""; width: 3px; height: 11px; border-radius: 2px; background: var(--color-primary); }
.mv-ghead .cnt { margin-left: auto; font-weight: 400; color: #b8bcc4; }
/* ---- 紧凑卡片 ---- */
.mv-card {
position: relative; display: flex; align-items: center; gap: 9px; background: #fff;
border-radius: 9px; padding: 8px 10px; margin: 0 12px 7px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.mv-card.done { background: #f7fbf8; }
.mv-main { flex: 1; min-width: 0; }
.mv-name { font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-meta { font-size: 10px; color: var(--color-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-meta .st { color: #ff8f1f; background: rgba(255,143,31,.12); border-radius: 3px; padding: 0 4px; margin-left: 5px; }
.mv-btn {
font-size: 11px; border-radius: 999px; padding: 4px 12px; background: var(--color-primary);
color: #fff; flex-shrink: 0; white-space: nowrap; cursor: pointer;
}
.mv-btn.grey { background: #f2f3f5; color: var(--color-muted); }
.mv-more { color: #c0c4cc; font-size: 15px; line-height: 1; padding: 4px 2px 4px 6px; flex-shrink: 0; cursor: pointer; }
/* ---- 「⋯」操作面板 ---- */
.mv-sheet { padding: 16px 16px 4px; }
.mv-sheet .sheet-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.mv-sheet-row {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 4px; border-top: 1px solid var(--color-border); font-size: 14px; cursor: pointer;
}
.mv-sheet-row.danger { color: var(--color-danger); }
.mv-sheet-row.disabled { opacity: .45; cursor: default; }
.mv-sheet-row .k { font-size: 11px; color: #b8bcc4; }
/* ================== 任务模块 (V0.2, 需求 T-*) ================== */
/* 项目列表 / 列表视图 / 看板视图 / 列设置 / 任务详情 / 成员 */
.task-content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.task-content.is-board { overflow: hidden; }
/* ---- 项目列表 ---- */
.proj-head { display: flex; align-items: center; padding: 12px 14px 8px; }
.proj-head b { font-size: 16px; }
.proj-head .right { margin-left: auto; display: flex; gap: 6px; }
.proj-group { font-size: 11px; color: #b8bcc4; letter-spacing: .5px; padding: 10px 16px 6px; }
.proj-item {
display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px;
padding: 13px 14px; margin: 0 12px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer;
}
.proj-item .pico {
width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center;
justify-content: center; color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
/* 项目头像基类 (不依赖 .proj-item 作用域): 项目管理编辑页预览等裸用场景 */
.pavatar {
display: flex; align-items: center; justify-content: center;
color: #fff; font-weight: 700; flex-shrink: 0;
background-size: cover; background-position: center; background-repeat: no-repeat;
}
.proj-item .pmain { flex: 1; min-width: 0; }
.proj-item .ptitle {
font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-item .psub { font-size: 11.5px; color: var(--color-muted); margin-top: 2px; }
.proj-item .pcount { font-size: 15px; color: #c0c4cc; flex-shrink: 0; }
.badge { font-size: 10px; color: #ad6800; background: #fff7e6; border-radius: 4px; padding: 0 5px; font-weight: 400; }
/* ---- 视图头部 / 快速新增 ---- */
/* 视图切换段控: 移入项目栏, 紧凑 26px (设计稿 docs/V0.2/任务模块/视图切换移入项目栏-设计稿.html) */
.vseg { display: flex; background: #f2f3f5; border-radius: 8px; padding: 2px; flex-shrink: 0; }
.vseg div { font-size: 12px; line-height: 1; padding: 6px 11px; border-radius: 6px; color: var(--color-muted); cursor: pointer; white-space: nowrap; }
.vseg div.on { background: #fff; color: var(--color-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mini-btn {
font-size: 11px; border: 1px solid var(--color-primary); color: var(--color-primary);
border-radius: 999px; padding: 3px 10px; background: #fff; white-space: nowrap; cursor: pointer;
}
.mini-btn.solid { background: var(--color-primary); color: #fff; }
.mini-btn.grey { border-color: #dcdcdc; color: var(--color-muted); }
.quick-add { padding: 0 12px 8px; flex-shrink: 0; }
/* ---- 列表视图 ---- */
.list-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 16px; }
.group-title { display: flex; align-items: center; gap: 7px; padding: 12px 16px 6px; font-size: 12px; color: var(--color-muted); font-weight: 600; }
.group-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--color-primary); }
.group-title .cnt { color: #b8bcc4; font-weight: 400; }
.task-row {
display: flex; align-items: flex-start; gap: 9px; background: #fff; border-radius: 9px;
padding: 10px 12px; margin: 0 12px 7px; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer;
}
.task-row.done { background: #fafbfa; }
.task-row .box, .sub-row .box {
width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #d0d0d0;
display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; cursor: pointer;
}
.task-row.done .box, .sub-row.done .box { background: #00b578; border-color: #00b578; }
.box svg { opacity: 0; }
.task-row.done .box svg, .sub-row.done .box svg { opacity: 1; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14px; display: flex; align-items: center; gap: 6px; word-break: break-word; }
.task-row.done .task-title { color: #a0a0a0; text-decoration: line-through; }
.task-meta {
display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 11px;
color: #999; flex-wrap: wrap; min-height: 17px;
}
.task-meta .assignee { font-size: 12px; font-weight: 600; color: var(--color-text); }
.task-meta .assignee.none { color: #b8bcc4; font-weight: 400; }
.task-meta .members { font-size: 10.5px; color: #a7adb6; }
.task-right {
display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
align-self: stretch; flex-shrink: 0;
}
.task-right .assignee { font-size: 12px; font-weight: 600; color: var(--color-text); }
.task-right .assignee.none { color: #b8bcc4; font-weight: 400; }
.more { color: #c2c7cf; font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; }
.sub-row {
display: flex; align-items: flex-start; gap: 8px; background: #fff; border-radius: 8px;
padding: 8px 12px 8px 30px; margin: -2px 12px 7px 26px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
position: relative; cursor: pointer;
}
.sub-row::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: #e9ecf0; }
.sub-row .box { width: 16px; height: 16px; margin-top: 2px; }
.sub-main { flex: 1; min-width: 0; }
.sub-title { display: block; font-size: 13px; color: #444; }
.sub-row .task-meta { font-size: 10.5px; margin-top: 2px; gap: 5px; }
.sub-row.done .sub-title { color: #a8a8a8; text-decoration: line-through; }
.collapse { font-size: 11px; color: var(--color-primary); padding: 2px 0 8px 30px; margin: 0 12px; cursor: pointer; }
.sub-add-hint { font-size: 11px; color: #b8bcc4; padding: 0 0 8px 44px; cursor: pointer; }
/* ---- 状态点 ---- */
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.sdot.todo { background: #c9ced6; }
.sdot.doing { background: #1677ff; }
.sdot.done { background: #00b578; }
.sdot.pill { width: auto; height: auto; border-radius: 999px; font-size: 10px; padding: 0 6px; line-height: 15px; color: #fff; }
.sdot.pill.todo { background: #a8b0ba; }
.sdot.pill.doing { background: #1677ff; }
.sdot.pill.done { background: #00b578; }
/* ---- 看板视图 ---- */
.board-wrap {
display: flex; gap: 10px; padding: 0 12px 8px; overflow-x: auto; overflow-y: hidden;
flex: 1 1 auto; min-height: 0; align-items: stretch;
}
.bcol { flex: 0 0 186px; display: flex; flex-direction: column; min-height: 0; }.bcol-head { display: flex; align-items: center; gap: 5px; padding: 0 2px 7px; flex-shrink: 0; }
.bcol-name { font-size: 12px; font-weight: 700; color: #3d4450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcol-cnt { font-size: 11px; color: #999; background: #e8ebef; border-radius: 999px; padding: 0 6px; line-height: 15px; }
.bcol-bind { font-size: 10px; color: var(--color-primary); background: #f0f5ff; border-radius: 4px; padding: 0 4px; margin-left: auto; }
.bcol-bind.off { color: #999; background: #f2f3f5; }
.bcol-body {
flex: 1 1 auto; min-height: 0; height: 100%; overflow-y: auto;
display: flex; flex-direction: column; gap: 7px; padding-bottom: 8px;
-webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
/* 列体包裹层: 承载右缘滚动条 (滚动时出现, 停止后淡出) */
.bcol-main { flex: 1 1 auto; min-height: 0; position: relative; display: flex; }
.bcol-bar {
position: absolute; right: -4px; width: 3px; border-radius: 2px;
background: rgba(15, 23, 42, .3); opacity: 0; transition: opacity .25s ease;
pointer-events: none; z-index: 3;
}
.bcol-bar.on { opacity: 1; }
.bcol.dragover .bcol-body { background: #eaf2ff; border-radius: 8px; outline: 1.5px dashed var(--color-primary); }
.bcol-empty { font-size: 11px; color: #c0c4cc; text-align: center; padding: 10px 0; }
.bcard {
background: #fff; border-radius: 8px; padding: 9px 10px;
box-shadow: 0 1px 2px rgba(0,0,0,.05); cursor: pointer; flex-shrink: 0;
display: flex; gap: 7px; align-items: flex-start;
}
/* 左侧竖排操作列: 状态点在上, ⋯ 沉到左下角; 负外距悬进卡片内边距, 少占横向空间 */
.bcard-left {
display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
align-self: stretch; justify-content: space-between; padding: 1px 0 2px;
margin: 0 -5px; width: 14px;
}
.bcard-left .bstat { padding: 0; }
.bcard-left .bmore-btn { font-size: 12px; padding: 0; line-height: 1.1; }
.bcard-body { flex: 1; min-width: 0; }
.bcard.hl { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.brow1 { display: flex; align-items: flex-start; gap: 6px; }
.btitle { flex: 1; font-size: 12.5px; font-weight: 600; line-height: 1.45; word-break: break-word; }
.bstat { display: flex; align-items: center; padding: 2px; cursor: pointer; }
.bmeta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; font-size: 10.5px; }
.bassignee { font-size: 11px; font-weight: 600; color: #4a5160; }
.bassignee.none { color: #b8bcc4; font-weight: 400; }
.bmembers { font-size: 10px; color: #a7adb6; }
.bsub {
display: flex; align-items: center; gap: 5px; margin-top: 5px; padding-top: 5px;
border-top: 1px dashed #eef0f3; font-size: 11px; color: #5a616b; cursor: pointer;
}
.bsub .sbox { width: 13px; height: 13px; border-radius: 50%; border: 1.3px solid #d0d0d0; flex-shrink: 0; }
.bsub.done .sbox { background: #00b578; border-color: #00b578; }
.bsub .stitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsub.done .stitle { color: #a8a8a8; text-decoration: line-through; }
.bmore { font-size: 10px; color: #999; margin-top: 4px; }
.bsub-add { font-size: 10.5px; color: #b8bcc4; margin-top: 6px; cursor: pointer; }
.badd {
background: rgba(255,255,255,.6); border: 1px dashed #d5dae1; border-radius: 8px;
padding: 8px; text-align: center; font-size: 11.5px; color: #b8bcc4; cursor: pointer; flex-shrink: 0;
}
/* ---- 列设置 / 成员页 ---- */
/* fixed 覆盖层要自己让出顶部状态栏 (复用 main.jsx 校准的 --safe-top), 否则与系统工具栏重合 */
.cs-page { position: fixed; inset: 0; z-index: 1000; background: var(--color-bg); display: flex; flex-direction: column; padding-top: var(--safe-top); }
.cs-page .navbar-sub { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.cs-page .navbar-sub .back { font-size: 20px; color: #666; line-height: 1; cursor: pointer; }
.cs-page .navbar-sub .title {
font-size: 16px; font-weight: 700;
min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-page .navbar-sub .right { margin-left: auto; display: flex; gap: 6px; }
.cs-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 20px; }
.set-row {
display: flex; align-items: center; gap: 10px; background: #fff;
padding: 12px 14px; margin-bottom: 1px;
}
.set-row .sname { font-size: 13px; font-weight: 600; width: 64px; flex-shrink: 0; cursor: pointer; }
.set-row .sctrl { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.set-hint { font-size: 11px; color: #999; padding: 8px 14px 14px; line-height: 1.7; }
.section-h { font-size: 11px; color: #b8bcc4; letter-spacing: .5px; display: flex; align-items: center; gap: 6px; }
.drop {
border: 1px solid var(--color-border); border-radius: 7px; padding: 4px 6px; font-size: 12px;
color: var(--color-text); background: #fff; min-width: 96px;
}
.drop.off { color: #999; background: #f7f8fa; }
.cs-ord { display: flex; flex-direction: column; font-size: 9px; color: #c0c4cc; line-height: 1.1; }
.cs-ord span { cursor: pointer; }
.cs-del { font-size: 11px; color: #ff3141; cursor: pointer; padding: 2px 4px; }
.cs-count { font-size: 11px; color: #999; margin-left: 8px; }
/* ---- 任务详情 ---- */
/* 三段式弹层: 固定头 / 滚动体 / 固定底 —— 标题与保存按钮始终可见 */
.td-head {
flex: 0 0 auto; padding: 16px 16px 8px; background: #fff;
border-bottom: 1px solid var(--color-border);
}
.td-body {
flex: 1 1 auto; min-height: 0; overflow-y: auto;
padding: 12px 16px 4px;
-webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.td-foot {
flex: 0 0 auto; padding: 10px 16px 12px; background: #fff;
border-top: 1px solid var(--color-border);
}
/* 底部固定后不再需要上外边距 */
.td-foot .btn-primary { margin-top: 0; }
.sheet-title {
font-size: 16px; font-weight: 700; margin-bottom: 4px; word-break: break-word;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 详情页副标题行: 左侧「看板列 · 状态」, 右侧完整任务编号 (点按复制) */
.sheet-sub {
display: flex; align-items: center; gap: 8px;
font-size: 11.5px; color: #999; margin-bottom: 14px;
}
.sheet-sub .sub-meta {
flex: 1 1 auto; min-width: 0;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.task-id-chip {
display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
font-size: 11px; line-height: 1; font-weight: 600;
color: #5b6b7c; background: #eef2f6; border-radius: 999px; padding: 5px 9px;
cursor: pointer; -webkit-user-select: none; user-select: none;
font-variant-numeric: tabular-nums;
}
.task-id-chip:active { background: #e2e8ef; }
.task-id-chip .tid { letter-spacing: .3px; }
.task-id-chip .tid-copy {
color: var(--color-primary); font-weight: 500;
padding-left: 6px; border-left: 1px solid rgba(91,107,124,.22);
}
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--color-muted); margin-bottom: 6px; }
.inp {
border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 10px;
font-size: 14px; background: #fff; color: var(--color-text); width: 100%;
font-family: inherit;
}
textarea.inp { resize: vertical; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.pick-row:last-child { border-bottom: none; }
.pick-row .pn { flex: 1; font-size: 13.5px; }
.avatar {
width: 26px; height: 26px; border-radius: 50%; background: #dfe6f0; color: #5a6a80;
font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d0d0d0; flex-shrink: 0; position: relative; }
.ck.on { background: var(--color-primary); border-color: var(--color-primary); }
.ck.on::after {
content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.btn-primary { text-align: center; background: var(--color-primary); color: #fff; border-radius: 8px; padding: 10px 0; font-size: 15px; font-weight: 600; margin-top: 18px; cursor: pointer; }
.btn-ghost { text-align: center; border: 1px solid var(--color-border); border-radius: 8px; padding: 9px 0; font-size: 15px; color: var(--color-muted); margin-top: 8px; background: #fff; cursor: pointer; }
.btn-danger { text-align: center; border: 1px solid #ff3141; border-radius: 8px; padding: 9px 0; font-size: 15px; color: #ff3141; margin-top: 8px; background: #fff; cursor: pointer; }
.del-hint { font-size: 11px; font-weight: 400; }
.extra-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.extra-k { flex: 0 0 82px; }
.extra-v { flex: 1; }
.extra-del { border: none; background: none; color: #c0c4cc; font-size: 18px; line-height: 1; cursor: pointer; }
.extras { margin-top: 4px; }
.extras-head {
display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
padding: 9px 10px; background: #f7f8fa; border-radius: 8px; cursor: pointer;
}
.extras-head .caret { font-size: 10px; color: #999; }
.extras-head .cv { margin-left: auto; color: #b8bcc4; font-size: 10px; font-weight: 400; }
.extras-body { padding: 4px 0 2px; }
.extras-empty { font-size: 11.5px; color: #b8bcc4; padding: 8px 2px; }
.extras-add { font-size: 12px; color: var(--color-primary); background: none; border: none; padding: 6px 2px; cursor: pointer; }
.tag { font-size: 10px; color: var(--color-primary); background: #f0f5ff; border-radius: 4px; padding: 0 5px; }
.tag.grey { color: #999; background: #f2f3f5; }
/* ---- 空态 / 错误态 ---- */
.empty { text-align: center; padding: 70px 20px; color: #999; }
.empty .ico {
width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #f2f3f5;
display: flex; align-items: center; justify-content: center; color: #c4c8ce; font-size: 30px;
}
.empty .ico.err { background: #fff1f0; color: #ff7875; }
.empty p { font-size: 13px; margin-bottom: 12px; }
/* ---- 任务首屏 (T-VW-08/09/10): 最近项目条 + 当前项目 ---- */
.task-home { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rp-bar { display: flex; gap: 8px; padding: 10px 12px 6px; overflow-x: auto; flex-shrink: 0; }
.rp-card {
flex: 0 0 96px; background: #fff; border-radius: 10px; padding: 9px 10px;
box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; position: relative;
border: 1.5px solid transparent;
}
.rp-card.on { border-color: var(--color-primary); background: #f5f9ff; }
.rp-card.dragging { opacity: .6; transform: scale(.96); box-shadow: 0 8px 18px rgba(15,23,42,.18); z-index: 5; }
.rp-card .rp-ico {
width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 11px;
font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rp-card .rp-name { font-size: 12px; font-weight: 600; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-card .rp-meta { font-size: 9.5px; color: #999; margin-top: 1px; }
.rp-card .rp-grip { position: absolute; top: 5px; right: 6px; color: #d3d8de; font-size: 10px; letter-spacing: -1px; }
.rp-more {
flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 3px; color: #666; font-size: 10.5px; cursor: pointer; padding: 0 6px;
}
.rp-more .rp-more-ico { width: 30px; height: 30px; border-radius: 50%; background: #f2f3f5; color: #9aa1aa; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rp-drag-tip { font-size: 9.5px; color: #b8bcc4; padding: 0 14px 2px; flex-shrink: 0; }
/* 首屏内嵌的项目视图 (T-VW-09) */
.pv-embed { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.task-projbar {
display: flex; align-items: center; gap: 10px; padding: 9px 14px;
background: #fff; border-bottom: 1px solid var(--color-border); flex-shrink: 0; margin-top: 4px;
}
.task-projbar .back { font-size: 20px; color: #666; line-height: 1; cursor: pointer; }
.task-projbar .title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.task-projbar .right { margin-left: auto; display: flex; gap: 5px; flex-shrink: 0; }
.task-projbar .mini-btn { padding: 5px 8px; font-size: 11px; }
.pv-embed .task-content { flex: 1 1 auto; }
/* ---- 项目列表拖动排序 (bug#3) ---- */
.proj-item.dragging { opacity: .65; transform: scale(.98); box-shadow: 0 8px 18px rgba(15,23,42,.16); z-index: 5; position: relative; }
/* ---- 项目信息块 (T-PJ-13) ---- */
.note-row { cursor: pointer; }
.note-title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-preview {
font-size: 11.5px; color: #999; margin-top: 3px; overflow: hidden;
text-overflow: ellipsis; white-space: nowrap;
}
/* ---- 通用分段控件 (状态选择等): 当前项高亮 ----
此前只有 .pv-head .seg 有定义, 详情弹层里裸用 .seg 会堆成三行 */
.seg { display: flex; background: #f2f3f5; border-radius: 8px; padding: 3px; }
.seg div { flex: 1; text-align: center; font-size: 13px; padding: 6px 0; border-radius: 6px; color: var(--color-muted); cursor: pointer; }
.seg div.on { background: #fff; color: var(--color-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
/* ---- 看板卡片 ⋯ 菜单入口 ---- */
.bmore-btn { color: #c2c7cf; font-size: 14px; line-height: 1; padding: 2px 4px; cursor: pointer; }
.bcard-left .bmore-btn { padding: 0 4px; }
/* ---- ActionSheet 标题 (任务 ⋯ 菜单) ---- */
.as-extra { padding: 4px 0 8px; }
.as-title { font-size: 13px; font-weight: 600; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---- 拖动手势 (重点设计 §7.1) ----
看板卡片 / 列表行: 纵向滚动归浏览器(pan-y), 水平位移留给拖动换列。
任务区整体禁用长按文字选择与系统菜单, 避免长按拖动变成选中文字 (输入框除外)。 */
.task-content {
-webkit-user-select: none; user-select: none;
-webkit-touch-callout: none;
}
.task-content input, .task-content textarea { -webkit-user-select: text; user-select: text; }
.bcard, .task-row { touch-action: pan-y; }
.bcard.dragging {
opacity: .35; outline: 2px dashed var(--color-primary); outline-offset: 1px;
}
.task-row.dragging {
opacity: .35; outline: 2px dashed var(--color-primary); outline-offset: 1px;
}
.task-row.dragover { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.task-row.dragover.after { border-bottom: 3px solid var(--color-primary); }
.task-row.dragover.before { border-top: 3px solid var(--color-primary); }
.drag-pill {
font-size: 11px; font-weight: 600; color: #fff; background: var(--color-primary);
border-radius: 999px; padding: 2px 9px; flex-shrink: 0; white-space: nowrap;
}
.drag-pill.cur { background: #c0c7d0; }
/* ---- 已归档任务 (T-ARC-04/05/06) ----
结构: 筛选卡(标题/看板列/归档时间 + 重置/筛选) -> 已应用条件 -> 列表
交互: 条件先编辑, 点「筛选」统一提交; 生效条件可在列表上方单独撤销 */
.arc-proj {
margin-left: auto; font-size: 11px; color: #999; background: #f5f6f8;
border-radius: 999px; padding: 2px 9px; max-width: 130px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.arc-fcard {
background: #fff; margin: 10px 12px 0; border-radius: 12px; padding: 4px 14px 12px;
box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.arc-frow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f4f5f7; }
.arc-frow:last-of-type { border-bottom: 0; }
.arc-frow > .lbl { width: 56px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--color-text); }
.arc-frow > .ctl { flex: 1; min-width: 0; }
/* 关键词输入框: 前面有常驻标签「标题」, 框内是占位提示 */
.arc-kw {
display: flex; align-items: center; gap: 7px;
background: #f7f8fa; border: 1px solid #eceef1; border-radius: 8px; padding: 6px 9px;
}
.arc-kw:focus-within { border-color: var(--color-primary); background: #fff; }
.arc-kw .adm-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; --font-size: 13px; }
.arc-kw .adm-input-element { font-size: 13px; }
.arc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.arc-chip {
font-size: 12px; padding: 4px 10px; border-radius: 999px;
border: 1px solid #e6e8eb; background: #fafbfc; color: var(--color-muted);
cursor: pointer; white-space: nowrap;
}
.arc-chip.on { background: #eaf3ff; border-color: var(--color-primary); color: var(--color-primary); font-weight: 600; }
.arc-range { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.arc-range .dp {
font-size: 12px; padding: 4px 10px; border: 1px dashed #d9dee5; border-radius: 7px;
color: #999; cursor: pointer; background: #fff;
}
.arc-range .dp.on { color: var(--color-text); border-style: solid; border-color: #d9dee5; }
.arc-range .sep { color: #c2c6cc; font-size: 12px; }
.arc-hint { font-size: 11px; color: #9aa4b2; margin-top: 6px; }
.arc-actions { display: flex; gap: 9px; padding-top: 12px; }
.arc-btn { height: 36px; border-radius: 9px; border: 0; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.arc-btn.ghost { flex: 0 0 84px; background: #f4f5f7; color: var(--color-muted); }
.arc-btn.primary { flex: 1; background: var(--color-primary); color: #fff; }
.arc-btn .badge {
display: inline-block; min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px;
background: rgba(255, 255, 255, .28); font-size: 10.5px; margin-left: 5px; padding: 0 4px;
}
.arc-applied { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 11px 14px 3px; }
.arc-applied .tag {
font-size: 11.5px; background: #eaf3ff; color: var(--color-primary);
border-radius: 6px; padding: 2px 7px; display: inline-flex; align-items: center; gap: 5px;
}
.arc-applied .tag .x { cursor: pointer; opacity: .6; }
.arc-applied .cnt { margin-left: auto; font-size: 11.5px; color: #999; }
.arc-list { padding: 8px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.arc-item { background: #fff; border-radius: 10px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.arc-item .top { display: flex; gap: 8px; align-items: flex-start; }
.arc-item .ttl { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.42; word-break: break-word; }
.arc-item .meta {
display: flex; gap: 7px; align-items: center; flex-wrap: wrap;
margin-top: 7px; font-size: 10.5px; color: #999;
}
.arc-item .meta .col { color: var(--color-muted); }
.arc-item .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #d5d9e0; }
.arc-item .acts {
display: flex; gap: 7px; justify-content: flex-end;
margin-top: 9px; padding-top: 9px; border-top: 1px dashed #f0f1f3;
}
.arc-item .acts .mini {
font-size: 11.5px; padding: 3px 12px; border-radius: 999px;
border: 1px solid var(--color-primary); color: var(--color-primary);
background: #fff; cursor: pointer; white-space: nowrap;
}
.arc-item .acts .mini.danger { border-color: #ffd4d7; color: var(--color-danger); }
.arc-empty { text-align: center; padding: 52px 20px; color: #b8bcc4; font-size: 13px; }
.arc-empty .ico { font-size: 34px; opacity: .35; margin-bottom: 10px; }
.arc-empty .sub { font-size: 11.5px; color: #c2c6cc; margin-top: 6px; }