/* 主导航只有已实现的四个入口；桌面侧栏与手机底栏使用同一组链接。 */
.workspace-nav { position: fixed; z-index: 35; left: 24px; top: 96px; bottom: 24px; width: 176px; display: flex; flex-direction: column; padding: 18px 10px; border: 1px solid #e6eaf3; border-radius: 16px; background: #fff; }
.workspace-label { font-size: 10px; letter-spacing: .06em; color: #8792a7; padding: 0 10px; margin: 0 0 18px; }
.workspace-nav nav { display: grid; gap: 8px; }
.workspace-nav nav a { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 8px 12px; border-radius: 10px; color: #67758d; font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s,color .15s; }
.workspace-nav nav a:hover { background: #f5f7fc; }
.workspace-nav nav a[aria-current] { color: #4559c7; background: #edf0ff; font-weight: 600; }
.nav-symbol { display: grid; place-items: center; width: 26px; height: 26px; color: #8797c1; }
.workspace-nav [data-destination='practice'] .nav-symbol { color: #528dbb; }
.workspace-nav [data-destination='statistics'] .nav-symbol { color: #53a187; }
.workspace-nav [data-destination='account'] .nav-symbol { color: #9b78b7; }
.workspace-nav [aria-current] .nav-symbol { color: #5363d7; }
.nav-symbol .studio-icon { width: 21px; height: 21px; stroke-width: 1.8; }
.workspace-note { margin-top: auto; padding: 24px 12px 8px; color: #8a97be; }
.workspace-note > .studio-icon, .workspace-note > [data-studio-icon] { margin-bottom: 12px; }
.workspace-note strong { display: block; color: #475873; font-size: 12px; font-weight: 600; }
.workspace-note p { font-size: 11px; margin: 7px 0; color: #7d889d; }
.workspace-method { font-size: 9px; color: #9ba5b6; }
body .site-header .site-inner { width: calc(100% - 64px); max-width: none; }
body main#trainingMain { width: calc(100% - 256px); max-width: 1360px; margin-left: 224px; margin-right: 32px; }
body main#trainingMain[data-view='catalog'] { grid-template-columns: minmax(0,1fr) 250px; }
body main#trainingMain[data-view='lesson'] { max-width: 1040px; }
/* 五步沿用同一套轮廓图标，以各自的色块和实色选中态建立层次。 */
#step-listen,#listen { --step-color:#4b79ce; --step-soft:#eaf2ff; }
#step-practice,#practice { --step-color:#d59830; --step-soft:#fff5df; }
#step-compareSection,#compareSection { --step-color:#4a9f88; --step-soft:#e9f7f0; }
#step-phrasesSection,#phrasesSection { --step-color:#8f6bc0; --step-soft:#f3edfc; }
#step-followSection,#followSection { --step-color:#d07c83; --step-soft:#fff0f1; }
.lesson-nav button .step-symbol { background: var(--step-soft); color: var(--step-color); width: 34px; height: 34px; border: 1px solid color-mix(in srgb,var(--step-color) 12%,transparent); border-radius: 11px; }
.lesson-nav button .step-symbol .studio-icon { fill: color-mix(in srgb,var(--step-color) 10%,transparent); stroke-width: 1.8; }
.lesson-nav button[aria-selected='true'] { background: var(--step-soft); color: color-mix(in srgb,var(--step-color) 75%,#202c42); }
.lesson-nav button[aria-selected='true'] .step-symbol { background: var(--step-color); color: #fff; border-color: transparent; box-shadow: 0 3px 7px color-mix(in srgb,var(--step-color) 25%,transparent); }
.lesson-nav button[aria-selected='true'] .step-order { color: var(--step-color); }
.section-head { display: flex; }
.section-head > div:first-of-type { flex: 1; min-width: 0; }
.section-emblem { width: 42px; height: 42px; display: grid; place-items: center; background: var(--step-soft); color: var(--step-color); border-radius: 13px; flex: none; }
.section-emblem .studio-icon { width: 22px; height: 22px; }
.expression-count { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 500; letter-spacing: 0; color: #9378b9; background: #f3edfc; padding: 3px 8px; border-radius: 6px; margin-left: 7px; }
.expression { border: 1px solid #e6e8f0; background: linear-gradient(135deg,color-mix(in srgb,var(--expression-color) 3%,white),white 65%); }
.expression-ribbon { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-right: 64px; }
.expression-glyph { width: 29px; height: 29px; display: grid; place-items: center; color: var(--expression-color); background: color-mix(in srgb,var(--expression-color) 9%,white); border-radius: 9px; }
.expression-glyph .studio-icon { width: 16px; height: 16px; fill: color-mix(in srgb,var(--expression-color) 12%,transparent); }
.expression-number { color: color-mix(in srgb,var(--expression-color) 65%,white); font-size: 11px; font-weight: 550; letter-spacing: .04em; }
.expression .expression-head { padding-right: 0; }
.expression .word-speak { color: var(--expression-color); border: 1px solid color-mix(in srgb,var(--expression-color) 15%,white); background: color-mix(in srgb,var(--expression-color) 6%,white); }
.expression .expression-example { background: color-mix(in srgb,var(--expression-color) 4%,white); border-left-color: var(--expression-color); }
main[data-section='practice'] .catalog-feature { display: none; }
main[data-section='practice'] .catalog-summary { margin-bottom: 0; }
main[data-section='practice'] .catalog-heading-row { grid-row: 3 !important; }
main[data-section='practice'] #lessons { grid-row: 4; }
.practice-resume { margin: 0; color: #70829e; font-size: 10px; }
main[data-view='statistics'],main[data-view='account'] { padding-top: 32px; }
main[data-view='statistics'] .course-title,main[data-view='account'] .course-title { border: 0; padding: 0; margin-bottom: 26px; background: none; box-shadow: none; }
main[data-view='statistics'] .course-title::after,main[data-view='account'] .course-title::after { display: none; }
main[data-view='statistics'] h1,main[data-view='account'] h1 { font-size: 28px; margin: 8px 0; }
main[data-view='statistics'] .learning-summary { position: static; max-width: 680px; width: 100%; }
main[data-view='statistics'] .summary-content { padding: 24px 32px; }
main[data-view='statistics'] .learning-ring { width: 190px; height: 190px; }
main[data-view='statistics'] .learning-week { max-width: 380px; margin-inline: auto; }
main[data-view='statistics'] #compactStudyTime { display: inline; margin-left: auto; color: var(--blue); font-size: 12px; }
.account-panel { max-width: 680px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.profile-heading { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; }
.profile-avatar { width: 62px; height: 62px; display: grid; place-items: center; background: #eeeaff; color: #8c70b8; border: 1px solid #e5dcf7; border-radius: 20px; }
.profile-avatar .studio-icon { width: 31px; height: 31px; }
.profile-caption { font-size: 11px; color: #8b96aa; }
.profile-heading h2 { font-size: 23px; margin: 4px 0 6px; letter-spacing: -.025em; }
.profile-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #429476; }
.profile-status i { width: 5px; height: 5px; border-radius: 50%; background: #5ca889; }
.profile-access { border-top: 1px solid var(--line); padding-top: 20px; }
.profile-access > span { color: var(--muted); font-size: 11px; }
#profileLibraries { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 24px; }
.profile-library { padding: 5px 10px; border-radius: 7px; background: #eef2ff; color: #626ec0; font-size: 11px; }
.profile-links { border-top: 1px solid var(--line); }
.profile-links a { display: flex; align-items: center; gap: 12px; padding: 18px 0; color: var(--ink-soft); text-decoration: none; }
.profile-links a + a { border-top: 1px solid #f0f2f7; }
.profile-link-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #edf5fb; color: #5789b1; }
.profile-links a:nth-child(2) .profile-link-icon { background: #edf7f2; color: #4d9a80; }
.profile-links a > span:nth-child(2) { flex: 1; }
.profile-links strong { display: block; font-size: 13px; font-weight: 550; }
.profile-links small { font-size: 11px; color: #8b96aa; }
.profile-links a > [data-studio-icon] { color: #a4aec0; }
.profile-logout { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; width: 100%; margin-top: 12px; border: 1px solid #e3e7f0; background: #fafbfe; color: #6e7b94; font-size: 12px; border-radius: 9px; }
@media(min-width:1001px) and (max-width:1240px) {
 .workspace-nav { left: 16px; width: 156px; }
 body main#trainingMain { width: calc(100% - 220px); margin-left: 196px; margin-right: 24px; }
 body main#trainingMain[data-view='catalog'] { grid-template-columns: minmax(0,1fr) 220px; gap: 0 18px; }
 [data-view='catalog'] .lessons { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .topic-buttons { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media(max-width:1000px) {
 .workspace-nav { inset: auto 0 0; width: 100%; height: calc(64px + env(safe-area-inset-bottom,0px)); padding: 4px 14px calc(4px + env(safe-area-inset-bottom,0px)); border: 0; border-top: 1px solid #e1e6f0; border-radius: 0; box-shadow: 0 -3px 16px #26365a06; }
 .workspace-label,.workspace-note { display: none; }
 .workspace-nav nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
 .workspace-nav nav a { flex-direction: column; justify-content: center; min-height: 55px; gap: 2px; padding: 3px 0; border-radius: 10px; font-size: 10px; }
 .workspace-nav nav a[aria-current] { background: #f1f3ff; }
 .nav-symbol { width: 28px; height: 27px; }
 .nav-symbol .studio-icon { width: 22px; height: 22px; }
 body main#trainingMain { width: calc(100% - 40px); margin-inline: auto; padding-bottom: calc(96px + env(safe-area-inset-bottom,0px)); }
 body .site-header .site-inner { width: calc(100% - 40px); }
 main[data-view='statistics'] .course-title,main[data-view='account'] .course-title { margin-bottom: 20px; }
 main[data-view='statistics'] h1,main[data-view='account'] h1 { font-size: 24px; }
 main[data-view='statistics'] .learning-summary { margin-top: 0; }
 .account-panel { padding: 22px; }
 .profile-heading h2 { font-size: 21px; }
 main[data-section='practice'] .learning-summary { display: none; }
 .section-emblem { width: 34px; height: 34px; border-radius: 10px; }
 .section-emblem .studio-icon { width: 19px; height: 19px; }
}
@media(max-width:560px) {
 body main#trainingMain,body .site-header .site-inner { width: calc(100% - 32px); }
}
