/* Talent Lab Final Style (V7.8 - 黄金比例精修版) 
   核心优化：极简页脚布局、收紧底部冗余间距、强化黑榜视觉深度
*/

/* --- 1. 基础重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh; 
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
    background-color: #F7F8FA;
    color: #374151;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* --- 2. 首页 (Home Page) --- */
.home-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 60px 30px;
    background: radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(0, 242, 254, 0.05) 0%, transparent 40%), #F7F8FA;
}

.hero-section h1 {
    font-size: 34px; line-height: 1.3; text-align: center; font-weight: 800; color: #111827; margin-top: 30px;
    letter-spacing: -0.5px;
}

.input-glass {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; padding: 18px; margin-bottom: 25px;
}

.input-glass input {
    width: 100%; border: none; background: transparent; outline: none;
    text-align: center; font-size: 18px; letter-spacing: 6px; color: #1F2937; font-weight: 600;
}

#startBtn {
    width: 100%; height: 60px; border: none; border-radius: 30px; font-size: 17px; font-weight: 700;
    color: white; background: #D1D5DB; transition: all 0.4s ease;
}

#startBtn.active {
    background: linear-gradient(135deg, #7C3AED 0%, #10B981 100%);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3);
}

/* --- 3. 答题页 (Quiz Page) --- */
.quiz-page { padding: 25px 20px 80px 20px; }

.progress-container {
    width: 100%; height: 6px; background: #E5E7EB; border-radius: 10px; margin: 40px 0; position: relative;
}

.progress-bar {
    width: 0%; height: 100%; background: #7C3AED; border-radius: 10px; transition: width 0.5s ease;
}

.question-card {
    background: #FFFFFF; border-radius: 32px; padding: 40px 28px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03); border: 1px solid rgba(0,0,0,0.01);
}

.question-text { font-size: 22px; line-height: 1.4; color: #111827; font-weight: 700; margin-bottom: 35px; }

.opt-btn {
    width: 100%; padding: 18px 22px; margin-bottom: 14px; border: 1.5px solid #F3F4F6;
    background: #F9FAFB; border-radius: 18px; font-size: 16px; color: #374151; text-align: left;
    transition: all 0.2s ease;
}

/* --- 4. 结果页 (Result Page) --- */
.report-container { 
    padding: 30px 24px 5px 24px; 
    background: #F7F8FA; 
}

#talentTitle { font-size: 32px; color: #111827; margin-bottom: 8px; font-weight: 900; letter-spacing: -1px; }

.section-title { 
    font-size: 17px; 
    font-weight: 800; 
    margin: 40px 0 18px; 
    color: #1F2937; 
    display: flex; 
    align-items: center; 
}
.section-title::before { content: ""; width: 4px; height: 16px; background: #7C3AED; margin-right: 8px; border-radius: 2px; }

/* --- 能量图谱 --- */
.score-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    margin: 20px 0 10px; 
}
.score-card { background: white; padding: 16px 14px; border-radius: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.01); border: 1px solid rgba(0,0,0,0.02); }
.card-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; font-weight: 800; color: #4B5563; }

.bar-bg { width: 100%; height: 6px; background: #F3F4F6; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #6EE7B7 0%, #34D399 100%); border-radius: 10px; }

/* --- 形态诊断 --- */
#distributionModule {
    margin: 10px 0 35px 0; 
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#distributionModule p {
    font-size: 13.5px;
    line-height: 1.8;
    color: #4B5563;
    margin-top: 10px;
    letter-spacing: 0.2px;
}

/* --- 深度解析 --- */
.interpretation-box { 
    background: white; 
    border-radius: 24px; 
    padding: 25px; 
    margin-bottom: 35px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.dive-item { margin-bottom: 25px; }
.dive-item p { font-size: 14.5px; line-height: 1.8; color: #4B5563; margin-top: 10px; }

/* --- 搞钱避雷指南 --- */
.compass-box { margin-bottom: 10px; }
.compass-box .list { 
    padding: 24px; 
    border-radius: 24px; 
    margin-bottom: 20px; 
}

.compass-box .red { background: #F0FDF4; border-left: 6px solid #10B981; }
.compass-box .black { background: #FFF1F2; border-left: 6px solid #F43F5E; }

.compass-box .red div {
    margin-bottom: 14px;
    line-height: 1.7;
}

.compass-box .red b {
    display: block; 
    color: #064E3B; 
    font-size: 15px; 
    margin-bottom: 4px;
    font-weight: 800;
}

.compass-box h3 { font-size: 17px; font-weight: 800; margin-bottom: 15px; color: #111827; }

/* --- 页脚：超纯净收紧版 --- */
.report-footer { 
    font-size: 11px; 
    color: #9CA3AF; 
    text-align: center; 
    margin-top: 15px; 
    padding-bottom: 15px; 
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* --- 入场动画 --- */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 底部操作栏 --- */
.action-bar {
    position: sticky; bottom: 0; width: 100%; padding: 20px;
    background: rgba(247, 248, 250, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    z-index: 100; border-top: 1px solid rgba(0,0,0,0.05);
}

.save-btn {
    width: 100%; height: 56px; background: #111827; color: white; border: none;
    border-radius: 28px; font-size: 16px; font-weight: 700;
}

#captureArea { width: 100%; max-width: 500px; margin: 0 auto; }