/* Shared detail-page rhythm, with a dedicated cinema surface in every template. */
:root{--detail-shadow:0 18px 50px #173d3e09}
.page-head{padding-block:44px 30px}.page-head h1{font-size:clamp(28px,3.1vw,46px);line-height:1.22;letter-spacing:-.035em;text-wrap:balance}.page-head>p{max-width:76ch;line-height:1.8}.content-panel{padding:clamp(22px,3vw,40px)}.content-panel h2{line-height:1.35}.article-content{line-height:1.95}.article-content h2,.article-content h3{margin-top:1.8em}.article-content img{border-radius:12px}.detail-side{box-shadow:var(--detail-shadow)}.toolbar{gap:12px}.toolbar input,.toolbar select{min-height:46px}.card{transition:border-color .18s ease,box-shadow .18s ease}.card:has(a:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.card-body>p{line-height:1.8}.plan .benefits{line-height:1.8}.btn{min-height:44px}.btn.small{min-height:40px}.btn.light{background:var(--accent-soft);color:var(--ink);border-color:var(--line)}.empty h3{line-height:1.5}.dialog-body{line-height:1.75}.dialog-head h2{font-size:clamp(18px,2.5vw,24px)}dialog{max-height:calc(100dvh - 36px);box-shadow:0 28px 100px #0005}dialog::backdrop{background:#06101d99;backdrop-filter:blur(5px)}dialog .btn{max-width:100%}.comparison{overscroll-behavior-x:contain}.form input,.form select,.form textarea{max-width:100%}
.learning-breadcrumb{display:flex;gap:10px;align-items:center;padding-top:28px;color:var(--muted);font-size:13px}.learning-breadcrumb a{color:var(--accent)}.learning-space .page-head{padding-top:20px}.learning-space .page-head p{max-width:82ch}.learning-space .course-layout{grid-template-columns:minmax(0,1fr) 320px;gap:28px}.learning-status{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;color:var(--muted);padding:0 2px;margin-bottom:-8px}.learning-status #learningState{font-weight:650;color:var(--ink);overflow-wrap:anywhere}.learning-status #progressState{white-space:nowrap;font-variant-numeric:tabular-nums}.learning-space .stack{gap:22px}.learning-space .course-directory{top:100px;border-color:var(--line);box-shadow:var(--detail-shadow)}.course-directory .card-body{padding:25px 22px 20px}.course-directory h3{margin:10px 0;font-size:21px}.chapter-count{font-size:12px;border:1px solid var(--line);background:var(--accent-soft);color:var(--accent);padding:3px 9px;border-radius:20px}.chapter-search input{width:100%;min-width:0;margin-top:12px;padding:11px 13px;background:var(--bg);border:1px solid var(--line);color:var(--ink);font:inherit;font-size:13px;border-radius:10px}.course-directory>div:last-child{max-height:min(62vh,650px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.course-directory .chapter{position:relative;background:var(--paper);color:var(--ink);border-color:var(--line);padding:18px 20px;gap:12px;align-items:center;min-height:82px;transition:background .18s}.course-directory .chapter:hover{background:var(--bg)}.course-directory .chapter.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.course-directory .chapter[hidden]{display:none}.chapter-copy{font-weight:600;line-height:1.65}.chapter-copy small,.chapter-index{color:var(--muted);font-weight:400;font-variant-numeric:tabular-nums}.course-directory .chapter .icon{flex-shrink:0;width:18px;height:18px}.course-chapter-nav{justify-content:space-between;gap:12px}.course-chapter-nav .btn{max-width:100%;flex:1}.course-chapter-nav .notice{width:100%;margin:0}.course-files-title p{margin-bottom:0}.attachment-card{background:var(--paper);border-color:var(--line);padding:17px}.attachment-icon{background:var(--accent-soft);color:var(--accent)}
.learning-space .academy-player{background:#101622;color:#eef3ff;border:1px solid #354158;border-radius:20px;box-shadow:0 20px 60px #03071226;isolation:isolate}.academy-screen{background:radial-gradient(ellipse at 50% 50%,#1d2c45,#080d17 75%);overflow:hidden}.academy-screen video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}.academy-screen video:focus-visible{outline-offset:-4px}.player-start{width:76px;height:76px;background:#eef4ff1f;border:1px solid #ffffff70;box-shadow:0 12px 34px #0005;transition:background .2s,transform .2s}.player-start:hover{background:#ffffff35;transform:scale(1.04)}.player-message{z-index:2;background:#101827e8;border:1px solid #ffffff26;color:#e4eafa;line-height:1.65;padding:12px 16px;pointer-events:none}.player-message button{pointer-events:auto;margin-left:8px;padding:6px 12px;border:1px solid #66738b;border-radius:8px;background:#283d61;color:white;font:inherit}.academy-controls{background:linear-gradient(180deg,#172031,#111827);padding:15px 20px 17px;color:#eef3ff}.academy-controls button{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:40px;padding:7px;border-radius:8px;color:#edf2ff;font-size:12px}.academy-controls button:hover{background:#ffffff18}.academy-controls .icon{width:20px;height:20px}.academy-controls input[type=range]{accent-color:var(--player-accent,#a3baff);height:16px;min-height:16px;background:transparent}.academy-controls .player-seek{margin:0;width:100%}.player-control-row{gap:10px;margin:6px 0 12px;flex-wrap:nowrap}.player-clock{font-size:12px;letter-spacing:.2px;color:#e1e8f8}.player-volume-label{color:#cad5eb}.player-speed{background:#24314a;color:#eef3ff;border-color:#4a5c7a;min-height:36px;max-width:82px;border-radius:8px;font-size:12px}.player-next-row{border-color:#ffffff20;color:#c1cde4;line-height:1.6}.player-next-row input{width:16px;height:16px}.player-next-row span{max-width:50%}.player-tools{margin-left:auto;display:flex;align-items:center;gap:6px}.player-volume-label{margin-left:0}.player-shortcuts{font-size:11px;color:#aab8d2;margin:10px 0 0;line-height:1.6}.academy-player>.empty{min-height:clamp(250px,35vw,500px);border:0;border-radius:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;background:radial-gradient(ellipse at 50% 30%,#23324d,#0d1422);padding:30px;text-align:center;color:#c2cde3}.academy-player>.empty h3{color:#f6f8ff;font-size:clamp(20px,2vw,26px);margin:5px 0}.academy-player>.empty p{color:#c2cde3;max-width:46ch;margin:0 0 12px}.academy-player>.empty .btn{background:#dae6ff;border-color:#dae6ff;color:#142746}.academy-player>.empty>.icon{color:#b9ceff;width:34px;height:34px}.academy-player>.loading{min-height:300px;color:#d5e2fc;display:grid;place-items:center}.learning-space .academy-player:fullscreen{border:0;background:#080d17}.academy-player:fullscreen .academy-screen{width:100%;min-height:0;flex:1}.academy-player:fullscreen .academy-controls{width:100%;flex-shrink:0}
html[data-template=original]{--player-accent:#85d7b7}html[data-template=doubao]{--player-accent:#b29cff}html[data-template=editorial]{--player-accent:#eab28c}html[data-template=aurora]{--player-accent:#85caff}[data-template=editorial] .learning-space .academy-player{border-radius:8px;box-shadow:6px 6px 0 #d8ccb6}[data-template=doubao] .learning-space .academy-player{border-color:#514879;box-shadow:0 18px 65px #09051855}[data-template=aurora] .learning-space .academy-player{border-color:#709dc8;box-shadow:0 18px 56px #214f8b23}
@media(min-width:1181px){.learning-space.theater .course-layout{grid-template-columns:minmax(0,1fr)}.learning-space.theater .course-directory{position:static}.learning-space.theater .course-directory>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:350px}.learning-space.theater .academy-screen{max-height:75vh}}
@media(max-width:1180px){.learning-space .course-layout{grid-template-columns:minmax(0,1fr)}.learning-space .course-directory{position:static}.course-directory>div:last-child{max-height:440px}.player-volume-label{display:none}.player-theater{display:none!important}.learning-space .page-head{padding-bottom:22px}}
@media(max-width:600px){.page-head{padding-block:28px 22px}.page-head h1{font-size:29px;letter-spacing:-.025em}.page-head>p{font-size:14px}.content-panel{padding:22px 18px}.learning-breadcrumb{padding-top:20px;font-size:12px}.learning-space .page-head h1{font-size:27px}.learning-space .page-head p{line-height:1.75}.learning-space .course-layout{gap:22px}.learning-status{font-size:11px;gap:10px}.learning-status #learningState{max-width:67%}.learning-space .academy-player{border-radius:13px}.academy-controls{padding:10px 12px 12px}.player-control-row{gap:3px;flex-wrap:wrap}.academy-controls button{min-width:36px;min-height:40px}.player-tools{gap:2px}.player-speed{max-width:70px;padding:5px}.player-clock{font-size:11px}.player-next-row{font-size:11px;padding-top:10px}.player-next-row span{display:none}.player-shortcuts{display:none}.player-start{width:54px;height:54px}.player-message{left:10px;right:10px;bottom:10px;font-size:12px;padding:9px}.academy-player>.empty{min-height:270px;padding:25px 18px}.academy-player>.empty p{font-size:13px}.course-directory .card-body{padding:22px 18px 18px}.course-directory .chapter{padding:16px 18px}.course-chapter-nav{flex-direction:column}.course-chapter-nav .btn{width:100%}.attachment-card{gap:12px;padding:15px}.attachment-card .btn{width:100%}.detail-grid{gap:20px}.toolbar{flex-wrap:wrap}.toolbar input{min-width:0;flex-basis:100%}dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:0;border-radius:18px}.dialog-body{padding:20px}.dialog-actions{flex-wrap:wrap}.dialog-actions .btn{flex:1;min-width:120px}.profile-band{padding:24px 20px}.attachment-info h4{line-height:1.6}.table td{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.card,.btn,.player-start{transition:none!important}}

.academy-controls button[hidden],.player-message[hidden],.chapter[hidden]{display:none!important}

.learning-jump{display:none}.learning-space #player,.learning-space #courseResources,.learning-space #courseDirectory{scroll-margin-top:150px}
@media(max-width:1180px){.learning-jump{display:flex;gap:12px;margin-top:-6px}.learning-jump a{flex:1;display:flex;justify-content:center;align-items:center;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);font-size:13px}.learning-jump a:hover{background:var(--accent-soft);color:var(--accent)}}
@media(max-width:600px){.player-control-row{display:grid;grid-template-columns:40px 40px minmax(0,1fr);gap:4px}.player-clock{text-align:right}.player-tools{grid-column:1/-1;width:100%;margin:0;justify-content:space-between}.academy-controls .player-tools button{min-width:44px;min-height:44px}.academy-controls .player-tools .player-speed{min-height:40px}.player-next-row{margin-top:4px}}
