styles.css 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710
  1. :root {
  2. color-scheme: light;
  3. --bg: #f5f7fb;
  4. --surface: #ffffff;
  5. --surface-soft: #f8fafc;
  6. --line: #dbe3ee;
  7. --line-strong: #c6d1df;
  8. --text: #172033;
  9. --muted: #64748b;
  10. --brand: #1d4ed8;
  11. --brand-dark: #143b8f;
  12. --brand-soft: #e7efff;
  13. --success: #0f8f6d;
  14. --warning: #b7791f;
  15. --danger: #c2413d;
  16. --info: #2363b8;
  17. --shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
  18. }
  19. * {
  20. box-sizing: border-box;
  21. }
  22. body {
  23. margin: 0;
  24. min-width: 320px;
  25. background: var(--bg);
  26. color: var(--text);
  27. font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  28. letter-spacing: 0;
  29. }
  30. [hidden] {
  31. display: none !important;
  32. }
  33. button,
  34. input,
  35. select,
  36. textarea {
  37. font: inherit;
  38. }
  39. button {
  40. cursor: pointer;
  41. }
  42. button:disabled,
  43. button.is-disabled {
  44. cursor: not-allowed;
  45. opacity: 0.45;
  46. }
  47. .login-screen {
  48. min-height: 100vh;
  49. display: grid;
  50. place-items: center;
  51. padding: 32px;
  52. background:
  53. linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(15, 143, 109, 0.08)),
  54. var(--bg);
  55. }
  56. .login-card {
  57. width: min(980px, 100%);
  58. display: grid;
  59. grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  60. gap: 28px;
  61. padding: 28px;
  62. border: 1px solid var(--line);
  63. border-radius: 8px;
  64. background: var(--surface);
  65. box-shadow: var(--shadow);
  66. }
  67. .login-copy {
  68. display: grid;
  69. align-content: center;
  70. }
  71. .login-copy h1 {
  72. margin-bottom: 16px;
  73. font-size: 34px;
  74. }
  75. .login-copy p:last-child {
  76. margin: 0;
  77. color: var(--muted);
  78. line-height: 1.7;
  79. }
  80. .login-panel {
  81. display: grid;
  82. gap: 12px;
  83. }
  84. .login-form {
  85. display: grid;
  86. gap: 12px;
  87. padding: 18px;
  88. border: 1px solid var(--line);
  89. border-radius: 8px;
  90. background: var(--surface-soft);
  91. }
  92. .register-form {
  93. background: var(--surface);
  94. }
  95. .register-password-grid {
  96. display: grid;
  97. grid-template-columns: repeat(2, minmax(0, 1fr));
  98. gap: 12px;
  99. }
  100. .form-heading {
  101. display: grid;
  102. gap: 4px;
  103. }
  104. .form-heading strong {
  105. font-size: 16px;
  106. }
  107. .form-heading small {
  108. color: var(--muted);
  109. line-height: 1.5;
  110. }
  111. .login-form label {
  112. display: grid;
  113. gap: 7px;
  114. }
  115. .login-form label span {
  116. color: var(--muted);
  117. font-size: 13px;
  118. }
  119. .login-form input {
  120. width: 100%;
  121. min-height: 44px;
  122. padding: 0 12px;
  123. border: 1px solid var(--line);
  124. border-radius: 8px;
  125. background: var(--surface);
  126. }
  127. .login-message {
  128. min-height: 18px;
  129. margin: 0;
  130. color: var(--danger);
  131. font-size: 13px;
  132. }
  133. .demo-accounts {
  134. display: grid;
  135. gap: 10px;
  136. }
  137. .account-fill-button {
  138. min-height: 74px;
  139. padding: 14px 16px;
  140. border: 1px solid var(--line);
  141. border-radius: 8px;
  142. background: var(--surface-soft);
  143. text-align: left;
  144. }
  145. .account-fill-button:hover {
  146. border-color: var(--brand);
  147. box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
  148. }
  149. .account-fill-button strong,
  150. .account-fill-button span,
  151. .account-fill-button em {
  152. display: block;
  153. }
  154. .account-fill-button span {
  155. margin-top: 5px;
  156. color: var(--text);
  157. font-size: 13px;
  158. }
  159. .account-fill-button em {
  160. margin-top: 4px;
  161. color: var(--muted);
  162. font-size: 13px;
  163. font-style: normal;
  164. }
  165. .app-shell {
  166. display: grid;
  167. grid-template-columns: 260px minmax(0, 1fr);
  168. min-height: 100vh;
  169. }
  170. .sidebar {
  171. position: sticky;
  172. top: 0;
  173. height: 100vh;
  174. padding: 22px 18px;
  175. background: #0f172a;
  176. color: #f8fafc;
  177. display: flex;
  178. flex-direction: column;
  179. gap: 24px;
  180. }
  181. .brand {
  182. display: flex;
  183. gap: 12px;
  184. align-items: center;
  185. }
  186. .brand-mark {
  187. width: 42px;
  188. height: 42px;
  189. display: grid;
  190. place-items: center;
  191. border-radius: 8px;
  192. background: #2f80ed;
  193. font-weight: 800;
  194. }
  195. .brand strong,
  196. .brand small {
  197. display: block;
  198. }
  199. .brand small {
  200. margin-top: 4px;
  201. color: #a9b7cc;
  202. font-size: 12px;
  203. }
  204. .nav-list {
  205. display: grid;
  206. gap: 8px;
  207. }
  208. .nav-item {
  209. width: 100%;
  210. display: flex;
  211. align-items: center;
  212. justify-content: space-between;
  213. min-height: 44px;
  214. padding: 0 12px;
  215. border: 0;
  216. border-radius: 8px;
  217. background: transparent;
  218. color: #d7deea;
  219. text-align: left;
  220. }
  221. .nav-item b {
  222. color: #718096;
  223. font-size: 12px;
  224. }
  225. .nav-item:hover,
  226. .nav-item.active {
  227. background: rgba(255, 255, 255, 0.1);
  228. color: #ffffff;
  229. }
  230. .sidebar-card {
  231. margin-top: auto;
  232. padding: 16px;
  233. border: 1px solid rgba(255, 255, 255, 0.12);
  234. border-radius: 8px;
  235. background: rgba(255, 255, 255, 0.06);
  236. }
  237. .sidebar-card p {
  238. margin: 10px 0 6px;
  239. color: #cbd5e1;
  240. }
  241. .sidebar-card strong {
  242. font-size: 28px;
  243. }
  244. .status-dot {
  245. width: 9px;
  246. height: 9px;
  247. display: inline-block;
  248. border-radius: 50%;
  249. background: #4ade80;
  250. box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.14);
  251. }
  252. .main {
  253. min-width: 0;
  254. padding: 24px;
  255. }
  256. .topbar,
  257. .panel-heading,
  258. .top-actions,
  259. .form-actions,
  260. .modal-header,
  261. .drawer-actions {
  262. display: flex;
  263. align-items: center;
  264. }
  265. .topbar,
  266. .panel-heading,
  267. .modal-header {
  268. justify-content: space-between;
  269. gap: 16px;
  270. }
  271. .topbar {
  272. margin-bottom: 18px;
  273. }
  274. .eyebrow {
  275. margin: 0 0 6px;
  276. color: var(--muted);
  277. font-size: 12px;
  278. font-weight: 700;
  279. }
  280. h1,
  281. h2,
  282. h3,
  283. p {
  284. margin-top: 0;
  285. }
  286. h1 {
  287. margin-bottom: 0;
  288. font-size: 28px;
  289. line-height: 1.25;
  290. }
  291. h2 {
  292. margin-bottom: 0;
  293. font-size: 18px;
  294. }
  295. h3 {
  296. font-size: 15px;
  297. }
  298. .top-actions,
  299. .drawer-actions {
  300. gap: 10px;
  301. }
  302. .user-panel {
  303. display: grid;
  304. grid-template-columns: auto auto auto auto;
  305. align-items: center;
  306. gap: 8px;
  307. padding: 6px 8px 6px 12px;
  308. border: 1px solid var(--line);
  309. border-radius: 8px;
  310. background: var(--surface);
  311. }
  312. .user-panel span {
  313. color: var(--muted);
  314. font-size: 12px;
  315. }
  316. .user-panel strong {
  317. font-size: 13px;
  318. }
  319. .user-panel em {
  320. padding: 3px 7px;
  321. border-radius: 999px;
  322. background: var(--brand-soft);
  323. color: var(--brand);
  324. font-size: 12px;
  325. font-style: normal;
  326. font-weight: 700;
  327. }
  328. .primary-button,
  329. .ghost-button,
  330. .icon-button,
  331. .success-button,
  332. .danger-button,
  333. .small-button {
  334. border: 1px solid transparent;
  335. border-radius: 8px;
  336. min-height: 38px;
  337. padding: 0 14px;
  338. background: var(--surface);
  339. color: var(--text);
  340. }
  341. .primary-button {
  342. background: var(--brand);
  343. color: #ffffff;
  344. }
  345. .primary-button:hover {
  346. background: var(--brand-dark);
  347. }
  348. .ghost-button {
  349. border-color: var(--line);
  350. }
  351. .success-button {
  352. background: var(--success);
  353. color: #ffffff;
  354. }
  355. .danger-button {
  356. background: var(--danger);
  357. color: #ffffff;
  358. }
  359. .small-button {
  360. min-height: 30px;
  361. padding: 0 10px;
  362. border-color: var(--line);
  363. font-size: 12px;
  364. }
  365. .link-button {
  366. padding: 0;
  367. border: 0;
  368. background: transparent;
  369. color: var(--brand);
  370. font: inherit;
  371. font-weight: 800;
  372. text-align: left;
  373. }
  374. .customer-cell-button {
  375. width: 100%;
  376. min-width: 210px;
  377. display: grid;
  378. gap: 5px;
  379. margin: -8px -10px;
  380. padding: 8px 10px;
  381. border: 0;
  382. border-radius: 8px;
  383. background: transparent;
  384. color: inherit;
  385. text-align: left;
  386. }
  387. .customer-cell-button:hover,
  388. .customer-cell-button:focus-visible {
  389. background: var(--brand-soft);
  390. }
  391. .customer-cell-button strong {
  392. color: var(--brand);
  393. font-weight: 800;
  394. }
  395. .customer-cell-button small {
  396. color: var(--muted);
  397. line-height: 1.45;
  398. white-space: normal;
  399. }
  400. .customer-cell-meta {
  401. display: flex;
  402. flex-wrap: wrap;
  403. gap: 6px;
  404. }
  405. .icon-button {
  406. width: 38px;
  407. padding: 0;
  408. border-color: var(--line);
  409. font-size: 18px;
  410. }
  411. .filter-bar {
  412. display: grid;
  413. grid-template-columns: repeat(4, minmax(150px, 1fr));
  414. gap: 12px;
  415. margin-bottom: 16px;
  416. padding: 14px;
  417. border: 1px solid var(--line);
  418. border-radius: 8px;
  419. background: var(--surface);
  420. }
  421. label span {
  422. display: block;
  423. margin-bottom: 6px;
  424. color: var(--muted);
  425. font-size: 12px;
  426. font-weight: 700;
  427. }
  428. input,
  429. select,
  430. textarea {
  431. width: 100%;
  432. border: 1px solid var(--line);
  433. border-radius: 8px;
  434. background: #ffffff;
  435. color: var(--text);
  436. outline: none;
  437. }
  438. input,
  439. select {
  440. height: 38px;
  441. padding: 0 10px;
  442. }
  443. input[type="checkbox"] {
  444. width: auto;
  445. height: auto;
  446. padding: 0;
  447. box-shadow: none;
  448. }
  449. textarea {
  450. resize: vertical;
  451. padding: 10px;
  452. }
  453. input:focus,
  454. select:focus,
  455. textarea:focus {
  456. border-color: var(--brand);
  457. box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  458. }
  459. .page-section {
  460. display: none;
  461. }
  462. .page-section.active {
  463. display: block;
  464. }
  465. .kpi-grid,
  466. .insight-grid,
  467. .section-grid,
  468. .analysis-grid {
  469. display: grid;
  470. gap: 16px;
  471. }
  472. .kpi-grid {
  473. grid-template-columns: repeat(4, minmax(0, 1fr));
  474. margin-bottom: 16px;
  475. }
  476. .metric-card,
  477. .panel {
  478. border: 1px solid var(--line);
  479. border-radius: 8px;
  480. background: var(--surface);
  481. box-shadow: var(--shadow);
  482. }
  483. .metric-card {
  484. padding: 18px;
  485. }
  486. .metric-card span,
  487. .metric-card em {
  488. display: block;
  489. color: var(--muted);
  490. font-style: normal;
  491. }
  492. .metric-card strong {
  493. display: block;
  494. margin: 10px 0 8px;
  495. font-size: 28px;
  496. line-height: 1;
  497. }
  498. .metric-card em {
  499. font-size: 13px;
  500. }
  501. .insight-grid {
  502. grid-template-columns: 1.1fr 1fr 1fr;
  503. margin-bottom: 16px;
  504. }
  505. .section-grid.two,
  506. .analysis-grid {
  507. grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  508. }
  509. .analysis-grid {
  510. grid-template-columns: 1fr 0.8fr 0.8fr;
  511. }
  512. .panel {
  513. min-width: 0;
  514. padding: 18px;
  515. margin-bottom: 16px;
  516. }
  517. .panel-chip {
  518. display: inline-flex;
  519. align-items: center;
  520. min-height: 28px;
  521. padding: 0 10px;
  522. border-radius: 999px;
  523. background: #fff3e3;
  524. color: var(--warning);
  525. font-size: 12px;
  526. font-weight: 700;
  527. }
  528. .funnel {
  529. display: grid;
  530. gap: 12px;
  531. margin-top: 18px;
  532. }
  533. .funnel-row {
  534. width: var(--w);
  535. min-height: 48px;
  536. display: flex;
  537. align-items: center;
  538. justify-content: space-between;
  539. padding: 0 16px;
  540. border-radius: 8px;
  541. color: #ffffff;
  542. }
  543. .tier-a {
  544. background: #c2413d;
  545. }
  546. .tier-b {
  547. background: #b7791f;
  548. }
  549. .tier-c {
  550. background: #2363b8;
  551. }
  552. .bar-list,
  553. .rank-list,
  554. .risk-list,
  555. .checklist,
  556. .permission-list,
  557. .record-list,
  558. .inspection-summary {
  559. display: grid;
  560. gap: 12px;
  561. margin-top: 18px;
  562. }
  563. .inspection-summary {
  564. grid-template-columns: repeat(3, minmax(0, 1fr));
  565. }
  566. .inspection-summary article {
  567. padding: 14px;
  568. border: 1px solid var(--line);
  569. border-radius: 8px;
  570. background: var(--surface-soft);
  571. }
  572. .inspection-summary span {
  573. color: var(--muted);
  574. font-size: 12px;
  575. }
  576. .inspection-summary strong {
  577. display: block;
  578. margin-top: 6px;
  579. font-size: 24px;
  580. }
  581. .bar-item {
  582. display: grid;
  583. grid-template-columns: 68px minmax(0, 1fr) 36px;
  584. gap: 10px;
  585. align-items: center;
  586. }
  587. .bar-item span,
  588. .bar-item strong {
  589. font-size: 13px;
  590. }
  591. .bar-item div {
  592. height: 10px;
  593. overflow: hidden;
  594. border-radius: 999px;
  595. background: var(--brand-soft);
  596. }
  597. .bar-item i {
  598. display: block;
  599. height: 100%;
  600. border-radius: inherit;
  601. background: #2f80ed;
  602. }
  603. .risk-item {
  604. padding: 13px;
  605. border-left: 4px solid var(--info);
  606. border-radius: 8px;
  607. background: var(--surface-soft);
  608. }
  609. .risk-item b,
  610. .risk-item span {
  611. display: block;
  612. }
  613. .risk-item span {
  614. margin-top: 5px;
  615. color: var(--muted);
  616. font-size: 13px;
  617. line-height: 1.5;
  618. }
  619. .risk-item.danger {
  620. border-left-color: var(--danger);
  621. }
  622. .risk-item.warning {
  623. border-left-color: var(--warning);
  624. }
  625. .risk-item.info {
  626. border-left-color: var(--info);
  627. }
  628. .segmented {
  629. display: inline-flex;
  630. padding: 3px;
  631. border: 1px solid var(--line);
  632. border-radius: 8px;
  633. background: var(--surface-soft);
  634. }
  635. .segmented button {
  636. min-width: 54px;
  637. height: 30px;
  638. border: 0;
  639. border-radius: 6px;
  640. background: transparent;
  641. color: var(--muted);
  642. }
  643. .segmented button.active {
  644. background: #ffffff;
  645. color: var(--brand);
  646. box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
  647. }
  648. .table-wrap {
  649. margin-top: 14px;
  650. overflow-x: auto;
  651. }
  652. table {
  653. width: 100%;
  654. border-collapse: collapse;
  655. min-width: 1120px;
  656. }
  657. th,
  658. td {
  659. padding: 13px 10px;
  660. border-bottom: 1px solid var(--line);
  661. text-align: left;
  662. white-space: nowrap;
  663. }
  664. th {
  665. color: var(--muted);
  666. font-size: 12px;
  667. font-weight: 700;
  668. }
  669. tbody tr:hover {
  670. background: var(--surface-soft);
  671. }
  672. .badge,
  673. .status-badge,
  674. .data-tag {
  675. display: inline-flex;
  676. align-items: center;
  677. min-height: 26px;
  678. padding: 0 9px;
  679. border-radius: 999px;
  680. font-size: 12px;
  681. font-weight: 700;
  682. }
  683. .badge {
  684. background: var(--brand-soft);
  685. color: var(--brand);
  686. }
  687. .data-tag {
  688. min-height: 22px;
  689. margin-left: 6px;
  690. padding: 0 7px;
  691. background: #f1f5f9;
  692. color: var(--muted);
  693. font-size: 11px;
  694. }
  695. .status-badge.closed,
  696. .status-badge.normal {
  697. background: #e8f7f1;
  698. color: var(--success);
  699. }
  700. .status-badge.audit,
  701. .status-badge.orange {
  702. background: #fff3e3;
  703. color: var(--warning);
  704. }
  705. .status-badge.risk {
  706. background: #ffecec;
  707. color: var(--danger);
  708. }
  709. .status-badge.blue {
  710. background: var(--brand-soft);
  711. color: var(--brand);
  712. }
  713. .action-cell {
  714. display: flex;
  715. gap: 8px;
  716. }
  717. .drawer-backdrop,
  718. .modal-backdrop {
  719. position: fixed;
  720. inset: 0;
  721. z-index: 20;
  722. background: rgba(15, 23, 42, 0.32);
  723. }
  724. .detail-drawer {
  725. position: fixed;
  726. top: 0;
  727. right: 0;
  728. z-index: 30;
  729. width: min(470px, 100vw);
  730. height: 100vh;
  731. display: flex;
  732. flex-direction: column;
  733. background: #ffffff;
  734. box-shadow: -22px 0 48px rgba(23, 32, 51, 0.16);
  735. transform: translateX(104%);
  736. transition: transform 0.22s ease;
  737. }
  738. .detail-drawer.open {
  739. transform: translateX(0);
  740. }
  741. .drawer-header {
  742. display: flex;
  743. align-items: center;
  744. justify-content: space-between;
  745. gap: 16px;
  746. padding: 20px;
  747. border-bottom: 1px solid var(--line);
  748. }
  749. .drawer-body {
  750. overflow-y: auto;
  751. padding: 20px;
  752. }
  753. .detail-score {
  754. padding: 18px;
  755. border-radius: 8px;
  756. background: var(--brand-soft);
  757. }
  758. .detail-score span,
  759. .detail-score strong {
  760. display: block;
  761. }
  762. .detail-score span {
  763. color: var(--muted);
  764. }
  765. .detail-score strong {
  766. margin-top: 8px;
  767. color: var(--brand);
  768. font-size: 44px;
  769. line-height: 1;
  770. }
  771. .detail-list {
  772. display: grid;
  773. grid-template-columns: repeat(2, minmax(0, 1fr));
  774. gap: 12px;
  775. margin: 16px 0;
  776. }
  777. .detail-list div {
  778. padding: 12px;
  779. border: 1px solid var(--line);
  780. border-radius: 8px;
  781. }
  782. dt {
  783. color: var(--muted);
  784. font-size: 12px;
  785. }
  786. dd {
  787. margin: 6px 0 0;
  788. font-weight: 700;
  789. }
  790. .timeline {
  791. padding-top: 8px;
  792. }
  793. .detail-block {
  794. margin: 16px 0;
  795. padding: 14px;
  796. border: 1px solid var(--line);
  797. border-radius: 8px;
  798. background: var(--surface-soft);
  799. }
  800. .detail-block h3,
  801. .detail-block p {
  802. margin-bottom: 0;
  803. }
  804. .detail-block p,
  805. .muted-text {
  806. color: var(--muted);
  807. line-height: 1.6;
  808. }
  809. .record-card {
  810. padding: 12px;
  811. border: 1px solid var(--line);
  812. border-radius: 8px;
  813. background: #ffffff;
  814. }
  815. .record-card div {
  816. display: flex;
  817. justify-content: space-between;
  818. gap: 10px;
  819. margin-bottom: 8px;
  820. }
  821. .record-card span,
  822. .record-card small {
  823. color: var(--muted);
  824. }
  825. .record-card p {
  826. margin-bottom: 8px;
  827. line-height: 1.55;
  828. }
  829. .timeline ol {
  830. display: grid;
  831. gap: 12px;
  832. margin: 0;
  833. padding-left: 20px;
  834. }
  835. .timeline li {
  836. padding-left: 4px;
  837. line-height: 1.55;
  838. }
  839. .drawer-actions {
  840. flex-wrap: wrap;
  841. margin-top: 18px;
  842. padding-top: 18px;
  843. border-top: 1px solid var(--line);
  844. }
  845. .modal {
  846. position: fixed;
  847. top: 50%;
  848. left: 50%;
  849. z-index: 40;
  850. width: min(760px, calc(100vw - 32px));
  851. max-height: calc(100vh - 48px);
  852. overflow-y: auto;
  853. padding: 20px;
  854. border-radius: 8px;
  855. background: #ffffff;
  856. box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  857. transform: translate(-50%, -50%) scale(0.98);
  858. opacity: 0;
  859. pointer-events: none;
  860. transition: 0.18s ease;
  861. }
  862. .modal.open {
  863. transform: translate(-50%, -50%) scale(1);
  864. opacity: 1;
  865. pointer-events: auto;
  866. }
  867. .modal-form,
  868. .settings-form {
  869. display: grid;
  870. grid-template-columns: repeat(2, minmax(0, 1fr));
  871. gap: 12px;
  872. margin-top: 18px;
  873. }
  874. .modal-form .full,
  875. .settings-form .full {
  876. grid-column: 1 / -1;
  877. }
  878. .form-actions {
  879. justify-content: flex-end;
  880. gap: 10px;
  881. }
  882. .trend {
  883. height: 260px;
  884. display: grid;
  885. grid-template-columns: repeat(7, 1fr);
  886. align-items: end;
  887. gap: 12px;
  888. padding-top: 18px;
  889. }
  890. .trend span {
  891. position: relative;
  892. min-height: 28px;
  893. border-radius: 8px 8px 0 0;
  894. background: linear-gradient(180deg, #2f80ed, #a7c7ff);
  895. height: var(--h);
  896. }
  897. .trend b {
  898. position: absolute;
  899. left: 50%;
  900. bottom: -24px;
  901. transform: translateX(-50%);
  902. color: var(--muted);
  903. font-size: 12px;
  904. }
  905. .rank-list div,
  906. .permission-list div,
  907. .insight-note p,
  908. .checklist label {
  909. padding: 13px;
  910. border: 1px solid var(--line);
  911. border-radius: 8px;
  912. background: var(--surface-soft);
  913. }
  914. .rank-list div,
  915. .permission-list div {
  916. display: flex;
  917. justify-content: space-between;
  918. gap: 12px;
  919. }
  920. .permission-list div {
  921. display: grid;
  922. }
  923. .permission-list span,
  924. .insight-note p {
  925. color: var(--muted);
  926. line-height: 1.55;
  927. }
  928. .admin-grid,
  929. .admin-kpis,
  930. .compact-form,
  931. .dictionary-form {
  932. display: grid;
  933. gap: 12px;
  934. }
  935. .admin-grid {
  936. grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  937. align-items: start;
  938. }
  939. .admin-kpis {
  940. grid-template-columns: repeat(4, minmax(0, 1fr));
  941. margin-bottom: 16px;
  942. }
  943. .compact-form {
  944. grid-template-columns: repeat(5, minmax(0, 1fr));
  945. align-items: end;
  946. margin-top: 16px;
  947. }
  948. .compact-form .form-actions {
  949. align-self: end;
  950. }
  951. .admin-table,
  952. .admin-review-table {
  953. min-width: 860px;
  954. }
  955. .admin-review-table {
  956. min-width: 1180px;
  957. }
  958. .inline-input {
  959. min-width: 120px;
  960. }
  961. .role-card-list {
  962. display: grid;
  963. gap: 12px;
  964. margin-top: 16px;
  965. }
  966. .role-card {
  967. display: grid;
  968. gap: 14px;
  969. padding: 14px;
  970. border: 1px solid var(--line);
  971. border-radius: 8px;
  972. background: var(--surface-soft);
  973. }
  974. .role-card-head {
  975. display: flex;
  976. justify-content: space-between;
  977. gap: 12px;
  978. align-items: flex-start;
  979. }
  980. .role-card-head strong,
  981. .role-card-head span,
  982. .role-card-section b {
  983. display: block;
  984. }
  985. .role-card-head span {
  986. margin-top: 5px;
  987. color: var(--muted);
  988. font-size: 13px;
  989. line-height: 1.45;
  990. }
  991. .role-card-section b {
  992. margin-bottom: 8px;
  993. color: var(--muted);
  994. font-size: 12px;
  995. }
  996. .checkbox-grid {
  997. display: grid;
  998. grid-template-columns: repeat(2, minmax(0, 1fr));
  999. gap: 8px;
  1000. }
  1001. .checkbox-grid label {
  1002. display: flex;
  1003. align-items: center;
  1004. gap: 8px;
  1005. min-height: 36px;
  1006. padding: 8px 10px;
  1007. border: 1px solid var(--line);
  1008. border-radius: 8px;
  1009. background: #ffffff;
  1010. color: var(--text);
  1011. font-size: 13px;
  1012. }
  1013. .checkbox-grid label span {
  1014. margin: 0;
  1015. color: inherit;
  1016. font-size: 13px;
  1017. font-weight: 600;
  1018. }
  1019. .dictionary-form {
  1020. grid-template-columns: repeat(4, minmax(0, 1fr));
  1021. margin-top: 16px;
  1022. }
  1023. .toast {
  1024. position: fixed;
  1025. right: 24px;
  1026. bottom: 24px;
  1027. z-index: 60;
  1028. max-width: min(360px, calc(100vw - 48px));
  1029. padding: 13px 16px;
  1030. border-radius: 8px;
  1031. background: #0f172a;
  1032. color: #ffffff;
  1033. box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  1034. opacity: 0;
  1035. transform: translateY(10px);
  1036. pointer-events: none;
  1037. transition: 0.18s ease;
  1038. }
  1039. .toast.show {
  1040. opacity: 1;
  1041. transform: translateY(0);
  1042. }
  1043. .permission-list div.is-current {
  1044. border-color: var(--brand);
  1045. background: var(--brand-soft);
  1046. }
  1047. @media (max-width: 1180px) {
  1048. .kpi-grid,
  1049. .admin-kpis,
  1050. .insight-grid,
  1051. .section-grid.two,
  1052. .analysis-grid,
  1053. .admin-grid,
  1054. .dictionary-form {
  1055. grid-template-columns: repeat(2, minmax(0, 1fr));
  1056. }
  1057. }
  1058. @media (max-width: 860px) {
  1059. .login-card {
  1060. grid-template-columns: 1fr;
  1061. }
  1062. .app-shell {
  1063. grid-template-columns: 1fr;
  1064. }
  1065. .sidebar {
  1066. position: static;
  1067. height: auto;
  1068. }
  1069. .nav-list {
  1070. grid-template-columns: repeat(2, minmax(0, 1fr));
  1071. }
  1072. .sidebar-card {
  1073. display: none;
  1074. }
  1075. .filter-bar {
  1076. grid-template-columns: repeat(2, minmax(0, 1fr));
  1077. }
  1078. .compact-form {
  1079. grid-template-columns: repeat(2, minmax(0, 1fr));
  1080. }
  1081. }
  1082. @media (max-width: 620px) {
  1083. .main {
  1084. padding: 16px;
  1085. }
  1086. .topbar,
  1087. .panel-heading {
  1088. align-items: flex-start;
  1089. flex-direction: column;
  1090. }
  1091. .top-actions,
  1092. .segmented {
  1093. width: 100%;
  1094. flex-wrap: wrap;
  1095. }
  1096. .top-actions .primary-button,
  1097. .top-actions .ghost-button,
  1098. .user-panel,
  1099. .segmented button {
  1100. flex: 1;
  1101. }
  1102. .filter-bar,
  1103. .kpi-grid,
  1104. .modal-form,
  1105. .register-password-grid,
  1106. .settings-form,
  1107. .detail-list,
  1108. .nav-list,
  1109. .section-grid.two,
  1110. .analysis-grid,
  1111. .admin-grid,
  1112. .admin-kpis,
  1113. .compact-form,
  1114. .dictionary-form,
  1115. .checkbox-grid {
  1116. grid-template-columns: 1fr;
  1117. }
  1118. h1 {
  1119. font-size: 24px;
  1120. }
  1121. }
  1122. @media (max-width: 760px) {
  1123. .login-screen {
  1124. min-height: 100svh;
  1125. padding: 0;
  1126. place-items: stretch;
  1127. }
  1128. .login-card {
  1129. width: 100%;
  1130. min-height: 100svh;
  1131. grid-template-columns: 1fr;
  1132. align-content: start;
  1133. gap: 18px;
  1134. padding: 22px;
  1135. border: 0;
  1136. border-radius: 0;
  1137. box-shadow: none;
  1138. }
  1139. .login-copy h1 {
  1140. font-size: 24px;
  1141. }
  1142. .login-copy p:last-child {
  1143. line-height: 1.55;
  1144. }
  1145. .account-fill-button {
  1146. min-height: 0;
  1147. padding: 12px 14px;
  1148. }
  1149. .app-shell {
  1150. display: block;
  1151. }
  1152. .sidebar {
  1153. position: sticky;
  1154. top: 0;
  1155. z-index: 15;
  1156. height: auto;
  1157. gap: 10px;
  1158. padding: 10px 10px 8px;
  1159. border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  1160. }
  1161. .brand {
  1162. gap: 8px;
  1163. }
  1164. .brand-mark {
  1165. width: 32px;
  1166. height: 32px;
  1167. }
  1168. .brand strong {
  1169. font-size: 14px;
  1170. }
  1171. .brand small,
  1172. .sidebar-card,
  1173. .nav-item b {
  1174. display: none;
  1175. }
  1176. .nav-list {
  1177. display: flex;
  1178. grid-template-columns: none;
  1179. gap: 8px;
  1180. overflow-x: auto;
  1181. padding-bottom: 2px;
  1182. scrollbar-width: none;
  1183. }
  1184. .nav-list::-webkit-scrollbar {
  1185. display: none;
  1186. }
  1187. .nav-item {
  1188. width: auto;
  1189. flex: 0 0 auto;
  1190. min-height: 34px;
  1191. padding: 0 13px;
  1192. border-radius: 999px;
  1193. background: rgba(255, 255, 255, 0.06);
  1194. }
  1195. .nav-item span {
  1196. white-space: nowrap;
  1197. }
  1198. .main {
  1199. padding: 12px 10px 80px;
  1200. }
  1201. .topbar {
  1202. display: grid;
  1203. gap: 10px;
  1204. margin-bottom: 12px;
  1205. }
  1206. .topbar h1 {
  1207. font-size: 20px;
  1208. }
  1209. .top-actions {
  1210. width: 100%;
  1211. display: grid;
  1212. grid-template-columns: repeat(2, minmax(0, 1fr));
  1213. gap: 8px;
  1214. }
  1215. .user-panel {
  1216. grid-column: 1 / -1;
  1217. grid-template-columns: 1fr auto auto;
  1218. min-width: 0;
  1219. }
  1220. .user-panel span {
  1221. display: none;
  1222. }
  1223. .user-panel strong {
  1224. min-width: 0;
  1225. overflow: hidden;
  1226. text-overflow: ellipsis;
  1227. white-space: nowrap;
  1228. }
  1229. .top-actions .primary-button,
  1230. .top-actions .ghost-button {
  1231. width: 100%;
  1232. min-height: 40px;
  1233. padding: 0 10px;
  1234. }
  1235. .filter-bar {
  1236. display: flex;
  1237. grid-template-columns: none;
  1238. gap: 8px;
  1239. overflow-x: auto;
  1240. margin: 0 -10px 12px;
  1241. padding: 10px;
  1242. border-right: 0;
  1243. border-left: 0;
  1244. border-radius: 0;
  1245. scrollbar-width: none;
  1246. }
  1247. .filter-bar::-webkit-scrollbar {
  1248. display: none;
  1249. }
  1250. .filter-bar label {
  1251. flex: 0 0 142px;
  1252. }
  1253. .filter-bar .search-field {
  1254. flex-basis: 220px;
  1255. }
  1256. input,
  1257. select {
  1258. height: 42px;
  1259. }
  1260. .kpi-grid {
  1261. grid-template-columns: repeat(2, minmax(0, 1fr));
  1262. gap: 10px;
  1263. margin-bottom: 12px;
  1264. }
  1265. .metric-card,
  1266. .panel {
  1267. box-shadow: none;
  1268. }
  1269. .metric-card {
  1270. padding: 13px;
  1271. }
  1272. .metric-card strong {
  1273. margin: 8px 0 6px;
  1274. font-size: 24px;
  1275. }
  1276. .metric-card em {
  1277. font-size: 12px;
  1278. }
  1279. .insight-grid,
  1280. .section-grid,
  1281. .section-grid.two,
  1282. .analysis-grid,
  1283. .inspection-summary,
  1284. .admin-grid,
  1285. .dictionary-form {
  1286. grid-template-columns: 1fr;
  1287. gap: 10px;
  1288. }
  1289. .panel {
  1290. padding: 14px;
  1291. margin-bottom: 12px;
  1292. }
  1293. .panel-heading {
  1294. align-items: flex-start;
  1295. gap: 10px;
  1296. }
  1297. .panel-heading .primary-button,
  1298. .panel-heading .ghost-button,
  1299. .panel-heading .segmented {
  1300. width: 100%;
  1301. }
  1302. .segmented {
  1303. display: flex;
  1304. overflow-x: auto;
  1305. gap: 4px;
  1306. scrollbar-width: none;
  1307. }
  1308. .segmented::-webkit-scrollbar {
  1309. display: none;
  1310. }
  1311. .segmented button {
  1312. min-width: 74px;
  1313. flex: 0 0 auto;
  1314. }
  1315. .table-wrap {
  1316. overflow: visible;
  1317. margin-top: 10px;
  1318. }
  1319. table,
  1320. thead,
  1321. tbody,
  1322. tr,
  1323. td {
  1324. display: block;
  1325. width: 100%;
  1326. min-width: 0;
  1327. }
  1328. table {
  1329. border-collapse: separate;
  1330. }
  1331. thead {
  1332. display: none;
  1333. }
  1334. tbody {
  1335. display: grid;
  1336. gap: 10px;
  1337. }
  1338. tr {
  1339. padding: 12px;
  1340. border: 1px solid var(--line);
  1341. border-radius: 8px;
  1342. background: var(--surface);
  1343. }
  1344. tbody tr:hover {
  1345. background: var(--surface);
  1346. }
  1347. td {
  1348. display: grid;
  1349. grid-template-columns: 82px minmax(0, 1fr);
  1350. gap: 10px;
  1351. align-items: start;
  1352. padding: 7px 0;
  1353. border-bottom: 0;
  1354. white-space: normal;
  1355. }
  1356. td::before {
  1357. content: attr(data-label);
  1358. color: var(--muted);
  1359. font-size: 12px;
  1360. font-weight: 700;
  1361. }
  1362. td[data-label="客户"] {
  1363. padding-top: 0;
  1364. }
  1365. td[data-label="操作"] {
  1366. display: block;
  1367. padding-top: 10px;
  1368. border-top: 1px solid var(--line);
  1369. }
  1370. td[data-label="操作"]::before {
  1371. display: none;
  1372. }
  1373. .action-cell {
  1374. flex-wrap: wrap;
  1375. }
  1376. .action-cell .small-button {
  1377. flex: 1 1 88px;
  1378. min-height: 34px;
  1379. }
  1380. .customer-cell-button {
  1381. min-width: 0;
  1382. margin: -4px 0;
  1383. padding: 6px 8px;
  1384. }
  1385. .funnel-row,
  1386. .bar-item,
  1387. .risk-item {
  1388. min-width: 0;
  1389. }
  1390. .detail-drawer {
  1391. width: 100vw;
  1392. box-shadow: none;
  1393. }
  1394. .drawer-header,
  1395. .drawer-body {
  1396. padding: 16px;
  1397. }
  1398. .detail-list {
  1399. grid-template-columns: 1fr;
  1400. }
  1401. .drawer-actions {
  1402. display: grid;
  1403. grid-template-columns: repeat(2, minmax(0, 1fr));
  1404. }
  1405. .drawer-actions button {
  1406. width: 100%;
  1407. }
  1408. .modal {
  1409. top: auto;
  1410. right: 0;
  1411. bottom: 0;
  1412. left: 0;
  1413. width: 100vw;
  1414. max-height: 92svh;
  1415. padding: 16px;
  1416. border-radius: 16px 16px 0 0;
  1417. transform: translateY(104%);
  1418. }
  1419. .modal.open {
  1420. transform: translateY(0);
  1421. }
  1422. .modal-form,
  1423. .settings-form,
  1424. .compact-form,
  1425. .checkbox-grid {
  1426. grid-template-columns: 1fr;
  1427. }
  1428. .form-actions {
  1429. display: grid;
  1430. grid-template-columns: repeat(2, minmax(0, 1fr));
  1431. }
  1432. .form-actions button {
  1433. width: 100%;
  1434. }
  1435. .trend {
  1436. height: 200px;
  1437. }
  1438. .toast {
  1439. right: 12px;
  1440. bottom: 12px;
  1441. left: 12px;
  1442. max-width: none;
  1443. }
  1444. }