* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #2c3e50;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #3498db;
}

.description {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 90%;
}

.btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 测试页面样式 */
.question-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.question {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    background-color: #f1f9ff;
    border-color: #3498db;
}

.option.selected {
    background-color: #e1f0fa;
    border-color: #3498db;
}

.option input {
    margin-right: 1rem;
}

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

.progress-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* 结果页面样式 */
.result-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.personality-type {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.type-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.trait-row {
    display: flex;
    margin-bottom: 1rem;
    align-items: center;
}

.trait-label {
    width: 120px;
    font-weight: bold;
}

.trait-bar-container {
    flex: 1;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.trait-bar {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

.trait-percentage {
    width: 50px;
    text-align: right;
    padding-left: 10px;
}

.trait-e {
    background-color: #FF9800;
}

.trait-i {
    background-color: #2196F3;
}

.trait-s {
    background-color: #4CAF50;
}

.trait-n {
    background-color: #9C27B0;
}

.trait-t {
    background-color: #F44336;
}

.trait-f {
    background-color: #E91E63;
}

.trait-j {
    background-color: #795548;
}

.trait-p {
    background-color: #607D8B;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .question {
        font-size: 1.1rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .question-container, .result-container {
        padding: 1.5rem;
    }
}