/* 职场魔法 WCTI - 温暖手绘风格 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --warm-cream: #FFF8F0;
    --warm-beige: #F5EBE0;
    --soft-coral: #E8A598;
    --dusty-rose: #D4A5A5;
    --warm-brown: #8B7355;
    --deep-brown: #5D4E37;
    --soft-peach: #FFDAB9;
    --mint-green: #B8D4C8;
    --soft-lavender: #D4C4E0;
    --text-dark: #3D3D3D;
    --text-medium: #6B6B6B;
    --text-light: #9B9B9B;
    --paper-white: #FFFEF9;
    --shadow-soft: 0 4px 20px rgba(139, 115, 85, 0.1);
    --shadow-hover: 0 8px 30px rgba(139, 115, 85, 0.15);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--warm-cream);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(232, 165, 152, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 212, 200, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 196, 224, 0.1) 0%, transparent 70%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 100vh;
}

.page {
    display: none;
    opacity: 0;
}

.page.active {
    display: block;
    animation: gentleFadeIn 0.6s ease forwards;
}

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

.hidden { display: none !important; }

/* ===== 欢迎页面 ===== */
.welcome-content {
    background: var(--paper-white);
    border-radius: 32px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-top: 40px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(139, 115, 85, 0.08);
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, var(--soft-coral), var(--dusty-rose), var(--soft-lavender));
    border-radius: 3px;
}

.logo { margin-bottom: 36px; }

.logo-icon {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon .star {
    font-size: 28px;
    color: var(--soft-coral);
    opacity: 0.9;
    animation: gentleFloat 3s ease-in-out infinite;
}

.logo-icon .star:nth-child(1) { animation-delay: 0s; }
.logo-icon .star:nth-child(2) { animation-delay: 0.3s; }
.logo-icon .star:nth-child(3) { animation-delay: 0.6s; }

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

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--deep-brown);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 17px;
    color: var(--text-medium);
    font-weight: 500;
}

.intro-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
    text-align: left;
}

.intro-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--warm-beige);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 115, 85, 0.06);
}

.intro-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-soft);
}

.intro-icon {
    font-size: 26px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.08);
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.intro-text strong {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.intro-text span {
    font-size: 13px;
    color: var(--text-light);
}

.time-estimate {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.work-decoration {
    position: absolute;
    font-size: 36px;
    opacity: 0.25;
    animation: floatAround 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.work-decoration.top-left {
    top: 24px;
    left: 24px;
    animation-delay: 0s;
}

.work-decoration.top-right {
    top: 24px;
    right: 24px;
    animation-delay: 1.5s;
}

.work-decoration.bottom-left {
    bottom: 24px;
    left: 24px;
    animation-delay: 3s;
}

.work-decoration.bottom-right {
    bottom: 24px;
    right: 24px;
    animation-delay: 4.5s;
}

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

.work-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px 0;
}

.work-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--soft-peach), var(--warm-beige));
    border-radius: 50px;
    font-size: 13px;
    color: var(--warm-brown);
    border: 1px solid rgba(139, 115, 85, 0.12);
    font-weight: 500;
    animation: badgeBounce 2s ease-in-out infinite;
}

.work-badge:nth-child(1) { animation-delay: 0s; }
.work-badge:nth-child(2) { animation-delay: 0.3s; }
.work-badge:nth-child(3) { animation-delay: 0.6s; }
.work-badge:nth-child(4) { animation-delay: 0.9s; }

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

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(232, 165, 152, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--soft-coral), var(--dusty-rose));
    color: white;
    box-shadow: 0 4px 16px rgba(232, 165, 152, 0.35);
    width: 100%;
    max-width: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232, 165, 152, 0.45);
}

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

.btn-outline {
    background: transparent;
    color: var(--warm-brown);
    border: 2px solid var(--dusty-rose);
}

.btn-outline:hover {
    background: var(--dusty-rose);
    color: white;
}

.btn-nav {
    padding: 12px 24px;
    background: var(--warm-beige);
    color: var(--text-dark);
    min-width: 90px;
    border-radius: 50px;
    font-size: 14px;
}

.btn-nav:hover:not(:disabled) {
    background: var(--soft-coral);
    color: white;
}

.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 测试页面 ===== */
.quiz-header {
    background: var(--paper-white);
    border-radius: 24px;
    padding: 20px 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 115, 85, 0.06);
}

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

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
}

.progress-bar {
    height: 10px;
    background: var(--warm-beige);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--soft-coral), var(--dusty-rose));
    border-radius: 5px;
    width: 0%;
    transition: width 0.5s ease;
}

.quiz-container {
    background: var(--paper-white);
    border-radius: 32px;
    padding: 36px 28px;
    margin-top: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 115, 85, 0.06);
    position: relative;
    z-index: 1;
}

.dimension-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.dimension-label {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--soft-peach), var(--warm-beige));
    color: var(--warm-brown);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.question-card { margin-bottom: 28px; }

.question-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 28px;
    color: var(--text-dark);
    text-align: center;
}

/* ===== 五级量表 ===== */
.scale-wrapper { margin-bottom: 16px; }

.scale-labels-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.scale-label-text {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.options-container {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.scale-option .option-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--warm-beige);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.scale-option:hover .option-circle {
    border-color: var(--soft-coral);
    background: var(--soft-peach);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(232, 165, 152, 0.25);
}

.scale-option.selected .option-circle {
    background: linear-gradient(135deg, var(--soft-coral), var(--dusty-rose));
    border-color: var(--soft-coral);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(232, 165, 152, 0.35);
}

.scale-option .option-label {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    max-width: 56px;
    line-height: 1.3;
}

/* ===== 导航栏 ===== */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--warm-beige);
}

.page-indicator .current-dot {
    width: 8px;
    height: 8px;
    background: var(--soft-coral);
    border-radius: 50%;
}

/* ===== 结果页面 ===== */
.result-container {
    background: var(--paper-white);
    border-radius: 32px;
    padding: 40px 32px;
    margin-top: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(139, 115, 85, 0.06);
    position: relative;
    z-index: 1;
}

.result-header {
    text-align: center;
    margin-bottom: 28px;
}

.result-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--soft-peach), var(--soft-lavender));
    color: var(--deep-brown);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.result-code {
    font-size: 44px;
    font-weight: 800;
    color: var(--soft-coral);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.result-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.result-nickname {
    font-size: 17px;
    color: var(--dusty-rose);
    font-weight: 600;
    margin-bottom: 8px;
}

.result-tagline {
    font-size: 15px;
    color: var(--text-medium);
    font-style: italic;
}

/* ===== 维度得分 ===== */
.dimensions-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.dimension-item {
    background: var(--warm-beige);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
}

.dimension-name {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.dimension-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--warm-brown);
}

.dimension-bar {
    height: 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.dimension-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.dimension-percentage {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}

/* ===== 结果卡片 ===== */
.result-card {
    background: var(--warm-cream);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
}

.result-section {
    padding: 18px 0;
    border-bottom: 1px dashed rgba(139, 115, 85, 0.15);
}

.result-section:first-child { padding-top: 0; }
.result-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-icon { font-size: 18px; }

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.result-section p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
}

.result-section ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.result-section li {
    font-size: 13px;
    color: var(--text-medium);
    padding: 12px 16px;
    background: var(--paper-white);
    border-radius: 12px;
    border-left: 3px solid var(--soft-coral);
    line-height: 1.6;
}

.careers-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.career-tag {
    padding: 8px 16px;
    background: var(--paper-white);
    color: var(--warm-brown);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--warm-beige);
}

/* ===== 操作按钮 ===== */
.result-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.result-actions .btn {
    flex: 1;
    max-width: none;
}

.result-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed rgba(139, 115, 85, 0.15);
}

.result-footer p {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .container { padding: 16px; }
    
    .welcome-content,
    .quiz-container,
    .result-container {
        padding: 32px 24px;
        border-radius: 28px;
    }
    
    .welcome-content { margin-top: 24px; }
    
    .logo h1 { font-size: 26px; }
    
    .question-text { font-size: 18px; }
    
    .options-container { gap: 10px; }
    
    .scale-option .option-circle {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    
    .result-code { font-size: 36px; }
    .result-name { font-size: 24px; }
    
    .dimensions-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .options-container { gap: 8px; }
    
    .scale-option .option-circle {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
    
    .scale-option .option-label {
        font-size: 10px;
        max-width: 48px;
    }
}

/* ===== 工作统计面板 ===== */
.work-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.work-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    background: var(--paper-white);
    border-radius: 20px;
    border: 1px solid var(--warm-beige);
    min-width: 100px;
}

.stat-icon {
    font-size: 28px;
    animation: pulseIcon 2s ease-in-out infinite;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--soft-coral);
}

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