/* 全局红色主题 */ page { background-color: #fef6f6; font-family: "Microsoft YaHei"; } /* 顶部标题 */ .header { position: relative; height: 250px; } .header image { height: 250px; width: 400px; } .header .title { position: absolute; bottom: 20rpx; left: 0; right: 0; text-align: center; color: white; font-size: 40rpx; font-weight: bold; text-shadow: 2rpx 2rpx 4rpx rgba(0,0,0,0.5); } /* 题目卡片 */ .card { margin: 30rpx; background: white; border-radius: 16rpx; box-shadow: 0 4rpx 12rpx rgba(210, 50, 50, 0.1); overflow: hidden; } .question-box { padding: 30rpx; border-bottom: 2rpx dashed #e74c3c; } .category { display: block; color: #e74c3c; font-size: 28rpx; margin-bottom: 15rpx; } .question-text { font-size: 34rpx; line-height: 1.5; } /* 选项样式 */ .options { padding: 20rpx; } .option { display: flex; align-items: center; padding: 25rpx; margin-bottom: 20rpx; border-radius: 12rpx; background: #f9f2f2; transition: all 0.3s; } .option.selected { background: #e74c3c; } .option.selected .option-key, .option.selected .option-value { color: white; } .option-key { width: 60rpx; font-weight: bold; color: #e74c3c; } .option-value { flex: 1; } /* 底部栏 */ .footer { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20rpx 30rpx; background: white; box-shadow: 0 -2rpx 10rpx rgba(0,0,0,0.05); } .score { display: flex; align-items: center; color: #e74c3c; font-size: 32rpx; } .star { width: 40rpx; height: 40rpx; margin-right: 10rpx; } .submit-btn { background: linear-gradient(to right, #e74c3c, #c0392b); color: white; border-radius: 50rpx; font-size: 32rpx; padding: 0 40rpx; height: 80rpx; line-height: 80rpx; } /* 结果弹窗 */ .result-modal { background: rgba(0,0,0,0.5); } .modal-content { width: 80%; margin: 40vh auto; padding: 40rpx; border-radius: 20rpx; text-align: center; background: white; } .modal-content.correct { border-top: 10rpx solid #2ecc71; } .modal-content.wrong { border-top: 10rpx solid #e74c3c; } .modal-content image { width: 100rpx; height: 100rpx; margin-bottom: 20rpx; } .modal-content .explanation { display: block; margin: 30rpx 0; color: #7f8c8d; font-size: 28rpx; }