body { background-color: #ffffff; font-family: Arial, sans-serif; margin: 0; padding: 0; box-sizing: border-box; } .content-wrapper { padding: 10px 0px 10px 0px; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .content-title { padding: 0px 20px 0px 20px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; transition: transform 0.2s; } .content-title a { text-decoration: none; color: #ff4081; font-weight: bold; } .content-title a:hover { transform: scale(1.1); } .content { margin-top: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; } .image-card { position: relative; display: inline-block; padding: 5px; border: 1px solid #ccc; /* 卡片边框 */ border-radius: 8px; /* 卡片圆角 */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 卡片阴影 */ transition: transform 0.2s; } .image-card:hover { transform: scale(1.1); } .image-card img { width: 100%; height: auto; object-fit: contain; aspect-ratio: 1; display: block; cursor: pointer; } .card-title { white-space: nowrap; /* 禁止文本换行 */ overflow-x: auto; /* 允许水平滚动 */ -ms-overflow-style: none; /* IE和Edge浏览器隐藏滚动条 */ scrollbar-width: none; /* Firefox浏览器隐藏滚动条 */ padding: 5px 4px 0px 4px; text-align: center; font-size: 16px; font-weight: bold; } .card-title::-webkit-scrollbar { display: none; /* Chrome, Safari和Opera浏览器隐藏滚动条 */ } .image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; width: 90%; } .image-grid img { width: 100%; height: auto; object-fit: contain; aspect-ratio: 1; display: block; cursor: pointer; } .album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; width: 90%; } .album-grid-card { position: relative; padding: 5px 0px 5px 0px; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.2s; } .album-grid-card:hover { transform: scale(1.1); } .album-icon-img { width: 100%; aspect-ratio: 1; cursor: pointer; /* border-radius: 8px; */ } .album-cover-img { width: 100%; aspect-ratio: 2; cursor: pointer; border-radius: 8px; } .album-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; width: 90%; } .tag-cloud { padding: 20px; } .tag-cloud .tag { display: inline-block; text-decoration: none; padding: 5px 10px; margin: 5px; border-radius: 5px; cursor: pointer; background-color: #fefefe; transition: color 0.3s ease; } .tag-cloud a.selected { font-size: 24px; font-weight: bold; background-color: #e0e0e0; } .tag:hover { transform: scale(2.0); /* 悬停时放大 */ } .breadcrumb { list-style: none; background-color: #f8f9fa; border-radius: 4px; padding: 8px; margin: 0; display: flex; align-items: center; flex-wrap: wrap; } .breadcrumb li { margin-right: 8px; } .breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; } .breadcrumb a { text-decoration: none; color: #007bff; } .breadcrumb a:hover { text-decoration: underline; } /* 响应式设计, 如果是手机屏幕 */ @media (max-width: 768px) { .image-grid { width: 90%; /* 手机端宽度占90% */ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .album-grid { width: 90%; /* 手机端宽度占90% */ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .album-icon-grid { width: 90%; /* 手机端宽度占90% */ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } /* 移动端不显示面包屑导航 */ .breadcrumb { display: none; } } .video-play-button { position: absolute; top: 10px; right: 10px; } .popup { display: none; /* 默认隐藏 */ position: fixed; z-index: 300; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.3); } .popup-content-wrapper { box-sizing: border-box; height: 90vh; width: auto; aspect-ratio: 18/16; margin: 5vh auto; display: flex; flex-direction: row; justify-content: center; position: relative; } .popup-content-left { background-color: #000; height: 90vh; width: auto; aspect-ratio: 9/16; border-top-left-radius: 8px; border-bottom-left-radius: 8px; } .popup-content-right { box-sizing: border-box; padding: 20px; background-color: white; width: auto; height: 90vh; max-width: 480px; max-height: 90vh; aspect-ratio: 9/16; overflow: auto; border-top-right-radius: 8px; /* 卡片圆角 */ border-bottom-right-radius: 8px; } .close { color: #aaa; position: absolute; top: 10px; right: 10px; font-size: 28px; font-weight: bold; cursor: pointer; z-index: 1000; } .close:hover, .close:focus { color: white; text-decoration: none; } #video-player { box-sizing: border-box; height: 100%; width: 100%; } /* 响应式设计, 如果是手机屏幕 */ @media (max-width: 768px) { .popup-content-wrapper { flex-direction: column; width: 100%; height: auto; margin: 0 auto; aspect-ratio: null; } .popup-content-left { width: 100%; height: 80vh; } .popup-content-right { width: 100%; max-width: 100%; height: auto; } } /* 进度角标样式 */ .progress-badge { position: absolute; top: 0px; right: 0px; background: #FF5252; color: white; padding: 4px 8px; border-radius: 0px 8px 0px 8px; font-size: 12px; font-family: Arial, sans-serif; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); z-index: 10; }