/* 哈珀AI课堂（学员端）：官方界面标准——白底 + 靛紫，颜色走 --ho-* 令牌；版式借鉴「无限黑板」：板块从左到右、可缩放、右侧目录、底部提问栏。 */
body{background:var(--hc-bg,#f6f7fc);color:var(--hc-text,#1f2433);margin:0}
.hk-main{max-width:1320px;margin:0 auto;padding:18px 16px 40px}
.hk-h1{font:800 28px/1.25 var(--ho-serif,Georgia,"Songti SC",serif);margin:6px 0 4px}.hk-sub{color:#6b7280;margin:0 0 16px;font-size:14px}
.hk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.hk-card{background:#fff;border:1px solid var(--ho-card-line,#e5e7ef);border-radius:20px;overflow:hidden;box-shadow:0 6px 22px rgba(55,48,163,.06);cursor:pointer;display:flex;flex-direction:column;min-height:210px;text-decoration:none;color:inherit}
.hk-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(55,48,163,.12)}
.hk-cover{height:96px;background:linear-gradient(135deg,#e0e7ff,#cffafe);display:grid;place-items:center;color:var(--ho-brand-strong,#3730a3);font-weight:700}
.hk-body{padding:14px 16px;display:flex;flex-direction:column;gap:6px}.hk-body h3{margin:0;font-size:16px}.hk-body p{margin:0;color:#6b7280;font-size:12.5px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hk-tag{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--ho-brand-soft,#eef2ff);color:var(--ho-brand-strong,#3730a3);font-size:11.5px;font-weight:700;margin-right:6px}
.hk-empty{padding:60px 20px;text-align:center;color:#6b7280;background:#fff;border:1px dashed #d9dce8;border-radius:20px}
.hk-split{display:grid;grid-template-columns:260px minmax(0,1fr);gap:14px;align-items:start}@media(max-width:900px){.hk-split{grid-template-columns:1fr}}
.hk-side{background:#fff;border:1px solid var(--ho-card-line,#e5e7ef);border-radius:20px;padding:12px;position:sticky;top:76px}
.hk-lsn{display:flex;gap:8px;align-items:center;padding:9px 10px;border-radius:12px;cursor:pointer;font-size:14px}.hk-lsn:hover{background:#f4f5fa}.hk-lsn.on{background:var(--ho-brand-soft,#eef2ff);font-weight:700}.hk-lsn.lock{color:#9ca3af;cursor:not-allowed}
.hk-n{width:24px;height:24px;border-radius:50%;background:#eef0f6;display:grid;place-items:center;font-size:12px;flex:none}.hk-lsn.done .hk-n{background:#10b981;color:#fff}
.hk-stage{background:#fff;border:1px solid var(--ho-card-line,#e5e7ef);border-radius:24px;overflow:hidden;box-shadow:0 6px 22px rgba(55,48,163,.06)}
.hk-bar{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #eef0f6}.hk-bar b{font:700 15px Georgia,"Songti SC",serif}.hk-bar .sp{flex:1}
.hk-ib{border:0;background:#f4f5fa;border-radius:999px;min-width:36px;height:36px;padding:0 12px;cursor:pointer;font-size:14px}.hk-ib:hover{background:var(--ho-brand-soft,#eef2ff)}.hk-ib.on{background:var(--ho-brand,#4f46e5);color:#fff}
.hk-view{position:relative;height:min(66vh,600px);background:#fbfbfd;background-image:radial-gradient(#e5e7ef 1px,transparent 1px);background-size:22px 22px;overflow:hidden;cursor:grab;touch-action:none}.hk-view.drag{cursor:grabbing}
.hk-canvas{position:absolute;left:0;top:0;transform-origin:0 0;display:flex;gap:0;transition:transform .55s cubic-bezier(.4,0,.2,1)}.hk-view.drag .hk-canvas{transition:none}
.hk-panel{width:520px;min-height:440px;padding:34px 40px;border-right:1px dashed #d9dce8;position:relative;flex:none}
.hk-panel h2{font:800 26px/1.3 Georgia,"Songti SC",serif;margin:0 0 16px}.hk-panel .pr{background:#eef2ff;border-radius:14px;padding:12px 16px;color:#312e81;font-size:15px;line-height:1.7}
.hk-panel ul{margin:12px 0;padding-left:20px;font-size:16px;line-height:1.9}.hk-panel li mark{background:#fef08a;border-radius:4px;padding:0 3px}
.hk-panel .ex{background:#f8fafc;border-radius:12px;padding:10px 14px;font-size:14px;line-height:1.75;color:#374151}
.hk-panel.dim{opacity:.35}.hk-panel.cur{opacity:1}.hk-panel .arrow{position:absolute;right:-16px;top:50%;font-size:26px;color:#a5b4fc}
.hk-note{margin-top:14px;border-left:4px solid var(--ho-brand,#4f46e5);background:#fff;border-radius:6px 12px 12px 6px;padding:10px 14px;box-shadow:0 2px 10px rgba(0,0,0,.06);font-size:13.5px;line-height:1.75}.hk-note small{display:block;color:#6b7280;margin-bottom:4px}
.hk-toc{position:absolute;right:14px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px;text-align:right;max-width:170px;z-index:3}
.hk-toc a{font-size:12px;color:#9ca3af;cursor:pointer;border-right:2px solid transparent;padding-right:8px;line-height:1.4}.hk-toc a.on{color:#1f2433;font-weight:700;border-color:#1f2433}
.hk-ask{display:flex;align-items:center;gap:8px;padding:10px 16px 14px}.hk-ask input{flex:1;border:1px solid #d9dce8;border-radius:999px;padding:11px 18px;font-size:14px;background:#fff}
.hk-ask button{border:0;background:#111827;color:#fff;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:16px}
.hk-quiz{padding:22px 28px}.hk-quiz h3{margin:0 0 10px;font:800 20px Georgia,"Songti SC",serif}.hk-q{background:#f8fafc;border-radius:16px;padding:14px 18px;margin:10px 0}.hk-q label{display:block;padding:6px 10px;border-radius:10px;cursor:pointer}.hk-q label:hover{background:#eef2ff}
.hk-q .ok{color:#166534}.hk-q .no{color:#991b1b}.hk-q small{display:block;color:#6b7280;margin-top:4px}
.hk-btn{border:1px solid var(--ho-brand,#4f46e5);background:var(--ho-brand,#4f46e5);color:#fff;border-radius:999px;padding:9px 26px;font-size:14px;font-weight:700;cursor:pointer}.hk-btn.ghost{background:#fff;color:var(--ho-brand,#4f46e5)}
.hk-lang{display:inline-flex;border:1px solid #e5e7ef;border-radius:999px;overflow:hidden}.hk-lang button{border:0;background:#fff;padding:5px 12px;font-size:12.5px;cursor:pointer}.hk-lang button.on{background:var(--ho-brand,#4f46e5);color:#fff}
.hk-note-top{color:#6b7280;font-size:12.5px;padding:0 16px 10px}

.hk-panel .en{display:block;color:#4b5563;font-weight:400;font-size:.88em;line-height:1.6;margin-top:2px}.hk-panel h2 .en{font-size:.62em;font-family:system-ui,sans-serif;color:#374151}
.hk-stage:fullscreen{border-radius:0;display:flex;flex-direction:column}.hk-stage:fullscreen .hk-view{flex:1;height:auto}

.hk-panel .dg{background:#fff;border-radius:18px;padding:12px;margin:12px 0;box-shadow:0 2px 12px rgba(0,0,0,.05)}
html.embed .ho-head{display:none}
#voiceMsg{color:#4f46e5;font-size:12px}
.hk-ib svg{vertical-align:middle}
/* 与哈珀未来学院官网一致的顶部导航 */
.hc-top{height:64px;background:#fff;border-bottom:1px solid var(--ho-line,#e5e7ef);position:relative;z-index:20}
.hc-top-in{max-width:1440px;height:100%;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:32px}
.hc-brand{display:flex;align-items:center;gap:10px;color:var(--ho-text,#1f2433);text-decoration:none;flex:none}.hc-brand img{width:38px;height:38px}.hc-brand b{font-size:20px;letter-spacing:.5px}
.hc-nav{display:flex;align-items:center;gap:28px;margin-left:auto;height:100%}.hc-nav a{color:#4b5563;text-decoration:none;font-size:14px;white-space:nowrap;padding:22px 0}.hc-nav a:hover,.hc-nav a.on{color:var(--ho-brand-strong,#3730a3);font-weight:700}.hc-nav a span{font-size:11px}
.hc-account{display:flex;align-items:center;gap:12px;white-space:nowrap}.hc-account a{color:#4b5563;text-decoration:none;font-size:13px}.hc-account .hc-home{background:var(--ho-brand,#4f46e5);color:#fff;border-radius:8px;padding:9px 16px;font-weight:700}
@media(max-width:1050px){.hc-top{height:auto}.hc-top-in{flex-wrap:wrap;gap:8px 18px;padding:8px 16px}.hc-nav{order:3;width:100%;overflow-x:auto;gap:22px;margin-left:0}.hc-nav a{padding:8px 0}.hc-account{margin-left:auto}}
@media(max-width:560px){.hc-brand b{font-size:17px}.hc-account>a:first-child{display:none}.hc-account .hc-home{padding:7px 12px}.hc-nav{gap:18px}.hc-nav a{font-size:13px}}
html.embed .hc-top{display:none}
/* 登录 / 注册 / 管理员对话框 */
.hk-auth-mask{position:fixed;inset:0;z-index:1000;background:rgba(31,36,51,.32);display:grid;place-items:center;padding:18px}.hk-auth-mask[hidden]{display:none}
.hk-auth-card{position:relative;width:min(460px,100%);max-height:90vh;overflow:auto;background:#fff;border:1px solid var(--ho-line,#e5e7ef);border-radius:22px;padding:26px 28px;box-shadow:0 24px 70px rgba(31,36,51,.22)}
.hk-auth-card h2{margin:0 0 6px;font:800 24px var(--ho-serif,Georgia,"Songti SC",serif)}.hk-auth-sub{margin:0 0 16px;color:#6b7280;font-size:13px;line-height:1.6}
.hk-auth-close{position:absolute;right:14px;top:12px;border:0;background:transparent;color:#6b7280;font-size:26px;cursor:pointer}
.hk-auth-tabs{display:flex;gap:4px;background:#f4f5fa;border-radius:12px;padding:4px;margin-bottom:16px}.hk-auth-tabs button{flex:1;border:0;background:transparent;border-radius:9px;padding:8px 6px;cursor:pointer;font-size:13px}.hk-auth-tabs button.on{background:#fff;color:var(--ho-brand,#4f46e5);font-weight:700;box-shadow:0 1px 5px rgba(0,0,0,.08)}
.hk-auth-form{display:grid;gap:12px}.hk-auth-form[hidden]{display:none}.hk-auth-form label{font-size:13px;color:#4b5563}.hk-auth-form input:not([type=checkbox]){display:block;width:100%;margin-top:5px;border:1px solid #d9dce8;border-radius:10px;padding:10px 12px;font:inherit;background:#fff}.hk-auth-form .hk-btn{margin-top:4px}.hk-auth-form small{color:#6b7280;line-height:1.6}.hk-auth-agree{display:flex;gap:7px;align-items:flex-start;line-height:1.5}
.hk-auth-msg{min-height:22px;margin-top:12px;font-size:13px;color:#b91c1c;line-height:1.6}.hk-auth-msg.ok{color:#15803d}
.hk-auth-foot{border-top:1px solid #eef0f6;margin-top:14px;padding-top:12px;font-size:12.5px;color:#6b7280}.hk-auth-foot a{color:var(--ho-brand,#4f46e5)}
.hk-cats{grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px}.hk-cat{flex:none;border:1px solid var(--ho-line,#e5e7ef);background:#fff;color:#4b5563;border-radius:999px;padding:6px 15px;font-size:13px;cursor:pointer}.hk-cat.on{background:var(--ho-brand,#4f46e5);border-color:var(--ho-brand,#4f46e5);color:#fff}
