:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --container-bg: #ffffff;
    --text-color: #212529;
    --light-gray: #f1f3f5;
    --border-color: #dee2e6;
    --success-color: #28a745;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: var(--container-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 750px;
    width: 100%;
    transition: all 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--text-color);
    font-weight: 700;
}
h2 { text-align: center; margin-bottom: 2rem; }
h3 { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.intro {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0.5rem auto 0 auto;
}
.intro strong {
    color: var(--text-color);
    font-weight: 500;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 0%;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}
.step.active {
    color: var(--primary-color);
    font-weight: 700;
}

.quiz-part { display: none; }
.quiz-part.active { display: block; }

.question-block {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--container-bg);
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
}

.options-group label {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.options-group label:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
}
.options-group input[type="radio"]:checked + span {
    font-weight: 700;
    color: var(--primary-color);
}
.options-group input[type="radio"] {
    display: none;
}

select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    background-color: #fff;
}

button {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}
button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,123,255,0.2);
}

#results-container { text-align: center; }
.chart-container {
    max-width: 450px;
    margin: 1.5rem auto;
}
#result-text-container {
    text-align: left;
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}
#result-title {
    margin-top: 0;
    color: var(--primary-color);
}
#special-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
#special-notes p { font-style: italic; color: #555; margin-bottom: 0.5rem; }
#result-label { font-weight: 500; }
#result-label b { color: var(--text-color); }

.result-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.share-instruction {
    color: var(--secondary-color);
    font-size: 0.95em;
}
#copy-results-btn {
    background-color: var(--success-color);
    margin-top: 0.5rem;
}
#copy-results-btn:hover {
    background-color: #218838;
}
.copy-feedback {
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    height: 20px;
    transition: opacity 0.3s ease;
}

.disclaimer {
    margin-top: 2.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
    color: #6c757d;
    text-align: center;
}
.disclaimer strong {
    color: #495057;
}

@media (max-width: 600px) {
    body { padding: 10px; }
    .container { padding: 1.5rem; }
    h1 { font-size: 1.8rem; }
    .intro { font-size: 1rem; }
}
#result-scores {
    font-size: 1em;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: inline-block;
}