/* 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;
}

.hero-subtitle {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #6B7280;
    text-align: center;
    font-weight: 500;
    max-width: 310px;
}

.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; }

.result-hero-card {
    background: linear-gradient(135deg, #F3E8FF 0%, #EEF2FF 48%, #ECFDF5 100%);
    border-radius: 28px;
    padding: 26px 22px 22px;
    margin: 0 0 28px 0;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    background: #7C3AED;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.result-hero-card h2 {
    font-size: 28px;
    line-height: 1.18;
    color: #111827;
    margin: 0 0 14px 0;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.result-hero-card .hero-subtitle {
    text-align: left;
    max-width: none;
    width: 100%;
    font-size: 17px;
    line-height: 1.82;
    color: #1F2937;
    margin: 0 0 18px 0;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.result-hero-card .hero-subtitle b {
    color: #7C3AED;
    font-weight: 900;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.hero-tags span {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #6D28D9;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

/* --- V2.1 优势发挥模块：小红书视觉精修版 --- */

.interpretation-box {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 34px;
    box-shadow: none;
}

/* 主卡：更像小红书结果卡，不像数据面板 */
.dive-card-main {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF7 58%, #F7F3FF 100%);
    border-radius: 28px;
    padding: 24px 22px 22px;
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.07);
    border: 1px solid rgba(124, 58, 237, 0.05);
}

.dive-card-main::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.09);
    pointer-events: none;
}

.dive-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 13px;
}

.dive-topline .dive-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.22);
}

.dive-topline strong {
    font-size: 22px;
    line-height: 1.2;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.dive-topline b {
    margin-left: auto;
    color: #7C3AED;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.4px;
}

/* 进度条：改成柔和能量条 */
.dive-score-bar {
    position: relative;
    z-index: 1;
    height: 9px;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 18px;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.05);
}

.dive-score-bar div {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #C4B5FD 52%, #6EE7B7 100%);
    border-radius: 999px;
}

/* 主卡正文 */
.dive-main-text {
    position: relative;
    z-index: 1;
    color: #374151;
    line-height: 1.78;
    font-size: 14.8px;
    margin: 0 0 14px 0;
    white-space: pre-line;
    letter-spacing: 0.1px;
}

/* 提示块：减少报告感，变成柔和贴纸感 */
.dive-note {
    position: relative;
    z-index: 1;
    margin-top: 11px;
    padding: 13px 14px;
    border-radius: 18px;
    line-height: 1.72;
    font-size: 13.8px;
}

.dive-note strong {
    font-weight: 900;
}

.dive-note.purple {
    color: #5B21B6;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.dive-note.warm {
    color: #92400E;
    background: rgba(255, 251, 235, 0.86);
    border: 1px solid rgba(245, 158, 11, 0.08);
}

/* 副卡容器 */
.dive-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

/* 副卡：变轻、变柔、变像结果长图 */
.dive-sub-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 20px 20px 20px;
    border: 1px solid rgba(124, 58, 237, 0.05);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.dive-sub-card.light-purple {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F3FF 100%);
}

.dive-sub-card.light-green {
    background: linear-gradient(135deg, #FFFFFF 0%, #ECFDF5 100%);
}

.dive-sub-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -36px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    pointer-events: none;
}

.mini-score-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mini-score-row span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #6B7280;
    font-size: 12.5px;
    font-weight: 900;
    line-height: 1;
}

.mini-score-row b {
    color: #7C3AED;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
    line-height: 1;
}

.dive-sub-card h4 {
    position: relative;
    z-index: 1;
    font-size: 22px;
    line-height: 1.22;
    color: #111827;
    font-weight: 900;
    margin: 0 0 11px 0;
    letter-spacing: -0.4px;
}

/* 副卡能量条：细一点，别太像后台图表 */
.mini-bar {
    position: relative;
    z-index: 1;
    height: 7px;
    width: 100%;
    background: rgba(229, 231, 235, 0.72);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 13px;
}

.mini-bar div {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #C4B5FD 52%, #6EE7B7 100%);
    border-radius: 999px;
}

.dive-sub-card p {
    position: relative;
    z-index: 1;
    font-size: 14.2px;
    line-height: 1.72;
    color: #4B5563;
    margin: 0;
}

/* --- V2.1 天赋分数图：小红书视觉版 --- */

.radar-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 18px 16px 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(124, 58, 237, 0.05);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.radar-note {
    margin: 2px 2px 10px;
    padding: 14px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F5F3FF 0%, #ECFDF5 100%);
    color: #374151;
    font-size: 13.6px;
    line-height: 1.7;
    font-weight: 600;
}

.radar-note strong {
    display: inline-block;
    color: #5B21B6;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 2px;
}

#radarChart {
    width: 100%;
    height: 315px;
    margin: 0 auto;
}

/* --- V2.1 各项天赋分数：能力清单精修版 --- */

.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0 10px;
}

.score-note {
    grid-column: 1 / -1;
    padding: 14px 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F7F3FF 0%, #F4FBF8 100%);
    color: #374151;
    font-size: 13.5px;
    line-height: 1.7;
    font-weight: 600;
    margin-bottom: 4px;
}

.score-note strong {
    color: #5B21B6;
    font-weight: 900;
}

.score-card-v2 {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 13px 13px 12px;
    border: 1px solid rgba(124, 58, 237, 0.045);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.026);
}

.score-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.score-name {
    font-size: 16px;
    line-height: 1.25;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.score-value {
    color: #7C3AED;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.score-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 900;
}

.score-tag.core {
    color: #6D28D9;
    background: rgba(124, 58, 237, 0.10);
}

.score-tag.support {
    color: #047857;
    background: rgba(16, 185, 129, 0.10);
}

.score-tag.normal {
    color: #6B7280;
    background: rgba(124, 58, 237, 0.07);
}

.score-tag.soft {
    color: #6B7280;
    background: rgba(107, 114, 128, 0.10);
}

.score-bar-v2 {
    width: 100%;
    height: 6px;
    background: #F1F5F9;
    border-radius: 999px;
    overflow: hidden;
}

.score-bar-v2 div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8B5CF6 0%, #C4B5FD 52%, #6EE7B7 100%);
}