* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
.test-container {
    max-width: 780px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.test-header {
    background: #ffffff;
    color: #1e293b;
    padding: 40px 40px 32px;
    border-bottom: 3px solid #4f46e5;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.header-logo {
    height: 64px;
    width: auto;
    flex-shrink: 0;
}
.header-title-group {
    text-align: right;
    padding-top: 15px;
}
.header-title-group h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1e293b;
    letter-spacing: 0.5px;
}
.header-title-group p {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}
.question-card {
    padding: 32px;
}
.question-text {
    font-size: 19px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 28px;
    line-height: 1.6;
}
.option-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.25s ease;
}
.option-btn:hover {
    border-color: #4f46e5;
    background: #f8f9ff;
    color: #4f46e5;
    transform: translateX(4px);
}
.option-btn:active {
    transform: translateX(4px) scale(0.98);
}
.result-card {
    padding: 32px;
    display: none;
}
.result-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.result-type {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1;
}
.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}
.result-description {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    line-height: 1.8;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 15px;
}
.dimension-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
}
.dimension-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
.dimension-label {
    width: 80px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
}
.dimension-label.left {
    text-align: right;
    padding-right: 10px;
}
.dimension-label.right {
    text-align: left;
    padding-left: 10px;
}
.dimension-track {
    flex: 1;
    height: 44px;
    background: #b0b0b0;
    border-radius: 22px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}
.dimension-color-bg {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 22px;
    transition: all 0.6s ease;
}
.dimension-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 59px;
    height: 59px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    border: 3px solid;
    background: white;
}
.dimension-center-number {
    font-size: 20px;
    font-weight: 800;
}
.dimension-dot {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 5;
}
.dimension-value {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 20px;
    color: white;
    z-index: 5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: 30px;
    text-align: center;
}
.major-suggestions {
    background: #f0f9ff;
    padding: 20px 16px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid #bae6fd;
}
.major-suggestions h4 {
    color: #0369a1;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}
#majorTags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
}
.major-tag {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 8px 18px;
    border-radius: 8px;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}
.major-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.progress-section {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.progress-steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e2e8f0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.step-dot.active {
    background: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
    width: 16px;
    height: 16px;
}
.step-dot.completed {
    background: #4f46e5;
}
.step-line {
    width: 48px;
    height: 3px;
    background: #e2e8f0;
    flex-shrink: 0;
    border-radius: 2px;
    transition: background 0.3s ease;
}
.step-line.completed {
    background: #4f46e5;
}
.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}
.btn-restart {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}
.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(79, 70, 229, 0.4);
}
.btn-restart:active {
    transform: translateY(0);
}
@media (max-width: 640px) {
    body {
        padding: 12px;
    }
    .test-header {
        padding: 24px 20px;
    }
    .header-title-group h1 {
        font-size: 20px;
    }
    .question-card,
    .result-card {
        padding: 24px 20px;
    }
    .result-type {
        font-size: 42px;
    }
    .dimension-label {
        width: 75px;
        font-size: 13px;
    }
}
