/**
 * WP Quiz Pro 自定义样式
 */

/* 页面进入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quiz-question-result-area-content {
    width: 100%;
}

/* 为主要元素添加进入动画 */
.wq_singleQuestionCtr {
    animation: fadeInUp 0.6s ease-out;
}

.quiz-question-media {
    animation: fadeInScale 0.8s ease-out;
}

.quiz-question-media-title-bg {
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.quiz-answers-grid .wq_singleAnswerCtr {
    animation: slideInLeft 0.5s ease-out both;
}

.quiz-answers-grid .wq_singleAnswerCtr:nth-child(1) {
    animation-delay: 0.1s;
}

.quiz-answers-grid .wq_singleAnswerCtr:nth-child(2) {
    animation-delay: 0.2s;
}

.quiz-answers-grid .wq_singleAnswerCtr:nth-child(3) {
    animation-delay: 0.3s;
}

.quiz-answers-grid .wq_singleAnswerCtr:nth-child(4) {
    animation-delay: 0.4s;
}

.quiz-question-result-area {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* 为偏好减少动画的用户禁用动画 */
@media (prefers-reduced-motion: reduce) {
    .wq_singleQuestionCtr,
    .quiz-question-media,
    .quiz-question-media-title-bg,
    .quiz-answers-grid .wq_singleAnswerCtr,
    .quiz-question-result-area,
    .quiz-custom-progress-container,
    .quiz-custom-progress-question,
    .quiz-custom-progress-question-number,
    .quiz-custom-progress-question-total,
    .quiz-custom-progress-bar,
    .quiz-custom-progress-value,
    .quiz-custom-progress-percent {
        animation: none;
    }

    .wq-quiz.wq-skin-flat .wq_singleAnswerCtr,
    .quiz-question-result-button,
    .quiz-custom-progress-value {
        transition: none;
    }
}

/* 题目图片和标题卡片布局 - 使用负边距技术而非绝对定位 */
.quiz-question-media-title {
    position: relative;
    margin-bottom: 40px;
}

.quiz-question-media {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quiz-question-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.quiz-question-media-title-bg {
    position: relative;
    background: #B886F8;
    padding: 60px 20px;
    border-radius: 20px;
    margin-top: -60px; /* 关键：创建30px的重叠效果 */
    z-index: 1; /* 确保显示在图片上方 */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quiz-question-title h4 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(186,134,248,0.10);
    padding: 31px 40px 31px 20px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    margin: 0 0 0 0;
    transform: translateY(0);
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186,134,248,0.15);
}

.wq-quiz-trivia .row.answers-image-row {
    display: flex;
}

.wq-quiz-trivia .row.answers-image-row .col-md-wq-6:nth-child(2) {
    margin-left: auto;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage {
    height: 100%;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage {
    flex-direction: column;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage .wq_answerTxtCtr {
    width: 100%;
    flex: 1;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage .wq_answerTxtCtr:before,
.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage .wq_answerTxtCtr:after {
    content: none;
}

.quiz-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    margin: 32px 0;
}

.quiz-answer-card:hover,
.quiz-answer-card.selected {
    box-shadow: 0 4px 24px rgba(186,134,248,0.18);
    border: 2px solid #B886F8;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr:hover,.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.chosen,.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_answerSelected {
	background:none;
	color:#444;
	border:3px solid #B886F8;
	cursor:pointer
}

.wq-quiz.wq-skin-flat .no-correct-answer .wq_singleAnswerCtr.chosen {
    border: 3px solid #FBE83C;
}

.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_correctAnswer {
	background: none;
	border-color:#0CED9B;
	color:#000;
	opacity:1
}
.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_incorrectAnswer {
	background: none;
	border-color:#FF5E5E;
	color:#000;
	opacity:1
}

.quiz-answer-letter {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-right: 24px;
    min-width: 36px;
    text-align: center;
    font-family: inherit;
    letter-spacing: 2px;
}

.quiz-answer-letter.correct {
    color: #0CED9B;
}

.quiz-answer-letter.error {
    color: #FF5E5E;
}

.quiz-answer-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    text-align: left;
    line-height: 1.4;
    word-break: break-word;
}


.quiz-question-result-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #B886F8;
    border-radius: 20px;
    color: #fff;
    background-image: url('../images/bg.png');
    background-size: cover;
}

.quiz-question-result-status {
    width: 100%;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    padding: 16px 0;
    border-radius: 20px 20px 0 0;
}

.quiz-question-result-status.correct {
    background-color: #82FF8F;
}

.quiz-question-result-status.error {
    background-color: #FF8282;
}

.quiz-question-result-button-area-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-question-result-button {
    padding: 21px 160px;
    background-color: #fff;
    border-radius: 10px;
    font-size: 30px;
    font-weight: 600;
    color: #B886F8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    min-width: 320px;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.quiz-question-result-button:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    background-color: #f8f8f8;
}

.disabled {
    background-color: rgba(229,229,229);
    color: #fff;
    cursor: not-allowed;
}

.quiz-question-result-button-area-text {
    width: 100%;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-top: 20px;
    text-align: center;
}

/* .quiz-question-result-question-mark {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-question-result-question-mark img {
    width: 140px;
    margin-top: 60px;
} */

/* 添加评分区域样式 */
.quiz-question-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px 60px;
    border-radius: 10px;
    margin-top: 20px;
    width: 100%;
}

.quiz-question-rate-text {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}

.quiz-question-rate-buttons {
    display: flex;
    gap: 30px;
}

.quiz-question-rate-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.quiz-question-rate-button:hover {
    transform: scale(1.2);
}

.quiz-question-rate-button.like:hover {
    color: #82FF8F;
}

.quiz-question-rate-button.dislike:hover {
    color: #FF8282;
}

.quiz-question-result-answer-area {
    padding: 40px 60px 0;
}

.quiz-question-result-answer-tips {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

/* 答案统计区域样式 */
.quiz-question-result-stats {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.quiz-stats-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.quiz-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-stats-percent {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.quiz-stats-bar {
    height: 14px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.quiz-stats-progress {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.quiz-stats-item.correct .quiz-stats-progress {
    background-color: #22E584;
}

.quiz-stats-item.correct .quiz-stats-check {
    color: #22E584;
    /* font-size: 20px; */
    margin-left: 10px;
}

.quiz-stats-item.error .quiz-stats-progress {
    background-color: #FF5E5E;
}

.quiz-stats-item.no-correct .quiz-stats-progress {
    background-color: #FBE83C;
}

.quiz-stats-item.error .quiz-stats-check {
    color: #FF5E5E;
    /* font-size: 20px; */
    margin-left: 10px;
}

.quiz-stats-label {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-align: right;
}

.continue-button-area {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wq-results {
    display: block !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 移动端动画优化 */
    .wq_singleQuestionCtr {
        animation: fadeInUp 0.5s ease-out;
    }

    .quiz-question-media {
        animation: fadeInScale 0.6s ease-out;
    }

    .quiz-question-media-title-bg {
        animation: fadeInUp 0.5s ease-out 0.1s both;
        border-radius: 10px;
    }

    .quiz-answers-grid .wq_singleAnswerCtr {
        animation: fadeInUp 0.4s ease-out both;
    }

    .quiz-answers-grid .wq_singleAnswerCtr:nth-child(1) {
        animation-delay: 0.1s;
    }

    .quiz-answers-grid .wq_singleAnswerCtr:nth-child(2) {
        animation-delay: 0.15s;
    }

    .quiz-answers-grid .wq_singleAnswerCtr:nth-child(3) {
        animation-delay: 0.2s;
    }

    .quiz-answers-grid .wq_singleAnswerCtr:nth-child(4) {
        animation-delay: 0.25s;
    }

    .quiz-question-result-area {
        animation: fadeInUp 0.5s ease-out 0.2s both;
    }

    .quiz-question-media-title {
        margin-bottom: 10px;
    }

    .quiz-answer-letter {
        font-size: 1.5rem;
    }

    .quiz-answer-text {
        font-size: 1.1rem;
    }

    /* 题目图片和标题 */
    .quiz-question-media-title-bg.quiz-question-media-title-bg-image {
        padding: 10px 10px;
        margin-top: -30px;
    }

    .quiz-question-title h4 {
        font-size: 1.3rem;
    }

    /* 答案网格从两列变为单列 */
    .quiz-answers-grid {
        grid-template-columns: 1fr;
        gap: 12px; /* 更紧凑的垂直间距 */
        margin: 10px 0; /* 减小顶部和底部边距 */
    }

    /* 答案卡片 */
    .wq-quiz.wq-skin-flat .wq_singleAnswerCtr {
        padding: 10px 10px;
    }

    .quiz-question-result-area {
        gap: 5px;
    }

    /* 结果区域 */
    .quiz-question-result-area-content, .continue-button-area {
        padding: 15px;
        gap: 15px; /* 减小各部分之间的间距 */
    }

    /* Continue按钮 */
    .quiz-question-result-button {
        padding: 15px 0;
        /* width: 100%; */
        font-size: 20px;
        gap: 10px; /* 减小按钮内文字和图标间距 */
    }

    .quiz-question-result-button-area-text {
        margin-top: 10px; /* 减小文字与按钮之间的距离 */
    }

    .quiz-question-result-question-mark img {
        width: 100px; /* 减小问号图片尺寸 */
        margin-top: 30px; /* 减小顶部边距 */
    }

    /* 问答统计区 */
    .quiz-question-result-answer-area {
        padding: 20px 15px 0;
    }

    .quiz-question-result-stats {
        margin-top: 20px; /* 减小顶部边距 */
        gap: 12px; /* 减小统计项间距 */
    }

    .quiz-stats-item {
        gap: 5px;
    }

    .quiz-stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px; /* 减小标题和百分比间距 */
    }

    .quiz-stats-label {
        text-align: left;
        width: 100%;
    }

    /* 评分区域 */
    .quiz-question-rate {
        padding: 20px 15px 30px; /* 减小底部内边距 */
        flex-direction: column;
        gap: 10px; /* 减小间距 */
        align-items: center;
    }

    .quiz-question-rate-text {
        margin-bottom: 5px;
    }

    .quiz-question-rate-buttons {
        gap: 20px; /* 减小按钮间距 */
    }

    .quiz-result-area-content-try-again {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .quiz-result-area-content-try-again-button {
        font-size: 22px;
        padding: 15px 0;
        width: 100%;
        max-width: 300px;
        display: block;
    }

    .you-answered-try-again-button {
        width: 100%;
        max-width: 300px;
        font-size: 22px;
        padding: 15px 0;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .quiz-question-media-title-bg {
        padding: 40px 20px;
    }

    .quiz-question-result-button {
        padding: 18px 80px;
    }

    .quiz-question-result-answer-area {
        padding: 30px 30px 0;
    }
}

/* 进度条动画关键帧 */
@keyframes progressSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(184, 134, 248, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(184, 134, 248, 0.6);
    }
}

@keyframes numberCount {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 自定义进度条样式 */
.quiz-custom-progress-container {
    background-color: #000;
    padding: 16px 20px;
    border-radius: 0 0 16px 16px;
    margin-bottom: 30px;
    animation: progressSlideIn 0.6s ease-out;
}

.quiz-custom-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.quiz-custom-progress-question {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    animation: progressSlideIn 0.8s ease-out 0.2s both;
}

.quiz-custom-progress-question-number,
.quiz-custom-progress-question-total {
    animation: numberCount 0.5s ease-out 0.4s both;
}

.quiz-custom-progress-bar {
    flex: 1;
    height: 20px;
    background-color: #505050;
    border-radius: 8px;
    overflow: visible;
    position: relative;
    margin-right: -20px;
    animation: progressSlideIn 0.8s ease-out 0.3s both;
}

/* 玩偶人样式 */
.quiz-progress-character {
    position: absolute;
    top: -18px;
    width: 50px;
    height: 50px;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    left: max(calc(var(--progress-percent, 0) - 25px), -10px);
    /* 确保初始位置正确 */
}


/* 确保玩偶人始终从正确位置开始 */
.quiz-progress-character:not([style*="--progress-percent"]) {
    left: -25px;
}

/* 进度条右侧公主GIF样式 */
.quiz-progress-princess {
    position: relative;
    /* top: 50%; */
    /* transform: translateY(-50%); */
    width: 40px;
    height: 40px;
    /* z-index: 999; */
    pointer-events: none;
}

.quiz-progress-princess-right {
    /* right: -5px; */
}

.princess-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.progress-character-gif {
    width: 100%;
    height: 100%;
}

/* 玩偶人阴影效果 */
.quiz-progress-character::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 6px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
    border-radius: 50%;
    /* 移除阴影跳跃动画 */
}

@keyframes shadowBounce {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.3;
    }
}

/* 玩偶人动画 */
@keyframes characterAppear {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    50% {
        transform: translateY(5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes characterBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 玩偶人动画效果 - 纯CSS */
.quiz-progress-character {
    /* 移除跳跃动画，只保留位置移动 */
}

/* 确保玩偶人在所有状态下都可见 */
.quiz-progress-character,
.quiz-progress-character:hover {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 确保图片正确显示 */
.progress-character-gif {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.quiz-custom-progress-value {
    height: 100%;
    background-color: #B886F8;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* animation: progressFill 1.2s ease-out 0.5s both, progressGlow 2s ease-in-out 1.5s infinite; */
}

.quiz-custom-progress-percent {
    position: absolute;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    right: 10px;
    /* top: 50%; */
    transform: translateY(-50%);
    animation: numberCount 0.6s ease-out 1s both;
}

/* 进度条响应式调整 */
@media (max-width: 768px) {

    .quiz-question-result-area-content {
        padding: 10px 20px;
    }

    .quiz-custom-progress-container {
        padding: 15px;
        background-color: #000;
        border-radius: 0 0 16px 16px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
        animation: progressSlideIn 0.5s ease-out;
    }

    .quiz-custom-progress-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        position: relative;
    }

    .quiz-custom-progress-question {
        font-size: 18px;
        margin-bottom: 10px;
        color: #fff;
        font-weight: 600;
        display: block;
        width: 100%;
        text-align: center;
        animation: progressSlideIn 0.6s ease-out 0.1s both;
    }

    .quiz-custom-progress-bar {
        flex: 1;
        height: 20px;
        background-color: #505050;
        border-radius: 8px;
        overflow: visible;
        position: relative;
        margin: 0 5px;
        animation: progressSlideIn 0.6s ease-out 0.2s both;
    }

    /* 移动端玩偶人适配 */
    .quiz-progress-character {
        top: -12px;
        width: 40px;
        height: 40px;
        z-index: 1000;
        left: max(calc(var(--progress-percent, 0) - 20px), -10px);
        transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 移动端初始位置 */
    .quiz-progress-character:not([style*="--progress-percent"]) {
        left: -20px;
    }

    .quiz-progress-character::after {
        width: 25px;
        height: 5px;
        bottom: -1px;
        /* 移除阴影跳跃动画 */
    }

    .quiz-custom-progress-value {
        height: 100%;
        background-color: #B886F8;
        border-radius: 8px;
        position: relative;
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        min-width: 30px;
        display: block;
        /* animation: progressFill 1s ease-out 0.4s both; */
    }

    .quiz-custom-progress-percent {
        position: absolute;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        right: 5px;
        /* top: 50%; */
        transform: translateY(-50%);
        display: inline-block;
    }

    /* 移动端公主GIF适配 */
    .quiz-progress-princess {
        width: 30px;
        height: 30px;
        position: relative;
        flex-shrink: 0;
    }

    .quiz-progress-princess-right {
        /* 移除绝对定位，让它正常参与flex布局 */
    }

    .princess-gif {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}


/* 结果页 */
.wq-results {
	font-size:18px;
	width:100%;
	margin:0;
	padding:0;
	border:none;
	background:none;
}

.wq-quiz.wq-skin-flat .wq-results {
	background:none;
	border-color:none;
	border-radius:0;
}

.quiz-result-area-content {
    text-align: center;
    padding: 30px 60px;
    border-radius: 20px;
    background-color: #B886F8;
    color: white;
}

.quiz-result-area-no-correct-text {
    padding: 30px 60px;
    border-radius: 20px 20px 0 0;
    height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;

}

.quiz-result-area-no-correct-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.quiz-result-area-content.passed {
    background-color: #77DD77; /* 通过时的绿色背景 */
}

.quiz-result-area-content.failed {
    background-color: #FF6961; /* 默认失败红色背景 */
}

.quiz-result-area-content-time {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 30px;
}

.quiz-result-area-content-emoji {
    font-size: 120px;
    margin-bottom: 30px;
    line-height: 1;
}

.sad-emoji, .happy-emoji {
    display: inline-block;
    background-color: #FFDE59;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    line-height: 150px;
}

.quiz-result-area-content-result-title {
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 15px;
}

.quiz-result-area-content-result-desc {
    font-size: 18px;
    margin-bottom: 40px;
}

.quiz-result-area-content-try-again {
    margin-bottom: 40px;
}

.quiz-result-area-content-try-again-button {
    background-color: #333;
    color: white;
    font-size: 30px;
    font-weight: 600;
    padding: 16px 83px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quiz-result-area-content-try-again-button:hover {
    background-color: #555;
}

.quiz-result-area-content-try-again.no-correct-try-again {
    margin-bottom: 0;
    margin-top: auto;
    z-index: 1;
}
.quiz-result-area-content-try-again.no-correct-try-again a {
    display: block;
    width: 30%;
    margin: 0 auto;
    padding: 16px;
    font-size: 20px;
    margin-top: 30px;
}

.quiz-result-area-no-correct-text-title {
    text-align: left;
    line-height: 1.5;
    /* text-shadow: 0 0 5px rgba(0, 0, 0, 0.8); */
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1;
}

.quiz-result-area-content-share {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

.quiz-result-area-content-share.no-correct-share {
    background-color: #B886F8;
    border-radius: 0 0 20px 20px;
    padding: 30px 0;
}

.quiz-result-area-content-share-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: white;
    color: #333;
    padding: 11px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    flex: none;
    height: 52px;
    min-width: 160px;
    white-space: nowrap;
}

.quiz-result-area-content-share-item:hover {
    transform: translateY(-3px);
    cursor: pointer;
}

.quiz-result-area-content-share-item.facebook {
    color: #3b5998;
}

.quiz-result-area-content-share-item.twitter {
    color: #1da1f2;
}

.quiz-result-area-content-share-item.email {
    color: #333;
}

.quiz-result-area-content-share-icon {
    font-size: 24px;
}

.quiz-result-area-content-share-text {
    font-size: 20px;
    font-weight: 600;
}

.quiz-result-area-content-result-emoji {
    width: 100px;
    height: 100px;
}

.quiz-result-area-content-result-emoji img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100px;
}

.quiz-result-area-content-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quiz-result-area-content {
        padding: 30px 20px;
    }

    .quiz-result-area-content-time {
        font-size: 18px;
    }

    .quiz-result-area-content-emoji {
        font-size: 80px;
    }

    .sad-emoji, .happy-emoji {
        width: 100px;
        height: 100px;
        line-height: 100px;
    }

    .quiz-result-area-content-result {
        flex-direction: column;
        gap: 20px;
    }

    .quiz-result-area-content-result-emoji {
        width: 80px;
        height: 80px;
    }

    .quiz-result-area-content-result-emoji:last-child {
        display: none;
    }

    .quiz-result-area-content-result-text {
        text-align: center;
        width: 100%;
    }

    .quiz-result-area-content-result-title {
        font-size: 32px;
    }

    .quiz-result-area-content-result-desc {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .quiz-result-area-content-try-again-button {
        font-size: 20px;
        padding: 12px 40px;
    }

    .quiz-result-area-content-share {
        flex-direction: row;
        gap: 45px;
        justify-content: center;
    }

    .quiz-result-area-content-share-item {
        width: auto;
        min-width: 50px;
        height: 50px;
        padding: 13px;
        /* border-radius: 50%; */
        flex: none;
    }

    .quiz-result-area-content-share-icon {
        font-size: 20px;
    }

    .quiz-result-area-content-share-text {
        display: none;
    }

    .quiz-result-area-content-share-item.facebook {
        background-color: #3b5998;
        color: white;
    }

    .quiz-result-area-content-share-item.twitter {
        background-color: #1da1f2;
        color: white;
    }


    .quiz-result-area-content-result-emoji img {
        max-width: 80px;
    }

    .quiz-result-area-content-try-again.no-correct-try-again a {
        width: 40%;
    }
}

@media (max-width: 480px) {
    .you-answered-title {
        font-size: 26px;
    }

    .you-answered-question-container {
        padding: 15px;
        gap: 15px;
    }

    .you-answered-question-number {
        font-size: 20px;
    }

    .you-answered-question-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .you-answered-question-image {
        max-height: 150px;
    }

    .you-answered-options {
        padding: 15px;
    }

    .you-answered-option-percent,
    .you-answered-option-text {
        font-size: 14px;
    }

    /* 结果区域超小屏幕适配 */
    .quiz-result-area-content,.quiz-result-area-no-correct-text {
        padding: 20px 15px;
        height: auto;
    }

    .quiz-result-area-content-time {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .quiz-result-area-content-result-emoji {
        width: 70px;
        height: 70px;
    }

    .quiz-result-area-content-result-title {
        font-size: 28px;
    }

    .quiz-result-area-content-result-desc {
        font-size: 14px;
    }

    .quiz-result-area-content-try-again-button {
        font-size: 18px;
        padding: 10px 30px;
    }

    .you-answered-try-again-button {
        width: 100%;
        max-width: none;
        font-size: 20px;
        padding: 14px 0;
    }

    .quiz-result-area-content-try-again.no-correct-try-again a {
        width: 60%;
    }

    .quiz-result-area-no-correct-text-title {
        line-height: 1.3;
    }

    /* 超小屏幕玩偶人适配 */
    .quiz-progress-character {
        top: -8px;
        width: 35px;
        height: 35px;
        z-index: 1000;
        left: max(calc(var(--progress-percent, 0) - 17px), -5px);
        transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 超小屏幕初始位置 */
    .quiz-progress-character:not([style*="--progress-percent"]) {
        left: -17px;
    }

    /* 超小屏幕公主GIF适配 */
    .quiz-progress-princess {
        width: 32px;
        height: 32px;
    }

    .quiz-progress-princess-right {
        right: 5px;
    }

    .quiz-progress-character::after {
        width: 20px;
        height: 4px;
        bottom: -1px;
        /* 移除阴影跳跃动画 */
    }
}


/* Next Quiz 样式 */
.quiz-result-area-content-next-quiz {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4A2A5D;
    padding: 30px 60px;
    border-radius: 12px;
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quiz-result-area-content-next-quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.quiz-result-area-content-next-quiz-info,
.quiz-result-area-content-next-quiz-button {
    position: relative;
    z-index: 2;
}

.quiz-result-area-content-next-quiz-info {
    flex: 1;
    padding-right: 40px;
}

.quiz-result-area-content-next-quiz-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.quiz-result-area-content-next-quiz-button {
    background-color: #B886F8;
    color: white;
    font-size: 30px;
    font-weight: 600;
    padding: 21px 29px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.quiz-result-area-content-next-quiz-button:hover {
    background-color: #9A6FD8;
}

.quiz-result-area-content-next-quiz-arrow {
    margin-left: 10px;
    display: flex;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quiz-result-area-content-next-quiz {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        margin-top: 20px;
    }

    .quiz-result-area-content-next-quiz-info {
        padding-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .quiz-result-area-content-next-quiz-title {
        font-size: 20px;
    }

    .quiz-result-area-content-next-quiz-button {
        width: 100%;
        justify-content: center;
        font-size: 18px;
        padding: 12px 20px;
    }
}

/* Your Answers 样式 */
.you-answered {
    margin-top: 60px;
}

.you-answered-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.you-answered-list {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.you-answered-question-container {
   padding: 30px 60px;
   display: flex;
   gap: 30px;
   justify-content: space-between;
}

.you-answered-question-number {
    font-size: 28px;
    font-weight: 700;
    color: #B886F8;
    margin-bottom: 15px;
}

.you-answered-question-content {
    display: flex;
    flex-direction: column;
}

.you-answered-question-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.you-answered-question-image {
    flex-shrink: 0;
    width: 350px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.you-answered-question-image img {
    width: 100%;
    height: 100%;
    object-fit: unset;
}

.you-answered-options {
    background-color: #B886F8;
    padding: 30px 60px;
    background-image: url('../images/bg.png');
    background-size: cover;
}

.you-answered-option {
    margin-bottom: 25px;
}

.you-answered-option:last-child {
    margin-bottom: 0;
}

.you-answered-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.you-answered-option-percent {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.you-answered-option.correct .you-answered-option-percent {
    color: #22E584;
}

.you-answered-option.incorrect .fa-times {
    color: #FF5E5E;
}

.you-answered-option.incorrect .you-answered-option-progress {
    background-color: #FF5E5E;
}

.you-answered-option.correct .fa-check, .you-answered-option.incorrect .fa-times {
    margin-left: 5px;
}

.you-answered-option-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: right;
}

.you-answered-option-progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.you-answered-option-progress {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.you-answered-option.correct .you-answered-option-progress {
    background-color: #22E584;
}

.you-answered-try-again {
    text-align: center;
    margin-top: 30px;
}

.you-answered-try-again-button {
    background-color: #fff;
    color: #B886F8;
    font-size: 28px;
    font-weight: 600;
    padding: 21px 90px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .you-answered-question-container {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .you-answered-question-content {
        order: 1;
    }

    .you-answered-question-image {
        order: 0;
        width: 100%;
        height: auto;
        max-height: 180px;
    }

    .you-answered-question-number {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .you-answered-question-text {
        font-size: 16px;
    }

    .you-answered-options {
        padding: 20px;
    }

    .you-answered-option {
        margin-bottom: 20px;
    }

    .you-answered-option-header {
        margin-bottom: 8px;
    }

    .you-answered-option-percent {
        font-size: 16px;
    }

    .you-answered-option-text {
        font-size: 16px;
    }

    .you-answered-try-again-button {
        width: 100%;
        max-width: 300px;
        font-size: 22px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .you-answered-title {
        font-size: 26px;
    }

    .you-answered-question-container {
        padding: 15px;
        gap: 15px;
    }

    .you-answered-question-number {
        font-size: 20px;
    }

    .you-answered-question-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .you-answered-question-image {
        max-height: 150px;
    }

    .you-answered-options {
        padding: 15px;
    }

    .you-answered-option-percent,
    .you-answered-option-text {
        font-size: 14px;
    }

    /* 结果区域超小屏幕适配 */
    .quiz-result-area-content {
        padding: 20px 15px;
    }

    .quiz-result-area-content-time {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .quiz-result-area-content-result-emoji {
        width: 70px;
        height: 70px;
    }

    .quiz-result-area-content-result-title {
        font-size: 28px;
    }

    .quiz-result-area-content-result-desc {
        font-size: 14px;
    }

    .quiz-result-area-content-try-again {
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .quiz-result-area-content-try-again-button {
        font-size: 20px;
        padding: 14px 0;
        width: 100%;
        max-width: none;
        border-radius: 8px;
    }

    .quiz-result-area-content-result-emoji img {
        max-width: 70px;
    }
}


/* Quiz Complete 样式 */
.quiz-complete-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #F9F5FF;
    text-align: center;
}

.quiz-complete-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
}

.quiz-complete-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quiz-complete-content {
    margin-bottom: 40px;
}

.quiz-complete-title {
    font-size: 48px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.quiz-complete-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

.quiz-complete-button-container {
    width: 100%;
    max-width: 600px;
}

.quiz-complete-button {
    display: block;
    background-color: #B886F8;
    color: #FFF;
    font-size: 28px;
    font-weight: 600;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(184, 134, 248, 0.2);
    width: 100%;
    border: none;
}

.quiz-complete-button:hover {
    background-color: #9A6FD8;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quiz-complete-container {
        padding: 40px 20px;
    }

    .quiz-complete-icon {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }

    .quiz-complete-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .quiz-complete-subtitle {
        font-size: 20px;
    }

    .quiz-complete-button {
        font-size: 22px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .quiz-complete-container {
        padding: 30px 15px;
    }

    .quiz-complete-icon {
        width: 120px;
        height: 120px;
        margin-bottom: 25px;
    }

    .quiz-complete-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .quiz-complete-subtitle {
        font-size: 18px;
    }

    .quiz-complete-button {
        font-size: 20px;
        padding: 12px;
    }
}

.mobile-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    position: relative;
    width: 100%;
}

.mobile-menu-toggle {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    z-index: 2;
    position: relative;
}

.mobile-logo {
    flex: 1;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.mobile-menu-placeholder {
    width: 34px; /* 与菜单图标宽度相同，保持对称 */
    visibility: hidden;
}

/* 遮罩层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.mobile-menu-panel.active {
    left: 0;
}

.mobile-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    background: #fff;
}

.mobile-menu-close {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-content {
    padding: 15px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
}

.mobile-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-category-item {
    border-bottom: 1px solid #eee;
}

.mobile-category-item:last-child {
    border-bottom: none;
}

.mobile-category-item a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.mobile-category-item a:hover {
    color: #007bff;
}

.category-count {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .container-mobile {
        display: none;
    }

    .filter-category-list {
        display: flex;
    }
}

@media (max-width: 767px) {
    .container-pc,.filter-category-list {
        display: none;
    }

    main .quiz-list.index-0 {
        margin-top: 20px;
    }

    .single-quiz-container {
        margin-top: 20px !important;
    }

    .single-quiz-info {
        margin-top: 0 !important;
    }

    .recommend-list {
        margin-top: 0 !important;
    }

    .play-now-button.play-now-button-quiz {
        margin-bottom: 0 !important;
    }

    .recommend-list-title {
        margin-bottom: 20px !important;
        margin-top: 20px !important;
    }

    .quiz-list-container {
        margin-top: 20px !important;
    }

    .play-now-button .play-now-button-inner {
        font-size: 1.8rem !important;
        line-height: 23px !important;
        padding: 14px 0 !important;
    }

    .mobile-logo {
        position: relative;
        left: 0;
        transform: translateX(0);
    }

    .you-answered {
        margin-top: 20px !important;
    }

    .you-answered-title {
        margin-bottom: 20px !important;
    }
}

/* 移动端搜索框样式 */
.mobile-search-container {
    border-top: 1px solid #eee;
}

.mobile-search-form {
    width: 100%;
}

.mobile-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 5px 15px;
}

.mobile-search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 16px;
    color: #333;
    width: 100%;
    outline: none;
}

.mobile-search-field::placeholder {
    color: #999;
}

.mobile-search-submit {
    background: none;
    border: none;
    padding: 8px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.mobile-search-submit:hover {
    color: #007bff;
}

.mobile-search-submit i {
    font-size: 18px;
}

/* 调整分类列表的底部间距 */
.mobile-categories {
    margin-bottom: 10px;
}

/* 确保搜索框在滚动时保持可见 */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
}

.mobile-search-container {
    position: relative;
    bottom: 0;
    background: #fff;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 图片答案样式 */
.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
    border: 3px solid transparent;
}

.wq_singleAnswerCtr.wq_hasImage .wq_answerTxtCtr {
    padding-left: unset;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(186, 134, 248, 0.2);
    border-color: #B886F8;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage.chosen,
.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage.wq_answerSelected {
    border-color: #B886F8;
    box-shadow: 0 6px 20px rgba(186, 134, 248, 0.25);
}

.wq_answerImgCtr {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.wq_answerImgCtr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:hover .wq_answerImgCtr img {
    transform: scale(1.05);
}

.wq_answerTxtCtr {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
    background: #fff;
    border-radius: 0 0 12px 12px;
    margin: 0;
    transition: color 0.3s ease;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:hover .wq_answerTxtCtr {
    color: #B886F8;
}

/* 图片答案网格布局 */
.quiz-answers-grid .wq_singleAnswerCtr.wq_hasImage {
    margin-bottom: 0;
}

/* 正确答案样式 */
.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_hasImage.wq_correctAnswer {
    border-color: #0CED9B;
    box-shadow: 0 6px 20px rgba(12, 237, 155, 0.2);
}

.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_hasImage.wq_correctAnswer .wq_answerTxtCtr {
    color: #0CED9B;
}

/* 错误答案样式 */
.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_hasImage.wq_incorrectAnswer {
    border-color: #FF5E5E;
    box-shadow: 0 6px 20px rgba(255, 94, 94, 0.2);
}

.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_hasImage.wq_incorrectAnswer .wq_answerTxtCtr {
    color: #FF5E5E;
}

/* 移动端图片答案适配 */
@media (max-width: 768px) {
    .wq_answerImgCtr {
        height: 150px;
    }

    .wq_answerTxtCtr {
        padding: 15px;
        font-size: 16px;
    }

    .wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage {
        border-radius: 10px;
    }

    .wq_answerImgCtr {
        border-radius: 8px 8px 0 0;
    }

    .wq_answerTxtCtr {
        border-radius: 0 0 8px 8px;
    }

    .wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:hover {
        transform: translateY(-2px);
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .wq_answerImgCtr {
        height: 120px;
    }

    .wq_answerTxtCtr {
        padding: 12px;
        font-size: 14px;
    }
}

/* 图片答案加载动画 */
@keyframes imageAnswerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage {
    animation: imageAnswerFadeIn 0.6s ease-out both;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:nth-child(1) {
    animation-delay: 0.1s;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:nth-child(2) {
    animation-delay: 0.2s;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:nth-child(3) {
    animation-delay: 0.3s;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:nth-child(4) {
    animation-delay: 0.4s;
}

/* 图片答案悬停效果增强 */
.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 134, 248, 0.1) 0%, rgba(184, 134, 248, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage:hover::before {
    opacity: 1;
}

.wq_answerImgCtr,
.wq_answerTxtCtr {
    position: relative;
    z-index: 2;
}

/* 图片答案选中状态增强 */
.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage.chosen::after,
.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage.wq_correctAnswer::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #B886F8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 3;
    animation: fadeInScale 0.3s ease-out;
}

/* 正确答案选中状态 */
.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_hasImage.wq_correctAnswer::after {
    background: #0CED9B;
    content: '✓';
}

/* 错误答案选中状态 */
.wq-quiz.wq-skin-flat.wq-should-show-correct-answer .wq_singleAnswerCtr.wq_hasImage.wq_incorrectAnswer::after {
    background: #FF5E5E;
    content: '✗';
}

/* 图片答案网格间距优化 */
.quiz-answers-grid .row {
    margin: 0 -15px;
}

.quiz-answers-grid .col-md-wq-6 {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* 移动端图片答案网格优化 */
@media (max-width: 768px) {
    .quiz-answers-grid .col-md-wq-6 {
        margin-bottom: 20px;
    }

    .wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage::after {
        width: 25px;
        height: 25px;
        font-size: 14px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .quiz-answers-grid .col-md-wq-6 {
        margin-bottom: 15px;
    }

    .wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage::after {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: 6px;
        right: 6px;
    }
}

.quiz-custom-progress-question-container {
    text-align: center;
    margin-bottom: 16px;
}

.quiz-restart-button {
    background-color: #B886F8;
    color: white;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 15px;
    border: none;
    font-weight: 600;
    box-shadow: 0 3px 0px RGBA(101, 40, 180, 1);
    position: relative;
    cursor: pointer;
}

.quiz-restart-button i {
    margin-right: 4px;
}

/* 悬浮提示容器 */
.quiz-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #444444;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    width: max-content;
    max-width: 150px;
    text-align: center;
    line-height: 1.3;
}

/* 悬浮提示箭头 */
.quiz-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #444444;
}

/* 按钮悬停效果 */
.quiz-restart-button:hover .quiz-tooltip,
.quiz-audio-button:hover .quiz-tooltip {
    opacity: 1;
    visibility: visible;
}

.quiz-audio-button {
    width: 32px;
    height: 28px;
    background-color: #B886F8;
    color: white;
    border-radius: 15px;
    border: none;
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 3px 0px RGBA(101, 40, 180, 1);
    position: relative;
    cursor: pointer;
}



/* 移动端按钮优化 */
@media (max-width: 768px) {
    .quiz-restart-button {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 35px;
        flex-shrink: 0;
        text-align: center;
    }
    
    .quiz-restart-button i {
        margin-right: 3px;
    }
    
    .quiz-audio-button {
        width: 28px;
        height: 24px;
        background-size: 16px 16px;
        flex-shrink: 0;
    }
    
    /* 移动端悬浮提示优化 */
    .quiz-tooltip {
        max-width: 120px;
        font-size: 11px;
        padding: 4px 8px;
        bottom: 140%;
    }
    
    .quiz-tooltip::after {
        border-width: 4px;
    }
}