styles.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. :root {
  2. --bg: #f8f1f4;
  3. --panel: #fff8fb;
  4. --panel-soft: #f5e8ef;
  5. --line: #d2b5c1;
  6. --text: #4e3844;
  7. --text-dim: #806673;
  8. --shadow: 0 12px 32px rgba(129, 78, 103, 0.14);
  9. --pending: #b9aab2;
  10. --in-progress: #d58ca8;
  11. --completed: #90bca2;
  12. --bug: #c98289;
  13. --link: #cfb8c3;
  14. --highlight: #f5dde8;
  15. }
  16. * {
  17. box-sizing: border-box;
  18. }
  19. html,
  20. body {
  21. margin: 0;
  22. padding: 0;
  23. min-height: 100%;
  24. background:
  25. radial-gradient(circle at 12% -10%, #fff6fb 0, transparent 36%),
  26. radial-gradient(circle at 80% 0, #f8eaf1 0, transparent 32%),
  27. var(--bg);
  28. color: var(--text);
  29. font-family: "LXGW WenKai", "Noto Sans SC", "Avenir Next", sans-serif;
  30. }
  31. .app-shell {
  32. display: flex;
  33. flex-direction: column;
  34. min-height: 100vh;
  35. gap: 18px;
  36. padding: 18px;
  37. }
  38. .top-bar {
  39. display: grid;
  40. grid-template-columns: 1.4fr 1fr auto;
  41. gap: 18px;
  42. align-items: end;
  43. background: linear-gradient(140deg, #fff8fb 0%, #f8ebf1 100%);
  44. border: 1px solid #edd8e3;
  45. border-radius: 20px;
  46. padding: 18px 20px;
  47. box-shadow: var(--shadow);
  48. }
  49. .brand-block h1 {
  50. margin: 0 0 6px;
  51. font-size: clamp(1.35rem, 2vw, 1.95rem);
  52. letter-spacing: 0.02em;
  53. }
  54. .brand-block p {
  55. margin: 0;
  56. color: var(--text-dim);
  57. font-size: 0.95rem;
  58. }
  59. .root-form {
  60. display: flex;
  61. flex-direction: column;
  62. gap: 8px;
  63. }
  64. .root-form label {
  65. font-size: 0.9rem;
  66. color: var(--text-dim);
  67. }
  68. .inline-group {
  69. display: flex;
  70. gap: 10px;
  71. }
  72. input,
  73. select,
  74. textarea,
  75. button {
  76. font: inherit;
  77. }
  78. input,
  79. select,
  80. textarea {
  81. border: 1px solid #d9bfcb;
  82. border-radius: 12px;
  83. background: #fff;
  84. color: var(--text);
  85. padding: 10px 12px;
  86. }
  87. input:focus,
  88. select:focus,
  89. textarea:focus {
  90. outline: 2px solid #f2cadb;
  91. outline-offset: 1px;
  92. }
  93. .btn {
  94. border: 1px solid #d4b1c0;
  95. border-radius: 12px;
  96. padding: 9px 12px;
  97. background: #fff5fa;
  98. color: var(--text);
  99. cursor: pointer;
  100. transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  101. }
  102. .btn:hover {
  103. transform: translateY(-1px);
  104. background: #ffeef6;
  105. border-color: #c895ab;
  106. }
  107. .btn:active {
  108. transform: translateY(0);
  109. }
  110. .btn-primary {
  111. background: linear-gradient(135deg, #df9db8 0%, #d48ca9 100%);
  112. color: #fff;
  113. border-color: #c8809d;
  114. }
  115. .btn-primary:hover {
  116. background: linear-gradient(135deg, #d78ea8 0%, #c87895 100%);
  117. }
  118. .btn-danger {
  119. background: #f8eaeb;
  120. border-color: #d49ea6;
  121. color: #8f4c56;
  122. }
  123. .toolbar-actions {
  124. display: grid;
  125. grid-template-columns: repeat(2, minmax(120px, 1fr));
  126. gap: 8px;
  127. }
  128. .board-layout {
  129. flex: 1;
  130. min-height: 0;
  131. display: grid;
  132. grid-template-columns: 300px minmax(0, 1fr);
  133. gap: 18px;
  134. }
  135. .side-panel {
  136. display: flex;
  137. flex-direction: column;
  138. gap: 12px;
  139. }
  140. .panel-card {
  141. background: var(--panel);
  142. border: 1px solid #ebd3df;
  143. border-radius: 16px;
  144. padding: 14px;
  145. box-shadow: 0 10px 22px rgba(126, 79, 104, 0.08);
  146. }
  147. .panel-card h2 {
  148. margin: 0 0 10px;
  149. font-size: 1rem;
  150. }
  151. .legend-list {
  152. margin: 0;
  153. padding: 0;
  154. list-style: none;
  155. display: grid;
  156. gap: 8px;
  157. }
  158. .legend-list li {
  159. display: flex;
  160. align-items: center;
  161. gap: 8px;
  162. font-size: 0.92rem;
  163. }
  164. .legend-dot {
  165. width: 12px;
  166. height: 12px;
  167. border-radius: 50%;
  168. }
  169. .legend-dot.pending {
  170. background: var(--pending);
  171. }
  172. .legend-dot.in-progress {
  173. background: var(--in-progress);
  174. }
  175. .legend-dot.completed {
  176. background: var(--completed);
  177. }
  178. .legend-dot.bug {
  179. background: var(--bug);
  180. }
  181. .stats-list {
  182. margin: 0;
  183. padding: 0;
  184. display: grid;
  185. gap: 7px;
  186. }
  187. .stats-list div {
  188. display: flex;
  189. justify-content: space-between;
  190. align-items: center;
  191. background: var(--panel-soft);
  192. padding: 8px 10px;
  193. border-radius: 11px;
  194. }
  195. .stats-list dt {
  196. font-size: 0.86rem;
  197. color: var(--text-dim);
  198. }
  199. .stats-list dd {
  200. margin: 0;
  201. font-size: 1rem;
  202. font-weight: 600;
  203. }
  204. .hint-card p {
  205. margin: 0;
  206. color: var(--text-dim);
  207. line-height: 1.45;
  208. font-size: 0.9rem;
  209. }
  210. .canvas-panel {
  211. min-height: 0;
  212. }
  213. .canvas-wrapper {
  214. width: 100%;
  215. height: 100%;
  216. min-height: 560px;
  217. background:
  218. linear-gradient(145deg, rgba(255, 245, 250, 0.95) 0%, rgba(248, 232, 239, 0.93) 100%);
  219. border: 1px solid #eacfdc;
  220. border-radius: 22px;
  221. box-shadow: var(--shadow);
  222. overflow: hidden;
  223. position: relative;
  224. touch-action: none;
  225. }
  226. #mindmapSvg {
  227. width: 100%;
  228. height: 100%;
  229. }
  230. .link-path {
  231. fill: none;
  232. stroke: var(--link);
  233. stroke-width: 2;
  234. opacity: 0.9;
  235. }
  236. .link-path.status-in-progress {
  237. stroke: #c98ea5;
  238. }
  239. .link-path.status-completed {
  240. stroke: #98bca7;
  241. }
  242. .link-path.status-bug {
  243. stroke: #c88f98;
  244. }
  245. .node-group {
  246. cursor: pointer;
  247. }
  248. .node-card {
  249. width: 250px;
  250. height: 94px;
  251. fill: #fff8fb;
  252. stroke: #dfc2cf;
  253. stroke-width: 1.4;
  254. filter: drop-shadow(0 10px 16px rgba(116, 75, 96, 0.12));
  255. }
  256. .node-group:hover .node-card {
  257. fill: #fff;
  258. stroke: #ce9cb2;
  259. }
  260. .node-group.selected .node-card {
  261. fill: var(--highlight);
  262. stroke: #b56d89;
  263. stroke-width: 2;
  264. }
  265. .node-status-dot {
  266. stroke: rgba(255, 255, 255, 0.9);
  267. stroke-width: 1;
  268. }
  269. .status-pending {
  270. fill: var(--pending);
  271. }
  272. .status-in-progress {
  273. fill: var(--in-progress);
  274. }
  275. .status-completed {
  276. fill: var(--completed);
  277. }
  278. .status-bug {
  279. fill: var(--bug);
  280. }
  281. .node-title {
  282. font-size: 15px;
  283. font-weight: 600;
  284. fill: var(--text);
  285. }
  286. .node-subtitle {
  287. font-size: 12px;
  288. fill: var(--text-dim);
  289. }
  290. .node-badge {
  291. fill: #f2e2ea;
  292. stroke: #dfc2cf;
  293. stroke-width: 1;
  294. }
  295. .node-badge-text {
  296. font-size: 10px;
  297. fill: #7a5d6a;
  298. }
  299. .progress-ring {
  300. fill: none;
  301. stroke: #cd8ea6;
  302. stroke-width: 2;
  303. stroke-dasharray: 6 5;
  304. animation: progressDash 1.2s linear infinite;
  305. }
  306. @keyframes progressDash {
  307. from {
  308. stroke-dashoffset: 0;
  309. }
  310. to {
  311. stroke-dashoffset: -44;
  312. }
  313. }
  314. .empty-state {
  315. fill: #7f6a74;
  316. font-size: 20px;
  317. }
  318. .modal {
  319. position: fixed;
  320. inset: 0;
  321. z-index: 80;
  322. display: grid;
  323. place-items: center;
  324. }
  325. .modal.hidden {
  326. display: none;
  327. }
  328. .modal-mask {
  329. position: absolute;
  330. inset: 0;
  331. background: rgba(84, 56, 71, 0.42);
  332. backdrop-filter: blur(2px);
  333. }
  334. .modal-card {
  335. position: relative;
  336. width: min(700px, calc(100vw - 28px));
  337. max-height: calc(100vh - 28px);
  338. overflow: auto;
  339. padding: 20px;
  340. background: #fff9fc;
  341. border: 1px solid #e8cada;
  342. border-radius: 18px;
  343. box-shadow: 0 24px 50px rgba(87, 53, 70, 0.28);
  344. }
  345. .modal-card h2 {
  346. margin: 0 0 12px;
  347. }
  348. .modal-close {
  349. position: absolute;
  350. top: 10px;
  351. right: 12px;
  352. width: 34px;
  353. height: 34px;
  354. border-radius: 50%;
  355. border: 1px solid #d2aabb;
  356. background: #fff;
  357. font-size: 20px;
  358. line-height: 1;
  359. cursor: pointer;
  360. color: #8a5f70;
  361. }
  362. .node-form {
  363. display: grid;
  364. gap: 12px;
  365. }
  366. .node-form label {
  367. display: grid;
  368. gap: 6px;
  369. font-size: 0.9rem;
  370. color: var(--text-dim);
  371. }
  372. .time-grid {
  373. display: grid;
  374. grid-template-columns: repeat(2, minmax(0, 1fr));
  375. gap: 10px;
  376. }
  377. .meta-row {
  378. display: flex;
  379. flex-wrap: wrap;
  380. gap: 8px 16px;
  381. font-size: 0.82rem;
  382. color: #8b6c7b;
  383. }
  384. .child-create {
  385. display: grid;
  386. grid-template-columns: 1fr auto;
  387. gap: 10px;
  388. }
  389. .modal-actions {
  390. display: flex;
  391. justify-content: space-between;
  392. gap: 10px;
  393. }
  394. @media (max-width: 1080px) {
  395. .top-bar {
  396. grid-template-columns: 1fr;
  397. align-items: stretch;
  398. }
  399. .board-layout {
  400. grid-template-columns: 1fr;
  401. }
  402. .side-panel {
  403. order: 2;
  404. }
  405. .canvas-panel {
  406. order: 1;
  407. }
  408. .canvas-wrapper {
  409. min-height: 68vh;
  410. }
  411. }
  412. @media (max-width: 680px) {
  413. .app-shell {
  414. padding: 10px;
  415. gap: 10px;
  416. }
  417. .inline-group,
  418. .child-create,
  419. .modal-actions {
  420. grid-template-columns: 1fr;
  421. display: grid;
  422. }
  423. .time-grid {
  424. grid-template-columns: 1fr;
  425. }
  426. .toolbar-actions {
  427. grid-template-columns: 1fr 1fr;
  428. }
  429. }