/* 方案 D · 实战策略（交易系统看板 + 形态地图 + 策略详情） */

/* 页头：一行标题 + 工具 */
.sx-head { padding: 26px 0 18px; }
.sx-head-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; }
.sx-title .kb-tabs { margin-bottom: 14px; }
.sx-title h1 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 900; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sx-title h1 span { font: 700 17px/1.4 var(--serif); color: var(--accent-ink); }
.sx-title p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.sx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sx-stat { font-size: 13.5px; color: var(--muted); margin-right: 4px; }
.sx-stat b { font: 800 18px/1 var(--latin); color: var(--ink); }
.sx-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.sx-search:focus-within { border-color: var(--ink); }
.sx-search svg { width: 15px; height: 15px; color: var(--muted); }
.sx-search input { border: 0; background: none; outline: none; width: 190px; font: 500 14px/1 var(--sans); }

/* 首屏看板 */
.sx-board { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: var(--deep); box-shadow: 0 40px 70px -50px rgba(20,14,8,.85); }
.sb-chart { position: relative; background: var(--paper); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.sb-img { position: relative; }
.sb-img > img { width: 100%; height: auto; border-radius: 12px; cursor: zoom-in; display: block; }
.sb-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.sb-tag span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.sb-tag em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.sb-inset { position: absolute; right: 12px; bottom: 12px; width: 27%; padding: 5px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); cursor: zoom-in; transition: transform .25s; }
.sb-inset:hover { transform: translateY(-3px) scale(1.02); }
.sb-inset img { width: 100%; height: auto; border-radius: 8px; display: block; }
.sb-inset span { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 2px 8px; border-radius: 999px; }
.sb-read { font-size: 13px; line-height: 1.75; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-read b { margin-right: 8px; color: var(--ink); }
.sb-sys { padding: 26px 30px 24px; color: #f4ede1; display: flex; flex-direction: column; }
.sb-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(244,237,225,.6); }
.hot { font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.sb-sys h2 { margin-top: 10px; font: 900 28px/1.25 var(--serif); color: #fff; }
.sb-sys h2 small { display: block; margin-top: 4px; font: 500 13.5px/1.4 var(--latin); color: rgba(244,237,225,.5); }
.sb-essence { margin-top: 10px; font-size: 15px; line-height: 1.8; color: rgba(244,237,225,.88); }
.sb-sys mark, .sd-sys mark { background: none; color: #f6a77a; font-weight: 700; }
.sb-sys-t { margin: 18px 0 8px; font: 700 13px/1 var(--sans); letter-spacing: .08em; color: #fff; display: flex; align-items: baseline; gap: 8px; }
.sb-sys-t span { font-weight: 400; letter-spacing: 0; font-size: 12px; color: rgba(244,237,225,.45); }
.sb-cta { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sb-cta span { font-size: 12.5px; color: rgba(244,237,225,.55); }

/* 交易系统链路 */
.sys { list-style: none; margin: 0; padding: 0; position: relative; }
.sys::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; border-left: 2px solid rgba(255,255,255,.14); }
.sys li { position: relative; display: grid; grid-template-columns: 24px 50px minmax(0, 1fr); gap: 10px; align-items: start; padding: 7px 0; }
.sys-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 12px/1 var(--latin); position: relative; z-index: 1; }
.sys-k { font: 700 14px/24px var(--serif); color: #fff; }
.sys-c { font-size: 13.5px; line-height: 1.7; color: rgba(244,237,225,.82); display: flex; flex-direction: column; gap: 1px; padding-top: 2px; }
.sys li.is-empty .sys-n { background: transparent; border: 1.5px dashed rgba(255,255,255,.35); color: rgba(244,237,225,.5); }
.sys li.is-empty .sys-c { color: rgba(244,237,225,.4); font-style: italic; }
.sys-compact .sys-c span:nth-child(n+3) { display: none; }

/* 形态地图 */
.sx-map { padding: 34px 0 70px; }
.sx-map-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sx-map-h h2 { font-size: 24px; font-weight: 900; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.sx-map-h h2 span { font: 500 14px/1.4 var(--sans); color: var(--muted); }
.sx-map-h a { font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.sx-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.sx-col { display: grid; gap: 8px; align-content: start; transition: opacity .2s; }
.sx-col.is-dim { opacity: .35; }
.sx-col > header { padding: 12px 14px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--ink)); }
.sx-trend { --c: #2f8a57; }
.sx-bo { --c: var(--accent); }
.sx-tr { --c: #4b6fd1; }
.sx-rev { --c: #b33a2c; }
.sx-time { --c: #c98a12; }
.sx-stack { display: grid; gap: 14px; align-content: start; }
.sx-col > header .en { font: 700 10.5px/1 var(--latin); letter-spacing: .14em; color: var(--c); }
.sx-col > header b { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font: 900 18px/1.3 var(--serif); }
.sx-col > header b i { font: 600 12px/1 var(--latin); font-style: normal; color: var(--muted); }
.sx-col > header .q { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.st-tile { display: flex; flex-direction: column; gap: 5px; padding: 11px 13px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.st-tile[hidden] { display: none; }
.st-tile:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 14px 26px -20px rgba(60,40,10,.6); }
.st-tile-h { display: flex; align-items: baseline; gap: 8px; }
.st-tile-h .no { flex: none; font: 700 10.5px/1.6 var(--latin); color: var(--c, var(--accent-ink)); border: 1px solid currentColor; padding: 0 5px; border-radius: 5px; }
.st-tile-h b { font: 700 14.5px/1.45 var(--latin); }
.st-tile-s { font-size: 12.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-tile-s.st-none { display: block; font-style: italic; color: var(--muted-2); }
.st-tile-m { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted-2); }
.st-tile-m .ok { color: #2f8a57; font-weight: 700; }
.st-tile.has { border-left: 3px solid var(--c, var(--accent)); }
.st-tile.is-featured { background: var(--accent-wash); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239,122,60,.15); }
.st-tile.is-featured .st-tile-h b::after { content: "阅读最多"; margin-left: 6px; font: 700 10.5px/1 var(--sans); color: var(--accent-ink); background: var(--accent-soft); padding: 2px 6px; border-radius: 999px; vertical-align: 2px; }
.sx-empty { margin-top: 14px; padding: 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); }
.sx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.sx-foot p { flex: 1 1 32em; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.sx-demo { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; text-decoration: none; font-size: 13.5px; }
.sx-demo b { font: 700 14.5px/1.4 var(--serif); }
.sx-demo > span:last-child { font-weight: 700; color: var(--accent-ink); }

/* 策略详情：图表 + 交易系统并排 */
.sd-head { padding: 22px 0 16px; }
.sd-head .crumb { margin-bottom: 10px; }
.sd-head-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.sd-head h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 900; }
.sd-head h1 small { display: inline-block; margin-left: 12px; font: 500 15px/1 var(--latin); color: var(--muted); }
.sd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-chips span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.sd-chips .g { border-color: var(--c, var(--ink)); color: var(--c, var(--ink)); font-weight: 700; }
.sd-intro { margin-top: 10px; max-width: 70em; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.sd-board { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 30px; }
.sd-stage { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.sd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sd-tabs button { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font: 600 12.5px/1.3 var(--sans); color: var(--ink-2); }
.sd-tabs button img { width: 54px; height: 34px; object-fit: cover; border-radius: 7px; background: var(--paper); }
.sd-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px rgba(28,25,21,.08); }
.sd-view { position: relative; }
.sd-view img { width: 100%; height: auto; border-radius: 12px; background: var(--paper); cursor: zoom-in; }
.sd-view .lbl { margin: 0 0 8px; }
.sd-cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin-top: 12px; font-size: 13.5px; }
.sd-cap dt { color: var(--muted); font-weight: 600; }
.sd-cap dd { margin: 0; color: var(--ink-2); line-height: 1.8; }
.sd-cap dd.pending { color: #a0522d; }
/* 图下说明保持同一张纸的阅读节奏，Markdown 块内容由独立容器承载。 */
.sd-caption { padding: 14px 4px 4px; min-width: 0; overflow-wrap: anywhere; }
.sd-caption .sd-cap { margin: 0; gap: 8px 10px; font-size: 12.5px; line-height: 1.8; }
.sd-caption .sd-cap dt { align-self: start; justify-self: start; padding: 2px 8px; border: 1px solid var(--accent-line); border-radius: 6px; background: var(--accent-soft); color: color-mix(in srgb, var(--accent-ink) 80%, var(--ink)); font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.sd-caption .sd-cap dt:last-of-type { border-color: var(--line-2); background: var(--bg-2); color: var(--ink-2); }
.sd-caption .sd-cap dd { padding-top: 1px; }
.sd-caption .sd-cap dd:first-of-type { color: var(--ink); font-size: 14px; font-weight: 600; }
.sd-caption .sd-cap dd:last-child { color: var(--muted); }
.sd-caption a { text-underline-offset: 3px; }
.sd-caption a:hover { color: var(--accent-ink); }
.sd-interp { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.sd-interp-title { margin: 0 0 10px; color: var(--ink); font: 700 15px/1.5 var(--serif); }
.sd-interp-body.strategy-prose { font-size: 14px; line-height: 1.9; }
.sd-interp-body > :first-child { margin-top: 0; }
.sd-interp-body > :last-child { margin-bottom: 0; }
.sd-interp-body :is(ul, ol) { margin: 10px 0; padding-left: 1.6em; }
.sd-interp-body li + li { margin-top: 6px; }
.sd-interp-body li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.sd-interp-body blockquote { margin: 12px 0; padding-left: 14px; border-left: 2px solid var(--line-2); color: var(--muted); }
.sd-empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 14px; }
.sd-sys { position: sticky; top: 86px; background: var(--deep); color: #f4ede1; border-radius: 22px; padding: 20px 22px; }
.sd-sys .sb-sys-t { margin-top: 0; }
.sd-rel { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.sd-rel p { font-size: 12.5px; color: rgba(244,237,225,.55); margin-bottom: 6px; }
.sd-rel a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 13px; text-decoration: none; }
.sd-rel a:hover { border-color: #f6a77a; }
.sd-more { padding: 6px 0 70px; }
.sd-more h2 { font-size: 20px; font-weight: 900; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.sd-more h2 span { font: 500 13.5px/1 var(--sans); color: var(--muted); }
.sd-more .sx-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sd-partial { margin-top: 12px; }

.sd-empty b { display: block; font: 700 17px/1.5 var(--serif); color: var(--ink); margin-bottom: 8px; }
.sd-empty p { max-width: 40em; margin: 0 auto 12px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.sd-empty mark { background: none; color: var(--accent-ink); font-weight: 700; }
.sd-empty a, .sd-na a { color: var(--accent-ink); font-weight: 600; }
.sd-sys .sd-na { font-size: 14px; line-height: 1.8; color: rgba(244,237,225,.75); }
.sd-sys .sd-na a { color: #f6a77a; }
.sd-sys .sys { margin-top: 4px; }
.sd-head .sd-chips .hot { border: 0; }
.sd-head .sd-intro mark { background: none; color: var(--accent-ink); font-weight: 700; }
.sd-interp mark { background: none; color: var(--accent-ink); font-weight: 700; }


/* 详情 · 图表舞台（两个标签 + 图上左右箭头） */
.sd-tabs2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.sd-tabs2 [role="tab"] { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 700 14px/1 var(--sans); color: var(--muted); cursor: pointer; }
.sd-tabs2 [role="tab"] i { font: 700 11px/1 var(--latin); font-style: normal; padding: 3px 6px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.sd-tabs2 [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sd-tabs2 [role="tab"][aria-selected="true"] i { background: var(--accent); color: var(--on-accent); }
.sd-tabs2 [role="tab"]:disabled { opacity: .4; cursor: default; }
.sd-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sw { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.sw input { accent-color: var(--accent); }
.sd-admin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--ink); font-weight: 700; text-decoration: none; color: var(--ink); }
.sd-admin small { font-size: 11px; font-weight: 600; color: var(--muted); }
.sd-admin:hover { background: var(--ink); color: var(--on-ink); border-style: solid; }
.sd-admin:hover small { color: rgba(255,255,255,.7); }
.sd-view2 { position: relative; border-radius: 14px; outline: none; }
.sd-view2:focus-visible { box-shadow: 0 0 0 3px rgba(239,122,60,.35); }
.sd-imgbox { position: relative; line-height: 0; }
.sd-imgbox img { width: 100%; height: auto; border-radius: 12px; background: var(--paper); cursor: zoom-in; }
#sd-ov .annot, .an-stage .annot { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sd-view2 .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(28,25,21,.82); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); transition: background-color .2s, opacity .2s, transform .2s; }
.sd-view2 .nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sd-view2 .nav:hover:not(:disabled) { background: var(--accent); transform: translateY(-50%) scale(1.06); }
.sd-view2 .nav:disabled { opacity: .25; cursor: default; }
.sd-view2 .prev { left: 10px; }
.sd-view2 .next { right: 10px; }
.sd-count { position: absolute; left: 12px; bottom: 12px; font: 700 12px/1 var(--sans); color: #fff; background: rgba(28,25,21,.78); padding: 6px 10px; border-radius: 999px; }
.sd-nexthint { position: absolute; right: 12px; bottom: 12px; font: 700 12px/1 var(--sans); color: var(--accent-ink); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; }
.lect { margin: 0; display: grid; gap: 0; }
.lect div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.lect div:first-child { border-top: 0; }
.lect dt { font: 700 13.5px/1.7 var(--serif); color: #f6a77a; }
.lect dd { margin: 0; font-size: 13.5px; line-height: 1.8; color: rgba(244,237,225,.85); display: flex; flex-direction: column; gap: 4px; }
.lect mark { background: none; color: #f6a77a; font-weight: 700; }
.sd-sys { max-height: calc(100vh - 110px); overflow: auto; }


/* 详情 · 管理员编辑 */
.sw-admin { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; }
.sw-admin:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.sd-adminbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 10px; padding: 8px 10px; border: 1.5px dashed var(--ink); border-radius: 12px; background: var(--accent-wash); font-size: 13px; }
.sd-adminbar button { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: 600 12.5px/1 var(--sans); cursor: pointer; color: var(--ink); }
.sd-adminbar button:hover:not(:disabled) { border-color: var(--ink); }
.sd-adminbar button:disabled { opacity: .35; cursor: default; }
.sd-adminbar .danger { color: #b33a2c; border-color: #f0c3c1; }
.sd-adminbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
.sd-edstate { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sd-edstate button { height: 26px; font-size: 12px; }
.sd-tip { margin-top: 10px; font-size: 13px; color: var(--accent-ink); }
.sd-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sd-ph .sb-sys-t { margin: 0 0 8px; flex-wrap: wrap; }
.sd-edit { flex: none; height: 30px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; font: 700 12.5px/1 var(--sans); cursor: pointer; }
.sd-edit:hover { background: var(--paper); color: var(--ink); }
.sd-src-tag { display: inline-block; margin: 0 0 6px; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.ed .sb-sys-t { margin: 0 0 10px; }
.ed.is-dirty .ed-h .sb-sys-t::after { content: "未保存"; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; }
.ef-set { margin: 0 0 12px; padding: 12px 12px 4px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.ef-set legend { padding: 0 6px; font: 700 13px/1 var(--serif); color: #f6a77a; }
.ef { display: block; margin-bottom: 10px; }
.ef > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ef > span small { font-weight: 400; font-size: 11.5px; color: rgba(244,237,225,.5); }
.ef input, .ef textarea { width: 100%; padding: 8px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; font: 400 13.5px/1.6 var(--sans); resize: vertical; }
.ef input:focus, .ef textarea:focus { outline: none; border-color: #f6a77a; background: rgba(255,255,255,.1); }
.ef-mode { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ef-mode label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: 13px; cursor: pointer; }
.ef-mode label:has(input:checked) { background: var(--paper); color: var(--ink); border-color: #fff; font-weight: 700; }
.ef-mode input { accent-color: var(--accent); }
.ef-note { font-size: 12.5px; line-height: 1.7; color: rgba(244,237,225,.65); margin-bottom: 10px; }
.ef-inherit .sys { opacity: .8; }
.ef-link { margin: 4px 0 10px; border: 0; background: none; padding: 0; color: #f6a77a; font: 700 13px/1.4 var(--sans); cursor: pointer; }
.ed-foot { position: sticky; bottom: -20px; display: flex; align-items: center; gap: 8px; margin: 6px -22px -20px; padding: 12px 22px 16px; background: linear-gradient(180deg, rgba(21,18,14,0), var(--deep) 30%); }
.ed-foot .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.ed-foot .ed-cancel { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.ed-foot small { margin-left: auto; font-size: 11.5px; color: rgba(244,237,225,.45); }
.sd-toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); transition: opacity .2s, transform .2s; }
.sd-toast.on { opacity: 1; transform: translate(-50%, 0); }


/* 全部形态（按正式站顺序）与连续研读 */
.sx-ctx { flex: 1 1 100%; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.sx-ctx a { color: var(--accent-ink); font-weight: 600; }
.sx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.sx-grid .st-tile { height: 100%; }
.sx-grid .st-tile-m { margin-top: auto; }
.sd-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sdn { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s; }
a.sdn:hover { border-color: var(--ink); transform: translateY(-2px); }
.sdn .k { font: 700 12px/1.4 var(--sans); color: var(--accent-ink); }
.sdn b { font: 700 16px/1.45 var(--latin); }
.sdn .s { font-size: 13px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sdn .m { margin-top: auto; font-size: 12px; color: var(--muted-2); }
.sdn.has { border-left: 3px solid var(--accent); }
.sdn-next { text-align: right; }
.sdn-end { border-style: dashed; background: transparent; }
.sdn-end a { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.sdn-ctx { background: var(--deep); border-color: var(--deep); color: #f4ede1; }
.sdn-ctx .k { color: #f6a77a; }
.sdn-ctx b { font-family: var(--serif); color: #fff; }
.sdn-ctx .s { -webkit-line-clamp: 4; color: rgba(244,237,225,.72); }
.ctx-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ctx-links a { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 13px; text-decoration: none; }
.ctx-links a:hover { border-color: #f6a77a; }


/* ===== 第八轮：标题、浅色策略栏、图表比例（Light / Dark 共用变量） ===== */
.tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-meta { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--sans); color: var(--muted); margin-bottom: 10px; letter-spacing: .04em; }
.tt-meta b { font: 700 12px/1 var(--latin); letter-spacing: .08em; color: var(--accent-ink); padding: 4px 8px; border: 1.5px solid var(--accent-line); border-radius: 6px; }
.tt-meta::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }
.tt-latin { font: italic 500 clamp(24px, 2.4vw, 34px)/1.05 var(--italic); color: var(--accent-ink); letter-spacing: -.01em; }
.tt-main { margin: 2px 0 0; font: 900 clamp(34px, 3.6vw, 54px)/1.12 var(--serif); letter-spacing: .02em; color: var(--ink); position: relative; padding-bottom: 10px; }
.tt-main::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--accent); }
.tt-lat .tt-main { font: 700 clamp(32px, 3.4vw, 50px)/1.08 var(--italic); letter-spacing: -.015em; }
.tt-kicker { font-size: clamp(16px, 1.4vw, 20px); color: var(--muted); }
.tt-rest { font: italic 400 16px/1.5 var(--italic); color: var(--muted); margin-top: 6px; }
.tt-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 12px; font: 600 15px/1.5 var(--serif); color: var(--ink-2); }
.tt-sub i { font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .14em; color: var(--muted); padding: 4px 8px; border-radius: 999px; background: var(--bg-2); }
.tt-sub em { font: italic 400 15px/1.5 var(--italic); color: var(--muted); }
.sd-head h1 small { display: none; }
.sd-head-in { align-items: flex-end; }
.sd-chips span { background: var(--card); }
.hot, .sd-chips .hot { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; font-weight: 700; }

/* 详情：图表更大，策略栏更窄、浅色 */
.sd-board { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
.sd-sys, .sx-board .sb-sys { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sd-sys { padding: 18px 20px; }
.sb-sys-t { color: var(--ink); }
.sb-sys-t span { color: var(--muted); }
.sys::before { border-left-color: var(--line); }
.sys-k { color: var(--ink); }
.sys-c { color: var(--ink-2); }
.sys li.is-empty .sys-n { border-color: var(--line-2); color: var(--muted-2); }
.sys li.is-empty .sys-c { color: var(--muted-2); }
.sb-sys mark, .sd-sys mark, .lect mark { color: var(--accent-ink); background: var(--accent-wash); padding: 0 2px; border-radius: 3px; }
.lect div { border-top-color: var(--line); }
.lect dt { color: var(--accent-ink); }
.lect dd { color: var(--ink-2); }
.sd-rel { border-top-color: var(--line); }
.sd-rel p { color: var(--muted); }
.sd-rel a { border-color: var(--line); color: var(--ink); background: var(--card); }
.sd-rel a:hover { border-color: var(--accent); color: var(--accent-ink); }
.sd-sys .sd-na { color: var(--ink-2); }
.sd-sys .sd-na a { color: var(--accent-ink); }
.sd-edit { border-color: var(--line); color: var(--ink); background: var(--card); }
.sd-edit:hover { background: var(--ink); color: var(--on-ink); }
.sd-src-tag { background: var(--accent-soft); color: var(--accent-ink); }
.ef-set { border-color: var(--line); }
.ef-set legend { color: var(--accent-ink); }
.ef > span { color: var(--ink); }
.ef > span small { color: var(--muted); }
.ef input, .ef textarea { border-color: var(--line); background: var(--paper); color: var(--ink); }
.ef input:focus, .ef textarea:focus { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px var(--accent-wash); }
.ef-mode label { border-color: var(--line); }
.ef-mode label:has(input:checked) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.ef-note { color: var(--muted); }
.ef-link { color: var(--accent-ink); }
.ed-foot { background: linear-gradient(180deg, transparent, var(--panel) 30%); margin: 6px -20px -18px; padding: 12px 20px 16px; }
.ed-foot .ed-cancel { color: var(--ink); border-color: var(--line-2); }
.ed-foot small { color: var(--muted); }
.ed.is-dirty .ed-h .sb-sys-t::after { background: var(--accent-soft); color: var(--accent-ink); }
.sd-nexthint { background: var(--accent); color: var(--on-accent); }

/* 列表看板：浅色，与详情一致 */
.sx-board { background: var(--panel); border: 1px solid var(--line); grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
.sb-chart { background: var(--paper); border-right: 1px solid var(--line); }
.sb-sys { padding: 24px 26px 22px; box-shadow: none !important; border: 0 !important; }
.sb-label { color: var(--muted); }
.sb-essence { color: var(--ink-2); }
.sb-cta span { color: var(--muted); }
.sx-board .tt-main, .sx-board .sb-sys h2.tt-main { font-size: clamp(28px, 2.6vw, 38px); color: var(--ink); margin-top: 2px; }
.sx-board .tt-latin { font-size: clamp(20px, 1.8vw, 26px); }
.st-tile.is-featured .st-tile-h b::after { background: var(--accent-soft); color: var(--accent-ink); }
html[data-theme="dark"] .sb-tag span { background: var(--accent); color: var(--on-accent); }
html[data-theme="dark"] .an-stage, html[data-theme="dark"] .sd-imgbox img, html[data-theme="dark"] .sb-img > img { background: #fff; }

@media (max-width: 1100px) {
  .sx-board, .sd-board { grid-template-columns: 1fr !important; }
  .sb-chart { border-right: 0; border-bottom: 1px solid var(--line); }
  .sd-sys { position: static; }
  .sx-cols, .sd-more .sx-cols, .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sx-tools { width: 100%; }
  .sx-search { flex: 1 1 100%; }
  .sx-search input { width: 100%; }
  .sb-sys { padding: 22px 18px; }
  .sb-inset { width: 34%; }
  .sx-cols, .sd-more .sx-cols, .sx-grid, .sd-next { grid-template-columns: 1fr; }
  .sdn-next { text-align: left; }
  .sys li { grid-template-columns: 24px 44px minmax(0, 1fr); }
  .sd-tools { margin-left: 0; width: 100%; justify-content: space-between; }
  .sd-view2 .nav { width: 38px; height: 38px; }
  .sd-sys { max-height: none; }
}

/* 小号序号与角标用深一档的橙色，保证对比度（深色主题下 accent-ink 为浅橙，配深色文字） */
.sys-n, .sd-tabs2 [role="tab"][aria-selected="true"] i, .sd-nexthint, .sb-inset span { background: var(--accent-ink) !important; color: var(--on-accent) !important; }
html:not([data-theme="dark"]) .sys-n, html:not([data-theme="dark"]) .sd-tabs2 [role="tab"][aria-selected="true"] i, html:not([data-theme="dark"]) .sd-nexthint, html:not([data-theme="dark"]) .sb-inset span { color: #fff !important; }
.sys li.is-empty .sys-n { background: transparent !important; color: var(--muted-2) !important; }
