/* 赛博格指数 - 现代人文风格 CSS */
/* Modern Humanistic Style - Kinfolk/Apple Inspired */

:root {
    /* 基础色 */
    --bg: #FAFAF8;
    --bg-card: #FFFFFF;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    /* 强调色 */
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-bg: #F5F3FF;
    
    /* 辅助色 */
    --border: #E5E7EB;
    --divider: #F3F4F6;
    
    /* 等级色 */
    --level-1: #64748B;
    --level-2: #78716C;
    --level-3: #D97706;
    --level-4: #7C3AED;
    --level-5: #4C1D95;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    
    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 全局文字保护 */
p, span, div, li, td, th, label, a, button, input, textarea, h1, h2, h3, h4, h5, h6 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 卡片和容器溢出保护 */
.card, .container, .section, .panel, .box, .modal, .overlay, .face {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== 通用布局 ========== */

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hidden {
    display: none !important;
}

/* ========== 加载页 ========== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background 0.6s ease;
}

.loading-overlay.result-mode {
    background: #FFFFFF;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.loading-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    animation: pulse 2s ease-in-out infinite;
}

/* 弧度菱形图标 */
.diamond-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.diamond-shape {
    width: 20px;
    height: 20px;
    background: #7C3AED;
    border-radius: 4px;
    transform: rotate(45deg);
    display: inline-block;
}

/* 加载页菱形呼吸变形动画 */
.loading-overlay .diamond-morph {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
    border-radius: 4px;
    transform: rotate(45deg);
    animation: morphBreathe 2.4s ease-in-out infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.loading-overlay.result-mode .diamond-morph {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.25);
}

@keyframes morphBreathe {
    0% {
        border-radius: 4px;
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
    }
    33% {
        border-radius: 50%;
        transform: rotate(45deg) scale(0.85);
        box-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
    }
    66% {
        border-radius: 45%;
        transform: rotate(45deg) scale(1.08);
        box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
    }
    100% {
        border-radius: 4px;
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
    }
}

.loading-overlay.result-mode .loading-icon {
    display: none;
}

.loading-text {
    font-size: 0.9375rem;
    color: #6B7280;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
}

.loading-overlay.result-mode .loading-text {
    color: #1a1a2e;
    font-weight: 500;
    letter-spacing: 1px;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

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

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* 结果加载 - 四轴动画 */
.loading-axis-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1rem);
    text-align: center;
    height: 1.5rem;
    pointer-events: none;
}

.loading-axis-item {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-axis-item.axis-waiting {
    opacity: 0;
    pointer-events: none;
}

.loading-axis-item.active {
    opacity: 1;
}

.loading-axis-item.done {
    opacity: 0;
}

.loading-axis-dot {
    display: none;
}

.loading-axis-item.active .loading-axis-dot {
    display: none;
}

.loading-axis-item.done .loading-axis-dot {
    display: none;
}

.loading-axis-name {
    font-size: 0.8125rem;
    color: #B0B0B8;
    font-weight: 400;
    letter-spacing: 2px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.25rem 0;
}

.loading-axis-item.active .loading-axis-name {
    color: #7C3AED;
    font-weight: 500;
    letter-spacing: 3px;
}

.loading-axis-item.active .loading-axis-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #7C3AED, #A78BFA);
    border-radius: 1px;
    animation: lineGrow 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loading-axis-item.done .loading-axis-name {
    color: #9CA3AF;
    letter-spacing: 2px;
}

@keyframes lineGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* ========== 首页样式 ========== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.hero-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--accent-bg) 0%, #EDE9FE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 2.5rem;
}

.hero h1 {
    font-size: 4.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: #2D2640;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #7E7290;
    max-width: 480px;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.accent-text {
    color: #A78BFA;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: var(--space-lg);
    padding: 1rem 2rem;
    background: var(--bg-card);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.hero-stat strong {
    color: var(--text);
    font-weight: 600;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.hero-axis-preview {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.axis-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-width: 90px;
}

.axis-preview-icon {
    font-size: 1.5rem;
}

.axis-preview-name {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ========== 按钮 ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

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

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

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.0625rem;
}

/* ========== 特性卡片 ========== */

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--divider);
}

.feature-card {
    text-align: left;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== 答题页样式 ========== */

.test-page {
    min-height: 100vh;
    padding-bottom: var(--space-xl);
}

.test-header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(238, 235, 230, 0.98) 0%, rgba(245, 243, 240, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    padding: 0.25rem 0;
    border-bottom: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.test-header.pro-header {
    background: #1a1a2e;
}

.test-header.pro-header .test-logo {
    color: #ffffff;
}

.test-header.pro-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.test-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    gap: 0;
}

.test-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 0.5em;
}

.test-logo .diamond-icon {
    width: 16px;
    height: 16px;
}

.test-logo .diamond-shape {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.progress-container {
    width: 180px;
    padding-left: 30px;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7E6BAA, #A78BFA);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: #A78BFA;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.6), 0 0 20px rgba(167, 139, 250, 0.3);
}

.progress-text {
    font-size: 0.625rem;
    color: #9CA3AF;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.test-content {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-xs) var(--space-md);
}

@media (min-width: 768px) {
    .test-content {
        padding-top: var(--space-lg);
    }
}

.axis-header {
    display: none;
}

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

.axis-badge {
    display: none;
}

.axis-title {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.axis-desc {
    font-size: 0.6875rem;
    color: #9CA3AF;
    line-height: 1.3;
    font-weight: 400;
}

.question-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.question-number {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.question-text {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.question-type-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: var(--space-md);
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

/* ========== 选项样式 ========== */

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 1rem;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
}

.option:hover {
    border-color: var(--border);
    background: var(--bg-card);
    transform: translateX(4px);
}

.option.selected {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.option-indicator {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.option.selected .option-indicator {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ========== 多选题 checkbox 风格 ========== */

.option.option-checkbox {
    /* 继承 .option 所有样式 */
}

.option.option-checkbox .option-checkbox-box {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: transparent;
    transition: all 0.2s ease;
}

.option.option-checkbox.selected {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.option.option-checkbox.selected .option-checkbox-box {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.option.option-checkbox:hover {
    border-color: var(--accent-light);
}

.option.option-checkbox:hover .option-checkbox-box {
    border-color: var(--accent-light);
}

.option-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    padding-top: 2px;
}

/* ========== 数字输入框（percentage/number/frequency 共用） ========== */

.number-input {
    width: 100%;
    padding: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.number-input:focus {
    outline: none;
    border-color: var(--accent);
}

.number-input::placeholder {
    color: var(--text-light);
}

/* 隐藏 number 输入框的上下箭头 */
.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.number-input[type=number] {
    -moz-appearance: textfield;
}

/* 数字输入框的容器 */
#percentageContainer,
#numberContainer,
#frequencyContainer {
    text-align: center;
}

.number-unit {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========== 导航按钮 ========== */

.test-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--divider);
}

.btn-nav {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-prev {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-prev:hover:not(:disabled) {
    color: var(--text);
    border-color: var(--text-secondary);
}

.btn-prev:active:not(:disabled) {
    transform: scale(1.04);
    transition: transform 0.1s ease;
}

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

.btn-next {
    background: var(--text);
    color: white;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-next:active:not(:disabled) {
    transform: scale(1.04);
    transition: transform 0.1s ease;
}

.btn-next:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== 结果页样式 ========== */

.result-page {
    min-height: 100vh;
    padding: var(--space-xl) 0 var(--space-lg);
}

.result-cover {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.result-icon-large {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--accent-bg) 0%, #EDE9FE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto var(--space-md);
    animation: fadeIn 0.6s ease;
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.1em;
}

.result-index {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
    animation: fadeIn 0.8s ease;
}

.result-index span {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.result-level {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    transition: color 0.3s ease;
}

.result-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
    animation: fadeIn 1s ease;
}

.result-type-icon {
    font-size: 2.5rem;
}

.result-type-name {
    font-size: 2rem;
    font-weight: 600;
}

.result-type-name-en {
    font-size: 1rem;
    color: var(--text-secondary);
}

.result-quote {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeIn 1.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.result-divider {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin: var(--space-lg) auto;
}

/* ========== 雷达图 ========== */

.radar-section {
    padding: var(--space-lg) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.radar-container {
    max-width: 360px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.radar-chart {
    width: 100%;
    aspect-ratio: 1;
}

.axis-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding: 0 var(--space-md);
}

.axis-score-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: var(--space-sm);
    text-align: center;
    border: 1px solid var(--border);
}

.axis-score-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.axis-score-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.axis-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.axis-score-value span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.axis-score-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.axis-score-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 1s ease-out;
}

/* ========== 类型解读 ========== */

.type-detail {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) var(--space-md);
    border: 1px solid var(--border);
}

.type-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.type-detail-icon {
    font-size: 1.5rem;
}

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

.type-detail-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
}

.type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--space-md);
}

.type-feature-tag {
    padding: 0.5rem 1rem;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 100px;
}

/* ========== 风险提示 ========== */

.risk-section {
    padding: 0 var(--space-md);
    margin-top: var(--space-md);
}

.risk-card {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: var(--space-md);
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.risk-icon {
    font-size: 1rem;
}

.risk-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #92400E;
}

.risk-text {
    font-size: 0.9375rem;
    color: #78350F;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ========== 文化坐标 ========== */

.cultural-section {
    padding: var(--space-lg) var(--space-md) 0;
}

.cultural-intro {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-md);
}

.cultural-anchors {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cultural-anchor-card {
    display: flex;
    gap: 1rem;
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cultural-anchor-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cultural-anchor-content {
    flex: 1;
}

.cultural-anchor-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cultural-anchor-source {
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.cultural-anchor-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cultural-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ========== 发现与建议 ========== */

.findings-section {
    padding: 0 var(--space-md);
    margin-top: var(--space-lg);
}

.findings-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
}

.findings-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.findings-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--divider);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
}

.findings-item:last-child {
    border-bottom: none;
}

.findings-bullet {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

.suggestions-bullet {
    color: #10B981;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========== 证书区域 ========== */

.certificate-section {
    padding: var(--space-xl) var(--space-md) 0;
    text-align: center;
}

.certificate-intro {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.certificate-preview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.certificate-preview canvas {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
}

.certificate-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-cert {
    min-width: 160px;
}

/* ========== Footer ========== */

.footer {
    text-align: center;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    color: var(--text-light);
    font-size: 0.875rem;
    overflow: hidden;
}

.footer #resultId {
    word-break: break-all;
    overflow-wrap: break-word;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ========== 响应式 ========== */

@media (max-width: 640px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .result-index {
        font-size: 3.5rem;
    }
    
    .result-quote {
        font-size: 0.9375rem;
    }
    
    .type-detail-text {
        font-size: 0.9375rem;
    }
    
    .card-flip-container {
        max-width: 280px;
        height: 380px;
    }
    
    .card-type-name {
        font-size: 1.75rem;
    }
    
    .card-type-quote {
        font-size: 0.9375rem;
        max-width: 240px;
    }
    
    .axis-scores {
        grid-template-columns: 1fr;
    }
    
    .option {
        padding: 1rem;
    }
    
    .option-text {
        font-size: 0.9375rem;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .btn-cert {
        width: 100%;
    }
}


/* ============================================================================
   双重型人格卡片样式
   ============================================================================ */

.dual-type-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.dual-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.dual-type-card.hidden {
    display: none;
}

.dual-type-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dual-type-badge {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dual-type-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.dual-type-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.dual-type-icon {
    font-size: 1.5rem;
}

.dual-type-primary {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dual-type-secondary {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dual-type-separator {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.dual-type-fusion-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.dual-type-diff-axes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.diff-axis-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.625rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
}

.diff-axis-name {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.diff-axis-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
}

.diff-axis-label.high {
    color: #F59E0B;
}

.diff-axis-label.low {
    color: #8B5CF6;
}

.diff-axis-score {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   深度人文报告样式
   ============================================================================ */

.deep-report-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.deep-report-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #F3E8FF;
}

.deep-report-icon {
    font-size: 1.5rem;
}

.deep-report-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #7C3AED;
}

.deep-report-portrait {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
}

.deep-tension-section {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.deep-tension-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.deep-tension-icon {
    font-size: 1rem;
}

.deep-tension-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #92400E;
}

.deep-tension-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #78350F;
    word-break: break-word;
    overflow-wrap: break-word;
}

.deep-growth-section {
    margin-bottom: 1.25rem;
}

.deep-growth-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.deep-growth-icon {
    font-size: 1.25rem;
}

.deep-growth-title {
    font-size: 1rem;
    font-weight: 700;
    color: #4B5563;
}

.deep-growth-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.growth-path-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #F9FAFB;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.growth-path-item:hover {
    background: #F3E8FF;
    transform: translateX(4px);
}

.growth-path-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.growth-path-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4B5563;
    word-break: break-word;
    overflow-wrap: break-word;
}

.deep-summary-section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    border-radius: 16px;
    margin-top: 1rem;
}

.deep-summary-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.deep-summary-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #5B21B6;
    font-weight: 500;
    font-style: italic;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============================================================================
   响应式适配
   ============================================================================ */

@media (max-width: 640px) {
    .dual-type-card {
        padding: 1.5rem 1rem;
    }
    
    .dual-type-title {
        gap: 0.75rem;
    }
    
    .dual-type-primary,
    .dual-type-secondary {
        font-size: 1.5rem;
    }
    
    .dual-type-fusion-desc {
        font-size: 0.875rem;
    }
    
    .diff-axis-item {
        min-width: 70px;
        padding: 0.5rem 0.75rem;
    }
    
    .deep-report-card {
        padding: 1.25rem;
    }
    
    .deep-report-portrait {
        font-size: 0.875rem;
    }
    
    .growth-path-item {
        padding: 0.75rem;
    }
    
    .growth-path-text {
        font-size: 0.8125rem;
    }
}
/* ========== 类型形象图 ========== */
.type-image-container {
    width: 180px;
    height: 180px;
    margin: 1.5rem auto 1rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    background: linear-gradient(135deg, #F3E8FF 0%, #EDE9FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ========== 普通版结果文案 ========== */
.normal-report-section {
    margin: 1.5rem 0;
}

.normal-report-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.normal-report-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F3E8FF;
}

.normal-report-icon {
    font-size: 1.25rem;
}

.normal-report-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #7C3AED;
}

.normal-report-text {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.8;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-line;
}

/* ========== 成长方向 ========== */
.growth-section {
    margin: 1.5rem 0;
}

.growth-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.growth-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F3E8FF;
}

.growth-icon {
    font-size: 1.25rem;
}

.growth-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #10B981;
}

.growth-text {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ========== 专业版深度报告 ========== */
.deep-report-section {
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 24px;
    padding: 2rem;
    color: #fff;
}

.deep-report-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deep-report-paragraph {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    text-align: justify;
}

.deep-report-paragraph:last-child {
    margin-bottom: 0;
}

/* ========== 文化坐标（新版） ========== */
.cultural-section {
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 0.75rem;
    text-align: center;
}

.cultural-intro {
    font-size: 0.875rem;
    color: #6B7280;
    text-align: center;
    margin-bottom: 1rem;
}

.cultural-anchors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cultural-anchor-item {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.cultural-anchor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cultural-anchor-work {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #7C3AED;
    margin-bottom: 0.25rem;
}

.cultural-anchor-character {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 0.5rem;
}

.cultural-anchor-desc {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.6;
}

/* ========== 类型特征标签 ========== */
.type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.type-feature-tag {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    color: #7C3AED;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.type-feature-tag:hover {
    background: linear-gradient(135deg, #DDD6FE 0%, #C4B5FD 100%);
    transform: translateY(-1px);
}

/* ========== 风险提示（新版） ========== */
.risk-section {
    margin: 1.5rem 0;
}

.risk-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #FEF3C7;
}

.risk-icon {
    font-size: 1.25rem;
}

.risk-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #D97706;
}

.risk-text {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.7;
}

/* ========== 响应式适配 ========== */
@media (max-width: 640px) {
    .type-image-container {
        width: 140px;
        height: 140px;
    }
    
    .normal-report-card,
    .growth-card,
    .risk-card {
        padding: 1.25rem;
    }
    
    .cultural-anchor-item {
        padding: 1rem;
    }
    
    .deep-report-section {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .deep-report-paragraph {
        font-size: 0.875rem;
        line-height: 1.8;
    }
}

/* ========== 付费解锁区域样式 ========== */

/* 锁定状态的模糊效果 */

.locked-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.6) 0%,
        rgba(255,255,255,0.85) 50%,
        rgba(255,255,255,0.6) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
    border-radius: var(--radius-lg);
}

.locked-content::after {
    content: '专业版内容已锁定';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 11;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* 付费解锁卡片 */







.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7C3AED;
}

.price-label {
    font-size: 0.875rem;
    color: #9CA3AF;
}








.unlock-code-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #DDD6FE;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: monospace;
    letter-spacing: 0.05em;
    background: #fff;
    color: #1F2937;
    outline: none;
    transition: border-color 0.2s ease;
}

.unlock-code-input::placeholder {
    color: #9CA3AF;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    letter-spacing: normal;
}

.unlock-code-input:focus {
    border-color: #7C3AED;
}

.unlock-submit-btn {
    padding: 0.75rem 1.25rem;
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.unlock-submit-btn:hover:not(:disabled) {
    background: #6D28D9;
}

.unlock-submit-btn:disabled {
    background: #C4B5FD;
    cursor: not-allowed;
}

.unlock-error {
    color: #DC2626;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #FEE2E2;
    border-radius: 8px;
}

.unlock-success {
    color: #059669;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #D1FAE5;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

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

/* 响应式 */
@media (max-width: 480px) {
    .pay-unlock-card {
        padding: 1.5rem 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pay-unlock-input-wrap {
        flex-direction: column;
    }
    
    .unlock-submit-btn {
        width: 100%;
    }
}
/* ============================================================================
   赛博格指数专业版 - 全面视觉重做样式 (2026-05-17)
   ============================================================================ */

/* ========== 1. 觉醒动画升级 ========== */

/* 全屏flash效果 */
.awakening-flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.8) 0%, rgba(88, 28, 135, 0.6) 50%, rgba(30, 10, 60, 0.4) 100%);
    z-index: 9999;
    pointer-events: none;
    animation: awakeningFlash 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes awakeningFlash {
    0% { opacity: 0; }
    15% { opacity: 1; }
    100% { opacity: 0; }
}

/* 脉冲+光波扩散效果 */
.awakening-pulse {
    animation: awakeningPulseNew 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes awakeningPulseNew {
    0% { transform: scale(1); }
    20% { transform: scale(1.05); }
    40% { transform: scale(0.98); }
    60% { transform: scale(1.02); }
    80% { transform: scale(0.99); }
    100% { transform: scale(1); }
}

/* 背景光环扩散 */
.awakening-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: haloExpand 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes haloExpand {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* 文字从模糊到清晰的渐入 */
.awakening-text-blur {
    animation: textBlurIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textBlurIn {
    0% { filter: blur(8px); opacity: 0; transform: scale(0.95); }
    50% { filter: blur(4px); opacity: 0.7; transform: scale(0.98); }
    100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

/* 紫色/暗紫色渐变背景切换（替代负片） */
.hero-flip-front.awakening-purple {
    background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%) !important;
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-flip-front.awakening-purple .hero-figure {
    background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 100%) !important;
}

.hero-flip-front.awakening-purple .hero-name { color: #e9d5ff !important; }
.hero-flip-front.awakening-purple .hero-name-en { color: rgba(255,255,255,0.5) !important; }
.hero-flip-front.awakening-purple .hero-score { color: #c4b5fd !important; }
.hero-flip-front.awakening-purple .hero-score-unit { color: rgba(196,181,253,0.7) !important; }
.hero-flip-front.awakening-purple .hero-level { color: #a78bfa !important; }
.hero-flip-front.awakening-purple .hero-quote { color: rgba(255,255,255,0.7) !important; }
.hero-flip-front.awakening-purple .hero-icon { color: #a78bfa !important; }

.hero-flip-back.awakening-purple:not(.laser-active) {
    background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%) !important;
}
.hero-flip-back.awakening-purple .hero-content,
.hero-flip-back.awakening-purple .hero-figure {
    background: transparent !important;
}

.hero-flip-back.awakening-purple .hero-name-back { color: #f3e8ff !important; text-shadow: 0 0 20px rgba(139,92,246,0.6), 0 0 40px rgba(139,92,246,0.3); }
.hero-flip-back.awakening-purple .hero-name-en-back { color: rgba(255,255,255,0.5) !important; }
.hero-flip-back.awakening-purple .hero-score-back { color: #d8b4fe !important; text-shadow: 0 0 20px rgba(139,92,246,0.6); }
.hero-flip-back.awakening-purple .hero-level-back { color: #c084fc !important; }
.hero-flip-back.awakening-purple .hero-quote-back { color: rgba(255,255,255,0.7) !important; }

/* ========== 2. 翻牌效果整体重做 ========== */

/* 翻牌容器 */
.hero-flip-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    perspective: 1500px;
    -webkit-tap-highlight-color: transparent;
}

.hero-flip-container.flippable {
    cursor: pointer;
}

.hero-flip-inner {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-flip-container.flipped .hero-flip-inner {
    transform: rotateY(180deg);
}

.hero-flip-front, .hero-flip-back {
    min-height: 100vh;
    min-height: 100dvh;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    position: absolute;
    inset: 0;
    width: 100%;
}

.hero-flip-back {
    transform: rotateY(180deg);
}

/* 光效扫过效果（从左到右的白色光线） */
.flip-light-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.flip-light-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), rgba(255,255,255,0.9), rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    animation: lightSweep 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes lightSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* 正面缩小的粒子散开效果 */
.flip-particle-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.flip-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #8B5CF6;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px #8B5CF6, 0 0 12px rgba(139,92,246,0.5);
}

@keyframes particleBurstAnim {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.flip-particle:nth-child(1) { --dx: -60px; --dy: -40px; animation: particleBurstAnim 0.6s ease-out 0.1s forwards; }
.flip-particle:nth-child(2) { --dx: 50px; --dy: -50px; animation: particleBurstAnim 0.5s ease-out 0.15s forwards; }
.flip-particle:nth-child(3) { --dx: -70px; --dy: 30px; animation: particleBurstAnim 0.55s ease-out 0.12s forwards; }
.flip-particle:nth-child(4) { --dx: 65px; --dy: 45px; animation: particleBurstAnim 0.5s ease-out 0.18s forwards; }
.flip-particle:nth-child(5) { --dx: -40px; --dy: -60px; animation: particleBurstAnim 0.6s ease-out 0.1s forwards; }
.flip-particle:nth-child(6) { --dx: 45px; --dy: -35px; animation: particleBurstAnim 0.55s ease-out 0.14s forwards; }
.flip-particle:nth-child(7) { --dx: -55px; --dy: 55px; animation: particleBurstAnim 0.5s ease-out 0.16s forwards; }
.flip-particle:nth-child(8) { --dx: 70px; --dy: 20px; animation: particleBurstAnim 0.6s ease-out 0.11s forwards; }

/* 背面展开的模糊到清晰reveal效果 */
.hero-flip-back.reveal-enter {
    animation: revealEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes revealEnter {
    0% { filter: blur(20px); opacity: 0.5; transform: rotateY(180deg) scale(0.95); }
    100% { filter: blur(0); opacity: 1; transform: rotateY(180deg) scale(1); }
}

/* 翻牌后背面呼吸光效（银色边框） */
.hero-flip-back.silver-border,
.hero-flip-front.silver-border {
    border: 3px solid transparent;
    border-radius: 16px;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3), 0 0 40px rgba(192, 192, 192, 0.15), inset 0 0 20px rgba(192, 192, 192, 0.05);
}

.hero-flip-back.silver-border::before,
.hero-flip-front.silver-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8, #A0A0A0, #D0D0D0, #B8B8B8, #E8E8E8, #C0C0C0);
    background-size: 400% 400%;
    z-index: -1;
    animation: silverShimmer 3s ease-in-out infinite;
}

@keyframes silverShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 呼吸光效动画 */
.hero-flip-back.silver-border::after,
.hero-flip-front.silver-border::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    background: transparent;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.1), 0 0 15px rgba(192,192,192,0.2);
    animation: borderBreath 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes borderBreath {
    0%, 100% { opacity: 0.6; box-shadow: inset 0 0 10px rgba(255,255,255,0.1), 0 0 10px rgba(192,192,192,0.15); }
    50% { opacity: 1; box-shadow: inset 0 0 20px rgba(255,255,255,0.15), 0 0 25px rgba(192,192,192,0.3); }
}

/* ========== 3. 翻牌后分数显示格式 ========== */

/* 分数对比显示 */
.score-comparison-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
}

.score-normal {
    font-weight: 700;
}

.score-arrow {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

.score-pro {
    font-weight: 700;
}

.score-arrow-icon {
    font-size: 1rem;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.score-arrow-icon.up { color: #22C55E; }
.score-arrow-icon.down { color: #EF4444; }

/* 等级颜色 */
.level-high { color: #EF4444 !important; }
.level-mid { color: #8B5CF6 !important; }
.level-low { color: #22C55E !important; }

/* ========== 4. 子维度雷达图重做 ========== */

.radar-chart-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    padding: 10px;
}

.radar-chart {
    width: 300px;
    height: 300px;
}

/* ========== 5. 分数变化展示重做 ========== */

/* 双行对比胶囊进度条 */
.score-dual-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.score-capsule-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-capsule-label {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.5);
    width: 32px;
    flex-shrink: 0;
}

.score-capsule-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.score-capsule-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.score-capsule-bar.old {
    background: rgba(255,255,255,0.2);
}

.score-capsule-bar.pro {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    box-shadow: 0 0 8px rgba(139,92,246,0.4);
}

.score-capsule-bar.pro.glow {
    animation: barGlow 0.6s ease-out;
}

@keyframes barGlow {
    0% { box-shadow: 0 0 20px rgba(139,92,246,0.8), 0 0 40px rgba(139,92,246,0.4); }
    100% { box-shadow: 0 0 8px rgba(139,92,246,0.4); }
}

/* 变化浮动标签 */
.score-change-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 36px;
    text-align: center;
}

.score-change-badge.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.score-change-badge.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* 指数总分特殊样式 */
.score-index-row {
    background: rgba(139,92,246,0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.score-index-row .score-capsule-label {
    font-weight: bold;
    color: rgba(255,255,255,0.8);
}

.score-index-row .score-capsule-bar.pro {
    height: 12px;
    background: linear-gradient(90deg, #7C3AED, #A78BFA);
}

.score-index-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #C4B5FD;
    text-shadow: 0 0 10px rgba(139,92,246,0.5);
}

.score-index-change {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========== 7. 深度人格画像重做 ========== */

.pro-portrait-text {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: #CBD5E1;
    letter-spacing: 0.3px;
}

.portrait-para {
    display: block;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease both;
}

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

/* ========== 8. 子维度网格 ========== */

.sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.sub-item {
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 0.5rem 0.375rem;
    text-align: center;
    transition: all 0.2s ease;
}

.sub-item:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

.sub-name {
    font-size: 0.5625rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.125rem;
}

.sub-score {
    font-size: 1rem;
    font-weight: 700;
    color: #A78BFA;
}

/* ========== 10. 闪卡镭射效果 ========== */
/* 镭射效果已移至 result.html 内联样式中（.hero-flip-back.laser-active） */
.holo-laser-layer { display: none; }

/* ========== 11. 专业版卡片居中 ========== */
.pro-cards.visible {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pro-analysis-row {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pro-analysis-row .pro-card {
    max-width: 100%;
}

.pro-card-portrait {
    max-width: 480px;
    margin: 0 auto;
}

.silver-elite-border {
    border-radius: 16px;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 0 30px rgba(167,139,250,0.5), 
        0 0 60px rgba(139,92,246,0.3),
        0 0 100px rgba(139,92,246,0.15),
        inset 0 0 20px rgba(167,139,250,0.2);
}

.silver-elite-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px;
    background: conic-gradient(from var(--border-angle, 0deg), 
        #C0C0C0, #E8E8E8, #A78BFA, #F5F5F5, 
        #C0C0C0, #8B5CF6, #E8E8E8, #C4B5FD, 
        #D4D4D4, #A78BFA, #F0F0F0, #C0C0C0
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 10;
    pointer-events: none;
    animation: borderRotate 4s linear infinite;
}

.silver-elite-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 0 25px rgba(167,139,250,0.3), 0 0 50px rgba(139,92,246,0.15), inset 0 0 20px rgba(255,255,255,0.05);
    animation: eliteBreath 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes eliteBreath {
    0%, 100% { box-shadow: 0 0 20px rgba(167,139,250,0.25), 0 0 40px rgba(139,92,246,0.1), inset 0 0 15px rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 35px rgba(167,139,250,0.4), 0 0 70px rgba(139,92,246,0.2), inset 0 0 30px rgba(255,255,255,0.08); }
}

/* 翻牌后的银色边框 - 增强版 */
.hero-flip-back.flipped-silver {
    border: none;
    box-shadow: none;
}

.hero-flip-back.flipped-silver > * {
    position: relative;
    z-index: 1;
}

.flipped-silver-wrap {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(
        135deg,
        #B8B8B8 0%,
        #E8E8E8 20%,
        #D0D0D0 35%,
        #F5F5F5 50%,
        #C0C0C0 65%,
        #E0E0E0 80%,
        #A8A8A8 100%
    );
    background-size: 400% 400%;
    animation: flippedSilverAnim 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(192,192,192,0.4), 0 0 60px rgba(192,192,192,0.2);
}

@keyframes flippedSilverAnim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 觉醒状态的银色边框 */
.awakening.silver-elite-border {
    animation: awakeningWithSilver 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes awakeningWithSilver {
    0% { transform: scale(1); }
    15% { transform: scale(1.02); }
    30% { transform: scale(1); }
    100% { }
}

/* ========== 深色模式增强 ========== */

.pro-mode .card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.pro-card {
    background: #1A1A2E;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.pro-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pro-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.pro-card-body {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

/* ========== 觉醒按钮 ========== */
.awaken-btn-wrap {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}
.awaken-btn-wrap.hidden { display: none; }

.awaken-btn-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50px;
    background: radial-gradient(ellipse at center, rgba(139,92,246,0.35) 0%, rgba(139,92,246,0.08) 50%, transparent 70%);
    animation: awakenGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes awakenGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.awaken-btn-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50px;
    border: 1.5px solid rgba(167,139,250,0.4);
    animation: awakenRingPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes awakenRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; border-color: rgba(167,139,250,0.4); }
    50% { transform: scale(1.06); opacity: 0.8; border-color: rgba(167,139,250,0.7); }
}

.awaken-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 40%, #C4B5FD 60%, #8B5CF6 100%);
    background-size: 200% 200%;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(139,92,246,0.4),
        0 0 40px rgba(139,92,246,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation: awakenBtnShimmer 4s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
@keyframes awakenBtnShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.awaken-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(139,92,246,0.3), 0 0 20px rgba(139,92,246,0.1);
}
.awaken-btn-icon {
    font-size: 0.9rem;
    display: inline-block;
    animation: awakenIconSpin 6s linear infinite;
}
@keyframes awakenIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.awaken-btn-text {
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* 镭射闪光层 */
.holo-shimmer-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
}

.holo-sweep-main {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(167,139,250,0) 20%,
        rgba(167,139,250,0.18) 28%,
        rgba(251,191,36,0.2) 34%,
        rgba(244,114,182,0.15) 40%,
        rgba(96,165,250,0.2) 46%,
        rgba(52,211,153,0.15) 52%,
        rgba(167,139,250,0.18) 60%,
        rgba(167,139,250,0) 75%,
        transparent 100%
    );
    background-size: 300% 300%;
    animation: balatroShimmer 3.5s ease-in-out infinite;
    mix-blend-mode: screen;
}

.holo-sweep-sub {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        75deg,
        transparent 30%,
        rgba(196,181,253,0.12) 40%,
        rgba(252,211,77,0.14) 46%,
        rgba(249,168,212,0.1) 50%,
        rgba(147,197,253,0.14) 56%,
        rgba(196,181,253,0.12) 62%,
        transparent 70%
    );
    background-size: 250% 200%;
    animation: balatroShimmer2 7s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes balatroShimmer {
    0% { background-position: 100% 0%; }
    33% { background-position: 0% 100%; }
    66% { background-position: 50% 50%; }
    100% { background-position: 100% 0%; }
}

@keyframes balatroShimmer2 {
    0% { background-position: 0% 100%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 100%; }
}

/* 响应式优化 */
@media (max-width: 480px) {
    .score-comparison-wrap {
        font-size: 2.5rem;
    }
    
    .sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-flip-back.silver-border::before {
        animation-duration: 2s;
    }
}

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
