/* 全站排版执行原首页品牌样式；数值来源见统一规范06及font-manifest.json。 */
@font-face {
  font-family: "Noto Sans SC";
  src: url("/assets/fonts/NotoSansSC-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --sf-font-body: "Noto Sans SC", sans-serif;
  --sf-size-base: 15px;
  --sf-size-title: 38px;
  --sf-size-section: 28px;
  --sf-size-card-title: 21px;
  --sf-size-body: 14px;
  --sf-size-description: 13px;
  --sf-size-meta: 12px;
  --sf-size-control: 14px;
  --sf-size-display: 32px;
  --sf-weight-regular: 400;
  --sf-weight-medium: 550;
  --sf-weight-heading: 650;
  --sf-line-body: 2;
  --sf-line-heading: 1.5;
}
html body, button, input, select, textarea, pre, code, kbd, samp, svg text {
  font-family: var(--sf-font-body);
  font-synthesis: none;
}
body { font-size: var(--sf-size-base); font-weight: var(--sf-weight-regular); }
/* 首页保持原有字号、布局和响应式；其他页面使用原首页同类元素的层级。 */
.app-view { background: #fff; --sf-text: var(--ink); --sf-label: var(--muted); --sf-soft: var(--mint); }
.app-wrap { max-width: var(--max); width: calc(100% - 112px); }
.app-view h1, .app-view .page-title h1, .app-view .hero-panel h1,
.sf-catalog h1, .sf-legacy h1 {
  font-size: var(--sf-size-title); line-height: var(--sf-line-heading);
  font-weight: var(--sf-weight-heading); letter-spacing: -1px; color: var(--navy);
  white-space: normal; overflow-wrap: anywhere;
}
.app-view h2, .app-view .section-title h2, #app-dialog h2,
.sf-catalog h2, .sf-legacy h2 {
  font-size: var(--sf-size-section); line-height: 1.6;
  font-weight: var(--sf-weight-heading); color: var(--navy);
}
.app-view h3, .app-view .list-item h3, .app-view .timeline-item h3,
.sf-catalog h3, .sf-legacy h3 {
  font-size: var(--sf-size-card-title); line-height: 1.6; font-weight: 600;
  letter-spacing: .4px; color: #2e4333;
}
.app-view p, .app-view .text-detail, .app-view .text-detail p,
.app-view li, #app-dialog p, #app-dialog li, .sf-catalog p, .sf-catalog li,
.sf-legacy p, .sf-legacy li {
  font-size: var(--sf-size-body); line-height: var(--sf-line-body); color: var(--muted);
}
.app-view .card p, .app-view .list-item p, .app-view .hero-panel p,
.app-view .empty p, .app-view .notice, .sf-legacy .course-card p {
  font-size: var(--sf-size-description); line-height: var(--sf-line-body);
}
.app-view label, #app-dialog label, .app-view .check-row span,
.app-view .data-table, .app-view .data-table th, .sf-legacy table {
  font-size: var(--sf-size-description); line-height: 1.75;
}
.app-view small, .app-view .card-meta, .app-view .badge, .app-view .chip,
.app-view .breadcrumb, .app-view .small-print, .app-view .source-box,
.app-view .result-count, .app-view .detail-key span, .app-view .message-item span,
.app-view .bubble small, .app-view .stat small, .app-view .chart-svg text,
.sf-legacy small, .sf-legacy .fine-print {
  font-size: var(--sf-size-meta); line-height: 1.75; color: var(--muted);
}
.app-view input, .app-view select, .app-view textarea,
#app-dialog input, #app-dialog select, #app-dialog textarea,
.app-view .editor, #app-dialog .editor {
  font-size: var(--sf-size-body) !important; line-height: 1.75;
  color: var(--ink); background: #fff; border-color: var(--line);
}
.app-view .button, #app-dialog .button, .sf-legacy .button {
  font-size: var(--sf-size-control); font-weight: var(--sf-weight-medium); line-height: 1.5;
  padding: 15px 24px; gap: 26px; border-radius: 7px;
}
.app-view .tabbar a, .app-view .tabbar button, .app-view .ai-subnav a,
.app-view .workspace-sidebar a, .app-view .guide-grid a {
  font-size: var(--sf-size-description); line-height: 1.75; color: #596960;
}
.app-view .tabbar .active, .app-view .workspace-sidebar a.active { color: var(--green); }
.app-view .card, .app-view .list-item, .app-view .workspace-sidebar,
.app-view .table-wrap, .app-view .hero-panel, .app-view .detail-key,
.app-view .account-form, .app-view .stat, #app-dialog {
  border-color: var(--line); border-radius: var(--radius);
}
.app-view .card.soft, .app-view .tabbar .active,
.app-view .workspace-sidebar a.active { background: var(--mint); }
.app-view .card-letter { font-family: var(--sf-font-body); font-size: var(--sf-size-display); }
.app-view .bubble { font-size: var(--sf-size-body); line-height: 1.75; }
.app-view .profile-row strong, .app-view .detail-key strong,
.app-view .message-item strong { font-size: var(--sf-size-description); font-weight: 600; }
.sf-catalog main { padding-block: 40px; }
.sf-catalog h2 { margin-top: 36px; }
.sf-catalog ul { padding-left: 24px; }
.sf-catalog li { margin-block: 14px; }
.sf-catalog a { color: var(--green); }
@media (max-width: 1280px) {
  :root { --sf-size-title: 34px; --sf-size-card-title: 19px; --sf-size-control: 12px; }
}
@media (max-width: 980px) {
  :root { --sf-size-title: 31px; --sf-size-section: 26px; --sf-size-body: 13px; --sf-size-description: 12px; }
  .app-wrap { width: calc(100% - 48px); }
}
@media (max-width: 760px) {
  :root { --sf-size-card-title: 18px; --sf-size-control: 12px; }
  .app-wrap { width: calc(100% - 40px); }
  .app-view .button, #app-dialog .button, .sf-legacy .button { padding: 14px 19px; gap: 20px; white-space: normal; }
}
@media (max-width: 370px) {
  .app-wrap { width: calc(100% - 32px); }
}
@media print {
  body, pre, code { font-family: var(--sf-font-body); }
}

/* 装饰星光使用原首页形状，不依赖系统符号字体。 */
.tiny-spark::before{content:"";display:inline-block;width:.85em;height:.85em;background:currentColor;clip-path:polygon(50% 0,64% 36%,100% 50%,64% 64%,50% 100%,36% 64%,0 50%,36% 36%);vertical-align:middle}
