﻿:root {
    --primary-color: #7436d8;
    --primary-hover: #6229c5;
    --bg-color: #F9FAFB;
    --text-primary: #1F2937;
    --card-border: #E5E7EB;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.test-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 0.5rem;
    margin: 1rem 0;
    background-color: #E5E7EB;
    border-radius: 1rem;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.text-primary {
    color: var(--primary-color) !important;
}

.btn-option {
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--card-border);
    background-color: white;
    color: var(--text-primary);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-option:hover {
    background-color: #F3F4F6;
    border-color: var(--primary-color);
}

.btn-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.test-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.375rem;
}

.test-stat {
    text-align: center;
}

.test-stat .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.test-stat .label {
    font-size: 0.875rem;
    color: #6B7280;
}

/* 结果页面样式 */
.type-card {
    background: linear-gradient(135deg, #7436d8, #9747FF);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.type-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.personality-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.type-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.type-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
}

.dimension-item {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dimension-name {
    font-weight: 500;
    color: white;
    font-size: 0.9rem;
}

.dimension-score {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.dimension-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.dimension-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dimension-progress.E, .dimension-progress.I { background: linear-gradient(to right, #FF6B6B, #ee5253); }
.dimension-progress.S, .dimension-progress.N { background: linear-gradient(to right, #4ECDC4, #45B7AF); }
.dimension-progress.T, .dimension-progress.F { background: linear-gradient(to right, #FFD93D, #F6C90E); }
.dimension-progress.J, .dimension-progress.P { background: linear-gradient(to right, #95E1D3, #7ABEAF); }

.dimension-label {
    color: white;
    margin-bottom: 5px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dimension-label div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dimension-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.dimension-score {
    font-size: 1rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.dimension-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.dimension-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dimension-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dominant-type {
    font-weight: 600;
    color: white;
}

.type-description {
    opacity: 0.9;
}

.floating-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(-5px, 5px);
    }
    75% {
        transform: translate(5px, 10px);
    }
}

.analysis-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.analysis-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.characteristic-item, .career-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
}

.characteristic-item p, .career-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.result-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.result-actions .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.result-actions .btn-primary {
    background: white;
    color: #7436d8;
    border: none;
}

.result-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.result-actions .btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.result-actions .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bi {
    margin-right: 0.5rem;
}

/* 分享卡片样式 */
#shareCard {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem 0.5rem;
    }
    
    .test-card {
        padding: 1rem;
    }
    
    .test-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-option {
        padding: 0.75rem;
    }

    .type-card {
        padding: 1.5rem;
    }

    .personality-badge {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }

    .type-title {
        font-size: 1.25rem;
    }

    .type-description {
        font-size: 1rem;
    }

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

    .result-actions .btn {
        width: 100%;
    }
} 

.btn:focus,
.btn:active,
.btn:hover {
    outline: none !important;
    box-shadow: none !important;
}

.dimension-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(5px);
}