123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- /* 全局红色主题 */
- 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;
- }
|