/* 一看就懂的美股期权：第 9 章 隐含波动率怎么看（b9）新增的样式，跟在 oc-course.css 后面（生成器自动加载，版本号按内容哈希）。
   类名一律 ob9- 开头；颜色只用全站令牌；隐含波动率的高低用强调色、提示色的深浅，不用涨跌色；浅色下不用整块深底；没有动画。 */

/* 图里的补充 */
.oc-svg .ob9-dash{stroke-dasharray:6 4}
.oc-svg text.ob9-dot-t{font-size:var(--fs-tiny,12px);fill:var(--text);font-weight:600}
.oc-svg text.ob9-dot-t.oc-s1{fill:var(--accent)}
.oc-svg text.ob9-dot-t.oc-s2{fill:var(--info)}
.oc-svg text.ob9-dot-t.oc-s3{fill:var(--warn)}
.oc-svg text.ob9-dot-t.oc-und{fill:var(--text)}
.oc-svg circle.oc-end.ob9-up{fill:var(--ch-up)}
.oc-svg circle.oc-end.ob9-dn{fill:var(--ch-down)}
.oc-svg text.ob9-dot-t.ob9-up{fill:var(--ch-up)}
.oc-svg text.ob9-dot-t.ob9-dn{fill:var(--ch-down)}
.oc-svg .oc-hl.ob9-q{stroke:var(--sub)}
.oc-svg text.ob9-q{fill:var(--sub)}
.oc-svg .oc-hl.ob9-med{stroke:var(--accent);stroke-dasharray:6 4}
.oc-svg text.oc-hl-t.ob9-med{fill:var(--accent)}
.oc-svg .ob9-band{fill:var(--accent-soft);stroke:none}
.oc-svg .ob9-now{stroke:var(--accent);stroke-width:1.6;fill:none}
.oc-svg text.ob9-now-t{fill:var(--accent);font-size:var(--fs-tiny,12px);font-weight:600}
.oc-svg .oc-vl.oc-s0{stroke:var(--accent)}
.oc-svg .ob9-vl{stroke-dasharray:4 4}
.oc-svg .oc-line.ob9-norm{stroke:var(--accent);stroke-width:1.8}
.oc-svg .ob9-hb-up{fill:var(--ch-up-soft);stroke:var(--ch-up-line);stroke-width:.6}
.oc-svg .ob9-hb-dn{fill:var(--ch-down-soft);stroke:var(--ch-down-line);stroke-width:.6}
.oc-svg .ob9-hb-up.ob9-out{fill:var(--ch-up);stroke:none}
.oc-svg .ob9-hb-dn.ob9-out{fill:var(--ch-down);stroke:none}
.oc-svg .ob9-hb-edge{stroke-width:1.4}
.oc-legend .ob9-norm i{border-color:var(--accent)}
.oc-legend .ob9-q i{border-top:1px dashed var(--sub)}
.oc-legend .ob9-med i{border-top:2px dashed var(--accent)}
.oc-legend .ob9-dash i{border-top-style:dashed}
.oc-legend .ob9-sw i{width:12px;height:12px;border:0;border-radius:3px}
.oc-legend .ob9-sw-up i{background:var(--ch-up-soft);border:1px solid var(--ch-up-line)}
.oc-legend .ob9-sw-dn i{background:var(--ch-down-soft);border:1px solid var(--ch-down-line)}
.oc-legend .ob9-sw-band i{background:var(--accent-soft2)}

/* 钟形图 */
.oc-svg .ob9-b1{fill:var(--accent-soft2);stroke:none}
.oc-svg .ob9-b2{fill:var(--accent-soft);stroke:none}
.oc-svg text.ob9-bell-t{fill:var(--accent);font-size:var(--fs-small,13px);font-weight:600}
.oc-svg text.ob9-bell-t2{fill:var(--sub);font-size:var(--fs-small,13px)}

/* 定价公式正反两向、天气小图 */
.oc-svg .ob9-box{fill:var(--card);stroke:var(--line2);stroke-width:1.2}
.oc-svg .ob9-box-hi{fill:var(--accent-soft);stroke:var(--accent-line)}
.oc-svg .ob9-box-core{fill:var(--raise2);stroke:var(--line3)}
.oc-svg text.ob9-box-t{fill:var(--text);font-size:var(--fs-aux,14px);font-weight:600}
.oc-svg text.ob9-box-v{fill:var(--text);font-size:var(--fs-aux,14px);font-weight:600;font-variant-numeric:tabular-nums}
.oc-svg text.ob9-cpu-in{fill:var(--sub);font-size:var(--fs-small,13px)}
.oc-svg text.ob9-cpu-tag{fill:var(--accent);font-size:var(--fs-small,13px);font-weight:600}
.oc-svg .ob9-arrow{stroke:var(--sub);stroke-width:1.6;fill:none}
.oc-svg .ob9-arrow-h{stroke:var(--sub);stroke-width:1.6;fill:none;stroke-linejoin:round}
.oc-svg .ob9-wx-card{fill:var(--card);stroke:var(--line2)}
.oc-svg .ob9-wx-bar{fill:var(--warn-soft);stroke:var(--warn-line)}
.oc-svg .ob9-wx-guess{fill:none;stroke:var(--accent);stroke-width:1.6;stroke-dasharray:4 3}

/* 9-5 隐含波动率表：按整张表的高低分 6 档 */
.ob9-surf th,.ob9-surf td{text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.ob9-surf td.ob9-s0{background:var(--info-soft)}
.ob9-surf td.ob9-s1{background:color-mix(in srgb,var(--info-soft) 50%,transparent)}
.ob9-surf td.ob9-s2{background:transparent}
.ob9-surf td.ob9-s3{background:var(--accent-soft)}
.ob9-surf td.ob9-s4{background:var(--accent-soft2)}
.ob9-surf td.ob9-s5{background:color-mix(in srgb,var(--warn) 22%,transparent);font-weight:600}
.ob9-surf th.ob9-cut{color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent)}
.ob9-surf td.ob9-cut-c{box-shadow:inset 2px 0 0 var(--accent),inset -2px 0 0 var(--accent)}
.ob9-surf tr.ob9-cut-row th,.ob9-surf td.ob9-cut-r{box-shadow:inset 0 2px 0 var(--info),inset 0 -2px 0 var(--info)}
.ob9-surf td.ob9-cut-r.ob9-cut-c{box-shadow:inset 0 0 0 2px var(--accent)}

/* 互动共用：顶上一排分段按钮、滑块、例子按钮 */
.ob9-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:0 0 10px}
.ob9-seg-wrap{flex-wrap:wrap;border-radius:var(--r-sm)}
.ob9-bar .oc-seg button:disabled{opacity:.45;cursor:not-allowed}
.ob9-sub{margin:0 0 10px;font-size:var(--fs-small,13px);line-height:1.7;color:var(--sub)}
.ob9-slide{margin:0 0 12px;padding:10px 14px;border:1px solid var(--accent-line);border-radius:var(--r-sm);background:var(--accent-soft)}
.ob9-slide label{display:block;font-size:var(--fs-ui,15px);color:var(--text)}
.ob9-slide b{font-variant-numeric:tabular-nums}
.ob9-slide small{color:var(--sub)}
.ob9-slide input{display:block;width:100%;margin:8px 0 0;accent-color:var(--accent)}
.ob9-hv-chart,.ob9-pos-chart{min-width:0}
.ob9-say{display:block;font-size:var(--fs-aux,14px)!important;line-height:1.7;color:var(--text)!important;font-weight:400}
.ob9-pre{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;font-size:var(--fs-small,13px);color:var(--sub)}
.ob9-chip{min-height:34px;padding:0 12px;border:1px solid var(--line2);border-radius:var(--r-pill,999px);background:var(--card);color:var(--text);font:inherit;font-size:var(--fs-aux,14px);cursor:pointer}
.ob9-chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);font-weight:600}
.ob9-chip:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ob9-steps{margin:12px 0 0}
.ob9-steps .oc-tbl td{white-space:nowrap;font-variant-numeric:tabular-nums}
.ob9-hv .oc-calc-grid,.ob9-pos .oc-calc-grid{grid-template-columns:1fr}

/* 9-5 期权链阅读器的隐含波动率着色 */
.ob9-ivc-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 10px}
.ob9-ivc-btn{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px;border:1px solid var(--accent-line);border-radius:999px;background:var(--card);color:var(--text);font:inherit;font-size:var(--fs-aux,14px);font-weight:600;cursor:pointer}
.ob9-ivc-btn i{display:inline-block;width:30px;height:18px;border-radius:999px;background:var(--raise2,var(--raise));border:1px solid var(--line2,var(--line));position:relative}
.ob9-ivc-btn i::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--sub)}
.ob9-ivc-btn[aria-pressed="true"]{background:var(--accent-soft)}
.ob9-ivc-btn[aria-pressed="true"] i{background:var(--accent);border-color:var(--accent)}
.ob9-ivc-btn[aria-pressed="true"] i::after{left:14px;background:var(--card)}
.ob9-ivc-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ob9-ivc-tip{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:var(--fs-small,13px);color:var(--sub)}
.ob9-ivc-tip span{display:inline-flex;align-items:center;gap:6px}
.ob9-ivc-tip i{display:inline-block;width:14px;height:14px;border-radius:3px;border:1px solid var(--line2)}
.ob9-k2 i,.oc-chain td.ob9-iv2{background:color-mix(in srgb,var(--warn) 24%,transparent)}
.ob9-k1 i,.oc-chain td.ob9-iv1{background:var(--warn-soft)}
.ob9-k0 i{background:var(--card)}
.ob9-km i,.oc-chain td.ob9-ivm{background:var(--info-soft)}
.oc-chain td.ob9-iv2{font-weight:600;color:var(--text)}
.ob9-ivc-out{margin-top:8px!important;padding-top:8px;border-top:1px dashed var(--line2);font-size:var(--fs-aux,14px)!important}
