/* 一看就懂的美股期权 第 10 章（b10）：两图并排、三区底色、叠加动画、速记法卡、组合地图（郑商所五色分组）、跷跷板、财报涨跌条、VIX 折线、三方关系图、两腿卖方计算器。
   gen_options_course.py 自动加载（跟在 oc-course.css 后面，版本号按内容哈希）。颜色只用全站令牌；盈利绿、亏损红，亏损不用绿；浅色主题不用整块深色底。 */

/* ---------- 两图并排（桌面两列、手机一列） */
.ob10-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 0}
.ob10-cell{min-width:0;padding:8px 8px 4px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card)}
.ob10-ct{display:block;margin:0 0 4px;font-size:var(--fs-aux,14px);font-weight:var(--fw-strong);color:var(--text)}
.ob10-cell .oc-svg{display:block;width:100%;height:auto}
@media(max-width:560px){.ob10-pair{grid-template-columns:1fr}}

/* ---------- 三区底色（恒定亏损、变化损益、恒定盈利） */
.oc-svg .ob10-z{stroke:none}
.oc-svg .ob10-z-loss{fill:var(--ch-down-soft);opacity:.55}
.oc-svg .ob10-z-mid{fill:var(--info-soft)}
.oc-svg .ob10-z-gain{fill:var(--ch-up-soft);opacity:.55}
.oc-svg text.ob10-zt{font-size:var(--fs-tiny,12px);font-weight:600;stroke:none}
.oc-svg text.ob10-zt-loss{fill:var(--ch-down)}
.oc-svg text.ob10-zt-mid{fill:var(--info)}
.oc-svg text.ob10-zt-gain{fill:var(--ch-up)}

/* ---------- 叠加动画（oc-tools-b10.js 加 is-pre / is-in；没有脚本或减少动效时直接是最后的样子） */
.oc-svg .ob10-add{stroke:var(--accent);stroke-width:2.2}
.oc-svg .ob10-add-d{fill:var(--accent);stroke:var(--card);stroke-width:1.5}
.ob10-anim.is-pre .ob10-s{opacity:0}
.ob10-anim.is-in .ob10-s{opacity:0;animation:ob10-in .5s var(--ease-out,ease-out) forwards}
.ob10-anim.is-in .ob10-s1{animation-delay:.2s}
.ob10-anim.is-in .ob10-s2{animation-delay:1s}
.ob10-anim.is-in .ob10-s3{animation-delay:1.8s}
.ob10-anim.is-in .ob10-s4{animation-delay:2.7s}
@keyframes ob10-in{to{opacity:1}}
.ob10-replay{margin:8px 0 0;min-height:34px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card);color:var(--text);font:inherit;font-size:var(--fs-small,13px);cursor:pointer}
.ob10-replay:hover{border-color:var(--accent-line);color:var(--accent)}
.ob10-replay:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.oc-legend .ob10-add i{border-top:3px solid var(--accent)}
@media(prefers-reduced-motion:reduce){.ob10-anim .ob10-s{animation:none!important;opacity:1!important}.ob10-replay{display:none}}

/* ---------- 速记法卡 */
.ob10-sh{margin:12px 0 4px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card)}
.ob10-sh-keys{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 10px;font-size:var(--fs-aux,14px);color:var(--prose)}
.ob10-sh-keys b{display:inline-block;min-width:1.6em;margin-right:6px;font-family:var(--font-mono);color:var(--accent)}
.ob10-sh-ex{margin:0;padding:0 0 0 22px;display:grid;gap:6px;font-size:var(--fs-aux,14px);line-height:1.7;color:var(--prose)}
.ob10-sh-ex code{display:inline-block;margin-right:10px;padding:1px 8px;border-radius:var(--r-sm);background:var(--accent-soft);color:var(--text);font-family:var(--font-mono);font-size:var(--fs-small,13px);white-space:nowrap}
@media(max-width:560px){.ob10-sh-ex code{display:block;margin:0 0 2px;width:max-content;max-width:100%;white-space:normal}}

/* ---------- 组合地图：郑商所五色（看多蓝、看空黄、震荡灰、突破绿、保值米） */
.ob10-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 4px}
.ob10-g{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card)}
.ob10-g h4{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:0 0 8px;font-size:var(--fs-ui,15px);color:var(--text)}
.ob10-g h4 i{display:inline-block;width:10px;height:10px;border-radius:2px;transform:translateY(1px)}
.ob10-g h4 small{font-weight:400;font-size:var(--fs-small,13px);color:var(--sub)}
.ob10-g ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ob10-g li{display:grid;gap:2px;font-size:var(--fs-small,13px);line-height:1.6;color:var(--prose)}
.ob10-g li b{font-size:var(--fs-aux,14px);color:var(--text)}
.ob10-g li code{font-family:var(--font-mono);font-size:var(--fs-small,13px);color:var(--sub)}
.ob10-g-up{border-color:var(--info-line);background:var(--info-soft)}
.ob10-g-up h4 i{background:var(--info)}
.ob10-g-dn{border-color:var(--warn-line);background:var(--warn-soft)}
.ob10-g-dn h4 i{background:var(--warn)}
.ob10-g-range h4 i{background:var(--sub)}
.ob10-g-break{border-color:var(--free-line);background:var(--free-soft)}
.ob10-g-break h4 i{background:var(--free)}
.ob10-g-hedge{border-color:var(--accent-line);background:var(--accent-soft)}
.ob10-g-hedge h4 i{background:var(--accent)}
@media(max-width:560px){.ob10-map{grid-template-columns:1fr}}

/* ---------- 跷跷板 */
.ob10-saws{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 4px}
.ob10-saw{margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card);min-width:0}
.ob10-saw .oc-svg{display:block;width:100%;height:auto}
.ob10-saw figcaption{margin:2px 0 0;font-size:var(--fs-small,13px);color:var(--sub);text-align:center}
.oc-svg .ob10-saw-base{fill:var(--line);stroke:var(--sub);stroke-width:1}
.oc-svg .ob10-saw-plank{stroke:var(--text);stroke-width:5;stroke-linecap:round}
.oc-svg circle.ob10-saw-up{fill:var(--ch-up)}
.oc-svg circle.ob10-saw-dn{fill:var(--ch-down)}
.oc-svg path.ob10-saw-up{fill:none;stroke:var(--ch-up);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.oc-svg path.ob10-saw-dn{fill:none;stroke:var(--ch-down);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.oc-svg text.ob10-saw-t{font-size:13px;font-weight:600;fill:var(--text);stroke:none}
@media(max-width:560px){.ob10-saws{grid-template-columns:1fr}}

/* ---------- 财报涨跌条 */
.oc-svg .ob10-bar{stroke-width:1}
.oc-svg .ob10-bar-up{fill:var(--ch-up-soft);stroke:var(--ch-up-line,var(--ch-up))}
.oc-svg .ob10-bar-dn{fill:var(--ch-down-soft);stroke:var(--ch-down-line,var(--ch-down))}
.oc-svg .ob10-bar-up.ob10-bar-hit{fill:var(--ch-up)}
.oc-svg .ob10-bar-dn.ob10-bar-hit{fill:var(--ch-down)}
.oc-svg text.ob10-bar-v{font-size:var(--fs-tiny,12px);fill:var(--text);stroke:none}
.oc-svg .ob10-beline{stroke:var(--accent);stroke-width:1.6;stroke-dasharray:6 4}
.oc-svg text.ob10-bet{font-size:var(--fs-tiny,12px);font-weight:600;fill:var(--accent);stroke:none}

/* ---------- VIX 折线 */
.oc-svg .ob10-vix{stroke:var(--warn);stroke-width:2}
.oc-svg .ob10-vdot{fill:var(--warn);stroke:var(--card);stroke-width:1.5}
.oc-svg text.ob10-vt{font-size:var(--fs-tiny,12px);font-weight:600;fill:var(--warn);stroke:none}
.oc-legend .ob10-vix i{border-top:2px solid var(--warn)}

/* ---------- 三方关系倒三角 */
.ob10-tri-box{max-width:340px;margin:12px auto 4px}
.ob10-tri-box .oc-svg{display:block;width:100%;height:auto}
.oc-svg .ob10-tri-e{fill:var(--accent-soft);stroke:var(--accent-line);stroke-width:1.5}
.oc-svg text.ob10-tri-m{font-size:13px;fill:var(--sub);stroke:none}
.oc-svg .ob10-tn circle{fill:var(--card);stroke-width:2}
.oc-svg .ob10-tn text{font-size:14px;font-weight:600;fill:var(--text);stroke:none}
.oc-svg .ob10-tn text.ob10-tn-s{font-size:12px;font-weight:400;fill:var(--sub)}
.oc-svg .ob10-tn-s0 circle{stroke:var(--sub)}
.oc-svg .ob10-tn-p circle{stroke:var(--info)}
.oc-svg .ob10-tn-c circle{stroke:var(--warn)}

/* ---------- 两腿卖方计算器 */
.ob10-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 12px}
.ob10-lab{font-size:var(--fs-small,13px);color:var(--sub)}
.ob10-s2 .oc-po-pre{margin-bottom:10px}
.ob10-s2 .oc-calc-outs dd small{display:block;font-weight:400;font-size:var(--fs-small,13px);color:var(--sub);line-height:1.6}
.ob10-s2 .oc-po-mx{display:block}
.ob10-s2 .oc-po-mx+.oc-po-mx{margin-top:6px}
.ob10-s2-chart{margin:12px 0 0}
.ob10-tool-h{margin:18px 0 8px;font-size:var(--fs-ui,15px);color:var(--text)}
.oc-tbl.ob10-wide{min-width:620px}
.oc-tbl.ob10-fit tbody th{white-space:normal;min-width:8.5em}
.oc-tbl.ob10-fit td:last-child{min-width:0;white-space:nowrap}
.oc-legend .ob10-lg-up i{height:10px;border:1px solid var(--ch-up);background:var(--ch-up-soft)}
.oc-legend .ob10-lg-dn i{height:10px;border:1px solid var(--ch-down);background:var(--ch-down-soft)}
.oc-legend .ob10-lg-hit i{height:10px;border:0;background:linear-gradient(90deg,var(--ch-up) 50%,var(--ch-down) 50%)}
.oc-legend .ob10-lg-be i{border-top:2px dashed var(--accent)}
.oc-svg text.ob10-bar-v.ob10-bar-vin{fill:var(--card);font-weight:600;font-size:11px}
