
*{margin:0;padding:0;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif}
body{height:100vh;background:#f0f2f5;overflow:hidden;color:#1f1f1f;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
.ico{font-size:15px;line-height:1;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;font-weight:400}

/* ===== 顶部一级导航 ===== */
.topbar{height:56px;background:#1a73e8;display:flex;align-items:center;padding:0 20px 0 16px;color:#fff;flex-shrink:0}
.topbar .logo{font-size:17px;font-weight:700;display:flex;align-items:center;gap:8px;white-space:nowrap;width:280px;flex-shrink:0}
.topbar .logo .cn{font-size:17px}
.topbar .logo .en{font-size:17px;font-weight:400;color:#b91c1c;letter-spacing:0;text-shadow:1px 1px 0 #fff,-1px 1px 0 #fff,1px -1px 0 #fff,-1px -1px 0 #fff,0 0 4px rgba(255,255,255,.5)}
.topbar .nav{display:flex;align-items:center;gap:1px;overflow-x:auto}
.topbar .nav-divider{width:1px;height:22px;background:rgba(255,255,255,.15);margin:0 6px;flex-shrink:0}
.topbar .nav a{display:inline-flex;align-items:center;gap:4px;color:rgba(255,255,255,.92);text-decoration:none;padding:7px 12px;border-radius:6px;font-size:13px;transition:all .2s;white-space:nowrap;position:relative}
.topbar .nav a .ico{font-size:15px;line-height:1;display:inline-block;filter:drop-shadow(0 0 1px rgba(255,255,255,.2))}
.topbar .nav a:hover{color:#fff;background:rgba(255,255,255,.12)}
.topbar .nav a.active{color:#fff;background:rgba(255,255,255,.2)}
.topbar .nav a .badge-nav{background:#ea4335;color:#fff;font-size:10px;font-weight:600;padding:1px 6px;border-radius:10px;margin-left:2px}
.topbar .right-area{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0;padding-right:0;position:relative}
.topbar .right-area .top-icon{font-size:16px;cursor:pointer;opacity:.8;transition:.2s}
.topbar .right-area .top-icon:hover{opacity:1}
.topbar .user-trig{display:flex;align-items:center;gap:8px;cursor:pointer;padding:4px 10px 4px 4px;border-radius:8px;transition:.2s}
.topbar .user-trig:hover{background:rgba(255,255,255,.12)}
.topbar .user-av{width:28px;height:28px;border-radius:6px;background:rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}

/* ===== 二级导航栏（模块内的子菜单） ===== */
.subbar{height:44px;border-bottom:1px solid #e8eaed;background:#fff;display:flex;align-items:center;padding:0 32px;gap:4px;flex-shrink:0}
.subbar a{font-size:13px;color:#5f6368;text-decoration:none;padding:6px 14px;border-radius:6px;transition:.2s}
.subbar a:hover{background:#f1f3f4;color:#1f1f1f}
.subbar a.active{background:#e8f0fe;color:#1a73e8;font-weight:500}

/* ===== 主体布局 ===== */
.main{height:calc(100vh - 56px);display:flex}
.page{display:none;width:100%;height:100%;flex-direction:column}
.page.active{display:flex}
.page-sub{display:flex;flex:1;overflow:hidden}

/* ===== IM消息页（特殊：左侧栏+聊天区） ===== */
.im-wrap{display:flex;width:100%;height:100%}
.sidebar{width:280px;min-width:280px;background:#f8f9fb;border-right:1px solid #e8eaed;display:flex;flex-direction:column}
.sidebar .shead{padding:16px 16px 8px;height:56px;border-bottom:1px solid #e8eaed}
.sidebar .shead h3{font-size:14px;font-weight:600}
.sidebar .search{padding:6px 16px}
.sidebar .search input{width:100%;padding:8px 14px;border:none;border-radius:8px;background:#e8eaed;font-size:13px;outline:none}
.conv-list{flex:1;overflow-y:auto}
.conv-item{display:flex;align-items:center;gap:10px;padding:11px 16px;cursor:pointer;border-bottom:1px solid #f0f2f5}
.conv-item.active,.conv-item:hover{background:#e8f0fe}
.conv-av{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.conv-av.g{background:none}
.conv-av.p{background:none}
.conv-av.gn{background:none}
.conv-av.r{background:none}
.conv-av.o{background:none}
.conv-info{flex:1;min-width:0}
.conv-row{display:flex;justify-content:space-between;align-items:center}
.conv-name{font-size:14px;font-weight:600;color:#1f1f1f}
.conv-time{font-size:11px;color:#9aa0a6}
.conv-msg{font-size:12px;color:#5f6368;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.conv-badge{width:18px;height:18px;border-radius:50%;background:#ea4335;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.conv-sep{margin:2px 16px 4px;padding-top:8px;font-size:11px;color:#9aa0a6;font-weight:500}
/* 可展开列表 */
.conv-toggle{display:flex;align-items:center;gap:8px;padding:10px 16px;cursor:pointer;border-bottom:1px solid #f0f2f5;font-size:14px;font-weight:600;color:#1f1f1f;transition:.15s}
.conv-toggle:hover{background:#e8f0fe}
.conv-toggle .arrow{font-size:10px;color:#9aa0a6;transition:transform .2s;display:inline-block;width:14px}
.conv-toggle .arrow.open{transform:rotate(90deg)}
.conv-sub{display:none}
.conv-sub.show{display:block}
.conv-sub .conv-item{padding-left:24px}

.chat-main{flex:1;display:flex;flex-direction:column}
.chat-header{height:56px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8eaed}
.chat-hl{display:flex;align-items:center;gap:10px}
.chat-hn{font-size:15px;font-weight:600}
.chat-hs{font-size:12px;color:#34a853}
.chat-hr{display:flex;gap:14px;color:#5f6368;font-size:16px;cursor:pointer}
.msg-area{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px}
.msg-row{display:flex;gap:10px;max-width:70%}
.msg-row.self{flex-direction:row-reverse;align-self:flex-end}
.msg-av{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;color:#fff}
.msg-av.o{background:#e8f0fe;color:#1a73e8}
.msg-av.m{background:#1a73e8}
.msg-av.ai{background:#6c5ce7;color:#fff;box-shadow:0 0 0 2px #6c5ce733}
.msg-b{padding:10px 14px;border-radius:10px;font-size:14px;line-height:1.5}
.msg-row:not(.self) .msg-b{background:#f1f3f4;border-bottom-left-radius:4px}
.msg-row.self .msg-b{background:#d4edda;color:#1f1f1f;border-bottom-right-radius:4px}
.msg-sender{font-size:12px;color:#5f6368;margin-bottom:4px}
.msg-t{font-size:11px;color:#9aa0a6;margin-top:4px}
.input-bar{display:flex;align-items:center;gap:8px;padding:12px 20px;border-top:1px solid #e8eaed}
.input-bar input{flex:1;padding:10px 16px;border:1px solid #e8eaed;border-radius:20px;font-size:14px;outline:none;background:#f1f3f4}
.input-bar input:focus{border-color:#1a73e8;background:#fff}
.input-bar button{width:36px;height:36px;border-radius:50%;border:none;background:#1a73e8;color:#fff;font-size:16px;cursor:pointer;flex-shrink:0}

/* ===== 通用页面 ===== */
.page-wrap{flex:1;overflow-y:auto;padding:28px 32px;background:#f0f2f5}
.page-inner{max-width:1100px;margin:0 auto}
.page-head{margin-bottom:24px}
.page-head h2{font-size:22px;font-weight:700;margin-bottom:4px}
.page-head p{font-size:14px;color:#5f6368;line-height:1.5}
.card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.06);margin-bottom:20px}
.card h3{font-size:15px;font-weight:600;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.card h3 small{font-weight:400;font-size:12px;color:#5f6368}
.flex-2{display:flex;gap:20px}
.flex-2>.card{flex:1}
.form-group{margin-bottom:14px}
.form-group label{font-size:13px;font-weight:500;color:#5f6368;display:block;margin-bottom:5px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:9px 14px;border:1px solid #dadce0;border-radius:8px;font-size:14px;outline:none;transition:border .2s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#1a73e8}
.form-row{display:flex;gap:12px}
.form-row>.form-group{flex:1}
.form-group.half{flex:1}
.btn{padding:10px 24px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}
.btn-pri{background:#1a73e8;color:#fff}
.btn-pri:hover{background:#1557b0}
.btn-ghost{background:#f1f3f4;color:#5f6368}
.btn-ghost:hover{background:#e8eaed}
.btn-danger{background:#fce8e6;color:#ea4335}
.btn-dan:hover{background:#f5d5d2}
.btn-success{background:#e8f5e9;color:#34a853}
.btn-warning{background:#fef3e2;color:#f59e0b}
.btn-sm{padding:6px 14px;font-size:12px}
.btn-line{padding:8px 18px;font-size:13px;border:1px solid #dadce0;border-radius:8px;background:#fff;cursor:pointer;transition:.2s}
.btn-line:hover{border-color:#1a73e8;color:#1a73e8}

/* 列表 */
.item-list{display:flex;flex-direction:column;gap:8px}
.item-row{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#f8f9fb;border-radius:8px;transition:.15s}
.item-row:hover{background:#f1f3f4}
.iname{font-size:14px;font-weight:500}
.imeta{font-size:12px;color:#5f6368;margin-top:2px}
.iacts{display:flex;gap:6px}
.tag{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:500;margin-left:6px;vertical-align:middle}
.t-red{background:#fce8e6;color:#ea4335}
.t-yellow{background:#fef3e2;color:#f59e0b}
.t-green{background:#e8f5e9;color:#34a853}
.t-blue{background:#e8f0fe;color:#1a73e8}

/* ===== 消息气泡操作按钮：复制、引用 ===== */
.msg-row{position:relative}
.msg-actions{position:absolute;top:-2px;right:0;display:none;gap:4px;z-index:10;background:#fff;border:1px solid #e8eaed;border-radius:8px;padding:3px 4px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.msg-row.self .msg-actions{right:auto;left:0}
.msg-row:hover .msg-actions{display:flex}
.msg-act-btn{width:24px;height:24px;border:none;border-radius:4px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;color:#5f6368;transition:.15s}
.msg-act-btn:hover{background:#f1f3f4;color:#1a73e8}
.msg-act-btn [data-lucide]{width:14px;height:14px}

/* ===== 多选模式 ===== */
.msg-row.selectable{cursor:pointer}
.msg-row.selectable:hover{background:rgba(26,115,232,.04);border-radius:8px}
.msg-row.selected{background:rgba(26,115,232,.08);border-radius:8px}
.msg-chk{position:absolute;left:-28px;top:50%;transform:translateY(-50%);display:none;width:18px;height:18px;border:2px solid #dadce0;border-radius:4px;background:#fff;cursor:pointer;align-items:center;justify-content:center;font-size:11px;transition:.15s}
.msg-chk.checked{background:#1a73e8;border-color:#1a73e8;color:#fff}
.msg-row.in-multi .msg-chk{display:flex}
.msg-row.in-multi .msg-actions{display:none !important}
.msg-row.in-multi{padding-left:32px}

/* ===== 多选模式顶部工具栏 ===== */
.multi-toolbar{display:none;height:48px;padding:0 20px;background:#e8f0fe;border-bottom:1px solid #d2e3fc;align-items:center;gap:12px;font-size:14px;font-weight:500;color:#1a73e8;flex-shrink:0}
.multi-toolbar.show{display:flex}
.multi-toolbar .mt-close{width:28px;height:28px;border:none;border-radius:6px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#5f6368}
.multi-toolbar .mt-close:hover{background:rgba(0,0,0,.06)}
.multi-toolbar .mt-count{flex:1;font-size:13px}
.multi-toolbar .mt-acts{display:flex;gap:6px}
.mt-btn{padding:6px 14px;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:4px;transition:.15s}
.mt-btn-pri{background:#1a73e8;color:#fff}
.mt-btn-pri:hover{background:#1557b0}
.mt-btn-ghost{background:#fff;color:#5f6368;border:1px solid #dadce0}
.mt-btn-ghost:hover{background:#f1f3f4}

/* ===== 引用栏 ===== */
.quote-bar{display:none;padding:8px 20px;background:#f0f7ff;border-top:1px solid #d2e3fc;align-items:center;gap:8px;font-size:13px;color:#1a73e8;flex-shrink:0}
.quote-bar.show{display:flex}
.quote-bar .qb-icon{flex-shrink:0;color:#5f6368}
.quote-bar .qb-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5f6368}
.quote-bar .qb-close{width:24px;height:24px;border:none;border-radius:4px;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#5f6368}
.quote-bar .qb-close:hover{background:rgba(0,0,0,.06)}

/* ===== 消息中的引用预览 ===== */
.msg-quote-ref{margin-bottom:6px;padding:6px 10px;background:rgba(0,0,0,.04);border-left:3px solid #1a73e8;border-radius:4px;font-size:12px;color:#5f6368;line-height:1.4}
.msg-quote-ref .qref-sender{font-weight:500;color:#1f1f1f;font-size:11px;margin-bottom:2px}

/* ===== @提及下拉 ===== */
.mention-dropdown{display:none;position:absolute;bottom:100%;left:20px;width:260px;max-height:200px;overflow-y:auto;background:#fff;border:1px solid #e8eaed;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.12);z-index:100}
.mention-dropdown.show{display:block}
.mention-dropdown .md-header{padding:8px 14px;font-size:11px;color:#9aa0a6;border-bottom:1px solid #f0f2f5;font-weight:500}
.mention-item{display:flex;align-items:center;gap:8px;padding:9px 14px;cursor:pointer;font-size:13px;transition:.1s}
.mention-item:hover,.mention-item.active{background:#e8f0fe}
.mention-item .mav{width:24px;height:24px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:11px;color:#fff;flex-shrink:0}
.mention-item .mname{flex:1}
.mention-item .mrole{font-size:11px;color:#9aa0a6}

/* ===== 转发弹窗 ===== */
.forward-panel-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.4);z-index:9999;align-items:center;justify-content:center}
.forward-panel-overlay.show{display:flex}
.forward-panel{background:#fff;border-radius:14px;width:420px;max-height:70vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 16px 48px rgba(0,0,0,.2)}
.fp-header{padding:16px 20px;border-bottom:1px solid #e8eaed;display:flex;justify-content:space-between;align-items:center}
.fp-header h3{font-size:16px;font-weight:600;display:flex;align-items:center;gap:6px}
.fp-body{padding:12px 20px;overflow-y:auto;flex:1}
.fp-search{padding:8px 0}
.fp-search input{width:100%;padding:8px 14px;border:1px solid #dadce0;border-radius:8px;font-size:13px;outline:none}
.fp-body .fp-search input:focus{border-color:#1a73e8}
.fp-group-item{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;border-radius:8px;transition:.1s;margin:4px 0}
.fp-group-item:hover{background:#f1f3f4}
.fp-group-item.selected{background:#e8f0fe}
.fp-group-item .fp-gicon{font-size:18px;flex-shrink:0;width:28px;text-align:center}
.fp-group-item .fp-gname{flex:1;font-size:14px;font-weight:500}
.fp-group-item .fp-gcount{font-size:11px;color:#9aa0a6}
.fp-footer{padding:12px 20px;border-top:1px solid #e8eaed;display:flex;justify-content:flex-end;gap:8px}
.fp-footer .btn{padding:8px 20px;font-size:13px}

/* ===== Toast 提示 ===== */
.toast-msg{position:fixed;top:80px;left:50%;transform:translateX(-50%);background:#1f1f1f;color:#fff;padding:10px 20px;border-radius:8px;font-size:13px;z-index:99999;opacity:0;transition:opacity .3s;pointer-events:none}
.toast-msg.show{opacity:1}

/* ===== 输入框@提示 ===== */
.input-wrap{position:relative;flex:1}

/* 统计看板 */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}
.s-box{background:#fff;border-radius:10px;padding:20px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.s-num{font-size:28px;font-weight:700;color:#1a73e8}
.s-lbl{font-size:12px;color:#5f6368;margin-top:4px}

/* 网格 */
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.g-item{padding:20px;border:1px solid #e8eaed;border-radius:10px;cursor:pointer;text-align:center;transition:all .2s;background:#fff}
.g-item:hover{border-color:#1a73e8;box-shadow:0 2px 8px rgba(26,115,232,.08);transform:translateY(-1px)}
.g-item .gi{font-size:26px;margin-bottom:6px}
.g-item .gn{font-size:14px;font-weight:500}
.g-item .gd{font-size:12px;color:#5f6368;margin-top:4px}

/* 群组列表新样式 */
.grp-item{display:flex;align-items:center;gap:16px;padding:16px 20px;background:#fff;border:1px solid #e8eaed;border-radius:12px;margin-bottom:10px;transition:all .2s}
.grp-item:hover{border-color:#1a73e8;box-shadow:0 2px 8px rgba(26,115,232,.08)}
.grp-color{width:6px;height:48px;border-radius:3px;flex-shrink:0}
.grp-info{flex:1;min-width:0}
.grp-name{font-size:16px;font-weight:600;color:#1f1f1f}
.grp-meta{font-size:12px;color:#5f6368;margin-top:4px;line-height:1.4}
.grp-acts{display:flex;gap:8px;flex-shrink:0}
.grp-acts .btn{padding:7px 16px;font-size:13px}

/* 弹出窗口 */
.modal{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.4);z-index:999;align-items:center;justify-content:center}
.modal.show{display:flex}
.modal-box{background:#fff;border-radius:14px;width:520px;max-height:80vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 16px 48px rgba(0,0,0,.2)}
.mh{padding:20px 24px;border-bottom:1px solid #e8eaed;display:flex;justify-content:space-between;align-items:center}
.mh h3{font-size:17px;font-weight:600}
.mh .mc{width:32px;height:32px;border-radius:8px;border:none;background:#f1f3f4;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}
.mb{padding:24px;overflow-y:auto;flex:1}
.mb .form-group{margin-bottom:16px}
.mf{padding:16px 24px;border-top:1px solid #e8eaed;display:flex;justify-content:flex-end;gap:12px}

/* 成员管理 */
.member-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f0f2f5}
.member-row .mav{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:600;flex-shrink:0}
.member-row .mname{flex:1;font-size:14px;font-weight:500}
.member-row .mrole{font-size:12px;color:#5f6368}

/* AI市场 */
.ai-g{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ai-cd{display:flex;align-items:center;gap:12px;padding:14px;background:#faf5ff;border:1px solid #e9d5ff;border-radius:10px;cursor:pointer;transition:all .2s}
.ai-cd:hover{background:#f3e8ff;border-color:#c084fc}
.ai-ico{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;background:rgba(147,51,230,.08);flex-shrink:0}
.ai-det{flex:1;min-width:0}
.ai-nm{font-size:14px;font-weight:600}
.ai-ds{font-size:12px;color:#5f6368;margin-top:2px}
.ai-cat{font-size:11px;font-weight:500;padding:2px 8px;border-radius:4px;flex-shrink:0}

/* 互联 */
.c-g{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.c-it{padding:20px;border:1px solid #e8eaed;border-radius:10px;text-align:center;cursor:pointer;background:#fff;transition:all .2s}
.c-it:hover{border-color:#34a853;box-shadow:0 2px 8px rgba(52,168,83,.08)}
.c-it .ci{font-size:28px;margin-bottom:6px}
.c-it .cn{font-size:13px;font-weight:500}
.c-it .cs{font-size:11px;color:#34a853;margin-top:4px}

/* 通讯录 */
.c-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f0f2f5}
.c-row .ca{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;font-weight:600;flex-shrink:0}
.cn{font-size:14px;font-weight:500}
.cr{font-size:12px;color:#5f6368}

/* 用户中心 */
.uc{background:#fff;border-radius:12px;padding:32px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.uc-top{display:flex;align-items:center;gap:20px;padding-bottom:24px;border-bottom:1px solid #e8eaed;margin-bottom:24px}
.uc-av{width:60px;height:60px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:24px;font-weight:600}
.uc-info h3{font-size:20px;font-weight:600}
.uc-info p{font-size:13px;color:#5f6368;margin-top:4px;line-height:1.5}

/* 类型标签筛选 */
.tab-row{display:flex;gap:6px;margin-bottom:16px;flex-wrap:wrap}
.tab-row span{padding:5px 14px;border:1px solid #dadce0;border-radius:6px;font-size:12px;cursor:pointer;color:#5f6368;transition:.2s}
.tab-row span.active,.tab-row span:hover{background:#1a73e8;color:#fff;border-color:#1a73e8}
.sort-row{display:flex;align-items:center;gap:10px;font-size:12px;color:#5f6368;margin-bottom:12px}
.sort-row span{cursor:pointer;padding:3px 8px;border-radius:4px}
.sort-row span.active{background:#e8f0fe;color:#1a73e8}


/* ===== 协同任务 ===== */

/* 加载状态 */
.loading-center {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 60px 0; color: #5f6368; font-size: 14px;
}
.loading-center .spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 空状态 */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 60px 0; color: #9aa0a6;
}
.empty-state i { width: 40px; height: 40px; opacity: 0.4; }
.empty-state p { font-size: 14px; }
.empty-state.error { color: #ea4335; }

/* 任务卡片 */
.task-card {
  background: #fff; border-radius: 10px; padding: 16px 20px;
  margin-bottom: 10px; cursor: pointer; transition: all .15s;
  border: 1px solid #e8eaed; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.task-card:hover {
  border-color: #1a73e8; box-shadow: 0 2px 8px rgba(26,115,232,.08);
}
.task-card.compact { padding: 12px 16px; }
.task-card-header { display: flex; flex-direction: column; gap: 8px; }
.task-title-row {
  display: flex; align-items: center; gap: 8px;
}
.task-title { font-size: 15px; font-weight: 600; color: #1f1f1f; flex: 1; }
.task-card-body {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; color: #5f6368;
}
.task-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px solid #f0f2f5;
}
.task-deadline, .task-assignee {
  display: inline-flex; align-items: center; gap: 4px;
}

/* 状态标签 */
.task-status-pending,
.task-status-todo {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: #f1f3f4; color: #5f6368;
}
.task-status-in_progress {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: #e8f0fe; color: #1a73e8;
}
.task-status-paused {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: #fef3e2; color: #f59e0b;
}
.task-status-completed {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: #e8f5e9; color: #34a853;
}
.task-status-verified {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: #e8f5e9; color: #1b8a4a;
}
.task-status-rejected {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500;
  background: #fce8e6; color: #ea4335;
}

/* 状态图标 */
.task-icon-todo { color: #9aa0a6; }
.task-icon-progress { color: #1a73e8; }
.task-icon-paused { color: #f59e0b; }
.task-icon-done { color: #34a853; }
.task-icon-verified { color: #1b8a4a; }
.task-icon-rejected { color: #ea4335; }
.task-icon-cancelled { color: #9aa0a6; }

/* 优先级 */
.task-priority {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 4px; font-size: 11px; font-weight: 600;
}
.task-priority.p-high { background: #fce8e6; color: #ea4335; }
.task-priority.p-medium { background: #fef3e2; color: #f59e0b; }
.task-priority.p-low { background: #e8f5e9; color: #34a853; }

/* 任务操作按钮 */
.task-actions { display: flex; gap: 4px; }

/* ===== task form modal ===== */
.task-form-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45); z-index: 99999;
}
.task-form-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 16px; width: 560px;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.15); z-index: 100000;
  overflow: hidden;
}
.task-form-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid #e8eaed;
}
.task-form-header h3 { font-size: 16px; font-weight: 600; margin: 0; }
.task-form-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.task-form-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 24px; border-top: 1px solid #e8eaed;
}
.t-btn-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: #f1f3f4; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; transition: .15s;
}
.t-btn-close:hover { background: #e8eaed; }
.form-input {
  width: 100%; padding: 9px 14px; border: 1px solid #dadce0;
  border-radius: 8px; font-size: 14px; outline: none;
  transition: border .15s; box-sizing: border-box;
}
.form-input:focus { border-color: #1a73e8; }
textarea.form-input { resize: vertical; line-height: 1.5; }
select.form-input { appearance: auto; }
.checkbox-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 8px 0;
}
.checkbox-row label {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; cursor: pointer; color: #1f1f1f;
}
.day-grid, .month-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 4px; padding: 8px 12px; background: #fff;
  border-radius: 6px; border: 1px solid #e8eaed; margin-left: 24px;
}
.day-grid label, .month-grid label {
  font-size: 12px; display: flex; align-items: center;
  gap: 4px; cursor: pointer;
}

/* ===== task detail modal ===== */
.task-detail-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45); z-index: 99999;
}
.task-detail-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 16px; width: 720px;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.15); z-index: 100000;
  overflow: hidden;
}

/* ===== 任务协同讨论区 ===== */
.task-collab {
  margin-top: 16px; border-top: 1px solid #e8eaed; padding-top: 12px;
}
.task-collab h4 {
  font-size: 13px; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 4px; color: #1f1f1f;
}
.task-collab-msgs {
  max-height: 180px; overflow-y: auto; margin-bottom: 8px;
  background: #f8f9fb; border-radius: 8px; padding: 8px; border: 1px solid #e8eaed;
}
.task-collab-msg {
  display: flex; gap: 6px; margin-bottom: 6px; font-size: 13px; line-height: 1.4;
}
.task-collab-msg:last-child { margin-bottom: 0; }
.task-collab-av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.task-collab-name {
  font-weight: 600; font-size: 11px; color: #1f1f1f; margin-bottom: 1px;
}
.task-collab-text { color: #3c4043; word-break: break-word; }
.task-collab-time { font-size: 10px; color: #9aa0a6; margin-left: 4px; }
.task-collab-empty {
  text-align: center; color: #9aa0a6; font-size: 12px; padding: 16px 0;
}
.task-collab-input-wrap {
  display: flex; gap: 6px; align-items: flex-end;
}
.task-collab-input {
  flex: 1; padding: 8px 10px; border: 1px solid #dadce0; border-radius: 8px;
  font-size: 13px; outline: none; resize: none; min-height: 34px;
  font-family: inherit; line-height: 1.4;
}
.task-collab-input:focus { border-color: #1a73e8; }
.task-collab-send {
  padding: 7px 14px; border: none; border-radius: 8px; background: #1a73e8;
  color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
  white-space: nowrap; display: flex; align-items: center; gap: 4px;
}
.task-collab-send:hover { background: #1557b0; }
.task-detail-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 24px; border-bottom: 1px solid #e8eaed;
}
.task-detail-title-row {
  display: flex; align-items: center; gap: 8px; flex: 1;
}
.task-detail-title-row h3 {
  font-size: 17px; font-weight: 600; margin: 0; flex: 1;
}
.task-detail-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.task-detail-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 16px;
}
.meta-item {
  display: flex; flex-direction: column; gap: 4px;
}
.meta-label { font-size: 12px; color: #5f6368; }
.meta-value { font-size: 14px; color: #1f1f1f; font-weight: 500; }
.task-detail-desc {
  margin-bottom: 16px; padding: 14px; background: #f8f9fb;
  border-radius: 8px; border: 1px solid #e8eaed;
}
.task-detail-desc h4 {
  font-size: 13px; font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; gap: 4px;
}
.task-detail-desc p { font-size: 13px; color: #3c4043; line-height: 1.6; }
.task-detail-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid #e8eaed;
}

/* ===== task buttons ===== */
.t-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.t-btn-sm { padding: 6px 12px; font-size: 12px; }
.t-btn-primary { background: #1a73e8; color: #fff; }
.t-btn-primary:hover { background: #1557b0; }
.t-btn-success { background: #e8f5e9; color: #34a853; }
.t-btn-success:hover { background: #c8e6c9; }
.t-btn-warning { background: #fef3e2; color: #f59e0b; }
.t-btn-warning:hover { background: #fde6c0; }
.t-btn-danger { background: #fce8e6; color: #ea4335; }
.t-btn-danger:hover { background: #f5d5d2; }
.t-btn-dark { background: #1f1f1f; color: #fff; }
.t-btn-dark:hover { background: #3c4043; }
.t-btn-ghost { background: #f1f3f4; color: #5f6368; }
.t-btn-ghost:hover { background: #e8eaed; }
.t-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
}
.t-badge-success { background: #e8f5e9; color: #34a853; }

/* 评论 */
.comment-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}
.comment-av {
  width: 30px; height: 30px; border-radius: 8px;
  background: #1a73e8; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.comment-author { font-size: 13px; font-weight: 600; color: #1f1f1f; }
.comment-time { font-size: 11px; color: #9aa0a6; }
.comment-text { font-size: 13px; color: #3c4043; line-height: 1.5; }

/* ===== Phosphor Icons 适配 ===== */

.conv-av 
.conv-av.g 
.topbar .nav a 
.chat-hr 
.top-icon 

/* ===== Lucide Icons 基础适配 ===== */
[data-lucide] {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center;
    justify-content: center; flex-shrink: 0;
    stroke-width: 1.5;
}
.conv-av [data-lucide] { width: 30px; height: 30px; stroke-width: 1.8; }
.conv-av.g [data-lucide] { width: 32px; height: 32px; }

/* ===== 工单标签色已关 ===== */
.t-gray{background:#f0f2f5;color:#9aa0a6}

/* ===== 组内讨论弹窗 ===== */
.grp-discuss-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45); z-index: 99999;
}
.grp-discuss-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 16px; width: 520px; max-height: 80vh;
  display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(0,0,0,.15);
  z-index: 100000; overflow: hidden;
}
.grp-discuss-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #e8eaed; flex-shrink: 0;
}
.grp-discuss-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.grp-discuss-close {
  width: 32px; height: 32px; border: none; background: none;
  border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #5f6368;
}
.grp-discuss-close:hover { background: #f1f3f4; }
.grp-discuss-body { flex: 1; overflow-y: auto; padding: 12px 16px; min-height: 200px; max-height: 320px; }
.grp-discuss-msg {
  display: flex; gap: 8px; margin-bottom: 10px; font-size: 13px; line-height: 1.4;
}
.grp-discuss-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.grp-discuss-name { font-weight: 600; font-size: 11px; color: #1f1f1f; }
.grp-discuss-text { color: #3c4043; word-break: break-word; }
.grp-discuss-time { font-size: 10px; color: #9aa0a6; margin-left: 6px; }
.grp-discuss-empty {
  text-align: center; color: #9aa0a6; font-size: 12px; padding: 40px 0;
}
.grp-discuss-input-wrap {
  display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid #e8eaed; flex-shrink: 0;
}
.grp-discuss-input {
  flex: 1; padding: 8px 10px; border: 1px solid #dadce0; border-radius: 8px;
  font-size: 13px; outline: none; font-family: inherit; line-height: 1.4;
}
.grp-discuss-input:focus { border-color: #1a73e8; }
.grp-discuss-send {
  padding: 7px 14px; border: none; border-radius: 8px; background: #1a73e8;
  color: #fff; font-size: 13px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.grp-discuss-send:hover { background: #1557b0; }
