.container { display: flex; flex-direction: column; min-height: 100vh; background-color: #f5f5f5; font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; } .header { padding: 30rpx 0; text-align: center; background-color: #fff; border-bottom: 1rpx solid #eee; box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05); } .title { font-size: 36rpx; font-weight: bold; color: #333; letter-spacing: 2rpx; } .content { flex: 1; padding: 20rpx; } .loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100rpx 0; color: #666; } .loading-spinner { width: 60rpx; height: 60rpx; border: 6rpx solid #f3f3f3; border-top: 6rpx solid #FF6B81; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20rpx; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .error { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40rpx; background-color: #fff; border-radius: 12rpx; margin-bottom: 20rpx; box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.05); } .error-icon { font-size: 60rpx; margin-bottom: 20rpx; } .error text { display: block; color: #ff4d4f; margin-bottom: 30rpx; font-size: 28rpx; text-align: center; } .retry-button { width: 200rpx; height: 70rpx; line-height: 70rpx; font-size: 28rpx; border-radius: 35rpx; background-color: #FF6B81; color: #fff; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; } .section-title { font-size: 30rpx; font-weight: bold; color: #333; padding-left: 15rpx; border-left: 5rpx solid #FF6B81; } .section-count { font-size: 24rpx; color: #999; background-color: #f5f5f5; padding: 5rpx 15rpx; border-radius: 20rpx; } .product-list { background-color: #fff; border-radius: 12rpx; padding: 30rpx; margin-bottom: 30rpx; box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.08); } .product-items { display: flex; flex-direction: column; gap: 15rpx; } .product-item { display: flex; justify-content: space-between; align-items: center; padding: 30rpx; border-radius: 10rpx; background-color: #f9f9f9; border: 1rpx solid #eee; transition: all 0.3s ease; cursor: pointer; } .product-item:hover { background-color: #f0f0f0; transform: translateY(-2rpx); box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1); } .product-name { font-size: 28rpx; color: #333; flex: 1; } .product-arrow { font-size: 30rpx; color: #999; margin-left: 20rpx; } /* 响应式设计 */ @media (max-width: 375px) { .content { padding: 15rpx; } .product-list { padding: 20rpx; } .product-item { padding: 20rpx; } .title { font-size: 32rpx; } .section-title { font-size: 26rpx; } .product-name { font-size: 26rpx; } }