styles.css 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  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. /* 关掉滚动锚定:重绘后脚本还原的 scrollTop 才不会被浏览器再挪一次 */
  117. overflow-anchor: none;
  118. }
  119. .nav-menu > * { flex: none; }
  120. .nav-menu::-webkit-scrollbar { width: 8px; }
  121. .nav-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 4px; }
  122. .brand { padding: 0 8px 16px; font-weight: 650; letter-spacing: 0.06em; }
  123. .nav button {
  124. background: transparent;
  125. border: 0;
  126. color: inherit;
  127. text-align: left;
  128. border-radius: 8px;
  129. padding: 9px 10px;
  130. width: 100%;
  131. font-size: 14px;
  132. cursor: pointer;
  133. }
  134. .nav button.active, .nav button:hover { background: rgba(255, 255, 255, 0.08); }
  135. .nav .nav-group {
  136. font-size: 12px;
  137. letter-spacing: 0.08em;
  138. text-transform: uppercase;
  139. color: #8ea0a0;
  140. padding: 14px 10px 6px;
  141. cursor: pointer;
  142. display: flex;
  143. justify-content: space-between;
  144. align-items: center;
  145. user-select: none;
  146. }
  147. .nav .nav-group:hover { background: transparent; color: #c2d3d1; }
  148. .nav .nav-group .caret { font-size: 11px; transition: transform 0.18s ease; }
  149. .nav .nav-group.open .caret { transform: rotate(0deg); }
  150. .nav .nav-sub { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; }
  151. .nav .nav-sub.closed { display: none; }
  152. .nav .nav-sub .nav-leaf { font-size: 13.5px; color: #d1c8ba; padding: 7px 10px; }
  153. .nav .nav-sub .nav-leaf.active {
  154. background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  155. color: #fff;
  156. }
  157. /* 身份面板与菜单列底色区分:独立卡片底 + 描边,避免和菜单混成一块 */
  158. .nav .who {
  159. margin-top: auto;
  160. padding: 12px;
  161. font-size: 13px;
  162. color: #cdd9d7;
  163. line-height: 1.5;
  164. background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  165. border: 1px solid rgba(255,255,255,0.12);
  166. border-radius: 12px;
  167. }
  168. .nav .who button { margin-top: 8px; border: 1px solid rgba(255,255,255,0.22); background: rgba(23,32,40,0.55); width: 100%; }
  169. .nav .who button:hover { background: rgba(23,32,40,0.8); }
  170. .main { padding: 22px 28px 48px; min-width: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; }
  171. .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
  172. .top h1 { font-size: 22px; font-weight: 650; }
  173. .top p { color: var(--muted); margin-top: 4px; font-size: 13px; }
  174. .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  175. .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
  176. .card, .panel {
  177. background: var(--card);
  178. border: 1px solid var(--line);
  179. border-radius: 14px;
  180. box-shadow: var(--shadow);
  181. }
  182. .card { padding: 14px 16px; }
  183. .card b { display: block; font-size: 22px; margin-top: 4px; word-break: break-word; }
  184. .card span { color: var(--muted); font-size: 13px; }
  185. /* 未完成工单卡:数字用告警红,整卡可点开明细列表 */
  186. .card.alarm { cursor: pointer; }
  187. .card.alarm b { color: var(--red); }
  188. .card.alarm:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(143, 45, 45, 0.14); }
  189. /* 概览 KPI 卡:数值下方放历史曲线,曲线一律贴卡片底边对齐 */
  190. .cards.kpi { grid-auto-rows: 1fr; }
  191. .cards.kpi .card { display: flex; flex-direction: column; }
  192. .cards.kpi .num-row { margin-bottom: 10px; }
  193. .cards.kpi .num-row b { flex: none; font-size: 27px; }
  194. .cards.kpi .spark { display: block; flex: none; width: 100%; height: 34px; margin: auto 0 0; overflow: visible; }
  195. .spark-line { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  196. .spark-area { fill: var(--teal); opacity: 0.09; stroke: none; }
  197. .card.alarm .spark-line { stroke: var(--red); }
  198. .card.alarm .spark-area { fill: var(--red); }
  199. /* 数值行:未完成工单卡在总数右侧显示待处理 / 处理中拆分数 */
  200. .num-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  201. /* 选择器带上 .cards.kpi 前缀,避免被上面的 .card span 规则把字号改回 13px */
  202. .cards.kpi .num-split { font-size: 12px; line-height: 1.15; text-align: right; }
  203. .cards.kpi .num-split i { font-style: normal; opacity: 0.72; margin-right: 4px; }
  204. .panel { padding: 16px 18px; margin-bottom: 14px; overflow-x: auto; min-width: 0; }
  205. .panel h2 { font-size: 16px; margin-bottom: 10px; }
  206. .panel > .note { margin-top: 8px; }
  207. table { width: 100%; border-collapse: collapse; font-size: 14px; }
  208. th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
  209. td.wrap { white-space: normal; min-width: 240px; }
  210. /* 分成管理列表:分成方列放宽,分成方式与分成比例/金额列收紧(多个取值逐行列出),避免表格横向溢出后点不到操作列 */
  211. td .party-name { max-width: 200px; white-space: normal; line-height: 1.4; }
  212. td .tight { max-width: 104px; white-space: normal; line-height: 1.4; }
  213. /* 合同管理列表:列多且值长(编号、外部单号、期间、出口),字号与行内边距收紧 + 长文本列换行,避免面板出现横向滚动 */
  214. table.dense { font-size: 13px; }
  215. table.dense th, table.dense td { padding: 7px 7px; }
  216. /* 表头允许换行:窗口变窄时表头折行,整表最小宽度随之下降,不致于撑出横向滚动 */
  217. table.dense th { white-space: normal; }
  218. table.dense .note { font-size: 12px; line-height: 1.5; }
  219. /* 行内操作按钮收紧且不换行,否则两个按钮竖排会把整行撑到三层高 */
  220. table.dense .row { flex-wrap: nowrap; gap: 6px; }
  221. table.dense .btn { padding: 4px 8px; font-size: 12px; }
  222. /* 客户管理列表:列多且值长(编号、掩码识别号、区域全路径、团队名),
  223. 长文本列折行、行尾操作列不折行——按钮一旦竖排会把整行撑到三层高。 */
  224. table.ent-list { font-size: 13px; }
  225. table.ent-list th, table.ent-list td { padding: 7px 8px; }
  226. table.ent-list th { white-space: normal; }
  227. table.ent-list .note { font-size: 12px; line-height: 1.45; }
  228. /* 折行列限定宽度,把横向空间让给操作列;折行只发生在编号下方、区域路径与团队清单上 */
  229. table.ent-list td.c-ent, table.ent-list td.c-subject,
  230. table.ent-list td.c-region, table.ent-list td.c-teams { white-space: normal; }
  231. table.ent-list td.c-ent { width: 108px; }
  232. /* 掩码识别号是一个不断行的整串(18 位),这列的最小宽就是它撑出来的宽度 */
  233. table.ent-list td.c-subject { width: 122px; }
  234. table.ent-list td.c-region { width: 128px; }
  235. table.ent-list td.c-teams { width: 110px; }
  236. /* 短列显式收窄,避免自动布局把剩余宽度按比例摊到它们身上、反过来挤压长文本列 */
  237. table.ent-list th:first-child, table.ent-list td:first-child { width: 36px; }
  238. table.ent-list td.c-op, table.ent-list td.c-partner { width: 62px; }
  239. table.ent-list td.c-status { width: 66px; }
  240. /* 操作列按三枚按钮的最小宽度取宽,不参与压缩;按钮字号与内边距同步收紧 */
  241. table.ent-list th.c-ops, table.ent-list td.c-ops { width: 1%; }
  242. table.ent-list td.c-ops .row { flex-wrap: nowrap; gap: 6px; }
  243. table.ent-list td.c-ops .btn { padding: 4px 8px; font-size: 12px; }
  244. th { color: var(--muted); font-weight: 550; font-size: 12px; }
  245. tr.clickable { cursor: pointer; }
  246. tr.clickable:hover { background: #f3efe6; }
  247. .pill {
  248. display: inline-block;
  249. border-radius: 999px;
  250. padding: 2px 8px;
  251. font-size: 12px;
  252. background: #efe7da;
  253. white-space: nowrap;
  254. }
  255. .pill.ok { background: #e5f4ea; color: var(--green); }
  256. .pill.wait { background: #fff1d6; color: var(--amber); }
  257. .pill.bad { background: #fde8e4; color: var(--red); }
  258. .pill.run { background: #e5f3f2; color: var(--teal-ink); }
  259. /* 线路出口已选标签:下拉选一个即落一枚,可逐枚移除;与配置面板的可选项清单共用 */
  260. .exit-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; min-height: 26px; }
  261. .exit-chips:empty::after { content: "尚未选择线路出口"; color: var(--muted); font-size: 12px; }
  262. .exit-chip {
  263. display: inline-flex; align-items: center; gap: 6px;
  264. border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 12px;
  265. background: #e5f3f2; color: var(--teal-ink); border: 1px solid #bfe0dd;
  266. }
  267. .exit-chip button {
  268. border: 0; background: transparent; color: var(--teal-ink);
  269. font-size: 13px; line-height: 1; padding: 0 2px; cursor: pointer;
  270. }
  271. .exit-chip button:hover { color: var(--red); }
  272. .exit-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
  273. .exit-opts .exit-chip { background: #efe7da; color: var(--ink); border-color: var(--line); }
  274. .btn, .btn.ghost {
  275. border-radius: 8px;
  276. padding: 7px 12px;
  277. border: 1px solid var(--teal);
  278. background: var(--teal);
  279. color: white;
  280. white-space: nowrap;
  281. }
  282. .btn.ghost { background: transparent; color: var(--teal-ink); }
  283. .btn.warn { background: var(--red); border-color: var(--red); }
  284. .btn:disabled { opacity: 0.45; cursor: not-allowed; }
  285. label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
  286. input, select, textarea {
  287. width: 100%;
  288. max-width: 420px;
  289. border: 1px solid var(--line);
  290. background: white;
  291. border-radius: 8px;
  292. padding: 8px 10px;
  293. }
  294. input[type="checkbox"], input[type="radio"] { width: auto; max-width: none; margin: 0; }
  295. td select, .row select { width: auto; min-width: 96px; max-width: 200px; }
  296. .row input { width: auto; }
  297. textarea { min-height: 88px; max-width: 560px; }
  298. .form-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
  299. /* 多列表单 */
  300. .form-grid {
  301. display: grid;
  302. grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  303. gap: 0 18px;
  304. }
  305. .form-grid label { margin-top: 8px; }
  306. /* 必填项标记:字段名后的红色星号 */
  307. .req { color: #c0392b; margin-left: 2px; font-weight: 700; }
  308. /* 校验未通过:已填内容整体保留、弹窗不重置,只红显有问题的编辑项并在字段下写原因 */
  309. .f-bad > label { color: var(--red); }
  310. .f-bad input, .f-bad select { border-color: var(--red); box-shadow: 0 0 0 2px rgba(143, 45, 45, 0.12); }
  311. .f-err { display: block; margin-top: 3px; font-size: 12px; color: var(--red); }
  312. .form-grid .form-actions { grid-column: 1 / -1; }
  313. /* 套餐档弹窗的成本项:名称下拉取自「分成与成本」成本项列表,金额按月计可改,可加多条、逐条删除 */
  314. .form-grid .pkg-costs { grid-column: 1 / -1; margin-top: 10px; }
  315. .pkg-costs-head {
  316. display: flex; align-items: center; justify-content: space-between;
  317. gap: 10px; flex-wrap: wrap;
  318. }
  319. .pkg-costs-head .btn { padding: 5px 12px; font-size: 13px; }
  320. .pkg-cost-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
  321. .pkg-cost-row select { flex: 1 1 auto; min-width: 0; }
  322. .pkg-cost-row input { flex: 0 0 auto; width: 120px; max-width: 120px; }
  323. .pkg-cost-row .pkg-cost-qty { width: 62px; max-width: 62px; }
  324. .pkg-cost-row .pkg-cost-times { flex: 0 0 auto; }
  325. .pkg-cost-row .pkg-cost-qty-unit, .pkg-cost-row .pkg-cost-money-unit { flex: 0 0 auto; white-space: nowrap; }
  326. /* 开关(二态表单):checkbox 隐藏,用 .track 画滑块 */
  327. label.switch {
  328. display: inline-flex;
  329. align-items: center;
  330. gap: 8px;
  331. cursor: pointer;
  332. margin: 8px 0 4px;
  333. min-height: 38px;
  334. font-size: 13px;
  335. color: var(--muted);
  336. }
  337. label.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
  338. label.switch .track {
  339. flex: none;
  340. width: 40px;
  341. height: 22px;
  342. border-radius: 999px;
  343. background: #cfc8ba;
  344. position: relative;
  345. transition: background 180ms ease;
  346. }
  347. label.switch .track::after {
  348. content: "";
  349. position: absolute;
  350. top: 3px;
  351. left: 3px;
  352. width: 16px;
  353. height: 16px;
  354. border-radius: 50%;
  355. background: #fff;
  356. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  357. transition: transform 180ms ease;
  358. }
  359. label.switch input:checked + .track { background: var(--teal-ink); }
  360. label.switch input:checked + .track::after { transform: translateX(18px); }
  361. label.switch input:disabled + .track { opacity: 0.45; cursor: not-allowed; }
  362. /* 对象存储键列表 / 材料列表 */
  363. ul.files {
  364. margin: 8px 0 0;
  365. padding: 0;
  366. list-style: none;
  367. }
  368. ul.files li {
  369. padding: 6px 10px;
  370. background: #f7f2e8;
  371. border: 1px solid var(--line);
  372. border-radius: 8px;
  373. margin-bottom: 6px;
  374. font-size: 13px;
  375. word-break: break-all;
  376. }
  377. /* 建档弹窗的材料上传:左侧「登记材料」常年显示,右侧「合同文档」只在选了首个套餐时出现 */
  378. .doc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  379. /* 合同入口隐藏时收成单列,不留右侧空档 */
  380. .doc-row.one { grid-template-columns: 1fr; }
  381. @media (max-width: 760px) { .doc-row { grid-template-columns: 1fr; } }
  382. /* 文件控件 + 已选清单(文档名在左,移除在右) */
  383. .doc-pick { margin-top: 8px; min-width: 0; }
  384. .doc-pick input[type="file"] { width: 100%; margin-top: 4px; }
  385. .doc-pick .files { margin-top: 6px; }
  386. ul.files.doc-list li {
  387. padding: 4px 9px;
  388. margin-bottom: 4px;
  389. display: flex;
  390. align-items: center;
  391. justify-content: space-between;
  392. gap: 8px;
  393. }
  394. ul.files.doc-list .doc-name { min-width: 0; overflow-wrap: anywhere; }
  395. ul.files.doc-list .btn { padding: 2px 8px; font-size: 11px; }
  396. /* 复选列表(成员范围、客户直选) */
  397. .checklist {
  398. display: grid;
  399. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  400. gap: 2px 18px;
  401. margin-top: 6px;
  402. }
  403. label.ck {
  404. display: flex;
  405. align-items: center;
  406. gap: 7px;
  407. font-size: 14px;
  408. font-weight: normal;
  409. color: var(--ink);
  410. margin: 4px 0;
  411. line-height: 1.5;
  412. }
  413. label.ck .note { font-weight: normal; }
  414. /* 区域树 */
  415. ul.tree {
  416. list-style: none;
  417. margin: 0;
  418. padding: 0;
  419. }
  420. ul.tree ul.tree { padding-left: 24px; }
  421. .tree-node {
  422. display: flex;
  423. align-items: center;
  424. gap: 8px;
  425. padding: 2px 0;
  426. }
  427. .tree-select {
  428. background: transparent;
  429. border: 1px solid transparent;
  430. border-radius: 8px;
  431. padding: 5px 10px;
  432. color: var(--ink);
  433. }
  434. .tree-select:hover { background: #f3efe6; }
  435. .tree-node.on .tree-select {
  436. background: var(--teal);
  437. border-color: var(--teal);
  438. color: #fff;
  439. }
  440. .lv {
  441. font-size: 12px;
  442. color: var(--teal-ink);
  443. background: #e5f3f2;
  444. border-radius: 6px;
  445. padding: 1px 7px;
  446. white-space: nowrap;
  447. }
  448. .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }
  449. /* 范围配置里的勾选树 */
  450. ul.tree.check label.ck { margin: 5px 0; }
  451. ul.tree.check ul.tree { margin: 2px 0; }
  452. .note { color: var(--muted); font-size: 13px; line-height: 1.6; }
  453. .alert {
  454. background: #fff4ec;
  455. border: 1px solid #f0d2bc;
  456. color: #7a3e12;
  457. border-radius: 12px;
  458. padding: 10px 12px;
  459. margin-bottom: 12px;
  460. font-size: 14px;
  461. line-height: 1.6;
  462. }
  463. .toast {
  464. position: fixed;
  465. right: 20px;
  466. bottom: 20px;
  467. background: var(--ink);
  468. color: white;
  469. padding: 12px 14px;
  470. border-radius: 10px;
  471. max-width: 320px;
  472. box-shadow: var(--shadow);
  473. font-size: 14px;
  474. line-height: 1.5;
  475. }
  476. .split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; align-items: start; }
  477. .log { margin: 0; padding-left: 18px; color: var(--muted); }
  478. .log li { margin: 4px 0; line-height: 1.6; }
  479. @media (max-width: 900px) {
  480. .login, .shell, .split { grid-template-columns: 1fr; }
  481. .login-side { padding: 28px 22px; }
  482. /* 窄屏单列:回到整页滚动,不锁两栏各自的高度与滚动条 */
  483. .shell { height: auto; }
  484. .nav, .nav-menu, .main { height: auto; overflow: visible; overscroll-behavior: auto; }
  485. }
  486. /* ================= 交互与视觉增强 ================= */
  487. /* 全局过渡基类,给常见可交互元素 */
  488. button, .card, .panel, tr.clickable, .tree-select, label.ck {
  489. transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 180ms ease;
  490. }
  491. input, select, textarea { transition: border-color 180ms ease, box-shadow 180ms ease; }
  492. /* 侧栏:折叠子菜单过渡(用 max-height 替代 display:none) */
  493. .nav .nav-sub { overflow: hidden; transition: max-height 220ms ease, opacity 220ms ease; max-height: 600px; opacity: 1; }
  494. .nav .nav-sub.closed { max-height: 0; opacity: 0; }
  495. /* 侧栏叶子按钮活跃态:左侧竖条 + 更强对比 */
  496. .nav .nav-sub .nav-leaf.active {
  497. position: relative;
  498. background: rgba(14, 110, 104, 0.22);
  499. color: #fff;
  500. padding-left: 14px;
  501. }
  502. .nav .nav-sub .nav-leaf.active::before {
  503. content: "";
  504. position: absolute; left: -12px; top: 4px; bottom: 4px; width: 3px;
  505. background: #19d0c0; border-radius: 2px;
  506. }
  507. .nav .nav-sub .nav-leaf:hover { color: #fff; background: rgba(255,255,255,0.06); }
  508. /* 顶层叶子按钮(如"概览""审计日志")活跃态 */
  509. .nav > button.nav-leaf.active {
  510. background: rgba(14, 110, 104, 0.22);
  511. color: #fff;
  512. }
  513. /* 折叠 caret 旋转 */
  514. .nav .nav-group .caret { transform: rotate(-90deg); }
  515. .nav .nav-group.open .caret { transform: rotate(0deg); }
  516. /* 按钮:focus-visible + 按下态 */
  517. .btn:focus-visible, button:focus-visible,
  518. .persona:focus-visible, .tree-select:focus-visible {
  519. outline: 2px solid var(--teal);
  520. outline-offset: 2px;
  521. }
  522. .btn:active { transform: translateY(1px); }
  523. /* 表格:thead 底线 + hover 高亮 + 斑马纹 */
  524. table { border-radius: 10px; overflow: hidden; }
  525. thead th {
  526. background: #faf4e8;
  527. border-bottom: 2px solid var(--line);
  528. padding: 10px 10px;
  529. position: sticky; top: 0; z-index: 1;
  530. }
  531. tbody tr:nth-child(even) td { background: #fbf7ee; }
  532. tbody tr.clickable:hover td, tbody tr:hover td {
  533. background: #f0e8d6 !important;
  534. }
  535. /* 套餐目录:用途分类分组小标题行 */
  536. tbody tr.grp td {
  537. background: #f2ece0 !important;
  538. border-bottom: 1px solid var(--line);
  539. padding: 7px 10px;
  540. font-weight: 640;
  541. color: var(--teal-ink);
  542. white-space: nowrap;
  543. }
  544. tbody tr.grp td span {
  545. margin-left: 10px;
  546. font-weight: 400;
  547. font-size: 12px;
  548. color: var(--muted);
  549. }
  550. /* 表单 focus glow */
  551. input:focus, select:focus, textarea:focus {
  552. border-color: var(--teal);
  553. box-shadow: 0 0 0 3px rgba(14, 110, 104, 0.14);
  554. outline: none;
  555. }
  556. /* panel / card 入场动画 */
  557. @keyframes fadeInUp {
  558. from { opacity: 0; transform: translateY(6px); }
  559. to { opacity: 1; transform: none; }
  560. }
  561. .panel, .card, .alert, .persona { animation: fadeInUp 300ms ease both; }
  562. .panel:nth-child(2) { animation-delay: 40ms; }
  563. .panel:nth-child(3) { animation-delay: 80ms; }
  564. .panel:nth-child(4) { animation-delay: 120ms; }
  565. /* toast 滑入 */
  566. .toast {
  567. animation: slideInRight 280ms ease both;
  568. }
  569. @keyframes slideInRight {
  570. from { opacity: 0; transform: translateX(24px); }
  571. to { opacity: 1; transform: none; }
  572. }
  573. /* 登录 persona 悬停抬升 */
  574. .persona { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
  575. .persona:hover {
  576. transform: translateY(-2px);
  577. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  578. border-color: var(--teal);
  579. }
  580. /* webkit 滚动条 */
  581. ::-webkit-scrollbar { width: 10px; height: 10px; }
  582. ::-webkit-scrollbar-track { background: transparent; }
  583. ::-webkit-scrollbar-thumb { background: #d7ccba; border-radius: 5px; }
  584. ::-webkit-scrollbar-thumb:hover { background: #b9ac95; }
  585. .panel::-webkit-scrollbar-thumb { background: #d7ccba; }
  586. /* pill hover 微动(可交互的情况下) */
  587. .pill { cursor: default; }
  588. /* 区域树选中节点加 glow */
  589. .tree-node.on .tree-select {
  590. box-shadow: 0 0 0 2px rgba(14,110,104,0.2);
  591. }
  592. /* 区域树操作菜单 */
  593. .tree-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; }
  594. .tree-head h2 { margin: 0; }
  595. .tree-node { position: relative; }
  596. .node-menu-btn {
  597. background: transparent; border: 1px solid transparent; border-radius: 6px;
  598. color: var(--muted); font-weight: 700; font-size: 15px; line-height: 1;
  599. padding: 3px 7px; margin-left: 2px;
  600. }
  601. .node-menu-btn:hover { background: #efe7da; color: var(--ink); }
  602. .tree-node.on .node-menu-btn { color: #fff; }
  603. .tree-node.on .node-menu-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
  604. .node-menu {
  605. position: absolute; top: 100%; left: 0; z-index: 30;
  606. background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  607. box-shadow: 0 12px 32px rgba(40, 32, 20, 0.16);
  608. padding: 4px; min-width: 176px;
  609. display: flex; flex-direction: column; gap: 2px;
  610. }
  611. .node-menu button {
  612. text-align: left; background: transparent; border: 0; border-radius: 7px;
  613. padding: 7px 10px; font-size: 13.5px;
  614. }
  615. .node-menu button:hover { background: #f3efe6; }
  616. .node-menu button.danger { color: var(--red); }
  617. .node-menu button.danger:hover { background: #fde8e4; }
  618. /* 区域树面板:不裁剪溢出内容,保证节点下拉菜单完整显示 */
  619. .panel.uncut { overflow: visible; }
  620. /* 区域管理页:主区纵向铺满视口,左右两栏拉伸到底,区域树底部与窗口底部对齐 */
  621. .main.stretch { display: flex; flex-direction: column; padding-bottom: 22px; }
  622. .main.stretch .top { flex: none; }
  623. .main.stretch .region-split { flex: 1 1 auto; align-items: stretch; }
  624. .main.stretch .region-split > .panel.uncut { display: flex; flex-direction: column; }
  625. .main.stretch .region-split > .panel.uncut > ul.tree { flex: 1 1 auto; }
  626. .icon-btn {
  627. background: transparent; border: 1px solid var(--line); border-radius: 7px;
  628. color: var(--muted); font-size: 14px; line-height: 1;
  629. padding: 5px 8px; margin-left: 6px;
  630. }
  631. .icon-btn:hover { background: #efe7da; color: var(--ink); }
  632. .icon-btn.danger:hover { background: #fde8e4; color: var(--red); }
  633. /* 套餐目录操作列:编辑与删除用图标按钮,同一行水平排列不折行;引用提示另起一行 */
  634. .pkg-ops { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
  635. .pkg-ops .icon-btn { margin-left: 0; }
  636. /* 区域详情卡片标题旁的"被引用"小标签:随标题行内显示,不占独立高度 */
  637. .ref-tag {
  638. display: inline-block; vertical-align: 2px; margin-left: 8px;
  639. font-size: 12px; font-weight: 500; color: var(--red);
  640. background: #fde8e4; border-radius: 6px; padding: 2px 7px; cursor: help;
  641. }
  642. /* 弹窗 */
  643. .modal-overlay {
  644. position: fixed; inset: 0; z-index: 50;
  645. background: rgba(23, 32, 40, 0.45);
  646. display: flex; align-items: center; justify-content: center;
  647. padding: 20px;
  648. animation: fadeIn 160ms ease both;
  649. }
  650. @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  651. /* 弹窗已开着时的重绘(如切换套餐档位、条目增删、校验反馈):不再重播入场动画,消除闪动 */
  652. .modal-overlay.no-anim { animation: none; }
  653. .modal-overlay.no-anim .panel, .modal-overlay.no-anim .card, .modal-overlay.no-anim .alert { animation: none; }
  654. /* 同一次重绘里底层整页也会重建,隔着半透明遮罩可见其卡片上浮动画重播——一并禁用 */
  655. #app.no-page-anim .panel, #app.no-page-anim .card, #app.no-page-anim .alert,
  656. #app.no-page-anim .persona, #app.no-page-anim .ov-card { animation: none; }
  657. .modal {
  658. background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  659. padding: 20px 22px; width: 100%; max-width: 480px;
  660. max-height: calc(100vh - 40px); overflow-y: auto;
  661. box-shadow: 0 20px 60px rgba(20, 16, 10, 0.28);
  662. }
  663. .modal h3 { font-size: 17px; margin-bottom: 10px; }
  664. .modal label { margin-top: 2px; }
  665. /* 弹窗内的编辑项跟随弹窗宽度,不再受全局 420/560 上限约束(多行文本框同样撑满所在列) */
  666. .modal input, .modal select, .modal textarea { max-width: 100%; }
  667. /* 字段较多的新增/编辑表单(客户档案、订阅)用宽弹窗 */
  668. .modal.wide { max-width: 760px; }
  669. /* 新增客户字段最多(含客户主账号),再加宽一档 */
  670. .modal.wider { max-width: 980px; }
  671. /* 加宽后表单最小列宽同步提高,保证每行最多三列(窄屏仍自动降为两列/单列) */
  672. .modal.wider .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  673. .modal .form-grid { gap: 0 16px; }
  674. /* 客户名称联想下拉:输入部分关键字后在输入框下方弹出已有客户列表 */
  675. .ac-box { position: relative; }
  676. .ac-list {
  677. position: absolute; z-index: 30; top: calc(100% + 2px); left: 0; right: 0;
  678. max-height: 220px; overflow-y: auto;
  679. background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  680. box-shadow: 0 12px 28px rgba(20, 16, 10, 0.18);
  681. }
  682. .ac-item {
  683. display: block; width: 100%; text-align: left; padding: 7px 12px;
  684. background: none; border: 0; border-bottom: 1px solid rgba(226, 217, 204, 0.5);
  685. font: inherit; color: var(--ink); cursor: pointer;
  686. }
  687. .ac-item:last-child { border-bottom: 0; }
  688. .ac-item:hover { background: #f3eee4; }
  689. .ac-item small { display: block; opacity: 0.65; font-size: 12px; }
  690. /* 标题右侧问号提示:悬停或聚焦时弹出说明文字 */
  691. .q-tip {
  692. position: relative;
  693. display: inline-flex;
  694. align-items: center;
  695. justify-content: center;
  696. width: 18px;
  697. height: 18px;
  698. margin-left: 8px;
  699. border-radius: 50%;
  700. border: 1px solid var(--line);
  701. background: #f3eee4;
  702. color: var(--muted);
  703. font-size: 12px;
  704. font-weight: 600;
  705. cursor: help;
  706. vertical-align: 2px;
  707. }
  708. .q-tip .q-tip-pop {
  709. display: none;
  710. position: absolute;
  711. top: 24px;
  712. left: -10px;
  713. width: 320px;
  714. padding: 10px 12px;
  715. background: #2f2a22;
  716. color: #fff;
  717. font-size: 12px;
  718. font-weight: 400;
  719. line-height: 1.6;
  720. text-align: left;
  721. border-radius: 8px;
  722. z-index: 30;
  723. box-shadow: 0 8px 24px rgba(20, 16, 10, 0.25);
  724. }
  725. .q-tip:hover .q-tip-pop, .q-tip:focus .q-tip-pop, .q-tip.open .q-tip-pop { display: block; }
  726. /* 表头里的问号:单元格是 nowrap,弹层要单独允许换行;靠右的列让弹层向左展开,
  727. 否则会被 .panel 的横向滚动裁掉(overflow-x:auto 同时会裁掉纵向溢出) */
  728. th .q-tip-pop { white-space: normal; }
  729. .q-tip.pop-right .q-tip-pop { left: auto; right: -6px; }
  730. /* 初始密码:输入框与「自动生成」按钮同行,等宽字体便于分辨易混字符 */
  731. .pwd-row { display: flex; align-items: center; gap: 8px; }
  732. .pwd-row input {
  733. flex: 1; min-width: 0; max-width: none;
  734. font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px;
  735. }
  736. .pwd-row input.flash { animation: pwdFlash 520ms ease both; }
  737. @keyframes pwdFlash { from { background: #dff3ef; border-color: var(--teal); } to { background: white; border-color: var(--line); } }
  738. /* 新增档案时一并开通登录账号:可选区块,左侧色条把「登录名—初始密码—手机号」归为一组,
  739. 浅底与卡片底色区分,表明这几项不是档案必填内容(都留空即只建档案) */
  740. .acct-new {
  741. margin-top: 8px;
  742. padding: 8px 12px 6px;
  743. border: 1px solid var(--line);
  744. border-left: 3px solid var(--teal);
  745. border-radius: 10px;
  746. background: #fbf7ef;
  747. }
  748. .acct-new .note { margin-top: 4px; }
  749. /* 登录名与手机号并排显示 */
  750. .acct-grid {
  751. display: grid;
  752. grid-template-columns: 1fr 1fr;
  753. gap: 0 12px;
  754. }
  755. @media (max-width: 580px) { .acct-grid { grid-template-columns: 1fr; } }
  756. /* 弹窗内可折叠说明,默认收起 */
  757. details.note-details { margin-top: 4px; }
  758. details.note-details summary {
  759. cursor: pointer; font-size: 12px; color: var(--muted);
  760. list-style: none; display: inline-flex; align-items: center; gap: 4px;
  761. }
  762. details.note-details summary::before { content: '?'; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); background: #f3eee4; font-size: 10px; font-weight: 600; flex: none; }
  763. details.note-details[open] summary::before { content: '\2212'; }
  764. details.note-details .note { margin-top: 4px; }
  765. /* 成员负责范围:下拉多选树。收起时是一行选择框,展开后浮层内是区域—客户勾选树,区域可整块勾选 */
  766. .scope-pick { position: relative; margin-top: 6px; }
  767. .scope-pick-btn {
  768. width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  769. padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  770. background: var(--card); font-size: 14px; text-align: left;
  771. transition: border-color 160ms ease;
  772. }
  773. .scope-pick-btn:hover, .scope-pick.open .scope-pick-btn { border-color: var(--teal); }
  774. .scope-pick-text {
  775. flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  776. color: var(--muted);
  777. }
  778. .scope-pick-caret { color: var(--muted); font-size: 12px; transition: transform 160ms ease; }
  779. .scope-pick.open .scope-pick-caret { transform: rotate(180deg); }
  780. .scope-pick-pop {
  781. display: none; position: absolute; z-index: 6; left: 0; right: 0; margin-top: 6px;
  782. padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  783. box-shadow: 0 14px 34px rgba(40, 32, 20, 0.16);
  784. }
  785. .scope-pick.open .scope-pick-pop { display: block; animation: fadeIn 140ms ease both; }
  786. .scope-pick-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
  787. .scope-pick-bar .note { margin-left: auto; }
  788. .scope-pick-scroll { max-height: 250px; overflow: auto; }
  789. ul.tree .sp-region { font-weight: 600; }
  790. ul.tree .sp-region, ul.tree .sp-ent { margin: 3px 0; }
  791. /* 导出激活码弹窗:区域范围勾选树在弹窗内直接展开(勾选父节点即整块勾选其下级) */
  792. .ex-tree {
  793. max-height: 262px; overflow: auto; margin: 0 0 12px;
  794. padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbf7ef;
  795. }
  796. .ex-tree ul.tree { margin: 2px 0; }
  797. .ex-tree label.ck { font-weight: normal; }
  798. /* 工单流程:状态筛选 tabs */
  799. .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  800. .tab {
  801. display: inline-flex; align-items: center; gap: 6px;
  802. border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  803. padding: 6px 14px; font-size: 13px; color: var(--muted);
  804. transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  805. }
  806. .tab b { font-size: 12px; color: inherit; opacity: 0.75; }
  807. .tab:hover { border-color: var(--teal); color: var(--teal-ink); transform: translateY(-1px); }
  808. .tab.active { background: var(--teal-ink); border-color: var(--teal-ink); color: #f3efe6; }
  809. .tab.active b { opacity: 0.9; }
  810. /* 运维团队:tab 与「开通运维团队」按钮同行,tab 在左按钮在右 */
  811. .team-tabs { justify-content: space-between; margin-bottom: 14px; }
  812. .panel-sub { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
  813. /* 某类型尚未开通团队时的空白 tab 页:虚线空态 + 居中开通入口 */
  814. .team-empty {
  815. display: flex; flex-direction: column; align-items: center; gap: 4px;
  816. padding: 46px 18px; border: 1px dashed #d3c6b3; background: transparent;
  817. }
  818. .team-empty-title { font-size: 15px; color: var(--ink); }
  819. .team-empty .note { max-width: 540px; margin-bottom: 10px; }
  820. /* 工单流程:状态流转指示 */
  821. .flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
  822. .fstep {
  823. display: inline-flex; align-items: center;
  824. border: 1px solid var(--line); border-radius: 999px;
  825. padding: 3px 12px; font-size: 12px; color: var(--muted); background: var(--card);
  826. }
  827. .fstep.done { border-color: #bcd9c8; color: var(--green); background: #e5f4ea; }
  828. .fstep.now { border-color: var(--teal); color: var(--teal-ink); background: #e5f3f2; font-weight: 600; }
  829. .fstep.bad { border-color: #eac4bc; color: var(--red); background: #fde8e4; }
  830. .farrow { color: var(--muted); font-size: 12px; }
  831. .fstep.clickable {
  832. cursor: pointer; border-style: dashed; border-color: var(--teal); color: var(--teal-ink);
  833. transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  834. }
  835. .fstep.clickable:hover {
  836. transform: translateY(-1px);
  837. background: #eef7f5;
  838. box-shadow: 0 0 0 2px rgba(14, 110, 104, 0.15);
  839. }
  840. /* ===== 区域管理:概况卡片 + 钻取列表 ===== */
  841. /* 右栏允许收缩到 fr 份额以内,宽表格在 panel 内部横向滚动,避免挤压左侧区域树 */
  842. .region-over { min-height: 0; min-width: 0; }
  843. .ov-grid {
  844. display: grid;
  845. grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  846. gap: 14px;
  847. align-content: start;
  848. }
  849. button.ov-card {
  850. text-align: left;
  851. width: 100%;
  852. display: flex;
  853. flex-direction: column;
  854. gap: 6px;
  855. cursor: pointer;
  856. border: 1px solid var(--line);
  857. }
  858. button.ov-card:hover {
  859. border-color: var(--teal);
  860. transform: translateY(-2px);
  861. box-shadow: 0 14px 32px rgba(40, 32, 20, 0.12);
  862. }
  863. .ov-card .ov-title { color: var(--muted); font-size: 13.5px; }
  864. .ov-card b { font-size: 30px; margin: 2px 0; line-height: 1.1; word-break: break-word; }
  865. .ov-card .ov-sub { color: var(--muted); font-size: 12.5px; line-height: 1.55; min-height: 36px; }
  866. .ov-card .ov-go { color: var(--teal-ink); font-size: 12.5px; margin-top: 2px; }
  867. .ov-head .row { margin-bottom: 2px; }
  868. /* 危险色 ghost 按钮 */
  869. .btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
  870. .btn.danger:hover { background: #fde8e4; }
  871. /* 概况卡片与右侧钻取视图入场动画(保持既有动效) */
  872. .ov-card { animation: fadeInUp 300ms ease both; }
  873. /* 列表筛选条:区域/付款周期下拉框与名称文本框排在表头上方,底部对齐 */
  874. .filters {
  875. display: flex;
  876. flex-wrap: wrap;
  877. gap: 10px 16px;
  878. align-items: flex-end;
  879. margin: 6px 0 12px;
  880. }
  881. .filters .f-item label { margin: 0 0 4px; }
  882. .filters .f-item select,
  883. .filters .f-item input { width: auto; min-width: 200px; max-width: 320px; }
  884. /* 多选筛选标签组:工单类型与状态用标签代替下拉,可单选也可多选,点一下选中、再点取消。
  885. 两组各占一整行,标签与标签组同行排布,避免与日期框挤在一起错位 */
  886. .filters .f-item.f-wide { flex-basis: 100%; display: flex; align-items: center; gap: 10px; }
  887. .filters .f-item.f-wide label { margin: 0; white-space: nowrap; }
  888. .filters .f-item .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  889. .filters .f-item .chip {
  890. border: 1px solid var(--line);
  891. background: var(--card);
  892. color: var(--muted);
  893. border-radius: 999px;
  894. padding: 3px 11px;
  895. font-size: 13px;
  896. line-height: 1.6;
  897. transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  898. }
  899. .filters .f-item .chip:hover { border-color: var(--teal); color: var(--teal); }
  900. .filters .f-item .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }