:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --secondary-color: #64748b;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏样式 */
header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
    font-weight: normal;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background: var(--primary-light);
    color: white;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    color: white;
    font-size: 1.5rem;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* 匹配结果样式 */
.match-results {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-top: 2rem;
}

.match-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.type-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    min-width: 150px;
}

.type-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.compatibility-score {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.compatibility-score.excellent { color: var(--success-color); }
.compatibility-score.good { color: var(--primary-color); }
.compatibility-score.moderate { color: var(--secondary-color); }
.compatibility-score.fair { color: var(--warning-color); }

/* 测试页面样式 */
.question-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.option-btn {
    background: var(--background-color);
    border: 1px solid var(--primary-light);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: left;
    transition: all 0.3s ease;
    line-height: 1.8;
}

.option-btn:hover {
    background: var(--primary-light);
    color: white;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    .match-pair {
        flex-direction: column;
        gap: 1rem;
    }
    
    .type-card {
        width: 100%;
    }
}