kb.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. @font-face {
  2. font-family: YouSheBiaoTiHei;
  3. font-style: normal;
  4. font-weight: normal;
  5. src: url('@/assets/font/YouSheBiaoTiHei.ttf') format('truetype');
  6. font-display: swap;
  7. }
  8. .bg {
  9. --fvs-theme-color-1-2: #f5f9ff;
  10. background: url('@/assets/kb/bg.png') center center / 100% 100% no-repeat;
  11. background-color: #fff;
  12. }
  13. .header {
  14. height: 52px;
  15. font-family: YouSheBiaoTiHei, sans-serif;
  16. font-size: 32px;
  17. color: var(--fvs-theme-color-1-2);
  18. text-align: center;
  19. background: url('@/assets/kb/header.png') center center / 100% 100% no-repeat;
  20. }
  21. .panel {
  22. background: linear-gradient(180deg, rgb(235 243 255 / 76%) 0%, rgb(221 233 251 / 58%) 100%);
  23. border: 1px solid rgb(255 255 255 / 58%);
  24. border-radius: 20px;
  25. box-shadow:
  26. inset 0 1px 0 rgb(255 255 255 / 72%),
  27. 0 18px 36px rgb(46 90 164 / 12%);
  28. backdrop-filter: blur(12px);
  29. }
  30. .panel-title {
  31. position: relative;
  32. display: flex;
  33. padding: 0 16px 0 36px;
  34. font-family: YouSheBiaoTiHei, sans-serif;
  35. font-size: 24px;
  36. letter-spacing: 1px;
  37. color: #03409b;
  38. align-items: center;
  39. &::after {
  40. position: absolute;
  41. right: 10px;
  42. bottom: 0;
  43. left: 10px;
  44. height: 2px;
  45. background: linear-gradient(
  46. to right,
  47. rgb(3 64 155 / 15%) 0%,
  48. rgb(3 64 155 / 15%) calc(100% - 80px),
  49. #03409b calc(100% - 80px),
  50. #03409b 100%
  51. );
  52. content: '';
  53. }
  54. &::before {
  55. position: absolute;
  56. right: 10px;
  57. bottom: 0;
  58. z-index: 1;
  59. width: 80px;
  60. height: 4px;
  61. background: #03409b;
  62. border-radius: 2px 2px 0 0;
  63. content: '';
  64. }
  65. .icon-decorator {
  66. position: absolute;
  67. left: 14px;
  68. display: flex;
  69. align-items: center;
  70. gap: 3px;
  71. span {
  72. width: 4px;
  73. height: 18px;
  74. background: #03409b;
  75. border-radius: 2px;
  76. &:last-child {
  77. height: 12px;
  78. opacity: 0.5;
  79. }
  80. }
  81. }
  82. }
  83. .kb-panel-title-text {
  84. font-family: YouSheBiaoTiHei, sans-serif;
  85. font-size: 24px;
  86. font-weight: normal;
  87. line-height: 1;
  88. letter-spacing: 1px;
  89. color: #03409b;
  90. }
  91. .summary-card {
  92. position: relative;
  93. cursor: default;
  94. background: linear-gradient(180deg, rgb(255 255 255 / 52%) 0%, rgb(213 227 249 / 38%) 100%);
  95. border: 1px solid rgb(255 255 255 / 74%);
  96. box-shadow:
  97. inset 0 1px 0 rgb(255 255 255 / 78%),
  98. 0 6px 14px rgb(63 103 171 / 7%);
  99. transition:
  100. transform 0.28s ease,
  101. box-shadow 0.28s ease,
  102. border-color 0.28s ease,
  103. background 0.28s ease;
  104. isolation: isolate;
  105. }
  106. .summary-card::before {
  107. position: absolute;
  108. z-index: 0;
  109. pointer-events: none;
  110. background: linear-gradient(
  111. 135deg,
  112. rgb(255 255 255 / 0%) 0%,
  113. rgb(255 255 255 / 0%) 58%,
  114. rgb(255 255 255 / 18%) 100%
  115. );
  116. content: '';
  117. inset: 0;
  118. }
  119. .summary-card::after {
  120. position: absolute;
  121. right: -16px;
  122. bottom: -28px;
  123. z-index: 0;
  124. width: 84px;
  125. height: 84px;
  126. pointer-events: none;
  127. background: radial-gradient(circle, var(--card-glow) 0%, rgb(255 255 255 / 0%) 70%);
  128. content: '';
  129. opacity: 0.86;
  130. transition:
  131. transform 0.28s ease,
  132. opacity 0.28s ease;
  133. }
  134. .summary-card:hover {
  135. background: linear-gradient(180deg, rgb(255 255 255 / 72%) 0%, rgb(219 233 255 / 46%) 100%);
  136. border-color: rgb(255 255 255 / 90%);
  137. transform: translateY(-3px);
  138. box-shadow:
  139. inset 0 1px 0 rgb(255 255 255 / 85%),
  140. 0 10px 18px rgb(41 89 164 / 13%);
  141. }
  142. .summary-card:hover::after {
  143. opacity: 1;
  144. transform: scale(1.08);
  145. }
  146. .summary-card__shine {
  147. position: absolute;
  148. top: 0;
  149. left: -130%;
  150. z-index: 1;
  151. width: 60%;
  152. height: 100%;
  153. pointer-events: none;
  154. background: linear-gradient(
  155. 90deg,
  156. rgb(255 255 255 / 0%) 0%,
  157. rgb(255 255 255 / 18%) 45%,
  158. rgb(255 255 255 / 45%) 50%,
  159. rgb(255 255 255 / 18%) 55%,
  160. rgb(255 255 255 / 0%) 100%
  161. );
  162. transform: skewX(-22deg);
  163. }
  164. .summary-card:hover .summary-card__shine {
  165. left: 150%;
  166. transition: left 0.8s ease;
  167. }
  168. .summary-card__icon {
  169. position: relative;
  170. z-index: 2;
  171. display: flex;
  172. width: 48px;
  173. height: 48px;
  174. background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(242 247 255 / 92%) 100%);
  175. border: 1px solid rgb(255 255 255 / 88%);
  176. border-radius: 12px;
  177. box-shadow:
  178. inset 0 1px 0 rgb(255 255 255 / 95%),
  179. 0 6px 12px rgb(152 181 230 / 15%);
  180. flex-shrink: 0;
  181. align-items: center;
  182. justify-content: center;
  183. transition:
  184. transform 0.28s ease,
  185. box-shadow 0.28s ease;
  186. }
  187. .summary-card__icon::after {
  188. position: absolute;
  189. right: -3px;
  190. bottom: -3px;
  191. width: 15px;
  192. height: 15px;
  193. background: radial-gradient(
  194. circle at 30% 30%,
  195. rgb(255 255 255 / 96%) 0%,
  196. var(--card-glow) 58%,
  197. rgb(255 255 255 / 0%) 75%
  198. );
  199. border-radius: 999px;
  200. content: '';
  201. opacity: 0.95;
  202. }
  203. .summary-card:hover .summary-card__icon {
  204. transform: translateY(-2px) scale(1.03);
  205. box-shadow:
  206. inset 0 1px 0 rgb(255 255 255 / 95%),
  207. 0 8px 14px rgb(120 158 221 / 20%);
  208. }
  209. .summary-card__icon-glyph {
  210. position: relative;
  211. z-index: 1;
  212. font-size: 25px;
  213. color: var(--card-accent);
  214. transition:
  215. transform 0.28s ease,
  216. filter 0.28s ease;
  217. }
  218. .summary-card:hover .summary-card__icon-glyph {
  219. filter: drop-shadow(0 4px 8px rgb(0 0 0 / 8%));
  220. transform: scale(1.08);
  221. }
  222. .summary-card__body {
  223. position: relative;
  224. z-index: 2;
  225. display: flex;
  226. min-height: 48px;
  227. min-width: 0;
  228. flex-direction: column;
  229. justify-content: center;
  230. }
  231. .summary-card__label {
  232. overflow: hidden;
  233. font-size: 14px;
  234. font-weight: 600;
  235. color: #24364f;
  236. text-overflow: ellipsis;
  237. white-space: nowrap;
  238. transition:
  239. transform 0.28s ease,
  240. color 0.28s ease;
  241. }
  242. .summary-card__value {
  243. margin-top: 4px;
  244. font-family: YouSheBiaoTiHei, sans-serif;
  245. font-size: 19px;
  246. line-height: 1;
  247. letter-spacing: 1px;
  248. color: #1f5bb8;
  249. transition:
  250. transform 0.28s ease,
  251. text-shadow 0.28s ease;
  252. }
  253. .summary-card:hover .summary-card__label {
  254. color: #173b72;
  255. transform: translateX(1px);
  256. }
  257. .summary-card:hover .summary-card__value {
  258. text-shadow: 0 4px 10px rgb(31 91 184 / 16%);
  259. transform: translateX(1px);
  260. }
  261. .summary-card__corner {
  262. position: absolute;
  263. top: 0;
  264. right: 0;
  265. z-index: 1;
  266. width: 36px;
  267. height: 36px;
  268. pointer-events: none;
  269. background: linear-gradient(135deg, rgb(255 255 255 / 30%) 0%, rgb(255 255 255 / 0%) 70%);
  270. opacity: 0.85;
  271. clip-path: polygon(100% 0, 0 0, 100% 100%);
  272. }
  273. .summary-card {
  274. animation: card-in 0.5s ease both;
  275. }
  276. .summary-card:nth-child(1) {
  277. animation-delay: 0.05s;
  278. }
  279. .summary-card:nth-child(2) {
  280. animation-delay: 0.1s;
  281. }
  282. .summary-card:nth-child(3) {
  283. animation-delay: 0.15s;
  284. }
  285. .summary-card:nth-child(4) {
  286. animation-delay: 0.2s;
  287. }
  288. .summary-card:nth-child(5) {
  289. animation-delay: 0.25s;
  290. }
  291. .summary-card:nth-child(6) {
  292. animation-delay: 0.3s;
  293. }
  294. .summary-card:nth-child(7) {
  295. animation-delay: 0.35s;
  296. }
  297. .summary-card:nth-child(8) {
  298. animation-delay: 0.4s;
  299. }
  300. .summary-card:nth-child(9) {
  301. animation-delay: 0.4s;
  302. }
  303. .summary-card:nth-child(10) {
  304. animation-delay: 0.4s;
  305. }
  306. @keyframes card-in {
  307. from {
  308. opacity: 0;
  309. transform: translateY(12px);
  310. }
  311. to {
  312. opacity: 1;
  313. transform: translateY(0);
  314. }
  315. }
  316. .summary-card__placeholder {
  317. display: inline-block;
  318. font-family: YouSheBiaoTiHei, sans-serif;
  319. font-size: 19px;
  320. line-height: 1;
  321. letter-spacing: 1px;
  322. color: rgb(31 91 184 / 45%);
  323. }
  324. .device-list-table,
  325. .team-list-table {
  326. --el-table-border-color: rgb(31 91 184 / 12%);
  327. --el-table-border: 1px solid rgb(31 91 184 / 12%);
  328. --el-table-header-bg-color: rgb(255 255 255 / 82%);
  329. --el-table-tr-bg-color: transparent;
  330. --el-table-bg-color: transparent;
  331. --el-table-row-hover-bg-color: rgb(31 91 184 / 6%);
  332. --el-fill-color-lighter: rgb(255 255 255 / 55%);
  333. background: transparent;
  334. :deep(.el-table__inner-wrapper::before) {
  335. display: none;
  336. }
  337. :deep(.el-table__header-wrapper th.el-table__cell) {
  338. // font-family: YouSheBiaoTiHei, sans-serif;
  339. font-size: 20px;
  340. font-weight: 500;
  341. letter-spacing: 0.5px;
  342. color: #03409b;
  343. background: linear-gradient(180deg, rgb(255 255 255 / 92%) 0%, rgb(231 240 255 / 82%) 100%);
  344. border-bottom: 1px solid rgb(31 91 184 / 16%);
  345. }
  346. :deep(.el-table__body td.el-table__cell) {
  347. padding: 8px 0;
  348. // font-family: YouSheBiaoTiHei, sans-serif;
  349. font-size: 16px;
  350. color: #24364f;
  351. background: rgb(255 255 255 / 16%);
  352. border-bottom: 1px solid rgb(31 91 184 / 8%);
  353. }
  354. :deep(.el-table__body tr:nth-child(2n) td.el-table__cell) {
  355. background: rgb(255 255 255 / 28%);
  356. }
  357. :deep(.el-table__row:hover > td.el-table__cell) {
  358. background: rgb(31 91 184 / 8%) !important;
  359. }
  360. :deep(.el-scrollbar__bar.is-vertical) {
  361. width: 8px;
  362. }
  363. :deep(.el-scrollbar__bar.is-horizontal) {
  364. height: 8px;
  365. }
  366. :deep(.el-scrollbar__thumb) {
  367. background: rgb(31 91 184 / 26%);
  368. border-radius: 999px;
  369. }
  370. }
  371. .device-list-table {
  372. :deep(.el-table__row) {
  373. cursor: pointer;
  374. }
  375. }
  376. .kb-stage-card {
  377. --panel-delay: 0s;
  378. --panel-glow: rgb(31 91 184 / 12%);
  379. position: relative;
  380. opacity: 0;
  381. transform: translateY(22px) scale(0.985);
  382. animation: kb-panel-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  383. animation-delay: var(--panel-delay);
  384. isolation: isolate;
  385. will-change: transform, opacity;
  386. }
  387. .kb-stage-card::before {
  388. position: absolute;
  389. z-index: 0;
  390. pointer-events: none;
  391. background: linear-gradient(
  392. 112deg,
  393. rgb(255 255 255 / 0%) 0%,
  394. rgb(255 255 255 / 0%) 34%,
  395. rgb(255 255 255 / 26%) 48%,
  396. rgb(255 255 255 / 8%) 56%,
  397. rgb(255 255 255 / 0%) 68%,
  398. rgb(255 255 255 / 0%) 100%
  399. );
  400. border-radius: 20px;
  401. content: '';
  402. opacity: 0;
  403. transform: translateX(-140%) skewX(-22deg);
  404. animation: kb-panel-sheen 1.05s ease-out forwards;
  405. animation-delay: calc(var(--panel-delay) + 0.18s);
  406. inset: 0;
  407. }
  408. .kb-stage-card::after {
  409. position: absolute;
  410. right: -24px;
  411. bottom: -30px;
  412. z-index: 0;
  413. width: 120px;
  414. height: 120px;
  415. pointer-events: none;
  416. background: radial-gradient(circle, var(--panel-glow) 0%, rgb(255 255 255 / 0%) 72%);
  417. content: '';
  418. opacity: 0.88;
  419. transition:
  420. transform 0.32s ease,
  421. opacity 0.32s ease;
  422. }
  423. .kb-stage-card:hover {
  424. transform: translateY(-4px) scale(1.005);
  425. transition:
  426. transform 0.28s ease,
  427. box-shadow 0.28s ease;
  428. }
  429. .kb-stage-card:hover::after {
  430. opacity: 1;
  431. transform: scale(1.08);
  432. }
  433. .kb-stage-card--list {
  434. --panel-glow: rgb(45 124 248 / 14%);
  435. }
  436. .kb-stage-card--1 {
  437. --panel-delay: 0.02s;
  438. }
  439. .kb-stage-card--2 {
  440. --panel-delay: 0.08s;
  441. }
  442. .kb-stage-card--3 {
  443. --panel-delay: 0.14s;
  444. }
  445. .kb-stage-card--4 {
  446. --panel-delay: 0.2s;
  447. }
  448. .kb-stage-card--5 {
  449. --panel-delay: 0.26s;
  450. }
  451. .kb-stage-card--6 {
  452. --panel-delay: 0.32s;
  453. }
  454. .kb-stage-card--7 {
  455. --panel-delay: 0.38s;
  456. }
  457. .kb-stage-card--8 {
  458. --panel-delay: 0.46s;
  459. }
  460. @keyframes kb-panel-enter {
  461. 0% {
  462. opacity: 0;
  463. filter: blur(4px);
  464. transform: translateY(22px) scale(0.985);
  465. }
  466. 100% {
  467. opacity: 1;
  468. filter: blur(0);
  469. transform: translateY(0) scale(1);
  470. }
  471. }
  472. @keyframes kb-panel-sheen {
  473. 0% {
  474. opacity: 0;
  475. transform: translateX(-140%) skewX(-22deg);
  476. }
  477. 18% {
  478. opacity: 0.85;
  479. }
  480. 100% {
  481. opacity: 0;
  482. transform: translateX(165%) skewX(-22deg);
  483. }
  484. }
  485. @media (prefers-reduced-motion: reduce) {
  486. .kb-stage-card,
  487. .kb-stage-card::before,
  488. .kb-stage-card::after {
  489. animation: none;
  490. transition: none;
  491. }
  492. .kb-stage-card {
  493. opacity: 1;
  494. transform: none;
  495. }
  496. .kb-stage-card:hover {
  497. transform: none;
  498. }
  499. }