/* ============================================================
   AstroBody — 报告页样式 (Report) · 顶级UI版
   ============================================================ */

/* ---------- 顶部导航 ---------- */
.top-nav.minimal {
    border-bottom: none;
    padding: var(--space-md) 0;
}

.top-nav.minimal .brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.top-nav.minimal .brand .logo-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.nav-link.ghost {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-link.ghost:hover {
    color: var(--brand-dark);
}

/* ---------- 报告容器 ---------- */
.report-content {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md) 0 var(--space-2xl);
}

/* ---------- 加载状态 ---------- */
.report-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) 0;
    gap: var(--space-md);
}

.loading-text {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ---------- 报告模块 ---------- */
.report-module {
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.5s ease both;
}

.report-module:nth-child(1) { animation-delay: 0.05s; }
.report-module:nth-child(2) { animation-delay: 0.10s; }
.report-module:nth-child(3) { animation-delay: 0.15s; }
.report-module:nth-child(4) { animation-delay: 0.20s; }
.report-module:nth-child(5) { animation-delay: 0.25s; }
.report-module:nth-child(6) { animation-delay: 0.30s; }
.report-module:nth-child(7) { animation-delay: 0.35s; }
.report-module:nth-child(8) { animation-delay: 0.40s; }

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

.module-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: var(--space-sm);
}

/* ---------- 模块1: 痛点共鸣 ---------- */
.pain-points-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pain-point-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.2s ease;
}

.pain-point-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(4px);
}

.pain-point-item .pp-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pain-point-item .pp-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- 模块2: 能量主型 ---------- */
.primary-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--brand-dark), #2A2A4A);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.2);
    position: relative;
    overflow: hidden;
}

.primary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 184, 125, 0.08), transparent 70%);
    border-radius: 50%;
}

.primary-icon {
    font-size: 3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.primary-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.primary-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.primary-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 400;
}

.primary-secondary {
    position: relative;
    z-index: 1;
    text-align: right;
    flex-shrink: 0;
}

.secondary-label {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
}

.secondary-name {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ---------- 模块3: 一句话总结 ---------- */
.summary-card {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
}

.summary-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--brand-dark);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.btn-share {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-share:hover {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}

/* ---------- 模块4: 优势与薄弱 ---------- */
.strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.strength-col {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.strength-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.strength-title.strong { color: var(--energy-growth); }
.strength-title.weak { color: var(--energy-vitality); }

.strength-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.strength-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--bg-input);
}

.strength-item:last-child { border-bottom: none; }

.strength-item .si-name {
    font-weight: 500;
    color: var(--text-primary);
}

.strength-item .si-value {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.strength-footnote {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-align: center;
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

/* ---------- 模块5: 深度洞察 ---------- */
.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.insight-item {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.2s ease;
}

.insight-item:hover {
    box-shadow: var(--shadow-medium);
}

.insight-item .ii-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 2px;
}

.insight-item .ii-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- 模块6: 日常画像 ---------- */
.daily-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.daily-item {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.daily-item .di-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 2px;
}

.daily-item .di-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- 模块7: 生活方式建议 ---------- */
.advice-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.advice-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: all 0.2s ease;
}

.advice-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(4px);
}

.advice-item .adv-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.advice-item .adv-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- 模块8: 今日微行动 ---------- */
.action-card {
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--brand-gold-light), var(--bg-card));
    border-radius: var(--radius-lg);
    border: 2px solid var(--brand-gold);
    box-shadow: 0 4px 20px rgba(232, 184, 125, 0.15);
    text-align: center;
}

.action-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.action-icon { font-size: 1.5rem; }
.action-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.action-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--brand-dark);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.action-done-btn {
    margin: 0 auto;
}

.action-done-btn.done {
    background: var(--energy-growth);
    color: white;
    border-color: var(--energy-growth);
}

/* ---------- 底部按钮 ---------- */
.btn-full-report {
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

/* ---------- 反馈区 ---------- */
.feedback-section {
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
}

.feedback-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.feedback-btn {
    padding: 8px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.feedback-btn:hover {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}

.feedback-btn:active { transform: scale(0.95); }

.feedback-thanks {
    font-size: 0.9rem;
    color: var(--energy-growth);
    font-weight: 500;
    margin-top: var(--space-sm);
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
    .strength-grid,
    .insight-grid,
    .daily-grid {
        grid-template-columns: 1fr;
    }

    .primary-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }

    .primary-secondary {
        text-align: center;
    }

    .primary-icon {
        font-size: 2.5rem;
    }

    .primary-name {
        font-size: 1.5rem;
    }

    .summary-text {
        font-size: 1rem;
    }

    .action-text {
        font-size: 1rem;
    }

    .pain-point-item {
        padding: var(--space-sm) var(--space-md);
    }

    .pain-point-item .pp-text {
        font-size: 0.85rem;
    }

    .advice-item {
        padding: var(--space-sm) var(--space-md);
    }

    .advice-item .adv-text {
        font-size: 0.85rem;
    }
}

/* 能量圆弧仪表盘 */
.energy-rings-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

/* 能量圆弧仪表盘 - 横排布局 */
.energy-rings-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 12px 4px;
    width: 100%;
    overflow-x: auto;
}

.energy-ring-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 60px;
    max-width: 140px;
}

.energy-ring-wrapper canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 140px;
}

/* 能量圆弧仪表盘 - 横排布局 */
.energy-rings-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 12px 4px;
    width: 100%;
    overflow-x: auto;
}

.energy-ring-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 60px;
    max-width: 140px;
}

.energy-ring-wrapper canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 140px;
}