:root {
  --bg: #0b1220;
  --bg2: #111a2e;
  --card: #151f36;
  --card2: #1a2642;
  --border: #24345a;
  --gold: #c9a227;
  --gold2: #e6c45c;
  --blue: #2e5bff;
  --green: #2ecc71;
  --red: #e74c3c;
  --orange: #f39c12;
  --text: #e8edf7;
  --muted: #8fa0c0;
  --mono: "SF Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

/* 顶栏 */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px;
  background: linear-gradient(135deg, #0d1730 0%, #101f3d 60%, #16294e 100%);
  border-bottom: 2px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 16px; }
.logo {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #8a6d15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #0b1220;
}
.logo span { font-size: 12px; }
.brand-text h1 { font-size: 20px; letter-spacing: 0.5px; }
.brand-text p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.updated { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* 导航 */
.tabs {
  display: flex; gap: 6px; padding: 14px 32px 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.tab {
  background: transparent; color: var(--muted); border: none;
  padding: 10px 18px; font-size: 14px; cursor: pointer;
  border-radius: 10px 10px 0 0; transition: all .2s;
  font-weight: 600;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tab.active { background: var(--card); color: var(--gold2); border-top: 2px solid var(--gold); }

/* 面板 */
main { padding: 24px 32px 40px; max-width: 1280px; margin: 0 auto; }
.panel { display: none; }
.panel.active { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
h2 { font-size: 22px; margin-bottom: 16px; color: var(--gold2); }
h3 { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.sub { color: var(--muted); margin-bottom: 18px; }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; margin-bottom: 16px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
@media (max-width: 900px) { .grid2, .grid3, .panel-row { grid-template-columns: 1fr; } }

.hero { background: linear-gradient(135deg, #14254a, #1b3564); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.hero h2 { font-size: 26px; margin-bottom: 8px; }

.intro-sec h4 { color: var(--gold2); margin-bottom: 8px; font-size: 15px; }
.intro-sec p { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 900px) { .metric-strip { grid-template-columns: 1fr 1fr; } }
.metric {
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; text-align: center;
}
.metric .v { font-size: 22px; font-weight: 800; color: var(--gold2); display: block; }
.metric .k { font-size: 12px; color: var(--muted); margin-top: 6px; display: block; }

/* 统计卡 */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; position: relative; overflow: hidden;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--gold2); }
.stat .lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat .ring { position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%); }

/* 进度条 */
.bar-row { margin-bottom: 12px; }
.bar-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.bar-head .label { color: var(--text); }
.bar-head .val { color: var(--muted); font-family: var(--mono); }
.bar { height: 10px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.bar > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--gold)); transition: width .6s; }
.bar.green > div { background: linear-gradient(90deg, #1d9e56, var(--green)); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
td.num { font-family: var(--mono); }

/* 阶段规划 */
.phase { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.phase-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.phase-head h4 { color: var(--gold2); font-size: 15px; }
.phase-head .badge { font-size: 12px; color: var(--muted); }
.phase-tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card2); border: 1px solid var(--border); border-radius: 20px;
  padding: 5px 12px; font-size: 12.5px; color: var(--text);
}
.chip.p0 { border-color: var(--red); color: #ff8f8f; }
.chip.p1 { border-color: var(--orange); color: #ffc46b; }

.principle-list { list-style: none; }
.principle-list li { padding: 8px 0 8px 22px; position: relative; color: var(--muted); font-size: 13.5px; }
.principle-list li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }

/* 任务卡片 */
.task-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 16px; border-left: 4px solid var(--blue); }
.task-card.p0 { border-left-color: var(--red); }
.task-card.p1 { border-left-color: var(--orange); }
.task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.task-head h3 { font-size: 16px; color: var(--text); margin: 0; }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.tag { font-size: 11px; padding: 3px 10px; border-radius: 12px; background: var(--card2); color: var(--muted); border: 1px solid var(--border); }
.tag.status-done { background: rgba(46,204,113,.15); color: var(--green); border-color: var(--green); }
.tag.status-doing { background: rgba(243,156,18,.15); color: var(--orange); border-color: var(--orange); }
.tag.status-todo { color: var(--muted); }
.tag.p0 { color: #ff8f8f; border-color: var(--red); }
.tag.p1 { color: #ffc46b; border-color: var(--orange); }

.arct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
@media (max-width: 900px) { .arct { grid-template-columns: 1fr 1fr; } }
.arct-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.arct-item .ah { font-size: 11px; color: var(--gold); font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.arct-item p { font-size: 12.5px; color: var(--muted); line-height: 1.65; white-space: pre-line; }

.why { margin-top: 10px; font-size: 12.5px; color: var(--muted); background: var(--bg2); border-radius: 8px; padding: 10px 12px; }

/* 模板 */
.tpl-block { margin-bottom: 14px; }
.tpl-block h5 { color: var(--gold2); font-size: 13px; margin-bottom: 8px; }
.tpl-block pre {
  background: #0a1120; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; font-size: 12px; line-height: 1.7; overflow-x: auto;
  color: #c3d0ea; font-family: var(--mono); max-height: 380px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word;
}

/* 上传 */
.upload-box { background: var(--card); border: 1px dashed var(--border); border-radius: 14px; padding: 30px; text-align: center; margin-bottom: 20px; }
.dropzone { padding: 20px; }
.dropzone.drag { border-color: var(--gold); background: rgba(201,162,39,.08); }
.dropzone p { color: var(--muted); margin-bottom: 12px; font-size: 14px; }
.btn {
  background: linear-gradient(135deg, var(--gold), #a3841d); color: #0b1220;
  border: none; padding: 10px 24px; border-radius: 10px; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hint { font-size: 12px; color: var(--muted); }
#uploadStatus { margin-top: 12px; font-size: 13px; }
#uploadStatus .ok { color: var(--green); }
#uploadStatus .err { color: var(--red); }

.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.file-item {
  background: var(--card2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.file-item .fn { font-size: 13px; word-break: break-all; color: var(--text); }
.file-item .fm { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.file-item .fl { font-size: 12px; color: var(--gold2); text-decoration: none; }
.file-item img.preview { max-height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

.legend { font-size: 12.5px; color: var(--muted); margin: -8px 0 16px; }
.asset-box { display: flex; flex-wrap: wrap; gap: 10px; }
.asset-chip { background: var(--card2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.asset-chip b { color: var(--gold2); }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; border-top: 1px solid var(--border); }

/* ④ 待你处理 */
.todo-item { border-left: 4px solid var(--gold, #c9a45c); margin-bottom: 10px; }
.todo-item.pP0 { border-left-color: var(--red, #e05252); }
.todo-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-head b { flex: 1; min-width: 200px; }
.badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: 2px 8px; border-radius: 20px; font-size: 12px; }
.badge.type { opacity: .75; }
.todo-status { font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.todo-status.open { background: rgba(224,82,82,.15); color: #ffb3b3; }
.todo-status.done { background: rgba(76,175,80,.15); color: #a5d6a7; }
.todo-detail { color: var(--text-dim, #aaa); margin: 8px 0 4px; font-size: 14px; }
.todo-meta { font-size: 12px; color: #888; }

/* ============ ⑥ GEO 文件中心 ============ */
.fc-banner {
  background: linear-gradient(90deg, rgba(243,156,18,.18), rgba(231,76,60,.12));
  border-bottom: 1px solid var(--orange);
  color: var(--gold2);
  font-size: 12.5px;
  padding: 8px 32px;
  text-align: center;
  letter-spacing: .3px;
}
.fc-subtitle { font-size: 13px; color: var(--muted); font-weight: 400; }
.fc-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.fc-input {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none;
}
.fc-input:focus { border-color: var(--gold); }
#fcSearch { flex: 1; min-width: 180px; }
.fc-btn { font-size: 12.5px; padding: 8px 14px; }
.fc-btn2 {
  background: var(--card2); color: var(--text); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 10px; font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.fc-btn2:hover { border-color: var(--gold); color: var(--gold2); }
.fc-danger:hover { border-color: var(--red) !important; color: var(--red) !important; }

.fc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .fc-layout { grid-template-columns: 1fr; } }
.fc-tree { position: sticky; top: 96px; }
@media (max-width: 980px) { .fc-tree { position: static; } }
.fc-tree-cat { margin-bottom: 4px; border-radius: 8px; }
.fc-tree-cat-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  cursor: pointer; border-radius: 8px; background: var(--bg2);
  border: 1px solid transparent;
}
.fc-tree-cat-head:hover { border-color: var(--border); }
.fc-tree-cat.open .fc-tree-toggle { transform: rotate(90deg); }
.fc-tree-toggle { transition: transform .15s; color: var(--muted); font-size: 11px; }
.fc-tree-name { flex: 1; font-size: 13px; color: var(--text); }
.fc-tree-count { font-size: 11px; color: var(--muted); font-family: var(--mono); background: var(--card); border-radius: 10px; padding: 1px 7px; }
.fc-tree-subs { display: none; padding: 2px 0 6px 18px; }
.fc-tree-cat.open .fc-tree-subs { display: block; }
.fc-tree-sub {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px; cursor: pointer;
  border-radius: 6px; font-size: 12.5px; color: var(--muted);
}
.fc-tree-sub:hover { background: var(--bg2); color: var(--gold2); }
.fc-tree-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.fc-tree-foot a { color: var(--gold2); font-size: 12.5px; text-decoration: none; }

.fc-main { min-width: 0; }
.fc-upload-grid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
@media (max-width: 760px) { .fc-upload-grid { grid-template-columns: 1fr; } }
.fc-upload-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.fc-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fc-form-row label { flex: 1; min-width: 150px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.fc-form-row select, .fc-upload-form input { width: 100%; }
.fc-chk { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 12.5px !important; }
.fc-upload-actions { display: flex; gap: 10px; margin-top: 4px; }
.fc-zip-panel { margin-top: 14px; border: 1px dashed var(--gold); border-radius: 10px; padding: 14px; background: rgba(201,162,39,.06); text-align: left; }
.fc-count { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.fc-row { cursor: pointer; transition: background .12s; }
.fc-row:hover { background: var(--card2); }
.fc-row-sensitive td:first-child { border-left: 3px solid var(--red); }
.fc-fn { font-size: 13px; color: var(--text); font-weight: 600; }
.fc-fn-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-cat { display: inline-block; font-size: 11px; color: var(--gold2); background: rgba(201,162,39,.1); border-radius: 4px; padding: 2px 6px; margin-right: 4px; white-space: nowrap; }
.fc-sub { display: inline-block; font-size: 11px; color: var(--muted); background: var(--bg2); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }

.fc-status { display: inline-block; font-size: 11px; border-radius: 12px; padding: 2px 9px; margin: 1px 2px; white-space: nowrap; }
.fc-status.st-green { background: rgba(46,204,113,.16); color: var(--green); border: 1px solid rgba(46,204,113,.5); }
.fc-status.st-yellow { background: rgba(243,156,18,.15); color: var(--orange); border: 1px solid rgba(243,156,18,.5); }
.fc-status.st-gray { background: rgba(143,160,192,.13); color: var(--muted); border: 1px solid var(--border); }
.fc-status.st-red { background: rgba(231,76,60,.16); color: #ff8f8f; border: 1px solid rgba(231,76,60,.5); }
.fc-link { color: var(--gold2); font-size: 12.5px; cursor: pointer; text-decoration: none; background: none; border: none; }
.fc-link:hover { text-decoration: underline; }

.fc-mask { position: fixed; inset: 0; background: rgba(4,8,18,.66); z-index: 40; }
.fc-drawer {
  position: fixed; top: 0; right: 0; width: min(720px, 96vw); height: 100vh;
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 50; transform: translateX(105%); transition: transform .25s;
  display: flex; flex-direction: column;
}
.fc-drawer.open { transform: translateX(0); }
.fc-drawer-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--card); flex-wrap: wrap;
}
.fc-drawer-head b { font-size: 14.5px; color: var(--gold2); word-break: break-all; }
.fc-drawer-body { padding: 16px 18px 30px; overflow-y: auto; flex: 1; }
.fc-detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
@media (max-width: 860px) { .fc-detail-grid { grid-template-columns: 1fr; } }
.fc-detail-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .fc-detail-grid2 { grid-template-columns: 1fr; } }
.fc-meta-row { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(36,52,90,.5); font-size: 12.5px; }
.fc-meta-row .k { color: var(--muted); min-width: 76px; flex-shrink: 0; }
.fc-meta-row .v { color: var(--text); word-break: break-all; }
.fc-gate-warn {
  margin-top: 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px;
  background: rgba(231,76,60,.12); color: #ffb3b3; border: 1px solid rgba(231,76,60,.4);
}
.fc-status-edit { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fc-status-edit select { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; }
.fc-preview-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.fc-pre {
  background: #0a1120; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; font-size: 12px; line-height: 1.65; color: #c3d0ea;
  font-family: var(--mono); max-height: 420px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}
.fc-textarea {
  width: 100%; background: #0a1120; color: #d7e2f7; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.6; resize: vertical;
}
.fc-img { max-width: 100%; max-height: 340px; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.fc-log { max-height: 260px; overflow-y: auto; }
.fc-log-item { padding: 7px 0; border-bottom: 1px dashed rgba(36,52,90,.5); font-size: 12.5px; }
.fc-log-ts { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 8px; }
.fc-log-user { color: var(--muted); margin-left: 8px; font-size: 11px; }
.fc-log-item p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.fc-lightbox {
  position: fixed; inset: 0; background: rgba(2,5,12,.92); z-index: 60;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.fc-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* 移动端修正：防止长文本撑破栅格（文件中心上传面板） */
@media (max-width: 760px) {
  .fc-upload-grid { grid-template-columns: minmax(0, 1fr); }
  .fc-form-row label { min-width: 0; flex-basis: 100%; }
  .fc-dropzone .hint, .dropzone p, .dropzone { overflow-wrap: anywhere; word-break: break-word; }
  .fc-toolbar .fc-input { max-width: 100%; }
  .fc-dropdown-menu { min-width: 220px; }
}

/* 移动端：导航 tabs 可横向滚动（6 个 tab 在窄屏放不下） */
@media (max-width: 760px) {
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .tabs .tab { flex-shrink: 0; }
}

/* ---- 文件中心 v3：内部协作资料库（深色金色，紧凑） ---- */
.fc-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fc-toolbar h2 { margin: 0; font-size: 16px; color: var(--gold2); flex: 1; min-width: 220px; }
.fc-subtitle { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.fc-toolbar-actions { display: flex; gap: 6px; align-items: center; }
.fc-toolbar .btn { padding: 5px 12px; font-size: 12.5px; }
.caret { font-size: 10px; opacity: .8; }
.fc-filterbar { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 14px; }
.fc-search { position: relative; display: inline-flex; align-items: center; }
.fc-search-ico { position: absolute; left: 8px; font-size: 12px; opacity: .7; pointer-events: none; }
.fc-search .fc-input { padding-left: 28px; width: 240px; }
.fc-filterbar .fc-input { background: var(--bg2); border-color: var(--border); color: var(--text,#dbe4f5); font-size: 12.5px; padding: 5px 8px; border-radius: 8px; }
.fc-morefilters { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.fc-dropdown { position: relative; }
.fc-dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: var(--card2); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 60; min-width: 250px; padding: 6px; }
.fc-dropdown-menu.open { display: block; }
.fc-dropdown-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--text,#dbe4f5); }
.fc-dropdown-menu button:hover { background: rgba(201,162,39,.12); color: var(--gold2); }
.fc-tabs { display: flex; gap: 6px; margin: 10px 0 12px; flex-wrap: wrap; }
.fc-tab { padding: 4px 13px; border: 1px solid var(--border); background: var(--card); border-radius: 20px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.fc-tab.active { background: linear-gradient(135deg, var(--gold), #8a6d15); border-color: transparent; color: #0b1220; font-weight: 600; }
/* 弹窗（上传/新建） */
.fc-up-modal, .fc-new-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; width: min(680px, 92vw); max-height: 82vh; overflow-y: auto; z-index: 120; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.fc-up-modal h3, .fc-new-modal h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 15px; color: var(--gold2); }
.fc-up-hint { font-size: 11px; color: var(--muted); margin: 8px 0 10px; }
.fc-up-tip { font-size: 12px; color: var(--gold2); background: rgba(201,162,39,.08); border: 1px solid rgba(201,162,39,.3); border-radius: 8px; padding: 7px 10px; margin-bottom: 10px; }
.fc-up-status { margin-top: 10px; font-size: 12px; }
.fc-up-table-wrap { max-height: 300px; overflow-y: auto; }
.fc-up-table-wrap .fc-input { background: var(--bg2); border-color: var(--border); color: var(--text,#dbe4f5); font-size: 12px; padding: 4px 6px; border-radius: 6px; width: 100%; box-sizing: border-box; }
.fc-new-modal label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.fc-new-modal .fc-input { width: 100%; box-sizing: border-box; background: var(--bg2); border-color: var(--border); color: var(--text,#dbe4f5); font-size: 12.5px; }
.fc-new-content { min-height: 180px; resize: vertical; font-family: monospace; }
.fc-x { border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--muted); }
.fc-x:hover { color: var(--gold2); }
.fc-banner { background: rgba(201,162,39,.08); border: 1px solid rgba(201,162,39,.28); color: var(--gold2); border-radius: 8px; padding: 7px 14px; font-size: 12px; margin: 8px 0; }
.fc-zip-panel { margin-top: 12px; }
.fc-zip-panel .hint { font-size: 12px; }

/* ============ 手机端适配优化（2026-08-22） ============ */
@media (max-width: 640px) {
  /* 顶栏紧凑化：logo 缩小、文字单行不挤压、更新时间独立成行 */
  .topbar { flex-wrap: wrap; gap: 6px 10px; padding: 12px 16px 10px; }
  .brand { gap: 10px; width: 100%; min-width: 0; }
  .logo { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; flex-shrink: 0; }
  .logo span { font-size: 10px; }
  .brand-text { min-width: 0; flex: 1; }
  .brand-text h1 { font-size: 15px; line-height: 1.35; letter-spacing: 0; }
  .brand-text p { font-size: 10.5px; line-height: 1.45; margin-top: 2px; }
  .updated { width: 100%; text-align: right; font-size: 11px; line-height: 1.3; }

  /* 导航 tabs：更紧凑 + 右侧滚动渐隐提示 */
  .tabs { padding: 10px 12px 0; gap: 4px; }
  .tab { padding: 8px 14px; font-size: 13px; }
  .tabs::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 36px;
    background: linear-gradient(90deg, transparent, var(--bg2));
    pointer-events: none; transition: opacity .2s;
  }
  .tabs.at-end::after { opacity: 0; }

  .fc-banner { padding: 7px 14px; font-size: 11.5px; text-align: left; line-height: 1.55; }
  main { padding: 16px 16px 32px; }
  .hero { padding: 20px 18px; }
  .hero h2 { font-size: 21px; }
  h2 { font-size: 18px; }
  h3 { font-size: 14px; }
  .card { padding: 14px; border-radius: 12px; }
  .legend { font-size: 12px; }

  /* 统计卡 & 指标条 */
  .stat-cards { gap: 10px; }
  .stat { padding: 14px 12px; }
  .stat .num { font-size: 24px; }
  .stat .ring { width: 60px; height: 60px; top: -20px; right: -20px; }
  .metric-strip { gap: 10px; }
  .metric { padding: 12px 8px; }
  .metric .v { font-size: 18px; }
  .metric .k { font-size: 11px; }

  /* 表格瘦身 */
  th, td { padding: 7px 8px; font-size: 12px; }

  /* 文件中心列表：隐藏低价值列（版本/大小/更新时间），降低行高 */
  #fcFileTable th:nth-child(4), #fcFileTable td:nth-child(4),
  #fcFileTable th:nth-child(5), #fcFileTable td:nth-child(5),
  #fcFileTable th:nth-child(6), #fcFileTable td:nth-child(6) { display: none; }
  #fcFileTable td:nth-child(2) { min-width: 128px; }
  #fcFileTable td:nth-child(3) { min-width: 96px; }
  .fc-fn { font-size: 12.5px; }
  .fc-fn-sub { max-width: 200px; }

  /* 上传建议表容器允许横向滚动 */
  .fc-up-table-wrap { overflow-x: auto; }

  /* 工具栏换行布局 */
  .fc-toolbar { gap: 6px; }
  .fc-toolbar h2 { min-width: 100%; font-size: 15px; }
  .fc-subtitle { display: block; margin: 2px 0 0; }
  .fc-toolbar-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .fc-search { flex: 1; min-width: 0; }
  .fc-search .fc-input { width: 100%; }
  .fc-filterbar { padding: 8px; }
  #fcCatFilter, #fcStatusFilter { flex: 1; min-width: 0; max-width: none; }
  .fc-morefilters .fc-input { flex: 1 1 100%; }
  .fc-tabs .fc-tab { padding: 6px 12px; }
  .fc-dropdown-menu { position: fixed; right: 12px; left: auto; min-width: 250px; }

  /* 抽屉全宽 + 弹窗适配 */
  .fc-drawer { width: 100vw; height: 100dvh; }
  .fc-up-modal, .fc-new-modal { width: 94vw; padding: 14px; }
  .fc-drawer-body { padding: 14px; }
  .fc-drawer-head { padding: 12px 14px; }
  .fc-drawer-head .fc-link { padding: 8px 10px; margin: -4px -6px; }

  /* 任务/阶段卡片 */
  .task-card { padding: 16px; }
  .arct { gap: 8px; }
  .arct-item { padding: 10px; }
  .phase { padding: 14px; }
  .phase-head { flex-wrap: wrap; gap: 4px; }
  .todo-detail { font-size: 13px; }
}

/* 小屏（≤480px）进一步压缩 */
@media (max-width: 480px) {
  .brand-text h1 { font-size: 14px; }
  .brand-text p { font-size: 10px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .fc-drawer-head { padding: 12px 14px; }
}

/* ===== 🎯 下周核心作战模块（2026-08-24 新增） ===== */
.week-module { margin-top: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.week-head h3 { color: var(--gold2); font-size: 17px; margin: 0; }
.week-window { font-size: 12px; color: var(--muted); border: 1px dashed var(--border); padding: 4px 10px; border-radius: 12px; }
.week-notice { font-size: 13px; color: #ffc46b; background: rgba(243,156,18,.08); border-left: 3px solid var(--orange); padding: 8px 12px; border-radius: 6px; margin: 0 0 8px; line-height: 1.6; }
.week-baseline { font-size: 12.5px; color: var(--muted); background: var(--bg2); border-radius: 8px; padding: 8px 12px; margin: 0 0 16px; line-height: 1.6; }
.week-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wcard { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--blue); }
.wcard.p0 { border-left-color: var(--red); }
.wcard.p1 { border-left-color: var(--orange); }
.wcard-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wcard-title { color: var(--text); font-size: 14px; flex: 1; min-width: 140px; }
.wcard-head .tag { margin-left: auto; }
.wcard-row { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.wcard-row .wk { flex: 0 0 auto; min-width: 56px; color: var(--gold); font-weight: 700; font-size: 11.5px; padding-top: 1px; }
.week-nodes-title { color: var(--gold2); font-size: 14px; margin: 18px 0 10px; }
.week-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wnode { background: var(--bg2); border: 1px dashed var(--border); border-radius: 10px; padding: 12px 14px; }
.wnode .tag { display: inline-block; margin-bottom: 6px; }
.wnode b { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 4px; }
.wnode p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 900px) {
  .week-cards { grid-template-columns: 1fr; }
  .week-nodes { grid-template-columns: 1fr; }
}
