styles.css 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  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. .shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
  91. .nav {
  92. background: #172028;
  93. color: #e7e1d6;
  94. padding: 22px 14px;
  95. display: flex;
  96. flex-direction: column;
  97. gap: 4px;
  98. }
  99. .brand { padding: 0 8px 16px; font-weight: 650; letter-spacing: 0.06em; }
  100. .nav button {
  101. background: transparent;
  102. border: 0;
  103. color: inherit;
  104. text-align: left;
  105. border-radius: 8px;
  106. padding: 9px 10px;
  107. width: 100%;
  108. font-size: 14px;
  109. cursor: pointer;
  110. }
  111. .nav button.active, .nav button:hover { background: rgba(255, 255, 255, 0.08); }
  112. .nav .nav-group {
  113. font-size: 12px;
  114. letter-spacing: 0.08em;
  115. text-transform: uppercase;
  116. color: #8ea0a0;
  117. padding: 14px 10px 6px;
  118. cursor: pointer;
  119. display: flex;
  120. justify-content: space-between;
  121. align-items: center;
  122. user-select: none;
  123. }
  124. .nav .nav-group:hover { background: transparent; color: #c2d3d1; }
  125. .nav .nav-group .caret { font-size: 11px; transition: transform 0.18s ease; }
  126. .nav .nav-group.open .caret { transform: rotate(0deg); }
  127. .nav .nav-sub { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; }
  128. .nav .nav-sub.closed { display: none; }
  129. .nav .nav-sub .nav-leaf { font-size: 13.5px; color: #d1c8ba; padding: 7px 10px; }
  130. .nav .nav-sub .nav-leaf.active {
  131. background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  132. color: #fff;
  133. }
  134. .nav .who { margin-top: auto; padding: 12px 8px 0; font-size: 13px; color: #b7c4c2; line-height: 1.5; }
  135. .nav .who button { margin-top: 8px; border: 1px solid rgba(255,255,255,0.2); width: 100%; }
  136. .main { padding: 22px 28px 48px; min-width: 0; }
  137. .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
  138. .top h1 { font-size: 22px; font-weight: 650; }
  139. .top p { color: var(--muted); margin-top: 4px; font-size: 13px; }
  140. .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  141. .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
  142. .card, .panel {
  143. background: var(--card);
  144. border: 1px solid var(--line);
  145. border-radius: 14px;
  146. box-shadow: var(--shadow);
  147. }
  148. .card { padding: 14px 16px; }
  149. .card b { display: block; font-size: 22px; margin-top: 4px; word-break: break-word; }
  150. .card span { color: var(--muted); font-size: 13px; }
  151. /* 未完成工单卡:数字用告警红,整卡可点开明细列表 */
  152. .card.alarm { cursor: pointer; }
  153. .card.alarm b { color: var(--red); }
  154. .card.alarm:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(143, 45, 45, 0.14); }
  155. /* 概览 KPI 卡:数值下方放历史曲线,曲线一律贴卡片底边对齐 */
  156. .cards.kpi { grid-auto-rows: 1fr; }
  157. .cards.kpi .card { display: flex; flex-direction: column; }
  158. .cards.kpi .num-row { margin-bottom: 10px; }
  159. .cards.kpi .num-row b { flex: none; font-size: 27px; }
  160. .cards.kpi .spark { display: block; flex: none; width: 100%; height: 34px; margin: auto 0 0; overflow: visible; }
  161. .spark-line { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  162. .spark-area { fill: var(--teal); opacity: 0.09; stroke: none; }
  163. .card.alarm .spark-line { stroke: var(--red); }
  164. .card.alarm .spark-area { fill: var(--red); }
  165. /* 数值行:未完成工单卡在总数右侧显示待处理 / 处理中拆分数 */
  166. .num-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  167. /* 选择器带上 .cards.kpi 前缀,避免被上面的 .card span 规则把字号改回 13px */
  168. .cards.kpi .num-split { font-size: 12px; line-height: 1.15; text-align: right; }
  169. .cards.kpi .num-split i { font-style: normal; opacity: 0.72; margin-right: 4px; }
  170. .panel { padding: 16px 18px; margin-bottom: 14px; overflow-x: auto; min-width: 0; }
  171. .panel h2 { font-size: 16px; margin-bottom: 10px; }
  172. .panel > .note { margin-top: 8px; }
  173. table { width: 100%; border-collapse: collapse; font-size: 14px; }
  174. th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
  175. td.wrap { white-space: normal; min-width: 240px; }
  176. th { color: var(--muted); font-weight: 550; font-size: 12px; }
  177. tr.clickable { cursor: pointer; }
  178. tr.clickable:hover { background: #f3efe6; }
  179. .pill {
  180. display: inline-block;
  181. border-radius: 999px;
  182. padding: 2px 8px;
  183. font-size: 12px;
  184. background: #efe7da;
  185. white-space: nowrap;
  186. }
  187. .pill.ok { background: #e5f4ea; color: var(--green); }
  188. .pill.wait { background: #fff1d6; color: var(--amber); }
  189. .pill.bad { background: #fde8e4; color: var(--red); }
  190. .pill.run { background: #e5f3f2; color: var(--teal-ink); }
  191. .btn, .btn.ghost {
  192. border-radius: 8px;
  193. padding: 7px 12px;
  194. border: 1px solid var(--teal);
  195. background: var(--teal);
  196. color: white;
  197. white-space: nowrap;
  198. }
  199. .btn.ghost { background: transparent; color: var(--teal-ink); }
  200. .btn.warn { background: var(--red); border-color: var(--red); }
  201. .btn:disabled { opacity: 0.45; cursor: not-allowed; }
  202. label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
  203. input, select, textarea {
  204. width: 100%;
  205. max-width: 420px;
  206. border: 1px solid var(--line);
  207. background: white;
  208. border-radius: 8px;
  209. padding: 8px 10px;
  210. }
  211. input[type="checkbox"], input[type="radio"] { width: auto; max-width: none; margin: 0; }
  212. td select, .row select { width: auto; min-width: 96px; max-width: 200px; }
  213. .row input { width: auto; }
  214. textarea { min-height: 88px; max-width: 560px; }
  215. .form-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
  216. /* 多列表单 */
  217. .form-grid {
  218. display: grid;
  219. grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  220. gap: 0 18px;
  221. }
  222. .form-grid label { margin-top: 8px; }
  223. .form-grid .form-actions { grid-column: 1 / -1; }
  224. /* 对象存储键列表 / 材料列表 */
  225. ul.files {
  226. margin: 8px 0 0;
  227. padding: 0;
  228. list-style: none;
  229. }
  230. ul.files li {
  231. padding: 6px 10px;
  232. background: #f7f2e8;
  233. border: 1px solid var(--line);
  234. border-radius: 8px;
  235. margin-bottom: 6px;
  236. font-size: 13px;
  237. word-break: break-all;
  238. }
  239. /* 复选列表(成员范围、客户直选) */
  240. .checklist {
  241. display: grid;
  242. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  243. gap: 2px 18px;
  244. margin-top: 6px;
  245. }
  246. label.ck {
  247. display: flex;
  248. align-items: center;
  249. gap: 7px;
  250. font-size: 14px;
  251. font-weight: normal;
  252. color: var(--ink);
  253. margin: 4px 0;
  254. line-height: 1.5;
  255. }
  256. label.ck .note { font-weight: normal; }
  257. /* 区域树 */
  258. ul.tree {
  259. list-style: none;
  260. margin: 0;
  261. padding: 0;
  262. }
  263. ul.tree ul.tree { padding-left: 24px; }
  264. .tree-node {
  265. display: flex;
  266. align-items: center;
  267. gap: 8px;
  268. padding: 2px 0;
  269. }
  270. .tree-select {
  271. background: transparent;
  272. border: 1px solid transparent;
  273. border-radius: 8px;
  274. padding: 5px 10px;
  275. color: var(--ink);
  276. }
  277. .tree-select:hover { background: #f3efe6; }
  278. .tree-node.on .tree-select {
  279. background: var(--teal);
  280. border-color: var(--teal);
  281. color: #fff;
  282. }
  283. .lv {
  284. font-size: 12px;
  285. color: var(--teal-ink);
  286. background: #e5f3f2;
  287. border-radius: 6px;
  288. padding: 1px 7px;
  289. white-space: nowrap;
  290. }
  291. .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }
  292. /* 范围配置里的勾选树 */
  293. ul.tree.check label.ck { margin: 5px 0; }
  294. ul.tree.check ul.tree { margin: 2px 0; }
  295. .note { color: var(--muted); font-size: 13px; line-height: 1.6; }
  296. .alert {
  297. background: #fff4ec;
  298. border: 1px solid #f0d2bc;
  299. color: #7a3e12;
  300. border-radius: 12px;
  301. padding: 10px 12px;
  302. margin-bottom: 12px;
  303. font-size: 14px;
  304. line-height: 1.6;
  305. }
  306. .toast {
  307. position: fixed;
  308. right: 20px;
  309. bottom: 20px;
  310. background: var(--ink);
  311. color: white;
  312. padding: 12px 14px;
  313. border-radius: 10px;
  314. max-width: 320px;
  315. box-shadow: var(--shadow);
  316. font-size: 14px;
  317. line-height: 1.5;
  318. }
  319. .split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; align-items: start; }
  320. .log { margin: 0; padding-left: 18px; color: var(--muted); }
  321. .log li { margin: 4px 0; line-height: 1.6; }
  322. @media (max-width: 900px) {
  323. .login, .shell, .split { grid-template-columns: 1fr; }
  324. .login-side { padding: 28px 22px; }
  325. }
  326. /* ================= 交互与视觉增强 ================= */
  327. /* 全局过渡基类,给常见可交互元素 */
  328. button, .card, .panel, tr.clickable, .tree-select, label.ck {
  329. transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease;
  330. }
  331. input, select, textarea { transition: border-color 180ms ease, box-shadow 180ms ease; }
  332. /* 侧栏:折叠子菜单过渡(用 max-height 替代 display:none) */
  333. .nav .nav-sub { overflow: hidden; transition: max-height 220ms ease, opacity 220ms ease; max-height: 600px; opacity: 1; }
  334. .nav .nav-sub.closed { max-height: 0; opacity: 0; }
  335. /* 侧栏叶子按钮活跃态:左侧竖条 + 更强对比 */
  336. .nav .nav-sub .nav-leaf.active {
  337. position: relative;
  338. background: rgba(14, 110, 104, 0.22);
  339. color: #fff;
  340. padding-left: 14px;
  341. }
  342. .nav .nav-sub .nav-leaf.active::before {
  343. content: "";
  344. position: absolute; left: -12px; top: 4px; bottom: 4px; width: 3px;
  345. background: #19d0c0; border-radius: 2px;
  346. }
  347. .nav .nav-sub .nav-leaf:hover { color: #fff; background: rgba(255,255,255,0.06); }
  348. /* 顶层叶子按钮(如"概览""审计日志")活跃态 */
  349. .nav > button.nav-leaf.active {
  350. background: rgba(14, 110, 104, 0.22);
  351. color: #fff;
  352. }
  353. /* 折叠 caret 旋转 */
  354. .nav .nav-group .caret { transform: rotate(-90deg); }
  355. .nav .nav-group.open .caret { transform: rotate(0deg); }
  356. /* 按钮:focus-visible + 按下态 */
  357. .btn:focus-visible, button:focus-visible,
  358. .persona:focus-visible, .tree-select:focus-visible {
  359. outline: 2px solid var(--teal);
  360. outline-offset: 2px;
  361. }
  362. .btn:active { transform: translateY(1px); }
  363. /* 表格:thead 底线 + hover 高亮 + 斑马纹 */
  364. table { border-radius: 10px; overflow: hidden; }
  365. thead th {
  366. background: #faf4e8;
  367. border-bottom: 2px solid var(--line);
  368. padding: 10px 10px;
  369. position: sticky; top: 0; z-index: 1;
  370. }
  371. tbody tr:nth-child(even) td { background: #fbf7ee; }
  372. tbody tr.clickable:hover td, tbody tr:hover td {
  373. background: #f0e8d6 !important;
  374. }
  375. /* 套餐目录:用途分类分组小标题行 */
  376. tbody tr.grp td {
  377. background: #f2ece0 !important;
  378. border-bottom: 1px solid var(--line);
  379. padding: 7px 10px;
  380. font-weight: 640;
  381. color: var(--teal-ink);
  382. white-space: nowrap;
  383. }
  384. tbody tr.grp td span {
  385. margin-left: 10px;
  386. font-weight: 400;
  387. font-size: 12px;
  388. color: var(--muted);
  389. }
  390. /* 表单 focus glow */
  391. input:focus, select:focus, textarea:focus {
  392. border-color: var(--teal);
  393. box-shadow: 0 0 0 3px rgba(14, 110, 104, 0.14);
  394. outline: none;
  395. }
  396. /* panel / card 入场动画 */
  397. @keyframes fadeInUp {
  398. from { opacity: 0; transform: translateY(6px); }
  399. to { opacity: 1; transform: none; }
  400. }
  401. .panel, .card, .alert, .persona { animation: fadeInUp 300ms ease both; }
  402. .panel:nth-child(2) { animation-delay: 40ms; }
  403. .panel:nth-child(3) { animation-delay: 80ms; }
  404. .panel:nth-child(4) { animation-delay: 120ms; }
  405. /* toast 滑入 */
  406. .toast {
  407. animation: slideInRight 280ms ease both;
  408. }
  409. @keyframes slideInRight {
  410. from { opacity: 0; transform: translateX(24px); }
  411. to { opacity: 1; transform: none; }
  412. }
  413. /* 登录 persona 悬停抬升 */
  414. .persona { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
  415. .persona:hover {
  416. transform: translateY(-2px);
  417. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  418. border-color: var(--teal);
  419. }
  420. /* webkit 滚动条 */
  421. ::-webkit-scrollbar { width: 10px; height: 10px; }
  422. ::-webkit-scrollbar-track { background: transparent; }
  423. ::-webkit-scrollbar-thumb { background: #d7ccba; border-radius: 5px; }
  424. ::-webkit-scrollbar-thumb:hover { background: #b9ac95; }
  425. .panel::-webkit-scrollbar-thumb { background: #d7ccba; }
  426. /* pill hover 微动(可交互的情况下) */
  427. .pill { cursor: default; }
  428. /* 区域树选中节点加 glow */
  429. .tree-node.on .tree-select {
  430. box-shadow: 0 0 0 2px rgba(14,110,104,0.2);
  431. }
  432. /* 区域树操作菜单 */
  433. .tree-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; }
  434. .tree-head h2 { margin: 0; }
  435. .tree-node { position: relative; }
  436. .node-menu-btn {
  437. background: transparent; border: 1px solid transparent; border-radius: 6px;
  438. color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1;
  439. padding: 3px 7px; margin-left: 2px;
  440. }
  441. .node-menu-btn:hover { background: #efe7da; color: var(--ink); }
  442. .tree-node.on .node-menu-btn { color: #fff; }
  443. .tree-node.on .node-menu-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
  444. .node-menu {
  445. position: absolute; top: 100%; left: 0; z-index: 30;
  446. background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  447. box-shadow: 0 12px 32px rgba(40, 32, 20, 0.16);
  448. padding: 4px; min-width: 176px;
  449. display: flex; flex-direction: column; gap: 2px;
  450. }
  451. .node-menu button {
  452. text-align: left; background: transparent; border: 0; border-radius: 7px;
  453. padding: 7px 10px; font-size: 13.5px;
  454. }
  455. .node-menu button:hover { background: #f3efe6; }
  456. .node-menu button.danger { color: var(--red); }
  457. .node-menu button.danger:hover { background: #fde8e4; }
  458. /* 区域树面板:不裁剪溢出内容,保证节点下拉菜单完整显示 */
  459. .panel.uncut { overflow: visible; }
  460. /* 区域管理页:主区纵向铺满视口,左右两栏拉伸到底,区域树底部与窗口底部对齐 */
  461. .main.stretch { display: flex; flex-direction: column; padding-bottom: 22px; }
  462. .main.stretch .top { flex: none; }
  463. .main.stretch .region-split { flex: 1 1 auto; align-items: stretch; }
  464. .main.stretch .region-split > .panel.uncut { display: flex; flex-direction: column; }
  465. .main.stretch .region-split > .panel.uncut > ul.tree { flex: 1 1 auto; }
  466. .icon-btn {
  467. background: transparent; border: 1px solid var(--line); border-radius: 7px;
  468. color: var(--muted); font-size: 14px; line-height: 1;
  469. padding: 5px 8px; margin-left: 6px;
  470. }
  471. .icon-btn:hover { background: #efe7da; color: var(--ink); }
  472. .icon-btn.danger:hover { background: #fde8e4; color: var(--red); }
  473. /* 区域详情卡片标题旁的"被引用"小标签:随标题行内显示,不占独立高度 */
  474. .ref-tag {
  475. display: inline-block; vertical-align: 2px; margin-left: 8px;
  476. font-size: 12px; font-weight: 500; color: var(--red);
  477. background: #fde8e4; border-radius: 6px; padding: 2px 7px; cursor: help;
  478. }
  479. /* 弹窗 */
  480. .modal-overlay {
  481. position: fixed; inset: 0; z-index: 50;
  482. background: rgba(23, 32, 40, 0.45);
  483. display: flex; align-items: center; justify-content: center;
  484. padding: 20px;
  485. animation: fadeIn 160ms ease both;
  486. }
  487. @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  488. .modal {
  489. background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  490. padding: 20px 22px; width: 100%; max-width: 480px;
  491. box-shadow: 0 20px 60px rgba(20, 16, 10, 0.28);
  492. }
  493. .modal h3 { font-size: 17px; margin-bottom: 10px; }
  494. .modal label { margin-top: 2px; }
  495. .modal input, .modal select { max-width: 100%; }
  496. /* 字段较多的新增/编辑表单(客户档案、订阅)用宽弹窗 */
  497. .modal.wide { max-width: 760px; }
  498. .modal .form-grid { gap: 0 16px; }
  499. /* 初始密码:输入框与「自动生成」按钮同行,等宽字体便于分辨易混字符 */
  500. .pwd-row { display: flex; align-items: center; gap: 8px; }
  501. .pwd-row input {
  502. flex: 1; min-width: 0; max-width: none;
  503. font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px;
  504. }
  505. .pwd-row input.flash { animation: pwdFlash 520ms ease both; }
  506. @keyframes pwdFlash { from { background: #dff3ef; border-color: var(--teal); } to { background: white; border-color: var(--line); } }
  507. /* 新增档案时一并开通登录账号:可选区块,左侧色条把「登录名—初始密码—手机号」归为一组,
  508. 浅底与卡片底色区分,表明这几项不是档案必填内容(都留空即只建档案) */
  509. .acct-new {
  510. margin-top: 12px;
  511. padding: 10px 12px 8px;
  512. border: 1px solid var(--line);
  513. border-left: 3px solid var(--teal);
  514. border-radius: 10px;
  515. background: #fbf7ef;
  516. }
  517. .acct-new .note { margin-top: 6px; }
  518. /* 成员负责范围:下拉多选树。收起时是一行选择框,展开后浮层内是区域—客户勾选树,区域可整块勾选 */
  519. .scope-pick { position: relative; margin-top: 6px; }
  520. .scope-pick-btn {
  521. width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  522. padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  523. background: var(--card); font-size: 14px; text-align: left;
  524. transition: border-color 160ms ease;
  525. }
  526. .scope-pick-btn:hover, .scope-pick.open .scope-pick-btn { border-color: var(--teal); }
  527. .scope-pick-text {
  528. flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  529. color: var(--muted);
  530. }
  531. .scope-pick-caret { color: var(--muted); font-size: 12px; transition: transform 160ms ease; }
  532. .scope-pick.open .scope-pick-caret { transform: rotate(180deg); }
  533. .scope-pick-pop {
  534. display: none; position: absolute; z-index: 6; left: 0; right: 0; margin-top: 6px;
  535. padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  536. box-shadow: 0 14px 34px rgba(40, 32, 20, 0.16);
  537. }
  538. .scope-pick.open .scope-pick-pop { display: block; animation: fadeIn 140ms ease both; }
  539. .scope-pick-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  540. .scope-pick-bar .note { margin-left: auto; }
  541. .scope-pick-scroll { max-height: 250px; overflow: auto; }
  542. ul.tree .sp-region { font-weight: 600; }
  543. ul.tree .sp-region, ul.tree .sp-ent { margin: 3px 0; }
  544. /* 工单流程:状态筛选 tabs */
  545. .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  546. .tab {
  547. display: inline-flex; align-items: center; gap: 6px;
  548. border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  549. padding: 6px 14px; font-size: 13px; color: var(--muted);
  550. transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  551. }
  552. .tab b { font-size: 12px; color: inherit; opacity: 0.75; }
  553. .tab:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-1px); }
  554. .tab.active { background: var(--teal-ink); border-color: var(--teal-ink); color: #f3efe6; }
  555. .tab.active b { opacity: 0.9; }
  556. /* 运维团队:tab 与「开通运维团队」按钮同行,tab 在左按钮在右 */
  557. .team-tabs { justify-content: space-between; margin-bottom: 14px; }
  558. .panel-sub { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
  559. /* 某类型尚未开通团队时的空白 tab 页:虚线空态 + 居中开通入口 */
  560. .team-empty {
  561. display: flex; flex-direction: column; align-items: center; gap: 4px;
  562. padding: 46px 18px; border: 1px dashed #d3c6b3; background: transparent;
  563. }
  564. .team-empty-title { font-size: 15px; color: var(--ink); }
  565. .team-empty .note { max-width: 540px; margin-bottom: 10px; }
  566. /* 工单流程:状态流转指示 */
  567. .flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
  568. .fstep {
  569. display: inline-flex; align-items: center;
  570. border: 1px solid var(--line); border-radius: 999px;
  571. padding: 3px 12px; font-size: 12px; color: var(--muted); background: var(--card);
  572. }
  573. .fstep.done { border-color: #bcd9c8; color: var(--green); background: #e5f4ea; }
  574. .fstep.now { border-color: var(--teal); color: var(--teal-ink); background: #e5f3f2; font-weight: 600; }
  575. .fstep.bad { border-color: #eac4bc; color: var(--red); background: #fde8e4; }
  576. .farrow { color: var(--muted); font-size: 12px; }
  577. .fstep.clickable {
  578. cursor: pointer; border-style: dashed; border-color: var(--teal); color: var(--teal-ink);
  579. transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  580. }
  581. .fstep.clickable:hover {
  582. transform: translateY(-1px);
  583. background: #eef7f5;
  584. box-shadow: 0 0 0 2px rgba(14, 110, 104, 0.15);
  585. }
  586. /* ===== 区域管理:概况卡片 + 钻取列表 ===== */
  587. /* 右栏允许收缩到 fr 份额以内,宽表格在 panel 内部横向滚动,避免挤压左侧区域树 */
  588. .region-over { min-height: 0; min-width: 0; }
  589. .ov-grid {
  590. display: grid;
  591. grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  592. gap: 14px;
  593. align-content: start;
  594. }
  595. button.ov-card {
  596. text-align: left;
  597. width: 100%;
  598. display: flex;
  599. flex-direction: column;
  600. gap: 6px;
  601. cursor: pointer;
  602. border: 1px solid var(--line);
  603. }
  604. button.ov-card:hover {
  605. border-color: var(--teal);
  606. transform: translateY(-2px);
  607. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  608. }
  609. .ov-card .ov-title { color: var(--muted); font-size: 13.5px; }
  610. .ov-card b { font-size: 30px; margin: 2px 0; line-height: 1.1; word-break: break-word; }
  611. .ov-card .ov-sub { color: var(--muted); font-size: 12.5px; line-height: 1.55; min-height: 36px; }
  612. .ov-card .ov-go { color: var(--teal-ink); font-size: 12.5px; margin-top: 2px; }
  613. .ov-head .row { margin-bottom: 2px; }
  614. /* 危险色 ghost 按钮 */
  615. .btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
  616. .btn.danger:hover { background: #fde8e4; }
  617. /* 概况卡片与右侧钻取视图入场动画(保持既有动效) */
  618. .ov-card { animation: fadeInUp 300ms ease both; }
  619. /* 列表筛选条:区域/付款周期下拉框与名称文本框排在表头上方,底部对齐 */
  620. .filters {
  621. display: flex;
  622. flex-wrap: wrap;
  623. gap: 10px 16px;
  624. align-items: flex-end;
  625. margin: 6px 0 12px;
  626. }
  627. .filters .f-item label { margin: 0 0 4px; }
  628. .filters .f-item select,
  629. .filters .f-item input { width: auto; min-width: 200px; max-width: 320px; }