@import './components/course-player/foundation/src/course-player/course-player.css';
@import './assets/design-tokens.css';
*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ahu-text-main);background:#e9ebee;font-size:14px}button,input{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;padding:0}button:focus-visible,input:focus-visible{outline:2px solid var(--ahu-primary);outline-offset:2px}button:disabled{cursor:default;color:#bbb}p,h2,h3{margin:0}button img{vertical-align:middle;object-fit:contain}.demo-stage{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px}.phone{width:390px;height:844px;background:#fff;border-radius:28px;overflow:hidden;position:relative;box-shadow:0 20px 80px #202b3f24;flex-shrink:0}#app{height:100%;display:flex;flex-direction:column}.status{height:47px;flex-shrink:0;background:#080a09;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 25px;font-size:14px;font-weight:600}.status-right{font-size:11px;letter-spacing:1px}.player{aspect-ratio:390/219;flex-shrink:0;position:relative;background:#123f3b;color:white;overflow:hidden}.poster{position:absolute;inset:0;background:url('./assets/player-reference.jpg') center -47px/100% auto no-repeat}.player-back{position:absolute;left:12px;top:10px;padding:4px 8px;z-index:1}.player-back img{width:10px;height:18px}.controls{position:absolute;bottom:0;left:0;right:0;height:46px;display:flex;align-items:center;gap:8px;padding:9px 12px;background:linear-gradient(transparent,#061b19 45%);font-size:10px}.play-toggle{min-width:28px;font-size:11px;color:#fff}.controls img{width:20px;height:20px}.controls input{min-width:0;width:100%;height:3px;accent-color:var(--ahu-primary);cursor:pointer}.time{white-space:nowrap;font-variant-numeric:tabular-nums}.speed{white-space:nowrap;min-width:28px}.rating{height:45px;flex-shrink:0;display:flex;align-items:center;padding:0 16px;gap:10px;background:#fff;border-bottom:1px solid #f6f6f6;font-size:12px}.rating-label{color:var(--ahu-primary);white-space:nowrap}.stars{display:flex;gap:5px}.stars button{display:block;width:22px;height:28px}.stars img{width:22px;height:22px}.submit-rating{margin-left:auto;border-radius:12px;background:#f1f1f1;color:#aaa;padding:4px 13px;font-size:11px;white-space:nowrap}.submit-rating:not(:disabled){background:var(--ahu-primary-light);color:var(--ahu-primary)}.tabs{height:49px;display:flex;justify-content:space-between;padding:0 18px;flex-shrink:0;background:#fff;border-bottom:0}.tab{position:relative;font-size:15px;min-width:62px;color:#777}.tab.active{font-weight:600;color:#333}.tab.active:after{content:'';position:absolute;width:24px;height:3px;border-radius:4px;bottom:7px;left:50%;transform:translateX(-50%);background:var(--ahu-primary)}.content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:var(--ahu-bg-page);padding:14px 14px 62px;scrollbar-width:none}.content::-webkit-scrollbar{display:none}.card{background:#fff;border-radius:8px;padding:16px;margin-bottom:12px}.meta{color:#999;font-size:11px;margin-bottom:15px}.section-title{font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.paragraph{line-height:1.9;font-size:14px}.muted{color:#999;font-size:12px}.orange{color:var(--ahu-primary)}.text-button{color:var(--ahu-primary);font-size:12px;padding:6px 0;white-space:nowrap}.expand-line{text-align:right}.summary-card .section-title:not(:first-child){margin-top:20px}.map-preview{height:146px;width:100%;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#fffaf7;border:1px solid #fff0e8}.map-preview .mindmap{transform:scale(.61);transform-origin:center;flex-shrink:0}.map-caption{display:block;text-align:center;font-size:11px;color:#999;margin-top:8px}.mindmap{width:510px;height:212px;display:flex;align-items:center;justify-content:center;gap:26px;font-size:13px;position:relative}.map-root{padding:14px 17px;border-radius:6px;background:#fff0e7;border:1px solid #ffba91;white-space:nowrap;font-weight:600}.branches{display:flex;flex-direction:column;gap:14px;border-left:1px solid #e9a77e;padding-left:20px;position:relative}.branches:before{content:'';position:absolute;left:-27px;width:27px;top:50%;border-top:1px solid #e9a77e}.branch{display:flex;gap:18px;align-items:center;position:relative}.branch:before{content:'';position:absolute;left:-20px;width:20px;top:50%;border-top:1px solid #e9a77e}.branch-title{background:#fff7f0;border:1px solid #f4caad;border-radius:4px;padding:8px 11px;white-space:nowrap}.leaves{display:grid;gap:6px;border-left:1px solid #edc1a3;padding-left:12px}.leaves span{border-bottom:1px solid #edc1a3;padding:2px 6px;white-space:nowrap;font-size:12px}.chapter{padding:13px 0;border-top:1px solid #f2f2f2}.chapter:first-of-type{border-top:0}.chapter-head{display:flex;gap:8px;align-items:flex-start;width:100%;text-align:left;line-height:1.6}.chapter-number{font-size:11px;color:#aaa;padding-top:3px}.chapter-name{font-size:14px;font-weight:500;flex:1}.chapter-time{color:var(--ahu-primary);font-size:12px;padding-top:2px}.chapter p{font-size:12px;color:#888;line-height:1.8;margin:6px 0 0 23px}.chapter.current .chapter-name{color:var(--ahu-primary)}.content-heading{font-size:14px;font-weight:600;margin-bottom:12px}.searchbar{display:flex;gap:8px;padding:9px 11px;background:#f5f5f5;border-radius:6px;margin-bottom:8px}.searchbar input{width:100%;border:0;background:transparent;outline:0;font-size:12px;color:#333}.searchbar button{font-size:11px;color:#999;white-space:nowrap}.search-status{min-height:27px;display:flex;justify-content:space-between;font-size:11px;color:#999;align-items:center}.search-nav{display:flex;gap:15px}.transcript{margin:12px -4px 0;padding:10px 10px 12px;border-left:2px solid transparent;border-radius:4px;cursor:pointer;outline:none}.transcript .stamp{font-size:11px;color:#999;margin-bottom:6px;display:block}.transcript p{font-size:14px;line-height:1.95}.transcript.current{background:#fff3eb;border-left-color:var(--ahu-primary)}.transcript.current .stamp{color:var(--ahu-primary)}mark{background:#ffdf92;color:inherit}.transcript.search-hit{outline:1px solid #f6b28f;outline-offset:-1px}.floating{position:absolute;right:24px;bottom:28px;display:flex;flex-direction:column;align-items:flex-end;gap:8px;z-index:4}.floating button{padding:9px 13px;border:1px solid #eee;background:#fff;border-radius:18px;box-shadow:0 2px 8px #00000008;font-size:11px}.slides-meta{font-size:11px;color:#999;margin:0 2px 13px}.slide-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.slide-head button{color:var(--ahu-primary);font-size:12px;display:flex;gap:7px;align-items:center}.slide-head img{width:14px;height:14px}.slide-head span{color:#999;font-size:11px}.slide-visual{width:100%;aspect-ratio:16/9;background:#124941;color:#fff;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;padding:22px 20px;overflow:hidden}.slide-visual:before{content:'';position:absolute;left:-36px;top:-72px;width:180px;height:180px;border:1px solid #ffffff15;border-radius:50%}.slide-visual small{color:#ffffff80;font-size:9px;letter-spacing:2px;margin-bottom:20px}.slide-visual h3{font-size:17px;color:#f4db84;font-weight:600;line-height:1.6;margin-bottom:13px}.slide-visual p{font-size:11px;color:#e4f0e9;line-height:2}.slide-visual footer{position:absolute;bottom:9px;right:11px;font-size:8px;color:#ffffff55}.slide-caption{font-size:12px;line-height:1.9;margin-top:11px;color:#666}.slide-caption strong{display:block;font-size:12px;color:#333;margin-bottom:3px}.catalog{padding:0;background:#fff}.empty-state{text-align:center;padding:42px 15px}.state-symbol{font-size:23px;width:56px;height:56px;border:1px solid #ffe1cf;background:#fff7f1;border-radius:50%;color:var(--ahu-primary);display:grid;place-items:center;margin:0 auto 18px}.empty-state h3{font-size:16px;margin-bottom:10px}.empty-state p{font-size:12px;color:#999;line-height:1.8}.primary-btn{background:var(--ahu-primary);color:#fff;border-radius:18px;padding:9px 24px;margin-top:20px;font-size:12px}.toast{position:absolute;bottom:95px;left:50%;transform:translateX(-50%);padding:10px 17px;background:#222e;color:#fff;z-index:40;border-radius:8px;font-size:12px;max-width:90%;white-space:nowrap}.modal{position:absolute;inset:0;z-index:20;background:white;display:flex;flex-direction:column;padding-top:47px}.modal-header{height:52px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #eee;font-size:15px;font-weight:600}.modal-header button{font-size:13px;color:#666;padding:8px 0}.viewer{flex:1;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;background:#fafafa;cursor:grab}.viewer.dragging{cursor:grabbing}.zoomable{flex-shrink:0;transform-origin:center;will-change:transform}.viewer .slide-visual{width:354px}.viewer .mindmap{width:510px}.viewer-toolbar{display:flex;gap:20px;justify-content:center;align-items:center;padding:18px 10px 28px;background:#fff;font-size:13px;flex-wrap:wrap}.viewer-toolbar button{padding:7px 12px;border:1px solid #eee;border-radius:6px}.viewer-toolbar span{min-width:40px;text-align:center;color:#999;font-size:11px}.viewer-hint{text-align:center;font-size:11px;color:#aaa;padding:10px}.player-modal{background:#071b19;color:#fff}.player-modal .modal-header{border-color:#ffffff22}.player-modal .modal-header button{color:#fff}.player-modal .player{width:100%;margin:auto 0}.player-modal .viewer-hint{color:#ffffff70}.no-results{text-align:center;padding:26px 10px;color:#999;font-size:12px}.home-indicator{position:absolute;height:4px;bottom:7px;width:116px;border-radius:3px;background:#151515;left:50%;transform:translateX(-50%);pointer-events:none;z-index:30}
@media(max-width: 480px){body{background:#fff}.demo-stage{padding:0;min-height:100dvh}.phone{width:100%;height:100dvh;border-radius:0;box-shadow:none}.player{aspect-ratio:390/219}.poster{background-position:center calc(-47 * 100vw / 390)}.floating{bottom:25px}.modal{padding-top:47px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.summary-card .section-title{margin-top:0!important}.summary-card .expand-line + .section-title{margin-top:10px!important}.summary-card #chapter-heading{margin-top:16px!important}.map-preview{height:130px}.poster + .player-back img{visibility:hidden}.poster + .player-back{width:40px;height:36px}

/* 播放器下章节速览：复用课程播放页专属字标与原卡片规格。 */
.player-chapters{position:relative;height:64px;flex-shrink:0;overflow:hidden;background:#fff;border-bottom:1px solid #f5f5f5}
.player-chapters-logo{position:absolute;z-index:1;top:14px;left:14px;width:30px;height:40px;display:block;object-fit:contain;pointer-events:none}
.player-chapters-scroll{height:100%;display:flex;align-items:stretch;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:8px 10px 8px 55px}
.player-chapters-scroll::-webkit-scrollbar{display:none}
.player-chapter-item{flex:0 0 182px;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;align-items:start;padding:10px 8px;border-radius:6px;background:#f7f7f7;color:#292929;text-align:left;-webkit-tap-highlight-color:transparent}
.player-chapter-time,.player-chapter-title{font-size:12px;font-weight:400;line-height:18px}
.player-chapter-time{color:inherit;font-variant-numeric:tabular-nums;white-space:nowrap}
.player-chapter-title{min-width:0;color:inherit;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.player-chapter-item.current .player-chapter-time,.player-chapter-item.current .player-chapter-title{color:var(--ahu-primary)}

/* AI总结：外置小标题、三行摘要与无底色导图。 */
.summary-layout .summary-module{margin:0 0 12px;padding:0}
.summary-layout .section-title{justify-content:flex-start;gap:6px;margin:0 0 6px;font-size:14px;line-height:20px;font-weight:600}
.summary-layout .section-title img{width:20px;height:20px;object-fit:contain;flex-shrink:0}
.summary-layout .summary-body{padding:11px 14px;margin:0;border-radius:8px}
.summary-layout .paragraph,.summary-layout .chapter-details p{font-size:13px;line-height:1.8}
.summary-layout .paragraph.is-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.summary-layout .expand-line{margin-top:2px}
.abstract-expand{display:inline-flex;align-items:center;gap:4px;color:var(--ahu-primary);font-size:12px;line-height:20px;padding:0}
.abstract-expand .triangle{display:flex;align-items:center;width:10px;height:10px}
.abstract-expand .triangle img{width:10px;height:10px}
.abstract-expand .triangle.up{transform:rotate(180deg)}
.summary-layout .map-body{padding:0;background:#fff}
.summary-layout .map-preview{height:145px;display:block;background:#fff;border:0;border-radius:0}
.map-surface{position:absolute;inset:0;width:100%;display:flex;align-items:center;justify-content:center;padding:0 0 26px;overflow:hidden}
.summary-layout .map-preview .mindmap{width:100%;height:100%;object-fit:cover;transform:none;display:block}
.map-fullscreen{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid #ececec;border-radius:7px;background:#fff;box-shadow:0 2px 6px #00000006;white-space:nowrap;font-size:12px;color:#333}
.map-fullscreen img{width:16px;height:16px}
.viewer:has(img.mindmap){background:#fff}.viewer img.mindmap{display:block;width:1080px;height:1920px;object-fit:contain}
.summary-layout .chapter{padding:15px 0;border-top:1px solid #f0f0f0}
.summary-layout .chapter:first-child{padding-top:0;border:0}.summary-layout .chapter:last-child{padding-bottom:0}
.summary-layout .chapter-head{display:block;line-height:1.8;text-align:left;overflow-wrap:anywhere}
.summary-layout .chapter-name{font-size:14px;font-weight:600}
.summary-layout .chapter-time{display:inline-block;font-size:12px;white-space:nowrap;margin-left:7px;padding:0}
.chapter-details{padding-left:17px;margin:10px 0 0;list-style-type:circle;color:#999}
.chapter-details li{padding-left:2px;margin-top:12px}
.chapter-details h3{font-size:13px;font-weight:600;line-height:1.8;color:#444}
.summary-layout .chapter-details p{margin:5px 0 0;color:#666}
.ai-disclaimer{text-align:center;font-size:11px;line-height:1.9;color:#666;margin:20px 4px 0}
@media(max-height:740px){.summary-layout .summary-module{margin-bottom:9px}.summary-layout .map-preview{height:105px}.summary-layout .summary-body{padding-top:9px;padding-bottom:9px}.summary-layout .map-body{padding:0}}

/* 摘要收起态的展开入口放在第三行末尾，不单独占行。 */
#summary-abstract .summary-body{position:relative}
#summary-abstract .abstract-collapsed .expand-line{position:absolute;right:14px;bottom:11px;height:23.4px;margin:0;display:flex;align-items:center;gap:5px;padding-left:10px;background:linear-gradient(to right,transparent,#fff 10px)}
#summary-abstract .abstract-collapsed .expand-line:before{content:'…';color:var(--ahu-text-main);font-size:13px;line-height:23.4px}
#summary-abstract .abstract-collapsed .abstract-expand{height:23.4px;line-height:23.4px;background:#fff}
@media(max-height:740px){#summary-abstract .abstract-collapsed .expand-line{bottom:9px}}

/* 思维导图使用简洁的黑底图片浏览器。 */
.modal.map-photo-modal{background:#000;color:#fff;padding:0;overflow:hidden}
.photo-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:flex-start;gap:12px;padding:59px 18px 18px;flex-shrink:0;background:linear-gradient(#000b,#0006 72%,transparent)}
.photo-back{display:flex;align-items:center;justify-content:center;width:28px;height:36px;flex-shrink:0}
.photo-back img{width:10px;height:18px}
.photo-title{min-width:0;flex:1;padding-right:40px;text-align:center}
.photo-title h2{font-size:15px;line-height:24px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-title span{display:block;font-size:12px;color:#999;margin-top:4px;line-height:18px}
.modal.map-photo-modal .viewer{position:absolute;inset:0;width:100%;height:100%;margin:0;background:#000}
.map-photo-modal .zoomable{line-height:0}
.map-photo-modal .mindmap{background:#fff;user-select:none;-webkit-user-drag:none}
.photo-footer{position:absolute;bottom:0;left:0;right:0;height:112px;flex-shrink:0;display:flex;align-items:flex-start;justify-content:center;padding-top:23px;background:linear-gradient(transparent,#0006 28%,#000b)}
.save-album{display:flex;align-items:center;gap:8px;flex-direction:column;font-size:13px;color:#fff;min-width:100px;min-height:62px}
.save-album img{width:24px;height:24px}
.save-album:disabled{opacity:.5;color:#fff}
.phone:has(.map-photo-modal) .home-indicator{background:#fff}

/* 章节时间固定前置，正文完整连续展示。 */
.summary-layout .chapter-head{display:grid;grid-template-columns:68px minmax(0,1fr);gap:8px;align-items:start}
.summary-layout .chapter-time-entry{display:flex;align-items:center;gap:6px;min-width:0;transform:translateY(2px)}
.summary-layout .chapter-time-entry img{width:18px;height:18px;object-fit:contain;flex-shrink:0}
.summary-layout .chapter-time{margin:0;padding:0;color:#666;font-size:12px;font-weight:500;line-height:18px;font-variant-numeric:tabular-nums;text-align:left}
.summary-layout .chapter.current .chapter-time{color:var(--ahu-primary)}
.summary-layout .chapter-name{font-size:14px;font-weight:500;line-height:21px}
.summary-layout .chapter-explanation{position:relative;margin-top:8px}
.summary-layout .chapter-paragraph{font-size:13px;line-height:1.8;margin:0;color:#666}
.summary-layout .chapter-collapsed .chapter-paragraph{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.summary-layout .chapter-explanation .expand-line{margin-top:2px;text-align:right}
.summary-layout .chapter-collapsed .expand-line{position:absolute;right:0;bottom:0;height:23.4px;margin:0;display:flex;align-items:center;gap:5px;padding-left:10px;background:linear-gradient(to right,transparent,#fff 10px)}
.summary-layout .chapter-collapsed .expand-line:before{content:'…';font-size:13px;line-height:23.4px;color:#666}
.summary-layout .chapter-explanation .abstract-expand{height:23.4px;line-height:23.4px}

.map-photo-modal .photo-footer{flex-direction:column;align-items:center;padding-top:8px;gap:12px}
.photo-gesture-hint{font-size:11px;line-height:16px;color:#999;text-align:center}

/* 导图预览沿用其他内容卡片的8px圆角。 */
.summary-layout .map-body{border-radius:8px;overflow:hidden}
.summary-layout .map-preview{border-radius:8px;overflow:hidden}

/* AI文稿：纯正文阅读，当前讲解文字随播放变为主题色。 */
.content.transcript-content{padding-top:12px}
.transcript-document{padding:17px 18px 20px;min-height:100%;margin-bottom:0}
.transcript-section{position:relative;margin:0}
.transcript-section+.transcript-section{margin-top:18px}
.transcript-chapter-heading{position:sticky;top:-12px;z-index:2;margin:0 -18px 12px;padding:9px 18px 8px;background:#fff;border-bottom:1px solid #f2f2f2}
.transcript-chapter-jump{display:grid;grid-template-columns:68px minmax(0,1fr);gap:8px;align-items:start;width:100%;min-height:28px;padding:4px 0;text-align:left;line-height:20px}
.transcript-chapter-time-entry{display:flex;align-items:center;gap:6px;min-width:0;transform:translateY(2px)}
.transcript-chapter-time-entry img{width:18px;height:18px;object-fit:contain;flex-shrink:0}
.transcript-chapter-time{padding:0;color:#666;font-size:12px;font-variant-numeric:tabular-nums;font-weight:500;line-height:18px}
.transcript-chapter-title{color:#333;font-size:13px;font-weight:500;line-height:20px}
.transcript-section.current .transcript-chapter-time,.transcript-section.current .transcript-chapter-title{color:var(--ahu-primary)}
.transcript-chapter-body{position:relative}
#transcript-card .transcript{margin:0 0 10px;padding:0;border:0;border-radius:0;background:transparent;color:#333;outline-offset:5px}
#transcript-card .transcript:last-child{margin-bottom:0}
#transcript-card .transcript-paragraph{display:block;font-size:13px;line-height:1.8}
#transcript-card .transcript.current{background:transparent;border:0}
#transcript-card .spoken{color:var(--ahu-primary)}
.floating.transcript-actions{flex-direction:row;gap:8px;bottom:30px}
.floating.transcript-actions button{padding:10px 12px;border-radius:8px;background:#fffefF;box-shadow:0 2px 10px #00000009;font-size:11px;color:#666}

#transcript-card .transcript{display:block;width:100%;text-align:left;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
#transcript-card [data-phrase]{cursor:text}

.floating.transcript-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:0 0 46px;width:46px;min-width:46px;max-width:46px;height:46px;padding:4px 3px;font-size:9px;line-height:13px}
.floating.transcript-actions button img{width:18px;height:18px;object-fit:contain}

.content.transcript-content{padding-bottom:112px}

.floating.transcript-actions{gap:6px}

/* 长按选字及复制：浮层只在有选区时出现。 */
#transcript-rows,#transcript-card .transcript,#transcript-card .transcript-paragraph,#transcript-card [data-phrase]{user-select:text;-webkit-user-select:text;-webkit-touch-callout:none;cursor:text}
#transcript-rows ::selection{background:#ffdfcb;color:#333}
.text-selection-overlay{position:absolute;inset:0;z-index:12;pointer-events:none;user-select:none;-webkit-user-select:none}
.text-selection-overlay[hidden],.text-selection-overlay [hidden]{display:none!important}
.text-copy-menu{position:absolute;pointer-events:auto;background:#333;color:#fff;border-radius:6px;box-shadow:0 3px 12px #0003;min-width:56px;text-align:center}
.text-copy-menu button{padding:8px 14px;font-size:13px;line-height:18px;color:#fff}
.text-selection-handle{position:absolute;pointer-events:auto;width:28px;height:32px;touch-action:none;cursor:ew-resize;z-index:1}
.text-selection-handle:before{content:'';position:absolute;width:2px;height:13px;left:13px;top:0;background:var(--ahu-primary)}
.text-selection-handle:after{content:'';position:absolute;width:12px;height:12px;left:8px;top:10px;border-radius:50%;background:var(--ahu-primary);box-shadow:0 0 0 1px #fff}

.floating.transcript-actions button span{display:block;white-space:nowrap;text-align:center;letter-spacing:0}

#abstract-text,.chapter-paragraph{user-select:text;-webkit-user-select:text;-webkit-touch-callout:none;cursor:text}
#abstract-text::selection,.chapter-paragraph::selection{background:#ffdfcb;color:#333}

/* AI课件：时间、画面及可复制讲解，采用同款三行展开。 */
.content.slides-content{padding:14px 14px 112px}
.slide-card{padding:14px;border-radius:8px;margin-bottom:12px}
.slide-head{margin-bottom:12px;align-items:center}
.slide-head button{font-size:12px;line-height:18px;font-weight:500;color:#666;gap:6px}
.slide-head button img{width:18px;height:18px}
.slide-head button span{font-size:12px;line-height:18px;font-weight:500;color:#666;font-variant-numeric:tabular-nums}
.slide-card.current .slide-head button span{color:var(--ahu-primary)}
.slide-head>span{font-size:12px;color:#999;font-variant-numeric:tabular-nums}
.slide-image{display:block;width:100%;border-radius:4px;overflow:hidden}
.slide-image .slide-visual{padding:18px;justify-content:center}
.slide-image .slide-visual small{margin-bottom:12px}
.slide-image .slide-visual h3{margin-bottom:8px}
.slide-explanation{position:relative;margin-top:14px}
.slide-caption{font-size:13px;line-height:1.8;margin:0;color:#333;user-select:text;-webkit-user-select:text;-webkit-touch-callout:none;cursor:text}
.slide-caption::selection{background:#ffdfcb;color:#333}
.caption-collapsed .slide-caption{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.slide-explanation .expand-line{margin-top:2px;text-align:right}
.caption-collapsed .expand-line{position:absolute;right:0;bottom:0;height:23.4px;margin:0;display:flex;align-items:center;gap:5px;padding-left:10px;background:linear-gradient(to right,transparent,#fff 10px)}
.caption-collapsed .expand-line:before{content:'…';font-size:13px;line-height:23.4px;color:#333}
.slide-explanation .abstract-expand{height:23.4px;line-height:23.4px}
.slide-photo-modal .zoomable{line-height:normal;user-select:none;-webkit-user-select:none}
.slide-photo-modal .slide-visual{width:720px;height:405px;aspect-ratio:auto;padding:44px 40px}
.slide-photo-modal .slide-visual small{font-size:18px;margin-bottom:30px}
.slide-photo-modal .slide-visual h3{font-size:34px;margin-bottom:26px}
.slide-photo-modal .slide-visual p{font-size:22px}
.slide-photo-modal .slide-visual footer{font-size:16px;bottom:18px;right:22px}
.slide-photo-modal .photo-footer{height:130px}
.photo-actions{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:320px;padding:0 22px}
.photo-page{width:36px;height:44px;display:flex;align-items:center;justify-content:center}
.photo-page img{width:10px;height:18px}
.photo-page.next img{transform:rotate(180deg)}
.photo-page:disabled{opacity:.25}

/* 图片浏览器手动横竖屏切换；移动端在画布内模拟设备旋转。 */
.photo-orientation{width:28px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.photo-orientation img{width:24px;height:24px}
.map-photo-modal .photo-title{padding-right:0}
.phone.viewer-landscape .home-indicator{display:none}
.modal.photo-landscape{padding:0;display:grid;grid-template-columns:minmax(0,1fr) 76px;grid-template-rows:48px minmax(0,1fr)}
.photo-landscape .photo-header{grid-column:1/-1;grid-row:1;padding:4px 14px 0;gap:10px;align-items:center}
.photo-landscape .photo-title h2{font-size:13px;line-height:19px}
.photo-landscape .photo-title span{font-size:11px;line-height:14px;margin-top:0}
.photo-landscape .viewer{grid-column:1;grid-row:2;min-width:0;min-height:0;margin-bottom:24px}
.photo-landscape .photo-footer{grid-column:2;grid-row:2;height:auto;width:76px;padding:4px 0 18px;justify-content:center;gap:0}
.photo-landscape .photo-actions{flex-direction:column;padding:0;gap:12px;width:76px}
.photo-landscape .save-album{min-width:0;width:72px;min-height:54px;font-size:10px;gap:5px}
.photo-landscape .save-album img{width:24px;height:24px}
.photo-landscape .photo-page{width:32px;height:32px}
.photo-landscape .photo-gesture-hint{position:absolute;bottom:5px;left:0;right:76px;font-size:10px;line-height:14px;pointer-events:none}
.photo-landscape #photo-toast.toast{bottom:34px;max-width:80%}
@media(min-width:481px){.phone.viewer-landscape{width:min(844px,calc(100vw - 48px));height:390px}}
@media(max-width:480px){.photo-landscape.modal{inset:auto;left:0;top:0;width:var(--photo-height);height:var(--photo-width);transform-origin:0 0;transform:translateX(var(--photo-width)) rotate(90deg)}}

/* 图片轻点显隐操作栏：保持图片视窗不变，只移动上下控件。 */
.photo-header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.photo-save-icon{width:28px;height:36px;display:flex;align-items:center;justify-content:center}
.photo-save-icon img{width:24px;height:24px}
.map-photo-modal .photo-header,.map-photo-modal .photo-footer{transition:transform 260ms cubic-bezier(.22,.61,.36,1),opacity 260ms ease;will-change:transform;z-index:2}
.map-photo-modal.controls-hidden .photo-header{transform:translateY(calc(-100% - 48px));opacity:0;pointer-events:none}
.map-photo-modal.controls-hidden .photo-footer{transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}
.phone:has(.map-photo-modal.controls-hidden) .home-indicator{display:none}
.map-photo-modal #viewer{outline:none;-webkit-tap-highlight-color:transparent}
.modal.photo-landscape{display:flex;flex-direction:column}
.photo-landscape .photo-header{height:48px;flex-shrink:0}
.photo-landscape .viewer{flex:1;margin:0;min-height:0;width:100%}
.photo-landscape .photo-footer{height:56px;flex-shrink:0;width:100%;padding:0 14px 5px;gap:2px;justify-content:flex-end}
.photo-landscape .photo-gesture-hint{position:static;font-size:10px;line-height:14px}
.photo-landscape .photo-actions{flex-direction:row;padding:0;gap:60px;width:auto;max-width:none}
.photo-landscape .photo-page{height:28px;width:32px}
@media(prefers-reduced-motion:reduce){.map-photo-modal .photo-header,.map-photo-modal .photo-footer{transition:none}}

/* Preserve short teaching points on each demo slide. */
.slide-card .slide-visual p,.slide-photo-modal .slide-visual p{white-space:pre-line}

/* Catalog subtree mounted in the existing four-tab content scroller. */
.course-catalog-component.ahu-course-player-page{height:auto;min-height:100%;overflow:visible;padding-bottom:24px}

.rating[hidden]{display:none}
.catalog-actions{height:40px;position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:0 18px;background:#fff;border-bottom:1px solid #f5f5f5}
.catalog-actions>button{flex-shrink:0;height:36px;font-size:12px;color:#777}
.catalog-actions .catalog-download{width:28px;display:grid;place-items:center}
.catalog-download img{display:block;width:18px;height:18px}
.rating-backdrop{position:absolute;inset:0;z-index:25;background:#0006;display:flex;align-items:center;justify-content:center;padding:24px}
.rating-detail.modal{position:relative;inset:auto;width:100%;padding:0;border-radius:14px;overflow:hidden}
.rating-detail .modal-header{height:49px;font-size:15px}
.rating-detail-body{text-align:center;padding:24px 16px 28px;font-size:14px}
.rating-result{display:flex;justify-content:center;gap:9px;margin:22px 0 14px}
.rating-result img{width:28px;height:28px}
.rating-detail-status{font-size:12px;color:#999}

.catalog-course-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555;font-size:14px;font-weight:700;text-align:left}

/* Each module bounds its own sticky title, so the next title pushes it away. */
.summary-layout>.summary-module>.section-title{position:sticky;top:-14px;z-index:3;background:var(--ahu-bg-page);margin-left:-14px;margin-right:-14px;padding:6px 14px;isolation:isolate}

.tabs .tab{flex:1;min-width:0}
.tabs .tab:only-child{flex:0 0 auto;min-width:62px}
.with-feature-config{gap:24px;align-items:center}
.feature-config{width:240px;flex-shrink:0;background:#fff;border:1px solid #eee;border-radius:12px;padding:20px;align-self:center}
.feature-config h2{font-size:17px;margin:0 0 10px}
.feature-config p{font-size:12px;color:#777;line-height:1.7}
.feature-config fieldset{border:0;margin:16px 0;padding:0}
.feature-config legend{font-size:12px;color:#999;margin-bottom:8px}
.feature-config label{display:flex;align-items:center;gap:10px;min-height:42px;cursor:pointer;font-size:14px}
.feature-config input{width:17px;height:17px;accent-color:var(--ahu-primary)}
.feature-config .feature-config-status{color:var(--ahu-primary);margin-bottom:10px}
.feature-config small{display:block;font-size:11px;color:#999;line-height:1.7}
@media(max-width:720px){.demo-stage.with-feature-config{flex-direction:column;gap:16px}.feature-config{order:-1;width:min(390px,100%)}.feature-config fieldset{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0}.feature-config label{font-size:12px;gap:5px}.feature-config legend{display:none}}

.catalog-actions .catalog-rating{width:28px;display:grid;place-items:center}.catalog-rating img{display:block;width:18px;height:18px}

/* Match perceived icon weight and keep the two actions close together. */
.catalog-actions{gap:0}
.catalog-actions .catalog-rating,.catalog-actions .catalog-download{width:34px;height:40px}
.catalog-rating img,.catalog-download img{width:24px;height:24px}
.catalog-course-name{margin-right:8px}

/* Dense double-star silhouette is optically smaller than the open download. */
.catalog-rating img{width:22px;height:22px}

/* User supplied 260×200 original: preserve its 1.3 aspect ratio. */
.catalog-rating img{width:26px;height:20px;object-fit:contain}

/* User supplied single-star original, displayed without distortion. */
.catalog-rating img{width:24px;height:24px;object-fit:contain}

/* Compact catalog actions; preserve image aspect ratios and hit areas. */
.catalog-rating img,.catalog-download img{width:20px;height:20px;object-fit:contain}
