index.css 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583
  1. @import url("../static/css/bootstrap.min.css");
  2. /* 整体布局样式 */
  3. .wrapper {
  4. min-height: 100vh;
  5. background: #f8f9fa;
  6. }
  7. /* 标签页容器样式 */
  8. .tab-container {
  9. background: white;
  10. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  11. border-radius: 0 0 8px 8px;
  12. }
  13. /* 标签页导航样式 */
  14. .nav-tabs {
  15. background: #f8f9fa;
  16. border-bottom: 2px solid #e9ecef;
  17. margin: 0;
  18. padding: 10px 15px 0;
  19. }
  20. .nav-tabs > li > a {
  21. color: #6c757d;
  22. font-weight: 500;
  23. border: none;
  24. border-radius: 8px 8px 0 0;
  25. margin-right: 5px;
  26. padding: 12px 16px;
  27. background: transparent;
  28. transition: all 0.3s ease;
  29. }
  30. .nav-tabs > li.active > a,
  31. .nav-tabs > li.active > a:hover,
  32. .nav-tabs > li.active > a:focus {
  33. background: white;
  34. color: #495057;
  35. border: none;
  36. border-bottom: 3px solid #007bff;
  37. box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  38. }
  39. .nav-tabs > li > a:hover {
  40. background: #e9ecef;
  41. border: none;
  42. }
  43. /* 标签页内容样式 */
  44. .tab-content {
  45. padding: 30px;
  46. min-height: 500px;
  47. }
  48. .tool-section {
  49. margin-bottom: 30px;
  50. }
  51. .section-title {
  52. color: #343a40;
  53. font-size: 24px;
  54. font-weight: 600;
  55. margin-bottom: 10px;
  56. border-left: 4px solid #007bff;
  57. padding-left: 15px;
  58. }
  59. .section-desc {
  60. color: #6c757d;
  61. margin-bottom: 25px;
  62. font-size: 14px;
  63. line-height: 1.5;
  64. }
  65. /* 时间显示和操作区域样式 */
  66. .time-and-actions {
  67. margin-bottom: 25px;
  68. }
  69. /* 实时时间显示样式 */
  70. .current-time-display {
  71. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  72. color: white;
  73. padding: 20px;
  74. border-radius: 8px;
  75. box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  76. }
  77. .current-time-display label {
  78. color: white;
  79. font-weight: 600;
  80. margin-bottom: 8px;
  81. display: block;
  82. font-size: 12px;
  83. text-transform: uppercase;
  84. letter-spacing: 0.5px;
  85. }
  86. .time-display {
  87. background: rgba(255,255,255,0.9);
  88. border: 2px solid rgba(255,255,255,0.5);
  89. color: #2d3748;
  90. font-weight: 700;
  91. cursor: pointer;
  92. font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  93. font-size: 13px;
  94. text-align: center;
  95. transition: all 0.3s ease;
  96. }
  97. .time-display:hover {
  98. background: white;
  99. border-color: rgba(255,255,255,0.8);
  100. transform: translateY(-1px);
  101. box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  102. }
  103. .time-display:focus {
  104. background: white;
  105. border-color: rgba(255,255,255,0.8);
  106. color: #2d3748;
  107. box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  108. outline: none;
  109. }
  110. /* 操作面板样式 */
  111. .actions-panel {
  112. padding: 20px;
  113. background: #f8f9fa;
  114. border-radius: 8px;
  115. border: 2px solid #e9ecef;
  116. height: 100%;
  117. }
  118. .time-control {
  119. margin-bottom: 20px;
  120. }
  121. .time-control label {
  122. color: #495057;
  123. font-weight: 600;
  124. margin-bottom: 10px;
  125. display: block;
  126. font-size: 12px;
  127. text-transform: uppercase;
  128. letter-spacing: 0.5px;
  129. }
  130. .time-toggle-btn {
  131. width: 100%;
  132. font-weight: 600;
  133. border-radius: 6px;
  134. transition: all 0.3s ease;
  135. }
  136. .time-toggle-btn:hover {
  137. transform: translateY(-1px);
  138. box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  139. }
  140. .quick-actions label {
  141. color: #495057;
  142. font-weight: 600;
  143. margin-bottom: 10px;
  144. display: block;
  145. font-size: 12px;
  146. text-transform: uppercase;
  147. letter-spacing: 0.5px;
  148. }
  149. .quick-buttons {
  150. display: flex;
  151. flex-wrap: wrap;
  152. gap: 6px;
  153. }
  154. .quick-buttons .btn {
  155. font-size: 11px;
  156. padding: 4px 8px;
  157. border-radius: 4px;
  158. font-weight: 500;
  159. white-space: nowrap;
  160. flex: 1;
  161. min-width: auto;
  162. transition: all 0.2s ease;
  163. }
  164. .quick-buttons .btn:hover {
  165. transform: translateY(-1px);
  166. box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  167. background-color: #007bff;
  168. color: white;
  169. border-color: #007bff;
  170. }
  171. /* 通用标签样式 */
  172. .input-label, .result-label {
  173. display: flex;
  174. align-items: center;
  175. gap: 8px;
  176. font-weight: 600;
  177. color: #2d3748;
  178. margin-bottom: 15px;
  179. font-size: 16px;
  180. border-bottom: 2px solid #e2e8f0;
  181. padding-bottom: 8px;
  182. }
  183. .label-icon {
  184. font-size: 18px;
  185. }
  186. .input-section, .results-section {
  187. background: #f8f9fa;
  188. border-radius: 12px;
  189. padding: 20px;
  190. margin-bottom: 25px;
  191. border: 1px solid #e9ecef;
  192. }
  193. .results-section {
  194. background: #ffffff;
  195. border: 2px solid #e9ecef;
  196. box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  197. }
  198. /* 智能解析器左右布局样式 */
  199. .parser-main-layout {
  200. display: flex;
  201. gap: 25px;
  202. margin-top: 25px;
  203. }
  204. .left-panel {
  205. flex: 1;
  206. display: flex;
  207. flex-direction: column;
  208. gap: 20px;
  209. }
  210. .right-panel {
  211. flex: 1;
  212. display: flex;
  213. flex-direction: column;
  214. gap: 20px;
  215. }
  216. /* 模块标签样式 */
  217. .module-label {
  218. display: flex;
  219. align-items: center;
  220. gap: 8px;
  221. font-weight: 600;
  222. color: #2d3748;
  223. margin-bottom: 15px;
  224. font-size: 16px;
  225. border-bottom: 2px solid #e2e8f0;
  226. padding-bottom: 8px;
  227. }
  228. /* 快捷操作模块 */
  229. .quick-actions-module {
  230. background: #f8f9fa;
  231. border-radius: 12px;
  232. padding: 20px;
  233. border: 1px solid #e9ecef;
  234. }
  235. .quick-buttons-grid {
  236. display: flex;
  237. flex-wrap: wrap;
  238. gap: 8px;
  239. justify-content: space-between;
  240. }
  241. .quick-btn {
  242. flex: 1;
  243. min-width: 0;
  244. padding: 10px 8px;
  245. border-radius: 8px;
  246. font-weight: 600;
  247. font-size: 12px;
  248. transition: all 0.3s ease;
  249. text-align: center;
  250. white-space: nowrap;
  251. overflow: hidden;
  252. text-overflow: ellipsis;
  253. border: 2px solid;
  254. background: white;
  255. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  256. }
  257. .quick-btn:hover {
  258. transform: translateY(-2px);
  259. box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  260. background: #f8f9fa;
  261. }
  262. .quick-btn:active {
  263. transform: translateY(0);
  264. box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  265. }
  266. /* 不同颜色的快捷按钮 */
  267. .quick-btn[data-action="now"] {
  268. border-color: #007bff;
  269. color: #007bff;
  270. }
  271. .quick-btn[data-action="now"]:hover {
  272. background: #e3f2fd;
  273. border-color: #0056b3;
  274. }
  275. .quick-btn[data-action="today"] {
  276. border-color: #28a745;
  277. color: #28a745;
  278. }
  279. .quick-btn[data-action="today"]:hover {
  280. background: #e8f5e8;
  281. border-color: #1e7e34;
  282. }
  283. .quick-btn[data-action="yesterday"] {
  284. border-color: #17a2b8;
  285. color: #17a2b8;
  286. }
  287. .quick-btn[data-action="yesterday"]:hover {
  288. background: #e1f7fa;
  289. border-color: #117a8b;
  290. }
  291. .quick-btn[data-action="week_start"] {
  292. border-color: #ffc107;
  293. color: #856404;
  294. }
  295. .quick-btn[data-action="week_start"]:hover {
  296. background: #fff3cd;
  297. border-color: #d39e00;
  298. }
  299. .quick-btn[data-action="month_start"] {
  300. border-color: #6c757d;
  301. color: #6c757d;
  302. }
  303. .quick-btn[data-action="month_start"]:hover {
  304. background: #f8f9fa;
  305. border-color: #545b62;
  306. }
  307. .quick-btn[data-action="clear"] {
  308. border-color: #dc3545;
  309. color: #dc3545;
  310. }
  311. .quick-btn[data-action="clear"]:hover {
  312. background: #f8d7da;
  313. border-color: #bd2130;
  314. }
  315. /* 输入时间模块 */
  316. .input-time-module {
  317. background: #f8f9fa;
  318. border-radius: 12px;
  319. padding: 20px;
  320. border: 1px solid #e9ecef;
  321. flex: 1;
  322. }
  323. .input-group-custom {
  324. display: flex;
  325. gap: 12px;
  326. align-items: flex-start;
  327. }
  328. .smart-input {
  329. flex: 1;
  330. border-radius: 8px;
  331. border: 2px solid #cbd5e0;
  332. font-size: 14px;
  333. transition: all 0.3s ease;
  334. resize: vertical;
  335. min-height: 140px;
  336. }
  337. .smart-input:focus {
  338. border-color: #4299e1;
  339. box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
  340. }
  341. .input-actions {
  342. display: flex;
  343. flex-direction: column;
  344. gap: 8px;
  345. }
  346. .input-actions .btn {
  347. white-space: nowrap;
  348. min-width: 100px;
  349. border-radius: 6px;
  350. font-weight: 500;
  351. }
  352. /* 当前时间模块 */
  353. .current-time-module {
  354. background: #ffffff;
  355. border-radius: 12px;
  356. padding: 20px;
  357. border: 2px solid #e9ecef;
  358. box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  359. }
  360. .time-control-inline {
  361. margin-left: auto;
  362. }
  363. .current-time-grid {
  364. display: grid;
  365. grid-template-columns: repeat(3, 1fr);
  366. gap: 15px;
  367. }
  368. .time-item {
  369. display: flex;
  370. flex-direction: column;
  371. gap: 5px;
  372. }
  373. .time-item label {
  374. font-weight: 500;
  375. color: #4a5568;
  376. font-size: 12px;
  377. text-align: center;
  378. margin-bottom: 8px;
  379. }
  380. .time-item .time-display {
  381. font-family: 'Monaco', 'Consolas', monospace;
  382. font-size: 13px;
  383. background: #f7fafc;
  384. border: 2px solid #e2e8f0;
  385. color: #2d3748;
  386. font-weight: 600;
  387. cursor: pointer;
  388. transition: all 0.3s ease;
  389. text-align: center;
  390. padding: 8px 6px;
  391. }
  392. .time-item .time-display:hover {
  393. border-color: #4299e1;
  394. background: #ebf8ff;
  395. }
  396. /* 解析结果模块 */
  397. .parse-results-module {
  398. background: #ffffff;
  399. border-radius: 12px;
  400. padding: 20px;
  401. border: 2px solid #e9ecef;
  402. box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  403. flex: 1;
  404. }
  405. .format-hints {
  406. margin-top: 15px;
  407. }
  408. .format-hints .badge {
  409. background: #48bb78;
  410. color: white;
  411. padding: 6px 12px;
  412. border-radius: 20px;
  413. font-size: 12px;
  414. font-weight: 500;
  415. display: inline-block;
  416. }
  417. .format-hints:empty {
  418. display: none;
  419. }
  420. .result-container {
  421. padding: 0;
  422. border: none;
  423. background: transparent;
  424. }
  425. /* 解析结果网格布局 - 参考当前时间模块 */
  426. .parse-results-grid {
  427. display: grid;
  428. grid-template-columns: repeat(2, 1fr);
  429. gap: 15px;
  430. margin-top: 15px;
  431. }
  432. .result-item {
  433. display: flex;
  434. flex-direction: column;
  435. gap: 5px;
  436. background: #f7fafc;
  437. border-radius: 8px;
  438. padding: 12px;
  439. border-left: 4px solid #4299e1;
  440. }
  441. .result-item label {
  442. font-weight: 500;
  443. color: #4a5568;
  444. font-size: 12px;
  445. text-align: center;
  446. margin-bottom: 8px;
  447. }
  448. .result-item .result-value {
  449. font-family: 'Monaco', 'Consolas', monospace;
  450. font-size: 13px;
  451. background: white;
  452. border: 2px solid #e2e8f0;
  453. color: #2d3748;
  454. font-weight: 600;
  455. cursor: pointer;
  456. transition: all 0.3s ease;
  457. text-align: center;
  458. padding: 8px 6px;
  459. border-radius: 6px;
  460. word-break: break-all;
  461. }
  462. .result-item .result-value:hover {
  463. border-color: #4299e1;
  464. background: #ebf8ff;
  465. }
  466. /* ISO 8601 结果项特殊样式 */
  467. .result-item.iso-result {
  468. grid-column: 1 / -1;
  469. }
  470. .result-item.iso-result .result-value {
  471. text-align: left;
  472. word-break: normal;
  473. white-space: nowrap;
  474. overflow: hidden;
  475. text-overflow: ellipsis;
  476. }
  477. /* 代码生成器样式 */
  478. .code-generator-container {
  479. margin-top: 25px;
  480. }
  481. .input-row {
  482. display: flex;
  483. gap: 15px;
  484. align-items: flex-end;
  485. }
  486. .time-input-group {
  487. flex: 2;
  488. display: flex;
  489. gap: 10px;
  490. }
  491. .time-input {
  492. flex: 1;
  493. border-radius: 8px;
  494. border: 2px solid #cbd5e0;
  495. }
  496. .time-input:focus {
  497. border-color: #4299e1;
  498. box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
  499. }
  500. .generate-btn {
  501. white-space: nowrap;
  502. padding: 8px 16px;
  503. border-radius: 6px;
  504. font-weight: 500;
  505. }
  506. .language-selector {
  507. flex: 1;
  508. min-width: 150px;
  509. }
  510. .language-selector select {
  511. border-radius: 8px;
  512. border: 2px solid #cbd5e0;
  513. }
  514. .code-results {
  515. border: 2px solid #e2e8f0;
  516. border-radius: 12px;
  517. padding: 20px;
  518. background: #f7fafc;
  519. }
  520. .code-block {
  521. margin-bottom: 25px;
  522. background: #ffffff;
  523. border: 1px solid #e2e8f0;
  524. border-radius: 10px;
  525. overflow: hidden;
  526. box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  527. }
  528. .code-block:last-child {
  529. margin-bottom: 0;
  530. }
  531. /* 时间计算器样式 */
  532. .calculator-container {
  533. margin-top: 25px;
  534. }
  535. /* 时间计算器左右布局 */
  536. .calculator-main-layout {
  537. display: flex;
  538. gap: 25px;
  539. margin-top: 25px;
  540. }
  541. .left-calc-panel {
  542. flex: 1;
  543. display: flex;
  544. flex-direction: column;
  545. }
  546. .right-calc-panel {
  547. flex: 1;
  548. display: flex;
  549. flex-direction: column;
  550. }
  551. .calc-input-group {
  552. display: flex;
  553. flex-direction: column;
  554. gap: 15px;
  555. margin-bottom: 20px;
  556. }
  557. .time-inputs {
  558. display: flex;
  559. gap: 10px;
  560. align-items: center;
  561. flex-wrap: wrap;
  562. }
  563. .time-input-item {
  564. display: flex;
  565. align-items: center;
  566. gap: 8px;
  567. flex: 1;
  568. }
  569. .input-prefix {
  570. color: #4a5568;
  571. font-weight: 500;
  572. min-width: 30px;
  573. }
  574. .calc-separator {
  575. color: #4a5568;
  576. font-weight: 600;
  577. padding: 0 10px;
  578. }
  579. .start-time, .end-time {
  580. border-radius: 8px;
  581. border: 2px solid #cbd5e0;
  582. }
  583. .calc-btn {
  584. white-space: nowrap;
  585. padding: 8px 20px;
  586. border-radius: 6px;
  587. font-weight: 500;
  588. }
  589. .add-subtract-section {
  590. margin-top: 0px;
  591. }
  592. /* 统一的左右布局样式 */
  593. .main-layout {
  594. display: flex;
  595. gap: 20px;
  596. margin-top: 20px;
  597. }
  598. .left-panel {
  599. flex: 1;
  600. min-width: 0; /* 确保可以缩小 */
  601. }
  602. .right-panel {
  603. flex: 1;
  604. min-width: 0; /* 确保可以缩小 */
  605. }
  606. /* 在小屏幕上切换为垂直布局 */
  607. @media (max-width: 768px) {
  608. .main-layout {
  609. flex-direction: column;
  610. }
  611. .timezone-selectors {
  612. grid-template-columns: 1fr;
  613. gap: 20px;
  614. }
  615. .panel-section {
  616. padding: 20px;
  617. }
  618. .batch-actions {
  619. flex-direction: column;
  620. }
  621. .batch-actions .btn {
  622. width: 100%;
  623. }
  624. }
  625. /* 通用面板样式 */
  626. .panel-section {
  627. background: rgba(248, 249, 250, 0.8);
  628. border: 1px solid #e0e6ed;
  629. border-radius: 12px;
  630. padding: 20px;
  631. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  632. transition: box-shadow 0.3s ease;
  633. }
  634. .panel-section:hover {
  635. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  636. }
  637. /* 左右布局中的表单样式 */
  638. .input-group,
  639. .batch-input-group,
  640. .timezone-input-group,
  641. .db-input-group {
  642. display: flex;
  643. flex-direction: column;
  644. gap: 20px;
  645. }
  646. .time-input-section,
  647. .language-selector-section,
  648. .time-db-input,
  649. .db-type-selector {
  650. display: flex;
  651. flex-direction: column;
  652. gap: 8px;
  653. }
  654. /* 时区选择器优化布局 */
  655. .timezone-selectors {
  656. display: flex;
  657. gap: 12px;
  658. width: 100%;
  659. }
  660. .timezone-selectors .from-timezone,
  661. .timezone-selectors .to-timezone {
  662. flex: 1 1 0;
  663. min-width: 0;
  664. display: flex;
  665. flex-direction: column;
  666. }
  667. .timezone-selectors .form-control {
  668. width: 100%;
  669. min-width: 0;
  670. box-sizing: border-box;
  671. }
  672. /* 时区选择器容器样式 */
  673. .from-timezone select,
  674. .to-timezone select {
  675. align-self: flex-start;
  676. }
  677. /* 时区选择器的标签样式 */
  678. .timezone-selectors .form-label {
  679. font-size: 14px;
  680. font-weight: 600;
  681. color: #495057;
  682. margin-bottom: 5px;
  683. }
  684. /* 数据库输入组网格布局 */
  685. .db-input-group {
  686. width: 100%;
  687. box-sizing: border-box;
  688. }
  689. .db-input-group .time-db-input,
  690. .db-input-group .db-type-selector {
  691. width: 100%;
  692. margin-bottom: 12px;
  693. }
  694. .db-input-group .form-control {
  695. width: 100%;
  696. box-sizing: border-box;
  697. }
  698. /* 表单标签统一样式 */
  699. .panel-section .form-label {
  700. font-size: 14px;
  701. font-weight: 600;
  702. color: #495057;
  703. margin-bottom: 5px;
  704. display: block;
  705. }
  706. /* 批量操作按钮组 */
  707. .batch-actions {
  708. display: flex;
  709. gap: 10px;
  710. flex-wrap: wrap;
  711. margin-top: 10px;
  712. }
  713. .batch-actions .btn {
  714. flex: 1;
  715. min-width: 100px;
  716. }
  717. /* 统一按钮样式 */
  718. .generate-btn,
  719. .timezone-convert-btn,
  720. .db-generate-btn {
  721. margin-top: 15px;
  722. padding: 14px 24px;
  723. font-size: 16px;
  724. font-weight: 600;
  725. border-radius: 10px;
  726. border: none;
  727. background: linear-gradient(135deg, #007bff, #0056b3);
  728. color: white;
  729. cursor: pointer;
  730. transition: all 0.3s ease;
  731. box-shadow: 0 3px 12px rgba(0, 123, 255, 0.25);
  732. text-align: center;
  733. width: 100%;
  734. }
  735. .generate-btn:hover,
  736. .timezone-convert-btn:hover,
  737. .db-generate-btn:hover {
  738. background: linear-gradient(135deg, #0056b3, #004085);
  739. box-shadow: 0 5px 16px rgba(0, 123, 255, 0.35);
  740. transform: translateY(-2px);
  741. }
  742. /* 表单控件统一样式 */
  743. .panel-section .form-control {
  744. padding: 12px 16px;
  745. border: 2px solid #e9ecef;
  746. border-radius: 8px;
  747. font-size: 15px;
  748. transition: all 0.3s ease;
  749. background-color: #ffffff;
  750. width: 100%;
  751. box-sizing: border-box;
  752. min-height: 50px;
  753. }
  754. /* input输入框统一100%宽度 */
  755. .panel-section input.form-control {
  756. width: 100% !important;
  757. }
  758. /* select下拉框默认宽度调整 */
  759. .panel-section select.form-control {
  760. width: 100% !important;
  761. }
  762. .panel-section .form-control:focus {
  763. border-color: #007bff;
  764. box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  765. outline: none;
  766. }
  767. /* select下拉框特殊样式 */
  768. .panel-section select.form-control {
  769. appearance: none;
  770. -webkit-appearance: none;
  771. -moz-appearance: none;
  772. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  773. background-repeat: no-repeat;
  774. background-position: right 12px center;
  775. background-size: 16px 12px;
  776. padding-right: 40px;
  777. cursor: pointer;
  778. }
  779. .panel-section select.form-control:focus {
  780. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  781. }
  782. /* select选项样式 */
  783. .panel-section select.form-control option {
  784. padding: 8px 12px;
  785. background-color: #ffffff;
  786. color: #343a40;
  787. font-size: 15px;
  788. }
  789. /* 输入标签样式优化 */
  790. .input-label {
  791. font-size: 16px;
  792. font-weight: 700;
  793. color: #343a40;
  794. margin-bottom: 15px;
  795. display: flex;
  796. align-items: center;
  797. gap: 8px;
  798. }
  799. .label-icon {
  800. font-size: 18px;
  801. }
  802. /* 面板内间距优化 */
  803. .panel-section {
  804. padding: 25px;
  805. }
  806. /* 时区和数据库特殊布局优化 */
  807. .timezone-input-group .time-input-section {
  808. width: 100%;
  809. margin-bottom: 12px;
  810. }
  811. .timezone-input-group .form-control {
  812. width: 100%;
  813. box-sizing: border-box;
  814. }
  815. /* 单行布局:基准时间 + 操作 + 数量 + 单位 */
  816. .single-row-group {
  817. display: flex;
  818. gap: 12px;
  819. align-items: center;
  820. flex-wrap: wrap;
  821. }
  822. .base-time-group {
  823. flex: 2;
  824. min-width: 200px;
  825. }
  826. .operation-select-group {
  827. flex: 0 0 120px;
  828. }
  829. .amount-group {
  830. flex: 0 0 100px;
  831. }
  832. .unit-group {
  833. flex: 0 0 120px;
  834. }
  835. /* 时间加减运算按钮样式,与时间差计算按钮保持一致 */
  836. .calc-add-btn {
  837. width: 100%;
  838. padding: 12px;
  839. font-size: 16px;
  840. font-weight: 600;
  841. border-radius: 8px;
  842. border: none;
  843. background: linear-gradient(135deg, #28a745, #20c997);
  844. color: white;
  845. cursor: pointer;
  846. transition: all 0.3s ease;
  847. box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  848. }
  849. .calc-add-btn:hover {
  850. background: linear-gradient(135deg, #218838, #1ea085);
  851. box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
  852. transform: translateY(-1px);
  853. }
  854. .operation-group {
  855. display: flex;
  856. gap: 8px;
  857. align-items: center;
  858. flex-wrap: wrap;
  859. }
  860. .operation-select, .amount-input, .unit-select {
  861. border-radius: 6px;
  862. border: 2px solid #cbd5e0;
  863. }
  864. .calc-add-btn {
  865. white-space: nowrap;
  866. padding: 8px 16px;
  867. border-radius: 6px;
  868. font-weight: 500;
  869. }
  870. .calc-results, .add-subtract-results {
  871. padding: 15px;
  872. background: #f7fafc;
  873. border-radius: 8px;
  874. border: 2px solid #e2e8f0;
  875. min-height: 60px;
  876. }
  877. /* 代码生成器样式 */
  878. .code-block {
  879. margin-bottom: 20px;
  880. border: 1px solid #e9ecef;
  881. border-radius: 8px;
  882. overflow: hidden;
  883. }
  884. .code-header {
  885. background: #f8f9fa;
  886. padding: 10px 15px;
  887. border-bottom: 1px solid #e9ecef;
  888. display: flex;
  889. justify-content: space-between;
  890. align-items: center;
  891. }
  892. .code-lang {
  893. font-weight: 600;
  894. color: #495057;
  895. }
  896. .code-content {
  897. background: #2d3748;
  898. color: #e2e8f0;
  899. margin: 0;
  900. padding: 15px;
  901. border-radius: 0;
  902. font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  903. font-size: 13px;
  904. line-height: 1.4;
  905. word-wrap: break-word;
  906. white-space: pre-wrap;
  907. }
  908. /* 时间计算器样式 */
  909. .calc-section {
  910. background: white;
  911. border: 1px solid #e9ecef;
  912. border-radius: 8px;
  913. padding: 20px;
  914. margin-bottom: 20px;
  915. }
  916. .calc-section h5 {
  917. color: #495057;
  918. font-weight: 600;
  919. margin-bottom: 15px;
  920. padding-bottom: 10px;
  921. border-bottom: 1px solid #e9ecef;
  922. }
  923. .result-display {
  924. margin-top: 20px;
  925. padding: 15px;
  926. background: #f8f9fa;
  927. border-radius: 6px;
  928. }
  929. .human-readable {
  930. margin-top: 15px;
  931. padding: 10px;
  932. background: white;
  933. border-left: 4px solid #28a745;
  934. color: #495057;
  935. }
  936. /* 批量转换器样式 */
  937. .batch-controls {
  938. margin-top: 15px;
  939. }
  940. .batch-controls .btn {
  941. margin-right: 10px;
  942. margin-bottom: 5px;
  943. }
  944. .batch-results {
  945. background: #f8f9fa;
  946. border-radius: 8px;
  947. padding: 15px;
  948. }
  949. .result-stats {
  950. color: #495057;
  951. }
  952. .result-stats .badge {
  953. margin-right: 10px;
  954. padding: 5px 10px;
  955. }
  956. .results-table-container {
  957. background: white;
  958. border-radius: 6px;
  959. overflow: hidden;
  960. }
  961. .table {
  962. margin: 0;
  963. font-size: 13px;
  964. }
  965. .original-value,
  966. .converted-value {
  967. max-width: 200px;
  968. word-wrap: break-word;
  969. white-space: normal;
  970. }
  971. .converted-value {
  972. cursor: pointer;
  973. color: #007bff;
  974. }
  975. .converted-value:hover {
  976. background: #e3f2fd;
  977. }
  978. /* 时区专家样式 */
  979. .timezone-converter {
  980. margin-bottom: 30px;
  981. }
  982. .timezone-result {
  983. margin-top: 20px;
  984. padding: 15px;
  985. background: #e8f5e8;
  986. border-radius: 6px;
  987. }
  988. .world-clock {
  989. margin-top: 30px;
  990. }
  991. .clock-item {
  992. background: white;
  993. border: 1px solid #e9ecef;
  994. border-radius: 8px;
  995. padding: 15px;
  996. text-align: center;
  997. margin-bottom: 15px;
  998. transition: transform 0.2s ease;
  999. }
  1000. .clock-item:hover {
  1001. transform: translateY(-2px);
  1002. box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  1003. }
  1004. .clock-city {
  1005. font-weight: 600;
  1006. color: #495057;
  1007. margin-bottom: 5px;
  1008. }
  1009. .clock-time {
  1010. font-size: 18px;
  1011. font-weight: 700;
  1012. color: #007bff;
  1013. margin-bottom: 5px;
  1014. }
  1015. .clock-timezone {
  1016. font-size: 12px;
  1017. color: #6c757d;
  1018. }
  1019. /* 数据库工具样式 */
  1020. .db-results {
  1021. }
  1022. .db-format-item {
  1023. margin-bottom: 15px;
  1024. }
  1025. .sql-examples {
  1026. margin-top: 20px;
  1027. }
  1028. .sql-example {
  1029. margin-bottom: 20px;
  1030. border: 1px solid #e9ecef;
  1031. border-radius: 8px;
  1032. overflow: hidden;
  1033. }
  1034. .sql-header {
  1035. background: #f8f9fa;
  1036. padding: 10px 15px;
  1037. border-bottom: 1px solid #e9ecef;
  1038. display: flex;
  1039. justify-content: space-between;
  1040. align-items: center;
  1041. font-weight: 500;
  1042. }
  1043. .sql-content {
  1044. background: #2d3748;
  1045. color: #e2e8f0;
  1046. margin: 0;
  1047. padding: 15px;
  1048. font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  1049. font-size: 13px;
  1050. line-height: 1.4;
  1051. word-wrap: break-word;
  1052. white-space: pre-wrap;
  1053. }
  1054. /* 底部面板样式 */
  1055. .bottom-panel {
  1056. background: white;
  1057. border-top: 1px solid #e9ecef;
  1058. padding: 20px 30px;
  1059. margin-top: 30px;
  1060. }
  1061. .bottom-panel h5 {
  1062. color: #495057;
  1063. font-weight: 600;
  1064. margin-bottom: 15px;
  1065. padding-bottom: 8px;
  1066. border-bottom: 1px solid #e9ecef;
  1067. }
  1068. /* 历史记录样式 */
  1069. .history-list {
  1070. }
  1071. .history-item {
  1072. padding: 8px 12px;
  1073. border: 1px solid #e9ecef;
  1074. border-radius: 4px;
  1075. margin-bottom: 5px;
  1076. cursor: pointer;
  1077. transition: background 0.2s ease;
  1078. font-size: 13px;
  1079. }
  1080. .history-item:hover {
  1081. background: #f8f9fa;
  1082. }
  1083. .history-time {
  1084. color: #6c757d;
  1085. font-size: 11px;
  1086. margin-right: 10px;
  1087. }
  1088. .history-action {
  1089. color: #007bff;
  1090. font-weight: 500;
  1091. margin-right: 10px;
  1092. }
  1093. .history-value {
  1094. color: #495057;
  1095. }
  1096. /* 快捷操作样式 */
  1097. .quick-actions .btn {
  1098. margin-right: 8px;
  1099. margin-bottom: 8px;
  1100. font-size: 13px;
  1101. }
  1102. /* 响应式设计 */
  1103. @media (max-width: 1024px) and (min-width: 769px) {
  1104. .current-time-grid {
  1105. grid-template-columns: 1fr;
  1106. gap: 12px;
  1107. }
  1108. .time-item .time-display {
  1109. font-size: 14px;
  1110. padding: 10px;
  1111. }
  1112. .time-item label {
  1113. font-size: 13px;
  1114. text-align: left;
  1115. }
  1116. }
  1117. @media (max-width: 768px) {
  1118. .tab-content {
  1119. padding: 15px;
  1120. }
  1121. .nav-tabs {
  1122. padding: 5px 10px 0;
  1123. }
  1124. .nav-tabs > li > a {
  1125. padding: 8px 12px;
  1126. font-size: 13px;
  1127. }
  1128. .section-title {
  1129. font-size: 20px;
  1130. }
  1131. .current-time-display {
  1132. padding: 15px;
  1133. }
  1134. .bottom-panel {
  1135. padding: 15px;
  1136. }
  1137. /* 智能解析器响应式布局 */
  1138. .parser-main-layout {
  1139. flex-direction: column;
  1140. gap: 20px;
  1141. }
  1142. .left-panel, .right-panel {
  1143. flex: none;
  1144. }
  1145. .quick-buttons-grid {
  1146. grid-template-columns: repeat(3, 1fr);
  1147. gap: 8px;
  1148. }
  1149. .quick-btn {
  1150. font-size: 12px;
  1151. padding: 6px 8px;
  1152. }
  1153. .input-group-custom {
  1154. flex-direction: column;
  1155. }
  1156. .input-actions {
  1157. flex-direction: row;
  1158. justify-content: space-between;
  1159. }
  1160. .current-time-grid {
  1161. grid-template-columns: 1fr;
  1162. gap: 10px;
  1163. }
  1164. .calculator-main-layout {
  1165. flex-direction: column;
  1166. gap: 20px;
  1167. }
  1168. .left-calc-panel, .right-calc-panel {
  1169. flex: none;
  1170. }
  1171. }
  1172. /* 动画效果 */
  1173. .fade-enter-active, .fade-leave-active {
  1174. transition: opacity 0.3s ease;
  1175. }
  1176. .fade-enter, .fade-leave-to {
  1177. opacity: 0;
  1178. }
  1179. /* 自定义滚动条 */
  1180. /* 表单增强样式 */
  1181. .form-control:focus {
  1182. border-color: #007bff;
  1183. box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
  1184. }
  1185. .btn-primary {
  1186. background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  1187. border: none;
  1188. font-weight: 500;
  1189. transition: all 0.3s ease;
  1190. }
  1191. .btn-primary:hover {
  1192. background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  1193. transform: translateY(-1px);
  1194. box-shadow: 0 4px 8px rgba(0,123,255,0.3);
  1195. }
  1196. /* Toast 提示样式 */
  1197. #fehelper_alertmsg {
  1198. position: fixed;
  1199. top: 0;
  1200. left: 0;
  1201. right: 0;
  1202. z-index: 1000000;
  1203. background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  1204. display: inline-block;
  1205. color: #fff;
  1206. text-align: center;
  1207. padding: 12px 20px;
  1208. margin: 0 auto;
  1209. font-size: 14px;
  1210. font-weight: 500;
  1211. border-bottom: 1px solid rgba(255,255,255,0.2);
  1212. box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  1213. }
  1214. /* 批量转换器增强样式 */
  1215. .batch-container {
  1216. margin-top: 25px;
  1217. }
  1218. .batch-input-group {
  1219. display: flex;
  1220. gap: 15px;
  1221. }
  1222. .batch-input {
  1223. flex: 1;
  1224. border-radius: 8px;
  1225. border: 2px solid #cbd5e0;
  1226. font-family: 'Monaco', 'Consolas', monospace;
  1227. font-size: 13px;
  1228. }
  1229. .batch-actions {
  1230. display: flex;
  1231. flex-direction: column;
  1232. gap: 8px;
  1233. min-width: 130px;
  1234. }
  1235. .batch-actions .btn {
  1236. white-space: nowrap;
  1237. border-radius: 6px;
  1238. font-weight: 500;
  1239. font-size: 13px;
  1240. }
  1241. /* 时区转换器增强样式 */
  1242. .timezone-container {
  1243. margin-top: 25px;
  1244. }
  1245. .timezone-input-group {
  1246. width: 100%;
  1247. box-sizing: border-box;
  1248. }
  1249. .timezone-input-group .time-input-section {
  1250. width: 100%;
  1251. margin-bottom: 12px;
  1252. }
  1253. .timezone-input-group .form-control {
  1254. width: 100%;
  1255. box-sizing: border-box;
  1256. }
  1257. /* 并排布局,两个select各占50% */
  1258. .timezone-selectors {
  1259. display: flex;
  1260. gap: 12px;
  1261. width: 100%;
  1262. }
  1263. .timezone-selectors .from-timezone,
  1264. .timezone-selectors .to-timezone {
  1265. flex: 1 1 0;
  1266. min-width: 0;
  1267. display: flex;
  1268. flex-direction: column;
  1269. }
  1270. .timezone-selectors .form-control {
  1271. width: 100%;
  1272. min-width: 0;
  1273. box-sizing: border-box;
  1274. }
  1275. .timezone-selectors .form-label {
  1276. font-size: 14px;
  1277. font-weight: 600;
  1278. color: #495057;
  1279. margin-bottom: 5px;
  1280. }
  1281. .timezone-arrow {
  1282. color: #4a5568;
  1283. font-size: 16px;
  1284. padding: 0 5px;
  1285. }
  1286. .from-timezone-select, .to-timezone-select {
  1287. border-radius: 6px;
  1288. border: 2px solid #cbd5e0;
  1289. font-size: 13px;
  1290. }
  1291. .timezone-convert-btn {
  1292. white-space: nowrap;
  1293. padding: 8px 16px;
  1294. border-radius: 6px;
  1295. font-weight: 500;
  1296. }
  1297. .timezone-results {
  1298. padding: 15px;
  1299. background: #f7fafc;
  1300. border-radius: 8px;
  1301. border: 2px solid #e2e8f0;
  1302. min-height: 60px;
  1303. }
  1304. /* 数据库工具增强样式 */
  1305. .database-container {
  1306. margin-top: 25px;
  1307. }
  1308. .db-input-group {
  1309. display: flex;
  1310. gap: 15px;
  1311. align-items: center;
  1312. flex-wrap: wrap;
  1313. margin-bottom: 20px;
  1314. }
  1315. .time-db-input {
  1316. flex: 2;
  1317. min-width: 200px;
  1318. }
  1319. .db-time-input {
  1320. border-radius: 8px;
  1321. border: 2px solid #cbd5e0;
  1322. }
  1323. .db-type-selector {
  1324. flex: 1;
  1325. min-width: 150px;
  1326. }
  1327. .db-type-select {
  1328. border-radius: 6px;
  1329. border: 2px solid #cbd5e0;
  1330. }
  1331. .db-generate-btn {
  1332. white-space: nowrap;
  1333. padding: 8px 16px;
  1334. border-radius: 6px;
  1335. font-weight: 500;
  1336. }
  1337. .db-results {
  1338. border: 2px solid #e2e8f0;
  1339. border-radius: 8px;
  1340. padding: 15px;
  1341. background: #f7fafc;
  1342. }