/* 一看就懂的美股期权 第 11 章（b11）：几条曲线（跨期、时间线、拆法）、相似三角形、四象限、跨期盈亏图工具、拆解器预告。
   gen_options_course.py 自动加载（跟在 oc-course.css 后面，版本号按内容哈希）。颜色只用全站令牌；盈利绿、亏损红，亏损不用绿；浅色主题不用整块深色底。 */

/* ---------- 几条曲线 */
.oc-svg .ob11-c1{stroke:var(--info);stroke-width:1.8;stroke-dasharray:6 4}
.oc-svg .ob11-c2{stroke:var(--sub);stroke-width:1.6;stroke-dasharray:4 4}
.oc-svg .ob11-c3{stroke:var(--warn);stroke-width:1.8;stroke-dasharray:6 4}
.oc-svg .ob11-c4{stroke:var(--accent);stroke-width:2}
.oc-legend .ob11-c1 i{border-top:2px dashed var(--info)}
.oc-legend .ob11-c2 i{border-top:2px dashed var(--sub)}
.oc-legend .ob11-c3 i{border-top:2px dashed var(--warn)}
.oc-legend .ob11-c4 i{border-top:3px solid var(--accent)}
.oc-svg text.ob11-note{font-size:var(--fs-tiny,12px);fill:var(--sub)}
.oc-svg .ob11-dot{fill:var(--accent);stroke:var(--card);stroke-width:1.5}
.oc-svg text.ob11-dot-t{font-size:var(--fs-tiny,12px);font-weight:600;fill:var(--text);stroke:none}

/* ---------- 两张示意图并排（相似三角形、四象限） */
.ob11-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 4px}
.ob11-two figure{margin:0;padding:10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card);min-width:0}
.ob11-two .oc-svg,.ob11-one .oc-svg{display:block;width:100%;height:auto}
.ob11-two figcaption,.ob11-one figcaption{margin:4px 0 0;font-size:var(--fs-small,13px);line-height:1.6;color:var(--sub)}
.ob11-one{margin:12px auto 4px;max-width:420px;padding:10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card)}
@media(max-width:560px){.ob11-two{grid-template-columns:1fr}}

/* ---------- 相似三角形 */
.oc-svg .ob11-tri-a{fill:var(--info-soft);stroke:var(--info);stroke-width:1}
.oc-svg .ob11-tri-b{fill:var(--ch-down-soft);stroke:var(--ch-down);stroke-width:1}
.oc-svg text.ob11-tri-t{font-size:12px;font-weight:600;fill:var(--text);stroke:none}
.oc-svg text.ob11-tri-k{font-size:12px;fill:var(--sub);stroke:none}
.oc-svg text.ob11-tri-be{fill:var(--ch-down);font-weight:600}

/* ---------- 四象限 */
.oc-svg .ob11-q-ax{fill:none;stroke:var(--sub);stroke-width:1.2}
.oc-svg text.ob11-q-axt{font-size:12px;fill:var(--sub);stroke:none}
.oc-svg .ob11-q-cal,.oc-svg .ob11-q-ver{fill:none;stroke:var(--sub);stroke-width:1.6;stroke-dasharray:4 4}
.oc-svg .ob11-q-dia{fill:none;stroke:var(--accent);stroke-width:2.4}
.oc-svg text.ob11-q-lt{font-size:12px;fill:var(--sub);stroke:none}
.oc-svg text.ob11-q-dt{fill:var(--accent);font-weight:600}
.oc-svg .ob11-q-n rect{fill:var(--card);stroke:var(--line);stroke-width:1.2}
.oc-svg .ob11-q-n text{font-size:13px;font-weight:600;fill:var(--text);stroke:none}
.oc-svg .ob11-q-n text.ob11-q-s{font-size:11px;font-weight:400;fill:var(--sub)}
.oc-svg .ob11-q-buy rect{fill:var(--ch-up-soft);stroke:var(--ch-up)}
.oc-svg .ob11-q-sell rect{fill:var(--ch-down-soft);stroke:var(--ch-down)}

/* ---------- 跨期盈亏图工具 */
.ob11-cal .ob11-leg .oc-po-nums{grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr))}
.ob11-sel select{flex:1;min-width:0;height:36px;padding:0 8px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card);color:var(--text);font:inherit;font-size:var(--fs-aux,14px)}
.ob11-sel select:focus-visible{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.ob11-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 18px;margin:12px 0 4px}
.ob11-n{grid-template-columns:auto 7.5em!important}
.ob11-dv{display:grid;gap:4px;min-width:0}
.ob11-lab{font-size:var(--fs-small,13px);color:var(--sub)}
.ob11-dv .oc-seg{flex-wrap:wrap}
.ob11-dv .oc-seg button{padding:0 11px}
.ob11-cal-chart .oc-svg{display:block;width:100%;height:auto}
@media(max-width:560px){
  .ob11-cal .ob11-leg .oc-po-nums{grid-template-columns:1fr}
  .ob11-n{grid-template-columns:8em minmax(0,1fr)!important;width:100%}
  .ob11-dv .oc-seg button{padding:0 9px}
}

/* ---------- 组合拆解器预告（11-2） */
.ob11-teaser{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;padding:10px 14px;border:1px dashed var(--accent-line);border-radius:var(--r-sm);background:var(--accent-soft);font-size:var(--fs-aux,14px);line-height:1.7;color:var(--prose)}
.ob11-teaser svg{flex:none;width:20px;height:20px;margin-top:2px;color:var(--accent)}
.ob11-teaser b{color:var(--text)}

/* ---------- 表 */
.oc-tbl.ob11-fit tbody th{white-space:normal;min-width:8em}
.oc-tbl.ob11-fit td{white-space:nowrap}

/* ---------- 近月到期后的几条路（11-5） */
.ob11-list{margin:8px 0 12px;padding:0 0 0 22px;display:grid;gap:6px;font-size:var(--fs-aux,14px);line-height:1.7;color:var(--prose)}
.ob11-list b{color:var(--text)}
