index.css 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967
  1. body{
  2. margin: 0;
  3. }
  4. .market-container {
  5. padding: 20px;
  6. margin-top: 10px;
  7. background: #fff;
  8. border-radius: 4px;
  9. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  10. }
  11. /* 顶部搜索和筛选区 */
  12. .market-header {
  13. background-color: #f8f9fa;
  14. padding: 1rem;
  15. border-radius: 4px;
  16. margin-bottom: 1.5rem;
  17. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  18. position: sticky;
  19. top: 0;
  20. z-index: 100;
  21. transition: box-shadow 0.3s ease;
  22. }
  23. /* 滚动时的样式增强 */
  24. .market-header.scrolled {
  25. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  26. }
  27. .search-filters-container {
  28. display: flex;
  29. align-items: center;
  30. flex-wrap: wrap;
  31. gap: 1rem;
  32. }
  33. .search-box {
  34. position: relative;
  35. flex: 1;
  36. min-width: 200px;
  37. }
  38. .search-icon {
  39. position: absolute;
  40. left: 10px;
  41. top: 50%;
  42. transform: translateY(-50%);
  43. color: #6c757d;
  44. font-size: 16px;
  45. }
  46. .search-box input {
  47. width: 100%;
  48. padding: 8px 15px 8px 35px;
  49. border: 1px solid #ced4da;
  50. border-radius: 4px;
  51. font-size: 16px;
  52. transition: all 0.3s;
  53. }
  54. .search-box input:focus {
  55. border-color: #4ca1af;
  56. box-shadow: 0 0 0 0.2rem rgba(76, 161, 175, 0.25);
  57. outline: none;
  58. }
  59. .filter-group {
  60. position: relative;
  61. min-width: 150px;
  62. }
  63. .filter-label {
  64. position: absolute;
  65. top: -22px;
  66. left: 0;
  67. font-size: 14px;
  68. color: #6c757d;
  69. font-weight: 500;
  70. }
  71. .filter-select {
  72. width: 100%;
  73. padding: 8px 10px;
  74. border: 1px solid #ced4da;
  75. border-radius: 4px;
  76. font-size: 14px;
  77. background-color: white;
  78. cursor: pointer;
  79. transition: all 0.3s;
  80. }
  81. .filter-select:focus {
  82. border-color: #4ca1af;
  83. box-shadow: 0 0 0 0.2rem rgba(76, 161, 175, 0.25);
  84. outline: none;
  85. }
  86. .view-toggle {
  87. display: flex;
  88. border: 1px solid #ced4da;
  89. border-radius: 4px;
  90. overflow: hidden;
  91. }
  92. .view-btn {
  93. padding: 8px 15px;
  94. font-size: 14px;
  95. background-color: white;
  96. cursor: pointer;
  97. transition: all 0.3s;
  98. color: #6c757d;
  99. }
  100. .view-btn:hover {
  101. background-color: #f1f1f1;
  102. }
  103. .view-btn.active {
  104. background-color: #4ca1af;
  105. color: white;
  106. }
  107. /* 主体内容区 */
  108. .market-content {
  109. display: flex;
  110. gap: 20px;
  111. margin-top: 20px;
  112. padding-top: 10px;
  113. position: relative;
  114. }
  115. /* 侧边栏样式 */
  116. .market-sidebar {
  117. width: 200px;
  118. flex-shrink: 0;
  119. position: sticky;
  120. top: 80px; /* 与顶部header保持一定距离 */
  121. max-height: calc(100vh - 100px); /* 设置最大高度,确保不会超出视窗 */
  122. overflow-y: auto; /* 内容过多时可滚动 */
  123. scrollbar-width: thin;
  124. scrollbar-color: #d0d0d0 #f4f4f4;
  125. transition: all 0.3s ease;
  126. }
  127. /* 侧边栏滚动条样式 */
  128. .market-sidebar::-webkit-scrollbar {
  129. width: 6px;
  130. }
  131. .market-sidebar::-webkit-scrollbar-track {
  132. background: #f4f4f4;
  133. border-radius: 3px;
  134. }
  135. .market-sidebar::-webkit-scrollbar-thumb {
  136. background-color: #d0d0d0;
  137. border-radius: 3px;
  138. border: 1px solid #f4f4f4;
  139. }
  140. .market-sidebar::-webkit-scrollbar-thumb:hover {
  141. background-color: #c0c0c0;
  142. }
  143. /* 暗黑模式下的侧边栏滚动条 */
  144. [data-theme='dark'] .market-sidebar {
  145. scrollbar-color: #555 #333;
  146. }
  147. [data-theme='dark'] .market-sidebar::-webkit-scrollbar-track {
  148. background: #2a2a2a;
  149. }
  150. [data-theme='dark'] .market-sidebar::-webkit-scrollbar-thumb {
  151. background-color: #555;
  152. border: 1px solid #2a2a2a;
  153. }
  154. [data-theme='dark'] .market-sidebar::-webkit-scrollbar-thumb:hover {
  155. background-color: #666;
  156. }
  157. /* 侧边栏section样式优化 */
  158. .sidebar-section {
  159. background: #fff;
  160. border-radius: 4px;
  161. padding: 15px;
  162. margin-bottom: 20px;
  163. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  164. transition: all 0.3s ease;
  165. }
  166. /* 滚动时的样式增强 */
  167. .market-sidebar.scrolled .sidebar-section {
  168. box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  169. }
  170. .sidebar-section h4 {
  171. margin: 0 0 12px;
  172. padding-bottom: 12px;
  173. border-bottom: 1px solid #eee;
  174. font-size: 18px;
  175. color: #333;
  176. }
  177. .category-list li,
  178. .my-tools li {
  179. padding: 8px 10px;
  180. margin: 3px 0;
  181. cursor: pointer;
  182. border-radius: 4px;
  183. display: flex;
  184. justify-content: space-between;
  185. align-items: center;
  186. font-size: 14px;
  187. }
  188. .category-list li:hover,
  189. .my-tools li:hover {
  190. background: #f0f0f0;
  191. }
  192. .category-list li.active,
  193. .my-tools li.active {
  194. background: #e6f7ff;
  195. color: #1890ff;
  196. }
  197. .count {
  198. font-size: 14px;
  199. color: #999;
  200. }
  201. /* 工具展示区 */
  202. .tools-grid {
  203. flex: 1;
  204. }
  205. /* 网格视图 */
  206. .tools-container.grid {
  207. display: grid;
  208. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  209. gap: 20px;
  210. }
  211. .tool-card {
  212. background: #fff;
  213. border-radius: 4px;
  214. padding: 15px;
  215. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  216. display: flex;
  217. flex-direction: column;
  218. gap: 10px;
  219. transition: transform 0.2s;
  220. }
  221. .tool-card:hover {
  222. transform: translateY(-2px);
  223. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  224. }
  225. .tool-icon {
  226. font-size: 32px;
  227. display: inline-flex;
  228. align-items: center;
  229. justify-content: center;
  230. width: 24px;
  231. height: 24px;
  232. border-radius: 12px;
  233. margin-right: 12px;
  234. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  235. color: #2d3436;
  236. transition: all 0.3s ease;
  237. }
  238. .tool-card:hover .tool-icon {
  239. transform: scale(1.1);
  240. box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  241. }
  242. /* 为不同类型的工具设置不同的背景色 */
  243. .tool-card[data-category="dev"] .tool-icon {
  244. background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  245. }
  246. .tool-card[data-category="encode"] .tool-icon {
  247. background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
  248. }
  249. .tool-card[data-category="image"] .tool-icon {
  250. background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  251. }
  252. .tool-card[data-category="productivity"] .tool-icon {
  253. background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  254. }
  255. .tool-card[data-category="calculator"] .tool-icon {
  256. background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  257. }
  258. .tool-info {
  259. flex: 1;
  260. display: flex;
  261. flex-direction: column;
  262. justify-content: center;
  263. }
  264. .tool-info h3 {
  265. margin: 0 0 10px;
  266. font-size: 18px;
  267. color: #333;
  268. display: flex;
  269. align-items: center;
  270. gap: 10px;
  271. }
  272. .tool-desc {
  273. margin: 0;
  274. font-size: 14px;
  275. color: #666;
  276. line-height: 1.5;
  277. }
  278. .tool-meta {
  279. display: flex;
  280. gap: 15px;
  281. margin-top: 10px;
  282. font-size: 12px;
  283. color: #999;
  284. }
  285. .tool-actions {
  286. display: flex;
  287. gap: 8px;
  288. margin-top: 10px;
  289. }
  290. /* 列表视图 */
  291. .tools-container.list .tool-card {
  292. flex-direction: row;
  293. align-items: center;
  294. margin-bottom: 10px;
  295. }
  296. .tools-container.list .tool-info {
  297. margin: 0 15px;
  298. }
  299. /* 调整列表视图中图标的大小 */
  300. .tools-container.list .tool-icon {
  301. width: 40px;
  302. height: 40px;
  303. font-size: 28px;
  304. margin-right: 16px;
  305. }
  306. /* 按钮样式 */
  307. .btn {
  308. padding: 8px 15px;
  309. border: none;
  310. border-radius: 4px;
  311. cursor: pointer;
  312. font-size: 14px;
  313. transition: all 0.3s;
  314. }
  315. .btn-xs {
  316. padding: 4px 8px;
  317. font-size: 13px;
  318. line-height: 1.5;
  319. border-radius: 3px;
  320. }
  321. .btn:hover {
  322. opacity: 0.9;
  323. }
  324. .btn:disabled {
  325. opacity: 0.6;
  326. cursor: not-allowed;
  327. }
  328. .x-progress {
  329. font-size: 13px;
  330. margin-left: 3px;
  331. }
  332. /* 为系统预装的工具添加提示样式 */
  333. .btn-disabled {
  334. background-color: #e0e0e0;
  335. color: #999;
  336. cursor: not-allowed;
  337. }
  338. .btn-disabled:hover {
  339. opacity: 1;
  340. }
  341. .btn-success {
  342. background: #52c41a;
  343. color: #fff;
  344. }
  345. .btn-danger {
  346. background: #ff4d4f;
  347. color: #fff;
  348. }
  349. .btn-info {
  350. background: #1890ff;
  351. color: #fff;
  352. }
  353. .btn-warning {
  354. background: #faad14;
  355. color: #fff;
  356. }
  357. .btn-default {
  358. background: #f0f0f0;
  359. color: #666;
  360. }
  361. .btn-default.active {
  362. background-color: #ff4757;
  363. color: white;
  364. border-color: #ff4757;
  365. }
  366. .btn-default.active:hover {
  367. background-color: #ff6b81;
  368. border-color: #ff6b81;
  369. }
  370. .favorite-icon {
  371. color: #ff4757;
  372. margin-right: 4px;
  373. transition: all 0.3s ease;
  374. }
  375. .btn-default:not(.active) .favorite-icon {
  376. color: #666;
  377. }
  378. .btn-default.active .favorite-icon {
  379. transform: scale(1.2);
  380. color: white;
  381. }
  382. /* 暗黑模式适配 */
  383. [data-theme='dark'] .market-container {
  384. background: #1f1f1f;
  385. }
  386. [data-theme='dark'] .market-header {
  387. background-color: #2a2a2a;
  388. }
  389. [data-theme='dark'] .sidebar-section,
  390. [data-theme='dark'] .tool-card {
  391. background: #2d2d2d;
  392. box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  393. }
  394. [data-theme='dark'] .tool-info h3 {
  395. color: #fff;
  396. }
  397. [data-theme='dark'] .tool-desc {
  398. color: #bbb;
  399. }
  400. [data-theme='dark'] .category-list li:hover,
  401. [data-theme='dark'] .my-tools li:hover {
  402. background: #3d3d3d;
  403. }
  404. [data-theme='dark'] .category-list li.active {
  405. background: #177ddc;
  406. color: #fff;
  407. }
  408. [data-theme='dark'] .my-tools li.active {
  409. background: #177ddc;
  410. color: #fff;
  411. }
  412. [data-theme='dark'] .view-toggle span {
  413. background: #3d3d3d;
  414. color: #bbb;
  415. }
  416. [data-theme='dark'] .view-toggle span.active {
  417. background: #177ddc;
  418. color: #fff;
  419. }
  420. [data-theme='dark'] .btn-default {
  421. background: #3d3d3d;
  422. color: #bbb;
  423. }
  424. /* 暗黑模式下的图标样式调整 */
  425. [data-theme='dark'] .tool-icon {
  426. color: #ffffff;
  427. opacity: 0.9;
  428. }
  429. /* 推荐位和广告位样式 */
  430. .recommendation-container {
  431. margin-bottom: 20px;
  432. }
  433. .recommendation-section {
  434. display: grid;
  435. grid-template-columns: repeat(4, 1fr);
  436. gap: 15px;
  437. }
  438. .recommendation-card {
  439. display: flex;
  440. align-items: center;
  441. padding: 15px;
  442. background: #fff;
  443. border-radius: 6px;
  444. box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  445. cursor: pointer;
  446. transition: all 0.3s ease;
  447. position: relative;
  448. }
  449. .recommendation-card:hover {
  450. transform: translateY(-3px);
  451. box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  452. }
  453. .rec-icon {
  454. display: flex;
  455. align-items: center;
  456. justify-content: center;
  457. width: 60px;
  458. height: 60px;
  459. border-radius: 12px;
  460. background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  461. font-size: 28px;
  462. margin-right: 15px;
  463. flex-shrink: 0;
  464. }
  465. .recommendation-card:nth-child(1) .rec-icon {
  466. background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  467. }
  468. .recommendation-card:nth-child(2) .rec-icon {
  469. background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
  470. }
  471. .recommendation-card:nth-child(3) .rec-icon {
  472. background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  473. }
  474. .rec-content {
  475. flex: 1;
  476. }
  477. .rec-content h4 {
  478. margin: 0 0 8px;
  479. font-size: 18px;
  480. color: #333;
  481. }
  482. .rec-content p {
  483. margin: 0;
  484. font-size: 14px;
  485. color: #666;
  486. line-height: 1.4;
  487. }
  488. /* 广告卡片特殊样式 */
  489. .ad-card {
  490. position: relative;
  491. border: 1px solid #FFD700;
  492. background: linear-gradient(to right, #fff, #fffdf0);
  493. }
  494. .ad-icon {
  495. background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  496. }
  497. .ad-tag {
  498. position: absolute;
  499. top: 8px;
  500. right: 8px;
  501. background: rgba(255, 215, 0, 0.2);
  502. border: 1px solid #FFD700;
  503. border-radius: 4px;
  504. padding: 3px 8px;
  505. font-size: 12px;
  506. color: #997a00;
  507. }
  508. /* 必装标签样式 */
  509. .must-tag {
  510. position: absolute;
  511. top: 8px;
  512. right: 8px;
  513. background: rgba(82, 196, 26, 0.2);
  514. border: 1px solid #52c41a;
  515. border-radius: 4px;
  516. padding: 3px 8px;
  517. font-size: 12px;
  518. color: #52c41a;
  519. }
  520. /* 最新标签样式 */
  521. .new-tag {
  522. position: absolute;
  523. top: 8px;
  524. right: 8px;
  525. background: rgba(24, 144, 255, 0.2);
  526. border: 1px solid #1890ff;
  527. border-radius: 4px;
  528. padding: 3px 8px;
  529. font-size: 12px;
  530. color: #1890ff;
  531. }
  532. /* 推荐标签样式 */
  533. .recommend-tag {
  534. position: absolute;
  535. top: 8px;
  536. right: 8px;
  537. background: rgba(250, 84, 28, 0.2);
  538. border: 1px solid #fa541c;
  539. border-radius: 4px;
  540. padding: 3px 8px;
  541. font-size: 12px;
  542. color: #fa541c;
  543. }
  544. /* 暗黑模式适配 */
  545. [data-theme='dark'] .recommendation-card {
  546. background: #2d2d2d;
  547. box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  548. }
  549. [data-theme='dark'] .rec-content h4 {
  550. color: #fff;
  551. }
  552. [data-theme='dark'] .rec-content p {
  553. color: #bbb;
  554. }
  555. [data-theme='dark'] .ad-card {
  556. background: linear-gradient(to right, #2d2d2d, #332e1f);
  557. border-color: #997a00;
  558. }
  559. [data-theme='dark'] .ad-tag {
  560. background: rgba(255, 215, 0, 0.15);
  561. color: #FFD700;
  562. }
  563. /* 暗黑模式下的必装标签 */
  564. [data-theme='dark'] .must-tag {
  565. background: rgba(82, 196, 26, 0.15);
  566. color: #73d13d;
  567. border-color: #52c41a;
  568. }
  569. /* 暗黑模式下的最新标签 */
  570. [data-theme='dark'] .new-tag {
  571. background: rgba(24, 144, 255, 0.15);
  572. color: #40a9ff;
  573. border-color: #1890ff;
  574. }
  575. /* 暗黑模式下的推荐标签 */
  576. [data-theme='dark'] .recommend-tag {
  577. background: rgba(250, 84, 28, 0.15);
  578. color: #ff7a45;
  579. border-color: #fa541c;
  580. }
  581. /* 轮播Banner区域 */
  582. /* 导航链接样式 */
  583. .x-nav-links {
  584. margin-right: 15px;
  585. }
  586. .x-nav-links a {
  587. color: #1890ff;
  588. text-decoration: none;
  589. margin-left: 15px;
  590. font-size: 14px;
  591. }
  592. .x-nav-links a:hover {
  593. color: #40a9ff;
  594. text-decoration: underline;
  595. }
  596. /* 设置弹窗样式 */
  597. .settings-modal {
  598. position: fixed;
  599. top: 0;
  600. left: 0;
  601. right: 0;
  602. bottom: 0;
  603. background-color: rgba(0, 0, 0, 0.5);
  604. z-index: 1000;
  605. display: flex;
  606. justify-content: center;
  607. align-items: center;
  608. backdrop-filter: blur(2px);
  609. }
  610. .settings-dialog {
  611. background-color: #fff;
  612. border-radius: 8px;
  613. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  614. width: 80%;
  615. max-width: 800px;
  616. max-height: 90vh;
  617. display: flex;
  618. flex-direction: column;
  619. animation: fadeIn 0.3s ease;
  620. overflow: hidden;
  621. }
  622. @keyframes fadeIn {
  623. from { opacity: 0; transform: translateY(-20px); }
  624. to { opacity: 1; transform: translateY(0); }
  625. }
  626. .settings-header {
  627. padding: 16px 20px;
  628. border-bottom: 1px solid #e8e8e8;
  629. display: flex;
  630. justify-content: space-between;
  631. align-items: center;
  632. position: sticky;
  633. top: 0;
  634. background-color: #fff;
  635. z-index: 10;
  636. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  637. flex-shrink: 0;
  638. }
  639. .settings-header h3 {
  640. margin: 0;
  641. color: #333;
  642. font-size: 20px;
  643. font-weight: 600;
  644. }
  645. .close-btn {
  646. font-size: 28px;
  647. color: #999;
  648. cursor: pointer;
  649. transition: all 0.3s;
  650. width: 32px;
  651. height: 32px;
  652. display: flex;
  653. align-items: center;
  654. justify-content: center;
  655. border-radius: 50%;
  656. }
  657. .close-btn:hover {
  658. color: #666;
  659. background-color: #f0f0f0;
  660. }
  661. .settings-body {
  662. padding: 0 20px;
  663. overflow-y: auto;
  664. flex: 1;
  665. scrollbar-width: thin;
  666. scrollbar-color: #d0d0d0 #f4f4f4;
  667. }
  668. .settings-body label {
  669. font-weight: normal !important;
  670. display: inline-flex;
  671. align-items: center;
  672. }
  673. .settings-body label b,
  674. .settings-body label i,
  675. .settings-body label strong {
  676. font-weight: bold;
  677. }
  678. .settings-body::-webkit-scrollbar {
  679. width: 8px;
  680. }
  681. .settings-body::-webkit-scrollbar-track {
  682. background: #f4f4f4;
  683. border-radius: 4px;
  684. }
  685. .settings-body::-webkit-scrollbar-thumb {
  686. background-color: #d0d0d0;
  687. border-radius: 4px;
  688. border: 2px solid #f4f4f4;
  689. }
  690. .settings-body::-webkit-scrollbar-thumb:hover {
  691. background-color: #c0c0c0;
  692. }
  693. .settings-footer {
  694. padding: 16px 20px;
  695. border-top: 1px solid #e8e8e8;
  696. display: flex;
  697. justify-content: flex-end;
  698. gap: 12px;
  699. position: sticky;
  700. bottom: 0;
  701. background-color: #fff;
  702. z-index: 10;
  703. box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  704. flex-shrink: 0;
  705. }
  706. .settings-footer .btn {
  707. padding: 8px 20px;
  708. border-radius: 4px;
  709. font-size: 14px;
  710. font-weight: 500;
  711. transition: all 0.3s ease;
  712. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  713. }
  714. .settings-footer .btn-success {
  715. background: linear-gradient(135deg, #52c41a, #39a012);
  716. }
  717. .settings-footer .btn-success:hover {
  718. background: linear-gradient(135deg, #5bd81e, #43b515);
  719. box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  720. transform: translateY(-1px);
  721. }
  722. .settings-footer .btn-danger {
  723. background: linear-gradient(135deg, #ff4d4f, #e02b2e);
  724. }
  725. .settings-footer .btn-danger:hover {
  726. background: linear-gradient(135deg, #ff6769, #ed3437);
  727. box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  728. transform: translateY(-1px);
  729. }
  730. .dark-mode .settings-footer {
  731. border-top-color: #333;
  732. background-color: #1f1f1f;
  733. box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
  734. }
  735. .dark-mode .settings-footer .btn {
  736. box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  737. }
  738. .dark-mode .settings-footer .btn-success {
  739. background: linear-gradient(135deg, #49b616, #338c0f);
  740. }
  741. .dark-mode .settings-footer .btn-success:hover {
  742. background: linear-gradient(135deg, #52c41a, #39a012);
  743. }
  744. .dark-mode .settings-footer .btn-danger {
  745. background: linear-gradient(135deg, #e63e40, #cc2729);
  746. }
  747. .dark-mode .settings-footer .btn-danger:hover {
  748. background: linear-gradient(135deg, #ff4d4f, #e02b2e);
  749. }
  750. .a-btn {
  751. display: inline-block;
  752. background-color: #1890ff;
  753. color: white;
  754. padding: 2px 8px;
  755. border-radius: 3px;
  756. margin-left: 10px;
  757. font-size: 12px;
  758. text-decoration: none;
  759. }
  760. .a-btn:hover {
  761. background-color: #40a9ff;
  762. text-decoration: none;
  763. }
  764. .x-count-down {
  765. margin-left: 10px;
  766. font-size: 12px;
  767. color: #ff4d4f;
  768. }
  769. .x-tips {
  770. color: #666;
  771. font-size: 14px;
  772. margin-left: 5px;
  773. }
  774. /* 暗黑模式样式适配 */
  775. .dark-mode .settings-modal {
  776. background-color: rgba(0, 0, 0, 0.7);
  777. }
  778. .dark-mode .settings-dialog {
  779. background-color: #1f1f1f;
  780. color: #eee;
  781. box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  782. }
  783. .dark-mode .settings-header {
  784. border-bottom-color: #333;
  785. background-color: #1f1f1f;
  786. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  787. }
  788. .dark-mode .settings-header h3 {
  789. color: #eee;
  790. }
  791. .dark-mode .close-btn {
  792. color: #aaa;
  793. }
  794. .dark-mode .close-btn:hover {
  795. color: #eee;
  796. background-color: #333;
  797. }
  798. .dark-mode .settings-section h4 {
  799. color: #eee;
  800. }
  801. .dark-mode .box-config {
  802. background-color: #2a2a2a;
  803. }
  804. .dark-mode .box-inner {
  805. background-color: #333;
  806. }
  807. /* 导航栏样式 */
  808. .main-navbar {
  809. display: flex;
  810. justify-content: space-between;
  811. align-items: center;
  812. padding: 8px 15px; /* 减少垂直内边距 */
  813. background: linear-gradient(to right, #2c3e50, #4ca1af);
  814. color: #fff;
  815. position: relative;
  816. min-height: 48px; /* 限制最小高度 */
  817. max-height: 60px; /* 限制最大高度 */
  818. }
  819. .navbar-brand {
  820. display: flex;
  821. align-items: center;
  822. }
  823. .brand-link {
  824. display: flex;
  825. align-items: center;
  826. color: #fff;
  827. text-decoration: none;
  828. font-weight: 500;
  829. font-size: 16px;
  830. transition: all 0.3s ease;
  831. }
  832. .brand-link:hover {
  833. opacity: 0.9;
  834. text-decoration: none;
  835. color: #fff;
  836. }
  837. .brand-link img {
  838. height: 20px;
  839. width: 20px;
  840. margin-right: 6px;
  841. }
  842. .brand-text {
  843. font-weight: 600;
  844. font-size: 16px;
  845. }
  846. .brand-subtitle {
  847. margin-left: 6px;
  848. font-size: 14px;
  849. opacity: 0.9;
  850. font-weight: normal;
  851. position: relative;
  852. padding-left: 8px;
  853. }
  854. .brand-subtitle::before {
  855. content: '';
  856. position: absolute;
  857. left: 0;
  858. top: 50%;
  859. transform: translateY(-50%);
  860. height: 70%;
  861. width: 1px;
  862. background-color: rgba(255, 255, 255, 0.5);
  863. }
  864. .navbar-actions {
  865. display: flex;
  866. align-items: center;
  867. gap: 15px;
  868. }
  869. /* 版本信息区域 - 统一样式 */
  870. .version-info {
  871. display: flex;
  872. align-items: center;
  873. font-size: 12px;
  874. color: rgba(255, 255, 255, 0.9);
  875. background: rgba(0, 0, 0, 0.15);
  876. padding: 6px 12px;
  877. border-radius: 6px;
  878. gap: 8px;
  879. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  880. max-height: 36px; /* 限制最大高度,保持导航栏紧凑 */
  881. overflow: hidden;
  882. }
  883. .nav-item {
  884. position: relative;
  885. transition: all 0.3s ease;
  886. overflow: hidden;
  887. display: flex;
  888. align-items: center;
  889. justify-content: center;
  890. color: #fff;
  891. text-decoration: none;
  892. padding: 6px 12px; /* 减少内边距 */
  893. border-radius: 5px;
  894. font-size: 13px; /* 稍微减小字体 */
  895. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  896. min-width: 90px; /* 减少最小宽度 */
  897. text-align: center;
  898. height: 32px; /* 固定高度 */
  899. box-sizing: border-box;
  900. }
  901. .nav-item:hover {
  902. background-color: rgba(255, 255, 255, 0.1);
  903. transform: translateY(-2px);
  904. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  905. color: #fff;
  906. text-decoration: none;
  907. }
  908. .nav-item:active {
  909. transform: translateY(0);
  910. box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  911. }
  912. .nav-icon {
  913. display: inline-block;
  914. transition: all 0.3s ease;
  915. margin-right: 6px;
  916. font-size: 16px;
  917. }
  918. .nav-item:hover .nav-icon {
  919. transform: scale(1.2) rotate(10deg);
  920. }
  921. /* 波纹效果 */
  922. .nav-item::after {
  923. content: '';
  924. position: absolute;
  925. top: 50%;
  926. left: 50%;
  927. width: 5px;
  928. height: 5px;
  929. background: rgba(255, 255, 255, 0.3);
  930. opacity: 0;
  931. border-radius: 100%;
  932. transform: scale(1, 1) translate(-50%);
  933. transform-origin: 50% 50%;
  934. }
  935. .nav-item:hover::after {
  936. animation: ripple 0.6s ease-out;
  937. }
  938. /* 打赏鼓励按钮特殊效果 */
  939. .navbar-actions .donate-link {
  940. background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
  941. color: #333;
  942. position: relative;
  943. overflow: hidden;
  944. }
  945. .navbar-actions .donate-link:hover {
  946. background: linear-gradient(45deg, #ff7675, #d63031);
  947. transform: translateY(-3px);
  948. box-shadow: 0 5px 15px rgba(255, 105, 97, 0.4);
  949. color: #fff;
  950. }
  951. .navbar-actions .donate-link .nav-icon {
  952. color: #e74c3c;
  953. font-size: 18px;
  954. }
  955. .navbar-actions .donate-link:hover .nav-icon {
  956. animation: heartbeat 1.2s infinite;
  957. color: #fff;
  958. }
  959. /* 设置按钮特殊效果 */
  960. .navbar-actions .settings-link {
  961. position: relative;
  962. overflow: hidden;
  963. background-color: rgba(255, 255, 255, 0.15);
  964. }
  965. .navbar-actions .settings-link:hover {
  966. background: linear-gradient(45deg, #74b9ff, #0984e3);
  967. }
  968. .navbar-actions .settings-link .nav-icon {
  969. transition: transform 0.5s ease;
  970. }
  971. .navbar-actions .settings-link:hover .nav-icon {
  972. animation: rotate 2s linear infinite;
  973. }
  974. /* 动画关键帧 */
  975. @keyframes ripple {
  976. 0% {
  977. transform: scale(0, 0);
  978. opacity: 1;
  979. }
  980. 20% {
  981. transform: scale(25, 25);
  982. opacity: 1;
  983. }
  984. 100% {
  985. opacity: 0;
  986. transform: scale(40, 40);
  987. }
  988. }
  989. @keyframes heartbeat {
  990. 0% { transform: scale(1); }
  991. 25% { transform: scale(1.3); }
  992. 50% { transform: scale(1); }
  993. 75% { transform: scale(1.3); }
  994. 100% { transform: scale(1); }
  995. }
  996. @keyframes rotate {
  997. 0% { transform: rotate(0deg); }
  998. 100% { transform: rotate(360deg); }
  999. }
  1000. /* 响应式调整 */
  1001. @media (max-width: 768px) {
  1002. .navbar-actions {
  1003. gap: 10px;
  1004. }
  1005. .nav-item {
  1006. min-width: auto;
  1007. padding: 8px 12px;
  1008. }
  1009. .version-info {
  1010. padding: 4px 8px;
  1011. font-size: 10px;
  1012. gap: 4px;
  1013. max-height: 28px;
  1014. }
  1015. .version-details {
  1016. gap: 3px;
  1017. }
  1018. .current-version,
  1019. .latest-version-text {
  1020. font-size: 9px;
  1021. padding: 1px 3px;
  1022. }
  1023. .update-btn {
  1024. font-size: 9px;
  1025. padding: 2px 6px;
  1026. height: 16px;
  1027. }
  1028. /* 搜索和筛选区域响应式 */
  1029. .search-filters-container {
  1030. flex-direction: column;
  1031. align-items: stretch;
  1032. }
  1033. .filter-group {
  1034. width: 100%;
  1035. }
  1036. .view-toggle {
  1037. margin-top: 1rem;
  1038. width: 100%;
  1039. }
  1040. .view-btn {
  1041. flex: 1;
  1042. text-align: center;
  1043. }
  1044. .market-content {
  1045. flex-direction: column;
  1046. }
  1047. .market-sidebar {
  1048. width: 100%;
  1049. position: relative;
  1050. top: 0;
  1051. max-height: none;
  1052. margin-bottom: 20px;
  1053. }
  1054. }
  1055. @media (max-width: 600px) {
  1056. .brand-subtitle {
  1057. display: none;
  1058. }
  1059. .nav-item {
  1060. padding: 6px 10px;
  1061. }
  1062. .nav-item span {
  1063. display: none;
  1064. }
  1065. .nav-icon {
  1066. margin-right: 0;
  1067. font-size: 18px;
  1068. }
  1069. .version-info {
  1070. padding: 3px 6px;
  1071. font-size: 10px;
  1072. gap: 4px;
  1073. max-height: 24px;
  1074. }
  1075. .version-latest {
  1076. font-size: 10px;
  1077. gap: 3px;
  1078. }
  1079. .version-number {
  1080. font-size: 9px;
  1081. padding: 1px 2px;
  1082. }
  1083. .version-details {
  1084. gap: 3px;
  1085. }
  1086. .current-version,
  1087. .latest-version-text {
  1088. font-size: 9px;
  1089. padding: 1px 3px;
  1090. }
  1091. .update-btn {
  1092. font-size: 9px;
  1093. padding: 2px 6px;
  1094. height: 16px;
  1095. }
  1096. .donate-link span,
  1097. .settings-link span {
  1098. display: none;
  1099. }
  1100. .donate-link .nav-icon,
  1101. .settings-link .nav-icon {
  1102. margin-right: 0;
  1103. }
  1104. }
  1105. /* 暗黑模式下搜索和筛选区样式 */
  1106. .dark-mode .search-box input,
  1107. .dark-mode .filter-select {
  1108. background-color: #333;
  1109. border-color: #444;
  1110. color: #eee;
  1111. }
  1112. .dark-mode .filter-label {
  1113. color: #aaa;
  1114. }
  1115. .dark-mode .view-toggle {
  1116. border-color: #444;
  1117. }
  1118. .dark-mode .view-btn {
  1119. background-color: #333;
  1120. color: #aaa;
  1121. }
  1122. .dark-mode .view-btn.active {
  1123. background-color: #4ca1af;
  1124. color: white;
  1125. }
  1126. /* 版本号与更新提示 - 优化为水平紧凑布局 */
  1127. .version-details {
  1128. display: flex;
  1129. align-items: center;
  1130. gap: 6px;
  1131. flex-wrap: wrap; /* 在必要时换行 */
  1132. }
  1133. .version-label {
  1134. font-size: 10px;
  1135. color: rgba(255,255,255,0.7);
  1136. white-space: nowrap; /* 防止换行 */
  1137. margin: 0; /* 移除边距 */
  1138. }
  1139. .current-version {
  1140. font-size: 11px;
  1141. font-weight: 500;
  1142. color: #fff;
  1143. padding: 1px 4px;
  1144. background-color: rgba(24, 144, 255, 0.5);
  1145. border-radius: 3px;
  1146. letter-spacing: 0.2px;
  1147. white-space: nowrap;
  1148. }
  1149. .latest-version-text {
  1150. font-size: 11px;
  1151. font-weight: 500;
  1152. color: #fff;
  1153. padding: 1px 4px;
  1154. background-color: rgba(82, 196, 26, 0.5);
  1155. border-radius: 3px;
  1156. letter-spacing: 0.2px;
  1157. white-space: nowrap;
  1158. }
  1159. .latest-version-container {
  1160. height: 18px;
  1161. display: flex;
  1162. align-items: center;
  1163. }
  1164. .latest-version-img {
  1165. height: 18px;
  1166. transition: transform 0.2s ease;
  1167. cursor: pointer;
  1168. }
  1169. .latest-version-img:hover {
  1170. transform: scale(1.05);
  1171. }
  1172. .update-btn {
  1173. background-color: #ff6b6b;
  1174. color: white;
  1175. border: none;
  1176. padding: 3px 8px;
  1177. border-radius: 3px;
  1178. font-size: 10px;
  1179. font-weight: 500;
  1180. cursor: pointer;
  1181. box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  1182. animation: pulse 1.5s infinite;
  1183. transition: background-color 0.3s;
  1184. white-space: nowrap;
  1185. height: 20px; /* 固定高度 */
  1186. display: flex;
  1187. align-items: center;
  1188. }
  1189. .update-btn:hover {
  1190. background-color: #ff5252;
  1191. }
  1192. @keyframes pulse {
  1193. 0% {
  1194. box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  1195. }
  1196. 70% {
  1197. box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
  1198. }
  1199. 100% {
  1200. box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  1201. }
  1202. }
  1203. .dark-mode .current-version {
  1204. background-color: rgba(24, 144, 255, 0.5);
  1205. color: #fff;
  1206. }
  1207. .dark-mode .latest-version-text {
  1208. background-color: rgba(82, 196, 26, 0.5);
  1209. color: #fff;
  1210. }
  1211. .dark-mode .version-label {
  1212. color: #aaa;
  1213. }
  1214. .dark-mode .update-btn {
  1215. background-color: #ff7676;
  1216. }
  1217. .dark-mode .update-btn:hover {
  1218. background-color: #ff5e5e;
  1219. }
  1220. .version-latest {
  1221. display: flex;
  1222. align-items: center;
  1223. font-size: 12px;
  1224. font-weight: 500;
  1225. color: #fff;
  1226. gap: 6px;
  1227. white-space: nowrap;
  1228. }
  1229. .version-check-icon {
  1230. color: #52c41a;
  1231. font-size: 14px;
  1232. text-shadow: 0 0 5px rgba(82, 196, 26, 0.5);
  1233. flex-shrink: 0;
  1234. }
  1235. .dark-mode .version-latest {
  1236. color: #f0f0f0;
  1237. }
  1238. .dark-mode .version-check-icon {
  1239. color: #73d13d;
  1240. }
  1241. .version-number {
  1242. background-color: rgba(0, 0, 0, 0.2);
  1243. border-radius: 3px;
  1244. padding: 1px 4px;
  1245. margin-left: 2px;
  1246. font-weight: 400;
  1247. color: #fff;
  1248. font-size: 11px;
  1249. white-space: nowrap;
  1250. }
  1251. .dark-mode .version-number {
  1252. background-color: rgba(255, 255, 255, 0.15);
  1253. color: #fff;
  1254. }
  1255. /* 暗黑模式滚动条 */
  1256. .dark-mode .settings-body {
  1257. scrollbar-color: #555 #333;
  1258. }
  1259. .dark-mode .settings-body::-webkit-scrollbar-track {
  1260. background: #2a2a2a;
  1261. }
  1262. .dark-mode .settings-body::-webkit-scrollbar-thumb {
  1263. background-color: #555;
  1264. border: 2px solid #2a2a2a;
  1265. }
  1266. .dark-mode .settings-body::-webkit-scrollbar-thumb:hover {
  1267. background-color: #666;
  1268. }
  1269. .dark-mode .settings-section {
  1270. border-bottom-color: #333;
  1271. }
  1272. .settings-section {
  1273. margin-bottom: 25px;
  1274. padding-bottom: 15px;
  1275. border-bottom: 1px dashed #eee;
  1276. }
  1277. .settings-section:last-child {
  1278. margin-bottom: 0;
  1279. padding-bottom: 0;
  1280. border-bottom: none;
  1281. }
  1282. .settings-section h4 {
  1283. margin-top: 0;
  1284. margin-bottom: 15px;
  1285. font-size: 18px;
  1286. font-weight: 600;
  1287. color: #333;
  1288. }
  1289. .box-config {
  1290. background-color: #f9f9f9;
  1291. border-radius: 4px;
  1292. padding: 15px;
  1293. }
  1294. .st-item {
  1295. margin-bottom: 15px;
  1296. }
  1297. .box-inner {
  1298. margin-top: 10px;
  1299. background-color: #f0f0f0;
  1300. padding: 10px;
  1301. border-radius: 4px;
  1302. }
  1303. .row-line {
  1304. margin-bottom: 8px;
  1305. }
  1306. .x-disabled {
  1307. opacity: 0.6;
  1308. pointer-events: none;
  1309. }
  1310. /* 设置打赏按钮样式 */
  1311. .donate-link:hover {
  1312. transform: translateY(-3px);
  1313. box-shadow: 0 5px 15px rgba(255, 105, 97, 0.4);
  1314. background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  1315. }
  1316. .donate-link:active {
  1317. transform: translateY(0);
  1318. }
  1319. .donate-link .nav-icon {
  1320. color: #e74c3c;
  1321. font-size: 18px;
  1322. animation: heartbeat 1.3s ease-in-out infinite;
  1323. }
  1324. .donate-link:hover .nav-icon {
  1325. animation: heartbeat 0.6s ease-in-out infinite;
  1326. }
  1327. @keyframes heartbeat {
  1328. 0% {
  1329. transform: scale(1);
  1330. }
  1331. 14% {
  1332. transform: scale(1.3);
  1333. }
  1334. 28% {
  1335. transform: scale(1);
  1336. }
  1337. 42% {
  1338. transform: scale(1.3);
  1339. }
  1340. 70% {
  1341. transform: scale(1);
  1342. }
  1343. }
  1344. /* 打赏模态框样式 */
  1345. .donate-modal .settings-dialog {
  1346. max-width: 500px;
  1347. }
  1348. .donate-content {
  1349. text-align: center;
  1350. padding: 10px;
  1351. }
  1352. .donate-desc {
  1353. font-size: 16px;
  1354. margin-bottom: 20px;
  1355. color: #666;
  1356. line-height: 1.6;
  1357. }
  1358. .donate-qrcode {
  1359. display: flex;
  1360. flex-direction: column;
  1361. align-items: center;
  1362. margin-bottom: 20px;
  1363. }
  1364. .donate-image {
  1365. max-width: 250px;
  1366. border-radius: 10px;
  1367. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  1368. margin-bottom: 15px;
  1369. transition: transform 0.3s ease;
  1370. }
  1371. .donate-image:hover {
  1372. transform: scale(1.05);
  1373. }
  1374. .donate-text {
  1375. font-size: 18px;
  1376. font-weight: bold;
  1377. color: #e74c3c;
  1378. margin-top: 10px;
  1379. }
  1380. /* 暗黑模式下的打赏样式 */
  1381. .dark-mode .donate-link {
  1382. background: linear-gradient(135deg, #ff6b6b 0%, #f39c12 100%);
  1383. color: #fff;
  1384. }
  1385. .dark-mode .donate-link:hover {
  1386. background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
  1387. }
  1388. .dark-mode .donate-link .nav-icon {
  1389. color: #fff;
  1390. }
  1391. .dark-mode .donate-desc {
  1392. color: #ccc;
  1393. }
  1394. .dark-mode .donate-text {
  1395. color: #ff6b6b;
  1396. }
  1397. /* 媒体查询-移动设备 */
  1398. @media (max-width: 600px) {
  1399. .donate-link span {
  1400. display: none;
  1401. }
  1402. .donate-image {
  1403. max-width: 180px;
  1404. }
  1405. }
  1406. /* 确认对话框样式 */
  1407. .confirm-modal .settings-dialog {
  1408. max-width: 450px;
  1409. }
  1410. .confirm-content {
  1411. display: flex;
  1412. align-items: center;
  1413. padding: 20px 10px;
  1414. }
  1415. .confirm-icon {
  1416. font-size: 36px;
  1417. color: #f39c12;
  1418. margin-right: 20px;
  1419. background: rgba(243, 156, 18, 0.1);
  1420. width: 60px;
  1421. height: 60px;
  1422. border-radius: 50%;
  1423. display: flex;
  1424. justify-content: center;
  1425. align-items: center;
  1426. flex-shrink: 0;
  1427. }
  1428. .confirm-message {
  1429. font-size: 16px;
  1430. line-height: 1.6;
  1431. color: #555;
  1432. margin: 0;
  1433. }
  1434. /* 确认对话框动画 */
  1435. .confirm-modal .settings-dialog {
  1436. animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  1437. }
  1438. @keyframes bounceIn {
  1439. 0% {
  1440. transform: scale(0.8);
  1441. opacity: 0;
  1442. }
  1443. 70% {
  1444. transform: scale(1.05);
  1445. opacity: 1;
  1446. }
  1447. 100% {
  1448. transform: scale(1);
  1449. }
  1450. }
  1451. /* 黑暗模式下的确认对话框 */
  1452. .dark-mode .confirm-icon {
  1453. color: #f39c12;
  1454. background: rgba(243, 156, 18, 0.2);
  1455. }
  1456. .dark-mode .confirm-message {
  1457. color: #ddd;
  1458. }
  1459. /* 暗黑模式下的导航栏按钮样式 */
  1460. .dark-mode .navbar-actions .settings-link {
  1461. background-color: rgba(255, 255, 255, 0.08);
  1462. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  1463. }
  1464. .dark-mode .navbar-actions .settings-link:hover {
  1465. background: linear-gradient(45deg, #3498db, #2980b9);
  1466. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  1467. }
  1468. .dark-mode .navbar-actions .donate-link {
  1469. background: linear-gradient(135deg, #ff6b6b 0%, #f39c12 100%);
  1470. color: #fff;
  1471. }
  1472. .dark-mode .navbar-actions .donate-link:hover {
  1473. background: linear-gradient(45deg, #e74c3c, #c0392b);
  1474. color: #fff;
  1475. }
  1476. /* 暗黑模式下的波纹效果 */
  1477. .dark-mode .navbar-actions .nav-item::after {
  1478. background: rgba(255, 255, 255, 0.4);
  1479. }
  1480. .dark-mode .navbar-actions .donate-link .nav-icon,
  1481. .dark-mode .navbar-actions .settings-link .nav-icon {
  1482. color: #fff;
  1483. }
  1484. /* 工具排序样式 */
  1485. .tool-sort-container {
  1486. background: #f8f9fa;
  1487. border-radius: 8px;
  1488. padding: 15px;
  1489. margin-top: 10px;
  1490. }
  1491. .sort-tips {
  1492. color: #6c757d;
  1493. font-size: 12px;
  1494. margin-bottom: 12px;
  1495. padding: 6px 10px;
  1496. background: rgba(0, 123, 255, 0.08);
  1497. border-left: 3px solid #007bff;
  1498. border-radius: 4px;
  1499. line-height: 1.4;
  1500. }
  1501. .sortable-list {
  1502. background: white;
  1503. border-radius: 6px;
  1504. border: 1px solid #e9ecef;
  1505. min-height: 180px;
  1506. max-height: 350px;
  1507. overflow-y: auto;
  1508. padding: 6px;
  1509. }
  1510. .sortable-item {
  1511. display: flex;
  1512. align-items: center;
  1513. padding: 2px 12px;
  1514. margin: 2px 0;
  1515. background: white;
  1516. border: 1px solid #e9ecef;
  1517. border-radius: 4px;
  1518. cursor: move;
  1519. transition: all 0.2s ease;
  1520. position: relative;
  1521. }
  1522. .sortable-item:hover {
  1523. background: #f8f9fa;
  1524. border-color: #007bff;
  1525. box-shadow: 0 1px 3px rgba(0, 123, 255, 0.15);
  1526. transform: translateY(-1px);
  1527. }
  1528. .sortable-item.dragging {
  1529. opacity: 0.6;
  1530. transform: scale(1.02);
  1531. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  1532. background: #fff3cd;
  1533. border-color: #ffc107;
  1534. }
  1535. .sortable-item.drag-over {
  1536. border-top: 3px solid #007bff;
  1537. background: rgba(0, 123, 255, 0.05);
  1538. }
  1539. .drag-handle {
  1540. font-size: 14px;
  1541. color: #6c757d;
  1542. margin-right: 10px;
  1543. cursor: grab;
  1544. padding: 2px 4px;
  1545. border-radius: 3px;
  1546. transition: all 0.2s ease;
  1547. user-select: none;
  1548. width: 20px;
  1549. text-align: center;
  1550. flex-shrink: 0;
  1551. }
  1552. .drag-handle:hover {
  1553. background: #e9ecef;
  1554. color: #495057;
  1555. }
  1556. .drag-handle:active {
  1557. cursor: grabbing;
  1558. }
  1559. .sortable-item .tool-icon {
  1560. font-size: 16px;
  1561. margin-right: 10px;
  1562. text-align: center;
  1563. flex-shrink: 0;
  1564. }
  1565. .sortable-item .tool-name {
  1566. font-weight: 500;
  1567. color: #343a40;
  1568. margin-right: 12px;
  1569. min-width: 100px;
  1570. flex-shrink: 0;
  1571. font-size: 14px;
  1572. }
  1573. .sortable-item .tool-desc {
  1574. color: #6c757d;
  1575. font-size: 12px;
  1576. flex: 1;
  1577. overflow: hidden;
  1578. text-overflow: ellipsis;
  1579. white-space: nowrap;
  1580. line-height: 1.3;
  1581. }
  1582. .sort-actions {
  1583. margin-top: 12px;
  1584. text-align: right;
  1585. }
  1586. .sort-actions .btn {
  1587. margin-left: 6px;
  1588. }
  1589. .btn-sm {
  1590. padding: 5px 10px;
  1591. font-size: 12px;
  1592. }
  1593. /* 暗黑模式下的排序样式 */
  1594. .dark-mode .tool-sort-container {
  1595. background: #2a2a2a;
  1596. }
  1597. .dark-mode .sort-tips {
  1598. background: rgba(0, 123, 255, 0.2);
  1599. color: #d4d4d4;
  1600. }
  1601. .dark-mode .sortable-list {
  1602. background: #1e1e1e;
  1603. border-color: #404040;
  1604. }
  1605. .dark-mode .sortable-item {
  1606. background: #1e1e1e;
  1607. border-color: #404040;
  1608. }
  1609. .dark-mode .sortable-item:hover {
  1610. background: #2a2a2a;
  1611. border-color: #007bff;
  1612. }
  1613. .dark-mode .sortable-item.dragging {
  1614. background: #3a3a2a;
  1615. border-color: #ffc107;
  1616. }
  1617. .dark-mode .sortable-item.drag-over {
  1618. background: rgba(0, 123, 255, 0.1);
  1619. }
  1620. .dark-mode .drag-handle {
  1621. color: #888;
  1622. }
  1623. .dark-mode .drag-handle:hover {
  1624. background: #404040;
  1625. color: #d4d4d4;
  1626. }
  1627. .dark-mode .sortable-item .tool-name {
  1628. color: #d4d4d4;
  1629. }
  1630. .dark-mode .sortable-item .tool-desc {
  1631. color: #888;
  1632. }
  1633. /* 突出显示修复按钮 */
  1634. .highlight-bugfix {
  1635. background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
  1636. color: #fff !important;
  1637. border-radius: 6px;
  1638. font-weight: bold;
  1639. margin-left: 10px;
  1640. padding: 0 16px;
  1641. box-shadow: 0 2px 8px rgba(255,152,0,0.10);
  1642. display: flex;
  1643. align-items: center;
  1644. transition: transform 0.15s, box-shadow 0.15s;
  1645. border: 1px solid #ff9800;
  1646. height: 32px;
  1647. }
  1648. .highlight-bugfix:hover {
  1649. background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
  1650. color: #fff;
  1651. transform: scale(1.06);
  1652. box-shadow: 0 4px 16px rgba(255,152,0,0.18);
  1653. text-decoration: none;
  1654. }
  1655. .bugfix-emoji {
  1656. font-size: 20px;
  1657. margin-right: 6px;
  1658. }
  1659. .bugfix-text {
  1660. font-size: 15px;
  1661. letter-spacing: 1px;
  1662. }