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

/* 性能优化 - 硬件加速 */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 优化动画性能 - 使用GPU加速 */
.option-item,
.btn-primary,
.btn-secondary,
.question-card,
.rpi-result-card,
.test-header-icon,
.progress-fill,
.rpi-slider-handle {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* 优化滚动性能 */
.test-content,
.answer-sheet-panel {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translate3d(0, 0, 0);
}

:root {
    /* 主色调 - 热恋甜蜜与神秘深度 */
    --primary-color: #FF6B9D;
    --primary-light: #FF8FB3;
    --primary-dark: #E84A7A;
    --primary-ultra-light: #FFE4EC;
    
    /* 辅助主色 - 优雅紫色 */
    --secondary-color: #9B59B6;
    --secondary-light: #BB8FCE;
    --secondary-dark: #7D3C98;
    
    /* 辅助色 */
    --accent-pink: #FFE4EC;
    --accent-orange: #F39C12;
    --accent-orange-light: #F7B84D;
    
    /* 状态色 */
    --success-color: #55D4A6;
    --success-light: #8EEAC5;
    --success-bg: rgba(85, 212, 166, 0.15);
    
    --warning-color: #F39C12;
    --warning-light: #F7B84D;
    --warning-bg: rgba(243, 156, 18, 0.15);
    
    --danger-color: #E74C3C;
    --danger-light: #EC7063;
    --danger-bg: rgba(231, 76, 60, 0.15);
    
    /* 背景色 */
    --bg-color: #FFE4EC;
    --bg-secondary: #F8E8F0;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-hover: rgba(255, 255, 255, 1);
    
    /* 文字颜色 */
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-tertiary: #BDC3C7;
    --text-inverse: #FFFFFF;
    
    /* 边框和分割线 */
    --border-color: #F0D0D8;
    --border-light: #F8E8F0;
    --divider-color: #F0D0D8;
    
    /* 阴影 - 更柔和的层次 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 20px -4px rgba(0, 0, 0, 0.12), 0 6px 8px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    
    /* 字体大小系统 */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;      /* 18px */
    --text-xl: 1.25rem;       /* 20px */
    --text-2xl: 1.5rem;       /* 24px */
    --text-3xl: 1.875rem;     /* 30px */
    --text-4xl: 2.25rem;      /* 36px */
    --text-5xl: 3rem;         /* 48px */
    
    /* 间距系统 */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 0.75rem;   /* 12px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #FFE4EC 0%, #F8E8F0 50%, #E8D5E8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.75;
    letter-spacing: 0.015em;
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
    /* 优化滚动性能 */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* 减少重绘 */
    contain: layout style paint;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 107, 157, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(155, 89, 182, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.35), transparent);
    animation: starDrift 40s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}

@keyframes starDrift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -50px, 0); }
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

.page {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* 引言页面样式 */
.intro-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-xl);
    margin-top: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
}

.intro-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

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

.intro-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.heart-illustration {
    width: clamp(100px, 15vw, 140px);
    height: clamp(100px, 15vw, 140px);
    filter: drop-shadow(0 12px 28px rgba(255, 107, 157, 0.35));
}

.heart-path {
    animation: heartbeat 2s ease-in-out infinite;
    transform-origin: center;
}

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1.05); }
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 { animation-delay: 0s; }
.sparkle-2 { animation-delay: 0.5s; }
.sparkle-3 { animation-delay: 1s; }
.sparkle-4 { animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.main-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.intro-section {
    margin-bottom: 2rem;
}

.intro-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInLeft 0.8s ease-out;
    font-weight: 600;
    line-height: 1.4;
}

.intro-section h2 .icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

.intro-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: justify;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.intro-section p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.usage-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.usage-list li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-secondary);
}

.usage-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: 12px;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.01em;
    /* GPU加速 */
    transform: translate3d(0, 0, 0);
    will-change: transform, box-shadow;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    color: white;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 4px 14px rgba(255, 107, 157, 0.35);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8FB3, #BB8FCE);
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
}

.btn-primary:active {
    transform: translate3d(0, -1px, 0);
    transition: transform 0.1s ease;
}

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

.btn-primary .btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 157, 0); }
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid rgba(255, 107, 157, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translate3d(0, -1px, 0);
}

.btn-secondary:active {
    transform: translate3d(0, 0, 0);
    transition: transform 0.1s ease;
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 测试页面样式 */
.test-page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.test-page-container::before,
.test-page-container::after {
    display: none;
}

.test-header-wrapper {
    width: 100%;
    max-width: 800px;
    margin-bottom: 1.5rem;
    padding: 1.25rem 0;
}

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

.test-header-fixed {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.25rem 2rem;
    box-shadow: 0 2px 12px rgba(255, 107, 157, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    border-bottom: 1px solid rgba(255, 107, 157, 0.15);
    backdrop-filter: blur(10px);
}

.test-header-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.test-header-text h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.test-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.test-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFE4EC 0%, #F8E8F0 50%, #E8D5E8 100%);
}

.question-card-wrapper {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.12), 0 2px 8px rgba(155, 89, 182, 0.08);
    overflow: hidden;
    /* GPU加速 */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.test-content .dimension-label {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    padding: 1.25rem 2rem;
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.2);
}

.test-content .question-card {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    background: white;
    position: relative;
}

.test-content .question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B9D, #9B59B6);
    opacity: 0.3;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0 0 0;
    margin-top: 1.5rem;
    width: 100%;
    border-top: 2px solid rgba(255, 107, 157, 0.1);
    position: relative;
}

.test-navigation::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #FF6B9D, #9B59B6);
    border-radius: 2px;
}

.test-navigation .btn-secondary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #FFE4EC, #F8E8F0);
    color: var(--text-primary);
    border: 2px solid rgba(255, 107, 157, 0.2);
    font-weight: 500;
    transition: all 0.2s ease;
}

.test-navigation .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(155, 89, 182, 0.05));
    border-color: rgba(255, 107, 157, 0.4);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.15);
}

.test-navigation .btn-primary {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.test-navigation .btn-primary {
    transform: translate3d(0, 0, 0);
    will-change: transform, box-shadow;
}

.test-navigation .btn-primary:hover {
    background: linear-gradient(135deg, #FF8FB3, #BB8FCE);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
    transform: translate3d(0, -1px, 0);
}

.test-navigation .btn-primary:active {
    transform: translate3d(0, 0, 0);
    transition: transform 0.1s ease;
}

.test-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.test-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.test-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 157, 0.5);
    border-radius: 4px;
}

.test-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 157, 0.7);
}

/* 测试页面中的引言部分 */
.intro-section-in-test {
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    background: var(--card-bg);
    border-radius: 20px;
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.6s ease-out;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
}

.intro-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.heart-illustration {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 157, 0.3));
}

.main-title-in-test {
    font-size: var(--text-3xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.intro-section-card {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.intro-section-card:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.intro-section-card h2 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-2xl);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    line-height: 1.4;
}

.intro-section-card h2 .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.intro-section-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
    font-size: var(--text-lg);
}

.intro-section-card .usage-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.intro-section-card .usage-list li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
}

.intro-section-card .usage-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.test-instruction-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.6s ease-out;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.test-instruction {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    text-align: center;
    font-size: var(--text-lg);
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.question-item {
    background: var(--card-bg);
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 18px 35px rgba(155, 89, 182, 0.12);
    scroll-margin-top: 120px;
    position: relative;
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-left-width 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
    border: 1px solid #eae2ff;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.question-item.answered {
    border-left-color: var(--success-light);
    position: relative;
}

.question-item.answered::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 4rem;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, var(--success-light), var(--success-color));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.25);
    animation: checkMarkAppear 0.5s ease-out;
}

@keyframes checkMarkAppear {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.question-item.current {
    border-left-width: 6px;
    border-left-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.2), 0 18px 35px rgba(155, 89, 182, 0.18);
    transform: translate3d(0, 0, 0) scale(1.02);
    animation: currentPulse 2s ease-in-out infinite;
}

@keyframes currentPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.2), 0 18px 35px rgba(155, 89, 182, 0.18);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(155, 89, 182, 0.28), 0 22px 40px rgba(155, 89, 182, 0.2);
    }
}

.question-dimension-label {
    background: linear-gradient(135deg, #f8f5ff, #f0e8ff);
    color: var(--primary-dark);
    padding: 1.25rem 2rem 0.75rem;
    border-radius: 22px 22px 0 0;
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: none;
    letter-spacing: 0.08em;
}

.question-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: #fff;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.2);
    border: 2px solid rgba(155, 89, 182, 0.2);
    color: var(--primary-dark);
    z-index: 10;
}

.question-item.answered .question-number {
    background: linear-gradient(135deg, var(--success-light), var(--success-color));
    color: white;
    border-color: transparent;
}

.question-content {
    padding: 2rem;
    padding-top: 1.5rem;
}

.question-text {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.question-options {
    display: flex;
    flex-wrap: nowrap;          /* 一排显示，不换行 */
    gap: 0.85rem;
    width: 100%;
}

.question-options .option-item {
    animation: optionSlideIn 0.4s ease-out backwards;
    flex: 1 1 0;               /* 等分一排宽度 */
    min-width: 0;              /* 防止撑破容器 */
}

.question-options .option-item:nth-child(1) { animation-delay: 0.05s; }
.question-options .option-item:nth-child(2) { animation-delay: 0.1s; }
.question-options .option-item:nth-child(3) { animation-delay: 0.15s; }
.question-options .option-item:nth-child(4) { animation-delay: 0.2s; }
.question-options .option-item:nth-child(5) { animation-delay: 0.25s; }

.test-complete-section {
    max-width: 800px;
    margin: var(--spacing-3xl) auto var(--spacing-2xl);
    text-align: center;
    padding: var(--spacing-3xl);
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
}

.btn-complete {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.complete-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* 回到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFB6D9, #D4A5E8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    pointer-events: none;
    will-change: transform, opacity;
}

.scroll-to-top.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.scroll-to-top:active {
    transform: translate3d(0, -3px, 0);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

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

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

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.test-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
}

.test-header-icon svg {
    width: 22px;
    height: 22px;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.test-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.test-instruction {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF8FB3, #BB8FCE);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

.progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    height: 14px;
    width: 0%;
    background: linear-gradient(90deg, #ccbfff, #9f8bff);
    filter: blur(8px);
    opacity: 0.5;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.question-counter {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-weight: 500;
}

.counter-icon {
    width: 18px;
    height: 18px;
    animation: counterPulse 2s ease-in-out infinite;
}

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

/* 答题卡按钮 */
.answer-sheet-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid rgba(255, 107, 157, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.answer-sheet-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(155, 89, 182, 0.05));
    border-color: rgba(255, 107, 157, 0.4);
    color: var(--primary-color);
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

.answer-sheet-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.answer-sheet-label {
    font-weight: 500;
}

/* 答题卡面板 */
.answer-sheet-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--border-light);
}

.answer-sheet-panel.collapsed {
    transform: translateX(100%);
}

.answer-sheet-panel:not(.collapsed) {
    transform: translateX(0);
}

.answer-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.2);
}

.answer-sheet-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.answer-sheet-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.answer-sheet-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.answer-sheet-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.answer-sheet-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    padding: 1.5rem;
}

.answer-sheet-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    position: relative;
}

.answer-sheet-item.answered {
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    border-color: transparent;
}

.answer-sheet-item.unanswered {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    border-color: rgba(255, 107, 157, 0.2);
}

.answer-sheet-item.current {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
    transform: scale(1.1);
    z-index: 5;
}

.answer-sheet-item:hover {
    transform: translate3d(0, -2px, 0) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.answer-sheet-item.answered:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.answer-sheet-item.unanswered:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(155, 89, 182, 0.05));
    border-color: rgba(255, 107, 157, 0.4);
}

.test-content {
    margin-bottom: 2rem;
}

.dimension-label {
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
}

.dimension-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.question-card {
    background: white;
    border-radius: 0;
    padding: 2.5rem;
    box-shadow: none;
}

.question-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.question-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 32px;
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    color: white;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
    letter-spacing: 0.02em;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.option-item {
    padding: 1rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    width: 100%;
    justify-content: flex-start;
    color: var(--text-primary);
    font-weight: 400;
    /* GPU加速 */
    transform: translate3d(0, 0, 0);
    will-change: transform, border-color, background-color;
}

.option-item:hover {
    border-color: rgba(255, 107, 157, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(155, 89, 182, 0.05));
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.15);
}

.option-item.selected {
    border-color: var(--primary-color);
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
    font-weight: 500;
    position: relative;
    transform: translate3d(0, -1px, 0);
}

.option-item.selected::before {
    content: '✓';
    position: absolute;
    right: 1.25rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
    animation: checkMarkAppear 0.3s ease-out;
}

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

@keyframes selectPulse {
    0% { transform: scale(1) translateX(5px); }
    50% { transform: scale(1.05) translateX(5px); }
    100% { transform: scale(1) translateX(5px); }
}

.option-radio {
    display: none;
}

.option-item.selected .option-radio {
    display: none;
}

.option-text {
    flex: 1;
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.6;
}

.option-text {
    flex: 1;
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.6;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 157, 0.1);
}

/* 结果页面样式 */
.result-header {
    margin-bottom: var(--spacing-2xl);
}

.rpi-result-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    margin-bottom: var(--spacing-2xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: resultSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    /* GPU加速 */
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.rpi-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF6B9D, #9B59B6, #FF6B9D);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

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

.rpi-hearts {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.rpi-heart-small {
    width: 22px;
    height: 22px;
    animation: heartFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.3));
}

.rpi-heart-small:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.rpi-title {
    color: #FF6B9D;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    letter-spacing: 0.02em;
}

.rpi-score-display {
    margin: 1.5rem 0;
}

.rpi-score-number {
    font-size: 5rem;
    font-weight: 700;
    color: #FF6B9D;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rpi-score-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    color: white;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.rpi-description {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 1.5rem 0 2.5rem 0;
    line-height: 1.6;
}

.rpi-slider-container {
    margin-top: 2.5rem;
}

.rpi-slider-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #FFE4EC, #FF6B9D);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: visible;
}

.rpi-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D, #9B59B6);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-out;
}

.rpi-slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #FF6B9D, #E84A7A);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.5), 0 0 0 2px rgba(255, 107, 157, 0.2);
    left: 0%;
    transition: left 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.rpi-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.rpi-slider-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.rpi-label-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rpi-label-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.result-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: resultFloat 3s ease-in-out infinite;
}

.result-heart {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 12px 25px rgba(255, 107, 157, 0.35));
}

.result-heart-path {
    animation: resultHeartbeat 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes resultFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes resultHeartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.15); }
    20%, 40% { transform: scale(1.08); }
}

.result-header h1 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-2xl);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.total-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3), 0 4px 12px rgba(155, 89, 182, 0.2);
    position: relative;
    animation: scoreCircleAppear 1s ease-out;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB6D9, #D4A5E8);
    opacity: 0.3;
    filter: blur(10px);
    z-index: -1;
    animation: scoreGlow 2s ease-in-out infinite;
}

.score-circle-inner {
    position: relative;
    z-index: 1;
}

.score-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-progress {
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: ringDraw 1.5s ease-out forwards;
}

@keyframes scoreCircleAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes scoreGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes ringDraw {
    from {
        stroke-dashoffset: 565.48;
    }
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.score-level {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
}

.score-level.safe {
    background: #d1fae5;
    color: #065f46;
}

.score-level.alert {
    background: #fef3c7;
    color: #92400e;
}

.score-level.troubled {
    background: #fed7aa;
    color: #9a3412;
}

.score-level.risk {
    background: #fee2e2;
    color: #991b1b;
}

.result-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    animation: sectionFadeIn 0.6s ease-out backwards;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.result-section:nth-child(1) { animation-delay: 0.1s; }
.result-section:nth-child(2) { animation-delay: 0.2s; }
.result-section:nth-child(3) { animation-delay: 0.3s; }
.result-section:nth-child(4) { animation-delay: 0.4s; }
.result-section:nth-child(5) { animation-delay: 0.5s; }
.result-section:nth-child(6) { animation-delay: 0.6s; }
.result-section:nth-child(7) { animation-delay: 0.7s; }
.result-section:nth-child(8) { animation-delay: 0.8s; }

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

.result-section h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
    padding-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-section h2::before {
    content: '';
    width: 4px;
    height: 1.5em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: var(--text-lg);
    line-height: 1.7;
}

.level-description {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: var(--text-lg);
}

.dimensions-chart {
    display: grid;
    gap: 1.5rem;
}

.dimension-item {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    animation: dimensionSlideIn 0.5s ease-out backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.12);
}

.dimension-item:nth-child(1) { animation-delay: 0.1s; }
.dimension-item:nth-child(2) { animation-delay: 0.2s; }
.dimension-item:nth-child(3) { animation-delay: 0.3s; }
.dimension-item:nth-child(4) { animation-delay: 0.4s; }
.dimension-item:nth-child(5) { animation-delay: 0.5s; }

.dimension-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

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

.dimension-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-xl);
    letter-spacing: 0.01em;
}

.dimension-score {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-base);
}

.dimension-bar {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.dimension-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B9D, #9B59B6);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.dimension-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: barShine 2s infinite;
    border-radius: 6px;
}

@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.dimension-interpretation {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.7;
}

.triggers-list {
    display: grid;
    gap: 1rem;
}

.trigger-item {
    background: var(--bg-color);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.trigger-question {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.trigger-score {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recommendations {
    display: grid;
    gap: 1.5rem;
}

.recommendation-category {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: 12px;
    border-left: 4px solid var(--success-color);
    border: 1px solid var(--border-light);
}

.recommendation-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-xl);
    letter-spacing: 0.01em;
}

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

.recommendation-list li {
    padding: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-base);
}

.recommendation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* 最后寄语部分 */
.final-message-section {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(73, 198, 214, 0.12), rgba(255, 183, 77, 0.12));
    border-radius: 24px;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    margin: var(--spacing-3xl) 0 var(--spacing-2xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 107, 157, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: finalMessageAppear 1s ease-out;
    border: 2px solid rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(14px);
}

.final-message-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.wings-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: wingsFloat 3s ease-in-out infinite;
}

.wings-svg {
    width: 200px;
    height: 100px;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 157, 0.3));
}

.wing {
    animation: wingFlap 2.5s ease-in-out infinite;
    transform-origin: center;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.3));
}

.wing-left {
    animation-delay: 0s;
    transform-origin: 100px 100px;
}

.wing-right {
    animation-delay: 0.1s;
    transform-origin: 300px 100px;
}

.center-star {
    animation: starTwinkle 2s ease-in-out infinite;
}

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

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

@keyframes wingFlap {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.1);
    }
}

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

.final-message-text {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.8;
    margin: 0;
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.2), 0 0 20px rgba(155, 89, 182, 0.1);
    letter-spacing: 0.02em;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes finalMessageAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 10px rgba(255, 107, 157, 0.2), 0 0 20px rgba(155, 89, 182, 0.1);
    }
    50% {
        text-shadow: 0 4px 20px rgba(255, 107, 157, 0.4), 0 0 30px rgba(155, 89, 182, 0.2);
    }
}

/* 重要声明 */
.disclaimer-text {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.85;
    margin: 0;
    text-align: center;
}

.disclaimer-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.result-footer {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .intro-content {
        padding: 1.5rem;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .intro-section-in-test {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .main-title-in-test {
        font-size: 1.4rem;
    }

    .intro-section-card h2 {
        font-size: 1.1rem;
    }

    .heart-illustration {
        width: 80px;
        height: 80px;
    }

    .test-header-fixed {
        padding: 1rem 1.5rem;
    }

    .test-header-text h2 {
        font-size: 1.1rem;
    }

    .test-header-wrapper {
        margin-bottom: 1rem;
        padding: 1rem 0;
    }

    .test-header-icon {
        width: 36px;
        height: 36px;
    }

    .test-header-icon svg {
        width: 20px;
        height: 20px;
    }

    .test-header-text h2 {
        font-size: 1.1rem;
    }

    .test-content {
        padding: 1rem;
    }

    .question-card-wrapper {
        border-radius: 16px;
    }

    .test-content .question-card {
        padding: 1.5rem;
    }

    .test-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .test-navigation {
        flex-direction: column;
        padding: 1rem 0 0 0;
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .test-navigation button {
        width: 100%;
    }

    .option-item {
        width: 100%;
        justify-content: flex-start;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .question-number {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        top: 0.75rem;
        right: 1rem;
    }

    .question-item.answered::after {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        top: 0.75rem;
        right: 3.5rem;
    }

    .question-dimension-label {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .question-options {
        flex-wrap: wrap;
    }

    .disclaimer-text {
        font-size: var(--text-sm);
        line-height: 1.7;
    }

    .result-footer {
        flex-direction: column;
    }

    .result-footer button {
        width: 100%;
    }

    .final-message-section {
        padding: 2.5rem 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .final-message-text {
        font-size: var(--text-2xl);
        line-height: 1.7;
    }

    .wings-svg {
        width: 150px;
        height: 75px;
    }

    /* 答题卡响应式 */
    .answer-sheet-panel {
        width: 100%;
        max-width: 100vw;
    }

    .answer-sheet-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
        padding: 1rem;
    }

    .answer-sheet-item {
        font-size: 0.8rem;
    }

    .answer-sheet-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .answer-sheet-label {
        display: none;
    }
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 157, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.spinner-path {
    stroke: white;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

/* 问题卡片动画 */
/* 移除旧的question-card样式，使用新的question-item */

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

/* 维度标签动画 */
.dimension-label {
    animation: labelSlideIn 0.5s ease-out;
}

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

/* 健康度卡片动画 */
.health-score-card {
    animation: healthCardIn 0.8s ease-out;
}

@keyframes healthCardIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 推荐卡片动画 */
.recommendation-category {
    animation: recommendationSlideIn 0.6s ease-out backwards;
}

.recommendation-category:nth-child(1) { animation-delay: 0.1s; }
.recommendation-category:nth-child(2) { animation-delay: 0.2s; }
.recommendation-category:nth-child(3) { animation-delay: 0.3s; }
.recommendation-category:nth-child(4) { animation-delay: 0.4s; }
.recommendation-category:nth-child(5) { animation-delay: 0.5s; }

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

/* 触发点动画 */
.trigger-item {
    animation: triggerSlideIn 0.5s ease-out backwards;
}

.trigger-item:nth-child(1) { animation-delay: 0.1s; }
.trigger-item:nth-child(2) { animation-delay: 0.2s; }
.trigger-item:nth-child(3) { animation-delay: 0.3s; }
.trigger-item:nth-child(4) { animation-delay: 0.4s; }

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

/* 维度详细项动画 */
.dimension-detail-item {
    animation: detailSlideIn 0.6s ease-out backwards;
}

.dimension-detail-item:nth-child(1) { animation-delay: 0.1s; }
.dimension-detail-item:nth-child(2) { animation-delay: 0.2s; }
.dimension-detail-item:nth-child(3) { animation-delay: 0.3s; }
.dimension-detail-item:nth-child(4) { animation-delay: 0.4s; }
.dimension-detail-item:nth-child(5) { animation-delay: 0.5s; }

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

/* 详细分析样式 */
.detailed-analysis {
    margin-top: 1.5rem;
}

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

.analysis-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.analysis-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.analysis-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.analysis-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 关系健康度评估样式 */
.health-assessment {
    margin-top: 1rem;
}

.health-score-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.health-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.health-score-circle.excellent {
    background: linear-gradient(135deg, #55D4A6, #3BAE82);
}

.health-score-circle.good {
    background: linear-gradient(135deg, #FF6B9D, #9B59B6);
}

.health-score-circle.fair {
    background: linear-gradient(135deg, #F9AA33, #FFB74D);
}

.health-score-circle.poor {
    background: linear-gradient(135deg, #FF6F61, #F83B4C);
}

.health-score-number {
    font-size: 1.5rem;
    line-height: 1;
}

.health-score-label {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.health-description {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.8;
}

.dimension-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dimension-health-item {
    background: var(--bg-color);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
}

.dimension-health-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.dimension-health-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-healthy {
    background: #d1fae5;
    color: #065f46;
}

.status-good {
    background: #dbeafe;
    color: #1e40af;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

.dimension-health-score {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 维度详细分析样式 */
.dimension-details {
    margin-top: 2rem;
}

.dimension-detail-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

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

.detail-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.severity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.severity-healthy {
    background: #d1fae5;
    color: #065f46;
}

.severity-mild {
    background: #dbeafe;
    color: #1e40af;
}

.severity-moderate {
    background: #fef3c7;
    color: #92400e;
}

.severity-severe {
    background: #fee2e2;
    color: #991b1b;
}

.detail-content {
    color: var(--text-primary);
    line-height: 1.8;
}

.detail-section {
    margin-top: 1rem;
}

.detail-section ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.detail-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 触发点分析样式 */
.trigger-analysis {
    margin-top: 2rem;
}

.trigger-analysis-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--warning-color);
}

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

.trigger-analysis-header h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.trigger-analysis-header span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trigger-analysis-content {
    color: var(--text-primary);
    line-height: 1.8;
}

/* 优先级列表样式 */
.priority-list {
    display: grid;
    gap: 1rem;
}

.priority-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    align-items: flex-start;
    animation: prioritySlideIn 0.5s ease-out backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.priority-item:nth-child(1) { animation-delay: 0.1s; }
.priority-item:nth-child(2) { animation-delay: 0.2s; }
.priority-item:nth-child(3) { animation-delay: 0.3s; }
.priority-item:nth-child(4) { animation-delay: 0.4s; }
.priority-item:nth-child(5) { animation-delay: 0.5s; }

.priority-item:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

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

.priority-item.priority-high {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.priority-item.priority-medium {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.priority-item.priority-low {
    border-left-color: var(--success-color);
}

.priority-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.priority-item.priority-high .priority-number {
    background: var(--danger-color);
}

.priority-item.priority-medium .priority-number {
    background: var(--warning-color);
}

.priority-item.priority-low .priority-number {
    background: var(--success-color);
}

.priority-content {
    flex: 1;
}

.priority-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.priority-title strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
}

.priority-score {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.priority-reason {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 行动计划样式 */
.action-plan {
    margin-top: 1rem;
}

.action-plan-timeline {
    display: grid;
    gap: 2rem;
}

.action-week {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    animation: weekSlideIn 0.6s ease-out backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-week:nth-child(1) { animation-delay: 0.1s; }
.action-week:nth-child(2) { animation-delay: 0.2s; }
.action-week:nth-child(3) { animation-delay: 0.3s; }
.action-week:nth-child(4) { animation-delay: 0.4s; }

.action-week:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.15);
}

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

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.week-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.week-theme {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.week-actions {
    display: grid;
    gap: 1rem;
}

.action-day {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: dayFadeIn 0.4s ease-out backwards;
}

.action-day:nth-child(1) { animation-delay: 0.05s; }
.action-day:nth-child(2) { animation-delay: 0.1s; }
.action-day:nth-child(3) { animation-delay: 0.15s; }
.action-day:nth-child(4) { animation-delay: 0.2s; }
.action-day:nth-child(5) { animation-delay: 0.25s; }
.action-day:nth-child(6) { animation-delay: 0.3s; }
.action-day:nth-child(7) { animation-delay: 0.35s; }

.action-day:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(255, 107, 157, 0.1);
    border-left-width: 5px;
}

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

.day-number {
    min-width: 60px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.day-action {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.6;
}

/* 常见问题样式 */
.faq-section {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    animation: faqSlideIn 0.5s ease-out backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
}

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

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.faq-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 2.5rem;
}
