index.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. @import url("../static/css/bootstrap.min.css");
  2. /* 整体容器样式优化 */
  3. .mod-endecode {
  4. padding: 15px;
  5. background: linear-gradient(to bottom, #ffffff, #f8f9ff);
  6. border-radius: 8px;
  7. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  8. }
  9. /* 输入框样式优化 */
  10. #srcText {
  11. height: 100px;
  12. border: 1px solid #e0e5ff;
  13. border-radius: 8px;
  14. padding: 12px;
  15. font-size: 14px;
  16. line-height: 1.5;
  17. background-color: #ffffff;
  18. transition: all 0.3s ease;
  19. resize: vertical;
  20. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  21. }
  22. #srcText:focus {
  23. border-color: #4d89fe;
  24. box-shadow: 0 0 0 3px rgba(77, 137, 254, 0.1);
  25. outline: none;
  26. }
  27. /* 结果输出框样式优化 */
  28. #rstCode {
  29. height: 280px;
  30. border: 1px solid #e0e5ff;
  31. border-radius: 8px;
  32. padding: 12px;
  33. font-size: 14px;
  34. line-height: 1.5;
  35. background-color: #ffffff;
  36. transition: all 0.3s ease;
  37. resize: vertical;
  38. box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  39. }
  40. #rstCode:focus {
  41. border-color: #4d89fe;
  42. box-shadow: 0 0 0 3px rgba(77, 137, 254, 0.1);
  43. outline: none;
  44. }
  45. /* 选项表格样式优化 */
  46. .x-opts {
  47. width: 100%;
  48. font-size: 14px;
  49. margin: 12px 0;
  50. background: #ffffff;
  51. border-radius: 8px;
  52. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  53. }
  54. .x-opts td {
  55. padding: 10px;
  56. vertical-align: middle;
  57. }
  58. .x-opts tr:first-child {
  59. border-bottom: 1px solid #eef1ff;
  60. }
  61. td.td-label {
  62. width: 66px;
  63. color: #666;
  64. font-weight: 500;
  65. vertical-align: middle;
  66. }
  67. /* 单选框组样式优化 */
  68. .x-opts .radio {
  69. margin: 4px 0;
  70. transition: all 0.3s ease;
  71. display: inline-flex;
  72. align-items: center;
  73. }
  74. .x-opts .radio label {
  75. display: inline-flex;
  76. align-items: center;
  77. padding: 4px 8px;
  78. border-radius: 6px;
  79. transition: all 0.3s ease;
  80. cursor: pointer;
  81. margin: 0;
  82. line-height: 1;
  83. }
  84. .x-opts .radio label:hover {
  85. background-color: #f5f8ff;
  86. }
  87. .x-opts .radio input[type="radio"] {
  88. margin: 0 4px 0 0;
  89. vertical-align: middle;
  90. position: relative;
  91. top: -1px;
  92. }
  93. /* 提示文字样式 */
  94. .x-ps {
  95. color: #a0a8c3;
  96. font-size: 12px;
  97. margin-left: 4px;
  98. display: inline-flex;
  99. align-items: center;
  100. }
  101. /* 按钮组样式优化 */
  102. .x-btns {
  103. margin-top: 15px;
  104. display: flex;
  105. gap: 8px;
  106. justify-content: flex-end;
  107. }
  108. .x-btns .btn {
  109. padding: 6px 16px;
  110. font-size: 14px;
  111. border-radius: 6px;
  112. transition: all 0.3s ease;
  113. border: none;
  114. font-weight: 500;
  115. height: 32px;
  116. line-height: 20px;
  117. }
  118. .x-btns .btn-success {
  119. background: linear-gradient(135deg, #4d89fe, #3f6ad8);
  120. box-shadow: 0 2px 6px rgba(77, 137, 254, 0.2);
  121. }
  122. .x-btns .btn-success:hover {
  123. transform: translateY(-1px);
  124. box-shadow: 0 4px 12px rgba(77, 137, 254, 0.3);
  125. }
  126. .x-btns .btn-warning {
  127. background: linear-gradient(135deg, #ff9f43, #ff7a45);
  128. box-shadow: 0 2px 6px rgba(255, 159, 67, 0.2);
  129. }
  130. .x-btns .btn-warning:hover {
  131. transform: translateY(-1px);
  132. box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3);
  133. }
  134. /* 结果区域样式优化 */
  135. #rst {
  136. margin-top: 20px;
  137. padding: 15px;
  138. background: #ffffff;
  139. border-radius: 8px;
  140. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  141. }
  142. #rst h5 {
  143. padding-bottom: 12px;
  144. margin-bottom: 15px;
  145. border-bottom: 2px solid #eef1ff;
  146. color: #333;
  147. font-weight: 600;
  148. font-size: 15px;
  149. }
  150. /* URL解析结果样式优化 */
  151. .x-url-infos {
  152. background: #f8f9ff;
  153. border-radius: 8px;
  154. padding: 15px;
  155. }
  156. .x-url-infos ul {
  157. padding: 0;
  158. margin: 0;
  159. }
  160. .x-url-infos ul li {
  161. list-style: none;
  162. font-size: 14px;
  163. line-height: 1.5;
  164. padding: 6px 0;
  165. margin: 0;
  166. border-bottom: 1px dashed #e0e5ff;
  167. display: flex;
  168. align-items: center;
  169. }
  170. .x-url-infos ul li:last-child {
  171. border-bottom: none;
  172. }
  173. .x-url-infos ul li b {
  174. color: #666;
  175. font-weight: 500;
  176. min-width: 60px;
  177. display: inline-block;
  178. }
  179. .x-url-infos table {
  180. width: 100%;
  181. margin-top: 12px;
  182. border-radius: 6px;
  183. overflow: hidden;
  184. border: 1px solid #e0e5ff;
  185. }
  186. .x-url-infos table th {
  187. background: #f5f8ff;
  188. padding: 10px 12px;
  189. font-weight: 500;
  190. color: #666;
  191. }
  192. .x-url-infos table td {
  193. padding: 8px 12px;
  194. border-top: 1px solid #eef1ff;
  195. word-break: break-all;
  196. }
  197. /* 工具市场按钮样式(保持不变) */
  198. .panel-title>a.x-other-tools {
  199. margin: 1px 0 0;
  200. font-size: 13px;
  201. cursor: pointer;
  202. text-decoration: none;
  203. -webkit-user-select: none;
  204. user-select: none;
  205. color: #333;
  206. float: right;
  207. background-color: #f5f8ff;
  208. padding: 5px 10px;
  209. border-radius: 15px;
  210. border: 1px solid #d0d9ff;
  211. transition: all 0.3s ease;
  212. display: flex;
  213. align-items: center;
  214. position: relative;
  215. top: -6px;
  216. }
  217. .panel-title>a.x-other-tools .icon-plus-circle {
  218. display: inline-block;
  219. width: 16px;
  220. height: 16px;
  221. background: url(../static/img/plus-circle.svg) no-repeat center center;
  222. background-size: contain;
  223. margin-right: 5px;
  224. }
  225. .panel-title>a.x-other-tools .tool-market-badge {
  226. display: inline-block;
  227. background-color: #4d89fe;
  228. color: white;
  229. padding: 2px 6px;
  230. border-radius: 10px;
  231. margin-left: 5px;
  232. font-size: 12px;
  233. font-weight: bold;
  234. }
  235. .panel-title>a.x-other-tools:hover {
  236. color: #333;
  237. background-color: #e6edff;
  238. box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  239. transform: translateY(-1px);
  240. }
  241. /* 保持原有的顶部导航样式 */
  242. .x-donate-link {
  243. font-size: 14px;
  244. font-weight: 500;
  245. color: #2563eb;
  246. cursor: pointer;
  247. text-decoration: none;
  248. border: none;
  249. white-space: nowrap;
  250. margin-right: auto;
  251. border-radius: 20px;
  252. background-color: #eff6ff;
  253. transition: all 0.2s ease;
  254. position: relative;
  255. display: inline-flex;
  256. align-items: center;
  257. box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
  258. position: absolute;
  259. right: 230px;
  260. top: 8px;
  261. padding: 6px 12px;
  262. }
  263. .x-donate-link:hover {
  264. background-color: #dbeafe;
  265. color: #1d4ed8;
  266. text-decoration: none;
  267. box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
  268. transform: translateY(-1px);
  269. }
  270. .x-donate-link {
  271. margin: 0 10px;
  272. font-size: 12px;
  273. font-weight: normal;
  274. }