/* 文字与插画共用银蓝底，右侧完整显出各栏目的全息细节。 */
.inner-world{
  --banner-paper: #d8e1eb;
  position:relative;isolation:isolate;min-height:clamp(230px,22vw,300px);margin:4px 0 30px;padding:38px clamp(24px,4vw,58px);
  display:flex;align-items:center;justify-content:space-between;overflow:hidden;
  border:1px solid var(--glass-border);border-radius:18px;
  background:var(--banner-paper);box-shadow:var(--glass-shadow);
}
body[data-route=timeline] .inner-world{--banner-art:url('/assets/bg-timeline.jpg');--banner-position:55%}
body[data-route=plan] .inner-world{--banner-art:url('/assets/bg-plan.jpg')}
body[data-route=study] .inner-world{--banner-art:url('/assets/bg-study.jpg')}
body[data-route=files] .inner-world{--banner-art:url('/assets/bg-archive.jpg')}
.inner-world::before{
  content:'';position:absolute;inset:0;z-index:-1;
  background:var(--banner-art,none) center var(--banner-position,55%)/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent 6%,rgb(0 0 0 / .1) 25%,#000 65%);
  filter:var(--art-filter);
}
.inner-world>div{position:relative;z-index:1}
.inner-world h1{
  margin:14px 0 12px;font-family:var(--font-title);font-weight:300;
  font-size:clamp(29px,5.7vw,46px);line-height:1.28;letter-spacing:.045em;
  color:var(--heading);text-shadow:var(--heading-shadow);
}
.inner-world p{margin:0;max-width:500px;font-size:13px;line-height:1.9;color:var(--text);text-shadow:var(--text-shadow)}
.inner-world-kicker{font-size:10px;color:var(--muted);text-shadow:var(--text-shadow)}
.inner-world+.page-heading h1{font-size:23px}
.inner-world+.page-heading{margin-top:18px}

/* 内容区的大面板和入口卡片沿用全站玻璃。 */
.page-module .panel,
.timeline-toolbar,
.plan-calendar,.plan-ddl,
.credit-card,.course-list>section,.study-overview>section,
.archive-category{
  background:var(--glass-panel);
  -webkit-backdrop-filter:var(--glass-filter);
  backdrop-filter:var(--glass-filter);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-shadow);
}
.page-module .panel:hover{border-color:color-mix(in srgb,var(--accent) 38%,var(--glass-border))}

/* 学习进度、状态和日历使用共用的淡蓝强调色。 */
/* 数字 / 强调数值 */
body:not([data-route=home]) .course-credits,
body:not([data-route=home]) .credit-mini span:nth-child(2) b,
body:not([data-route=home]) .curriculum-module-top span,
body:not([data-route=home]) .curriculum-major b{color:var(--accent)}

/* 进度条 / 高亮条 */
body:not([data-route=home]) .credit-bar span{background:linear-gradient(90deg,var(--accent),var(--accent-2));box-shadow:0 0 14px var(--accent-soft)}
body:not([data-route=home]) .curriculum-bar i{background:linear-gradient(90deg,var(--accent),var(--accent-2))}
body:not([data-route=home]) .course-card::before{background:linear-gradient(180deg,transparent,var(--accent),transparent)}

/* 状态标签：进行中 = 主题色 */
body:not([data-route=home]) .status-studying{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 34%,transparent);background:var(--accent-soft)}

/* 习惯打卡：点亮 = 主题色 */
body:not([data-route=home]) .habit-week i.on{background:var(--accent);box-shadow:0 0 8px var(--accent)}
body:not([data-route=home]) .habit-check:hover{border-color:var(--accent)}
body:not([data-route=home]) .habit-check.is-done{background:linear-gradient(150deg,var(--accent),var(--accent-2))}

/* 学分仪表盘光晕跟随主题 */
body:not([data-route=home]) .credit-card::after{background:radial-gradient(circle,var(--accent-soft),transparent 65%)}
body:not([data-route=home]) .curriculum-panel::after{background:radial-gradient(circle,var(--accent-soft),transparent 66%)}

/* 链接 hover、聚焦描边跟随主题 */
body:not([data-route=home]) .course-link:hover{color:var(--accent)}
body:not([data-route=home]) .plan-icon-button:focus-visible,
body:not([data-route=home]) .plan-day:focus-visible,
body:not([data-route=home]) .plan-check:focus-visible,
body:not([data-route=home]) .plan-task-title:focus-visible{outline-color:var(--accent)}

/* 细刻度沿横幅下缘呼应画面中的测量仪表。 */
.inner-world::after{
  content:"";position:absolute;left:clamp(24px,4vw,58px);bottom:18px;
  width:84px;height:4px;opacity:.48;
  background:repeating-linear-gradient(90deg,var(--accent-2) 0 1px,transparent 1px 7px);
}
.inner-world-kicker{
  display:flex;align-items:center;gap:10px;
}
.inner-world-kicker::before{
  content:"";width:21px;height:2px;background:#916c3a;
}

/* 通用交互过渡 */
.btn,.icon-button,.filter-pill{transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.btn:active,.icon-button:active{transform:scale(.97)}
.btn:hover{box-shadow:0 4px 20px #0a122833}
.inner-world~section{scroll-margin-top:30px}
dialog[open]{animation:dialog-arrive .22s ease-out}
@keyframes dialog-arrive{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}

/* 栏目内的操作标题与总览内容区使用思源黑体。 */
/* 标题与统计共用完整的山脊画面，左侧留出稳定的阅读区。 */
.plan-brief {
  overflow:hidden;
  margin:0 0 22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    linear-gradient(94deg,rgb(217 230 241 / .96) 0%,rgb(215 229 241 / .84) 34%,rgb(204 221 237 / .36) 65%,rgb(164 189 212 / .06)),
    var(--landscape) center 72% / cover no-repeat;
}
.plan-brief .plan-heading {
  margin:0; padding:24px clamp(16px,2.4vw,34px) 20px;
}
.plan-brief .plan-summary {
  margin:0; padding:10px clamp(16px,2.4vw,34px);
  border-top:1px solid rgb(105 133 154 / .28);
  background:rgb(211 225 238 / .80);color:#475d74;
}
.page-module :is(.plan-calendar,.plan-ddl,.curriculum-panel) {
  background:
    linear-gradient(117deg,rgb(225 237 246 / .95),rgb(210 227 239 / .88) 58%,rgb(202 218 234 / .79)),
    var(--landscape) center 64% / cover no-repeat;
}
.curriculum-module {
  background:rgb(222 236 244 / .72);
  border-color:rgb(99 135 158 / .33);
}
@media(max-width:700px) {
  .plan-brief .plan-heading { align-items:flex-start; }
  .plan-brief .plan-summary { flex-wrap:wrap; gap:6px 14px; }
}
.plan-summary strong{color:var(--text)}
.plan-heading h1,.page-heading h1,.curriculum-head h2,.plan-calendar-toolbar h2{
  font-family:var(--font-body);font-weight:400;color:var(--heading);
}
.plan-heading h1,.page-heading h1{line-height:1.28;letter-spacing:.025em;text-shadow:var(--text-shadow)}
.plan-heading p,.page-heading p,.page-heading .eyebrow{
  color:var(--muted);text-shadow:var(--text-shadow);
}

/* 培养方案总学分数：数字仍用醒目渐变，保持可读性 */
body[data-route=study] .curriculum-total{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 18px var(--accent-soft));
}
@media(max-width:700px){
  .inner-world{padding:26px 24px;min-height:185px;margin:10px 0 24px}
  .inner-world h1{font-size:29px}.inner-world p{font-size:12px;max-width:260px}
  .inner-world::before{mask-image:linear-gradient(90deg,transparent,rgb(0 0 0 / .12) 63%,rgb(0 0 0 / .90))}
  .inner-world>div{max-width:73%}
  .page-module .page-heading{flex-direction:column;align-items:stretch;gap:14px}
  .inner-world-kicker{font-size:10px}
  .inner-world::after{bottom:12px;width:56px}
}
@media(prefers-reduced-motion:reduce){dialog[open]{animation:none}.btn,.icon-button,.filter-pill{transition:none}}

/* 计划：普通事项用淡蓝，优先事项用暖橙。 */
.plan-calendar,.plan-ddl,.plan-calendar-toolbar h2,.plan-ddl-heading h2,
.plan-day,.plan-task-title,.plan-empty h3{color:var(--text)}
.plan-weekdays span{color:var(--text);font-weight:500}
.plan-year,.plan-calendar-footer,.plan-task-meta,.plan-more,.plan-completed-filter,
.plan-sync-note,.plan-task-group h3,.plan-empty{color:var(--muted)}
.plan-count,.plan-calendar-task{color:var(--accent-2);border-color:var(--accent);background:var(--accent-soft)}
.plan-day{border:1px solid var(--grid-line)}
.plan-calendar-grid{gap:2px}
.plan-day.is-padding{border:0}
.plan-day:nth-child(7n),.plan-day:nth-child(7n-1){background:var(--glass-card)}
.plan-weekdays span:nth-last-child(-n+2){color:var(--weekend)}
.plan-calendar-task.is-priority,.plan-priority{color:var(--alert);background:var(--alert-soft);border-color:var(--alert)}
.plan-calendar-task.is-complete{color:var(--text-hint);border-color:var(--glass-border-soft);background:var(--glass-card)}
.plan-day.is-today .plan-day-number{background:var(--accent);color:#fff;box-shadow:0 0 14px var(--accent-soft);font-weight:700}
.plan-day.is-today{border-color:var(--accent);background:var(--accent-soft)}
.plan-today-label{color:var(--accent);font-weight:600}
.plan-summary-dot,.plan-mobile-dot.is-today,.plan-day.is-today .plan-mobile-dot{background:var(--accent)}

.strip-hint,.archive-results-heading,.archive-academic-meta{
  color:var(--muted);text-shadow:var(--text-shadow);
}

/* ══ 时光板块：搜索框 + 密度条 ══ */
body[data-route=timeline] .timeline-search{color:var(--text-sub)}
body[data-route=timeline] .timeline-search input{color:var(--text-main)}
body[data-route=timeline] .filter-controls select,
body[data-route=timeline] .attachment-visibility{
  background:var(--glass-card);
  border:1px solid var(--glass-border-soft);
  color:var(--text-main);
}
/* 密度条：暖橙标记里程碑，淡蓝标记普通记录。 */
body[data-route=timeline] .strip-stack .s-milestone{
  background:var(--alert);
  box-shadow:0 0 12px var(--alert-soft);
}
body[data-route=timeline] .strip-stack .s-important{background:var(--accent-2)}
body[data-route=timeline] .strip-stack .s-daily{background:var(--accent)}
body[data-route=timeline] .strip-col.is-empty .strip-stack{background:var(--glass-border)}
body[data-route=timeline] .strip-col b{color:var(--text-hint)}
body[data-route=timeline] .strip-col.is-busy b{color:var(--text-main)}
body[data-route=timeline] .strip-hint{color:var(--text-sub);font-size:11px}
/* 最新月的数字用淡蓝高亮。 */
body[data-route=timeline] .strip-col:last-child b{color:var(--accent)}

/* 学习板块：进度说明与卡片正文共用次要文字色。 */
body[data-route=study] .curriculum-head p,
body[data-route=study] .curriculum-module small,
body[data-route=study] .curriculum-major small{color:var(--muted)}
body[data-route=study] .curriculum-major{border-color:var(--glass-border)}
body[data-route=study] .credit-num,
body[data-route=study] .credit-mini span:nth-child(2) b{color:var(--accent)}

/* ══ 学业档案板块：分类卡片 + 文件统计 ══ */
body[data-route=files] .archive-category:hover,
body[data-route=files] .archive-category.is-active{
  background:var(--glass-panel-hover);
  border-color:color-mix(in srgb,var(--accent) 40%,transparent);
}
body[data-route=files] .archive-category-icon{
  display:inline-grid;
  place-items:center;
  width:40px;height:40px;
  border-radius:50%;
  background:var(--accent-soft);
  color:var(--accent);
  margin-bottom:14px;
}
body[data-route=files] .archive-category>strong{color:var(--text-main)}
body[data-route=files] .archive-category p{color:var(--text-sub);font-size:13px}
/* 有内容的分类数用淡蓝显示。 */
body[data-route=files] .archive-category-count{color:var(--accent)}
body[data-route=files] .archive-category.is-empty .archive-category-count{color:var(--text-hint)}
body[data-route=files] .archive-category-count small{color:var(--text-hint)}
/* 文件统计行：淡胶囊底 + 模糊 */
body[data-route=files] .archive-academic-meta{
  padding:8px 14px;
  border-radius:99px;
  background:var(--glass-panel-soft);
  -webkit-backdrop-filter:var(--glass-filter);
  backdrop-filter:var(--glass-filter);
  color:var(--text-sub);
}
/* 档案页顶部操作行（引导语 + 存入档案按钮）：裸文字加投影 */
body[data-route=files] .archive-toolbar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}
body[data-route=files] .archive-toolbar-head .eyebrow{
  color:var(--text-main);
  text-shadow:var(--text-shadow);
}
body[data-route=files] .filter-controls select,
body[data-route=files] .attachment-visibility{
  background:var(--glass-card);
  border:1px solid var(--glass-border-soft);
  color:var(--text-main);
}


body[data-route=files] .archive-toolbar .timeline-search{
  background:var(--input-surface);
  border-color:var(--glass-border);
}
