.learning-footer{display:block;width:100%;padding:0;margin-top:auto;position:relative;z-index:1;white-space:normal;background:var(--paper,#f4efe6);color:var(--ink,#1a1814);font-family:'Noto Sans SC',sans-serif;font-style:normal;letter-spacing:0}
.learning-footer,.learning-footer *{box-sizing:border-box}
.learning-footer-prompt{text-align:center;padding:20px clamp(16px,4vw,60px) 16px}
.learning-footer-prompt p{margin:0;font-size:13px;color:#7a7570;line-height:1.8;letter-spacing:.3px}
.learning-footer-en{font-size:12px;color:var(--muted,#7a7570)}
.learning-footer-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px clamp(16px,4vw,60px);background:#fdfcf9;border-top:1px solid #d8d3ca}
.learning-footer .footer-left{display:flex;gap:10px;flex:none}
.learning-footer .contact-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #d8d3ca;background:#fff;border-radius:50%;cursor:pointer;transition:background .2s,border-color .2s,color .2s;color:var(--ink,#1a1814);text-decoration:none;flex-shrink:0}
.learning-footer .contact-btn:hover{background:var(--bg2,#f4efe6);border-color:var(--gold,#9a6f2a);color:var(--gold,#9a6f2a)}
.learning-footer .contact-btn:focus-visible{outline:2px solid var(--gold,#9a6f2a);outline-offset:3px}
.learning-footer .footer-right{min-width:0;display:flex;align-items:center;justify-content:flex-end;text-align:right}
.learning-footer .footer-brand{font:400 11px/1.6 'Noto Serif SC',serif;color:var(--ink,#1a1814);letter-spacing:0;white-space:normal}
.learning-footer .footer-left{position:relative}
.learning-footer .wechat-wrap{position:static;display:inline-flex}
.learning-footer .wechat-qr-popover{position:absolute;left:0;bottom:calc(100% + 10px);width:204px;padding:12px;border:1px solid rgba(26,24,20,.2);border-radius:4px;background:#fdfcf9;box-shadow:0 4px 18px rgba(26,24,20,.1);z-index:20}
.learning-footer .wechat-qr-popover:not([hidden]){display:block}
.learning-footer .wechat-qr-popover[hidden]{display:none}
.learning-footer .wechat-qr-popover img{display:block;width:180px;height:auto}
.learning-footer .qr-close{position:absolute;top:0;right:0;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:#fdfcf9;color:var(--ink,#1a1814);font-size:20px;cursor:pointer}
/* A logged-in student's own teacher contacts (text ones: WeChat ID, RedNote ID, other) */
.learning-footer .teacher-contact-popover{width:auto;min-width:204px;max-width:min(320px,calc(100vw - 24px))}
.learning-footer .teacher-contact-popover p{margin:0 28px 8px 0;font-size:12px;line-height:1.5;color:#7a7570}
.learning-footer .teacher-contact-popover code{display:block;padding:10px 12px;background:#efe8d9;color:var(--ink,#1a1814);font:400 14px/1.4 'JetBrains Mono',Consolas,monospace;overflow-wrap:anywhere;user-select:all}
.learning-footer .teacher-contact-copy{margin-top:10px;padding:6px 14px;border:1px solid #d8d3ca;border-radius:999px;background:#fff;color:var(--ink,#1a1814);font:400 13px/1.4 'Noto Sans SC',sans-serif;cursor:pointer}
.learning-footer .teacher-contact-copy:hover{border-color:var(--gold,#9a6f2a);color:var(--gold,#9a6f2a)}
.learning-footer .teacher-contact-status{display:block;margin-top:6px;font-size:12px;color:var(--jade,#5c7a6a)}
.learning-footer .teacher-contact-status:empty{display:none}
@media(max-width:700px){
 html:has(.learning-footer),body:has(> .learning-footer){overflow-x:clip}
 .learning-footer-prompt p{white-space:nowrap;font-size:12px;letter-spacing:0}
 .learning-footer-en{display:block;white-space:nowrap;font-size:12px}
 .learning-footer-bar{padding:14px 12px;gap:8px;flex-wrap:nowrap}
 .learning-footer .footer-left{gap:5px}
 .learning-footer .footer-right{flex:1}
 .learning-footer .footer-brand{display:block;max-width:100%;white-space:nowrap}
 .learning-footer .contact-btn{width:26px;height:26px}
 .learning-footer .contact-btn svg{width:14px;height:14px}
}
