* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

#app {
    max-width: 800px;
    margin: 0 auto;
}

.page {
    display: none;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.page.active {
    display: block;
}

.hero-section {
    text-align: center;
    padding: 20px 0;
}

.hero-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tagline {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.strike {
    color: #999;
    text-decoration: line-through;
    position: relative;
}

.strike::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 3px;
    background: #999;
    transform: rotate(-10deg);
}

.arrow {
    color: #667eea;
    font-size: 24px;
    animation: slideRight 1.5s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
}

h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    font-weight: 500;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 16px;
    color: #555;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
}

.btn-large {
    padding: 20px 60px;
    font-size: 20px;
    position: relative;
    padding-right: 80px;
}

.btn-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.btn-primary:hover .btn-arrow {
    transform: translateY(-50%) translateX(5px);
}

.bottom-text {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #764ba2;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #764ba2;
}

h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #555;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.footer-info {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0;
}

.progress-text {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 30px;
}

#card-container {
    position: relative;
    min-height: 400px;
    overflow: visible;
}

.question-card {
    position: relative;
    width: 100%;
    min-height: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.question-card.active {
    opacity: 1;
    transform: translateX(0);
}

.question-card.slide-out {
    transform: translateX(-100%);
    opacity: 0;
}

.question-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    line-height: 2;
    padding: 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.option {
    width: 90%;
    max-width: 600px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-size: 16px;
    text-align: center;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option:active {
    transform: translateY(0);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.result-type {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.type-display {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
}

.type-code {
    color: #ffeb3b;
}

.type-name {
    font-size: 28px;
}

.match-rate {
    font-size: 20px;
    margin: 15px 0;
}

.system-note {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 15px;
}

.result-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-section h3 {
    color: #764ba2;
}

.interpretation {
    line-height: 1.8;
    color: #555;
}

.dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.dimension-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dimension-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.dimension-score {
    font-size: 24px;
    font-weight: bold;
    color: #764ba2;
}

.tips {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.tips p {
    color: #856404;
    line-height: 1.8;
}

.result-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .page {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .type-display {
        font-size: 28px;
    }
    
    .dimensions {
        grid-template-columns: 1fr;
    }
}
