#strategy-full{
  --bg:#f3f5f9; --panel:#ffffff; --panel-2:#f7f9fc; --line:#e3e8f0; --line-2:#edf1f7;
  --text:#1e293b; --text-2:#5b6b82; --muted:#94a3b8;
  --blue:#2563eb; --blue-soft:#eaf1fd; --cyan:#0891b2; --green:#059669; --red:#dc2626; --orange:#d97706;
}
#strategy-full .app{display:flex;flex-direction:column;height:100vh}
#strategy-full .top{height:56px;flex:none;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;
  gap:14px;padding:0 24px}
#strategy-full .top .logo{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,var(--blue),var(--cyan));
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px}
#strategy-full .top h1{font-size:16px;font-weight:700}
#strategy-full .top .sub{color:var(--muted);font-size:12px}
#strategy-full .top .spacer{flex:1}
#strategy-full .btn{border:1px solid var(--line);background:#fff;color:var(--text-2);border-radius:8px;padding:8px 15px;
  font-size:13px;font-weight:600;cursor:pointer;transition:.16s}
#strategy-full .btn:hover{border-color:var(--blue);color:var(--blue)}
#strategy-full .btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
#strategy-full .btn.primary:hover{background:#1d4ed8;color:#fff}
#strategy-full .body{flex:1;display:flex;min-height:0}
#strategy-full /* 左：策略列表 */
.list{width:280px;flex:none;background:#fff;border-right:1px solid var(--line);overflow-y:auto;padding:16px 14px}
#strategy-full .list h2{font-size:12px;color:var(--muted);font-weight:600;margin:4px 8px 12px;letter-spacing:.5px}
#strategy-full .s-item{border:1px solid var(--line);border-radius:10px;padding:12px 13px;margin-bottom:10px;cursor:pointer;
  transition:.16s;background:#fff}
#strategy-full .s-item:hover{border-color:var(--blue)}
#strategy-full .s-item.active{border-color:var(--blue);background:var(--blue-soft)}
#strategy-full .s-item .nm{font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:7px}
#strategy-full .s-item .ds{color:var(--text-2);font-size:12px;margin-top:5px}
#strategy-full .tag-def{font-size:10px;background:#e7f6f0;color:var(--green);border:1px solid #bfe8d8;border-radius:8px;
  padding:1px 6px;font-weight:600}
#strategy-full .add-new{border:1px dashed var(--line);border-radius:10px;padding:11px;text-align:center;color:var(--text-2);
  cursor:pointer;font-size:13px;margin-top:4px}
#strategy-full .add-new:hover{border-color:var(--blue);color:var(--blue)}
#strategy-full /* 右：编辑区 */
.edit{flex:1;overflow-y:auto;padding:22px 28px}
#strategy-full .edit-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
#strategy-full .edit-head input.nm-input{font-size:18px;font-weight:700;border:1px solid transparent;background:transparent;
  padding:6px 8px;border-radius:8px;color:var(--text);width:320px}
#strategy-full .edit-head input.nm-input:hover{border-color:var(--line)}
#strategy-full .edit-head input.nm-input:focus{border-color:var(--blue);background:#fff;outline:none}
#strategy-full .edit-head .spacer{flex:1}
#strategy-full .section{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:18px;overflow:hidden}
#strategy-full .section .sh{display:flex;align-items:center;gap:11px;padding:15px 18px;border-bottom:1px solid var(--line-2);
  background:var(--panel-2)}
#strategy-full .section .ico{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  font-size:15px;color:#fff}
#strategy-full .section .sh h3{font-size:14.5px;font-weight:700}
#strategy-full .section .sh .d{color:var(--muted);font-size:12px}
#strategy-full .section .sb{padding:18px}
#strategy-full .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 22px}
#strategy-full .field{display:flex;flex-direction:column;gap:6px}
#strategy-full .field.full{grid-column:1/-1}
#strategy-full .field label{font-size:12.5px;color:var(--text-2);font-weight:600}
#strategy-full .field label .hint{color:var(--muted);font-weight:400}
#strategy-full .field input[type=number],
#strategy-full .field input[type=text],
#strategy-full .field select{border:1px solid var(--line);border-radius:8px;
  padding:9px 11px;font-size:13.5px;color:var(--text);background:#fff;width:100%;font-family:inherit}
#strategy-full .field input:focus,
#strategy-full .field select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
#strategy-full /* 权重滑块行 */
.weights{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
#strategy-full .wrow{display:flex;flex-direction:column;gap:7px}
#strategy-full .wrow .wl{display:flex;justify-content:space-between;font-size:12.5px;color:var(--text-2)}
#strategy-full .wrow .wv{color:var(--blue);font-weight:700}
#strategy-full .wrow input[type=range]{width:100%;accent-color:var(--blue)}
#strategy-full .wsum{margin-top:14px;font-size:12.5px;color:var(--text-2);display:flex;align-items:center;gap:8px}
#strategy-full .wsum b{color:var(--blue)}
#strategy-full .wsum.bad b{color:var(--red)}
#strategy-full .seg{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
#strategy-full .seg button{flex:1;border:none;background:#fff;padding:8px;font-size:12.5px;color:var(--text-2);cursor:pointer}
#strategy-full .seg button.on{background:var(--blue);color:#fff;font-weight:600}
#strategy-full .switch{position:relative;width:40px;height:22px;flex:none}
#strategy-full .switch input{opacity:0;width:100%;height:100%;cursor:pointer}
#strategy-full .switch .track{position:absolute;inset:0;background:#cbd5e1;border-radius:22px;transition:.18s;pointer-events:none}
#strategy-full .switch .track::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
  background:#fff;transition:.18s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
#strategy-full .switch input:checked + .track{background:var(--blue)}
#strategy-full .switch input:checked + .track::after{transform:translateX(18px)}
#strategy-full .toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
#strategy-full .toggle-row .tl{font-size:13px;font-weight:600}
#strategy-full .toggle-row .td{font-size:12px;color:var(--muted)}
#strategy-full .footer-bar{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(243,245,249,.6),#f3f5f9);
  padding:14px 0;display:flex;gap:12px;justify-content:flex-end;margin-top:-6px}

#strategy-full{position:fixed;inset:0;z-index:200;display:none;overflow:hidden;background:#f3f5f9;
  color:#1e293b;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;}
#strategy-full.open{display:block}
#strategy-full .app{height:100vh}
