style.css 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777
  1. /* 现代化UI样式 - 面向C端用户 */
  2. :root {
  3. /* 主色调 */
  4. --primary-color: #3D7CF4;
  5. --primary-light: #5D95FD;
  6. --primary-dark: #2F62C9;
  7. --primary-dark-color: #2c5282; /* 深蓝色,可以根据您的主题调整 */
  8. /* 辅助色 */
  9. --secondary-color: #FF6B6B;
  10. --secondary-light: #FF8E8E;
  11. --secondary-dark: #DA5151;
  12. /* 中性色 */
  13. --background-color: #F7F9FC;
  14. --container-bg: #FFFFFF;
  15. --card-bg: #FFFFFF;
  16. /* 文字颜色 */
  17. --text-primary: #2A3749;
  18. --text-secondary: #5A6A80;
  19. --text-muted: #8896AB;
  20. /* 边框和分隔线 */
  21. --border-color: #E2E8F0;
  22. --border-light: #EDF1F7;
  23. /* 状态颜色 */
  24. --success-color: #32D583;
  25. --warning-color: #FFB547;
  26. --danger-color: #FF5252;
  27. --info-color: #4AADD4;
  28. /* 阴影 */
  29. --shadow-sm: 0 2px 4px rgba(11, 31, 77, 0.04);
  30. --shadow-md: 0 4px 12px rgba(11, 31, 77, 0.08);
  31. --shadow-lg: 0 8px 24px rgba(11, 31, 77, 0.12);
  32. /* 圆角 */
  33. --radius-sm: 4px;
  34. --radius-md: 8px;
  35. --radius-lg: 16px;
  36. /* 动画 */
  37. --transition-fast: 0.15s ease;
  38. --transition-normal: 0.25s ease;
  39. --transition-slow: 0.4s ease;
  40. /* 字体 */
  41. --font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  42. }
  43. /* 基础样式 */
  44. body {
  45. font-family: var(--font-sans);
  46. line-height: 1.6;
  47. margin: 0;
  48. padding: 0;
  49. background-color: var(--background-color);
  50. color: var(--text-primary);
  51. min-height: 100vh;
  52. display: flex;
  53. flex-direction: column;
  54. overflow-x: hidden;
  55. }
  56. /* 头部导航 */
  57. .header {
  58. background-color: var(--container-bg);
  59. box-shadow: var(--shadow-md);
  60. position: sticky;
  61. top: 0;
  62. z-index: 1000;
  63. padding: 0;
  64. transition: all var(--transition-normal);
  65. }
  66. .header-content {
  67. max-width: 1320px;
  68. margin: 0 auto;
  69. padding: 0.75rem 1.5rem;
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-between;
  73. }
  74. .logo {
  75. height: 42px;
  76. width: auto;
  77. transition: transform var(--transition-fast);
  78. }
  79. .logo:hover {
  80. transform: scale(1.05);
  81. }
  82. .nav-menu {
  83. display: flex;
  84. gap: 1.2rem;
  85. align-items: center;
  86. }
  87. .nav-menu a {
  88. color: var(--text-secondary);
  89. text-decoration: none;
  90. padding: 0.5rem 1rem;
  91. border-radius: var(--radius-md);
  92. transition: all var(--transition-fast);
  93. font-weight: 500;
  94. font-size: 0.95rem;
  95. letter-spacing: 0.2px;
  96. }
  97. .nav-menu a:hover {
  98. background-color: var(--primary-light);
  99. color: white;
  100. transform: translateY(-2px);
  101. }
  102. /* 主容器 */
  103. .container {
  104. width: 90%;
  105. max-width: 1320px;
  106. margin: 2rem auto;
  107. padding: 0;
  108. flex: 1 0 auto;
  109. display: flex;
  110. flex-direction: column;
  111. }
  112. .page-title {
  113. font-size: 2.2rem;
  114. font-weight: 700;
  115. color: var(--text-primary);
  116. margin-bottom: 1.5rem;
  117. text-align: center;
  118. line-height: 1.2;
  119. }
  120. .page-subtitle {
  121. font-size: 1.1rem;
  122. color: var(--text-secondary);
  123. margin-top: -0.5rem;
  124. margin-bottom: 2rem;
  125. text-align: center;
  126. max-width: 700px;
  127. margin-left: auto;
  128. margin-right: auto;
  129. }
  130. /* 选项卡 */
  131. .tab-container {
  132. display: flex;
  133. margin-bottom: 2rem;
  134. background: var(--container-bg);
  135. border-radius: var(--radius-lg);
  136. padding: 0.5rem;
  137. box-shadow: var(--shadow-sm);
  138. justify-content: center;
  139. position: relative;
  140. z-index: 1;
  141. }
  142. .tab {
  143. padding: 0.8rem 1.8rem;
  144. border: none;
  145. background: none;
  146. color: var(--text-secondary);
  147. cursor: pointer;
  148. font-weight: 600;
  149. position: relative;
  150. transition: all var(--transition-normal);
  151. border-radius: var(--radius-md);
  152. font-size: 1rem;
  153. flex: 1;
  154. text-align: center;
  155. max-width: 180px;
  156. }
  157. .tab:hover {
  158. color: var(--primary-color);
  159. }
  160. .tab.active {
  161. color: var(--primary-color);
  162. background-color: rgba(61, 124, 244, 0.08);
  163. }
  164. /* 内容区域 */
  165. .content {
  166. display: none;
  167. background: var(--container-bg);
  168. padding: 2.5rem;
  169. border-radius: var(--radius-lg);
  170. box-shadow: var(--shadow-md);
  171. flex: 1;
  172. width: 100%;
  173. box-sizing: border-box;
  174. animation: fadeIn 0.3s ease-in-out;
  175. }
  176. @keyframes fadeIn {
  177. from { opacity: 0; transform: translateY(10px); }
  178. to { opacity: 1; transform: translateY(0); }
  179. }
  180. .content.active {
  181. display: flex;
  182. flex-direction: column;
  183. }
  184. /* 输入框和按钮 */
  185. input[type="text"] {
  186. width: 100%;
  187. padding: 0.9rem 1.2rem;
  188. border: 2px solid var(--border-color);
  189. border-radius: var(--radius-md);
  190. font-size: 1rem;
  191. transition: all var(--transition-fast);
  192. background-color: var(--container-bg);
  193. color: var(--text-primary);
  194. box-shadow: var(--shadow-sm);
  195. }
  196. input[type="text"]:focus {
  197. border-color: var(--primary-color);
  198. box-shadow: 0 0 0 3px rgba(61, 124, 244, 0.2);
  199. outline: none;
  200. }
  201. input[type="text"]::placeholder {
  202. color: var(--text-muted);
  203. }
  204. button {
  205. background-color: var(--primary-color);
  206. color: white;
  207. border: none;
  208. padding: 0.9rem 1.8rem;
  209. border-radius: var(--radius-md);
  210. cursor: pointer;
  211. font-size: 1rem;
  212. font-weight: 600;
  213. transition: all var(--transition-fast);
  214. box-shadow: var(--shadow-sm);
  215. }
  216. button:hover {
  217. background-color: var(--primary-dark);
  218. transform: translateY(-2px);
  219. box-shadow: var(--shadow-md);
  220. }
  221. button:active {
  222. transform: translateY(0);
  223. }
  224. /* 搜索区域 */
  225. .search-container {
  226. display: flex;
  227. gap: 1rem;
  228. margin-bottom: 2rem;
  229. }
  230. .search-container input {
  231. flex: 1;
  232. }
  233. .search-container button {
  234. white-space: nowrap;
  235. }
  236. /* 搜索结果样式 */
  237. #searchResults {
  238. display: grid;
  239. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  240. gap: 1.5rem;
  241. margin-top: 2rem;
  242. }
  243. .search-result-item {
  244. background-color: var(--card-bg);
  245. border-radius: var(--radius-md);
  246. border: 1px solid var(--border-light);
  247. padding: 1.5rem;
  248. transition: all var(--transition-normal);
  249. box-shadow: var(--shadow-sm);
  250. display: flex;
  251. flex-direction: column;
  252. }
  253. .search-result-item:hover {
  254. transform: translateY(-5px);
  255. box-shadow: var(--shadow-md);
  256. border-color: var(--primary-light);
  257. }
  258. .search-result-item h3 {
  259. font-size: 1.2rem;
  260. margin: 0 0 1rem 0;
  261. color: var(--text-primary);
  262. display: flex;
  263. align-items: center;
  264. gap: 0.5rem;
  265. }
  266. .search-result-item p {
  267. color: var(--text-secondary);
  268. margin: 0.5rem 0;
  269. font-size: 0.95rem;
  270. }
  271. .official-badge {
  272. background-color: var(--success-color);
  273. color: white;
  274. padding: 0.2rem 0.5rem;
  275. border-radius: var(--radius-sm);
  276. font-size: 0.75rem;
  277. font-weight: 500;
  278. }
  279. .image-stats {
  280. display: flex;
  281. gap: 1rem;
  282. margin: 1rem 0;
  283. color: var(--text-muted);
  284. font-size: 0.9rem;
  285. }
  286. .stars, .pull-count {
  287. display: flex;
  288. align-items: center;
  289. gap: 0.3rem;
  290. }
  291. .button-group {
  292. display: flex;
  293. gap: 0.75rem;
  294. margin-top: auto;
  295. padding-top: 1rem;
  296. }
  297. .button-group button {
  298. flex: 1;
  299. font-size: 0.9rem;
  300. padding: 0.7rem 1rem;
  301. }
  302. .view-tags-btn {
  303. background-color: var(--background-color);
  304. color: var(--primary-color);
  305. border: 1px solid var(--primary-color);
  306. }
  307. .view-tags-btn:hover {
  308. background-color: rgba(61, 124, 244, 0.1);
  309. }
  310. /* 加速命令区 */
  311. .input-group {
  312. display: flex;
  313. gap: 1rem;
  314. margin-bottom: 2rem;
  315. }
  316. .input-group input {
  317. flex: 1;
  318. }
  319. #result {
  320. background-color: var(--background-color);
  321. padding: 1.5rem;
  322. border-radius: var(--radius-lg);
  323. margin-top: 2rem;
  324. }
  325. #result h2 {
  326. margin-top: 0;
  327. color: var(--text-primary);
  328. font-size: 1.5rem;
  329. font-weight: 600;
  330. margin-bottom: 1.5rem;
  331. }
  332. .step {
  333. background: var(--container-bg);
  334. padding: 1.2rem; /* 减小内边距 */
  335. border-radius: var(--radius-md);
  336. margin-bottom: 1rem; /* 减小步骤之间的间距 */
  337. box-shadow: var(--shadow-sm);
  338. border: 1px solid var(--border-light);
  339. transition: transform var(--transition-normal);
  340. }
  341. .step:hover {
  342. transform: translateY(-2px);
  343. box-shadow: var(--shadow-md);
  344. }
  345. .step h3 {
  346. color: var(--primary-color);
  347. margin: 0 0 0.5rem 0; /* 减小标题下方间距 */
  348. font-size: 1.1rem;
  349. font-weight: 600;
  350. display: flex;
  351. align-items: center;
  352. gap: 0.5rem;
  353. }
  354. .step h3::before {
  355. content: "";
  356. display: inline-block;
  357. width: 24px;
  358. height: 24px;
  359. background-color: var(--primary-light);
  360. border-radius: 50%;
  361. color: white;
  362. text-align: center;
  363. line-height: 24px;
  364. font-size: 0.9rem;
  365. }
  366. /* 命令终端样式优化 */
  367. .command-terminal {
  368. background: #1F2937;
  369. border-radius: var(--radius-md);
  370. overflow: visible; /* 修改为visible以避免复制按钮被裁剪 */
  371. position: relative;
  372. margin-bottom: 0.75rem; /* 减小命令之间的间距 */
  373. min-height: fit-content; /* 设置最小高度为内容自适应 */
  374. }
  375. .command-terminal pre {
  376. margin: 0;
  377. padding: 0;
  378. background: transparent;
  379. display: flex; /* 使用弹性布局 */
  380. align-items: center; /* 垂直居中 */
  381. min-height: 44px; /* 设置最小高度 */
  382. }
  383. .command-terminal code {
  384. display: block;
  385. padding: 0.6rem 1rem; /* 减小内边距 */
  386. color: #F3F4F6;
  387. font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  388. font-size: 0.95rem;
  389. line-height: 1.4;
  390. flex: 1; /* 占据剩余空间 */
  391. }
  392. /* 文档页面代码块样式 */
  393. #documentationText .command-terminal pre {
  394. max-height: none; /* 移除最大高度限制 */
  395. overflow: visible; /* 移除滚动条 */
  396. }
  397. .terminal-header {
  398. background: #111827;
  399. padding: 8px 12px;
  400. display: flex;
  401. align-items: center;
  402. gap: 6px;
  403. }
  404. .terminal-button {
  405. width: 12px;
  406. height: 12px;
  407. border-radius: 50%;
  408. }
  409. .button-red { background: #FF5F57; }
  410. .button-yellow { background: #FEBC2E; }
  411. .button-green { background: #28C840; }
  412. .copy-btn {
  413. position: absolute;
  414. top: 8px; /* 调整位置在终端标题栏右侧 */
  415. right: 8px;
  416. padding: 0.35rem 0.7rem;
  417. font-size: 0.8rem;
  418. background-color: rgba(255, 255, 255, 0.1);
  419. border-radius: var(--radius-sm);
  420. opacity: 0;
  421. transition: opacity var(--transition-fast);
  422. z-index: 10; /* 确保按钮始终在顶层 */
  423. color: #F3F4F6;
  424. border: none;
  425. }
  426. .command-terminal:hover .copy-btn {
  427. opacity: 1;
  428. }
  429. .copy-btn:hover {
  430. background-color: rgba(255, 255, 255, 0.3);
  431. transform: translateY(0); /* 覆盖默认的按钮hover效果 */
  432. }
  433. .copy-success {
  434. position: fixed;
  435. top: 50%;
  436. left: 50%;
  437. transform: translate(-50%, -50%);
  438. background: rgba(0, 0, 0, 0.8);
  439. color: white;
  440. padding: 0.75rem 1.5rem;
  441. border-radius: var(--radius-md);
  442. z-index: 1000;
  443. animation: fadeInOut 1.5s ease-in-out;
  444. pointer-events: none;
  445. }
  446. @keyframes fadeInOut {
  447. 0% { opacity: 0; }
  448. 20% { opacity: 1; }
  449. 80% { opacity: 1; }
  450. 100% { opacity: 0; }
  451. }
  452. /* 标签展示区域 - 修复宽度与主容器一致 */
  453. #imageTagsView {
  454. width: 100%;
  455. background-color: var(--container-bg);
  456. border-radius: var(--radius-lg);
  457. box-shadow: var(--shadow-md);
  458. margin: 0;
  459. padding: 2rem;
  460. transition: all var(--transition-normal);
  461. }
  462. .tag-header {
  463. margin-bottom: 2rem;
  464. }
  465. .tag-breadcrumb {
  466. display: flex;
  467. align-items: center;
  468. margin-bottom: 1.5rem;
  469. }
  470. .tag-breadcrumb a {
  471. display: inline-flex;
  472. align-items: center;
  473. color: var(--primary-color);
  474. text-decoration: none;
  475. font-weight: 500;
  476. padding: 0.5rem 1rem;
  477. border-radius: var(--radius-md);
  478. transition: all var(--transition-fast);
  479. }
  480. .tag-breadcrumb a:hover {
  481. background-color: rgba(61, 124, 244, 0.1);
  482. color: var (--primary-dark);
  483. }
  484. .tag-breadcrumb a::before {
  485. content: "←";
  486. font-size: 1.2rem;
  487. margin-right: 0.5rem;
  488. }
  489. #currentImageTitle {
  490. font-size: 1.8rem;
  491. margin: 0 0 1rem 0;
  492. color: var(--text-primary);
  493. }
  494. .image-description {
  495. color: var(--text-secondary);
  496. margin-bottom: 1.5rem;
  497. line-height: 1.6;
  498. background-color: var(--container-bg);
  499. padding: 1rem 1.5rem;
  500. border-radius: var(--radius-md);
  501. border-left: 4px solid var(--primary-color);
  502. }
  503. .tag-search-container {
  504. display: flex;
  505. gap: 1rem;
  506. margin-bottom: 2rem;
  507. max-width: 600px; /* 限制搜索框宽度 */
  508. margin: 0 auto 2rem; /* 居中显示并添加底部间距 */
  509. }
  510. .tag-search-container input {
  511. flex: 1;
  512. }
  513. .tag-table {
  514. width: 100%;
  515. border-collapse: separate;
  516. border-spacing: 0;
  517. border-radius: var(--radius-md);
  518. overflow: hidden;
  519. box-shadow: var(--shadow-md);
  520. margin: 0 auto; /* 居中显示 */
  521. }
  522. .tag-table th {
  523. background-color: var(--primary-color);
  524. color: white;
  525. text-align: left;
  526. padding: 1rem 1.5rem;
  527. font-weight: 600;
  528. }
  529. .tag-table td {
  530. padding: 1rem 1.5rem;
  531. border-bottom: 1px solid var(--border-light);
  532. background-color: var(--container-bg);
  533. }
  534. .tag-table tr:last-child td {
  535. border-bottom: none;
  536. }
  537. .tag-table tr:hover td {
  538. background-color: rgba(61, 124, 244, 0.05);
  539. }
  540. .tag-table td:first-child {
  541. font-weight: 500;
  542. color: var(--primary-color);
  543. padding-left: 1.5rem; /* 第一列左对齐 */
  544. }
  545. .tag-table th:last-child,
  546. .tag-table td:last-child {
  547. padding-right: 1.5rem; /* 最后一列右对齐 */
  548. text-align: right; /* 操作按钮右对齐 */
  549. }
  550. /* OS/ARCH垂直显示样式 */
  551. .tag-os-arch {
  552. display: flex;
  553. flex-direction: column;
  554. gap: 0.5rem;
  555. margin: 0.5rem 0;
  556. }
  557. .tag-os-arch-item {
  558. display: inline-flex;
  559. align-items: center;
  560. padding: 0.4rem 0.8rem;
  561. background: var(--background-color);
  562. border-radius: var(--radius-sm);
  563. font-size: 0.85rem;
  564. color: var(--text-secondary);
  565. margin-right: 0;
  566. margin-bottom: 0.25rem;
  567. }
  568. .tag-os-arch-more {
  569. color: var(--primary-color);
  570. cursor: pointer;
  571. font-size: 0.85rem;
  572. padding: 0.4rem 0;
  573. text-decoration: underline;
  574. }
  575. .tag-os-arch-all {
  576. display: none;
  577. margin-top: 0.5rem;
  578. padding-left: 0.5rem;
  579. border-left: 2px solid var(--border-color);
  580. }
  581. .tag-os-arch-all.show {
  582. display: block;
  583. }
  584. /* 分页控件 */
  585. .pagination-container {
  586. display: flex;
  587. justify-content: center;
  588. gap: 1rem;
  589. margin-top: 2rem;
  590. }
  591. .pagination-container button {
  592. padding: 0.5rem 1.2rem;
  593. border-radius: var(--radius-md);
  594. }
  595. .pagination-container button:disabled {
  596. background-color: var(--text-muted);
  597. cursor: not-allowed;
  598. transform: none;
  599. box-shadow: none;
  600. }
  601. .pagination-container span {
  602. display: flex;
  603. align-items: center;
  604. color: var(--text-secondary);
  605. font-weight: 500;
  606. }
  607. /* 文档区样式 */
  608. #documentationContent.active {
  609. display: grid;
  610. grid-template-columns: 280px 1fr;
  611. gap: 2.5rem;
  612. }
  613. #documentList {
  614. border-right: 1px solid var(--border-light);
  615. padding-right: 1.5rem;
  616. }
  617. #documentList h2 {
  618. font-size: 1.3rem;
  619. margin: 0 0 1.5rem 0;
  620. padding-bottom: 0.8rem;
  621. border-bottom: 2px solid var(--border-light);
  622. color: var(--text-primary);
  623. }
  624. #documentList ul {
  625. list-style: none;
  626. padding: 0;
  627. margin: 0;
  628. }
  629. #documentList li {
  630. margin-bottom: 0.8rem;
  631. }
  632. #documentList a {
  633. display: block;
  634. padding: 0.8rem 1.2rem;
  635. color: var(--text-secondary);
  636. text-decoration: none;
  637. border-radius: var (--radius-md);
  638. transition: all var(--transition-fast);
  639. font-weight: 500;
  640. }
  641. #documentList a:hover {
  642. background-color: rgba(61, 124, 244, 0.08);
  643. color: var(--primary-color);
  644. }
  645. #documentList a.active {
  646. background-color: var(--primary-color);
  647. color: white;
  648. }
  649. #documentationText {
  650. padding: 0.5rem 1.5rem; /* 增加左右内边距 */
  651. max-width: 900px; /* 限制最大宽度以提高可读性 */
  652. /* margin-left: auto; 移除左边距自动 */
  653. /* margin-right: auto; 移除右边距自动 */
  654. }
  655. #documentationText h2 {
  656. font-size: 1.8em;
  657. margin-top: 2.5em;
  658. margin-bottom: 1em;
  659. border-bottom: 1px solid #eaecef;
  660. padding-bottom: 0.4em;
  661. font-weight: 600;
  662. }
  663. #documentationText p {
  664. margin-bottom: 1.5rem; /* 增大段落间距 */
  665. font-size: 1.05rem; /* 稍微增大正文字号 */
  666. }
  667. #documentationText ul, #documentationText ol {
  668. padding-left: 1.8em; /* 调整缩进 */
  669. margin-bottom: 1.5rem;
  670. }
  671. #documentationText li {
  672. margin-bottom: 0.6rem;
  673. }
  674. #documentationText pre {
  675. background-color: #1F2937; /* 深色背景 */
  676. color: #F3F4F6; /* 浅色文字 */
  677. padding: 1.2rem 1.5rem; /* 调整内边距 */
  678. border-radius: var(--radius-md);
  679. overflow-x: auto;
  680. margin: 1.8rem 0; /* 增加垂直外边距 */
  681. line-height: 1.6; /* 调整行高 */
  682. border: 1px solid #374151; /* 深色边框 */
  683. font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; /* 使用适合编程的字体 */
  684. font-size: 0.95rem; /* 标准化字体大小 */
  685. position: relative; /* 为复制按钮定位 */
  686. }
  687. .doc-content pre::before {
  688. content: ''; /* 模拟终端窗口的顶部栏 */
  689. display: block;
  690. height: 28px; /* 顶部栏高度 */
  691. background-color: #111827; /* 顶部栏颜色 */
  692. border-top-left-radius: var(--radius-md);
  693. border-top-right-radius: var(--radius-md);
  694. margin: -1.2rem -1.5rem 1rem -1.5rem; /* 定位和添加下方间距 */
  695. position: relative;
  696. }
  697. /* 模拟窗口按钮 */
  698. .doc-content pre::after {
  699. content: '';
  700. position: absolute;
  701. top: 8px;
  702. left: 15px;
  703. width: 12px;
  704. height: 12px;
  705. background-color: #FF5F57;
  706. border-radius: 50%;
  707. box-shadow: 20px 0 #FEBC2E, 40px 0 #28C840;
  708. }
  709. .doc-content pre code {
  710. display: block; /* 确保代码块充满 pre */
  711. background-color: transparent;
  712. padding: 0;
  713. margin: 0;
  714. color: inherit;
  715. border-radius: 0;
  716. border: none;
  717. line-height: inherit;
  718. font-family: inherit;
  719. white-space: pre; /* 保留空格和换行 */
  720. font-size: inherit; /* 继承 pre 的字号 */
  721. }
  722. /* 行内代码样式 */
  723. .doc-content code {
  724. font-family: 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  725. font-size: 0.9em; /* 调整大小 */
  726. background-color: rgba(61, 124, 244, 0.1); /* 更柔和的背景 */
  727. padding: 0.25em 0.5em;
  728. margin: 0 0.1em;
  729. border-radius: 4px;
  730. color: #2c5282; /* 主色调的深色 */
  731. border: 1px solid rgba(61, 124, 244, 0.2);
  732. vertical-align: middle; /* 垂直对齐 */
  733. }
  734. /* 链接样式 */
  735. .doc-content a {
  736. color: var(--primary-dark); /* 使用更深的蓝色 */
  737. text-decoration: underline;
  738. text-decoration-color: rgba(61, 124, 244, 0.4);
  739. transition: all 0.2s ease;
  740. }
  741. .doc-content a:hover {
  742. color: var(--primary-color);
  743. text-decoration-color: var(--primary-color);
  744. background-color: rgba(61, 124, 244, 0.05);
  745. }
  746. /* 引用块样式 */
  747. .doc-content blockquote {
  748. margin: 2em 0;
  749. padding: 1em 1.5em;
  750. color: #555;
  751. border-left: 4px solid var(--primary-light);
  752. background-color: #f8faff; /* 淡蓝色背景 */
  753. border-radius: var(--radius-sm);
  754. }
  755. .doc-content blockquote p:last-child {
  756. margin-bottom: 0;
  757. }
  758. /* 表格样式 */
  759. .doc-content table {
  760. border-collapse: separate; /* 使用 separate 以应用圆角 */
  761. border-spacing: 0;
  762. margin: 1.8rem 0;
  763. width: 100%;
  764. border: 1px solid #e2e8f0;
  765. border-radius: var(--radius-md);
  766. overflow: hidden; /* 应用圆角 */
  767. }
  768. .doc-content th,
  769. .doc-content td {
  770. border-bottom: 1px solid #e2e8f0;
  771. padding: 0.8em 1.2em;
  772. text-align: left;
  773. }
  774. .doc-content tr:last-child td {
  775. border-bottom: none;
  776. }
  777. .doc-content th {
  778. font-weight: 600;
  779. background-color: #f7f9fc; /* 更浅的表头背景 */
  780. color: #4a5568;
  781. }
  782. .doc-content tr:nth-child(even) td {
  783. background-color: #fafcff; /* 斑马纹 */
  784. }
  785. /* 元数据 (更新时间) 样式 */
  786. .doc-meta {
  787. font-size: 0.9em;
  788. color: #888;
  789. text-align: right; /* 右对齐 */
  790. margin-top: 0rem; /* 调整与内容的距离 */
  791. padding-top: 0.5rem; /* 增加顶部内边距 */
  792. border-top: 1px dashed #eee; /* 放到顶部 */
  793. clear: both; /* 确保在内容下方 */
  794. }
  795. /* 加载中和消息提示 */
  796. .loading-indicator {
  797. display: flex;
  798. justify-content: center;
  799. align-items: center;
  800. padding: 3rem 0;
  801. color: var(--text-secondary);
  802. font-size: 1.1rem;
  803. }
  804. .loading-indicator::after {
  805. content: "...";
  806. animation: loading-dots 1.5s infinite;
  807. }
  808. @keyframes loading-dots {
  809. 0%, 20% { content: "."; }
  810. 40% { content: ".."; }
  811. 60%, 100% { content: "..."; }
  812. }
  813. .message-container {
  814. padding: 3rem 0;
  815. text-align: center;
  816. color: var(--text-secondary);
  817. font-size: 1.1rem;
  818. }
  819. /* TAG搜索无结果提示 */
  820. .no-filter-results {
  821. margin: 1rem 0;
  822. border-radius: var(--radius-md);
  823. border: 1px dashed var (--border-color);
  824. color: var(--text-muted);
  825. text-align: center;
  826. padding: 2rem;
  827. }
  828. /* 复制按钮位置调整 */
  829. .copy-btn {
  830. position: absolute;
  831. top: 8px; /* 调整位置在终端标题栏右侧 */
  832. right: 8px;
  833. padding: 0.35rem 0.7rem;
  834. font-size: 0.8rem;
  835. background-color: rgba(255, 255, 255, 0.1);
  836. border-radius: var(--radius-sm);
  837. opacity: 0;
  838. transition: opacity var(--transition-fast);
  839. z-index: 10; /* 确保按钮始终在顶层 */
  840. color: #F3F4F6;
  841. border: none;
  842. }
  843. .command-terminal:hover .copy-btn {
  844. opacity: 1;
  845. }
  846. .copy-btn:hover {
  847. background-color: rgba(255, 255, 255, 0.3);
  848. transform: translateY(0); /* 覆盖默认的按钮hover效果 */
  849. }
  850. .copy-success {
  851. position: fixed;
  852. top: 50%;
  853. left: 50%;
  854. transform: translate(-50%, -50%);
  855. background: rgba(0, 0, 0, 0.8);
  856. color: white;
  857. padding: 0.75rem 1.5rem;
  858. border-radius: var(--radius-md);
  859. z-index: 1000;
  860. animation: fadeInOut 1.5s ease-in-out;
  861. pointer-events: none;
  862. }
  863. @keyframes fadeInOut {
  864. 0% { opacity: 0; }
  865. 20% { opacity: 1; }
  866. 80% { opacity: 1; }
  867. 100% { opacity: 0; }
  868. }
  869. /* 标签展示区域 - 修复宽度与主容器一致 */
  870. #imageTagsView {
  871. width: 100%;
  872. max-width: 100%; /* 确保不超出父容器 */
  873. box-sizing: border-box; /* 确保padding和border包含在宽度内 */
  874. background-color: var(--container-bg);
  875. border-radius: var(--radius-lg);
  876. box-shadow: var(--shadow-md);
  877. margin: 0;
  878. padding: 1.5rem; /* 略微减小内边距 */
  879. transition: all var(--transition-normal);
  880. overflow-x: hidden; /* 防止水平溢出 */
  881. }
  882. .tag-header {
  883. margin-bottom: 2rem;
  884. padding-bottom: 1.5rem;
  885. border-bottom: 1px solid var(--border-light);
  886. }
  887. .tag-breadcrumb {
  888. display: flex;
  889. align-items: center;
  890. margin-bottom: 1.5rem;
  891. }
  892. .tag-breadcrumb a {
  893. display: inline-flex;
  894. align-items: center;
  895. color: var(--primary-color);
  896. text-decoration: none;
  897. font-weight: 500;
  898. padding: 0.5rem 1rem;
  899. border-radius: var(--radius-md);
  900. transition: all var(--transition-fast);
  901. }
  902. .tag-breadcrumb a:hover {
  903. background-color: rgba(61, 124, 244, 0.1);
  904. color: var(--primary-dark);
  905. }
  906. .tag-breadcrumb a::before {
  907. content: "←";
  908. font-size: 1.2rem;
  909. margin-right: 0.5rem;
  910. }
  911. #currentImageTitle {
  912. font-size: 2rem;
  913. margin: 0 0 1rem 0;
  914. color: var(--text-primary);
  915. font-weight: 700;
  916. }
  917. .image-description {
  918. color: var(--text-secondary);
  919. margin-bottom: 1.5rem;
  920. line-height: 1.6;
  921. background-color: var(--background-color);
  922. padding: 1rem 1.5rem;
  923. border-radius: var(--radius-md);
  924. border-left: 4px solid var(--primary-color);
  925. font-size: 1rem;
  926. }
  927. .image-meta {
  928. display: flex;
  929. align-items: center;
  930. gap: 2rem;
  931. margin-top: 1.5rem;
  932. }
  933. .image-meta span {
  934. display: flex;
  935. align-items: center;
  936. gap: 0.5rem;
  937. font-size: 1rem;
  938. color: var(--text-secondary);
  939. }
  940. .image-meta i {
  941. color: var(--primary-color);
  942. }
  943. /* 标签搜索栏优化 */
  944. .tag-search-container {
  945. display: flex;
  946. gap: 1rem;
  947. margin-bottom: 2rem;
  948. padding: 1.5rem;
  949. background-color: var(--background-color);
  950. border-radius: var(--radius-lg);
  951. box-shadow: var(--shadow-sm);
  952. }
  953. .tag-search-container input {
  954. flex: 1;
  955. padding: 0.75rem 1rem;
  956. border: 1px solid var(--border-color);
  957. border-radius: var(--radius-md);
  958. background-color: var(--container-bg);
  959. }
  960. .tag-search-container input:focus {
  961. border-color: var(--primary-color);
  962. box-shadow: 0 0 0 3px rgba(61, 124, 244, 0.2);
  963. }
  964. .tag-search-container .search-btn {
  965. padding: 0.75rem 1.2rem;
  966. white-space: nowrap;
  967. }
  968. /* 标签统计信息 */
  969. .tag-search-stats {
  970. margin-bottom: 1rem;
  971. padding: 0.75rem 1rem;
  972. background-color: var(--background-color);
  973. border-radius: var(--radius-md);
  974. color: var(--text-secondary);
  975. }
  976. .tag-search-stats p {
  977. margin: 0;
  978. font-size: 0.95rem;
  979. }
  980. .tag-search-stats strong {
  981. color: var(--primary-color);
  982. font-weight: 600;
  983. }
  984. /* 标签表格优化 */
  985. .tag-table-container {
  986. width: 100%;
  987. overflow-x: auto; /* 在小屏幕上允许水平滚动 */
  988. margin-bottom: 1rem;
  989. }
  990. .tag-table {
  991. min-width: 100%;
  992. width: 100%;
  993. border-collapse: separate;
  994. border-spacing: 0;
  995. border-radius: var(--radius-md);
  996. overflow: hidden;
  997. box-shadow: var(--shadow-md);
  998. margin: 0 auto;
  999. }
  1000. .tag-table th {
  1001. background-color: var (--primary-color);
  1002. color: white;
  1003. text-align: left;
  1004. padding: 1rem 1.5rem;
  1005. font-weight: 600;
  1006. }
  1007. .tag-table td {
  1008. padding: 1rem 1.5rem;
  1009. border-bottom: 1px solid var(--border-light);
  1010. background-color: var(--container-bg);
  1011. vertical-align: top;
  1012. }
  1013. .tag-table tr:last-child td {
  1014. border-bottom: none;
  1015. }
  1016. .tag-table tr:hover td {
  1017. background-color: rgba(61, 124, 244, 0.05);
  1018. }
  1019. .tag-table td:first-child {
  1020. font-weight: 600;
  1021. color: var(--text-primary);
  1022. font-size: 1rem;
  1023. }
  1024. .tag-table th:last-child,
  1025. .tag-table td:last-child {
  1026. padding-right: 1.5rem;
  1027. text-align: right;
  1028. }
  1029. /* 优化OS/ARCH显示样式 */
  1030. .tag-os-arch {
  1031. display: flex;
  1032. flex-wrap: wrap;
  1033. gap: 0.3rem; /* 减小间距 */
  1034. margin: 0;
  1035. }
  1036. .tag-os-arch-item {
  1037. display: inline-flex;
  1038. align-items: center;
  1039. padding: 0.3rem 0.6rem; /* 减小padding */
  1040. background: var(--background-color);
  1041. border-radius: var(--radius-sm);
  1042. font-size: 0.8rem; /* 减小字体 */
  1043. color: var(--text-secondary);
  1044. margin-bottom: 0.25rem;
  1045. border: 1px solid var(--border-light);
  1046. white-space: nowrap; /* 防止内容换行 */
  1047. }
  1048. .tag-os-arch-more {
  1049. color: var(--primary-color);
  1050. cursor: pointer;
  1051. font-size: 0.9rem;
  1052. padding: 0.4rem 0;
  1053. display: flex;
  1054. align-items: center;
  1055. gap: 0.5rem;
  1056. margin-top: 0.5rem;
  1057. font-weight: 500;
  1058. }
  1059. .tag-os-arch-more i {
  1060. font-size: 1rem;
  1061. }
  1062. .tag-os-arch-all {
  1063. display: none;
  1064. margin-top: 0.5rem;
  1065. width: 100%;
  1066. padding-top: 0.5rem;
  1067. border-top: 1px dashed var(--border-light);
  1068. transition: all var(--transition-normal);
  1069. }
  1070. .tag-os-arch-all.show {
  1071. display: flex;
  1072. flex-wrap: wrap;
  1073. gap: 0.5rem;
  1074. }
  1075. /* 加载容器样式 */
  1076. .loading-container {
  1077. width: 100%;
  1078. display: flex;
  1079. justify-content: center;
  1080. align-items: center;
  1081. padding: 3rem 0;
  1082. }
  1083. /* 优化分页控件样式 */
  1084. .pagination-container {
  1085. display: flex;
  1086. justify-content: center;
  1087. align-items: center;
  1088. gap: 1.5rem;
  1089. margin-top: 2rem;
  1090. padding: 1rem 0;
  1091. border-top: 1px solid var(--border-light);
  1092. }
  1093. .pagination-container button {
  1094. padding: 0.6rem 1.2rem;
  1095. border-radius: var(--radius-md);
  1096. display: flex;
  1097. align-items: center;
  1098. gap: 0.5rem;
  1099. font-weight: 500;
  1100. }
  1101. .pagination-container button:disabled {
  1102. background-color: var(--text-muted);
  1103. cursor: not-allowed;
  1104. transform: none;
  1105. box-shadow: none;
  1106. opacity: 0.7;
  1107. }
  1108. .pagination-container span {
  1109. display: flex;
  1110. align-items: center;
  1111. color: var(--text-secondary);
  1112. font-weight: 500;
  1113. font-size: 1rem;
  1114. }
  1115. /* 优化按钮样式 */
  1116. .primary-btn {
  1117. background-color: var(--primary-color);
  1118. color: white;
  1119. border: none;
  1120. padding: 0.5rem 1rem;
  1121. border-radius: var(--radius-md);
  1122. font-size: 0.9rem;
  1123. font-weight: 500;
  1124. cursor: pointer;
  1125. transition: all var(--transition-fast);
  1126. display: inline-flex;
  1127. align-items: center;
  1128. gap: 0.5rem;
  1129. }
  1130. .primary-btn:hover {
  1131. background-color: var(--primary-dark);
  1132. transform: translateY(-2px);
  1133. box-shadow: var(--shadow-sm);
  1134. }
  1135. /* 页脚 */
  1136. .footer {
  1137. background-color: var(--container-bg);
  1138. padding: 2rem 0;
  1139. text-align: center;
  1140. margin-top: 4rem;
  1141. border-top: 1px solid var(--border-light);
  1142. position: relative;
  1143. }
  1144. .footer p {
  1145. color: var(--text-secondary);
  1146. font-size: 0.95rem;
  1147. margin: 0;
  1148. }
  1149. .footer a {
  1150. color: var(--primary-color);
  1151. text-decoration: none;
  1152. font-weight: 500;
  1153. position: relative;
  1154. }
  1155. .footer a::after {
  1156. content: '';
  1157. position: absolute;
  1158. bottom: -2px;
  1159. left: 0;
  1160. width: 0;
  1161. height: 1px;
  1162. background-color: var(--primary-color);
  1163. transition: width 0.3s ease;
  1164. }
  1165. .footer a:hover::after {
  1166. width: 100%;
  1167. }
  1168. .copyright-text {
  1169. font-weight: 600;
  1170. color: var(--primary-color);
  1171. }
  1172. /* 响应式设计 */
  1173. @media (max-width: 1200px) {
  1174. .container {
  1175. width: 95%;
  1176. }
  1177. .page-title {
  1178. font-size: 2rem;
  1179. }
  1180. /* 优化标签页面在中等屏幕上的显示 */
  1181. .tag-table th, .tag-table td {
  1182. padding: 0.75rem 1rem;
  1183. }
  1184. }
  1185. @media (max-width: 992px) {
  1186. .input-group, .search-container {
  1187. flex-direction: column;
  1188. }
  1189. .page-title {
  1190. font-size: 2rem;
  1191. }
  1192. .content {
  1193. padding: 2rem;
  1194. }
  1195. #searchResults {
  1196. grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  1197. }
  1198. #documentationContent.active {
  1199. grid-template-columns: 1fr;
  1200. }
  1201. #documentList {
  1202. border-right: none;
  1203. padding-right: 0;
  1204. padding-bottom: 1.5rem;
  1205. margin-bottom: 1.5rem;
  1206. }
  1207. /* 优化标签页面在平板上的显示 */
  1208. .tag-table th:nth-child(2),
  1209. .tag-table td:nth-child(2) {
  1210. max-width: 150px; /* 限制OS/ARCH列宽度 */
  1211. }
  1212. }
  1213. @media (max-width: 768px) {
  1214. .tab-container {
  1215. flex-wrap: wrap;
  1216. }
  1217. .tab {
  1218. max-width: none;
  1219. flex: 0 0 100%;
  1220. }
  1221. .header-content {
  1222. flex-direction: column;
  1223. padding: 1rem;
  1224. }
  1225. .nav-menu {
  1226. width: 100%;
  1227. margin-top: 1rem;
  1228. justify-content: center;
  1229. }
  1230. .content {
  1231. padding: 1.5rem;
  1232. }
  1233. .search-result-item {
  1234. padding: 1.2rem;
  1235. }
  1236. /* 调整标签视图在移动设备上的显示 */
  1237. #imageTagsView {
  1238. padding: 1rem;
  1239. }
  1240. .tag-header {
  1241. margin-bottom: 1rem;
  1242. }
  1243. .tag-table th:nth-child(4),
  1244. .tag-table td:nth-child(4),
  1245. .tag-table th:nth-child(3),
  1246. .tag-table td:nth-child(3) {
  1247. display: none; /* 在小屏幕上隐藏日期和大小列 */
  1248. }
  1249. }
  1250. @media (max-width: 576px) {
  1251. .page-title {
  1252. font-size: 1.8rem;
  1253. }
  1254. #searchResults {
  1255. grid-template-columns: 1fr;
  1256. }
  1257. .tag-table th, .tag-table td {
  1258. padding: 0.8rem;
  1259. }
  1260. }
  1261. /* 新增: 特性卡片样式 */
  1262. .features {
  1263. display: grid;
  1264. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  1265. gap: 2rem;
  1266. margin-top: 2rem;
  1267. transition: all var(--transition-normal);
  1268. }
  1269. .feature-card {
  1270. background: var(--container-bg);
  1271. padding: 2rem;
  1272. border-radius: var(--radius-lg);
  1273. text-align: center;
  1274. transition: all var(--transition-normal);
  1275. border: 1px solid var(--border-light);
  1276. }
  1277. .feature-card:hover {
  1278. transform: translateY(-5px);
  1279. box-shadow: var(--shadow-lg);
  1280. }
  1281. .feature-card i {
  1282. font-size: 2.5rem;
  1283. color: var(--primary-color);
  1284. margin-bottom: 1.5rem;
  1285. }
  1286. .feature-card h3 {
  1287. color: var(--text-primary);
  1288. margin-bottom: 1rem;
  1289. }
  1290. .feature-card p {
  1291. color: var(--text-secondary);
  1292. font-size: 0.95rem;
  1293. }
  1294. /* 搜索结果项样式优化 */
  1295. .search-result-item {
  1296. background: var(--card-bg);
  1297. border-radius: var(--radius-lg);
  1298. border: 1px solid var(--border-light);
  1299. padding: 1.5rem;
  1300. transition: all var(--transition-normal);
  1301. box-shadow: var(--shadow-sm);
  1302. }
  1303. .search-result-item:hover {
  1304. transform: translateY(-4px);
  1305. box-shadow: var(--shadow-lg);
  1306. border-color: var(--primary-light);
  1307. }
  1308. .title-badge {
  1309. display: flex;
  1310. align-items: center;
  1311. gap: 0.75rem;
  1312. }
  1313. .result-stats {
  1314. display: flex;
  1315. gap: 1rem;
  1316. color: var(--text-muted);
  1317. font-size: 0.9rem;
  1318. }
  1319. .stats {
  1320. display: flex;
  1321. align-items: center;
  1322. gap: 0.4rem;
  1323. }
  1324. .result-description {
  1325. margin: 1rem 0;
  1326. color: var(--text-secondary);
  1327. line-height: 1.6;
  1328. }
  1329. .result-actions {
  1330. display: flex;
  1331. gap: 1rem;
  1332. margin-top: 1.5rem;
  1333. }
  1334. .action-btn {
  1335. flex: 1;
  1336. display: flex;
  1337. align-items: center;
  1338. justify-content: center;
  1339. gap: 0.5rem;
  1340. padding: 0.8rem;
  1341. border-radius: var(--radius-md);
  1342. font-weight: 600;
  1343. transition: all var(--transition-fast);
  1344. }
  1345. .action-btn.primary {
  1346. background: var (--primary-color);
  1347. color: white;
  1348. }
  1349. .action-btn.secondary {
  1350. background: var(--background-color);
  1351. color: var(--primary-color);
  1352. border: 1px solid var(--primary-color);
  1353. }
  1354. .action-btn:hover {
  1355. transform: translateY(-2px);
  1356. box-shadow: var(--shadow-md);
  1357. }
  1358. .action-btn.secondary:hover {
  1359. background-color: rgba(61, 124, 244, 0.1);
  1360. color: var(--primary-color);
  1361. }
  1362. /* 通知提示样式 */
  1363. .notification-container {
  1364. position: fixed;
  1365. top: 20px;
  1366. right: 20px;
  1367. z-index: 1000;
  1368. transition: all 0.3s ease;
  1369. }
  1370. .notification {
  1371. background: white;
  1372. border-radius: var(--radius-md);
  1373. padding: 1rem 1.5rem;
  1374. margin-bottom: 10px;
  1375. box-shadow: var(--shadow-lg);
  1376. display: flex;
  1377. align-items: center;
  1378. gap: 0.75rem;
  1379. animation: slideIn 0.3s ease-out;
  1380. }
  1381. .notification.success {
  1382. border-left: 4px solid var(--success-color);
  1383. }
  1384. .notification.error {
  1385. border-left: 4px solid var(--danger-color);
  1386. }
  1387. @keyframes slideIn {
  1388. from {
  1389. transform: translateX(100%);
  1390. opacity: 0;
  1391. }
  1392. to {
  1393. transform: translateX(0);
  1394. opacity: 1;
  1395. }
  1396. }
  1397. /* 加载动画样式 */
  1398. .loading-overlay {
  1399. position: fixed;
  1400. top: 0;
  1401. left: 0;
  1402. right: 0;
  1403. bottom: 0;
  1404. background: rgba(255, 255, 255, 0.9);
  1405. display: flex;
  1406. flex-direction: column;
  1407. align-items: center;
  1408. justify-content: center;
  1409. z-index: 1000;
  1410. opacity: 0;
  1411. visibility: hidden;
  1412. transition: all 0.3s ease;
  1413. }
  1414. .loading-overlay.active {
  1415. opacity: 1;
  1416. visibility: visible;
  1417. }
  1418. .loading-spinner {
  1419. width: 40px;
  1420. height: 40px;
  1421. border: 3px solid var(--border-light);
  1422. border-top-color: var(--primary-color);
  1423. border-radius: 50%;
  1424. animation: spin 1s linear infinite;
  1425. }
  1426. @keyframes spin {
  1427. to {
  1428. transform: rotate(360deg);
  1429. }
  1430. }
  1431. /* 快速指南样式 */
  1432. .quick-guide {
  1433. background: #f8f9fa;
  1434. padding: 1.5rem;
  1435. border-radius: 8px;
  1436. margin: 2rem 0;
  1437. border: 1px solid var(--border-color);
  1438. }
  1439. /* TAG页面样式优化 */
  1440. .image-meta-info {
  1441. margin: 1.5rem 0;
  1442. padding: 1rem;
  1443. background: var(--background-color);
  1444. border-radius: var(--radius-lg);
  1445. display: flex;
  1446. justify-content: space-between;
  1447. align-items: center;
  1448. }
  1449. .image-stats-large {
  1450. display: flex;
  1451. align-items: center;
  1452. gap: 2rem;
  1453. }
  1454. .stat-item {
  1455. display: flex;
  1456. flex-direction: column;
  1457. align-items: center;
  1458. gap: 0.5rem;
  1459. }
  1460. .stat-value {
  1461. font-size: 1.5rem;
  1462. font-weight: 600;
  1463. color: var(--primary-color);
  1464. }
  1465. .stat-label {
  1466. font-size: 0.9rem;
  1467. color: var(--text-secondary);
  1468. }
  1469. .stat-divider {
  1470. width: 1px;
  1471. height: 40px;
  1472. background: var(--border-light);
  1473. }
  1474. .official-badge-large {
  1475. background: var(--success-color);
  1476. color: white;
  1477. padding: 0.5rem 1rem;
  1478. border-radius: var(--radius-md);
  1479. font-weight: 500;
  1480. display: flex;
  1481. align-items: center;
  1482. gap: 0.5rem;
  1483. }
  1484. .image-description-card {
  1485. background: var(--background-color);
  1486. border-radius: var(--radius-lg);
  1487. padding: 1.5rem;
  1488. margin: 1.5rem 0;
  1489. border-left: 4px solid var(--primary-color);
  1490. }
  1491. .image-description-card h3 {
  1492. color: var(--text-primary);
  1493. margin-bottom: 1rem;
  1494. font-size: 1.1rem;
  1495. }
  1496. .image-description-card p {
  1497. color: var(--text-secondary);
  1498. line-height: 1.6;
  1499. margin: 0;
  1500. }
  1501. .tag-search-container {
  1502. background: var(--container-bg);
  1503. padding: 1rem;
  1504. border-radius: var(--radius-lg);
  1505. box-shadow: var(--shadow-sm);
  1506. margin: 1.5rem 0;
  1507. }
  1508. /* 标签表格样式优化 */
  1509. .tag-table {
  1510. background: var(--container-bg);
  1511. margin-top: 1.5rem;
  1512. border: 1px solid var(--border-light);
  1513. box-shadow: var(--shadow-sm);
  1514. }
  1515. .tag-table th {
  1516. background: var (--primary-color);
  1517. color: white;
  1518. padding: 1rem;
  1519. font-weight: 600;
  1520. text-align: left;
  1521. }
  1522. .tag-table td {
  1523. padding: 1rem;
  1524. border-bottom: 1px solid var(--border-light);
  1525. background-color: var(--container-bg);
  1526. }
  1527. .tag-table tr:hover td {
  1528. background: rgba(61, 124, 244, 0.05);
  1529. }
  1530. .tag-table button {
  1531. background: var(--primary-color);
  1532. color: white;
  1533. padding: 0.5rem 1rem;
  1534. border-radius: var(--radius-md);
  1535. border: none;
  1536. cursor: pointer;
  1537. transition: all 0.2s;
  1538. }
  1539. .tag-table button:hover {
  1540. background: var(--primary-dark);
  1541. transform: translateY(-2px);
  1542. }
  1543. /* 搜索结果容器样式 */
  1544. #searchResultsContainer {
  1545. width: 100%;
  1546. transition: all var(--transition-normal);
  1547. }
  1548. /* 搜索结果列表样式 */
  1549. #searchResultsList {
  1550. width: 100%;
  1551. transition: all var(--transition-normal);
  1552. }
  1553. .no-filter-results {
  1554. margin: 1rem 0;
  1555. border-radius: var(--radius-md);
  1556. border: 1px dashed var(--border-color);
  1557. color: var(--text-muted);
  1558. text-align: center;
  1559. padding: 2rem;
  1560. transition: all var(--transition-normal);
  1561. }
  1562. /* 提示消息样式 */
  1563. .toast-notification {
  1564. position: fixed;
  1565. top: 20px;
  1566. left: 50%;
  1567. transform: translateX(-50%);
  1568. background-color: var(--container-bg);
  1569. color: var(--text-primary);
  1570. padding: 1rem 2rem;
  1571. border-radius: var(--radius-md);
  1572. box-shadow: var(--shadow-lg);
  1573. z-index: 1100;
  1574. animation: fadeIn 0.3s ease-in;
  1575. text-align: center;
  1576. max-width: 80%;
  1577. }
  1578. .toast-notification.error {
  1579. border-left: 4px solid var(--danger-color);
  1580. }
  1581. .toast-notification.info {
  1582. border-left: 4px solid var(--info-color);
  1583. }
  1584. .toast-notification.fade-out {
  1585. opacity: 0;
  1586. transition: opacity 0.3s ease-out;
  1587. }
  1588. /* 标签排序容器样式 */
  1589. .tag-sort-container {
  1590. display: flex;
  1591. align-items: center;
  1592. gap: 1rem;
  1593. margin-bottom: 1rem;
  1594. padding: 0.75rem 1rem;
  1595. background-color: var(--background-color);
  1596. border-radius: var(--radius-md);
  1597. }
  1598. .tag-sort-container label {
  1599. font-weight: 500;
  1600. color: var(--text-secondary);
  1601. }
  1602. .tag-sort-container select {
  1603. padding: 0.5rem 1rem;
  1604. border: 1px solid var(--border-color);
  1605. border-radius: var(--radius-md);
  1606. background-color: var(--container-bg);
  1607. color: var(--text-primary);
  1608. font-size: 0.9rem;
  1609. cursor: pointer;
  1610. transition: all var(--transition-fast);
  1611. }
  1612. .tag-sort-container select:focus {
  1613. border-color: var(--primary-color);
  1614. outline: none;
  1615. box-shadow: 0 0 0 3px rgba(61, 124, 244, 0.2);
  1616. }
  1617. /* 增强标签列表用户体验 */
  1618. .tag-table {
  1619. table-layout: fixed; /* 固定表格布局以提高渲染性能 */
  1620. width: 100%;
  1621. }
  1622. .tag-table td {
  1623. overflow: hidden;
  1624. text-overflow: ellipsis;
  1625. white-space: normal; /* 允许文本换行 */
  1626. }
  1627. /* 优化分页样式 */
  1628. .pagination-container {
  1629. margin-top: 2rem;
  1630. padding-top: 1rem;
  1631. display: flex;
  1632. justify-content: space-between;
  1633. align-items: center;
  1634. border-top: 1px solid var(--border-light);
  1635. }
  1636. .pagination-container .pagination-info {
  1637. font-size: 0.9rem;
  1638. color: var(--text-secondary);
  1639. }
  1640. .pagination-controls {
  1641. display: flex;
  1642. gap: 0.75rem;
  1643. }
  1644. .pagination-container button {
  1645. padding: 0.5rem 1rem;
  1646. font-size: 0.9rem;
  1647. }
  1648. /* 优化加载指示器 */
  1649. .loading-indicator {
  1650. display: flex;
  1651. justify-content: center;
  1652. align-items: center;
  1653. padding: 3rem;
  1654. color: var(--text-secondary);
  1655. font-size: 1.1rem;
  1656. }
  1657. /* 标签动作区域 */
  1658. .tag-actions {
  1659. display: flex;
  1660. justify-content: space-between;
  1661. align-items: center;
  1662. margin-bottom: 2rem;
  1663. gap: 1.5rem;
  1664. }
  1665. /* 修改标签搜索容器样式以适应新布局 */
  1666. .tag-search-container {
  1667. display: flex;
  1668. gap: 1rem;
  1669. padding: 1rem;
  1670. background-color: var(--background-color);
  1671. border-radius: var(--radius-lg);
  1672. box-shadow: var(--shadow-sm);
  1673. flex: 1;
  1674. margin: 0; /* 覆盖之前的margin设置 */
  1675. }
  1676. /* 加载全部标签按钮 */
  1677. .load-all-btn {
  1678. white-space: nowrap;
  1679. display: flex;
  1680. align-items: center;
  1681. gap: 0.5rem;
  1682. padding: 0.75rem 1.2rem;
  1683. background-color: var(--warning-color);
  1684. color: white;
  1685. font-weight: 500;
  1686. transition: all var(--transition-fast);
  1687. }
  1688. .load-all-btn:hover {
  1689. background-color: var(--secondary-color);
  1690. transform: translateY(-2px);
  1691. }
  1692. .load-all-btn:disabled {
  1693. background-color: var(--text-muted);
  1694. cursor: not-allowed;
  1695. transform: none;
  1696. }
  1697. /* 旋转加载图标动画 */
  1698. @keyframes spin {
  1699. 0% { transform: rotate(0deg); }
  1700. 100% { transform: rotate(360deg); }
  1701. }
  1702. .fa-spin {
  1703. animation: spin 1s linear infinite;
  1704. }
  1705. /* 提示消息增强样式 */
  1706. .toast-notification {
  1707. position: fixed;
  1708. top: 20px;
  1709. left: 50%;
  1710. transform: translateX(-50%);
  1711. background-color: var(--container-bg);
  1712. color: var(--text-primary);
  1713. padding: 1rem 2rem;
  1714. border-radius: var(--radius-md);
  1715. box-shadow: var(--shadow-lg);
  1716. z-index: 1100;
  1717. animation: fadeIn 0.3s ease-in;
  1718. text-align: center;
  1719. max-width: 90%;
  1720. display: flex;
  1721. align-items: center;
  1722. gap: 0.75rem;
  1723. }
  1724. .toast-notification i {
  1725. font-size: 1.2rem;
  1726. }
  1727. .toast-notification.error {
  1728. border-left: 4px solid var(--danger-color);
  1729. }
  1730. .toast-notification.error i {
  1731. color: var(--danger-color);
  1732. }
  1733. .toast-notification.info {
  1734. border-left: 4px solid var(--info-color);
  1735. }
  1736. .toast-notification.info i {
  1737. color: var(--info-color);
  1738. }
  1739. /* 优化标签表格性能 */
  1740. .tag-table {
  1741. border-collapse: separate;
  1742. border-spacing: 0;
  1743. width: 100%;
  1744. }
  1745. /* 响应式调整 */
  1746. @media (max-width: 768px) {
  1747. .tag-actions {
  1748. flex-direction: column;
  1749. }
  1750. .tag-search-container {
  1751. width: 100%;
  1752. }
  1753. .load-all-btn {
  1754. width: 100%;
  1755. justify-content: center;
  1756. }
  1757. }
  1758. /* 标签数量警告样式 */
  1759. .tag-count-warning {
  1760. margin: 1rem 0 2rem;
  1761. padding: 1rem 1.5rem;
  1762. background-color: rgba(255, 87, 87, 0.1);
  1763. border-left: 4px solid var(--danger-color);
  1764. border-radius: var(--radius-md);
  1765. display: flex;
  1766. align-items: center;
  1767. gap: 1rem;
  1768. }
  1769. .tag-count-warning.moderate {
  1770. background-color: rgba(255, 181, 71, 0.1);
  1771. border-left: 4px solid var(--warning-color);
  1772. }
  1773. .tag-count-warning i {
  1774. font-size: 1.5rem;
  1775. color: var(--danger-color);
  1776. }
  1777. .tag-count-warning.moderate i {
  1778. color: var(--warning-color);
  1779. }
  1780. .tag-count-warning p {
  1781. margin: 0;
  1782. color: var(--text-primary);
  1783. font-size: 0.95rem;
  1784. line-height: 1.5;
  1785. }
  1786. .tag-count-warning strong {
  1787. font-weight: 600;
  1788. }
  1789. /* 改进加载全部标签按钮 */
  1790. .load-all-btn:disabled {
  1791. background-color: var(--text-muted);
  1792. cursor: not-allowed;
  1793. transform: none !important;
  1794. opacity: 0.7;
  1795. }
  1796. .load-all-btn:disabled:hover {
  1797. background-color: var(--text-muted);
  1798. box-shadow: none;
  1799. }
  1800. /* 更新toast通知样式 */
  1801. .toast-notification {
  1802. position: fixed;
  1803. top: 20px;
  1804. left: 50%;
  1805. transform: translateX(-50%);
  1806. background-color: var(--container-bg);
  1807. color: var(--text-primary);
  1808. padding: 1rem 2rem;
  1809. border-radius: var(--radius-md);
  1810. box-shadow: var(--shadow-lg);
  1811. z-index: 1100;
  1812. animation: fadeIn 0.3s ease-in;
  1813. text-align: center;
  1814. max-width: 90%;
  1815. display: flex;
  1816. align-items: center;
  1817. gap: 0.75rem;
  1818. }
  1819. .toast-notification i {
  1820. font-size: 1.2rem;
  1821. }
  1822. .toast-notification.error {
  1823. border-left: 4px solid var(--danger-color);
  1824. }
  1825. .toast-notification.error i {
  1826. color: var(--danger-color);
  1827. }
  1828. .toast-notification.info {
  1829. border-left: 4px solid var(--info-color);
  1830. }
  1831. .toast-notification.info i {
  1832. color: var(--info-color);
  1833. }
  1834. .toast-notification.fade-out {
  1835. opacity: 0;
  1836. transition: opacity 0.3s ease-out;
  1837. }
  1838. /* 添加标签加载进度样式 */
  1839. .loading-progress {
  1840. width: 100%;
  1841. height: 4px;
  1842. background-color: var(--background-color);
  1843. border-radius: 2px;
  1844. margin: 10px 0;
  1845. overflow: hidden;
  1846. }
  1847. .progress-bar {
  1848. height: 100%;
  1849. background-color: var(--primary-color);
  1850. width: 0%;
  1851. transition: width 0.3s ease;
  1852. }
  1853. .loading-indicator {
  1854. display: flex;
  1855. flex-direction: column;
  1856. justify-content: center;
  1857. align-items: center;
  1858. padding: 3rem 0;
  1859. color: var(--text-secondary);
  1860. font-size: 1.1rem;
  1861. text-align: center;
  1862. }
  1863. /* 登录页面特定样式 - 确保按钮正确显示 */
  1864. .login-container .captcha-area {
  1865. display: flex !important;
  1866. align-items: center !important;
  1867. justify-content: space-between !important;
  1868. gap: 10px !important;
  1869. width: 100% !important;
  1870. }
  1871. .login-container #captcha {
  1872. flex: 1.5 !important;
  1873. min-width: 0 !important;
  1874. margin: 0 !important;
  1875. }
  1876. .login-container #captchaText {
  1877. flex: 1 !important;
  1878. min-width: 80px !important;
  1879. height: 44px !important;
  1880. text-align: center !important;
  1881. line-height: 44px !important;
  1882. background-color: #f5f7fa !important;
  1883. border: 1px solid #ddd !important;
  1884. border-radius: 5px !important;
  1885. margin: 0 !important;
  1886. }
  1887. .login-container .btn-login {
  1888. flex: 1 !important;
  1889. min-width: 80px !important;
  1890. height: 44px !important;
  1891. margin: 0 !important;
  1892. white-space: nowrap !important;
  1893. width: auto !important;
  1894. background-color: var(--primary-color) !important;
  1895. color: white !important;
  1896. display: flex !important;
  1897. align-items: center !important;
  1898. justify-content: center !important;
  1899. }
  1900. /* 处理登录按钮在hover时的行为 */
  1901. .login-container .btn-login:hover {
  1902. background-color: var(--primary-dark) !important;
  1903. transform: none !important; /* 防止按钮hover时的上移效果导致布局变化 */
  1904. }
  1905. /* 确保登录表单中的其他按钮不受影响 */
  1906. .login-container button:not(.btn-login) {
  1907. width: 100%;
  1908. }
  1909. /* 修复在移动设备上的显示 */
  1910. @media (max-width: 480px) {
  1911. .login-container .captcha-area {
  1912. flex-wrap: wrap !important;
  1913. }
  1914. .login-container #captcha {
  1915. flex: 100% !important;
  1916. margin-bottom: 10px !important;
  1917. }
  1918. .login-container #captchaText {
  1919. flex: 1 !important;
  1920. }
  1921. .login-container .btn-login {
  1922. flex: 1 !important;
  1923. }
  1924. }
  1925. /* 登录按钮样式 */
  1926. #loginButton {
  1927. display: block !important;
  1928. width: 100% !important;
  1929. padding: 10px !important;
  1930. background-color: var(--primary-color) !important;
  1931. color: white !important;
  1932. border: none !important;
  1933. border-radius: 5px !important;
  1934. cursor: pointer !important;
  1935. font-size: 16px !important;
  1936. margin-top: 15px !important;
  1937. }
  1938. #loginButton:hover {
  1939. background-color: var(--primary-dark-color) !important;
  1940. }
  1941. .login-form button {
  1942. background-color: var(--primary-color) !important;
  1943. color: white !important;
  1944. }
  1945. .login-form button:hover {
  1946. background-color: var(--primary-dark-color) !important;
  1947. color: white !important;
  1948. }
  1949. .login-modal .login-content .login-form #loginButton:hover {
  1950. background-color: var(--primary-dark-color) !important;
  1951. color: white !important;
  1952. }
  1953. /* ======================
  1954. 文档内容样式 (Doc Content) - 优化版
  1955. ====================== */
  1956. /* 文档文本容器整体调整 */
  1957. #documentationText {
  1958. padding: 0.5rem 1.5rem; /* 增加左右内边距 */
  1959. max-width: 900px; /* 限制最大宽度以提高可读性 */
  1960. /* margin-left: auto; 移除左边距自动 */
  1961. /* margin-right: auto; 移除右边距自动 */
  1962. }
  1963. .doc-content {
  1964. font-family: 'Georgia', 'Times New Roman', 'Source Han Serif CN', 'Songti SC', serif; /* 使用更适合阅读的衬线字体 */
  1965. line-height: 1.8; /* 增加行高 */
  1966. color: #333;
  1967. padding-top: 0; /* 移除顶部padding,让标题控制间距 */
  1968. margin-bottom: 2rem; /* 内容和元数据之间的间距 */
  1969. }
  1970. /* 标题样式调整 */
  1971. .doc-content h1:first-of-type, /* 优先将第一个h1作为主标题 */
  1972. .doc-content h2:first-of-type,
  1973. .doc-content h3:first-of-type {
  1974. margin-top: 0; /* 移除主标题上方的间距 */
  1975. margin-bottom: 1rem; /* 主标题下方间距 */
  1976. padding-bottom: 0.5rem; /* 标题下划线间距 */
  1977. border-bottom: 2px solid var(--primary-color); /* 强调主标题下划线 */
  1978. font-size: 2.5em; /* 增大主标题字号 */
  1979. font-weight: 700;
  1980. line-height: 1.2;
  1981. }
  1982. .doc-content h2 {
  1983. font-size: 1.8em;
  1984. margin-top: 2.5em;
  1985. margin-bottom: 1em;
  1986. border-bottom: 1px solid #eaecef;
  1987. padding-bottom: 0.4em;
  1988. font-weight: 600;
  1989. }
  1990. .doc-content h3 {
  1991. font-size: 1.5em;
  1992. margin-top: 2em;
  1993. margin-bottom: 0.8em;
  1994. font-weight: 600;
  1995. }
  1996. .doc-content h4 {
  1997. font-size: 1.25em;
  1998. margin-top: 1.8em;
  1999. margin-bottom: 0.7em;
  2000. font-weight: 600;
  2001. color: #444;
  2002. }
  2003. /* 段落样式 */
  2004. .doc-content p {
  2005. margin-bottom: 1.5rem; /* 增大段落间距 */
  2006. font-size: 1.05rem; /* 稍微增大正文字号 */
  2007. }
  2008. /* 列表样式 */
  2009. .doc-content ul,
  2010. .doc-content ol {
  2011. padding-left: 1.8em; /* 调整缩进 */
  2012. margin-bottom: 1.5rem;
  2013. }
  2014. .doc-content li {
  2015. margin-bottom: 0.6rem;
  2016. }
  2017. /* 元数据 (更新时间) 样式 */
  2018. .doc-meta {
  2019. font-size: 0.9em;
  2020. color: #888;
  2021. text-align: right; /* 右对齐 */
  2022. margin-top: 0rem; /* 调整与内容的距离 */
  2023. padding-top: 0.5rem; /* 增加顶部内边距 */
  2024. border-top: 1px dashed #eee; /* 放到顶部 */
  2025. clear: both; /* 确保在内容下方 */
  2026. }
  2027. /* 代码块样式统一 */
  2028. .doc-content pre {
  2029. background-color: #1F2937; /* 深色背景 */
  2030. color: #F3F4F6; /* 浅色文字 */
  2031. padding: 1.2rem 1.5rem; /* 调整内边距 */
  2032. border-radius: var(--radius-md);
  2033. overflow-x: auto;
  2034. margin: 1.8rem 0; /* 增加垂直外边距 */
  2035. line-height: 1.6; /* 调整行高 */
  2036. border: 1px solid #374151; /* 深色边框 */
  2037. font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; /* 使用适合编程的字体 */
  2038. font-size: 0.95rem; /* 标准化字体大小 */
  2039. position: relative; /* 为复制按钮定位 */
  2040. }
  2041. .doc-content pre::before {
  2042. content: ''; /* 模拟终端窗口的顶部栏 */
  2043. display: block;
  2044. height: 28px; /* 顶部栏高度 */
  2045. background-color: #111827; /* 顶部栏颜色 */
  2046. border-top-left-radius: var(--radius-md);
  2047. border-top-right-radius: var(--radius-md);
  2048. margin: -1.2rem -1.5rem 1rem -1.5rem; /* 定位和添加下方间距 */
  2049. position: relative;
  2050. }
  2051. /* 模拟窗口按钮 */
  2052. .doc-content pre::after {
  2053. content: '';
  2054. position: absolute;
  2055. top: 8px;
  2056. left: 15px;
  2057. width: 12px;
  2058. height: 12px;
  2059. background-color: #FF5F57;
  2060. border-radius: 50%;
  2061. box-shadow: 20px 0 #FEBC2E, 40px 0 #28C840;
  2062. }
  2063. .doc-content pre code {
  2064. display: block; /* 确保代码块充满 pre */
  2065. background-color: transparent;
  2066. padding: 0;
  2067. margin: 0;
  2068. color: inherit;
  2069. border-radius: 0;
  2070. border: none;
  2071. line-height: inherit;
  2072. font-family: inherit;
  2073. white-space: pre; /* 保留空格和换行 */
  2074. font-size: inherit; /* 继承 pre 的字号 */
  2075. }
  2076. /* 行内代码样式 */
  2077. .doc-content code {
  2078. font-family: 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  2079. font-size: 0.9em; /* 调整大小 */
  2080. background-color: rgba(61, 124, 244, 0.1); /* 更柔和的背景 */
  2081. padding: 0.25em 0.5em;
  2082. margin: 0 0.1em;
  2083. border-radius: 4px;
  2084. color: #2c5282; /* 主色调的深色 */
  2085. border: 1px solid rgba(61, 124, 244, 0.2);
  2086. vertical-align: middle; /* 垂直对齐 */
  2087. }
  2088. /* 链接样式 */
  2089. .doc-content a {
  2090. color: var(--primary-dark); /* 使用更深的蓝色 */
  2091. text-decoration: underline;
  2092. text-decoration-color: rgba(61, 124, 244, 0.4);
  2093. transition: all 0.2s ease;
  2094. }
  2095. .doc-content a:hover {
  2096. color: var(--primary-color);
  2097. text-decoration-color: var(--primary-color);
  2098. background-color: rgba(61, 124, 244, 0.05);
  2099. }
  2100. /* 引用块样式 */
  2101. .doc-content blockquote {
  2102. margin: 2em 0;
  2103. padding: 1em 1.5em;
  2104. color: #555;
  2105. border-left: 4px solid var(--primary-light);
  2106. background-color: #f8faff; /* 淡蓝色背景 */
  2107. border-radius: var(--radius-sm);
  2108. }
  2109. .doc-content blockquote p:last-child {
  2110. margin-bottom: 0;
  2111. }
  2112. /* 表格样式 */
  2113. .doc-content table {
  2114. border-collapse: separate; /* 使用 separate 以应用圆角 */
  2115. border-spacing: 0;
  2116. margin: 1.8rem 0;
  2117. width: 100%;
  2118. border: 1px solid #e2e8f0;
  2119. border-radius: var(--radius-md);
  2120. overflow: hidden; /* 应用圆角 */
  2121. }
  2122. .doc-content th,
  2123. .doc-content td {
  2124. border-bottom: 1px solid #e2e8f0;
  2125. padding: 0.8em 1.2em;
  2126. text-align: left;
  2127. }
  2128. .doc-content tr:last-child td {
  2129. border-bottom: none;
  2130. }
  2131. .doc-content th {
  2132. font-weight: 600;
  2133. background-color: #f7f9fc; /* 更浅的表头背景 */
  2134. color: #4a5568;
  2135. }
  2136. .doc-content tr:nth-child(even) td {
  2137. background-color: #fafcff; /* 斑马纹 */
  2138. }
  2139. /* 提示消息增强样式 - 修改为居中模态样式 */
  2140. .toast-notification {
  2141. position: fixed;
  2142. /* top: 20px; */ /* 移除顶部定位 */
  2143. top: 50%; /* 垂直居中 */
  2144. left: 50%;
  2145. transform: translate(-50%, -50%); /* 水平垂直居中 */
  2146. background-color: white; /* 使用白色背景更像弹窗 */
  2147. color: var(--text-primary);
  2148. padding: 2rem 2.5rem; /* 增加内边距 */
  2149. border-radius: var(--radius-lg); /* 更大的圆角 */
  2150. box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* 更明显的阴影 */
  2151. z-index: 1100;
  2152. /* animation: fadeIn 0.3s ease-in; */ /* 可以保留或换成缩放动画 */
  2153. animation: fadeInScale 0.3s ease-out; /* 使用新的缩放动画 */
  2154. text-align: center;
  2155. min-width: 300px; /* 设置最小宽度 */
  2156. max-width: 90%;
  2157. display: flex;
  2158. flex-direction: column; /* 让图标和文字垂直排列 */
  2159. align-items: center;
  2160. gap: 1rem; /* 图标和文字之间的间距 */
  2161. border-left: none; /* 移除之前的左边框 */
  2162. border-top: 5px solid var(--info-color); /* 使用顶部边框指示类型 */
  2163. }
  2164. /* 不同类型的顶部边框颜色 */
  2165. .toast-notification.error {
  2166. border-top-color: var(--danger-color);
  2167. }
  2168. .toast-notification.success {
  2169. border-top-color: var(--success-color);
  2170. }
  2171. .toast-notification.info {
  2172. border-top-color: var(--info-color);
  2173. }
  2174. /* 图标样式 */
  2175. .toast-notification i {
  2176. font-size: 2.5rem; /* 增大图标 */
  2177. margin-bottom: 0.5rem; /* 图标下方间距 */
  2178. }
  2179. .toast-notification.error i {
  2180. color: var(--danger-color);
  2181. }
  2182. .toast-notification.success i {
  2183. color: var(--success-color);
  2184. }
  2185. .toast-notification.info i {
  2186. color: var(--info-color);
  2187. }
  2188. /* 消息文本样式 */
  2189. .toast-notification span {
  2190. font-size: 1.1rem;
  2191. line-height: 1.5;
  2192. }
  2193. /* 淡出动画 */
  2194. .toast-notification.fade-out {
  2195. opacity: 0;
  2196. transform: translate(-50%, -50%) scale(0.9); /* 淡出时缩小 */
  2197. transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  2198. }
  2199. /* 新增:淡入和缩放动画 */
  2200. @keyframes fadeInScale {
  2201. from {
  2202. opacity: 0;
  2203. transform: translate(-50%, -50%) scale(0.8);
  2204. }
  2205. to {
  2206. opacity: 1;
  2207. transform: translate(-50%, -50%) scale(1);
  2208. }
  2209. }
  2210. /* ... 其他样式 ... */
  2211. /* 表格通用样式 */
  2212. .admin-container table {
  2213. /* ... (现有表格样式) ... */
  2214. }
  2215. /* Docker 状态表格特定样式 */
  2216. #dockerStatusTable {
  2217. table-layout: fixed; /* 固定表格布局,让列宽设定生效 */
  2218. width: 100%;
  2219. border-collapse: collapse; /* 合并边框 */
  2220. margin-top: 1rem; /* 与上方元素保持距离 */
  2221. }
  2222. #dockerStatusTable th,
  2223. #dockerStatusTable td {
  2224. padding: 0.8rem 1rem; /* 统一内边距 */
  2225. border: 1px solid var(--border-light, #e5e7eb); /* 添加边框 */
  2226. vertical-align: middle;
  2227. font-size: 0.9rem; /* 稍小字体 */
  2228. }
  2229. #dockerStatusTable thead th {
  2230. background-color: var(--table-header-bg, #f9fafb); /* 表头背景色 */
  2231. color: var(--text-secondary, #6b7280);
  2232. font-weight: 600; /* 表头字体加粗 */
  2233. position: sticky; /* 尝试粘性定位,如果表格滚动 */
  2234. top: 0; /* 配合 sticky */
  2235. z-index: 1; /* 确保表头在加载提示之上 */
  2236. }
  2237. /* 为 ID 列设置较窄宽度 */
  2238. #dockerStatusTable th:nth-child(1),
  2239. #dockerStatusTable td:nth-child(1) {
  2240. width: 120px; /* 或 10% */
  2241. }
  2242. /* 为 名称 列设置最大宽度和文本溢出处理 */
  2243. #dockerStatusTable th:nth-child(2),
  2244. #dockerStatusTable td:nth-child(2) {
  2245. max-width: 200px; /* 根据需要调整 */
  2246. width: 25%; /* 尝试百分比宽度 */
  2247. overflow: hidden;
  2248. text-overflow: ellipsis;
  2249. white-space: nowrap;
  2250. }
  2251. /* 为 镜像 列设置最大宽度和文本溢出处理 */
  2252. #dockerStatusTable th:nth-child(3),
  2253. #dockerStatusTable td:nth-child(3) {
  2254. max-width: 300px; /* 可以比名称宽一些 */
  2255. width: 35%; /* 尝试百分比宽度 */
  2256. overflow: hidden;
  2257. text-overflow: ellipsis;
  2258. white-space: nowrap;
  2259. }
  2260. /* 为 状态 列设置宽度 */
  2261. #dockerStatusTable th:nth-child(4),
  2262. #dockerStatusTable td:nth-child(4) {
  2263. width: 100px; /* 或 10% */
  2264. text-align: center; /* 状态居中 */
  2265. }
  2266. /* 为 操作 列设置宽度 */
  2267. #dockerStatusTable th:nth-child(5),
  2268. #dockerStatusTable td:nth-child(5) {
  2269. width: 150px; /* 或 20% */
  2270. text-align: center; /* 操作按钮居中 */
  2271. }
  2272. /* 确保 title 属性的提示能正常显示 */
  2273. #dockerStatusTable td:nth-child(2),
  2274. #dockerStatusTable td:nth-child(3) {
  2275. cursor: default; /* 或 help,提示用户悬停可查看完整信息 */
  2276. }
  2277. /* 加载提示行样式调整 */
  2278. #dockerStatusTable .loading-container td {
  2279. background-color: rgba(255, 255, 255, 0.8); /* 半透明背景,避免完全遮挡 */
  2280. padding: 2rem 0; /* 增加垂直内边距 */
  2281. text-align: center;
  2282. color: var(--text-secondary);
  2283. }
  2284. /* --- 新增:操作下拉菜单样式 --- */
  2285. .action-cell {
  2286. position: relative; /* 确保下拉菜单相对于单元格定位 */
  2287. text-align: center; /* 让按钮居中 */
  2288. }
  2289. .action-dropdown .dropdown-toggle {
  2290. padding: 0.3rem 0.6rem;
  2291. font-size: 0.85rem; /* 按钮字体小一点 */
  2292. background-color: var(--container-bg);
  2293. border: 1px solid var(--border-color);
  2294. color: var(--text-secondary);
  2295. }
  2296. .action-dropdown .dropdown-toggle:hover,
  2297. .action-dropdown .dropdown-toggle:focus {
  2298. background-color: var(--background-color);
  2299. border-color: var(--border-dark);
  2300. color: var(--text-primary);
  2301. }
  2302. .action-dropdown .dropdown-menu {
  2303. min-width: 160px; /* 设置最小宽度 */
  2304. box-shadow: var(--shadow-md);
  2305. border: 1px solid var(--border-light);
  2306. padding: 0.5rem 0;
  2307. margin-top: 0.25rem; /* 微调与按钮的距离 */
  2308. }
  2309. .action-dropdown .dropdown-item {
  2310. display: flex;
  2311. align-items: center;
  2312. gap: 0.75rem;
  2313. padding: 0.6rem 1.2rem; /* 调整内边距 */
  2314. font-size: 0.9rem;
  2315. color: var(--text-secondary);
  2316. cursor: pointer;
  2317. white-space: nowrap;
  2318. }
  2319. .action-dropdown .dropdown-item:hover {
  2320. background-color: var(--background-color);
  2321. color: var(--text-primary);
  2322. }
  2323. .action-dropdown .dropdown-item i {
  2324. width: 16px; /* 固定图标宽度 */
  2325. text-align: center;
  2326. color: var(--text-muted);
  2327. transition: color var(--transition-fast);
  2328. }
  2329. .action-dropdown .dropdown-item:hover i {
  2330. color: var(--primary-color);
  2331. }
  2332. .action-dropdown .dropdown-item.text-danger,
  2333. .action-dropdown .dropdown-item.text-danger:hover {
  2334. color: var(--danger-color) !important;
  2335. }
  2336. .action-dropdown .dropdown-item.text-danger i {
  2337. color: var(--danger-color) !important;
  2338. }
  2339. /* --- 结束:操作下拉菜单样式 --- */
  2340. /* --- 新增:详情弹窗表格样式 --- */
  2341. .details-swal-popup .details-table-container {
  2342. max-height: 60vh; /* 限制最大高度,出现滚动条 */
  2343. overflow-y: auto;
  2344. margin-top: 1rem;
  2345. }
  2346. .details-swal-popup .details-table {
  2347. width: 100%;
  2348. border-collapse: collapse;
  2349. font-size: 0.9rem;
  2350. }
  2351. .details-swal-popup .details-table thead th {
  2352. background-color: var(--table-header-bg, #f9fafb);
  2353. color: var(--text-secondary, #6b7280);
  2354. font-weight: 600;
  2355. text-align: left; /* 确保表头左对齐 */
  2356. padding: 0.8rem 1rem;
  2357. border-bottom: 2px solid var(--border-dark, #e5e7eb);
  2358. position: sticky; /* 表头粘性定位 */
  2359. top: 0;
  2360. z-index: 1;
  2361. }
  2362. .details-swal-popup .details-table tbody td {
  2363. padding: 0.8rem 1rem;
  2364. border-bottom: 1px solid var(--border-light, #e5e7eb);
  2365. vertical-align: middle;
  2366. color: var(--text-primary);
  2367. text-align: left; /* 确保单元格左对齐 */
  2368. }
  2369. .details-swal-popup .details-table tbody tr:last-child td {
  2370. border-bottom: none;
  2371. }
  2372. .details-swal-popup .details-table tbody tr:hover td {
  2373. background-color: var(--background-color, #f8f9fa);
  2374. }
  2375. .details-swal-popup .details-table .badge {
  2376. font-size: 0.8rem; /* 状态徽章字体稍小 */
  2377. }
  2378. /* --- 结束:详情弹窗表格样式 --- */
  2379. /* --- 新增:资源详情表格特殊样式 (两列) --- */
  2380. .details-swal-popup .resource-details-table td.label {
  2381. font-weight: 600; /* 标签加粗 */
  2382. width: 40%; /* 设定标签列宽度 */
  2383. color: var(--text-secondary); /* 标签颜色稍浅 */
  2384. padding-right: 1.5rem; /* 标签和值之间的距离 */
  2385. white-space: nowrap; /* 防止标签换行 */
  2386. }
  2387. .details-swal-popup .resource-details-table td {
  2388. border-bottom: 1px dashed var(--border-light, #e5e7eb); /* 使用虚线分隔行 */
  2389. }
  2390. /* --- 结束:资源详情表格特殊样式 --- */
  2391. /* --- 新增:资源详情类 Excel 表格样式 --- */
  2392. .details-swal-popup .resource-details-excel {
  2393. table-layout: fixed; /* 固定布局 */
  2394. width: 100%;
  2395. margin-top: 0; /* 移除与容器的顶部距离 */
  2396. }
  2397. .details-swal-popup .resource-details-excel thead th {
  2398. text-align: center; /* 表头居中 */
  2399. white-space: nowrap;
  2400. border: 1px solid var(--border-dark, #dee2e6); /* 使用更深的边框 */
  2401. padding: 0.6rem 0.5rem; /* 调整内边距 */
  2402. }
  2403. .details-swal-popup .resource-details-excel tbody td {
  2404. text-align: center; /* 数据居中 */
  2405. padding: 0.6rem 0.5rem;
  2406. border: 1px solid var(--border-color, #dee2e6);
  2407. word-break: break-all; /* 允许长内容换行 */
  2408. }
  2409. /* --- 结束:资源详情类 Excel 表格样式 --- */
  2410. /* ... 其他样式 ... */