/* pages/collection/index.wxss */ .collection-container { height: 100vh; background-image: url('https://klmybwg.4dage.com/mini/wxImg/bg.png'); background-size: cover; background-repeat: no-repeat; box-sizing: border-box; padding: 0 30rpx; } .top-section { position: sticky; top: 0; z-index: 10; background-color: rgba(245, 242, 235, 0.95); } .nav-scroll-container { overflow-x: auto; white-space: nowrap; } .category-menu { display: flex; margin-top: 20rpx; white-space: nowrap; } .category-item { display: inline-flex; align-items: center; height: 80rpx; line-height: 80rpx; font-size: 32rpx; color: #584735; padding: 0 30rpx; white-space: nowrap; flex-shrink: 0; } .category-item.active { color: #584735; font-weight: bold; font-size: 40rpx; } .category-item.active .category-text { border-bottom: 2rpx solid #F3B200; } .search-container { padding: 20rpx 30rpx; } .search-input { position: relative; height: 90rpx; border-radius: 40rpx; border: 2rpx solid #5B472E; background-color: transparent; display: flex; align-items: center; padding: 0 30rpx; } .search-input input { flex: 1; height: 100%; font-size: 32rpx; color: #584735; } .search-input input::placeholder { color: rgba(88, 71, 53, 0.5); } .search-icon { margin-left: 20rpx; font-size: 38rpx; color: #584735; } .icon-small{ margin-top: 12rpx; } .clear-icon { margin-left: 20rpx; font-size: 32rpx; color: #999; } .content-section { height: calc(100vh - 300rpx); } .collection-list { display: flex; flex-direction: column; gap: 30rpx; } .collection-item { background-color: #fff; border-radius: 16rpx; overflow: hidden; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05); } .item-image-container { position: relative; height: 560rpx; overflow: hidden; } .item-image { width: 100%; height: 100%; object-fit: cover; } .view-button { position: absolute; display: flex; align-items: center; justify-content: center; width: 160rpx; height: 72rpx; top: 24rpx; right: 24rpx; background-color: rgba(0, 0, 0, 0.2); color: #fff; border-radius: 100rpx; font-size: 24rpx; border: 2rpx solid #fff; } .view-button text { font-size: 28rpx; } .arrow { margin-left: 12rpx; } .item-info { position: absolute; width: 90%; bottom: 32rpx; left: 48rpx; } .item-category { font-size: 28rpx; color: #fff; margin-bottom: 8rpx; } .item-title { font-size: 72rpx; font-weight: bold; color: #fff; margin-bottom: 8rpx; line-height: 1.2; } .item-description { font-size: 28rpx; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 加载和状态样式 */ .loading-container, .no-more-container, .empty-container { display: flex; justify-content: center; align-items: center; padding: 40rpx; margin: 40rpx 0; } .loading-text, .no-more-text, .empty-text { color: #584735; font-size: 28rpx; opacity: 0.7; } .loading-text { position: relative; } .loading-text::after { content: ''; display: inline-block; width: 24rpx; height: 24rpx; margin-left: 16rpx; border: 4rpx solid #584735; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }