styles.css 5.7 KB

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