styles.css 4.8 KB

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