/* ========== 心理测试 · 问卷公共骨架（MBTI / 动物塑共用） ========== */

.test-container {
    margin-top: 0;
}

.test-intro {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1rem;
}

.question-container {
    display: none;
}

.question-container.active {
    display: block;
}

.question {
    font-size: 1.2rem;
    color: var(--gradient-theme-title);
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    font: inherit;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    padding: 18px 24px;
    border: 2px solid #ecf0f1;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 1rem;
    color: var(--color-body);
}

.option:focus {
    outline: none;
}

.option:focus-visible {
    outline: 2px solid var(--color-theme-deep, #c9a000);
    outline-offset: 2px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-text {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 12px 28px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.25;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-container {
    display: none;
    text-align: center;
}

.result-container.show {
    display: block;
}

.result-title {
    font-size: 1.5rem;
    color: var(--gradient-theme-title);
    margin-bottom: 15px;
}

.result-description {
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0;
}

.restart-btn {
    margin-top: 30px;
    padding: 12px 28px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.restart-btn:hover {
    background: #229954;
}

.result-disclaimer {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.5;
}

.dimension-section {
    margin-top: 24px;
    text-align: left;
}

.dimension-heading {
    font-size: 1.1rem;
    color: var(--gradient-theme-title);
    margin: 0 0 14px;
    text-align: center;
}

.dimension-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dim-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dim-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-body);
    gap: 8px;
}

.dim-tie-tag {
    font-size: 0.75rem;
    color: #7f8c8d;
    border: 1px solid #d5dbdb;
    padding: 1px 6px;
}

.dim-track {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    overflow: hidden;
}

.dim-fill {
    height: 100%;
}

.dim-fill-left {
    background: var(--gradient-theme-h, linear-gradient(90deg, #f1c40f, #f39c12));
}

.result-ties {
    margin-top: 14px;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.5rem;
    }

    .question {
        font-size: 1.1rem;
    }
}
