/*
 * ┌──────────────────────────────────────────────┐
 * │ 菏泽明浩心理咨询服务有限公司 - 原创样式文件 │
 * │ © 2026 版权所有，未经许可禁止商业使用       │
 * │ 网站：https://www.love884.com                │
 * │ 备案号：鲁ICP备2022041703号                  │
 * └──────────────────────────────────────────────┘
 */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 可爱 Pastel 色系 */
    --bg-primary: #fdf2f8;       /* 淡粉背景 */
    --bg-secondary: #fef9ff;
    --bg-card: #ffffff;
    --accent-pink: #ec4899;      /* 主色：粉红 */
    --accent-mint: #10b981;      /* 薄荷绿 */
    --accent-sky: #3b82f6;       /* 天蓝 */
    --accent-yellow: #f59e0b;    /* 奶油黄 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-glow: 0 0 20px rgba(236, 72, 153, 0.2);
}

html, body {
    height: 100%;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fdf2f8 0%, #f0f9ff 50%, #f5f3ff 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 答题选项：垂直排列 */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* 选项之间的间距 */
    width: 100%;
    padding: 0 20px 40px;
}

.option-btn {
    width: 100%; /* 每个按钮占满宽度 */
    text-align: center;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 页面切换 */
.page {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    display: flex;
}

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

/* 首页样式 */
.home-page {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.logo-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    position: relative;
}

.logo-icon::before {
    content: '🐱';
    font-size: 80px;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.3));
}

.main-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 400;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.intro-card h3 {
    font-size: 16px;
    color: var(--accent-pink);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.intro-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.dimensions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.dim-tag {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.btn-primary {
    width: 100%;
    max-width: 280px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-mint));
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

/* 答题页 */
.quiz-page {
    padding: 0;
}

.quiz-header {
    padding: 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-mint));
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

.option-btn {
    padding: 16px 20px;
    font-size: 16px;
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-btn:hover {
    border-color: var(--accent-pink);
    color: var(--text-primary);
    background: rgba(236, 72, 153, 0.05);
}

.option-btn.selected {
    border-color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.1);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.quiz-footer {
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* 结果页 */
.result-page {
    padding: 20px 0;
}

.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.total-score {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.interpretation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.interpretation-card h3 {
    font-size: 16px;
    color: var(--accent-mint);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: center;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid var(--accent-pink);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 响应式 */
@media (min-width: 501px) {
    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 20px;
        height: auto;
        min-height: 100vh;
    }
    .container {
        min-height: auto;
        border-radius: 24px;
        box-shadow: 0 10px 40px rgba(236, 72, 153, 0.15);
        overflow: visible;
    }
}