:root {
    /* MBTI维度品牌色 */
    --mbti-IE: #2F80ED;    /* E-I（外向/内向）：蓝色 */
    --mbti-SN: #F2C94C;    /* N-S（天马行空/求真务实）：黄色 */
    --mbti-TF: #27AE60;    /* T-F（理性思考/情感细腻）：绿色 */
    --mbti-JP: #9B51E0;    /* J-P（运筹帷幄/随机应变）：紫色 */
    --mbti-AT: #EB5757;    /* A-T（自信果断/情绪易波动）：红色 */
    
    /* 浅色背景 */
    --mbti-IE-light: #EBF3FF;
    --mbti-SN-light: #FFF8E1;
    --mbti-TF-light: #E8F5E8;
    --mbti-JP-light: #F3E5F5;
    --mbti-AT-light: #FFEBEE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
}

.puzzle-piece {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.puzzle-piece.red {
    background: #FF6B6B;
    top: 0;
    left: 0;
}

.puzzle-piece.yellow {
    background: #FFD93D;
    top: 0;
    right: 0;
}

.puzzle-piece.blue {
    background: #4ECDC4;
    bottom: 0;
    left: 0;
}

.puzzle-piece.green {
    background: #6BCF7F;
    bottom: 0;
    right: 0;
}

.logo h1 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.globe-icon {
    font-size: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    margin-left: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #6366f1;
    background: #f3f4f6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    margin-bottom: 2rem;
}

.stat {
    background: rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #FFD93D;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background: #8B5CF6;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Hero Illustration */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.person-illustration {
    position: relative;
    width: 300px;
    height: 300px;
}

.person {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.speech-bubble {
    position: absolute;
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.speech-bubble.esfj {
    top: 20%;
    left: 10%;
    background: #E0F2FE;
}

.speech-bubble.esfp {
    top: 30%;
    right: 10%;
    background: #FEF3C7;
}

.speech-bubble.entj {
    bottom: 30%;
    left: 5%;
    background: #F3E8FF;
}

.speech-bubble.entp {
    top: 10%;
    right: 20%;
    background: #F0FDF4;
}

.speech-bubble.enfj {
    bottom: 20%;
    right: 15%;
    background: #FEF2F2;
}

.star {
    position: absolute;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.star-2 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.star-3 {
    bottom: 15%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #f8fafc;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quote-icon {
    font-size: 4rem;
    color: #4ECDC4;
    margin-bottom: 1rem;
}

.testimonials-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #4ECDC4;
    transition: transform 0.3s ease;
}

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

.testimonial-avatar {
    margin-bottom: 1rem;
}

.avatar-icon {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-header h4 {
    font-weight: 600;
    color: #1f2937;
}

.personality-type {
    background: #4ECDC4;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.testimonial-content p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-time {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lightbulb-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* MBTI Explanation Section */
.mbti-explanation {
    padding: 4rem 0;
    background: #f8fafc;
}

.explanation-header {
    text-align: center;
    margin-bottom: 3rem;
}

.explanation-icon {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF6B6B; }
.dot.blue { background: #4ECDC4; }
.dot.purple { background: #8B5CF6; }
.dot.yellow { background: #FFD93D; }

.explanation-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.explanation-column {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.explanation-column h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.trait {
    margin-bottom: 1.5rem;
}

.trait strong {
    color: #8B5CF6;
    font-weight: 600;
}

.trait p {
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.explanation-cta {
    text-align: center;
}

/* MBTI Types Section */
.mbti-types {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.type-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--type-color);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.type-card h3 {
    color: var(--type-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.type-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}



/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .person-illustration {
        width: 250px;
        height: 250px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .explanation-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Test Page Styles */
#progress-bar {
    width: 100%;
    height: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#progress {
    height: 100%;
    background: linear-gradient(90deg, #4ECDC4, #8B5CF6, #FF6B6B);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.question {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ECDC4, #8B5CF6);
}

.question h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Page */
#results-container {
    text-align: center;
    padding: 3rem 0;
}

#result-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

#result-summary {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

#detailed-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.8);
}

#actions button {
    margin: 0 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#actions button:first-child {
    background: linear-gradient(135deg, #6366f1 0%, #5855eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

#actions button:last-child {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

#actions button:hover {
    transform: translateY(-2px);
}

/* 改进测试页面整体背景 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* 改进标题样式 */
h1 {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 2rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

/* 测试页面改进样式 */
.test-main {
    padding-bottom: 140px; /* 为固定底部导航留出空间 */
}

.test-header {
    text-align: center;
    margin-bottom: 2rem;
}

.test-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* 固定底部导航 */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.progress-section {
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.progress-text {
    font-weight: 500;
}

.progress-percentage {
    font-weight: 600;
    color: #6366f1;
}

#progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#progress {
    height: 100%;
    background: linear-gradient(90deg, #4ECDC4, #8B5CF6, #FF6B6B);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-button {
    background: #6366f1;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.nav-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.nav-button:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .test-main {
        padding-bottom: 20px;
    }
    
    .fixed-bottom-nav {
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    }
    
    .nav-button {
        padding: 0.75rem 1.5rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    .progress-info {
        font-size: 0.75rem;
    }
    
    .progress-text {
        font-size: 0.75rem;
    }
    
    .progress-percentage {
        font-size: 0.75rem;
        font-weight: 600;
    }
}

/* 确保内容不被底部导航遮挡 */
.question {
    margin-bottom: 1rem;
}

/* 页面信息样式 */
.page-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.page-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #475569;
    background: linear-gradient(135deg, #6366f1 0%, #5855eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 移动端页面信息样式 */
@media (max-width: 768px) {
    .page-info {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
    
    .page-number {
        font-size: 1rem;
    }
}

/* 结果页面样式 */
#results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

#result-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--type-color, #6366f1) 0%, #5855eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#result-summary {
    font-size: 1.2rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* 分数显示样式 */
#scores-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

#scores-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
}

.scores-grid {
    display: grid;
    gap: 1.5rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.score-item .score-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 80px;
    text-align: center;
}

.score-bar {
    flex: 1;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

/* 默认背景色 */
.score-bar {
    background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 100%);
}

/* 维度特定背景色 */
.score-item[data-dimension="ie"] .score-bar {
    background: linear-gradient(90deg, var(--mbti-IE-light) 0%, #E3F2FD 100%);
}

.score-item[data-dimension="sn"] .score-bar {
    background: linear-gradient(90deg, var(--mbti-SN-light) 0%, #FFF3E0 100%);
}

.score-item[data-dimension="tf"] .score-bar {
    background: linear-gradient(90deg, var(--mbti-TF-light) 0%, #E8F5E8 100%);
}

.score-item[data-dimension="jp"] .score-bar {
    background: linear-gradient(90deg, var(--mbti-JP-light) 0%, #F3E5F5 100%);
}

.score-item[data-dimension="at"] .score-bar {
    background: linear-gradient(90deg, var(--mbti-AT-light) 0%, #FFEBEE 100%);
}

.score-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out, background-color 0.3s ease;
    width: 0%;
}

/* 维度特定填充色 */
.score-item[data-dimension="ie"] .score-fill {
    background: linear-gradient(90deg, var(--mbti-IE) 0%, #5B9BD5 100%);
}

.score-item[data-dimension="sn"] .score-fill {
    background: linear-gradient(90deg, var(--mbti-SN) 0%, #FFD54F 100%);
}

.score-item[data-dimension="tf"] .score-fill {
    background: linear-gradient(90deg, var(--mbti-TF) 0%, #4CAF50 100%);
}

.score-item[data-dimension="jp"] .score-fill {
    background: linear-gradient(90deg, var(--mbti-JP) 0%, #AB47BC 100%);
}

.score-item[data-dimension="at"] .score-fill {
    background: linear-gradient(90deg, var(--mbti-AT) 0%, #F44336 100%);
}

.score-marker {
    position: absolute;
    top: -2px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #6366f1;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: left 1s ease-out;
    z-index: 10;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.score-label-left,
.score-label-right {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    flex: 1;
}

.score-label-left {
    text-align: left;
}

.score-label-right {
    text-align: right;
}

.score-percentage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 80px;
}

.percentage-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.score-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

/* 详细描述样式 */
#detailed-description {
    margin-bottom: 3rem;
}

#detailed-description h2 {
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

#detailed-description h3 {
    color: #4b5563;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

#type-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 2rem;
}

.characteristics-section ul {
    list-style: none;
    padding: 0;
}

.characteristics-section li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-size: 1rem;
}

.characteristics-section li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
}

.career-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

#career-advice {
    font-size: 1rem;
    line-height: 1.6;
    color: #0c4a6e;
    margin: 0;
}

/* 操作按钮样式 */
#actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

#actions button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#actions button:first-child {
    background: linear-gradient(135deg, #6366f1 0%, #5855eb 100%);
    color: white;
}

#actions button:last-child {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

#actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    #result-title {
        font-size: 2rem;
    }
    
    #scores-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .score-bar {
        height: 10px;
        min-width: 120px;
    }
    
    .score-item {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .score-label {
        min-width: 60px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    #actions {
        flex-direction: column;
        align-items: center;
    }
    
    #actions button {
        width: 100%;
        max-width: 300px;
    }
}

/* 问题容器下方的导航按钮样式 */
#question-container + .navigation-buttons {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

/* 移动端导航按钮样式调整 */
@media (max-width: 768px) {
    #question-container + .navigation-buttons {
        margin-top: 1.5rem;
        padding: 0.75rem 0;
    }
}

/* 无障碍支持 */
.nav-button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.nav-button:focus:not(:focus-visible) {
    outline: none;
}

/* 添加动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 改进响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links a {
        margin-left: 1rem;
    }
    
    .scale {
        flex-wrap: nowrap;
        gap: 0.25rem;
        justify-content: space-between;
    }
    
    .question {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    #navigation {
        flex-direction: column;
        align-items: center;
    }
    
    #navigation button {
        width: 100%;
        max-width: 200px;
    }
    
    .test-header h1 {
        font-size: 2rem;
    }
    
    .test-subtitle {
        font-size: 1rem;
    }
    
    .progress-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
    }
    
    .test-tips {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .tip-card li {
        font-size: 0.9rem;
    }
    
    /* 移动端单选按钮优化 */
    .scale input[type="radio"] {
        width: 22px;
        height: 22px;
    }
    
    .scale input[type="radio"]:checked::after {
        width: 8px;
        height: 8px;
    }
}

/* 新增主页样式 */
.hero-actions {
    text-align: center;
    margin-top: 2rem;
}

.test-duration {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 500;
}

.features {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button-large {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
}

/* 改进响应式设计 */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-button-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: #6366f1;
    font-weight: 500;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误处理样式 */
.error-container {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-title {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #7f1d1d;
    margin-bottom: 1.5rem;
}

.retry-button {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* 验证提示样式 */
.validation-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.validation-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.validation-text {
    color: #1e40af;
    font-weight: 500;
}

/* 新的问题布局样式 */
.question-text {
    color: #1f2937;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scale-container {
    margin-top: 2rem;
    position: relative;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.label-disagree {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    position: relative;
}

.label-agree {
    color: #059669;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    position: relative;
}

.scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    padding: 0 0.5rem;
    background: linear-gradient(90deg, 
        rgba(34, 197, 94, 0.1) 0%, 
        rgba(34, 197, 94, 0.05) 25%, 
        rgba(156, 163, 175, 0.1) 50%, 
        rgba(239, 68, 68, 0.05) 75%, 
        rgba(239, 68, 68, 0.1) 100%);
    border-radius: 25px;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.scale label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease-out;
    border: 3px solid transparent;
    position: relative;
    flex: 1;
    max-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 不同位置的圆圈大小和颜色 */
.scale label:nth-child(1) {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.scale label:nth-child(2) {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: #4ade80;
    box-shadow: 0 3px 10px rgba(74, 222, 128, 0.25);
}

.scale label:nth-child(3) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    border-color: #86efac;
    box-shadow: 0 2px 8px rgba(134, 239, 172, 0.2);
}

.scale label:nth-child(4) {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    border-color: #9ca3af;
    box-shadow: 0 2px 6px rgba(156, 163, 175, 0.2);
}

.scale label:nth-child(5) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(252, 165, 165, 0.2);
}

.scale label:nth-child(6) {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border-color: #f87171;
    box-shadow: 0 3px 10px rgba(248, 113, 113, 0.25);
}

.scale label:nth-child(7) {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 移动端按钮尺寸覆盖 */
@media (max-width: 768px) {
    .scale label:nth-child(1) {
        width: 35px;
        height: 35px;
    }
    
    .scale label:nth-child(2) {
        width: 35px;
        height: 35px;
    }
    
    .scale label:nth-child(3) {
        width: 35px;
        height: 35px;
    }
    
    .scale label:nth-child(4) {
        width: 35px;
        height: 35px;
    }
    
    .scale label:nth-child(5) {
        width: 35px;
        height: 35px;
    }
    
    .scale label:nth-child(6) {
        width: 35px;
        height: 35px;
    }
    
    .scale label:nth-child(7) {
        width: 35px;
        height: 35px;
    }
}

.scale label:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.scale label.selected {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 20;
    border-width: 3px;
    border-color: #ffffff;
}

.scale input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.scale input[type="radio"]:checked {
    background: rgba(255, 255, 255, 0.2);
}

.scale input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scale label.selected input[type="radio"]:checked::after {
    width: 24px;
    height: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 添加连接线效果 */
.scale::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        #22c55e 0%, 
        #4ade80 25%, 
        #86efac 40%, 
        #9ca3af 50%, 
        #fca5a5 60%, 
        #f87171 75%, 
        #ef4444 100%);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .question-text {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .scale-labels {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .label-disagree,
    .label-agree {
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        font-weight: 600;
    }
    
    .label-disagree {
        text-align: right;
    }
    
    .label-agree {
        text-align: left;
    }
    
    .scale {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.25rem;
        padding: 0.75rem 0.5rem;
        margin: 0 0.25rem;
    }
    
    .scale label {
        width: 35px;
        height: 35px;
        flex: 1;
        max-width: 35px;
    }
    
    .scale input[type="radio"] {
        width: 22px;
        height: 22px;
    }
    
    .scale input[type="radio"]:checked::after {
        width: 8px;
        height: 8px;
    }
}

/* Enhanced Career Advice Styles */
.career-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--type-color, #F8C471);
}

.career-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.career-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 3px solid var(--type-color, #F8C471);
}

.career-item h5 {
    color: var(--type-color, #F8C471);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.career-description {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.career-details {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.growth {
    background: #e3f2fd;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.career-why {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #555;
}

.career-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.path-stage {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.path-stage h5 {
    color: var(--type-color, #F8C471);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.path-stage p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.skills-environment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--type-color, #F8C471);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Relationship Insights Styles */
.relationships-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border-radius: 12px;
    border-left: 4px solid var(--type-color, #F8C471);
}

.relationship-insight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.relationship-insight p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
    color: #1e293b;
    font-size: 0.95rem;
}

.relationship-insight p:last-child {
    margin-bottom: 0;
}

.relationships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.relationship-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 3px solid var(--type-color, #F8C471);
}

.relationship-card h4 {
    color: var(--type-color, #F8C471);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.relationship-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.relationship-card ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.relationship-card li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .career-path-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-environment {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .relationships-grid {
        grid-template-columns: 1fr;
    }
    
    .career-details {
        padding: 1rem;
    }
    
    .relationships-section {
        padding: 1rem;
    }
}

/* Animation for new content */
.career-item, .relationship-card, .path-stage {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.career-item:hover, .relationship-card:hover, .path-stage:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.skill-tag {
    transition: all 0.2s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Strengths and Challenges Section */
.strengths-challenges-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.strengths-section, .challenges-section {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--type-color, #F8C471);
}

.strengths-section {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.challenges-section {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.strengths-section h3, .challenges-section h3 {
    color: var(--type-color, #F8C471);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.strengths-section ul, .challenges-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strengths-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #c3e6cb;
    position: relative;
    padding-left: 1.5rem;
}

.challenges-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5c6cb;
    position: relative;
    padding-left: 1.5rem;
}

.strengths-section li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.challenges-section li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.strengths-section li:last-child, .challenges-section li:last-child {
    border-bottom: none;
}

/* Growth Tips Section */
.growth-tips-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    border-left: 4px solid var(--type-color, #F8C471);
}

.growth-tips-section h3 {
    color: var(--type-color, #F8C471);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.growth-tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.growth-tips-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ffeaa7;
    position: relative;
    padding-left: 1.5rem;
}

.growth-tips-section li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.growth-tips-section li:last-child {
    border-bottom: none;
}

/* Mobile Responsive for new sections */
@media (max-width: 768px) {
    .strengths-challenges-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .strengths-section, .challenges-section, .growth-tips-section {
        padding: 1rem;
    }
}

/* Detailed Work Report Styles */
.detailed-work-report {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.detailed-work-report h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.work-report-content {
    line-height: 1.7;
    color: #6b7280;
}

.work-report-content p {
    margin-bottom: 1rem;
}

/* Relationship Detailed Report Styles */
.relationship-detailed-report {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.relationship-detailed-report h5 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.relationship-report-content {
    line-height: 1.6;
    color: #6b7280;
}

.relationship-report-content p {
    margin-bottom: 1rem;
}

/* Strengths and Weaknesses Section */
.strengths-weaknesses-section {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.strengths-section, .weaknesses-section {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.strengths-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
}

.weaknesses-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
}

.strengths-section h3, .weaknesses-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.strengths-section h3 {
    color: #166534;
}

.weaknesses-section h3 {
    color: #92400e;
}

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

.trait-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.trait-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.strength-icon {
    background: #22c55e;
    color: white;
}

.weakness-icon {
    background: #f59e0b;
    color: white;
}

.trait-content {
    flex: 1;
}

.trait-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}

.trait-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6b7280;
}

/* Mobile Responsive for Strengths and Weaknesses */
@media (max-width: 768px) {
    .strengths-weaknesses-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .strengths-section, .weaknesses-section {
        padding: 1rem;
    }
}

/* Relationship Advantages and Risks Section */
.relationship-advantages-risks-section {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.relationship-advantages-section, .relationship-risks-section {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.relationship-advantages-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.relationship-risks-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
}

.relationship-advantages-section h3, .relationship-risks-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.relationship-advantages-section h3 {
    color: #1d4ed8;
}

.relationship-risks-section h3 {
    color: #dc2626;
}

/* Mobile Responsive for Relationship Advantages and Risks */
@media (max-width: 768px) {
    .relationship-advantages-risks-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .relationship-advantages-section, .relationship-risks-section {
        padding: 1rem;
    }
}

/* 强项和短板项的样式 */
.strength-item, .weakness-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.strength-item {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.strength-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

.weakness-item {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.weakness-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
}

.strength-title, .weakness-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.strength-title {
    color: #166534;
}

.weakness-title {
    color: #92400e;
}

.strength-description, .weakness-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b7280;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* 结果页面移动端优化 */
    #result-title {
        font-size: 2rem;
        margin: 1rem 0;
    }
    
    #result-summary {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .characteristics-section {
        padding: 1rem;
    }
    
    .characteristics-section h3 {
        font-size: 1.3rem;
    }
    
    .characteristics-section li {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
    
    .strength-item, .weakness-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .strength-title, .weakness-title {
        font-size: 0.95rem;
    }
    
    .strength-description, .weakness-description {
        font-size: 0.85rem;
    }
}

/* 影响力特质部分样式 */
.influential-traits-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border-left: 5px solid var(--type-color, #007bff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.influential-traits-section h2 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
}

.influential-traits-section h3 {
    color: #334155;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid var(--type-color, #007bff);
    padding-bottom: 0.5rem;
}

.influential-traits-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.influential-traits-section li {
    background: white;
    margin-bottom: 1rem;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--type-color, #007bff);
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    transition: all 0.3s ease;
}

.influential-traits-section li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left-width: 6px;
}

.influential-traits-section li:before {
    content: "•";
    color: var(--type-color, #007bff);
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 0.5rem;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .influential-traits-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .influential-traits-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .influential-traits-section h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .influential-traits-section li {
        padding: 1rem;
        font-size: 14px;
        margin-bottom: 0.8rem;
    }
}

/* 没有测试结果提示页面样式 */
.no-test-message {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-test-message h1 {
    color: #374151;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.no-test-message p {
    color: #6b7280;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #5855eb 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .no-test-message {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .no-test-message h1 {
        font-size: 2rem;
    }
    
    .no-test-message p {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

