/**
 * EPQ 前端样式
 */

.epq-container {
    max-width: 800px;
    margin: 0 auto;
}

.epq-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.epq-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
}

.epq-excerpt {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

/* 进度条 */
.epq-progress {
    margin-bottom: 30px;
    padding: 15px;
}

.epq-progress-bar {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.epq-progress-fill {
    height: 100%;
    background: #9FCFC2;
    transition: width 0.3s ease;
}

.epq-progress-text {
    display: block;
    text-align: left;
    font-size: 14px;
    color: #999;
    margin-bottom:6px;
    letter-spacing: 2px;
}
.epq-progress-text .epq-progress-current{
    font-size: 27px;
    font-weight: 400;
}
/* 题目容器 */


.epq-question {
    margin-bottom: 30px;
    padding: 20px;
}

/* 默认隐藏所有题目，除了第一个（通过 data-question-index="0" 选择） */
/* 注意：这个规则在 CSS 文件中，但为了确保立即生效，模板中也会添加内联样式 */
/* 不使用 !important，让 JavaScript 可以覆盖 */
.epq-questions-container .epq-question[data-question-index]:not([data-question-index="0"]) {
    display: none;
}

.epq-question-hidden {
    display: none !important;
}

/* 当题目被 JavaScript 激活时，确保显示 */
.epq-questions-container .epq-question:not(.epq-question-hidden) {
    display: block;
}

.epq-question-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
    display: block;
    text-align: center;
    min-height: 6rem;
}

.epq-question-number {
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    color: #0073aa;
}

.epq-question-text {
    display: inline-block;
}

.epq-question-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
}

/* 选项样式 */
.epq-question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 选择题选项横向分布 */
.epq-question-options:has(.epq-option-radio),
.epq-question-options:has(.epq-option-checkbox) {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

/* 根据选项数量平均分配宽度 */
.epq-question-options:has(.epq-option-radio) .epq-option-radio,
.epq-question-options:has(.epq-option-checkbox) .epq-option-checkbox {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1 / 1;
    min-height: 100%;
}

/* 2个选项时，每个占50% */
.epq-question-options:has(.epq-option-radio:nth-child(2):last-child) .epq-option-radio,
.epq-question-options:has(.epq-option-checkbox:nth-child(2):last-child) .epq-option-checkbox {
    flex: 0 0 calc(50% - 6px);
}

/* 3个选项时，每个占33.333% */
.epq-question-options:has(.epq-option-radio:nth-child(3):last-child) .epq-option-radio,
.epq-question-options:has(.epq-option-checkbox:nth-child(3):last-child) .epq-option-checkbox {
    flex: 0 0 calc(33.333% - 8px);
}

/* 4个选项时，每个占25% */
.epq-question-options:has(.epq-option-radio:nth-child(4):last-child) .epq-option-radio,
.epq-question-options:has(.epq-option-checkbox:nth-child(4):last-child) .epq-option-checkbox {
    flex: 0 0 calc(25% - 9px);
}

/* 5个选项时，每个占20% */
.epq-question-options:has(.epq-option-radio:nth-child(5):last-child) .epq-option-radio,
.epq-question-options:has(.epq-option-checkbox:nth-child(5):last-child) .epq-option-checkbox {
    flex: 0 0 calc(20% - 9.6px);
}

/* 6个及以上选项时，使用flex: 1自动分配 */
.epq-question-options:has(.epq-option-radio:nth-child(6)) .epq-option-radio,
.epq-question-options:has(.epq-option-checkbox:nth-child(6)) .epq-option-checkbox {
    flex: 1;
    min-width: calc(16.666% - 10px);
}

.epq-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg2);
    position: relative;
    text-align: center;
}

.epq-option-text {
    width: 100%;
    text-align: center;
}

.epq-option:hover {
    border-color: var(--c9);
    background: var(--bg2);
}

/* 隐藏radio按钮（但保留功能） */
.epq-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.epq-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* 选中状态样式 */


/* radio选中时，整个label高亮 */
.epq-option input[type="radio"]:checked ~ .epq-option-text,
.epq-option:has(input[type="radio"]:checked) {
    border-color: #4CAF50;
    background: #f0f8f0;
    font-weight: 600;
}

.epq-option:has(input[type="radio"]:checked) .epq-option-text {
    color: #4CAF50;
    font-weight: 600;
}

/* 正确答案样式（仅在调试模式下显示） */
/*.epq-option-correct {
    border-left: 4px solid #4CAF50;
}*/

.epq-option-correct .epq-option-text::after {
    content: ' ✓';
    color: #4CAF50;
    font-weight: bold;
    margin-left: 5px;
}

.epq-option input:checked ~ .epq-option {
    border-color: #4CAF50;
    background: #f0f8f0;
}

/* 李克特量表样式 */
.epq-option-likert {
    flex-direction: row;
    justify-content: space-between;
}

.epq-option-likert input[type="radio"] {
    order: 2;
    margin-right: 0;
    margin-left: 12px;
}

.epq-option-likert .epq-option-text {
    order: 1;
    flex: 1;
}

/* 文本输入 */
.epq-text-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.epq-text-input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* 判断题样式 */
.epq-judge-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.epq-option-judge {
    flex: 1;
    min-width: 150px;
    max-width: 300px;
    text-align: center;
    padding: 20px;
    font-size: 18px;
}

.epq-option-judge.epq-option-yes {
    border-color: #388e3c;
}

.epq-option-judge.epq-option-yes:hover {
    border-color: #388e3c;
    background: #e8f5e9;
}

.epq-option-judge.epq-option-yes input[type="radio"]:checked + .epq-option-text {
    color: #388e3c;
    font-weight: 600;
}

.epq-option-judge.epq-option-no {
    border-color: #d32f2f;
}

.epq-option-judge.epq-option-no:hover {
    border-color: #d32f2f;
    background: #ffebee;
}

.epq-option-judge.epq-option-no input[type="radio"]:checked + .epq-option-text {
    color: #d32f2f;
    font-weight: 600;
}

/* 填空题样式 */
.epq-blank-input-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.epq-blank-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    min-width: 200px;
}

.epq-blank-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.epq-blank-confirm-btn {
    padding: 15px 30px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.epq-blank-confirm-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.epq-blank-confirm-btn:active {
    transform: translateY(0);
}

/* 多选题确认按钮样式 */
.epq-multi-confirm-container {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.epq-multi-confirm-btn {
    padding: 15px 30px;
    background: var(--c9);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    opacity: 0.85;
}

.epq-multi-confirm-btn:hover {
    background: var(--c9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.epq-multi-confirm-btn:active {
    transform: translateY(0);
}

.epq-multi-confirm-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 二选一题型样式 */
.epq-twochooseone-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.epq-option-twochooseone {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.epq-option-twochooseone.epq-option-left {
    border-color: #d32f2f;
}

.epq-option-twochooseone.epq-option-left:hover {
    border-color: #d32f2f;
    background: #ffebee;
}

.epq-option-twochooseone.epq-option-left input[type="radio"]:checked + .epq-option-text {
    color: #d32f2f;
}

.epq-option-twochooseone.epq-option-right {
    border-color: #388e3c;
}

.epq-option-twochooseone.epq-option-right:hover {
    border-color: #388e3c;
    background: #e8f5e9;
}

.epq-option-twochooseone.epq-option-right input[type="radio"]:checked + .epq-option-text {
    color: #388e3c;
}

.epq-option-twochooseone input[type="radio"]:checked ~ .epq-option-text {
    font-weight: 600;
}

/* 表单操作 */


.epq-prev-button,
.epq-next-button,
.epq-submit-button {
    min-width: 120px;
}

.epq-submit-button {
    min-width: 200px;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
}

.epq-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* 结果页面 */
.epq-result-section {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.epq-final-type {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.epq-final-type h3 {
    margin: 0;
    font-size: 1.8em;
}

.epq-final-type strong {
    font-size: 1.2em;
    display: block;
    margin-top: 10px;
}

/* 全局文字 */
.epq-global-text {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.epq-global-text p {
    margin: 0 0 10px 0;
}

.epq-global-text p:last-child {
    margin-bottom: 0;
}

/* 结果内容（结果变体的描述） */
.epq-result-content {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.epq-result-content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.epq-result-content p:last-child {
    margin-bottom: 0;
}

.epq-result-content h1,
.epq-result-content h2,
.epq-result-content h3,
.epq-result-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.epq-result-content h1:first-child,
.epq-result-content h2:first-child,
.epq-result-content h3:first-child,
.epq-result-content h4:first-child {
    margin-top: 0;
}

/* 图表容器 */
.epq-chart-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.epq-result-chart {
    position: relative;
    height: 400px;
    max-width: 100%;
}

/* 维度得分 */
.epq-dimension-scores {
    margin-top: 30px;
}

.epq-dimension-scores h3 {
    margin-bottom: 15px;
    color: #333;
}

.epq-scores-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.epq-scores-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

.epq-dimension-name {
    font-weight: 600;
    color: #333;
}

.epq-dimension-score {
    color: #2F2F36;
    font-weight: 600;
}

/* 测谎检查 */
.epq-lie-check {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.epq-valid {
    color: #28a745;
}

.epq-invalid {
    color: #dc3545;
}

/* 操作按钮 */
.epq-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.epq-button {
    padding: 12px 30px;
    font-size: 1em;
}

/* 访问权限 */
.epq-access-required {
    text-align: center;
    padding: 60px 20px;
}

.epq-access-message {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.epq-access-message h2 {
    margin-bottom: 20px;
    color: #333;
}

.epq-price {
    font-size: 2em;
    color: #4CAF50;
    font-weight: 600;
    margin: 20px 0;
}

.epq-coupon-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.epq-coupon-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.epq-coupon-message {
    margin-top: 15px;
    font-size: 14px;
}

.epq-coupon-message.success {
    color: #28a745;
}

.epq-coupon-message.error {
    color: #dc3545;
}

/* 两步测试提示 */
.epq-twostep-info {
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    margin-bottom: 20px;
}

.epq-twostep-info p {
    margin: 0;
    color: #1976D2;
}

/* 响应式 */
@media (max-width: 768px) {
  
    
    .epq-title {
        font-size: 1.5em;
    }
    
    .epq-question {
        padding: 15px;
    }
    
    .epq-option-likert {
        flex-direction: column;
    }
    
    .epq-option-likert input[type="radio"] {
        order: 1;
        margin-left: 0;
        margin-bottom: 8px;
    }
    
    .epq-option-likert .epq-option-text {
        order: 2;
    }
    
    .epq-coupon-form {
        flex-direction: column;
    }
    
    .epq-actions {
        flex-direction: column;
    }
    
    .epq-scale-points {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .epq-scale-dot {
        width: 20px;
        height: 20px;
    }
}

/* 量表题型（2-9点，点状显示） */
.epq-question-scale {
    margin-bottom: 30px;
}

.epq-scale-container {
    margin-top: 20px;
}

.epq-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.epq-scale-label-left {
    color: #d32f2f;
    font-weight: 500;
}

.epq-scale-label-right {
    color: #388e3c;
    font-weight: 500;
}

.epq-scale-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    position: relative;
}

.epq-scale-point {
    position: relative;
    z-index: 1;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.epq-scale-point input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.epq-scale-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 根据位置设置颜色和大小 - 使用CSS变量和计算 */
.epq-scale-point {
    --position-ratio: 0;
}


:root {
    /* 9 级莫兰蒂·偏明亮情绪色阶（负 → 正） */
    --c1: #D7A6A6;
    --c2: #E0B2A7;
    --c3: #E8C0A8;
    --c4: #F0D0A6;
    --c5: #F1E1A8;
    --c6: #D3E1A7;
    --c7: #B9D8B2;
    --c8: #9FCFC2;
    --c9: #7EC3B6;

    /* 尺寸 */
    --lg: 36px;
    --md: 32px;
    --sm: 30px;
}

/* 通用点样式 */
.epq-scale-dot {
    border-radius: 50%;
    transition: all .25s ease;
}

/* ========== 2 级（1 / 9） ========== */
.epq-scale-points[data-scale-count="2"]
.epq-scale-point:nth-child(1) .epq-scale-dot {
    background: var(--c1); width: var(--lg); height: var(--lg);
}
.epq-scale-points[data-scale-count="2"]
.epq-scale-point:nth-child(2) .epq-scale-dot {
    background: var(--c9); width: var(--lg); height: var(--lg);
}

/* ========== 3 级（1 / 5 / 9） ========== */
.epq-scale-points[data-scale-count="3"]
.epq-scale-point:nth-child(1) .epq-scale-dot {
    background: var(--c1); width: var(--lg); height: var(--lg);
}
.epq-scale-points[data-scale-count="3"]
.epq-scale-point:nth-child(2) .epq-scale-dot {
    background: var(--c5); width: var(--sm); height: var(--sm);
}
.epq-scale-points[data-scale-count="3"]
.epq-scale-point:nth-child(3) .epq-scale-dot {
    background: var(--c9); width: var(--lg); height: var(--lg);
}

/* ========== 4 级（1 / 3 / 6 / 9） ========== */
.epq-scale-points[data-scale-count="4"]
.epq-scale-point:nth-child(1) .epq-scale-dot {
    background: var(--c1); width: var(--lg); height: var(--lg);
}
.epq-scale-points[data-scale-count="4"]
.epq-scale-point:nth-child(2) .epq-scale-dot {
    background: var(--c3); width: var(--md); height: var(--md);
}
.epq-scale-points[data-scale-count="4"]
.epq-scale-point:nth-child(3) .epq-scale-dot {
    background: var(--c6); width: var(--md); height: var(--md);
}
.epq-scale-points[data-scale-count="4"]
.epq-scale-point:nth-child(4) .epq-scale-dot {
    background: var(--c9); width: var(--lg); height: var(--lg);
}

/* ========== 5 级（1 / 3 / 5 / 7 / 9） ========== */
.epq-scale-points[data-scale-count="5"]
.epq-scale-point:nth-child(1) .epq-scale-dot {
    background: var(--c1); width: var(--lg); height: var(--lg);
}
.epq-scale-points[data-scale-count="5"]
.epq-scale-point:nth-child(2) .epq-scale-dot {
    background: var(--c3); width: var(--md); height: var(--md);
}
.epq-scale-points[data-scale-count="5"]
.epq-scale-point:nth-child(3) .epq-scale-dot {
    background: var(--c5); width: var(--sm); height: var(--sm);
}
.epq-scale-points[data-scale-count="5"]
.epq-scale-point:nth-child(4) .epq-scale-dot {
    background: var(--c7); width: var(--md); height: var(--md);
}
.epq-scale-points[data-scale-count="5"]
.epq-scale-point:nth-child(5) .epq-scale-dot {
    background: var(--c9); width: var(--lg); height: var(--lg);
}

/* ========== 6–9 级（直接顺序映射 1→9） ========== */
.epq-scale-points[data-scale-count="6"] .epq-scale-dot,
.epq-scale-points[data-scale-count="7"] .epq-scale-dot,
.epq-scale-points[data-scale-count="8"] .epq-scale-dot,
.epq-scale-points[data-scale-count="9"] .epq-scale-dot {
    width: var(--md);
    height: var(--md);
}

.epq-scale-points[data-scale-count="6"] .epq-scale-point:nth-child(1) .epq-scale-dot,
.epq-scale-points[data-scale-count="7"] .epq-scale-point:nth-child(1) .epq-scale-dot,
.epq-scale-points[data-scale-count="8"] .epq-scale-point:nth-child(1) .epq-scale-dot,
.epq-scale-points[data-scale-count="9"] .epq-scale-point:nth-child(1) .epq-scale-dot { background: var(--c1); }

.epq-scale-point:nth-child(2) .epq-scale-dot { background: var(--c2); }
.epq-scale-point:nth-child(3) .epq-scale-dot { background: var(--c3); }
.epq-scale-point:nth-child(4) .epq-scale-dot { background: var(--c4); }
.epq-scale-point:nth-child(5) .epq-scale-dot { background: var(--c5); }
.epq-scale-point:nth-child(6) .epq-scale-dot { background: var(--c6); }
.epq-scale-point:nth-child(7) .epq-scale-dot { background: var(--c7); }
.epq-scale-point:nth-child(8) .epq-scale-dot { background: var(--c8); }
.epq-scale-point:nth-child(9) .epq-scale-dot { background: var(--c9); }




.epq-scale-point:hover .epq-scale-dot {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.epq-scale-point input[type="radio"]:checked + .epq-scale-dot {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* 确保选中状态时保持原有颜色 */
.epq-scale-point input[type="radio"]:checked + .epq-scale-dot {
    background: inherit !important;
    border: none !important;
}

.epq-scale-score {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1;
    min-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epq-scale-point:hover .epq-scale-score {
    color: #0073aa;
}

.epq-scale-point input[type="radio"]:checked ~ .epq-scale-score {
    color: #0073aa;
    font-weight: 600;
}

/* 频率数列样式 */
.epq-scale-pinlvquery {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.2;
    min-height: 14px;
    display: block;
    text-align: center;
    white-space: nowrap;
}

.epq-scale-point:hover .epq-scale-pinlvquery {
    color: #555;
}

.epq-scale-point input[type="radio"]:checked ~ .epq-scale-pinlvquery {
    color: #0073aa;
    font-weight: 500;
}

/* 量表点数不同时的样式调整 */
.epq-question-scale[data-scale-count="2"] .epq-scale-points,
.epq-question-scale[data-scale-count="3"] .epq-scale-points,
.epq-question-scale[data-scale-count="4"] .epq-scale-points {
    justify-content: space-around;
}

.epq-question-scale[data-scale-count="5"] .epq-scale-points,
.epq-question-scale[data-scale-count="6"] .epq-scale-points,
.epq-question-scale[data-scale-count="7"] .epq-scale-points,
.epq-question-scale[data-scale-count="8"] .epq-scale-points,
.epq-question-scale[data-scale-count="9"] .epq-scale-points {
    justify-content: space-between;
}

/* 调试信息样式 */
.epq-debug-info {
    margin-top: 15px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    border-left: 3px solid #0073aa;
}

.epq-debug-info strong {
    display: block;
    margin-bottom: 5px;
    color: #0073aa;
}

/* 得分面板样式 */
.epq-score-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 600px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #fff;
}

.epq-score-panel.collapsed {
    max-height: 50px;
    overflow: hidden;
}

.epq-score-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
}

.epq-score-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color:#fff !important;
}

.epq-score-panel-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
}

.epq-score-panel-toggle:hover {
    opacity: 0.8;
}

.epq-score-panel-content {
    padding: 15px;
    overflow-y: auto;
    max-height: 550px;
}

.epq-score-panel-section {
    margin-bottom: 20px;
}

.epq-score-panel-section:last-child {
    margin-bottom: 0;
}

.epq-score-panel-section.epq-total-score-section {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    padding: 12px 15px;
    margin-bottom: 10px;
}

.epq-score-panel-section.epq-total-score-section h4 {
    margin: 0 0 8px 0;
    color: #4CAF50;
    font-size: 14px;
}

.epq-total-score-display {
    text-align: center;
}

.epq-total-score-value {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.epq-score-panel-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.epq-dimension-scores-list,
.epq-question-scores-list {
    max-height: 200px;
    overflow-y: auto;
}

/* 滚动条样式 */
.epq-dimension-scores-list::-webkit-scrollbar,
.epq-question-scores-list::-webkit-scrollbar,
.epq-score-panel-content::-webkit-scrollbar {
    width: 6px;
}

.epq-dimension-scores-list::-webkit-scrollbar-track,
.epq-question-scores-list::-webkit-scrollbar-track,
.epq-score-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.epq-dimension-scores-list::-webkit-scrollbar-thumb,
.epq-question-scores-list::-webkit-scrollbar-thumb,
.epq-score-panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.epq-dimension-scores-list::-webkit-scrollbar-thumb:hover,
.epq-question-scores-list::-webkit-scrollbar-thumb:hover,
.epq-score-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.epq-dimension-score-item,
.epq-question-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
}

.epq-dimension-score-item:hover,
.epq-question-score-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.epq-dimension-score-label,
.epq-question-score-label {
    flex: 1;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.epq-dimension-score-value,
.epq-question-score-value {
    font-weight: 600;
    color: #4CAF50;
    margin-left: 10px;
    background: rgba(76, 175, 80, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.epq-no-data {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-align: center;
    padding: 10px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .epq-score-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 10px;
    }
    
    /* 手机端：选择题选项改为1列 */
    .epq-question-options:has(.epq-option-radio),
    .epq-question-options:has(.epq-option-checkbox) {
        flex-direction: column;
    }
    
    .epq-question-options:has(.epq-option-radio) .epq-option-radio,
    .epq-question-options:has(.epq-option-checkbox) .epq-option-checkbox {
        flex: 1 1 100%;
        width: 100%;
        aspect-ratio: 3 / 1;
    }
}
