/* AIDC Academy 学分课程（docs/academy-catalog.md）。与 academy.css 同一套面分层（docs/site-design.md）：
   分组面 --surface、面上的白卡 --raised + --elev、控件 --fill；不画四边框，线只给数据（表格行、列表分隔）。
   证书是纸面印刷品：自己的纸色与细线，不跟主题变（打印成 A4 横版）。 */

.acx-mono { font-family: var(--font-mono); letter-spacing: 0; }
.acx .acd-chip.acx-code { font-family: var(--font-mono); font-weight: 600; color: var(--ink-strong); background: var(--fill); }
.acx-h1code { display: inline-block; margin-right: 0.45em; color: var(--mut-2); font-size: 0.6em; font-weight: 500; vertical-align: 0.12em; }
.acx-coursehead .btn-row { margin-top: 28px; }
.acx-sec { margin-top: clamp(36px, 5vw, 64px); }
.acx-sec > h2, .acx-two h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0 0 16px; }
.acx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.acx-catalog, .acx-syllabus, .acx-my { padding-bottom: 96px; }
.acx-note p { margin: 0; color: var(--mut); }
.acx-note a { color: var(--signal-ink); }

/* 课程卡 */
.acx-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.acx-courses--list { grid-template-columns: 1fr; }
.acx-coursecard { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border-radius: 24px; background: var(--surface); color: var(--ink); transition: background .15s, box-shadow .15s; }
.acx-coursecard:hover { background: var(--surface-hover); }
.acx-coursecard .acd-chips--meta { margin-top: 0; }
.acx-coursecard h3 { font-size: 1.35rem; margin: 6px 0 0; color: var(--ink-strong); }
.acx-coursecard p { margin: 0; color: var(--mut); line-height: 1.7; }
.acx-coursecard .btn { align-self: flex-start; margin-top: 8px; }
.acx-coursecard--row { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.acx-coursecard--row > div { flex: 1; min-width: 0; display: grid; gap: 8px; }
.acx-coursecard--row .btn { align-self: center; margin: 0; }

.acx-coursecard--hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 20px 28px 20px 20px; }
.acx-courses:has(.acx-coursecard--hero) { grid-template-columns: 1fr; }
.acx-coursecard-art { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; }
.acx-coursecard-art img, .acx-hero-art img { display: block; width: 100%; height: auto; }
.acx-coursecard-body { display: flex; flex-direction: column; gap: 10px; }

/* 大纲页首屏：左文右图 */
.acx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.acx-hero h1 { line-height: 1.12; }
.acx-hero .acx-h1code { font-size: 0.5em; margin-bottom: 6px; }
.acx-hero-art { margin: 0; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--elev-1); }
.acx-glance { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.acx-glance div { display: grid; gap: 2px; padding: 16px 14px; border-radius: 18px; background: var(--surface); }
.acx-glance b { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-strong); line-height: 1.1; }
.acx-glance span { font-size: 0.8rem; color: var(--mut); }
.acx-outcomes.acx-outcomes--cards { list-style: none; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acx-outcomes--cards li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 18px 20px; border-radius: 18px; background: var(--surface); }
.acx-outcomes--cards p { margin: 0; line-height: 1.7; }
.acx-idx { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--signal-ink); padding-top: 2px; }
.acx-certrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.acx-certfacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.acx-certfacts li { display: grid; gap: 3px; padding-left: 14px; box-shadow: inset 2px 0 0 var(--signal); }
.acx-certfacts b { color: var(--ink-strong); }
.acx-certfacts span { color: var(--mut); font-size: 0.92rem; line-height: 1.6; }

/* 课型 */
.acx-kind { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-full); font-size: 0.74rem; font-weight: 600; white-space: nowrap; background: var(--fill); color: var(--ink); }
.acx-kind--lecture { background: color-mix(in srgb, #5b8def 16%, transparent); color: color-mix(in srgb, #2f5fbf 85%, var(--ink)); }
.acx-kind--lab { background: var(--signal-soft); color: var(--signal-ink); }
.acx-kind--tutorial { background: color-mix(in srgb, #9b6bd6 16%, transparent); color: color-mix(in srgb, #6f3fb0 85%, var(--ink)); }
.acx-kind--workshop { background: var(--leaf-soft); color: var(--leaf); }
.acx-kind--quiz { background: var(--fill); color: var(--ink); }
.acx-kind--project { background: color-mix(in srgb, #d4a017 18%, transparent); color: color-mix(in srgb, #8a6400 85%, var(--ink)); }
.acx-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.acx-comp { padding: 20px 22px; border-radius: 20px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.acx-comp b { font-size: 1.02rem; color: var(--ink-strong); }
.acx-comp p { margin: 0; color: var(--mut); font-size: 0.92rem; line-height: 1.65; }
.acx-comp .acx-kind { justify-self: start; }

/* 表格：只有行线 */
.acx-table { overflow-x: auto; border-radius: 16px; background: var(--surface); }
.acx-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.acx-table th, .acx-table td { text-align: left; padding: 11px 14px; vertical-align: top; }
.acx-table th { font-weight: 600; color: var(--mut); font-size: 0.82rem; }
.acx-table tr + tr td, .acx-table thead + tbody tr td { border-top: 1px solid var(--line); }
.acx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acx-table tr.ok td:first-child { color: var(--leaf); }
.acx-table tr.bad td:first-child { color: var(--signal-ink); }
.acx-table--tight td { padding: 7px 10px; }

/* 大纲 */
.acx-outcomes { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; line-height: 1.7; }
.acx-weeks { display: grid; gap: 16px; }
.acx-week { padding: 22px 24px; border-radius: 22px; background: var(--surface); }
.acx-week-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acx-week-head h2, .acx-week-head h3 { margin: 0; font-size: 1.2rem; }
.acx-week-n { font-size: 0.8rem; color: var(--signal-ink); font-weight: 600; }
.acx-week .acd-fine { margin: 6px 0 12px; }
.acx-items { list-style: none; margin: 0; padding: 0; }
.acx-items li { display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; }
.acx-items li + li { border-top: 1px solid var(--line-soft); }
.acx-min { color: var(--mut-2); font-size: 0.8rem; white-space: nowrap; }
.acx-items .acx-kind, .acx-rows .acx-kind { justify-self: start; }

/* 上课首页 */
.acx-learn { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 12px; padding-bottom: 96px; }
.acx-learn-main { display: grid; gap: 18px; }
.acx-learn-side { position: sticky; top: calc(var(--nav-h, 64px) + var(--ac-sub-h, 48px) + 20px); }
.acx-week--learn.is-now { background: var(--raised); box-shadow: var(--elev-2); }
.acx .acd-chip.acx-now { height: 24px; font-size: 0.75rem; background: var(--signal-soft); color: var(--signal-ink); cursor: default; }
.acx-rows { list-style: none; margin: 0; padding: 0; }
.acx-rows a { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 10px; margin: 0 -10px; border-radius: 12px; color: var(--ink); transition: background .15s; }
.acx-rows a:hover { background: var(--fill); }
.acx-row-title { min-width: 0; }
.acx-status { font-size: 0.78rem; color: var(--mut-2); white-space: nowrap; }
.acx-status--done { color: var(--leaf); font-weight: 600; }
.acx-grade { display: grid; gap: 12px; }
.acx-grade-top { display: flex; align-items: baseline; gap: 8px; }
.acx-big { font-size: 2.4rem; font-family: var(--font-display); color: var(--ink-strong); line-height: 1; }
.acx-missing { margin: 0; padding-left: 1.2em; color: var(--mut); font-size: 0.88rem; line-height: 1.7; }
.acx-grade .btn { justify-content: center; }

/* 每一项的页面 */
.acx-outline ol a { grid-template-columns: 10px auto minmax(0, 1fr); align-items: center; }
.acx-ol-week + .acx-ol-week { margin-top: 10px; }
.acx-ol-week > b { display: block; padding: 6px 6px 4px; font-size: 0.74rem; color: var(--mut-2); font-weight: 600; }
.acx-ol-kind { font-size: 0.7rem; color: var(--mut-2); }
.acx-outline li.cur a { background: var(--raised); color: var(--ink-strong); box-shadow: var(--elev-1); }
.acx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fill-hover); }
.acx-dot.is-done { background: var(--leaf); }

.acx-prose { margin-top: clamp(28px, 4vw, 40px); font-size: 1.04rem; line-height: 1.9; color: var(--ink); }
.acx-prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); margin: clamp(40px, 5vw, 56px) 0 16px; scroll-margin-top: 140px; }
.acx-prose h3 { font-size: 1.12rem; margin: 30px 0 10px; }
.acx-prose p { margin: 0 0 1.1em; }
.acx-prose p:lang(zh) { text-align: justify; }
.acx-prose ul, .acx-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.acx-prose li { margin: 0.3em 0; }
.acx-prose a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
.acx-prose strong { color: var(--ink-strong); }
.acx-prose blockquote { margin: 20px 0; padding: 16px 20px; border-radius: 16px; background: var(--surface); }
.acx-prose blockquote p:last-child { margin-bottom: 0; }
.acx-prose code { font-family: var(--font-mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--fill); }
.acx-prose pre { margin: 20px 0; padding: 16px 18px; border-radius: 16px; background: var(--surface); overflow-x: auto; font-size: 0.86rem; line-height: 1.6; }
.acx-prose pre code { padding: 0; background: none; }
.acx-prose .acx-table { margin: 20px 0 24px; }
.acx-prose .acx-table td, .acx-prose .acx-table th { font-size: 0.9rem; line-height: 1.6; }

.acx-widget { margin-top: 36px; display: grid; gap: 20px; }
.acd-lesson.acx-item--wide { grid-template-columns: minmax(0, 1040px) 240px; }
.acx-item--wide .acx-prose { max-width: 760px; }
@media (max-width: 1000px) { .acd-lesson.acx-item--wide { grid-template-columns: 1fr; } }
.acx-widget:empty { display: none; }
.acx-widget .acd-box h2 { margin-top: 0; }
.acx-done { margin-top: 0; }
.acx-ok { color: var(--leaf); font-weight: 600; }
.acx-bad { color: var(--signal-ink); font-weight: 600; }
.acx-msg { margin: 12px 0 0; font-size: 0.9rem; color: var(--mut); }
.acx-msg--bad { color: var(--signal-ink); }
.acx-msg--good { color: var(--leaf); }
.acx-attempts { margin: -4px 0 14px; }
.acx-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; background: conic-gradient(currentColor 0 75%, transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); vertical-align: -2px; animation: acx-spin .8s linear infinite; }
@keyframes acx-spin { to { transform: rotate(360deg); } }
.acx-input { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--fill); color: var(--ink-strong); font: inherit; font-size: 0.95rem; line-height: 1.5; }
.acx-input:focus { outline: none; box-shadow: 0 0 0 2px var(--signal); }
textarea.acx-input { resize: vertical; }
select.acx-input { height: 40px; padding: 0 10px; }
.acx-link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 0.88rem; color: var(--signal-ink); cursor: pointer; }
.acx-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--fill); color: var(--mut); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.acx-x:hover { background: var(--fill-hover); color: var(--ink-strong); }

/* 测验 */
.acx-qform { display: grid; gap: 14px; }
.acx-q { margin: 0; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--raised); box-shadow: var(--elev-1); }
.acx-q legend { float: left; width: 100%; display: flex; gap: 10px; margin-bottom: 10px; font-weight: 600; color: var(--ink-strong); line-height: 1.6; }
.acx-q.is-right { box-shadow: var(--elev-1), inset 4px 0 0 var(--leaf); }
.acx-q.is-wrong { box-shadow: var(--elev-1), inset 4px 0 0 var(--signal); }
.acx-opt { clear: both; display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: baseline; padding: 7px 8px; border-radius: 10px; cursor: pointer; line-height: 1.6; }
.acx-opt:hover { background: var(--fill); }
.acx-opt input { accent-color: var(--signal); }
.acx-numq { clear: both; display: flex; gap: 10px; align-items: center; max-width: 280px; }
.acx-q-res { clear: both; margin-top: 10px; font-size: 0.9rem; line-height: 1.7; color: var(--mut); }

/* AI 辅导与助教 */
.acx-adis { flex: none; width: 30px; height: 30px; overflow: visible; }
.acx-adis > rect { fill: #ffffff; stroke: #e6e6e6; stroke-width: 14; }
.acx-adis g rect { fill: #ff4d00; }
.acx-tut-head { display: flex; gap: 12px; align-items: flex-start; }
.acx-tut-head p { margin: 4px 0 0; }
.acx-objs { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.acx-objs li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: baseline; font-size: 0.94rem; color: var(--mut); }
.acx-objs li.is-met { color: var(--ink-strong); }
.acx-check { width: 18px; height: 18px; border-radius: 50%; background: var(--fill-hover); color: #fff; font-size: 0.7rem; display: inline-grid; place-items: center; }
.is-met .acx-check { background: var(--leaf); }
.acx-material { margin: 0 0 14px; border-radius: 14px; background: var(--raised); box-shadow: var(--elev-1); }
.acx-material summary { padding: 10px 14px; cursor: pointer; font-size: 0.9rem; color: var(--ink-strong); }
.acx-material pre { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; font-family: inherit; font-size: 0.88rem; line-height: 1.7; color: var(--ink); max-height: 360px; overflow: auto; }
.acx-chat { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.acx-chat--inline { max-height: 520px; padding: 4px 2px 12px; }
.acx-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.7; color: var(--ink); background: var(--raised); box-shadow: var(--elev-1); overflow-wrap: anywhere; }
.acx-bubble--me { align-self: flex-end; background: var(--ink-strong); color: var(--bg); box-shadow: none; }
.acx-typing { display: inline-flex; gap: 5px; align-items: center; }
.acx-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mut-2); animation: acx-dot 1.2s infinite; }
.acx-typing i:nth-child(2) { animation-delay: .15s; }
.acx-typing i:nth-child(3) { animation-delay: .3s; }
.acx-typing[data-t]::after { content: attr(data-t); margin-left: 8px; font-size: 0.78rem; color: var(--mut-2); }
@keyframes acx-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.acx-ask { position: relative; display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.acx-ask textarea { flex: 1; padding: 12px 52px 12px 14px; border: 0; border-radius: 18px; background: var(--fill); color: var(--ink-strong); font: inherit; font-size: 0.95rem; resize: none; }
.acx-ask textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--signal); }
.acx-send { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ink-strong); color: var(--bg); font-size: 1.05rem; cursor: pointer; }

/* 表单与反馈 */
.acx-form { display: grid; gap: 4px; }
.acx-field { display: grid; gap: 6px; margin-top: 16px; }
.acx-field > label { font-weight: 600; color: var(--ink-strong); }
.acx-field .acd-fine { margin: 0; }
.acx-count { justify-self: end; font-size: 0.76rem; color: var(--mut-2); font-variant-numeric: tabular-nums; }
.acx-count.is-short { color: var(--signal-ink); }
.acx-form .btn-row { margin-top: 20px; }
.acx-feedback { margin-top: 20px; display: grid; gap: 14px; }
.acx-feedback-top { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.acx-feedback-top p { margin: 0; color: var(--mut); line-height: 1.6; }
.acx-score { flex: none; font-family: var(--font-display); font-size: 2.2rem; color: var(--ink-strong); line-height: 1; }
.acx-score small { font-size: 0.9rem; color: var(--mut-2); }
.acx-checks summary { cursor: pointer; font-size: 0.9rem; color: var(--mut); }
.acx-checklist, .acx-checks ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.acx-checklist .ok, .acx-checks .ok { color: var(--ink); }
.acx-checklist .bad, .acx-checks .bad { color: var(--signal-ink); }

/* 建模沙箱 */
.acx-sb { display: grid; gap: 18px; }
.acx-sb-sec { display: grid; gap: 10px; }
.acx-sb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acx-sb-head h3 { margin: 0; font-size: 1rem; color: var(--ink-strong); font-family: var(--font-display); }
.acx-sb-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.acx-sb-type { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 18px; background: var(--raised); box-shadow: var(--elev-1); }
.acx-sb-row { display: flex; gap: 8px; align-items: center; }
.acx-sb-name { font-weight: 600; }
.acx-sb-keys label { flex: 1; display: grid; gap: 4px; font-size: 0.76rem; color: var(--mut); }
.acx-sb-props, .acx-sb-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acx-sb-props li { display: grid; grid-template-columns: minmax(0, 1fr) 112px 28px; gap: 6px; align-items: center; }
.acx-sb-links li { display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr) 28px; gap: 8px; align-items: center; }
.acx-sb .acx-input { padding: 7px 10px; font-size: 0.88rem; }
.acx-sb select.acx-input { height: 34px; }
.acx-sb-json summary { cursor: pointer; font-size: 0.88rem; color: var(--mut); }
.acx-sb-json textarea { margin: 10px 0; font-family: var(--font-mono); font-size: 0.8rem; }

/* 两种喂法 */
.acx-qchips { margin-top: 14px; }
.acx-qchips .acd-chip { height: auto; min-height: 32px; padding: 6px 13px; text-align: left; line-height: 1.45; }
.acx-lab1 > .btn-row, .acx-lab4 > .btn-row { margin-top: 16px; }
.acx-compare { margin-top: 20px; display: grid; gap: 16px; }
.acx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acx-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: 22px; background: var(--raised); box-shadow: var(--elev-2); }
.acx-col header { display: flex; gap: 10px; align-items: center; }
.acx-col header b { display: block; color: var(--ink-strong); }
.acx-col header .acd-fine { margin: 0; font-size: 0.78rem; }
.acx-drive { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-content: start; min-height: 190px; padding: 8px; border-radius: 16px; background: var(--surface); }
.acx-folder { position: relative; display: grid; gap: 1px; padding: 7px 8px; border-radius: 10px; background: var(--raised); box-shadow: var(--elev-1); transition: box-shadow .3s; }
.acx-folder b { font-size: 0.74rem; color: var(--ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acx-folder i { font-style: normal; font-size: 0.62rem; color: var(--mut-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acx-folder.is-read { box-shadow: 0 0 0 2px var(--signal), var(--elev-2); }
.acx-graph { position: relative; aspect-ratio: 2 / 1; min-height: 190px; border-radius: 16px; background: var(--surface); }
.acx-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.acx-edges line { stroke: var(--line); stroke-width: 1.5; transition: stroke .3s; }
.acx-edges line.is-walked { stroke: var(--signal); stroke-width: 2.5; }
.acx-node { position: absolute; transform: translate(-50%, -50%); width: 22%; display: grid; gap: 1px; padding: 6px 4px; border-radius: 10px; background: var(--raised); box-shadow: var(--elev-1); text-align: center; transition: box-shadow .3s, background .3s; }
.acx-node b { font-size: 0.74rem; color: var(--ink-strong); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acx-node span { font-size: 0.58rem; font-family: var(--font-mono); color: var(--mut-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acx-node.is-read { box-shadow: 0 0 0 2px var(--signal), var(--elev-2); }
.acx-node-n { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: #fff; font-size: 0.66rem; font-style: normal; line-height: 18px; font-weight: 600; }
.acx-node-n:empty { display: none; }
.acx-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.acx-steps:empty { display: none; }
.acx-steps li { counter-increment: step; display: grid; gap: 2px; position: relative; padding: 8px 10px 8px 34px; border-radius: 12px; background: var(--surface); font-size: 0.82rem; line-height: 1.5; }
.acx-steps li::before { content: counter(step); position: absolute; left: 9px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-strong); color: var(--bg); font-size: 0.66rem; text-align: center; line-height: 18px; }
.acx-steps li.is-err::before { background: var(--signal); }
.acx-steps b { color: var(--ink-strong); font-weight: 600; font-family: var(--font-mono); font-size: 0.78rem; }
.acx-objs-read { color: var(--signal-ink); font-family: var(--font-mono); font-size: 0.74rem; }
.acx-steps .acd-fine { margin: 0; font-size: 0.74rem; }
.acx-tok { font-style: normal; font-size: 0.7rem; color: var(--mut-2); font-family: var(--font-mono); }
.acx-answer .acx-bubble { max-width: 100%; background: var(--surface); box-shadow: none; font-size: 0.9rem; }
.acx-mx { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 0; }
.acx-mx div { padding: 9px 10px; border-radius: 12px; background: var(--surface); }
.acx-mx dt { font-size: 0.68rem; color: var(--mut-2); white-space: nowrap; }
.acx-mx dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.acx-mx dd small { font-size: 0.7rem; color: var(--mut-2); }
.acx-mx .acx-acc { color: var(--signal-ink); }
.acx-mx--avg { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.acx-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.8rem; }
.acx-facts .ok { color: var(--leaf); }
.acx-facts .bad { color: var(--signal-ink); }
.acx-cmp-ui:empty { display: none; }
.acx-bench { display: grid; gap: 14px; }
.acx-bench .acd-fine { margin: 0; }
.acx-mx--bench div { background: var(--raised); box-shadow: var(--elev-1); }
.acx-benchline { padding: 14px 16px; border-radius: 16px; background: var(--signal-soft); color: var(--ink); line-height: 1.7; }
.acx-benchline b { color: var(--signal-ink); }
.acx-ui-host { display: block; }
.acx-lab1 h3, .acx-lab4 h3 { margin-top: 26px; }

/* 规则实验 */
.acx-rules { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: rule; }
.acx-rules > li { counter-increment: rule; display: grid; gap: 8px; padding: 12px 14px 12px 40px; position: relative; border-radius: 16px; background: var(--raised); box-shadow: var(--elev-1); }
.acx-rules > li::before { content: counter(rule); position: absolute; left: 12px; top: 14px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--mut-2); }
.acx-rule-conds { display: grid; gap: 6px; }
.acx-cond, .acx-rule-then { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acx-cond .acx-input, .acx-rule-then .acx-input { width: auto; flex: 1 1 140px; height: 34px; padding: 0 10px; font-size: 0.86rem; }
.acx-cond [data-op] { flex: 0 0 64px; }
.acx-and { font-size: 0.78rem; color: var(--mut); min-width: 34px; }
.acx-cases { margin-top: 18px; }
.acx-cases summary { cursor: pointer; font-size: 0.9rem; color: var(--mut); margin-bottom: 10px; }

/* 评测实验 */
.acx-evq { margin: 14px 0; padding-left: 1.4em; display: grid; gap: 12px; }
.acx-evq li { display: grid; gap: 6px; }
.acx-evq-act { display: flex; gap: 12px; align-items: center; }

/* 对话框 */
.acx-dialog { border: 0; border-radius: 24px; padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--raised); color: var(--ink); box-shadow: var(--elev-3); }
.acx-dialog::backdrop { background: rgba(0, 0, 0, 0.32); }
.acx-dialog h3 { margin: 0 0 6px; }
.acx-dialog .btn-row { margin-top: 18px; }

/* 证书 */
.acx-cert { border-radius: 4px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 24px 60px rgba(60,40,20,0.16); background: #f8f4ec; }
.acx-cert-svg { display: block; width: 100%; height: auto; }
.acx-cert--specimen { max-width: none; }
.acx-verify-head .acd-crumb { margin-bottom: 18px; }
.acx-verify-status { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 16px 20px; border-radius: 18px; }
.acx-verify-status b { font-size: 1.15rem; }
.acx-verify-status span { color: var(--mut); }
.acx-verify-status.is-valid { background: var(--leaf-soft); }
.acx-verify-status.is-valid b { color: var(--leaf); }
.acx-verify-status.is-revoked { background: var(--signal-soft); }
.acx-verify-status.is-revoked b { color: var(--signal-ink); }
.acx-verify { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-bottom: 96px; }
.acx-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 0.92rem; }
.acx-kv dt { color: var(--mut); }
.acx-kv dd { margin: 0; color: var(--ink-strong); overflow-wrap: anywhere; }
.acx-kv a { color: var(--signal-ink); }
.acx-verify-actions { display: grid; gap: 8px; margin-top: 20px; }
.acx-verify-actions .btn { justify-content: center; }
.acx-certlist { margin: 0; padding-left: 1.2em; line-height: 2; }
.acx-certlist a { color: var(--ink); }
.acx-empty { display: grid; gap: 12px; justify-items: start; }
.acx-empty p { margin: 0; }

@media (max-width: 1000px) {
  .acx-learn, .acx-verify, .acx-hero-grid, .acx-certrow, .acx-coursecard--hero { grid-template-columns: 1fr; }
  .acx-glance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .acx-learn-side { position: static; }
  .acx-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .acx-two, .acx-outcomes--cards { grid-template-columns: 1fr; }
  .acx-items li { grid-template-columns: 1fr; gap: 4px; }
  .acx-rows a { grid-template-columns: 1fr auto; }
  .acx-rows .acx-kind, .acx-rows .acx-min { grid-column: 1 / -1; justify-self: start; }
  .acx-rows .acx-status { grid-column: 2; grid-row: 2; }
  .acx-coursecard--row { flex-direction: column; align-items: stretch; }
  .acx-mx--avg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acx-drive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acx-node span { display: none; }
  .acx-sb-links li { grid-template-columns: 1fr 1fr; }
  }

@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body.acx-verifypage { margin: 0; padding: 0; background: #f8f4ec; }
  body.acx-verifypage > *:not(main), body.acx-verifypage main > *:not(.acx-verify), body.acx-verifypage .acx-verify-side { display: none !important; }
  body.acx-verifypage .acx-verify { display: block; padding: 0; margin: 0; max-width: none; width: auto; }
  body.acx-verifypage .acx-cert { width: 297mm; height: 210mm; box-shadow: none; border-radius: 0; overflow: hidden; break-inside: avoid; }
  body.acx-verifypage .acx-cert-svg { width: 297mm; height: 210mm; }
}
.acx-prose .acx-table td:first-child { white-space: nowrap; }
