/* ========================================
   全局样式和CSS变量
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 返回首页按钮 */
.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-home:hover {
    background: #667eea;
    color: white;
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.back-home svg {
    transition: transform 0.3s ease;
}

.back-home:hover svg {
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .back-home {
        top: 12px;
        left: 12px;
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

:root {
    /* 主题色 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    
    /* 16种人格类型活泼配色（鲜明但不刺眼，参考韩国测试风格） */
    /* 分析家组 - 蓝紫色系 */
    --intj-primary: #667eea;  /* 深邃蓝紫 */
    --intj-secondary: #8b9cf5;
    --intp-primary: #5b7ceb;  /* 智慧蓝 */
    --intp-secondary: #7f9af6;
    --entj-primary: #6b73ff;  /* 领袖紫蓝 */
    --entj-secondary: #8f95ff;
    --entp-primary: #7c88ff;  /* 活力紫蓝 */
    --entp-secondary: #9fa8ff;
    
    /* 外交家组 - 粉紫色系 */
    --infj-primary: #9d5cf0;  /* 神秘紫 */
    --infj-secondary: #b57ef5;
    --infp-primary: #b565d8;  /* 梦幻粉紫 */
    --infp-secondary: #c98ce3;
    --enfj-primary: #a855f7;  /* 温暖紫 */
    --enfj-secondary: #c084fc;
    --enfp-primary: #c084fc;  /* 活泼粉紫 */
    --enfp-secondary: #d8a7fd;
    
    /* 守护者组 - 青绿色系 */
    --istj-primary: #10b981;  /* 沉稳绿 */
    --istj-secondary: #34d399;
    --isfj-primary: #14b8a6;  /* 温柔青 */
    --isfj-secondary: #2dd4bf;
    --estj-primary: #059669;  /* 可靠深绿 */
    --estj-secondary: #10b981;
    --esfj-primary: #0d9488;  /* 友善青绿 */
    --esfj-secondary: #14b8a6;
    
    /* 探险家组 - 橙黄色系 */
    --istp-primary: #f59e0b;  /* 冷静橙 */
    --istp-secondary: #fbbf24;
    --isfp-primary: #f97316;  /* 温暖橙 */
    --isfp-secondary: #fb923c;
    --estp-primary: #ef4444;  /* 热情红 */
    --estp-secondary: #f87171;
    --esfp-primary: #ec4899;  /* 活力粉红 */
    --esfp-secondary: #f472b6;
    
    /* 中性色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* 边框和阴影 */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    /* 年轻活泼的渐变背景 - 参考韩国测试网站风格 */
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 防止移动端双击缩放 */
    touch-action: manipulation;
}

/* ========================================
   页面容器和布局
   ======================================== */
.page {
    display: none;
    min-height: 100vh;
    padding: var(--spacing-lg);
    animation: fadeIn var(--transition-slow);
}

.page.active {
    display: block;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   欢迎页面样式
   ======================================== */
.welcome-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo {
    margin-bottom: var(--spacing-lg);
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    animation: pulse 2s infinite;
}

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

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    /* 活泼渐变色 */
    background: linear-gradient(135deg, #667eea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.info-item {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.info-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.info-illustration {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
    transition: all var(--transition-base);
}

.info-item:hover .info-illustration {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
}

.info-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

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

/* 提示框 */
.tips {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

.tips h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.tips ul {
    list-style: none;
    padding-left: 0;
}

.tips li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    border: none;
}

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

.btn-primary:active {
    transform: translateY(0);
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.btn-secondary:active {
    opacity: 0.8;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* ========================================
   测试页面样式
   ======================================== */
.test-header {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.current-question {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    transition: width var(--transition-base);
}

/* 问题卡片 */
.question-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    animation: slideIn var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.question-number {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

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

/* 选项按钮 */
.options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.option-btn {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
}

.option-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.option-btn.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.option-btn:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.option-label {
    display: block;
}

/* 导航按钮 */
.navigation-btns {
    display: flex;
    gap: var(--spacing-md);
    justify-content: space-between;
}

.navigation-btns .btn {
    flex: 1;
}

/* ========================================
   结果页面样式
   ======================================== */
.result-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.result-badge {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    margin-bottom: var(--spacing-xl);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.personality-type {
    display: inline-block;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.personality-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.personality-nickname {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 人格标签 */
.personality-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border: 2px solid var(--primary-light);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all var(--transition-base);
}

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

/* 人生信条 */
.personality-motto {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.motto-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.personality-motto p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.personality-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

/* 维度网格 */
.dimensions-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.dimension {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.dimension-name {
    color: var(--text-secondary);
}

.dimension-score {
    color: var(--primary-color);
    font-size: 1rem;
}

.dimension-bar {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.dimension-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    transition: width var(--transition-slow);
    position: absolute;
    left: 0;
}

/* 详细信息 */
.personality-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.detail-section {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.detail-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.result-actions .btn {
    flex: 1;
}

/* ========================================
   免责声明
   ======================================== */
.disclaimer {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    /* 页面整体 */
    .page {
        padding: 1rem 0.75rem;
    }
    
    /* 卡片内边距优化 */
    .welcome-card,
    .question-card,
    .result-card {
        padding: 1.5rem 1rem;
    }
    
    /* 标题优化 */
    .logo h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .logo-icon {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    /* 信息网格优化 */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .info-item {
        padding: 1rem 0.75rem;
    }
    
    .info-icon {
        font-size: 2rem;
    }
    
    .info-item h3 {
        font-size: 1rem;
    }
    
    .info-item p {
        font-size: 0.8rem;
    }
    
    /* 提示区域 */
    .tips {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .tips h3 {
        font-size: 1rem;
    }
    
    /* 按钮优化 - 增加触摸区域 */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        min-height: 52px;
    }
    
    /* 测试页面优化 */
    .question-text {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .question-number {
        font-size: 0.8rem;
        padding: 0.25rem 0.625rem;
    }
    
    /* 选项按钮优化 */
    .option-btn {
        padding: 1rem 0.75rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .options {
        gap: 0.75rem;
    }
    
    /* 导航按钮 */
    .navigation-btns {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .navigation-btns .btn {
        width: 100%;
    }
    
    /* 结果页面优化 */
    .result-badge {
        padding: 1.5rem 1rem;
    }
    
    .personality-type {
        font-size: 2.5rem;
        letter-spacing: 0.05em;
    }
    
    .personality-name {
        font-size: 1.375rem;
        margin-bottom: 0.25rem;
    }
    
    .personality-nickname {
        font-size: 0.9rem;
    }
    
    /* 标签云优化 */
    .personality-tags {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* 人生信条优化 */
    .personality-motto {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .motto-icon {
        font-size: 1.5rem;
    }
    
    .personality-motto p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* 描述文字 */
    .personality-description {
        font-size: 1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* 维度展示 */
    .dimensions-grid {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .dimension {
        padding: 1rem;
    }
    
    .dimension-header {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .dimension-score {
        font-size: 0.9rem;
    }
    
    .dimension-bar {
        height: 10px;
    }
    
    /* 详细信息模块 */
    .personality-details {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .detail-section {
        padding: 1rem;
    }
    
    .detail-section h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .detail-section p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* 操作按钮 */
    .result-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 */
    .page {
        padding: 0.75rem 0.5rem;
    }
    
    .welcome-card,
    .question-card,
    .result-card {
        padding: 1.25rem 0.875rem;
    }
    
    /* 标题进一步缩小 */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    /* 单列布局 */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .info-item {
        padding: 0.875rem;
    }
    
    /* 问题文字 */
    .question-text {
        font-size: 1rem;
    }
    
    /* 选项按钮 */
    .option-btn {
        padding: 0.875rem 0.625rem;
        font-size: 0.9rem;
    }
    
    /* 结果页 */
    .personality-type {
        font-size: 2rem;
    }
    
    .personality-name {
        font-size: 1.25rem;
    }
    
    .personality-nickname {
        font-size: 0.85rem;
    }
    
    .tag {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .personality-motto p {
        font-size: 0.9rem;
    }
    
    .personality-description {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    .detail-section h3 {
        font-size: 0.95rem;
    }
    
    .detail-section p {
        font-size: 0.85rem;
    }
    
    /* 按钮 */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .page {
        padding: 0.75rem;
    }
    
    .welcome-card,
    .question-card,
    .result-card {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移除hover效果，使用active代替 */
    .option-btn:hover {
        background: var(--bg-secondary);
        border-color: var(--border-color);
        transform: none;
    }
    
    .info-item:hover {
        transform: none;
    }
    
    .tag:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* 增强active状态反馈 */
    .option-btn:active {
        background: var(--bg-tertiary);
        border-color: var(--primary-light);
        opacity: 1;
    }
    
    .tag:active {
        transform: scale(0.95);
    }
}

/* 安全区域适配（iPhone X及以上） */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .page {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* ========================================
   加载动画
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* ========================================
   16种人格类型主题样式
   ======================================== */
/* 分析家组 - 蓝色系 */
.theme-INTJ { --type-primary: var(--intj-primary); --type-secondary: var(--intj-secondary); }
.theme-INTP { --type-primary: var(--intp-primary); --type-secondary: var(--intp-secondary); }
.theme-ENTJ { --type-primary: var(--entj-primary); --type-secondary: var(--entj-secondary); }
.theme-ENTP { --type-primary: var(--entp-primary); --type-secondary: var(--entp-secondary); }

/* 外交家组 - 紫色系 */
.theme-INFJ { --type-primary: var(--infj-primary); --type-secondary: var(--infj-secondary); }
.theme-INFP { --type-primary: var(--infp-primary); --type-secondary: var(--infp-secondary); }
.theme-ENFJ { --type-primary: var(--enfj-primary); --type-secondary: var(--enfj-secondary); }
.theme-ENFP { --type-primary: var(--enfp-primary); --type-secondary: var(--enfp-secondary); }

/* 守护者组 - 绿色系 */
.theme-ISTJ { --type-primary: var(--istj-primary); --type-secondary: var(--istj-secondary); }
.theme-ISFJ { --type-primary: var(--isfj-primary); --type-secondary: var(--isfj-secondary); }
.theme-ESTJ { --type-primary: var(--estj-primary); --type-secondary: var(--estj-secondary); }
.theme-ESFJ { --type-primary: var(--esfj-primary); --type-secondary: var(--esfj-secondary); }

/* 探险家组 - 暖色系 */
.theme-ISTP { --type-primary: var(--istp-primary); --type-secondary: var(--istp-secondary); }
.theme-ISFP { --type-primary: var(--isfp-primary); --type-secondary: var(--isfp-secondary); }
.theme-ESTP { --type-primary: var(--estp-primary); --type-secondary: var(--estp-secondary); }
.theme-ESFP { --type-primary: var(--esfp-primary); --type-secondary: var(--esfp-secondary); }

/* 应用类型配色 */
.result-card[class*="theme-"] .personality-type {
    background: linear-gradient(135deg, var(--type-primary), var(--type-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-card[class*="theme-"] .personality-badge {
    background: linear-gradient(135deg, 
        rgba(0,0,0,0) 0%, 
        var(--type-primary)15 100%);
    border: 2px solid var(--type-primary)30;
}

.result-card[class*="theme-"] .tag {
    background: var(--type-primary)20;
    border-color: var(--type-primary);
    color: var(--type-primary);
}

.result-card[class*="theme-"] .personality-motto {
    background: var(--type-primary)10;
    border-left-color: var(--type-primary);
}

.result-card[class*="theme-"] .detail-section {
    border-left-color: var(--type-primary);
}

.result-card[class*="theme-"] .dimension-fill {
    background: linear-gradient(90deg, var(--type-primary), var(--type-secondary));
}

.result-card[class*="theme-"] .dimension-score {
    color: var(--type-primary);
}

/* ========================================
   工具类
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
