styles.css 5.3 KB

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