/* ============================================================
   strategy.css — 战略台：夜色作战桌上的大无界画布
   ============================================================ */
.st-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 6px 0 12px; }
.st-hero .case-title { margin: 6px 0 8px; }
.st-hero-actions { display: flex; gap: 8px; }
.st-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.st-stat { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--sep); font-size: 14px; color: var(--text-2); }
.st-stat b { font-family: var(--case-mono); font-size: 18px; color: var(--text-1); }
.st-stat.red b { color: var(--case-red); }

.st-shell { border-radius: 12px; overflow: hidden; background: var(--case-night); box-shadow: 0 20px 50px rgba(18, 20, 25, .3); }
.st-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: #0D0F13; border-bottom: 1px solid rgba(255, 255, 255, .06); flex-wrap: wrap; }
.st-jumps { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.st-jump { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #D9D3C7; cursor: pointer; }
.st-jump:hover { background: rgba(255, 255, 255, .08); color: #FFF; }
.st-cam { display: flex; align-items: center; gap: 6px; color: #D9D3C7; font-family: var(--case-mono); font-size: 12.5px; }
.st-cam .btn { background: rgba(255, 255, 255, .08); color: #F1EDE4; }
.st-cam .btn:hover { background: rgba(255, 255, 255, .16); }
.st-viewport {
  position: relative; height: calc(100vh - 300px); min-height: 520px; overflow: hidden; cursor: grab; touch-action: none;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(200, 48, 42, .10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(80, 110, 160, .12), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 48px 48px,
    #14171D;
}
.st-viewport.dragging { cursor: grabbing; }
.st-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.st-loading { position: absolute; left: 40px; top: 40px; color: #D9D3C7; }
.st-world > * { position: absolute; }
.st-strings { left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 4; }
.st-dep { fill: none; stroke: #C8302A; stroke-width: 2; opacity: .85; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .5)); }
.st-lead { fill: none; stroke: #FF4A3D; stroke-width: 2.6; filter: drop-shadow(0 0 4px rgba(255, 74, 61, .5)); }
.st-zone { border: 1.5px dashed rgba(241, 237, 228, .18); border-radius: 18px; pointer-events: none; }
.st-zone span { position: absolute; left: 18px; top: -13px; padding: 2px 10px; background: #14171D; color: #E9A39C; font-family: var(--case-mono); font-size: 13px; letter-spacing: .1em; }

/* 人物 */
.st-person {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto 1fr; column-gap: 10px; align-items: center; text-align: left;
  padding: 12px 14px; border-radius: 4px; border: 0; cursor: pointer; font: inherit; color: #1E1B16;
  background: #F4EEE2; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); transform: rotate(-.6deg);
}
.st-person:nth-child(2n) { transform: rotate(.7deg); }
.st-person.active { outline: 3px solid #FF4A3D; outline-offset: 3px; transform: rotate(0); }
.st-avatar { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
  background: #2A2D33; color: #F1EDE4; font-family: var(--case-serif); font-size: 22px; font-weight: 700; }
.st-person strong { font-family: var(--case-serif); font-size: 18px; }
.st-person em { font-style: normal; font-size: 12px; color: #6A5E4D; }
.st-person-load { grid-column: 2; font-size: 12.5px; color: #4E4639; align-self: end; }
.st-person-load b { font-family: var(--case-mono); color: #1E1B16; }
.st-person-load i { font-style: normal; color: #C8302A; font-weight: 700; }
.st-ai { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 4px; background: #1F232B; border: 1px solid rgba(255, 255, 255, .1); color: #D9D3C7; font-size: 13px; }
.st-ai strong { color: #F1EDE4; font-family: var(--case-mono); font-size: 13.5px; }
.st-ai span { color: #A9A294; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-ai a { color: #E9A39C; margin-top: auto; }

/* 项目案卷 */
.st-case { background: #EDE3CE; border-radius: 4px 14px 6px 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(90, 60, 25, .25); }
.st-case::before { content: ""; position: absolute; left: 24px; top: -14px; width: 220px; height: 16px; border-radius: 8px 8px 0 0; background: #E2D3B3; }
.st-case-head { position: absolute; left: 20px; right: 20px; top: 14px; }
.st-case-title { display: block; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--case-serif); font-size: 22px; font-weight: 700; color: #1E1B16; line-height: 1.3; max-width: calc(100% - 90px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-case-title .case-no { display: block; font-size: 11.5px; color: #8A6A3E; font-weight: 600; }
.st-case-title:hover { color: #8E2C25; }
.st-case-head > .case-stamp { position: absolute; right: 0; top: 6px; }
.st-case-desc { margin: 4px 0 8px; font-size: 13px; color: #5C5040; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-progress { height: 5px; border-radius: 3px; background: rgba(90, 60, 25, .18); overflow: hidden; }
.st-progress i { display: block; height: 100%; background: #2F7A4C; }
.st-case-meta { margin-top: 6px; font-size: 13px; color: #5C5040; }
.st-case-meta b { color: #C8302A; }
.st-case-meta a { color: #8E2C25; font-weight: 600; }
.st-col-label { position: absolute; font-size: 12.5px; font-weight: 700; color: #5C4422; border-bottom: 2px solid rgba(90, 60, 25, .25); padding-bottom: 3px; }
.st-col-label b { font-family: var(--case-mono); color: #8E2C25; }
.st-ev-label { position: absolute; left: 20px; right: 20px; font-size: 12.5px; color: #5C4422; border-top: 1px dashed rgba(90, 60, 25, .35); padding-top: 6px; }
.st-ev-label b { font-family: var(--case-mono); color: #8E2C25; }
.st-note {
  z-index: 3; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px 10px 7px; border: 0; border-radius: 2px; cursor: pointer;
  font: inherit; color: #1E1B16; background: #FFFDF6; border-top: 4px solid #8A8172;
  box-shadow: 0 3px 7px rgba(60, 35, 10, .28); transform: rotate(var(--tilt, 0deg)); transition: opacity .2s, transform .15s;
}
.st-note:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 8px 14px rgba(60, 35, 10, .32); }
.st-note.st-todo { border-top-color: #8A8172; }
.st-note.st-in_progress { border-top-color: #2C5D86; }
.st-note.st-review { border-top-color: #B26A12; }
.st-note.st-done { border-top-color: #2F7A4C; background: #F5F2E9; }
.st-note.st-done strong { color: #6A6355; }
.st-note.late { box-shadow: 0 3px 7px rgba(60, 35, 10, .28), inset 3px 0 0 #C8302A; }
.st-note.st-dim { opacity: .2; }
.st-note-top { display: flex; justify-content: space-between; gap: 6px; font-family: var(--case-mono); font-size: 11px; color: #8A6A3E; }
.st-note-top em { font-style: normal; font-family: var(--font); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-note strong { font-size: 13.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-note-foot { display: flex; justify-content: space-between; gap: 6px; margin-top: auto; font-size: 11.5px; color: #5C5040; }
.st-note-foot i { font-style: normal; }
.st-note.late time { color: #C8302A; font-weight: 700; }
.st-parcel { z-index: 3; }
.st-more { display: block; text-decoration: none; }

/* 技能库 */
.st-box { z-index: 2; padding-bottom: 12px; overflow: hidden; }
.st-box .sk-box-title { font-size: 17px; }
.st-card { z-index: 2; overflow: hidden; }
.st-card .sk-card-desc { -webkit-line-clamp: 2; }

.st-focus-note {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; align-items: center;
  padding: 6px 8px 6px 14px; border-radius: 6px; background: rgba(13, 15, 19, .9); color: #F1EDE4; font-size: 13.5px; box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}
.st-focus-note b { color: #FF7A6B; }
.st-focus-note[hidden] { display: none; }

/* 全屏 */
.st-shell.st-full { position: fixed; inset: 0; z-index: 2000; border-radius: 0; display: flex; flex-direction: column; }
.st-shell.st-full .st-viewport { flex: 1; height: auto; }
html.tg-lock, html.tg-lock body { overflow: hidden; }
.fx-enter:has(.st-shell.st-full) { animation: none !important; opacity: 1 !important; transform: none !important; }

@media (max-width: 768px) {
  .st-hero { flex-direction: column; align-items: stretch; }
  .st-viewport { height: 64vh; height: 64svh; min-height: 420px; }
  .st-bar { padding: 6px; }
  .st-jumps { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .st-jump { flex: none; }
  .st-stat { font-size: 13px; padding: 4px 9px; }
}
