styles.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. body {
  2. background-color: #ffffff;
  3. font-family: Arial, sans-serif;
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. }
  8. .content-wrapper {
  9. padding: 10px 0px 10px 0px;
  10. border: 1px solid #ccc;
  11. border-radius: 8px;
  12. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  13. }
  14. .content-title {
  15. padding: 0px 20px 0px 20px;
  16. display: flex;
  17. flex-direction: row;
  18. justify-content: space-between;
  19. align-items: center;
  20. transition: transform 0.2s;
  21. }
  22. .content-title a {
  23. text-decoration: none;
  24. color: #ff4081;
  25. font-weight: bold;
  26. }
  27. .content-title a:hover {
  28. transform: scale(1.1);
  29. }
  30. .content {
  31. margin-top: 20px;
  32. display: flex;
  33. flex-direction: column;
  34. justify-content: center;
  35. align-items: center;
  36. }
  37. .image-card {
  38. position: relative;
  39. display: inline-block;
  40. padding: 5px;
  41. border: 1px solid #ccc; /* 卡片边框 */
  42. border-radius: 8px; /* 卡片圆角 */
  43. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 卡片阴影 */
  44. transition: transform 0.2s;
  45. }
  46. .image-card:hover {
  47. transform: scale(1.1);
  48. }
  49. .image-card img {
  50. width: 100%;
  51. height: auto;
  52. object-fit: contain;
  53. aspect-ratio: 1;
  54. display: block;
  55. cursor: pointer;
  56. }
  57. .card-title {
  58. white-space: nowrap; /* 禁止文本换行 */
  59. overflow-x: auto; /* 允许水平滚动 */
  60. -ms-overflow-style: none; /* IE和Edge浏览器隐藏滚动条 */
  61. scrollbar-width: none; /* Firefox浏览器隐藏滚动条 */
  62. padding: 5px 4px 0px 4px;
  63. text-align: center;
  64. font-size: 16px;
  65. font-weight: bold;
  66. }
  67. .card-title::-webkit-scrollbar {
  68. display: none; /* Chrome, Safari和Opera浏览器隐藏滚动条 */
  69. }
  70. .image-grid {
  71. display: grid;
  72. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  73. gap: 16px;
  74. width: 90%;
  75. }
  76. .image-grid img {
  77. width: 100%;
  78. height: auto;
  79. object-fit: contain;
  80. aspect-ratio: 1;
  81. display: block;
  82. cursor: pointer;
  83. }
  84. .album-grid {
  85. display: grid;
  86. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  87. gap: 16px;
  88. width: 90%;
  89. }
  90. .album-grid-card {
  91. position: relative;
  92. padding: 5px 0px 5px 0px;
  93. border: 1px solid #ccc;
  94. border-radius: 8px;
  95. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  96. transition: transform 0.2s;
  97. }
  98. .album-grid-card:hover {
  99. transform: scale(1.1);
  100. }
  101. .album-icon-img {
  102. width: 100%;
  103. aspect-ratio: 1;
  104. cursor: pointer;
  105. /* border-radius: 8px; */
  106. }
  107. .album-cover-img {
  108. width: 100%;
  109. aspect-ratio: 2;
  110. cursor: pointer;
  111. border-radius: 8px;
  112. }
  113. .album-icon-grid {
  114. display: grid;
  115. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  116. gap: 16px;
  117. width: 90%;
  118. }
  119. .tag-cloud {
  120. padding: 20px;
  121. }
  122. .tag-cloud .tag {
  123. display: inline-block;
  124. text-decoration: none;
  125. padding: 5px 10px;
  126. margin: 5px;
  127. border-radius: 5px;
  128. cursor: pointer;
  129. background-color: #fefefe;
  130. transition: color 0.3s ease;
  131. }
  132. .tag-cloud a.selected {
  133. font-size: 24px;
  134. font-weight: bold;
  135. background-color: #e0e0e0;
  136. }
  137. .tag:hover {
  138. transform: scale(2.0); /* 悬停时放大 */
  139. }
  140. .breadcrumb {
  141. list-style: none;
  142. background-color: #f8f9fa;
  143. border-radius: 4px;
  144. padding: 8px;
  145. margin: 0;
  146. display: flex;
  147. align-items: center;
  148. flex-wrap: wrap;
  149. }
  150. .breadcrumb li {
  151. margin-right: 8px;
  152. }
  153. .breadcrumb li:not(:last-child)::after {
  154. content: '/';
  155. margin-left: 8px;
  156. }
  157. .breadcrumb a {
  158. text-decoration: none;
  159. color: #007bff;
  160. }
  161. .breadcrumb a:hover {
  162. text-decoration: underline;
  163. }
  164. /* 响应式设计, 如果是手机屏幕 */
  165. @media (max-width: 768px) {
  166. .image-grid {
  167. width: 90%; /* 手机端宽度占90% */
  168. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  169. }
  170. .album-grid {
  171. width: 90%; /* 手机端宽度占90% */
  172. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  173. }
  174. .album-icon-grid {
  175. width: 90%; /* 手机端宽度占90% */
  176. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  177. }
  178. /* 移动端不显示面包屑导航 */
  179. .breadcrumb {
  180. display: none;
  181. }
  182. }
  183. .video-play-button {
  184. position: absolute;
  185. top: 10px;
  186. right: 10px;
  187. }
  188. .popup {
  189. display: none; /* 默认隐藏 */
  190. position: fixed;
  191. z-index: 300;
  192. left: 0;
  193. top: 0;
  194. width: 100%;
  195. height: 100%;
  196. overflow: auto;
  197. background-color: rgba(0, 0, 0, 0.3);
  198. }
  199. .popup-content-wrapper {
  200. box-sizing: border-box;
  201. height: 90vh;
  202. width: auto;
  203. aspect-ratio: 18/16;
  204. margin: 5vh auto;
  205. display: flex;
  206. flex-direction: row;
  207. justify-content: center;
  208. position: relative;
  209. }
  210. .popup-content-left {
  211. background-color: #000;
  212. height: 90vh;
  213. width: auto;
  214. aspect-ratio: 9/16;
  215. border-top-left-radius: 8px;
  216. border-bottom-left-radius: 8px;
  217. }
  218. .popup-content-right {
  219. box-sizing: border-box;
  220. padding: 20px;
  221. background-color: white;
  222. width: auto;
  223. height: 90vh;
  224. max-width: 480px;
  225. max-height: 90vh;
  226. aspect-ratio: 9/16;
  227. overflow: auto;
  228. border-top-right-radius: 8px; /* 卡片圆角 */
  229. border-bottom-right-radius: 8px;
  230. }
  231. .close {
  232. color: #aaa;
  233. position: absolute;
  234. top: 10px;
  235. right: 10px;
  236. font-size: 28px;
  237. font-weight: bold;
  238. cursor: pointer;
  239. z-index: 1000;
  240. }
  241. .close:hover,
  242. .close:focus {
  243. color: white;
  244. text-decoration: none;
  245. }
  246. #video-player {
  247. box-sizing: border-box;
  248. height: 100%;
  249. width: 100%;
  250. }
  251. /* 响应式设计, 如果是手机屏幕 */
  252. @media (max-width: 768px) {
  253. .popup-content-wrapper {
  254. flex-direction: column;
  255. width: 100%;
  256. height: auto;
  257. margin: 0 auto;
  258. aspect-ratio: null;
  259. }
  260. .popup-content-left {
  261. width: 100%;
  262. height: 80vh;
  263. }
  264. .popup-content-right {
  265. width: 100%;
  266. max-width: 100%;
  267. height: auto;
  268. }
  269. }
  270. /* 进度角标样式 */
  271. .progress-badge {
  272. position: absolute;
  273. top: 0px;
  274. right: 0px;
  275. background: #FF5252;
  276. color: white;
  277. padding: 4px 8px;
  278. border-radius: 0px 8px 0px 8px;
  279. font-size: 12px;
  280. font-family: Arial, sans-serif;
  281. display: flex;
  282. align-items: center;
  283. justify-content: center;
  284. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  285. z-index: 10;
  286. }