teaching-diagrams.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. .teaching-diagrams {
  2. min-width: 0;
  3. }
  4. .teaching-section-heading > span {
  5. display: block;
  6. margin-bottom: 7px;
  7. color: var(--primary);
  8. font-size: 12px;
  9. font-weight: 600;
  10. letter-spacing: 0.08em;
  11. }
  12. .teaching-section-intro {
  13. margin-top: 12px;
  14. color: var(--muted-foreground);
  15. font-size: 14px;
  16. }
  17. .teaching-figure {
  18. margin: 24px 0;
  19. overflow: hidden;
  20. border: 1px solid var(--border);
  21. border-radius: 12px;
  22. background: var(--card);
  23. }
  24. .teaching-caption {
  25. padding: 24px 26px 18px;
  26. }
  27. .teaching-number {
  28. display: block;
  29. margin-bottom: 8px;
  30. color: #71809a;
  31. font-size: 11px;
  32. letter-spacing: 0.08em;
  33. }
  34. .teaching-caption h3 {
  35. font-size: 19px;
  36. line-height: 1.55;
  37. margin: 0 0 10px;
  38. }
  39. .teaching-caption p {
  40. color: #5b6980;
  41. font-size: 14px;
  42. margin: 0;
  43. line-height: 1.85;
  44. }
  45. .teaching-scroll {
  46. margin: 0;
  47. max-width: 100%;
  48. overflow-x: auto;
  49. overscroll-behavior-x: contain;
  50. scrollbar-width: thin;
  51. padding: 0 12px;
  52. }
  53. .teaching-row-guide {
  54. list-style: none;
  55. margin: 0;
  56. padding: 0 26px 18px;
  57. font-size: 13px;
  58. color: #56667e;
  59. }
  60. .teaching-row-guide li {
  61. display: flex;
  62. gap: 10px;
  63. margin-top: 6px;
  64. }
  65. .teaching-row-guide span {
  66. flex-shrink: 0;
  67. color: #2f6bff;
  68. font-weight: 600;
  69. }
  70. .teaching-scroll:focus-visible {
  71. outline: 2px solid var(--primary);
  72. outline-offset: -3px;
  73. }
  74. .teaching-svg {
  75. display: block;
  76. width: 100%;
  77. min-width: 780px;
  78. height: auto;
  79. font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
  80. }
  81. .teaching-lane {
  82. fill: #f6f9ff;
  83. stroke: #edf1f8;
  84. }
  85. .teaching-lane-secondary {
  86. fill: #fafbfc;
  87. }
  88. .teaching-row-title {
  89. fill: #56667e;
  90. font-size: 12px;
  91. font-weight: 500;
  92. }
  93. .teaching-node > rect:first-child {
  94. fill: #fff;
  95. stroke: #cbd9ef;
  96. stroke-width: 1.25;
  97. }
  98. .teaching-node .teaching-node-accent {
  99. fill: #4075d6;
  100. }
  101. .teaching-node-green > rect:first-child {
  102. fill: #f2fbf7;
  103. stroke: #aad7c5;
  104. }
  105. .teaching-node-green .teaching-node-accent {
  106. fill: #287b61;
  107. }
  108. .teaching-node-amber > rect:first-child {
  109. fill: #fffbf0;
  110. stroke: #e7cd8d;
  111. }
  112. .teaching-node-amber .teaching-node-accent {
  113. fill: #aa7b24;
  114. }
  115. .teaching-node-red > rect:first-child {
  116. fill: #fff6f4;
  117. stroke: #e6b4a9;
  118. }
  119. .teaching-node-red .teaching-node-accent {
  120. fill: #b4543f;
  121. }
  122. .teaching-node-neutral > rect:first-child {
  123. fill: #fafbfc;
  124. stroke: #d3dae4;
  125. }
  126. .teaching-node-title {
  127. fill: #253750;
  128. font-size: 15px;
  129. font-weight: 600;
  130. }
  131. .teaching-node-detail {
  132. fill: #586a82;
  133. font-size: 12px;
  134. }
  135. .teaching-edge {
  136. fill: none;
  137. stroke: #56759d;
  138. stroke-width: 1.7;
  139. stroke-linejoin: round;
  140. }
  141. .teaching-edge-async {
  142. stroke: #846521;
  143. stroke-dasharray: 6 4;
  144. }
  145. .teaching-edge-risk {
  146. stroke: #ae523e;
  147. stroke-dasharray: 3 3;
  148. }
  149. .teaching-arrow-sync {
  150. fill: #56759d;
  151. }
  152. .teaching-arrow-async {
  153. fill: #846521;
  154. }
  155. .teaching-arrow-risk {
  156. fill: #ae523e;
  157. }
  158. .teaching-edge-label {
  159. fill: #4d6381;
  160. font-size: 11px;
  161. paint-order: stroke;
  162. stroke: #fff;
  163. stroke-width: 5px;
  164. stroke-linejoin: round;
  165. }
  166. .teaching-edge-label-async {
  167. fill: #765a20;
  168. }
  169. .teaching-edge-label-risk {
  170. fill: #a04433;
  171. }
  172. .teaching-legend {
  173. display: flex;
  174. flex-wrap: wrap;
  175. gap: 8px 18px;
  176. padding: 0 26px 18px;
  177. color: #6a7890;
  178. font-size: 11px;
  179. line-height: 1.7;
  180. }
  181. .teaching-legend > span {
  182. display: inline-flex;
  183. align-items: center;
  184. gap: 7px;
  185. }
  186. .teaching-legend i {
  187. display: inline-block;
  188. width: 22px;
  189. border-top: 2px solid #56759d;
  190. }
  191. .teaching-legend .teaching-legend-async {
  192. border-top: 2px dashed #846521;
  193. }
  194. .teaching-legend .teaching-legend-risk {
  195. border-top: 2px dotted #ae523e;
  196. }
  197. .teaching-explanation {
  198. padding: 20px 26px 24px;
  199. border-top: 1px solid var(--border);
  200. }
  201. .teaching-explanation h4 {
  202. color: #2b405d;
  203. font-size: 14px;
  204. margin: 0 0 12px;
  205. }
  206. .teaching-explanation ol {
  207. list-style: decimal;
  208. margin: 0;
  209. padding-left: 23px;
  210. }
  211. .teaching-explanation li {
  212. padding-left: 4px;
  213. margin: 8px 0;
  214. color: #4c5c73;
  215. font-size: 14px;
  216. line-height: 1.95;
  217. }
  218. .teaching-explanation li::marker {
  219. color: #547dc2;
  220. font-weight: 600;
  221. }
  222. .teaching-misconception {
  223. border-left: 3px solid #d9ba78;
  224. background: #fffbf2;
  225. padding: 13px 16px;
  226. margin: 19px 0 0;
  227. color: #6f5c38;
  228. font-size: 13px;
  229. line-height: 1.9;
  230. }
  231. .teaching-misconception strong {
  232. display: block;
  233. margin-bottom: 3px;
  234. color: #896324;
  235. font-weight: 600;
  236. }
  237. .teaching-source {
  238. display: inline-block;
  239. margin-top: 15px;
  240. color: var(--primary);
  241. font-size: 12px;
  242. text-decoration: underline;
  243. text-underline-offset: 3px;
  244. }
  245. @media (max-width: 640px) {
  246. .teaching-caption,
  247. .teaching-explanation {
  248. padding: 18px;
  249. }
  250. .teaching-caption h3 {
  251. font-size: 17px;
  252. }
  253. .teaching-legend {
  254. padding: 0 18px 16px;
  255. }
  256. .teaching-scroll {
  257. padding: 0 6px;
  258. }
  259. }
  260. @media print {
  261. .teaching-scroll {
  262. overflow: visible;
  263. }
  264. .teaching-svg {
  265. min-width: 0;
  266. }
  267. .teaching-figure {
  268. break-inside: avoid;
  269. }
  270. }