.test-container { padding: 20rpx; background-color: #f8f8f8; min-height: 100vh; } .header { text-align: center; margin-bottom: 30rpx; padding: 20rpx 0; background-color: #fff; border-radius: 12rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .title { font-size: 36rpx; font-weight: bold; color: #333; display: block; margin-bottom: 10rpx; } .subtitle { font-size: 24rpx; color: #666; display: block; } .test-status { background-color: #fff; border-radius: 12rpx; padding: 20rpx; margin-bottom: 30rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .status-item { display: flex; justify-content: space-between; padding: 15rpx 0; border-bottom: 1rpx solid #f0f0f0; } .status-item:last-child { border-bottom: none; } .status-label { font-size: 28rpx; color: #666; } .status-value { font-size: 28rpx; color: #333; font-weight: 500; } .status-item.testing .status-value { color: #07c160; animation: pulse 1s infinite; } .status-item.connected .status-value { color: #07c160; } .status-item.authenticated .status-value { color: #1989fa; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } } .test-controls { background-color: #fff; border-radius: 12rpx; padding: 20rpx; margin-bottom: 30rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .control-item { margin-bottom: 20rpx; } .control-item:last-child { margin-bottom: 0; } .control-label { font-size: 28rpx; color: #333; display: block; margin-bottom: 15rpx; font-weight: 500; } .control-buttons { display: flex; justify-content: space-between; gap: 20rpx; } .control-buttons button { flex: 1; font-size: 26rpx; } .message-input { border: 1rpx solid #ddd; border-radius: 8rpx; padding: 20rpx; font-size: 28rpx; margin-bottom: 15rpx; background-color: #f9f9f9; } .action-buttons { display: flex; justify-content: space-between; margin-top: 20rpx; } .action-buttons button { flex: 1; margin: 0 10rpx; } .start-button { background-color: #07c160; } .cleanup-button { background-color: #ee0a24; } .test-results { background-color: #fff; border-radius: 12rpx; padding: 20rpx; margin-bottom: 30rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .results-title { font-size: 28rpx; color: #333; font-weight: 500; display: block; margin-bottom: 15rpx; } .results-list { height: 400rpx; background-color: #f9f9f9; border-radius: 8rpx; padding: 10rpx; } .result-item { padding: 15rpx; margin-bottom: 10rpx; background-color: #fff; border-radius: 6rpx; border-left: 4rpx solid #1989fa; font-size: 24rpx; } .result-item.error { border-left-color: #ee0a24; background-color: #fff1f0; } .result-time { color: #999; font-size: 20rpx; display: block; margin-bottom: 5rpx; } .result-message { color: #333; word-break: break-all; line-height: 1.5; } .empty-result { text-align: center; color: #999; padding: 60rpx 0; font-size: 26rpx; } .test-tips { background-color: #fff; border-radius: 12rpx; padding: 20rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .tips-title { font-size: 28rpx; color: #333; font-weight: 500; display: block; margin-bottom: 15rpx; } .tips-content { background-color: #f0f9ff; border-radius: 8rpx; padding: 20rpx; } .tips-content text { display: block; margin-bottom: 10rpx; font-size: 24rpx; color: #666; line-height: 1.5; } .tips-content text:last-child { margin-bottom: 0; } /* 适配不同屏幕尺寸 */ @media screen and (min-width: 768px) { .test-container { max-width: 900rpx; margin: 0 auto; padding: 30rpx; } .results-list { height: 600rpx; } }