/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ==================== 导航栏 ==================== */
.navbar {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #667eea;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ==================== Hero 区域 ==================== */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

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

/* ==================== 版本选择卡片 ==================== */
.version-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.version-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.version-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.version-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.version-card:hover::before {
    transform: scaleX(1);
}

.version-card.recommended {
    border-color: #667eea;
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.version-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.version-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.version-card .question-count {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.version-card .time-estimate {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.version-card .features {
    list-style: none;
    margin-bottom: 25px;
}

.version-card .features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-card .features li::before {
    content: '✓';
    color: #48bb78;
    font-weight: bold;
}

.start-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.start-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ==================== 特性展示 ==================== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #edf2f7 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================== 测试页面 ==================== */
.test-header {
    background: var(--primary-gradient);
    color: white;
    padding: 30px 0;
}

.test-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.test-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.test-timer.caution {
    background: rgba(255, 193, 7, 0.3);
    animation: pulse 1s infinite;
}

.test-timer.warning {
    background: rgba(244, 67, 54, 0.4);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.timer-text {
    white-space: nowrap;
}

#countdown {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    min-width: 50px;
    display: inline-block;
}

.test-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
    max-width: 500px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    white-space: nowrap;
}

.test-version {
    font-size: 1rem;
    opacity: 0.9;
}

.test-content {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.question-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.question-number {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 35px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
}

.option-label {
    font-weight: 600;
    color: #667eea;
    min-width: 30px;
}

.option-text {
    flex: 1;
    color: var(--text-primary);
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-btn {
    padding: 15px 35px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn.prev {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.nav-btn.prev:hover {
    border-color: #667eea;
    color: #667eea;
}

.nav-btn.next {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.nav-btn.next:hover {
    transform: scale(1.02);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==================== 结果页面 ==================== */
.result-header {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.result-type {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.result-name {
    font-size: 1.8rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.result-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

.result-content {
    padding: 60px 0;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.result-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-md);
}

.result-card.full-width {
    grid-column: span 2;
}

.result-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-card h3 .icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trait-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trait-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trait-label {
    min-width: 100px;
    font-weight: 600;
    color: var(--text-primary);
}

.trait-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
}

.trait-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease;
}

.trait-fill.ie { background: linear-gradient(90deg, #667eea, #764ba2); }
.trait-fill.sn { background: linear-gradient(90deg, #f093fb, #f5576c); }
.trait-fill.tf { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.trait-fill.jp { background: linear-gradient(90deg, #43e97b, #38f9d7); }

.trait-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
}

.stress-list {
    list-style: none;
}

.stress-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.stress-list li:last-child {
    border-bottom: none;
}

.stress-list .bullet {
    width: 8px;
    height: 8px;
    background: #f5576c;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.career-tag {
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-radius: 20px;
    color: #667eea;
    font-weight: 500;
    font-size: 0.95rem;
}

.relationship-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.relationship-item h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.relationship-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.team-item .type {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.team-item .role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.growth-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.growth-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.growth-item .num {
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.growth-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.action-btn {
    padding: 15px 35px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.action-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== 百科页面 ==================== */
.wiki-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.wiki-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.wiki-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.wiki-content {
    padding: 60px 0;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.type-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.type-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #667eea;
}

.type-card .type-letter {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-card .type-name {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.type-card .type-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.dimension-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.dimension-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dimension-section h2 .dim-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dimension-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dimension-card {
    padding: 25px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
}

.dimension-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.dimension-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .version-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .version-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card.full-width {
        grid-column: span 1;
    }
    
    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .version-cards {
        grid-template-columns: 1fr;
    }
    
    .version-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .question-card {
        padding: 25px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .result-type {
        font-size: 3.5rem;
    }
    
    .relationship-content {
        grid-template-columns: 1fr;
    }
    
    .growth-list {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dimension-cards {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .type-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 动画 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== 时间到弹窗 ==================== */
.time-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.time-up-modal {
    background: white;
    padding: 50px 60px;
    border-radius: var(--radius-xl);
    text-align: center;
    animation: scaleIn 0.4s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.time-up-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease infinite;
}

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

.time-up-modal h2 {
    font-size: 2rem;
    color: #f56565;
    margin-bottom: 15px;
}

.time-up-modal p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== 移动端适配 ==================== */
@media screen and (max-width: 768px) {
    /* 测试头部 */
    .test-header {
        padding: 15px 0;
    }
    
    .test-header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .test-timer {
        justify-content: center;
        padding: 10px 20px;
        font-size: 1.1rem;
    }
    
    #countdown {
        font-size: 1.3rem;
    }
    
    .test-progress {
        max-width: 100%;
    }
    
    .test-version {
        font-size: 0.9rem;
    }
    
    /* 测试内容区 */
    .test-content {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .question-card {
        padding: 25px 20px;
        border-radius: var(--radius-md);
    }
    
    .question-number {
        font-size: 0.85rem;
    }
    
    .question-text {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }
    
    /* 选项按钮 - 增大触摸区域 */
    .options {
        gap: 10px;
    }
    
    .option {
        padding: 15px 18px;
        min-height: 56px;
        display: flex;
        align-items: center;
        border-radius: var(--radius-sm);
    }
    
    .option:hover {
        transform: none;
    }
    
    .option:active {
        background: linear-gradient(135deg, rgba(102,126,234,0.15) 0%, rgba(118,75,162,0.15) 100%);
    }
    
    .option-label {
        min-width: 28px;
        font-size: 0.95rem;
    }
    
    .option-text {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* 导航按钮 - 增大尺寸 */
    .test-navigation {
        margin-top: 25px;
        gap: 10px;
    }
    
    .nav-btn {
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 52px;
        flex: 1;
        justify-content: center;
        border-radius: var(--radius-sm);
    }
    
    .nav-btn.prev {
        flex: 0.4;
    }
    
    .nav-btn.next {
        flex: 0.6;
    }
    
    /* 结果页职业推荐 */
    .result-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-card.full-width {
        grid-column: span 1;
    }
    
    .result-card {
        padding: 25px 20px;
    }
    
    .result-type {
        font-size: 3.5rem;
    }
    
    .result-name {
        font-size: 1.4rem;
    }
    
    .result-description {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* 职业标签 */
    .career-tags {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .career-tag {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    /* 操作按钮 */
    .result-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .action-btn {
        padding: 14px 25px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    /* 时间到弹窗 */
    .time-up-modal {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .time-up-modal h2 {
        font-size: 1.6rem;
    }
    
    .time-up-modal p {
        font-size: 1rem;
    }
    
    .time-up-icon {
        font-size: 3rem;
    }
    
    /* 弹窗 */
    .modal-content {
        margin: 15px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 25px 20px;
    }
    
    .modal-header h2 {
        font-size: 2.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 380px) {
    .option {
        padding: 14px 15px;
        min-height: 52px;
    }
    
    .option-label {
        min-width: 24px;
        font-size: 0.9rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
    
    .nav-btn {
        padding: 14px 15px;
        font-size: 0.95rem;
    }
    
    .result-type {
        font-size: 3rem;
    }
}

/* 触摸友好 - 确保所有可点击元素有足够大的触摸区域 */
@media (hover: none) and (pointer: coarse) {
    button, 
    .option,
    .career-tag,
    .result-card,
    .action-btn {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    }
    
    .option:active,
    .nav-btn:active,
    .career-tag:active,
    .action-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* ==================== 职业详细弹窗 ==================== */
.career-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.career-detail-modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

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

.career-detail-header {
    background: var(--primary-gradient);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.career-name {
    font-size: 1.8rem;
    margin: 0;
}

.career-match {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.career-detail-body {
    padding: 25px 30px;
}

.career-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.career-section {
    margin-bottom: 20px;
}

.career-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.career-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.career-path {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    padding: 15px;
    border-radius: var(--radius-md);
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.career-salary {
    background: #f0fdf4;
    color: #166534;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #bbf7d0;
}

/* ==================== 职业标签样式 ==================== */
.career-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(102,126,234,0.2);
}

.career-tag:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.not-suitable-tag {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 4px;
    border: 1px solid #fecaca;
}

/* ==================== 行业领域卡片 ==================== */
.suitable-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.field-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.field-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.job-tag {
    background: white;
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.suitable-fields-section {
    grid-column: span 2;
}

@media screen and (max-width: 768px) {
    .suitable-fields-section {
        grid-column: span 1;
    }
    
    .suitable-fields {
        grid-template-columns: 1fr;
    }
    
    .career-detail-modal {
        max-height: 90vh;
    }
    
    .career-detail-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .career-name {
        font-size: 1.5rem;
    }
    
    .career-detail-body {
        padding: 20px;
    }
}
