
body {
    font-family: 'Inter', sans-serif;
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}

.question-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 选项卡片样式 */
.option-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.option-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    background-color: #f8fafc;
}

.option-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    background-color: #e0e7ff;
    border-color: #6366f1;
}

/* 选中状态样式 */
.option-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4) !important;
    border-color: #667eea !important;
    position: relative;
}

.option-item.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 16px;
    background: white;
    color: #667eea;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: checkmarkAppear 0.3s ease-in-out;
}

.option-item.selected h4,
.option-item.selected p {
    color: white !important;
}

.option-item.selected .option-dot {
    background-color: white !important;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 选中状态动画 */
.option-item.selected {
    animation: selectedPulse 0.6s ease-in-out;
}

@keyframes selectedPulse {
    0% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        transform: translateY(-2px) scale(1);
    }
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .option-item {
        transition: all 0.2s ease;
    }
    
    .option-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .option-item:active {
        transform: scale(0.96);
        background-color: #e0e7ff;
        border-color: #6366f1;
        box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
    }
    
    .option-item.selected:active {
        transform: scale(0.98);
    }
}

.option-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.option-button.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
    position: relative;
}

.option-button.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
    z-index: -1;
}

.option-button.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    background: white;
    color: #667eea;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: checkmarkAppear 0.3s ease-in-out;
}

.option-button.selected {
    animation: selectedPulse 0.5s ease-in-out;
}

@keyframes selectedPulse {
    0% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        transform: translateY(-2px) scale(1);
    }
}

.result-card {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.type-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem;
}

.dimension-bar {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 1s ease-in-out;
}

.result-badge {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.result-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 触摸反馈优化 */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    button, a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .score-display {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .result-summary {
        padding: 16px 20px;
    }
    
    .bg-gray-50, .bg-orange-50, .bg-indigo-50 {
        padding: 16px 20px;
    }
}
