html, body { width: 100%; height: 100%; margin: 0; padding: 0; font-family: 'Alibaba PuHuiTi R'; } .layui-laypage-skip { display: none; } .layout { display: flex; align-items: center; justify-content: start; box-sizing: border-box; } #content { width: 100%; height: 100%; padding: 1%; box-sizing: border-box; background-color: #f0f0f0; justify-content: space-between; } #left { width: 74%; height: 100%; flex-direction: column; justify-content: space-between; } #topic { width: 100%; height: 70%; background-color: #e0e0e0; padding: 2%; box-sizing: border-box; letter-spacing: 1px; } .question-title { font-size: 18px; margin-bottom: 20px; } .options { margin-bottom: 30px; } .option { display: flex; align-items: center; margin: 5px 0; font-size: 16px; cursor: pointer; border-radius: 6px; padding: 8px 12px; transition: background 0.2s; position: relative; } /* .option input[type="radio"] { display: none; } */ .option input[type="radio"] { width: 24px; height: 24px; cursor: pointer; } .option input[type="checkbox"] { width: 24px; height: 24px; cursor: pointer; } .option .circle { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #B0B0B0; margin-right: 12px; display: flex; align-items: center; justify-content: center; background: #eee; font-size: 16px; transition: border-color 0.2s, background 0.2s; color: #fff; } .option .circle.correct { background: #52CA68; border: none; border-radius: 50%; } .option .circle.error { background: #FF4447; border: none; font-size: 24px; border-radius: 50%; line-height: 24px; } .option .square { width: 24px; height: 24px; border: 1px solid #C7C7C7; margin-right: 12px; display: flex; align-items: center; justify-content: center; background: #EEE; font-size: 16px; transition: border-color 0.2s, background 0.2s; color: #fff; } .option .square.correct { background: #52CA68; border: none; border-radius: 50%; } .option .square.error { background: #FF4447; border: none; font-size: 24px; border-radius: 50%; line-height: 24px; } #answer { width: 100%; height: 14%; background-color: #fff; } #topicJump { width: 100%; height: 14%; background-color: #fff; justify-content: space-around; } #lastTopic, #nextTopic { cursor: pointer; color: #707070; font-size: 18px; } #right { width: 25%; height: 100%; background-color: #fff; } #answerSheet { width: 100%; height: 100%; } #answerSheetBox1 { width: 100%; height: 50px; padding: 0 20px; } #titleStyle { width: 10px; height: 24px; border-left: 5px solid #409EFF; color: #409EFF; font-size: 18px; } #answerSheetBox1 span { font-size: 20px; margin-right: 3px; } #answerSheetBox1 span:nth-of-type(3) { color: #409EFF; } #questionTitle { font-size: 18px; padding: 0 20px; } #questionNumber { width: 100%; max-height: 50%; padding: 0 10px; flex-wrap: wrap; align-items: start; } .circle2 { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #B0B0B0; /* 边框 */ box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* 阴影 */ /* 动画效果(可选) */ transition: transform 0.3s ease, border-color 0.3s ease; margin: 10px; cursor: pointer; font-size: 14px; justify-content: center; } .circle2.selected { transform: scale(1.3); border-color: #2196f3; z-index: 1; } .circle2.selected2 { transform: scale(1.3); border-color: #B0B0B0; z-index: 1; } .circle2:hover { transform: scale(1.3); } #answeredSign { width: 100%; height: 50px; margin-top: 10%; justify-content: space-evenly; } #answeredSign>div>div, #answeredSign>div>p { margin: 0 5px; } .circle3 { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #B0B0B0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } .answeredQuestions { border: 1px solid #409EFF; } #operBtn { width: 100%; height: 50px; margin-top: 10%; justify-content: space-evenly; } #tips { width: 100%; height: 50px; margin-top: 10%; text-align: center; } #tips p { font-size: 20px; color: red; padding: 0 20px; } .save-answer-btn { width: 20%; height: 100%; } .answer-box { width: 20%; height: 100%; } .answer { width: 50%; height: 100%; flex-direction: column; justify-content: center; letter-spacing: 1px; } .answer p:nth-child(1) { font-size: 18px; } .answer:nth-child(1) p:nth-child(2) { color: #6FBE62; font-size: 20px; font-weight: bold; } .answer:nth-child(2) p:nth-child(2) { color: red; font-size: 20px; font-weight: bold; } .submit-btn { width: 90%; margin: 0 5%; padding: 10px 0; background: linear-gradient(90deg, #36a3f7 0%, #4fc3f7 100%); color: #fff; font-size: 18px; border: none; border-radius: 6px; cursor: pointer; outline: none; transition: background 0.3s; letter-spacing: 2px; } .submit-btn:hover { background: linear-gradient(90deg, #2196f3 0%, #36a3f7 100%); } .submit-btn.submitted, .submit-btn:disabled { background: #cccccc; color: #fff; cursor: not-allowed; box-shadow: none; } #lastTopic, #nextTopic { width: 120px; margin: 0 5%; padding: 10px 0; background: linear-gradient(90deg, #36a3f7 0%, #4fc3f7 100%); color: #fff; font-size: 18px; border: none; border-radius: 6px; cursor: pointer; outline: none; transition: background 0.3s; letter-spacing: 2px; justify-content: center; } #lastTopic:hover, #nextTopic:hover { background: linear-gradient(90deg, #2196f3 0%, #36a3f7 100%); } /* 题目内容容器动画 */ .question-content { transition: opacity 0.4s, transform 0.4s; opacity: 1; transform: translateX(0); } .question-content.fade-out-left { opacity: 0; transform: translateX(-60px); pointer-events: none; } .question-content.fade-out-right { opacity: 0; transform: translateX(60px); pointer-events: none; } .question-content.fade-in-left { opacity: 1; transform: translateX(0); animation: fadeInLeft 0.4s; } .question-content.fade-in-right { opacity: 1; transform: translateX(0); animation: fadeInRight 0.4s; } @keyframes fadeInLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } } @keyframes fadeInRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }