/* 阅读与界面精修：只影响展示，不改变学习数据或交互逻辑。 */
:root{
  --text-xs:12px;--text-sm:14px;--text-base:16px;--text-lg:20px;
  --text-xl:28px;--text-hero:34px;
  --reading-ink:#303a36;--reading-muted:#4b625a;
}
/* Keep secondary catalogue copy legible on the existing light surfaces. */
.page-enter .career-card .career-en,
.page-enter .paper-library-foot,
.page-enter .lab-teaser.project-card .repo-name{color:var(--reading-muted)}
/* Long-form content remains a single clear reading column. */
#dialog-content > article.dialog-body:has(.reading-section),
#dialog-content > article.lab-body{
  width:100%;max-width:744px;margin-inline:auto;
  color:var(--reading-ink);font-size:var(--text-base);line-height:1.7;
}
#dialog-content > article.dialog-body:has(.reading-section) :is(.reading-section p,.worked-example p,.practice-box p,.detail-note,.learning-muted),
#dialog-content > article.lab-body :is(p,li,label,.detail-note){
  color:var(--reading-ink);font-size:var(--text-base);line-height:1.7;
}
.paper-unit{width:100%;max-width:680px;color:var(--reading-ink);font-size:var(--text-base);line-height:1.7}
.paper-unit :is(.paper-abstract p,.paper-abstract li,.paper-column-body p,.paper-column-body li,.paper-constraints>p,.paper-sources p){color:var(--reading-ink);font-size:var(--text-base);line-height:1.7}
.paper-unit :is(.paper-abstract .paper-small,.paper-sources .paper-small){line-height:1.7!important}
#dialog-content .reading-section p,.paper-unit :is(p,li){animation:none!important;transition:none!important}
/* Preserve the existing visual language while making the supporting copy readable. */
.page-heading p,.section-subtitle,.hero p,.catalog-intro,.career-desc,.module-desc,.catalog-lead,
.daily-feature p,.profile-entry>p,.mine-card>p,.intro-strip p,.learning-note,.paper-library-intro p{
  font-size:var(--text-sm);line-height:1.7;
}
.career-desc,.module-desc,.catalog-lead,.section-subtitle{color:#465f59}
.page-heading p{color:#475f5d}
.lesson-category,.module-meta,.lesson-meta,.card-bottom,.career-en,.progress-caption,.path-subtitle,
.result-count,.paper-result-count,.catalog-result-count,.paper-index,.catalog-rank,.repo-name,
.repo-meta,.rail-label,.mine-note,.mine-meta,.learning-muted,.footer,.offline-strip,.stat-item small{
  font-size:var(--text-xs);line-height:1.6;
}
.module-meta,.lesson-meta,.card-bottom,.career-en,.progress-caption,.path-subtitle,
.result-count,.paper-result-count,.catalog-result-count,.paper-index,.catalog-rank,.repo-name,.repo-meta,
.mine-note,.mine-meta,.learning-muted,.footer,.stat-item small{color:#4b625a}
.catalog-tags span,.paper-tags span,.tag{font-size:var(--text-xs);line-height:1.6;color:#405f49}
.page-heading h1{font-size:clamp(24px,2.2vw,var(--text-xl));line-height:1.35}
.hero h2{font-size:clamp(28px,3vw,var(--text-hero));line-height:1.45}
.hero p{color:#e1eee9}
.career-card,.lesson-card,.module-card,.rail-card,.stage-card,.mine-card,.catalog-card,.paper-card,.paper-question-card,.profile-panel{
  border-radius:var(--radius-card);border-color:#dce7df;box-shadow:var(--shadow-card);
}
/* Text links retain their visible underline and keyboard focus. */
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #95521f;outline-offset:3px}
:where(input,select,textarea):focus-visible{outline-color:#346e58}
.button,.filter-button,.module-chip,.icon-button,.save-button{min-height:44px}
.button,.filter-button,.module-chip,.icon-button,.save-button,.career-card,.lesson-card,.module-card,.catalog-card,.paper-card{
  transition-duration:var(--duration-feedback);transition-timing-function:ease;
}
@media(hover:hover) and (pointer:fine){
  .career-card:hover,.lesson-card:hover,.module-card:hover,.catalog-card:hover,.paper-card:hover{
    transform:translateY(-2px);box-shadow:var(--shadow-card-hover);
  }
}
@media(hover:none){
  .career-card:hover,.lesson-card:hover,.module-card:hover,.catalog-card:hover,.paper-card:hover{transform:none}
}
@media(max-width:767px){
  .page-heading p,.hero p,.career-card .career-desc,.module-card .module-desc,.catalog-card .catalog-lead,.mine-card>p{font-size:var(--text-sm);line-height:1.7}
  .page-eyebrow,.hero-eyebrow,.section-heading .caption{font-size:var(--text-xs);letter-spacing:1px}
  .hero-copy{padding:24px 20px 20px}
  .hero h2{font-size:28px}
  .hero-actions .button{min-height:44px}
  .filter-row{flex-wrap:wrap}
  .career-card,.lesson-card,.module-card,.rail-card,.stage-card,.mine-card,.catalog-card,.paper-card,.paper-question-card,.profile-panel{border-radius:var(--radius-card)}
  #dialog-content > article.dialog-body:has(.reading-section),#dialog-content > article.lab-body{padding-inline:20px}
}
@media(max-width:360px){.hero h2{font-size:26px}.hero-actions .button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Secondary labels are kept legible, including the initial empty-progress state. */
.breadcrumb,.search-box kbd,.page-eyebrow,.daily-feature .page-eyebrow,.section-heading .caption,
.card-badge,.progress-value small,.progress-copy p,.stat-item b span,.timeline-mini small,
.quote-card p,.quote-card small,.rail-label,.learning-note strong{
  font-size:var(--text-xs);line-height:1.6;color:#405e52;
}
.card-badge{color:#594c75}
.sidebar .page-eyebrow,.hero .page-eyebrow{color:#e3f1ca}
.search-box input{font-size:var(--text-sm)}
