/* ══════════════════════════════════════════════════════════
   06-netdisk.css · 网盘式成果库（文件夹页 + 预览页）
   ══════════════════════════════════════════════════════════ */

/* ── 文件夹页头部 ── */
.fd-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 22px 6px}
.fd-title{display:flex;align-items:center;gap:10px}
.fd-title .fic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none}
.fd-title h1{font-size:19px;font-weight:800;letter-spacing:-.01em;line-height:1.2}
.fd-title .fd-meta{font-size:11.5px;color:var(--muted);margin-top:2px}
.fd-head .grow{flex:1}

/* 上传按钮：淡青色，与其他按钮区分 */
.btn.upload-soft{background:#eaf7f7;color:#1b6c80;border:1px solid #cfe9ea;box-shadow:none}
.btn.upload-soft:hover{background:#dcf1f2;border-color:#a9dcdf;color:#125762}
.btn.upload-soft .ui-icon{color:#1b6c80}

/* 子分组标签（仅 BOM 设计） */
.subtabs{display:flex;gap:6px;padding:6px 22px 0;flex-wrap:wrap}
.subtab{height:30px;padding:0 13px;border-radius:8px;font-size:12px;font-weight:600;
  background:#f1f1f7;color:#6b7086;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.subtab.on{background:#f1e9ff;color:#6d3fd6}
.subtab .n{font-size:10.5px;font-weight:800;background:#fff;border-radius:5px;padding:0 5px;line-height:16px;color:inherit}

/* 工具条 */
.fd-bar{display:flex;align-items:center;gap:10px;padding:12px 22px 10px;flex-wrap:wrap}
.fd-bar .cnt{font-size:12px;color:var(--muted)}
.fd-bar .grow{flex:1}
.fd-bar .search{height:32px;border:1px solid #e6e2f0;border-radius:9px;background:#fff;padding:0 11px;
  font-size:12px;width:200px;color:#4b5062}
.fd-bar .toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#6b7086;cursor:pointer;user-select:none}
.fd-bar .toggle input{accent-color:#8b5cf6}

/* ── 文件卡片网格 ── */
.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:14px;padding:6px 22px 26px}
.fcard{position:relative;background:#fff;border:1px solid #efeaf7;border-radius:14px;padding:14px 14px 12px;
  cursor:pointer;transition:transform .14s,box-shadow .14s,border-color .14s;text-align:left}
.fcard:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(90,60,140,.10);border-color:#e0d4f5}
.fcard .fmain{display:flex;align-items:flex-start;gap:10px}
.fcard .ftile{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;flex:none;font-size:9.5px;font-weight:800}
.fcard .fname{font-size:13px;font-weight:700;color:#23262f;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-all}
.fcard .fver{font-size:10.5px;color:#8a8fa3;margin-top:3px;font-variant-numeric:tabular-nums}
.fcard .ffoot{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:10.5px;color:#9a94ab;flex-wrap:wrap}
.fcard .ffoot .dot{width:3px;height:3px;border-radius:50%;background:#d5d0e0}
.fcard .fstat{position:absolute;top:11px;right:11px}
.fcard .st{font-size:10px;font-weight:800;padding:2px 7px;border-radius:5px;white-space:nowrap}
.st.approved{background:#e7f6ef;color:#1e7b4f}
.st.pending{background:#fff6e7;color:#945d15}
.st.rejected{background:#ffeef0;color:#c4242a}
.st.history{background:#f1f2f7;color:#8a8fa3}

.fcard.history{opacity:.62}
.fcard.history:hover{opacity:1}

/* 右键菜单 */
.ctx{position:fixed;z-index:900;min-width:150px;background:#fff;border:1px solid #ece7f6;border-radius:11px;
  box-shadow:0 14px 38px rgba(60,40,100,.18);padding:5px;display:none}
.ctx.on{display:block}
.ctx button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 11px;border-radius:8px;
  font-size:12.5px;color:#4b5062;text-align:left;border:0;background:none;cursor:pointer}
.ctx button:hover{background:#f8f4ff;color:#6d3fd6}
.ctx .sep{height:1px;background:#f4f0fa;margin:4px 6px}

/* 空状态 */
.fd-empty{padding:60px 20px;text-align:center;color:#b4adc4;font-size:13px}
.fd-empty .ui-icon{margin:0 auto 10px;color:#d6cfe6}

/* ── 预览页 ── */
.pv-head{display:flex;align-items:center;gap:12px;padding:16px 22px;flex-wrap:wrap;border-bottom:1px solid #f2eef9}
.pv-head .pv-name{font-size:15px;font-weight:800;color:#23262f;display:flex;align-items:center;gap:9px}
.pv-head .pv-sub{font-size:11.5px;color:var(--muted);margin-top:2px}
.pv-head .grow{flex:1}

.pv-body{padding:18px 22px 28px}
.pv-canvas{background:#fbfaff;border:1px solid #f0ecf8;border-radius:14px;min-height:420px;overflow:auto}

/* xlsx 预览表格 */
.pv-table{width:100%;border-collapse:collapse;font-size:12px;background:#fff}
.pv-table thead th{position:sticky;top:0;background:#f7f5fd;color:#6b7086;font-size:11px;font-weight:700;
  text-align:left;padding:10px 12px;border-bottom:1px solid #eeebf6;white-space:nowrap}
.pv-table tbody td{padding:9px 12px;border-bottom:1px solid #f6f3fb;color:#4b5062;white-space:nowrap}
.pv-table tbody tr:last-child td{border-bottom:0}
.pv-table tbody td.num{text-align:right;font-variant-numeric:tabular-nums}
.pv-sheet-tabs{display:flex;gap:4px;padding:8px 10px;background:#f7f5fd;border-bottom:1px solid #eeebf6;position:sticky;top:0;z-index:2}
.pv-sheet-tab{height:26px;padding:0 11px;border-radius:7px;font-size:11.5px;font-weight:600;background:transparent;
  color:#7b7690;border:0;cursor:pointer}
.pv-sheet-tab.on{background:#fff;color:#6d3fd6;box-shadow:0 2px 6px rgba(90,60,140,.08)}

/* 图片预览 */
.pv-image{display:grid;place-items:center;padding:26px}
.pv-image img{max-width:100%;border-radius:10px;box-shadow:0 8px 26px rgba(60,40,100,.12)}
.pv-fallback{display:grid;place-items:center;gap:12px;padding:70px 20px;color:#8a8fa3;font-size:13px;text-align:center}
.pv-fallback .big{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:#f1ecfa;color:#8b5cf6}

/* 预览页底部：提交备注 + 审核 */
.pv-foot{margin:0 22px 26px;background:#fbfaff;border:1px solid #f0ecf8;border-radius:14px;padding:14px 16px}
.pv-foot .row{display:flex;gap:16px;flex-wrap:wrap}
.pv-foot .k{font-size:11px;font-weight:700;color:#8b7aa8;letter-spacing:.06em;margin-bottom:5px}
.pv-foot .v{font-size:12.5px;color:#3b3550;line-height:1.6}
.pv-foot .note-box{background:#fff;border:1px solid #efeaf7;border-radius:9px;padding:10px 12px;font-size:12.5px;
  color:#4b5062;line-height:1.6;margin-top:2px}
.pv-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}
.btn.danger-soft{background:#ffeef0;color:#c4242a;border:1px solid #f9d3d8;box-shadow:none}
.btn.danger-soft:hover{background:#ffe0e3;border-color:#f5bcc3}
.btn.ok-soft{background:#e7f6ef;color:#1e7b4f;border:1px solid #c9ecdb;box-shadow:none}
.btn.ok-soft:hover{background:#d9f2e6;border-color:#a9e0c6}

/* 上传弹窗 */
.drop-zone{border:1.5px dashed #d7c9f0;border-radius:12px;background:#fbfaff;padding:26px 18px;text-align:center;
  color:#8a8fa3;font-size:12.5px;cursor:pointer;transition:.15s}
.drop-zone:hover,.drop-zone.on{background:#f6f0ff;border-color:#b493ee;color:#6d3fd6}
.drop-zone .big{width:46px;height:46px;border-radius:13px;background:#f1e9ff;color:#8b5cf6;display:grid;place-items:center;margin:0 auto 10px}
.picked-file{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #efeaf7;border-radius:10px;
  background:#fff;margin-top:10px;font-size:12px}
.picked-file .nm{font-weight:600;color:#2b2d3a;word-break:break-all}
.picked-file .rm{margin-left:auto;color:#c0b9cf;border:0;background:none;cursor:pointer;font-size:16px}
.picked-file .rm:hover{color:#c4242a}

/* 移动端 */
@media(max-width:760px){
  .file-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:6px 14px 20px}
  .fd-head,.fd-bar,.subtabs{padding-left:14px;padding-right:14px}
  .pv-head,.pv-body{padding-left:14px;padding-right:14px}
  .pv-foot{margin-left:14px;margin-right:14px}
}

/* 总览底部动作：靠右对齐，上传与导出行高一致 */
.overview-bottom{justify-content:flex-end;gap:10px}
.overview-bottom .btn{height:36px}

/* 阶段行：橙色待审提醒（内联在负责人后面） */
.stage-pending{display:inline-flex;align-items:center;gap:4px;margin-left:6px;font-size:9.5px;font-weight:800;
  color:#b45309;background:#fff6e7;border:1px solid #f6e0bd;border-radius:6px;padding:1px 6px;
  white-space:nowrap;cursor:pointer;font-family:inherit;line-height:15px;vertical-align:1px}
.stage-pending:hover{background:#ffeccf;border-color:#f0cd97}
.stage-pending i{width:6px;height:6px;border-radius:50%;background:#ff9f43;
  box-shadow:0 0 0 1.5px #fff;animation:pulseDot 2s ease-in-out infinite}
@keyframes pulseDot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.85)}}
@media(prefers-reduced-motion:reduce){.stage-pending i{animation:none}}


/* ══════════ 面包屑 + 返回上层 ══════════ */
.crumb-bar{display:flex;align-items:center;gap:12px;padding:14px 22px 0;flex-wrap:wrap}
.crumb{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#8a8fa3;flex-wrap:wrap}
.crumb-item{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:#6b7086;font-weight:600}
.crumb-item:hover{color:#6d3fd6}
.crumb-item.cur{color:#2b2d3a;font-weight:700}
.crumb-sep{display:inline-flex;color:#cfc7dd}
.btn.back-up{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;font-size:12px;
  border-radius:9px;background:#fff;border:1px solid #e6e2f0;box-shadow:none;color:#5b4a7d}
.btn.back-up:hover{background:#f6f0ff;border-color:#d6c8f0;color:#6d3fd6}

/* 视图切换 */
.view-toggle{display:inline-flex;background:#f1f1f7;border-radius:9px;padding:3px;gap:2px}
.view-toggle button{width:30px;height:26px;border-radius:7px;border:0;background:none;color:#8a8fa3;
  display:grid;place-items:center;cursor:pointer}
.view-toggle button.on{background:#fff;color:#6d3fd6;box-shadow:0 2px 6px rgba(90,60,140,.1)}

/* ══════════ 子目录方块区（倒角背景容器） ══════════ */
.dir-area{margin:14px 22px 4px;background:linear-gradient(160deg,#faf8ff,#f6f3fd);
  border:1px solid #efe9fa;border-radius:18px;padding:14px 16px 16px}
.dir-area-hd{display:flex;align-items:center;gap:8px;margin-bottom:11px}
.dir-area-hd .da-title{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#5b4a7d;letter-spacing:.02em}
.dir-area-hd .da-hint{font-size:11px;color:#a9a3b8}

.dir-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:10px}
.dir-tile{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:11px;background:#fff;
  border:1px solid #efeaf7;text-decoration:none;transition:transform .14s,box-shadow .14s,border-color .14s}
.dir-tile:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(90,60,140,.10);border-color:#ddd0f3}
.dir-tile.on{background:#f4ecff;border-color:#d6bff5;box-shadow:0 4px 12px rgba(120,80,200,.12)}
.dir-tile.up{background:#fbf8ff;border-style:dashed;border-color:#ddd0f3}
.dir-tile .dt-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;
  background:#f4efff;color:#8054d7}
.dir-tile.on .dt-icon{background:#ebe0ff;color:#6d3fd6}
.dir-tile .dt-body{min-width:0}
.dir-tile .dt-name{display:block;font-size:12.5px;font-weight:700;color:#2b2d3a;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.dir-tile .dt-count{display:block;font-size:10.5px;color:#9a94ab;margin-top:2px}

/* ══════════ 根目录：六个文件夹大块 ══════════ */
.dir-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;padding:8px 22px 26px}
.dir-block{display:flex;align-items:center;gap:14px;padding:18px;border-radius:16px;background:#fff;
  border:1px solid #efeaf7;text-decoration:none;transition:transform .16s,box-shadow .16s,border-color .16s}
.dir-block:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(90,60,140,.12);border-color:#ddd0f3}
.db-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;flex:none;border:1px solid}
.db-body{flex:1;min-width:0}
.db-name{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:800;color:#23262f}
.db-dot{font-style:normal;font-size:10px;font-weight:800;background:#fff3e2;color:#b45309;border-radius:5px;padding:1px 6px}
.db-desc{display:block;font-size:11.5px;color:#8a8fa3;margin-top:4px;line-height:1.5}
.db-meta{display:block;font-size:10.5px;color:#b4adc4;margin-top:5px}
.db-arrow{color:#cfc7dd;flex:none}
.dir-block:hover .db-arrow{color:#8054d7}

/* ══════════ 列表视图 ══════════ */
.file-list{padding:2px 22px 26px;display:flex;flex-direction:column;gap:4px}
.frow{display:grid;grid-template-columns:44px minmax(180px,2.2fr) minmax(90px,1fr) 80px minmax(130px,1.2fr) 78px;
  align-items:center;gap:12px;padding:9px 12px;border-radius:10px;background:#fff;border:1px solid transparent;
  cursor:pointer;transition:background .14s,border-color .14s}
.frow:hover{background:#faf8ff;border-color:#efe9fa}
.frow.history{opacity:.6}
.fr-tile{width:34px;height:26px;border-radius:6px;display:grid;place-items:center;font-size:9px;font-weight:800}
.fr-name{font-size:12.5px;font-weight:700;color:#23262f;display:flex;align-items:center;gap:6px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-name em{font-style:normal;font-size:10.5px;font-weight:600;color:#9a94ab}
.fr-group,.fr-size,.fr-who{font-size:11.5px;color:#8a8fa3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-size{text-align:right;font-variant-numeric:tabular-nums}

/* ══════════ 移动端 ══════════ */
@media(max-width:900px){
  .frow{grid-template-columns:40px 1fr 70px;gap:8px}
  .fr-group,.fr-who{display:none}
  .dir-grid{grid-template-columns:1fr;padding:8px 14px 20px}
  .dir-tiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
  .crumb-bar{padding:12px 14px 0;gap:8px}
  .dir-area{margin:12px 14px 4px;padding:12px}
}
@media(max-width:560px){
  .dir-grid{grid-template-columns:1fr}
  .db-icon{width:44px;height:44px}
  .dir-tile .dt-count{display:none}
}

/* 卡片标题避让右上角状态标签 */
.fcard .fmain{padding-right:52px}
.fcard .fname{word-break:break-all}

/* ══════════ 窄屏：顶栏与操作按钮 ══════════ */
@media(max-width:820px){
  .top .back{width:34px !important;height:34px !important;padding:0 !important;justify-content:center;font-size:0 !important;gap:0 !important;flex:none}
  .top .back svg{width:16px !important;height:16px !important}
  .top .workspace-name{display:none}
  .top .global-search{display:none}
  .crumb{font-size:12px;gap:4px}
  .crumb-item{white-space:nowrap}
  .fd-head{padding-top:10px}
  .fd-head .btn{height:34px;padding:0 12px;font-size:12px}
  .fd-title h1{font-size:17px}
  .fd-title .fd-meta{font-size:11px}
  .fd-bar{flex-wrap:wrap;gap:8px}
  .fd-bar .search{width:100%;order:3}
}
@media(max-width:560px){
  .fcard{padding:12px 12px 10px}
  .fcard .fmain{padding-right:48px}
  .fcard .fname{font-size:12.5px}
  .dir-tile{padding:10px}
  .dir-tile .dt-icon{width:30px;height:30px}
  .fd-head{gap:8px}
  .fd-head .btn{flex:1;justify-content:center}
}


/* ══════════ 文件夹页顶部两个主操作按钮（醒目） ══════════ */
.btn.btn-lg{height:40px;padding:0 18px;font-size:13px;font-weight:700;border-radius:11px;gap:7px}
.btn.btn-lg .ui-icon{width:17px;height:17px}
/* 上传成果：紫色渐变，主操作 */
.btn.pri.btn-lg{box-shadow:0 8px 20px rgba(139,92,246,.30)}
.btn.pri.btn-lg:hover{box-shadow:0 10px 26px rgba(139,92,246,.38)}
/* 打包下载：青色实心，与上传区分 */
.btn.pack-strong{background:linear-gradient(120deg,#43c6d6,#1b8fa3);color:#fff;border:1px solid #16808f;
  box-shadow:0 8px 20px rgba(27,143,163,.28)}
.btn.pack-strong:hover{background:linear-gradient(120deg,#39b9c9,#157f91);box-shadow:0 10px 26px rgba(27,143,163,.36)}
.btn.pack-strong .ui-icon{color:#fff}

/* ══════════ STEP 三维预览 ══════════ */
.step-wrap{padding:14px;display:flex;flex-direction:column;align-items:center;gap:8px}
.step-wrap canvas{width:100%;max-width:900px;height:auto;border-radius:12px;background:
  radial-gradient(600px 300px at 50% 30%,#fbf8ff,#f6f3fd);border:1px solid #efeaf7;touch-action:none}
.step-hint{font-size:11.5px;color:#a9a3b8}
.step-info{font-size:11px;color:#8b7aa8;font-variant-numeric:tabular-nums}

/* ══════════ PDF 自渲染 ══════════ */
.pdf-wrap{background:#f4f2fa;border-radius:12px;padding:16px;max-height:min(72vh,760px);overflow:auto}
.pdf-pages{display:flex;flex-direction:column;gap:14px;align-items:center}
.pdf-page{width:100%;max-width:760px;height:auto;border-radius:8px;box-shadow:0 6px 20px rgba(60,40,100,.14);background:#fff}
.pdf-tip{font-size:11.5px;color:#8b7aa8;padding:6px 0 2px}

/* ══════════ 顶栏「分配人员」按钮（参考三张大卡片风格，小一号） ══════════ */
.members-btn{display:flex;align-items:center;gap:9px;height:46px;padding:0 15px 0 12px;border-radius:15px;flex:none;white-space:nowrap;
  text-decoration:none;color:#4a2380;border:1px solid #e6dcf8;
  background:linear-gradient(120deg,#f3ecff 0%,#fdf1f7 55%,#fff5ef 100%);
  box-shadow:inset 0 1px 0 #ffffffaa,0 4px 14px rgba(104,95,132,.10);
  transition:transform .16s,box-shadow .16s}
.members-btn:hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 #ffffffaa,0 8px 20px rgba(104,95,132,.18)}
.members-btn .mb-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;flex:none;
  background:linear-gradient(135deg,#c9a8ff,#8b5cf6);color:#fff;box-shadow:0 3px 8px rgba(139,92,246,.30)}
.members-btn .mb-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.members-btn .mb-txt{display:flex;flex-direction:column;line-height:1.18;white-space:nowrap}
.members-btn .mb-txt b,.members-btn .mb-txt{font-size:12.5px;font-weight:800;letter-spacing:-.01em}
.members-btn .mb-txt small{font-size:9.5px;font-weight:600;color:#8b7aa8;margin-top:1px}

/* 侧栏新导航 */
.workspace-nav a.nav-new{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;
  font-size:12.5px;color:#6b6f80;text-decoration:none;font-weight:600}
.workspace-nav a.nav-new:hover{background:#f6f2ff;color:#6d3fd6}
.workspace-nav a.nav-new .ui-icon{width:17px;height:17px;color:#9a8cc0}
.workspace-nav a.nav-new:hover .ui-icon{color:#7b4bd6}
.nav-badge{margin-left:auto;font-size:9.5px;font-weight:800;background:#fff3e2;color:#b45309;
  border-radius:5px;padding:1px 6px}

/* 三张状态卡：纯展示，不可点击 */
.summary-card{cursor:default}
.summary-card:hover{transform:none;box-shadow:inset 0 1px 0 #ffffff75,0 5px 20px #685f8410}

@media(max-width:900px){
  .members-btn .mb-txt small{display:none}
  .members-btn{height:40px;padding:0 12px 0 9px}
  .members-btn .mb-icon{width:26px;height:26px}
}

/* 顶栏拥挤时优先保住品牌与按钮 */
@media(max-width:1560px){ .members-btn .mb-txt small{display:none} }
@media(max-width:1720px){ .top .workspace-name{display:none} }


/* 顶栏品牌禁止被压缩（否则会被搜索框吃掉） */
.top .brand{flex:none}
.top .global-search{min-width:160px}

/* ══════════ 总览顶部：与下方两栏严格对齐 ══════════ */
.project-summary{display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);gap:20px;align-items:stretch}
.summary-left{display:flex;gap:17px;align-items:stretch;min-width:0}
.summary-left .project-identity{flex:1;min-width:0}
.summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;min-width:0}

/* 分配人员卡：与三卡同款，宽度更窄 */
.summary-card.members-card{flex:none;width:168px;text-decoration:none;color:inherit;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;
  background:linear-gradient(150deg,#f6efff 0%,#fdf2f8 55%,#fff6ef 100%);
  border:1px solid #eadcfb;min-height:0}
.summary-card.members-card:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #ffffff75,0 12px 28px #77679926}

/* 右上「项目状态」卡：整卡可点，进入状态/优先级修改页 */
.summary-card.state-card{position:relative;cursor:pointer;text-decoration:none;color:inherit}
.summary-card.state-card:hover{transform:translateY(-3px);box-shadow:inset 0 1px 0 #ffffff75,0 12px 28px #77679926}
.state-card .state-go{position:absolute;right:11px;top:9px;font-size:9.5px;font-weight:800;color:#a0565c;opacity:.85;white-space:nowrap}
.summary-card.members-card .summary-icon{background:linear-gradient(135deg,#c9a8ff,#8b5cf6);color:#fff;
  box-shadow:0 4px 12px rgba(139,92,246,.28)}
.summary-card.members-card strong{font-size:13px;font-weight:800;color:#3d1d7a}
.summary-card.members-card small{font-size:11px;color:#8b7aa8;display:block;margin-top:2px}
.summary-card.members-card em{font-style:normal;font-size:10px;color:#a9a3b8;display:block;margin-top:1px}

@media(max-width:1280px){
  .project-summary{grid-template-columns:1fr}
  .summary-left{flex-wrap:wrap}
  .summary-card.members-card{width:100%;flex-direction:row;align-items:center;gap:12px}
}

/* 视图切换：放大版，放在上传成果左侧 */
.view-toggle.lg{background:#f4f1fb;border-radius:12px;padding:4px;gap:3px;flex:none}
.view-toggle.lg button{width:42px;height:32px;border-radius:9px;border:0;background:none;color:#8a7aa8;
  display:grid;place-items:center;cursor:pointer;transition:.15s}
.view-toggle.lg button svg{width:20px !important;height:20px !important}
.view-toggle.lg button:hover{color:#6d3fd6}
.view-toggle.lg button.on{background:#fff;color:#6d3fd6;box-shadow:0 3px 10px rgba(90,60,140,.14)}
@media(max-width:760px){.view-toggle.lg button{width:36px;height:28px}}

/* 顶栏：让右侧按钮组真正贴右（原 .top-spacer 的 order:2 会把它排到最后） */
.top .top-spacer{order:0;flex:1 1 auto;min-width:0}



/* ══════════ 侧栏项目列表（动态 · 单行紧凑） ══════════ */
.side{display:flex;flex-direction:column;overflow:hidden}
.project-list{flex:1;min-height:0;display:flex;flex-direction:column;margin:13px 0 8px}
#projectItems{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:2px;scrollbar-width:thin}
#projectItems::-webkit-scrollbar{width:5px}
#projectItems::-webkit-scrollbar-thumb{background:#dcd5ea;border-radius:99px}
.side-bottom-nav{flex:none;margin-top:8px;padding-top:7px;border-top:1px solid #e9e6f2}
.side-bottom-nav .nav-group-label{padding-top:2px;padding-bottom:4px}
.side-bottom-nav .workspace-nav{margin-bottom:0}
.sidebar-bottom{flex:none}

/* 公告面板：点铃铛铺满可用高度，公告多时内部滚动 */
.pop{width:min(460px,calc(100vw - 20px));height:min(78vh,780px);max-height:min(84vh,820px)}
.pop .body{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}
.pop .body::-webkit-scrollbar{width:6px}
.pop .body::-webkit-scrollbar-thumb{background:#ddd5ec;border-radius:99px}
.notice-empty{padding:42px 16px;text-align:center;color:#aaa3b8;font-size:12px}
.wn-project{margin-left:auto;font-size:11px;font-weight:600;color:#8a73b8;background:#f3edff;border:1px solid #e4d5fb;border-radius:999px;padding:2px 8px}
.wn-scope{font-size:12px;color:#5f6473;background:#f8f6fc;border:1px solid #eee8f7;border-radius:9px;padding:9px 11px}
.project-row{position:relative;display:block;width:100%}
.project-row .project-link{width:100%;min-width:0;display:flex;align-items:center;gap:8px;text-align:left;
  padding:7px 30px 7px 12px}
.project-link::before{top:9px;bottom:9px}
.project-row.done .project-link::before{background:#22a06b}
.project-row.warn .project-link::before{background:#e8892b}
.month-nav{flex:none;display:flex;align-items:center;gap:6px;margin-top:5px;padding-top:6px;border-top:1px dashed #e9e6f2}
.mnav-arrow{width:26px;height:24px;border:1px solid #e8e2f2;border-radius:7px;background:#fff;color:#6d3fd6;
  font-size:16px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0 0 2px;font-family:inherit}
.mnav-arrow:hover{background:#f3edff;border-color:#d8c4f6}
.mnav-label{flex:1;height:24px;border:0;background:transparent;color:#6f6880;font-size:10.5px;font-weight:700;
  cursor:pointer;border-radius:7px;font-family:inherit;white-space:nowrap}
.mnav-label:hover{background:#f7f3ff;color:#5b2f9e}
.pl-main{min-width:0;flex:1;display:flex;align-items:baseline;gap:8px;overflow:hidden}
.pl-name{display:block;min-width:0;font-size:12px;font-weight:600;color:#241a3d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-sales{flex:none;margin-left:auto;max-width:88px;font-size:10px;font-weight:600;color:#9a94ab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-badges{display:flex;gap:4px;margin-top:4px}
.pstate,.pprio{font-size:9px;font-weight:800;border-radius:4px;padding:1px 5px;border:1px solid transparent;line-height:13px}
/* 删除按钮：卡片内右侧，悬停 2 秒后浮现 */
.pl-del{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:6px;border:0;background:#fff;
  color:#c9c2d8;display:grid;place-items:center;cursor:pointer;flex:none;opacity:0;pointer-events:none;
  transition:opacity .2s ease,background .15s,color .15s;box-shadow:0 2px 6px rgba(90,60,140,.10);z-index:3}
.project-row:hover .pl-del{opacity:1;pointer-events:auto;transition-delay:2s,0s,0s}
.pl-del:hover{background:#ffeef0;color:#c4242a}
.plist-new{margin-left:auto;font-size:10.5px;font-weight:800;color:#6d3fd6;background:#f3edff;border:1px solid #e2d5fb;
  border-radius:6px;padding:2px 7px;cursor:pointer;font-family:inherit}
.plist-new:hover{background:#e9ddff}
.plist-empty{font-size:11px;color:#b4adc4;padding:10px 12px;line-height:1.6}

/* 紧急度标记 */
.project-priority{font-size:10px;font-weight:800;border-radius:6px;padding:2px 8px;margin-left:6px}

/* ══════════ 项目分组 / 回收站 ══════════ */
.pl-group{margin-bottom:2px}
.pl-group-hd{display:flex;align-items:center;gap:6px;width:100%;padding:7px 10px;border:0;background:none;
  font-family:inherit;font-size:11px;font-weight:700;color:#7b7690;cursor:pointer;border-radius:8px;text-align:left}
.pl-group-hd:hover{background:#f7f4ff;color:#6d3fd6}
.pl-group-hd .chev{transition:transform .18s;color:#b4adc4;flex:none}
.pl-group-hd.off .chev{transform:rotate(0deg)}
.pl-group-hd:not(.off) .chev{transform:rotate(90deg)}
.pl-group-n{margin-left:auto;font-size:9.5px;font-weight:800;color:#8b7aa8;background:#f2edfb;border-radius:5px;padding:1px 6px}
.pl-group-body{display:block}
.pl-group-body.hide{display:none}

.trash-row{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:9px;background:#faf9fc;
  border:1px dashed #ece7f6;margin-bottom:5px}
.tr-main{flex:1;min-width:0}
.tr-name{display:block;font-size:11.5px;font-weight:600;color:#8a8fa3;text-decoration:line-through;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-main small{display:block;font-size:9.5px;color:#b4adc4;margin-top:1px}
.tr-restore{font-size:10px;font-weight:800;color:#1e7b4f;background:#e7f6ef;border:1px solid #c9ecdb;
  border-radius:5px;padding:2px 7px;cursor:pointer;font-family:inherit;flex:none}
.tr-restore:hover{background:#d9f2e6}
.tr-purge{width:20px;height:20px;border:0;background:none;color:#c9c2d8;cursor:pointer;font-size:14px;flex:none;border-radius:5px}
.tr-purge:hover{background:#ffeef0;color:#c4242a}


/* 待审核删除行 */
.pend-row{display:flex;align-items:center;gap:5px;padding:8px 10px;border-radius:9px;
  background:#fff8f2;border:1px solid #f8ddc6;margin-bottom:5px}
.pend-row .tr-name{text-decoration:none;color:#3b3550}
.tr-ok{font-size:10px;font-weight:800;color:#1e7b4f;background:#e7f6ef;border:1px solid #c9ecdb;
  border-radius:5px;padding:2px 7px;cursor:pointer;font-family:inherit;flex:none}
.tr-ok:hover{background:#d9f2e6}
.tr-no{font-size:10px;font-weight:800;color:#8a8fa3;background:#f1f1f7;border:1px solid #e2e4ee;
  border-radius:5px;padding:2px 7px;cursor:pointer;font-family:inherit;flex:none}
.tr-no:hover{background:#ffeef0;color:#c4242a;border-color:#f9d3d8}

/* ══════════ 流程竖向流动连线（统一 50% 粗细） ══════════ */
.process-row .stage-icon{position:relative;z-index:2}

.process-row .stage-icon::before{
  content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);
  width:2.5px;height:34px;border-radius:0 0 2px 2px;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,#d8ccf0,#eae3f8);
}
/* 已完成 / 进行中：统一 2.5px */
.process-row.st-done .stage-icon::before{
  background:linear-gradient(180deg,#9b6ff0,#c3a8f8);
  animation:railFlow 1.4s linear infinite;
}
.process-row.st-now .stage-icon::before{
  background-image:repeating-linear-gradient(180deg,#a78bfa 0 6px,transparent 6px 12px);
  animation:railFlow 1.1s linear infinite;
}
.process-row.st-todo.st-flow .stage-icon::before{
  width:2px;
  background-image:repeating-linear-gradient(180deg,#c4b5fd 0 6px,transparent 6px 13px);
  animation:railFlow 1.6s linear infinite;
}
/* 0%：最细，静止 */
.process-row.st-zero .stage-icon::before{
  width:1.5px;background:#e9e4f5;animation:none;
}
.process-row:last-child .stage-icon::before{display:none}

@keyframes railFlow{to{background-position-y:12px}}

/* ── 一颗光点沿整条线连续下落 ── */
.process-row.st-flow .stage-icon::after,
.process-row.st-done .stage-icon::after{
  content:"";position:absolute;left:50%;top:100%;width:8px;height:8px;margin-left:-4px;
  border-radius:50%;pointer-events:none;z-index:1;
  background:radial-gradient(circle,#ffffff 0%,#ffffffd8 32%,#ffffff00 72%);
  opacity:0;
  animation:dotRun 6.2s linear infinite;
  animation-delay:calc(var(--row,0) * .62s);
}

@keyframes dotRun{
  0%{transform:translateY(0);opacity:0}
  2%{opacity:1}
  8%{transform:translateY(30px);opacity:1}
  10%{transform:translateY(34px);opacity:0}
  100%{transform:translateY(34px);opacity:0}
}

@media(prefers-reduced-motion:reduce){
  .process-row .stage-icon::before{animation:none!important}
  .process-row .stage-icon::after{display:none}
}

/* ══════════ 上传弹窗：错误信息在卡片顶部，背景不再羽化 ══════════ */
#mUpload{backdrop-filter:none;background:rgba(22,20,34,.46)}
.up-error{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#fff1f2;border:1px solid #f3c1c6;
  color:#b4232a;font-size:12.5px;line-height:1.55;font-weight:600;white-space:pre-wrap;word-break:break-word}
.up-error[hidden]{display:none}
