styles.css 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  1. :root {
  2. --ink: #1b2430;
  3. --muted: #5c6b7a;
  4. --line: #e2d9cc;
  5. --paper: #f6f1e8;
  6. --card: #fffdf8;
  7. --teal: #0e6e68;
  8. --teal-ink: #084843;
  9. --amber: #9a5b12;
  10. --red: #8f2d2d;
  11. --green: #1d6b45;
  12. --shadow: 0 10px 30px rgba(40, 32, 20, 0.06);
  13. font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  14. }
  15. * { box-sizing: border-box; }
  16. body { margin: 0; color: var(--ink); background: var(--paper); }
  17. button, input, select, textarea { font: inherit; color: inherit; }
  18. button { cursor: pointer; }
  19. h1, h2, h3, p { margin: 0; }
  20. .login {
  21. min-height: 100vh;
  22. display: grid;
  23. grid-template-columns: 320px 1fr;
  24. }
  25. .login-side {
  26. background: var(--teal-ink);
  27. color: #f3efe6;
  28. padding: 48px 36px;
  29. }
  30. .login-side h1 { font-size: 28px; font-weight: 650; letter-spacing: 0.04em; }
  31. .login-side p { margin-top: 16px; line-height: 1.7; color: #d5ebe8; }
  32. .login-main { padding: 40px 48px 64px; }
  33. .login-main h2 { font-size: 20px; font-weight: 640; }
  34. /* 身份选择:组织机构图,按层次排布,同层节点在同一水平线 */
  35. .org-chart { margin-top: 20px; overflow-x: auto; padding-bottom: 10px; }
  36. .org-chart ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 22px 0 0; position: relative; }
  37. .org-chart > ul { padding-top: 0; }
  38. .org-chart li { display: flex; flex-direction: column; align-items: center; position: relative; padding: 22px 4px 0; }
  39. /* 子节点上方的连接线:左右两段横线拼成本节点的横向挂线 */
  40. .org-chart li::before, .org-chart li::after {
  41. content: "";
  42. position: absolute;
  43. top: 0;
  44. right: 50%;
  45. width: 50%;
  46. height: 22px;
  47. border-top: 1px dashed #c8bca8;
  48. }
  49. .org-chart li::after { right: auto; left: 50%; border-left: 1px dashed #c8bca8; }
  50. /* 独子不需要横挂线,直接从父节点垂直落下 */
  51. .org-chart li:only-child { padding-top: 0; }
  52. .org-chart li:only-child::before, .org-chart li:only-child::after { display: none; }
  53. /* 行首行尾只保留朝向内侧的横线和落到本节点的竖线 */
  54. .org-chart li:first-child::before, .org-chart li:last-child::after { border: 0 none; }
  55. .org-chart li:last-child::before { border-right: 1px dashed #c8bca8; }
  56. .org-chart li:first-child::after, .org-chart li:last-child::before { border-radius: 4px 0 0 0; }
  57. /* 父卡片底部到横挂线之间的竖线 */
  58. .org-chart ul ul::before {
  59. content: "";
  60. position: absolute;
  61. top: 0;
  62. left: 50%;
  63. width: 0;
  64. height: 22px;
  65. border-left: 1px dashed #c8bca8;
  66. }
  67. /* 顶层(总运营)不挂线 */
  68. .org-chart > ul > li { padding-top: 0; }
  69. .org-chart > ul > li::before, .org-chart > ul > li::after { display: none; }
  70. .persona {
  71. text-align: left;
  72. background: var(--card);
  73. border: 1px solid var(--line);
  74. border-radius: 12px;
  75. padding: 14px 16px;
  76. box-shadow: var(--shadow);
  77. }
  78. /* 横向挂载组:团队子账号排在主账号右侧,短横虚线相连(宽度与 app.js 常量一致) */
  79. .org-side { display: flex; align-items: center; }
  80. .org-side-link { flex: none; width: 28px; border-top: 1px dashed #c8bca8; }
  81. /* 组织图内卡片紧凑档:收窄到 170px,配合整体缩放保证一屏看全 */
  82. .org-chart .persona { display: block; width: 170px; flex: none; padding: 10px 12px; }
  83. .org-chart .persona strong { font-size: 14px; }
  84. .org-chart .persona span { font-size: 12px; }
  85. .org-chart .persona .note, .org-chart .persona .brief { word-break: break-all; }
  86. .persona strong { display: block; font-size: 16px; }
  87. .persona span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
  88. .persona .brief { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: #46586a; }
  89. .persona:hover { border-color: var(--teal); }
  90. /* 左右两栏各自占满视口、各自滚动:侧栏自身不滚动,滚动只发生在菜单区,底部账号信息固定 */
  91. .shell { height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
  92. .nav {
  93. background: #172028;
  94. color: #e7e1d6;
  95. padding: 22px 14px;
  96. display: flex;
  97. flex-direction: column;
  98. gap: 4px;
  99. height: 100vh;
  100. overflow: hidden;
  101. }
  102. /* 侧栏定高后直接子项一律不参与 flex 收缩:.nav-sub 为折叠动画带 overflow:hidden,
  103. 自动最小尺寸为 0,被压缩时会裁掉组内末尾的菜单项(如「全部订阅」) */
  104. .nav > * { flex: none; }
  105. /* 菜单区独占剩余高度并独立滚动;菜单高于视口时给出可发现的细滚动条,避免被当成菜单缺失 */
  106. .nav-menu {
  107. flex: 1 1 auto;
  108. min-height: 0;
  109. overflow-y: auto;
  110. overscroll-behavior: contain;
  111. display: flex;
  112. flex-direction: column;
  113. gap: 4px;
  114. scrollbar-width: thin;
  115. scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  116. }
  117. .nav-menu > * { flex: none; }
  118. .nav-menu::-webkit-scrollbar { width: 8px; }
  119. .nav-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 4px; }
  120. .brand { padding: 0 8px 16px; font-weight: 650; letter-spacing: 0.06em; }
  121. .nav button {
  122. background: transparent;
  123. border: 0;
  124. color: inherit;
  125. text-align: left;
  126. border-radius: 8px;
  127. padding: 9px 10px;
  128. width: 100%;
  129. font-size: 14px;
  130. cursor: pointer;
  131. }
  132. .nav button.active, .nav button:hover { background: rgba(255, 255, 255, 0.08); }
  133. .nav .nav-group {
  134. font-size: 12px;
  135. letter-spacing: 0.08em;
  136. text-transform: uppercase;
  137. color: #8ea0a0;
  138. padding: 14px 10px 6px;
  139. cursor: pointer;
  140. display: flex;
  141. justify-content: space-between;
  142. align-items: center;
  143. user-select: none;
  144. }
  145. .nav .nav-group:hover { background: transparent; color: #c2d3d1; }
  146. .nav .nav-group .caret { font-size: 11px; transition: transform 0.18s ease; }
  147. .nav .nav-group.open .caret { transform: rotate(0deg); }
  148. .nav .nav-sub { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; }
  149. .nav .nav-sub.closed { display: none; }
  150. .nav .nav-sub .nav-leaf { font-size: 13.5px; color: #d1c8ba; padding: 7px 10px; }
  151. .nav .nav-sub .nav-leaf.active {
  152. background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  153. color: #fff;
  154. }
  155. .nav .who { margin-top: auto; padding: 12px 8px 0; font-size: 13px; color: #b7c4c2; line-height: 1.5; }
  156. .nav .who button { margin-top: 8px; border: 1px solid rgba(255,255,255,0.2); width: 100%; }
  157. .main { padding: 22px 28px 48px; min-width: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
  158. .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
  159. .top h1 { font-size: 22px; font-weight: 650; }
  160. .top p { color: var(--muted); margin-top: 4px; font-size: 13px; }
  161. .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  162. .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
  163. .card, .panel {
  164. background: var(--card);
  165. border: 1px solid var(--line);
  166. border-radius: 14px;
  167. box-shadow: var(--shadow);
  168. }
  169. .card { padding: 14px 16px; }
  170. .card b { display: block; font-size: 22px; margin-top: 4px; word-break: break-word; }
  171. .card span { color: var(--muted); font-size: 13px; }
  172. /* 未完成工单卡:数字用告警红,整卡可点开明细列表 */
  173. .card.alarm { cursor: pointer; }
  174. .card.alarm b { color: var(--red); }
  175. .card.alarm:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(143, 45, 45, 0.14); }
  176. /* 概览 KPI 卡:数值下方放历史曲线,曲线一律贴卡片底边对齐 */
  177. .cards.kpi { grid-auto-rows: 1fr; }
  178. .cards.kpi .card { display: flex; flex-direction: column; }
  179. .cards.kpi .num-row { margin-bottom: 10px; }
  180. .cards.kpi .num-row b { flex: none; font-size: 27px; }
  181. .cards.kpi .spark { display: block; flex: none; width: 100%; height: 34px; margin: auto 0 0; overflow: visible; }
  182. .spark-line { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  183. .spark-area { fill: var(--teal); opacity: 0.09; stroke: none; }
  184. .card.alarm .spark-line { stroke: var(--red); }
  185. .card.alarm .spark-area { fill: var(--red); }
  186. /* 数值行:未完成工单卡在总数右侧显示待处理 / 处理中拆分数 */
  187. .num-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  188. /* 选择器带上 .cards.kpi 前缀,避免被上面的 .card span 规则把字号改回 13px */
  189. .cards.kpi .num-split { font-size: 12px; line-height: 1.15; text-align: right; }
  190. .cards.kpi .num-split i { font-style: normal; opacity: 0.72; margin-right: 4px; }
  191. .panel { padding: 16px 18px; margin-bottom: 14px; overflow-x: auto; min-width: 0; }
  192. .panel h2 { font-size: 16px; margin-bottom: 10px; }
  193. .panel > .note { margin-top: 8px; }
  194. table { width: 100%; border-collapse: collapse; font-size: 14px; }
  195. th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
  196. td.wrap { white-space: normal; min-width: 240px; }
  197. th { color: var(--muted); font-weight: 550; font-size: 12px; }
  198. tr.clickable { cursor: pointer; }
  199. tr.clickable:hover { background: #f3efe6; }
  200. .pill {
  201. display: inline-block;
  202. border-radius: 999px;
  203. padding: 2px 8px;
  204. font-size: 12px;
  205. background: #efe7da;
  206. white-space: nowrap;
  207. }
  208. .pill.ok { background: #e5f4ea; color: var(--green); }
  209. .pill.wait { background: #fff1d6; color: var(--amber); }
  210. .pill.bad { background: #fde8e4; color: var(--red); }
  211. .pill.run { background: #e5f3f2; color: var(--teal-ink); }
  212. .btn, .btn.ghost {
  213. border-radius: 8px;
  214. padding: 7px 12px;
  215. border: 1px solid var(--teal);
  216. background: var(--teal);
  217. color: white;
  218. white-space: nowrap;
  219. }
  220. .btn.ghost { background: transparent; color: var(--teal-ink); }
  221. .btn.warn { background: var(--red); border-color: var(--red); }
  222. .btn:disabled { opacity: 0.45; cursor: not-allowed; }
  223. label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
  224. input, select, textarea {
  225. width: 100%;
  226. max-width: 420px;
  227. border: 1px solid var(--line);
  228. background: white;
  229. border-radius: 8px;
  230. padding: 8px 10px;
  231. }
  232. input[type="checkbox"], input[type="radio"] { width: auto; max-width: none; margin: 0; }
  233. td select, .row select { width: auto; min-width: 96px; max-width: 200px; }
  234. .row input { width: auto; }
  235. textarea { min-height: 88px; max-width: 560px; }
  236. .form-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
  237. /* 多列表单 */
  238. .form-grid {
  239. display: grid;
  240. grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  241. gap: 0 18px;
  242. }
  243. .form-grid label { margin-top: 8px; }
  244. /* 必填项标记:字段名后的红色星号 */
  245. .req { color: #c0392b; margin-left: 2px; font-weight: 700; }
  246. /* 校验未通过:已填内容整体保留、弹窗不重置,只红显有问题的编辑项并在字段下写原因 */
  247. .f-bad > label { color: var(--red); }
  248. .f-bad input, .f-bad select { border-color: var(--red); box-shadow: 0 0 0 2px rgba(143, 45, 45, 0.12); }
  249. .f-err { display: block; margin-top: 3px; font-size: 12px; color: var(--red); }
  250. .form-grid .form-actions { grid-column: 1 / -1; }
  251. /* 上 / 下行带宽:独占一行,两个输入框在行内水平排布(窄弹窗单列时也不会溢出) */
  252. .form-grid .bw-pair {
  253. grid-column: 1 / -1;
  254. display: grid;
  255. grid-template-columns: 1fr 1fr;
  256. gap: 0 12px;
  257. }
  258. /* 开关(二态表单):checkbox 隐藏,用 .track 画滑块 */
  259. label.switch {
  260. display: inline-flex;
  261. align-items: center;
  262. gap: 8px;
  263. cursor: pointer;
  264. margin: 8px 0 4px;
  265. min-height: 38px;
  266. font-size: 13px;
  267. color: var(--muted);
  268. }
  269. label.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
  270. label.switch .track {
  271. flex: none;
  272. width: 40px;
  273. height: 22px;
  274. border-radius: 999px;
  275. background: #cfc8ba;
  276. position: relative;
  277. transition: background 180ms ease;
  278. }
  279. label.switch .track::after {
  280. content: "";
  281. position: absolute;
  282. top: 3px;
  283. left: 3px;
  284. width: 16px;
  285. height: 16px;
  286. border-radius: 50%;
  287. background: #fff;
  288. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  289. transition: transform 180ms ease;
  290. }
  291. label.switch input:checked + .track { background: var(--teal-ink); }
  292. label.switch input:checked + .track::after { transform: translateX(18px); }
  293. label.switch input:disabled + .track { opacity: 0.45; cursor: not-allowed; }
  294. /* 对象存储键列表 / 材料列表 */
  295. ul.files {
  296. margin: 8px 0 0;
  297. padding: 0;
  298. list-style: none;
  299. }
  300. ul.files li {
  301. padding: 6px 10px;
  302. background: #f7f2e8;
  303. border: 1px solid var(--line);
  304. border-radius: 8px;
  305. margin-bottom: 6px;
  306. font-size: 13px;
  307. word-break: break-all;
  308. }
  309. /* 复选列表(成员范围、客户直选) */
  310. .checklist {
  311. display: grid;
  312. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  313. gap: 2px 18px;
  314. margin-top: 6px;
  315. }
  316. label.ck {
  317. display: flex;
  318. align-items: center;
  319. gap: 7px;
  320. font-size: 14px;
  321. font-weight: normal;
  322. color: var(--ink);
  323. margin: 4px 0;
  324. line-height: 1.5;
  325. }
  326. label.ck .note { font-weight: normal; }
  327. /* 区域树 */
  328. ul.tree {
  329. list-style: none;
  330. margin: 0;
  331. padding: 0;
  332. }
  333. ul.tree ul.tree { padding-left: 24px; }
  334. .tree-node {
  335. display: flex;
  336. align-items: center;
  337. gap: 8px;
  338. padding: 2px 0;
  339. }
  340. .tree-select {
  341. background: transparent;
  342. border: 1px solid transparent;
  343. border-radius: 8px;
  344. padding: 5px 10px;
  345. color: var(--ink);
  346. }
  347. .tree-select:hover { background: #f3efe6; }
  348. .tree-node.on .tree-select {
  349. background: var(--teal);
  350. border-color: var(--teal);
  351. color: #fff;
  352. }
  353. .lv {
  354. font-size: 12px;
  355. color: var(--teal-ink);
  356. background: #e5f3f2;
  357. border-radius: 6px;
  358. padding: 1px 7px;
  359. white-space: nowrap;
  360. }
  361. .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }
  362. /* 范围配置里的勾选树 */
  363. ul.tree.check label.ck { margin: 5px 0; }
  364. ul.tree.check ul.tree { margin: 2px 0; }
  365. .note { color: var(--muted); font-size: 13px; line-height: 1.6; }
  366. .alert {
  367. background: #fff4ec;
  368. border: 1px solid #f0d2bc;
  369. color: #7a3e12;
  370. border-radius: 12px;
  371. padding: 10px 12px;
  372. margin-bottom: 12px;
  373. font-size: 14px;
  374. line-height: 1.6;
  375. }
  376. .toast {
  377. position: fixed;
  378. right: 20px;
  379. bottom: 20px;
  380. background: var(--ink);
  381. color: white;
  382. padding: 12px 14px;
  383. border-radius: 10px;
  384. max-width: 320px;
  385. box-shadow: var(--shadow);
  386. font-size: 14px;
  387. line-height: 1.5;
  388. }
  389. .split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; align-items: start; }
  390. .log { margin: 0; padding-left: 18px; color: var(--muted); }
  391. .log li { margin: 4px 0; line-height: 1.6; }
  392. @media (max-width: 900px) {
  393. .login, .shell, .split { grid-template-columns: 1fr; }
  394. .login-side { padding: 28px 22px; }
  395. /* 窄屏单列:回到整页滚动,不锁两栏各自的高度与滚动条 */
  396. .shell { height: auto; }
  397. .nav, .nav-menu, .main { height: auto; overflow: visible; overscroll-behavior: auto; }
  398. }
  399. /* ================= 交互与视觉增强 ================= */
  400. /* 全局过渡基类,给常见可交互元素 */
  401. button, .card, .panel, tr.clickable, .tree-select, label.ck {
  402. transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease;
  403. }
  404. input, select, textarea { transition: border-color 180ms ease, box-shadow 180ms ease; }
  405. /* 侧栏:折叠子菜单过渡(用 max-height 替代 display:none) */
  406. .nav .nav-sub { overflow: hidden; transition: max-height 220ms ease, opacity 220ms ease; max-height: 600px; opacity: 1; }
  407. .nav .nav-sub.closed { max-height: 0; opacity: 0; }
  408. /* 侧栏叶子按钮活跃态:左侧竖条 + 更强对比 */
  409. .nav .nav-sub .nav-leaf.active {
  410. position: relative;
  411. background: rgba(14, 110, 104, 0.22);
  412. color: #fff;
  413. padding-left: 14px;
  414. }
  415. .nav .nav-sub .nav-leaf.active::before {
  416. content: "";
  417. position: absolute; left: -12px; top: 4px; bottom: 4px; width: 3px;
  418. background: #19d0c0; border-radius: 2px;
  419. }
  420. .nav .nav-sub .nav-leaf:hover { color: #fff; background: rgba(255,255,255,0.06); }
  421. /* 顶层叶子按钮(如"概览""审计日志")活跃态 */
  422. .nav > button.nav-leaf.active {
  423. background: rgba(14, 110, 104, 0.22);
  424. color: #fff;
  425. }
  426. /* 折叠 caret 旋转 */
  427. .nav .nav-group .caret { transform: rotate(-90deg); }
  428. .nav .nav-group.open .caret { transform: rotate(0deg); }
  429. /* 按钮:focus-visible + 按下态 */
  430. .btn:focus-visible, button:focus-visible,
  431. .persona:focus-visible, .tree-select:focus-visible {
  432. outline: 2px solid var(--teal);
  433. outline-offset: 2px;
  434. }
  435. .btn:active { transform: translateY(1px); }
  436. /* 表格:thead 底线 + hover 高亮 + 斑马纹 */
  437. table { border-radius: 10px; overflow: hidden; }
  438. thead th {
  439. background: #faf4e8;
  440. border-bottom: 2px solid var(--line);
  441. padding: 10px 10px;
  442. position: sticky; top: 0; z-index: 1;
  443. }
  444. tbody tr:nth-child(even) td { background: #fbf7ee; }
  445. tbody tr.clickable:hover td, tbody tr:hover td {
  446. background: #f0e8d6 !important;
  447. }
  448. /* 套餐目录:用途分类分组小标题行 */
  449. tbody tr.grp td {
  450. background: #f2ece0 !important;
  451. border-bottom: 1px solid var(--line);
  452. padding: 7px 10px;
  453. font-weight: 640;
  454. color: var(--teal-ink);
  455. white-space: nowrap;
  456. }
  457. tbody tr.grp td span {
  458. margin-left: 10px;
  459. font-weight: 400;
  460. font-size: 12px;
  461. color: var(--muted);
  462. }
  463. /* 表单 focus glow */
  464. input:focus, select:focus, textarea:focus {
  465. border-color: var(--teal);
  466. box-shadow: 0 0 0 3px rgba(14, 110, 104, 0.14);
  467. outline: none;
  468. }
  469. /* panel / card 入场动画 */
  470. @keyframes fadeInUp {
  471. from { opacity: 0; transform: translateY(6px); }
  472. to { opacity: 1; transform: none; }
  473. }
  474. .panel, .card, .alert, .persona { animation: fadeInUp 300ms ease both; }
  475. .panel:nth-child(2) { animation-delay: 40ms; }
  476. .panel:nth-child(3) { animation-delay: 80ms; }
  477. .panel:nth-child(4) { animation-delay: 120ms; }
  478. /* toast 滑入 */
  479. .toast {
  480. animation: slideInRight 280ms ease both;
  481. }
  482. @keyframes slideInRight {
  483. from { opacity: 0; transform: translateX(24px); }
  484. to { opacity: 1; transform: none; }
  485. }
  486. /* 登录 persona 悬停抬升 */
  487. .persona { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
  488. .persona:hover {
  489. transform: translateY(-2px);
  490. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  491. border-color: var(--teal);
  492. }
  493. /* webkit 滚动条 */
  494. ::-webkit-scrollbar { width: 10px; height: 10px; }
  495. ::-webkit-scrollbar-track { background: transparent; }
  496. ::-webkit-scrollbar-thumb { background: #d7ccba; border-radius: 5px; }
  497. ::-webkit-scrollbar-thumb:hover { background: #b9ac95; }
  498. .panel::-webkit-scrollbar-thumb { background: #d7ccba; }
  499. /* pill hover 微动(可交互的情况下) */
  500. .pill { cursor: default; }
  501. /* 区域树选中节点加 glow */
  502. .tree-node.on .tree-select {
  503. box-shadow: 0 0 0 2px rgba(14,110,104,0.2);
  504. }
  505. /* 区域树操作菜单 */
  506. .tree-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; }
  507. .tree-head h2 { margin: 0; }
  508. .tree-node { position: relative; }
  509. .node-menu-btn {
  510. background: transparent; border: 1px solid transparent; border-radius: 6px;
  511. color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1;
  512. padding: 3px 7px; margin-left: 2px;
  513. }
  514. .node-menu-btn:hover { background: #efe7da; color: var(--ink); }
  515. .tree-node.on .node-menu-btn { color: #fff; }
  516. .tree-node.on .node-menu-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
  517. .node-menu {
  518. position: absolute; top: 100%; left: 0; z-index: 30;
  519. background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  520. box-shadow: 0 12px 32px rgba(40, 32, 20, 0.16);
  521. padding: 4px; min-width: 176px;
  522. display: flex; flex-direction: column; gap: 2px;
  523. }
  524. .node-menu button {
  525. text-align: left; background: transparent; border: 0; border-radius: 7px;
  526. padding: 7px 10px; font-size: 13.5px;
  527. }
  528. .node-menu button:hover { background: #f3efe6; }
  529. .node-menu button.danger { color: var(--red); }
  530. .node-menu button.danger:hover { background: #fde8e4; }
  531. /* 区域树面板:不裁剪溢出内容,保证节点下拉菜单完整显示 */
  532. .panel.uncut { overflow: visible; }
  533. /* 区域管理页:主区纵向铺满视口,左右两栏拉伸到底,区域树底部与窗口底部对齐 */
  534. .main.stretch { display: flex; flex-direction: column; padding-bottom: 22px; }
  535. .main.stretch .top { flex: none; }
  536. .main.stretch .region-split { flex: 1 1 auto; align-items: stretch; }
  537. .main.stretch .region-split > .panel.uncut { display: flex; flex-direction: column; }
  538. .main.stretch .region-split > .panel.uncut > ul.tree { flex: 1 1 auto; }
  539. .icon-btn {
  540. background: transparent; border: 1px solid var(--line); border-radius: 7px;
  541. color: var(--muted); font-size: 14px; line-height: 1;
  542. padding: 5px 8px; margin-left: 6px;
  543. }
  544. .icon-btn:hover { background: #efe7da; color: var(--ink); }
  545. .icon-btn.danger:hover { background: #fde8e4; color: var(--red); }
  546. /* 套餐目录操作列:编辑与删除用图标按钮,同一行水平排列不折行;引用提示另起一行 */
  547. .pkg-ops { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
  548. .pkg-ops .icon-btn { margin-left: 0; }
  549. /* 区域详情卡片标题旁的"被引用"小标签:随标题行内显示,不占独立高度 */
  550. .ref-tag {
  551. display: inline-block; vertical-align: 2px; margin-left: 8px;
  552. font-size: 12px; font-weight: 500; color: var(--red);
  553. background: #fde8e4; border-radius: 6px; padding: 2px 7px; cursor: help;
  554. }
  555. /* 弹窗 */
  556. .modal-overlay {
  557. position: fixed; inset: 0; z-index: 50;
  558. background: rgba(23, 32, 40, 0.45);
  559. display: flex; align-items: center; justify-content: center;
  560. padding: 20px;
  561. animation: fadeIn 160ms ease both;
  562. }
  563. @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  564. .modal {
  565. background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  566. padding: 20px 22px; width: 100%; max-width: 480px;
  567. box-shadow: 0 20px 60px rgba(20, 16, 10, 0.28);
  568. }
  569. .modal h3 { font-size: 17px; margin-bottom: 10px; }
  570. .modal label { margin-top: 2px; }
  571. .modal input, .modal select { max-width: 100%; }
  572. /* 字段较多的新增/编辑表单(客户档案、订阅)用宽弹窗 */
  573. .modal.wide { max-width: 760px; }
  574. /* 新增客户字段最多(含客户主账号),再加宽一档 */
  575. .modal.wider { max-width: 980px; }
  576. /* 加宽后表单最小列宽同步提高,保证每行最多三列(窄屏仍自动降为两列/单列) */
  577. .modal.wider .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  578. .modal .form-grid { gap: 0 16px; }
  579. /* 标题右侧问号提示:悬停或聚焦时弹出说明文字 */
  580. .q-tip {
  581. position: relative;
  582. display: inline-flex;
  583. align-items: center;
  584. justify-content: center;
  585. width: 18px;
  586. height: 18px;
  587. margin-left: 8px;
  588. border-radius: 50%;
  589. border: 1px solid var(--line);
  590. background: #f3eee4;
  591. color: var(--muted);
  592. font-size: 12px;
  593. font-weight: 600;
  594. cursor: help;
  595. vertical-align: 2px;
  596. }
  597. .q-tip .q-tip-pop {
  598. display: none;
  599. position: absolute;
  600. top: 24px;
  601. left: -10px;
  602. width: 320px;
  603. padding: 10px 12px;
  604. background: #2f2a22;
  605. color: #fff;
  606. font-size: 12px;
  607. font-weight: 400;
  608. line-height: 1.6;
  609. text-align: left;
  610. border-radius: 8px;
  611. z-index: 30;
  612. box-shadow: 0 8px 24px rgba(20, 16, 10, 0.25);
  613. }
  614. .q-tip:hover .q-tip-pop, .q-tip:focus .q-tip-pop, .q-tip.open .q-tip-pop { display: block; }
  615. /* 表头里的问号:单元格是 nowrap,弹层要单独允许换行;靠右的列让弹层向左展开,
  616. 否则会被 .panel 的横向滚动裁掉(overflow-x:auto 同时会裁掉纵向溢出) */
  617. th .q-tip-pop { white-space: normal; }
  618. .q-tip.pop-right .q-tip-pop { left: auto; right: -6px; }
  619. /* 初始密码:输入框与「自动生成」按钮同行,等宽字体便于分辨易混字符 */
  620. .pwd-row { display: flex; align-items: center; gap: 8px; }
  621. .pwd-row input {
  622. flex: 1; min-width: 0; max-width: none;
  623. font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px;
  624. }
  625. .pwd-row input.flash { animation: pwdFlash 520ms ease both; }
  626. @keyframes pwdFlash { from { background: #dff3ef; border-color: var(--teal); } to { background: white; border-color: var(--line); } }
  627. /* 新增档案时一并开通登录账号:可选区块,左侧色条把「登录名—初始密码—手机号」归为一组,
  628. 浅底与卡片底色区分,表明这几项不是档案必填内容(都留空即只建档案) */
  629. .acct-new {
  630. margin-top: 12px;
  631. padding: 10px 12px 8px;
  632. border: 1px solid var(--line);
  633. border-left: 3px solid var(--teal);
  634. border-radius: 10px;
  635. background: #fbf7ef;
  636. }
  637. .acct-new .note { margin-top: 6px; }
  638. /* 成员负责范围:下拉多选树。收起时是一行选择框,展开后浮层内是区域—客户勾选树,区域可整块勾选 */
  639. .scope-pick { position: relative; margin-top: 6px; }
  640. .scope-pick-btn {
  641. width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  642. padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  643. background: var(--card); font-size: 14px; text-align: left;
  644. transition: border-color 160ms ease;
  645. }
  646. .scope-pick-btn:hover, .scope-pick.open .scope-pick-btn { border-color: var(--teal); }
  647. .scope-pick-text {
  648. flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  649. color: var(--muted);
  650. }
  651. .scope-pick-caret { color: var(--muted); font-size: 12px; transition: transform 160ms ease; }
  652. .scope-pick.open .scope-pick-caret { transform: rotate(180deg); }
  653. .scope-pick-pop {
  654. display: none; position: absolute; z-index: 6; left: 0; right: 0; margin-top: 6px;
  655. padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  656. box-shadow: 0 14px 34px rgba(40, 32, 20, 0.16);
  657. }
  658. .scope-pick.open .scope-pick-pop { display: block; animation: fadeIn 140ms ease both; }
  659. .scope-pick-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  660. .scope-pick-bar .note { margin-left: auto; }
  661. .scope-pick-scroll { max-height: 250px; overflow: auto; }
  662. ul.tree .sp-region { font-weight: 600; }
  663. ul.tree .sp-region, ul.tree .sp-ent { margin: 3px 0; }
  664. /* 导出激活码弹窗:区域范围勾选树在弹窗内直接展开(勾选父节点即整块勾选其下级) */
  665. .ex-tree {
  666. max-height: 262px; overflow: auto; margin: 0 0 12px;
  667. padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbf7ef;
  668. }
  669. .ex-tree ul.tree { margin: 2px 0; }
  670. .ex-tree label.ck { font-weight: normal; }
  671. /* 工单流程:状态筛选 tabs */
  672. .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  673. .tab {
  674. display: inline-flex; align-items: center; gap: 6px;
  675. border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  676. padding: 6px 14px; font-size: 13px; color: var(--muted);
  677. transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  678. }
  679. .tab b { font-size: 12px; color: inherit; opacity: 0.75; }
  680. .tab:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-1px); }
  681. .tab.active { background: var(--teal-ink); border-color: var(--teal-ink); color: #f3efe6; }
  682. .tab.active b { opacity: 0.9; }
  683. /* 运维团队:tab 与「开通运维团队」按钮同行,tab 在左按钮在右 */
  684. .team-tabs { justify-content: space-between; margin-bottom: 14px; }
  685. .panel-sub { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
  686. /* 某类型尚未开通团队时的空白 tab 页:虚线空态 + 居中开通入口 */
  687. .team-empty {
  688. display: flex; flex-direction: column; align-items: center; gap: 4px;
  689. padding: 46px 18px; border: 1px dashed #d3c6b3; background: transparent;
  690. }
  691. .team-empty-title { font-size: 15px; color: var(--ink); }
  692. .team-empty .note { max-width: 540px; margin-bottom: 10px; }
  693. /* 工单流程:状态流转指示 */
  694. .flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
  695. .fstep {
  696. display: inline-flex; align-items: center;
  697. border: 1px solid var(--line); border-radius: 999px;
  698. padding: 3px 12px; font-size: 12px; color: var(--muted); background: var(--card);
  699. }
  700. .fstep.done { border-color: #bcd9c8; color: var(--green); background: #e5f4ea; }
  701. .fstep.now { border-color: var(--teal); color: var(--teal-ink); background: #e5f3f2; font-weight: 600; }
  702. .fstep.bad { border-color: #eac4bc; color: var(--red); background: #fde8e4; }
  703. .farrow { color: var(--muted); font-size: 12px; }
  704. .fstep.clickable {
  705. cursor: pointer; border-style: dashed; border-color: var(--teal); color: var(--teal-ink);
  706. transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  707. }
  708. .fstep.clickable:hover {
  709. transform: translateY(-1px);
  710. background: #eef7f5;
  711. box-shadow: 0 0 0 2px rgba(14, 110, 104, 0.15);
  712. }
  713. /* ===== 区域管理:概况卡片 + 钻取列表 ===== */
  714. /* 右栏允许收缩到 fr 份额以内,宽表格在 panel 内部横向滚动,避免挤压左侧区域树 */
  715. .region-over { min-height: 0; min-width: 0; }
  716. .ov-grid {
  717. display: grid;
  718. grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  719. gap: 14px;
  720. align-content: start;
  721. }
  722. button.ov-card {
  723. text-align: left;
  724. width: 100%;
  725. display: flex;
  726. flex-direction: column;
  727. gap: 6px;
  728. cursor: pointer;
  729. border: 1px solid var(--line);
  730. }
  731. button.ov-card:hover {
  732. border-color: var(--teal);
  733. transform: translateY(-2px);
  734. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  735. }
  736. .ov-card .ov-title { color: var(--muted); font-size: 13.5px; }
  737. .ov-card b { font-size: 30px; margin: 2px 0; line-height: 1.1; word-break: break-word; }
  738. .ov-card .ov-sub { color: var(--muted); font-size: 12.5px; line-height: 1.55; min-height: 36px; }
  739. .ov-card .ov-go { color: var(--teal-ink); font-size: 12.5px; margin-top: 2px; }
  740. .ov-head .row { margin-bottom: 2px; }
  741. /* 危险色 ghost 按钮 */
  742. .btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
  743. .btn.danger:hover { background: #fde8e4; }
  744. /* 概况卡片与右侧钻取视图入场动画(保持既有动效) */
  745. .ov-card { animation: fadeInUp 300ms ease both; }
  746. /* 列表筛选条:区域/付款周期下拉框与名称文本框排在表头上方,底部对齐 */
  747. .filters {
  748. display: flex;
  749. flex-wrap: wrap;
  750. gap: 10px 16px;
  751. align-items: flex-end;
  752. margin: 6px 0 12px;
  753. }
  754. .filters .f-item label { margin: 0 0 4px; }
  755. .filters .f-item select,
  756. .filters .f-item input { width: auto; min-width: 200px; max-width: 320px; }